/* =========================================================================
   THE BEAN — Specialty Coffee & Micro-Roastery
   Design system: oat/paper canvas + deep espresso ink + signature pine green
   Type: Gloock (display) · Spectral (editorial serif) · Epilogue (grotesque)
   ========================================================================= */

/* ----------------------------- Design tokens --------------------------- */
:root {
  /* Palette — oat paper, espresso ink, pine-green signature accent */
  --paper:        #F4EFE6;   /* primary canvas — warm oat */
  --paper-2:      #EEE7D9;   /* slightly deeper paper */
  --paper-3:      #E6DCC8;   /* card / panel fill */
  --cream:        #FBF8F1;   /* lightest, raised surfaces */
  --espresso:     #241B14;   /* near-black ink, warm brown-black */
  --espresso-2:   #3A2C20;   /* softer ink */
  --cocoa:        #6B4F3A;   /* mid roasted brown */
  --crema:        #C8A87E;   /* warm tan/crema — subtle warmth, never the accent */

  --pine:         #2F5D45;   /* SIGNATURE accent — deep forest/pine green */
  --pine-deep:    #234634;   /* pressed / dark green */
  --pine-bright:  #3C7557;   /* hover green */
  --sage:         #8FA98C;   /* soft sage secondary */
  --sage-soft:    #C7D2C0;   /* faint sage wash */

  --line:         rgba(36,27,20,.14);
  --line-soft:    rgba(36,27,20,.08);
  --ink-60:       rgba(36,27,20,.62);
  --ink-45:       rgba(36,27,20,.45);

  /* Gradients */
  --grad-pine: linear-gradient(135deg, #3C7557 0%, #2F5D45 48%, #234634 100%);
  --grad-paper: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);

  /* Type */
  --f-display: "Gloock", Georgia, "Times New Roman", serif;
  --f-serif:   "Spectral", Georgia, serif;
  --f-sans:    "Epilogue", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale (8pt-ish, fluid section rhythm) */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;
  --section-y: clamp(4.5rem, 9vw, 9rem);

  --maxw: 1240px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(36,27,20,.06);
  --shadow:    0 14px 40px -18px rgba(36,27,20,.30);
  --shadow-lg: 0 34px 80px -34px rgba(36,27,20,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-sans);
  color: var(--espresso);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Subtle paper-grain texture overlay (very light, restrained) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------------------------- Typography ------------------------------ */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; }
.display {
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: .94;
  letter-spacing: -.025em;
}
h2 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
p  { color: var(--espresso-2); }
.lead {
  font-family: var(--f-serif);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.55;
  color: var(--espresso-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pine);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--pine);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--pine);
  display: inline-block;
}

/* ----------------------------- Layout ---------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 880px); margin-inline: auto; }
section { position: relative; z-index: 2; }
.section { padding-block: var(--section-y); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; }

/* ----------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .92rem 1.7rem;
  border-radius: var(--radius-pill);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .3s, color .3s;
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--pine);
  color: var(--cream);
  box-shadow: 0 10px 28px -12px rgba(35,70,52,.7);
}
.btn-primary:hover { background: var(--pine-bright); transform: translateY(-3px); box-shadow: 0 18px 36px -14px rgba(35,70,52,.8); }
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--espresso); transform: translateY(-3px); background: rgba(36,27,20,.03); }

.btn-light {
  background: var(--cream);
  color: var(--espresso);
  box-shadow: var(--shadow);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-outline-light {
  background: rgba(251,248,241,.06);
  color: var(--cream);
  border: 1.5px solid rgba(251,248,241,.4);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover { border-color: var(--cream); background: rgba(251,248,241,.14); transform: translateY(-3px); }

.btn-block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--pine);
  position: relative;
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease-out); }
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1.5px; background: var(--pine);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 86px;
  transition: height .4s var(--ease);
}
/* shrink-on-scroll */
.site-header.scrolled {
  background: rgba(244,239,230,.82);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px -22px rgba(36,27,20,.5);
}
.site-header.scrolled .bar { height: 66px; }
/* Homepage only: the header sits over the dark hero photo, so use light text +
   a faint top scrim until scrolled (other pages keep dark-on-light). Once
   .scrolled adds the cream background, the default dark text takes over again. */
