/* ===========================================================
   L & G Bubble Tea — Fraser St · cold-pitch v2
   Mobile-first mini-site
   =========================================================== */

:root {
  /* palette */
  --paper:    oklch(0.972 0.012 84);    /* warm off-white      */
  --paper-2:  oklch(0.945 0.016 80);    /* slightly deeper      */
  --ink:      oklch(0.255 0.028 318);   /* deep aubergine ink   */
  --ink-soft: oklch(0.46 0.03 318);     /* muted ink            */
  --lav:      oklch(0.72 0.11 308);     /* lavender milk tea    */
  --lav-deep: oklch(0.55 0.12 305);
  --lav-pale: oklch(0.90 0.045 305);
  --caramel:  oklch(0.72 0.11 66);      /* brown-sugar accent   */
  --boba:     oklch(0.30 0.045 50);     /* tapioca pearl brown  */
  --line:     oklch(0.255 0.028 318 / 0.14);

  --col: 540px;                         /* mobile-first column   */
  --pad: clamp(20px, 6vw, 34px);

  --serif: "Instrument Serif", Georgia, serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;
  --mono:  "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* shared column */
.col {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---- type ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lav-deep);
  margin: 0;
}
.serif { font-family: var(--serif); font-weight: 400; line-height: 1.04; }

h1, h2, h3 { margin: 0; font-weight: 400; }

a { color: inherit; }

/* =========================================================
   HEADER
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  max-width: var(--col); margin-inline: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brandmark {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--serif); font-size: 24px; letter-spacing: 0.01em;
}
.brandmark b { font-weight: 400; }
.brandmark .amp { color: var(--lav-deep); font-style: italic; }
.topbar .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(56px, 16vw, 110px) 0 clamp(40px, 12vw, 80px);
  text-align: center;
  overflow: hidden;
}
.hero::after {            /* soft lavender halo */
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 420px;
  background: radial-gradient(60% 70% at 50% 0%, var(--lav-pale), transparent 70%);
  opacity: 0.7; z-index: -1;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(76px, 30vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.01em;
}
.hero h1 .amp { font-style: italic; color: var(--lav-deep); display: inline-block; transform: translateY(-0.04em); }
.hero .sub {
  font-family: var(--serif);
  font-size: clamp(26px, 8vw, 40px);
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 6px;
}
.hero .lede {
  margin: 26px auto 0;
  max-width: 30ch;
  font-size: 18px;
  color: var(--ink-soft);
  text-wrap: balance;
}
.scroll-cue {
  margin-top: 40px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft);
}
.scroll-cue .line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--lav-deep), transparent);
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0%,100%{transform:scaleY(0.4);opacity:.4} 50%{transform:scaleY(1);opacity:1} }

/* =========================================================
   CUP ATLAS — scroll-bound sticky stage
   ========================================================= */
.atlas { position: relative; height: 540vh; background: var(--paper); }
.atlas-sticky {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-rows: auto 1fr auto;
  align-items: center; justify-items: center;
  padding: 18px var(--pad) 28px;
  max-width: var(--col); margin-inline: auto;
}
.atlas-head {
  text-align: center; padding-top: 6px;
}
.atlas-head .eyebrow { margin-bottom: 6px; }
.atlas-head h2 { font-family: var(--serif); font-size: clamp(30px,9vw,40px); }

.cup-stage {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.cup-stage svg { width: min(62vw, 240px); height: auto; display: block; overflow: visible; }

.atlas-footer {
  width: 100%;
  display: grid; grid-template-rows: auto auto; gap: 16px;
  justify-items: center;
}

/* captions (one visible at a time) */
.captions {
  position: relative;
  width: 100%; max-width: 360px;
  height: 116px;
  text-align: center;
}
.cap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.cap.active { opacity: 1; transform: none; }
.cap .n {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--lav-deep);
}
.cap .t { font-family: var(--serif); font-size: 28px; }
.cap .d { font-size: 15px; color: var(--ink-soft); margin: 0 auto; max-width: 34ch; text-wrap: balance; }

/* progress */
.atlas-progress {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.dots { display: flex; gap: 7px; }
.dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); transition: background .35s ease, transform .35s ease;
}
.dots i.on { background: var(--lav-deep); transform: scale(1.25); }

/* =========================================================
   CUP ATLAS — static reduced-motion fallback
   ========================================================= */
.atlas-static { padding: 64px 0 72px; }
.atlas-static .col > .eyebrow { text-align: center; }
.atlas-static h2 {
  font-family: var(--serif); font-size: clamp(32px,9vw,44px);
  text-align: center; margin: 8px 0 36px;
}
.mini-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px 20px;
}
.mini {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.mini svg { width: 120px; height: auto; overflow: visible; }
.mini .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--lav-deep); }
.mini .t { font-family: var(--serif); font-size: 22px; }
.mini .d { font-size: 13.5px; color: var(--ink-soft); max-width: 26ch; }

/* =========================================================
   MENU ATLAS
   ========================================================= */
.menu { padding: 72px 0 80px; }
.menu .head { text-align: center; margin-bottom: 36px; }
.menu .head h2 { font-family: var(--serif); font-size: clamp(34px,10vw,48px); margin-top: 8px; }
.menu .head p { color: var(--ink-soft); max-width: 36ch; margin: 12px auto 0; text-wrap: balance; }

.menu-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.drink {
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.drink.in { opacity: 1; transform: none; }
.drink .ph {
  aspect-ratio: 1 / 1; width: 100%;
  position: relative;
  background:
    repeating-linear-gradient(45deg,
      oklch(0.255 0.028 318 / 0.05) 0 8px,
      transparent 8px 16px),
    var(--paper);
  display: flex; align-items: flex-end; padding: 10px;
}
.drink .ph span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: var(--paper); padding: 4px 7px; border-radius: 6px;
  border: 1px solid var(--line);
  line-height: 1.3;
}
.drink .body { padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.drink .body .idx { font-family: var(--mono); font-size: 11px; color: var(--lav-deep); letter-spacing: 0.12em; }
.drink .body h3 { font-family: var(--serif); font-size: 23px; line-height: 1.05; }
.drink .body p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-soft); }

/* =========================================================
   BLOCK ESSAY
   ========================================================= */
.block {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 18vw, 130px) 0;
}
.block .col { max-width: 600px; }
.block .eyebrow { color: var(--lav-pale); }
.block p.lead {
  font-family: var(--serif);
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.22;
  margin: 20px 0 0;
  text-wrap: balance;
}
.block p.lead em { color: var(--lav); font-style: italic; }
.block p.body {
  font-size: 16px; line-height: 1.7;
  color: oklch(0.972 0.012 84 / 0.72);
  margin: 26px 0 0;
  max-width: 46ch;
}
.block .sig {
  margin-top: 28px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--lav-pale);
}

/* =========================================================
   VISIT
   ========================================================= */
.visit { padding: 72px 0 40px; }
.visit .head { text-align: center; margin-bottom: 30px; }
.visit .head h2 { font-family: var(--serif); font-size: clamp(34px,10vw,48px); margin-top: 8px; }

.visit-info {
  display: grid; gap: 18px; margin-bottom: 26px;
}
.info-row {
  display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lav-deep);
  grid-column: 1 / -1;
}
.info-row .v { grid-column: 1 / -1; font-size: 16px; }
.info-row .v .muted { color: var(--ink-soft); }
.owner-note {
  display: inline-block; margin-top: 2px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--caramel); border: 1px dashed var(--caramel);
  padding: 2px 7px; border-radius: 6px;
}