body.has-hero .site-header:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(20,14,10,.45), rgba(20,14,10,0));
}
body.has-hero .site-header:not(.scrolled) .brand,
body.has-hero .site-header:not(.scrolled) .nav-links a { color: #F6F1E7; }
body.has-hero .site-header:not(.scrolled) .brand .name small { color: rgba(246,241,231,.8); }
body.has-hero .site-header:not(.scrolled) .nav-links a:hover { color: #ffffff; }
body.has-hero .site-header:not(.scrolled) .nav-toggle span,
body.has-hero .site-header:not(.scrolled) .nav-toggle span::before,
body.has-hero .site-header:not(.scrolled) .nav-toggle span::after { background: #F6F1E7; }

/* Brand / logo mark */
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -.01em; color: var(--espresso); }
.brand .mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-pine);
  color: var(--cream);
  flex: none;
  box-shadow: 0 6px 16px -8px rgba(35,70,52,.8);
  transition: transform .5s var(--ease-out);
}
.brand .mark svg { width: 20px; height: 20px; }
.brand:hover .mark { transform: rotate(-12deg) scale(1.06); }
.brand .name { line-height: 1; }
.brand .name small { display: block; font-family: var(--f-sans); font-size: .56rem; letter-spacing: .32em; text-transform: uppercase; color: var(--pine); margin-top: 3px; }

/* Primary nav */
.nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.5vw, 2.4rem); }
.nav-links { display: flex; align-items: center; gap: clamp(1.4rem, 2.5vw, 2.4rem); }
.nav-links a {
  font-size: .95rem; font-weight: 500; color: var(--espresso-2);
  position: relative; padding: .4rem 0; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--pine); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--espresso); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Header CTA — desktop slot (one only) */
.header-cta { display: inline-flex; }
/* The in-drawer CTA (hidden on desktop) */
.nav-cta-mobile { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  position: relative; z-index: 110;
  flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px; background: var(--espresso); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform .4s var(--ease), opacity .3s;
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after  { transform: translate(-50%, 5px); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translate(-50%, -50%) rotate(45deg); }
body.nav-open .nav-toggle span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(36,27,20,.5);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

@media (max-width: 940px) {
  .nav-toggle { display: grid; place-items: center; }
  .header-cta { display: none; }          /* hide desktop CTA on mobile */
  .nav {
    position: fixed; top: 0; right: 0; z-index: 100;
    width: min(86vw, 380px); height: 100dvh;
    background: var(--cream);
    box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch;
    justify-content: flex-start; gap: 0;
    padding: 6.5rem 2rem 2.5rem;
    transform: translateX(100%);
    transition: transform .5s var(--ease-out);
    overflow-y: auto;
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { font-size: 1.35rem; font-family: var(--f-display); padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a::after { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 1.6rem; justify-content: center; }  /* show drawer CTA on mobile */
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 86px;
  overflow: hidden;
  color: var(--cream);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(36,27,20,.30) 0%, rgba(36,27,20,.05) 28%, rgba(36,27,20,.42) 74%, rgba(36,27,20,.82) 100%),
    linear-gradient(95deg, rgba(35,70,52,.55) 0%, rgba(36,27,20,.12) 55%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 6rem); width: 100%; }
.hero .eyebrow { color: var(--sage-soft); }
.hero .eyebrow::before { background: var(--sage-soft); }
.hero h1 { color: var(--cream); margin: 1.2rem 0; max-width: 14ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 em { font-style: italic; color: var(--sage-soft); }
.hero-sub { max-width: 46ch; font-family: var(--f-serif); font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: rgba(251,248,241,.9); line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.4rem; margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem; border-top: 1px solid rgba(251,248,241,.18);
}
.hero-meta div { min-width: 120px; }
.hero-meta .k { font-family: var(--f-display); font-size: 1.7rem; line-height: 1; }
.hero-meta .v { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(251,248,241,.7); margin-top: .4rem; }

/* steam wisp motif (decorative) */
.steam { position: absolute; z-index: 1; pointer-events: none; opacity: .5; }

/* =========================================================================
   INTRO / ETHOS
   ========================================================================= */
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.intro-grid .figure { position: relative; }
.intro-grid .figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.stamp {
  position: absolute; right: -22px; bottom: -22px;
  width: clamp(110px, 16vw, 152px); height: clamp(110px, 16vw, 152px);
  border-radius: 50%;
  background: var(--grad-pine);
  color: var(--cream);
  display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow);
}
.stamp .spin { position: absolute; inset: 0; animation: spin 26s linear infinite; }
@media (prefers-reduced-motion: reduce) { .stamp .spin { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.stamp .core { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2rem); position: relative; z-index: 2; }
.stamp .core small { display: block; font-family: var(--f-sans); font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; }

.intro-copy h2 em { font-style: italic; color: var(--pine); }
.intro-stats { display: flex; gap: 2.5rem; margin-top: 2.2rem; flex-wrap: wrap; }
.intro-stats .k { font-family: var(--f-display); font-size: 2.4rem; color: var(--pine); line-height: 1; }
.intro-stats .v { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-60); margin-top: .35rem; }

/* =========================================================================
   POUR SHOWCASE (signature drinks)
   ========================================================================= */
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--espresso); color: var(--cream); }
.section.dark p, .section.dark .lead { color: rgba(251,248,241,.8); }
.section.dark .eyebrow { color: var(--sage); }
.section.dark .eyebrow::before, .section.dark .eyebrow.center::after { background: var(--sage); }
.section.dark h2 { color: var(--cream); }