.map {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  filter: saturate(0.85);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  background: var(--paper-2);
  padding: 48px 0 40px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.foot .row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .brandmark { font-size: 34px; }
.foot .links { display: flex; gap: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; }
.foot .links a { text-decoration: none; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.foot .fine {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-soft);
}

/* reveal helper */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .drink { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   TABLET  (≥ 720px)
   menu widens to 3-up; everything else still single column
   ========================================================= */
@media (min-width: 720px) {
  :root { --col: 680px; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* =========================================================
   DESKTOP  (≥ 1024px)
   Deliberate multi-column composition inside a centered
   ~1200px shell with real gutters. Mobile layout untouched.
   ========================================================= */
@media (min-width: 1024px) {
  :root { --pad: clamp(40px, 4.5vw, 96px); }

  /* ---- centered wide shell for flow sections ---- */
  .topbar,
  .menu .col,
  .visit .col,
  .foot .col { max-width: 1200px; }

  .topbar { padding-block: 20px; }
  .brandmark { font-size: 28px; }

  /* ---- HERO — centered, constrained, scaled with intent ---- */
  .hero { padding: clamp(120px, 13vw, 180px) 0 clamp(90px, 10vw, 140px); }
  .hero::after { height: 560px; }
  .hero .col { max-width: 920px; }
  .hero h1 { font-size: min(216px, 18vw); line-height: 0.82; }
  .hero .sub { font-size: 48px; margin-top: 14px; }
  .hero .lede { font-size: 21px; max-width: 52ch; margin-top: 34px; }
  .scroll-cue { margin-top: 56px; }
  .scroll-cue .line { height: 60px; }

  /* ---- CUP ATLAS — 2-col scrollytelling: cup beside captions ---- */
  .atlas-sticky {
    max-width: 1120px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "head head"
      "cup  caption";
    align-items: center;
    column-gap: clamp(48px, 6vw, 96px);
    padding-block: 32px 48px;
  }
  .atlas-head { grid-area: head; padding-top: 18px; }
  .atlas-head h2 { font-size: 48px; }
  .cup-stage  { grid-area: cup; height: 100%; }
  .cup-stage svg { width: min(40vh, 340px); }
  .atlas-footer {
    grid-area: caption;
    justify-items: start;
    align-content: center;
    gap: 36px;
  }
  .captions { text-align: left; max-width: 440px; height: 168px; }
  .cap { align-items: flex-start; }
  .cap .t { font-size: 40px; }
  .cap .d { margin: 0; font-size: 18px; max-width: 38ch; }

  /* ---- STATIC FALLBACK — 5-up row on desktop ---- */
  .atlas-static .col { max-width: 1200px; }
  .mini-grid { grid-template-columns: repeat(5, 1fr); gap: 24px; }

  /* ---- MENU — 3-up, larger cards ---- */
  .menu { padding: clamp(96px, 10vw, 130px) 0; }
  .menu .head { margin-bottom: 52px; }
  .menu .head h2 { font-size: 60px; }
  .menu .head p { font-size: 18px; max-width: 44ch; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .drink { border-radius: 22px; }
  .drink .body { padding: 20px 20px 24px; }
  .drink .body h3 { font-size: 27px; }
  .drink .body p { font-size: 15px; }

  /* ---- BLOCK ESSAY — editorial 2-col, prose capped ---- */
  .block { padding: clamp(120px, 13vw, 180px) 0; }
  .block .col {
    max-width: 1080px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-areas:
      "eye  body"
      "lead body"
      "lead sig";
    column-gap: clamp(56px, 6vw, 96px);
    align-content: start;
  }
  .block .eyebrow { grid-area: eye; }
  .block p.lead { grid-area: lead; font-size: 46px; margin-top: 22px; align-self: start; }
  .block p.body { grid-area: body; margin-top: 0; align-self: end; max-width: 52ch; }
  .block .sig { grid-area: sig; margin-top: 28px; }

  /* ---- VISIT — info beside map ---- */
  .visit { padding: clamp(96px, 10vw, 130px) 0; }
  .visit .col {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    grid-template-areas:
      "head head"
      "info map";
    column-gap: clamp(48px, 6vw, 88px);
    align-items: stretch;
  }
  .visit .head { grid-area: head; margin-bottom: 48px; }
  .visit .head h2 { font-size: 60px; }
  .visit-info { grid-area: info; align-self: center; margin-bottom: 0; gap: 22px; }
  .info-row .v { font-size: 17px; }
  .map { grid-area: map; aspect-ratio: auto; min-height: 460px; }

  /* ---- FOOTER ---- */
  .foot { padding: 64px 0 56px; }
  .foot .brandmark { font-size: 40px; }
}

/* =========================================================
   WIDE  (≥ 1536px) — hold the shell, grow the gutters
   ========================================================= */
@media (min-width: 1536px) {
  .hero h1 { font-size: 232px; }
  .hero .col { max-width: 980px; }
}