.pour-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.pour {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  display: flex; flex-direction: column;
}
.pour:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pour .ph { aspect-ratio: 3/4; overflow: hidden; }
.pour .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.pour:hover .ph img { transform: scale(1.07); }
.pour .body { padding: 1.4rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.pour h3 { font-size: 1.35rem; }
.pour .note { font-family: var(--f-serif); font-size: 1rem; color: var(--ink-60); margin-top: .5rem; flex: 1; }
.pour .price { margin-top: 1rem; font-family: var(--f-display); font-size: 1.25rem; color: var(--pine); }
.section.dark .pour { background: rgba(251,248,241,.05); border-color: rgba(251,248,241,.1); }
.section.dark .pour h3 { color: var(--cream); }
.section.dark .pour .note { color: rgba(251,248,241,.65); }
.section.dark .pour .price { color: var(--sage); }

/* =========================================================================
   ROASTERY TEASER (split)
   ========================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.flip .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.split-media.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split-media.stack img:first-child { aspect-ratio: 3/4; grid-row: span 2; }
.split-media.stack img:nth-child(2) { aspect-ratio: 4/3; }
.split-media.stack img:nth-child(3) { aspect-ratio: 4/3; }
.split-copy h2 em { font-style: italic; color: var(--pine); }
.split-copy .lead { margin: 1.2rem 0 1.8rem; }
.feature-list { display: grid; gap: 1.1rem; margin: 1.8rem 0; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list .ico {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sage-soft); color: var(--pine-deep);
  display: grid; place-items: center; margin-top: 2px;
}
.feature-list .ico svg { width: 16px; height: 16px; }
.feature-list b { font-family: var(--f-sans); font-weight: 600; }
.feature-list span { display: block; color: var(--ink-60); font-size: .95rem; }

/* =========================================================================
   GALLERY STRIP
   ========================================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}
.gallery figure { overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.08); }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }

/* =========================================================================
   HOURS + LOCATION BAND
   ========================================================================= */
.band {
  background: var(--grad-pine);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.4rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(251,248,241,.06);
}
.band .eyebrow { color: var(--sage-soft); }
.band .eyebrow::before { background: var(--sage-soft); }
.band h2 { color: var(--cream); margin: .8rem 0 1.2rem; }
.band p { color: rgba(251,248,241,.85); }
.hours-list { display: grid; gap: .2rem; position: relative; z-index: 2; }
.hours-list li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid rgba(251,248,241,.16);
  font-size: 1.02rem;
}
.hours-list .day { font-weight: 500; min-width: 130px; }
.hours-list .dots { flex: 1; border-bottom: 1.5px dotted rgba(251,248,241,.4); transform: translateY(-4px); }
.hours-list .time { font-family: var(--f-serif); color: var(--cream); white-space: nowrap; }
.hours-list li.today { color: var(--cream); }
.hours-list li.today .day::after { content: " · open now"; color: var(--sage-soft); font-family: var(--f-sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

/* =========================================================================
   CLOSING CTA
   ========================================================================= */
.cta-final { position: relative; overflow: hidden; color: var(--cream); border-radius: var(--radius-lg); }
.cta-final .bg { position: absolute; inset: 0; z-index: 0; }
.cta-final .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-final .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(35,70,52,.92), rgba(36,27,20,.78)); }
.cta-final .inner { position: relative; z-index: 2; text-align: center; padding: clamp(3.5rem, 8vw, 7rem) clamp(1.5rem,5vw,3rem); }
.cta-final h2 { color: var(--cream); max-width: 16ch; margin: 1rem auto 1.4rem; }
.cta-final p { color: rgba(251,248,241,.85); max-width: 52ch; margin: 0 auto; }
.cta-final .hero-cta { justify-content: center; }

/* =========================================================================
   PAGE HERO (interior pages)
   ========================================================================= */
.page-hero {
  padding-top: calc(86px + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  background: var(--grad-paper);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); max-width: 16ch; }
.page-hero p { margin-top: 1.2rem; max-width: 56ch; }
.breadcrumb { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--pine); }

/* =========================================================================
   MENU PAGE
   ========================================================================= */
.menu-intro-bar {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.6rem; border-radius: var(--radius); background: var(--paper-3);
  border: 1px solid var(--line-soft); margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.legend { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .85rem; color: var(--ink-60); }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }
.tag {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 .35rem;
  border-radius: 6px; font-size: .66rem; font-weight: 700; letter-spacing: .04em;
  background: var(--sage-soft); color: var(--pine-deep);
}
.tag.fav { background: var(--pine); color: var(--cream); }

.menu-cats { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.menu-cat { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.menu-cat .cat-head { position: sticky; top: 110px; }
.menu-cat .cat-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.menu-cat .cat-head .num { font-family: var(--f-serif); font-style: italic; color: var(--pine); font-size: 1.1rem; }
.menu-cat .cat-head p { font-family: var(--f-serif); margin-top: .8rem; color: var(--ink-60); font-size: 1rem; }
.menu-cat .cat-head .cat-img { margin-top: 1.5rem; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-sm); }

.menu-items { display: grid; gap: .2rem; }
.m-item {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem;
  align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.m-item:hover { background: linear-gradient(90deg, rgba(143,169,140,.1), transparent 70%); }
.m-item .nm { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; }
.m-item .nm b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; }
.m-item .leader { grid-column: 1 / 2; border-bottom: 1.5px dotted var(--line); align-self: end; margin: 0 .4rem .35rem; min-width: 24px; }
.m-item .price { font-family: var(--f-serif); font-size: 1.18rem; font-weight: 600; color: var(--pine); white-space: nowrap; }
.m-item .desc { grid-column: 1 / -1; font-family: var(--f-serif); color: var(--ink-60); font-size: .98rem; margin-top: .15rem; max-width: 60ch; }
.m-item.is-fav { padding-left: 1rem; }
.m-item.is-fav::before { content: ""; position: absolute; left: 0; top: 1.2rem; bottom: 1rem; width: 3px; border-radius: 3px; background: var(--pine); }

/* The clever leader-dot row: name | dots | price */
.m-row { display: grid; grid-template-columns: max-content 1fr max-content; align-items: baseline; gap: .6rem; }
.m-row .dots { border-bottom: 1.5px dotted var(--line); transform: translateY(-5px); }

/* =========================================================================
   COFFEE / RETAIL CARDS
   ========================================================================= */
.bag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.bag {
  background: var(--cream); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.bag:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.bag .ph { aspect-ratio: 1/1; overflow: hidden; position: relative; }
.bag .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.bag:hover .ph img { transform: scale(1.06); }
.bag .roast {
  position: absolute; top: .8rem; left: .8rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: var(--radius-pill);
  background: rgba(251,248,241,.92); color: var(--pine-deep); backdrop-filter: blur(4px);
}
.bag .body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.bag .origin { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pine); font-weight: 600; }
.bag h3 { font-size: 1.4rem; margin: .35rem 0 .6rem; }
.bag .notes { font-family: var(--f-serif); color: var(--ink-60); font-size: .96rem; flex: 1; }
.bag .meta-row { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.bag .price { font-family: var(--f-display); font-size: 1.5rem; color: var(--espresso); }
.add-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--pine); color: var(--cream);
  padding: .6rem 1.1rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .85rem;
  transition: background .3s, transform .3s var(--ease-out);
}
.add-btn:hover { background: var(--pine-bright); transform: translateY(-2px); }
.add-btn svg { width: 1em; height: 1em; }
.add-btn.added { background: var(--pine-deep); }

/* bag toast */
.bag-toast {
  position: fixed; left: 50%; bottom: 1.6rem; transform: translate(-50%, 130%);
  background: var(--espresso); color: var(--cream);
  padding: .9rem 1.4rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg); z-index: 200;
  display: inline-flex; align-items: center; gap: .7rem; font-size: .92rem; font-weight: 500;
  transition: transform .5s var(--ease-out);
}
.bag-toast.show { transform: translate(-50%, 0); }
.bag-toast .pill { background: var(--pine); border-radius: var(--radius-pill); padding: .1rem .6rem; font-weight: 700; font-size: .8rem; }

/* roast meter */
.roast-meter { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; font-size: .8rem; color: var(--ink-60); }
.roast-meter .dots-r { display: inline-flex; gap: 4px; }
.roast-meter i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.roast-meter i.on { background: var(--cocoa); }

/* =========================================================================
   PROCESS / PHILOSOPHY STEPS
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
.step {
  background: var(--cream); border-radius: var(--radius-lg); padding: 2rem 1.8rem;
  border: 1px solid var(--line-soft); position: relative;
  transition: transform .5s var(--ease-out);
}
.step:hover { transform: translateY(-6px); }
.step .n { font-family: var(--f-display); font-size: 3rem; color: var(--sage-soft); line-height: 1; }
.step h3 { font-size: 1.35rem; margin: .6rem 0 .7rem; }
.step p { color: var(--ink-60); font-size: .98rem; }

/* =========================================================================
   VISIT PAGE
   ========================================================================= */
.visit-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-card {
  background: var(--cream); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.info-card + .info-card { margin-top: 1.6rem; }
.info-card h3 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.info-line { display: flex; gap: 1rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
.info-line:last-child { border-bottom: 0; }
.info-line .ico { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--sage-soft); color: var(--pine-deep); display: grid; place-items: center; }
.info-line .ico svg { width: 18px; height: 18px; }
.info-line .k { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); }
.info-line .v { font-size: 1.05rem; }
.info-line a.v:hover { color: var(--pine); }

/* Map placeholder — stylised */
.map-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; height: 100%; min-height: 460px; }
.map-stage {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(143,169,140,.4), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(36,27,20,.05) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(36,27,20,.05) 38px 40px),
    var(--paper-3);
}
.map-roads span { position: absolute; background: var(--cream); box-shadow: 0 0 0 1px var(--line-soft); }
.map-roads .r1 { top: 38%; left: -5%; width: 110%; height: 26px; transform: rotate(-6deg); }
.map-roads .r2 { top: -10%; left: 58%; width: 30px; height: 120%; transform: rotate(9deg); }
.map-roads .r3 { top: 70%; left: -5%; width: 80%; height: 18px; transform: rotate(3deg); }
.map-river { position: absolute; bottom: -10%; left: -10%; width: 70%; height: 50%; background: rgba(143,169,140,.35); border-radius: 50%; transform: rotate(-18deg); }
.map-pin {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -100%);
  z-index: 3; text-align: center;
}
.map-pin .dot {
  width: 46px; height: 46px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--pine); box-shadow: var(--shadow); margin: 0 auto;
  display: grid; place-items: center;
}
.map-pin .dot svg { width: 20px; height: 20px; transform: rotate(45deg); color: var(--cream); }
.map-pin .lbl { margin-top: 14px; background: var(--cream); display: inline-block; padding: .4rem .9rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .85rem; box-shadow: var(--shadow-sm); }
.map-ping { position: absolute; top: 42%; left: 50%; width: 46px; height: 46px; border-radius: 50%; background: rgba(47,93,69,.4); transform: translate(-50%,-50%); z-index: 2; animation: ping 2.6s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: translate(-50%,-50%) scale(.5); opacity:.7;} 100% { transform: translate(-50%,-50%) scale(3.4); opacity:0;} }
@media (prefers-reduced-motion: reduce) { .map-ping { animation: none; } }
.map-attr { position: absolute; bottom: .7rem; right: .9rem; z-index: 3; font-size: .72rem; color: var(--ink-45); background: rgba(251,248,241,.8); padding: .25rem .6rem; border-radius: 6px; }

/* =========================================================================
   ABOUT — values, team, timeline
   ========================================================================= */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.value {
  padding: 2rem 1.8rem; border-radius: var(--radius-lg);
  background: var(--cream); border: 1px solid var(--line-soft);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--grad-pine); color: var(--cream); display: grid; place-items: center; margin-bottom: 1.2rem; }
.value .ico svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.value p { color: var(--ink-60); font-size: .98rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.member { text-align: left; }
.member .ph { aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.member .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); filter: saturate(.95); }
.member:hover .ph img { transform: scale(1.06); }
.member h3 { font-size: 1.3rem; margin: 1rem 0 .15rem; }
.member .role { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pine); font-weight: 600; }
.member .bio { font-family: var(--f-serif); color: var(--ink-60); font-size: .94rem; margin-top: .6rem; }

.timeline { position: relative; display: grid; gap: 0; margin-top: 1rem; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 2.2rem 2.8rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 3px solid var(--pine); }
.tl-item .yr { font-family: var(--f-display); font-size: 1.5rem; color: var(--pine); }
.tl-item h3 { font-size: 1.2rem; margin: .2rem 0 .4rem; }
.tl-item p { color: var(--ink-60); font-size: .98rem; }

/* pull quote */
.pullquote { text-align: center; max-width: 900px; margin-inline: auto; }
.pullquote q { font-family: var(--f-display); font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.18; quotes: "“" "”"; }
.pullquote q::before { color: var(--sage); }
.pullquote .by { display: block; margin-top: 1.6rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-60); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--espresso); color: rgba(251,248,241,.78); position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: clamp(2rem, 5vw, 3.5rem); padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem,5vw,3.5rem); }
.site-footer .brand { color: var(--cream); }
.site-footer .brand .name small { color: var(--sage); }
.footer-about { max-width: 32ch; margin-top: 1.2rem; color: rgba(251,248,241,.6); font-size: .96rem; }
.footer-col h4 { font-family: var(--f-sans); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: 1.2rem; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a { color: rgba(251,248,241,.7); font-size: .96rem; transition: color .3s; }
.footer-col a:hover { color: var(--cream); }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; padding: .35rem 0; border-bottom: 1px solid rgba(251,248,241,.08); }
.footer-hours .time { color: rgba(251,248,241,.55); }

.newsletter p { color: rgba(251,248,241,.6); font-size: .96rem; margin-bottom: 1rem; }
.news-form { display: flex; gap: .5rem; background: rgba(251,248,241,.06); border: 1px solid rgba(251,248,241,.16); border-radius: var(--radius-pill); padding: .35rem .35rem .35rem 1.1rem; transition: border-color .3s; }
.news-form:focus-within { border-color: var(--sage); }
.news-form input { flex: 1; background: none; border: 0; color: var(--cream); font-family: inherit; font-size: .92rem; outline: none; min-width: 0; }
.news-form input::placeholder { color: rgba(251,248,241,.45); }
.news-form button { flex: none; background: var(--pine); color: var(--cream); border-radius: var(--radius-pill); width: 42px; height: 42px; display: grid; place-items: center; transition: background .3s, transform .3s; }
.news-form button:hover { background: var(--pine-bright); transform: scale(1.05); }
.news-form button svg { width: 18px; height: 18px; }
.news-msg { font-size: .85rem; color: var(--sage); margin-top: .7rem; min-height: 1.1em; }
.socials { display: flex; gap: .7rem; margin-top: 1.4rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(251,248,241,.18); display: grid; place-items: center; color: rgba(251,248,241,.7); transition: all .3s; }
.socials a:hover { background: var(--pine); border-color: var(--pine); color: var(--cream); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

.footer-bottom { border-top: 1px solid rgba(251,248,241,.1); padding-block: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .85rem; color: rgba(251,248,241,.5); }
.footer-bottom .legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--cream); }

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-d="1"] { transition-delay: .08s; }
[data-reveal][data-d="2"] { transition-delay: .16s; }
[data-reveal][data-d="3"] { transition-delay: .24s; }
[data-reveal][data-d="4"] { transition-delay: .32s; }

/* hero load reveal */
.hero [data-load] { opacity: 0; transform: translateY(36px); }
.hero.loaded [data-load] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.hero.loaded [data-load][data-d="1"] { transition-delay: .15s; }
.hero.loaded [data-load][data-d="2"] { transition-delay: .3s; }
.hero.loaded [data-load][data-d="3"] { transition-delay: .45s; }
.hero.loaded [data-load][data-d="4"] { transition-delay: .6s; }
.hero.loaded [data-load][data-d="5"] { transition-delay: .75s; }
.hero.loaded .hero-bg img { transform: scale(1); transition: transform 8s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .hero [data-load] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-bg img { transform: scale(1) !important; }
  .pour .ph img, .bag .ph img, .gallery img, .member .ph img { transition: none !important; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .pour-grid, .bag-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .intro-grid, .split, .split.flip .split-media, .visit-grid, .band { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .menu-cat { grid-template-columns: 1fr; }
  .menu-cat .cat-head { position: static; }
  .menu-cat .cat-head .cat-img { max-height: 220px; }
  .steps, .values { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .map-card { min-height: 380px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .pour-grid, .bag-grid, .team-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery .g-wide { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.2rem; }
  .m-row { grid-template-columns: 1fr; }
  .m-row .dots { display: none; }
  .menu-intro-bar { flex-direction: column; align-items: flex-start; }
}
