/* ============================================================
   SUPU.MEDIA — STYLES
   Palette from the SUPU logo: ivory white, deep teal ink,
   rust-red accent. Rotterdam, industrial but warm. Like soup.
   ============================================================ */

:root {
  /* colour tokens */
  --cream:      #f8f7e6;   /* logo ivory — main background        */
  --cream-2:    #efedd6;   /* soft yellowish band                 */
  --paper:      #fffef8;   /* cards                               */
  --accent:     #a83c17;   /* logo rust — primary accent          */
  --accent-soft:#d97b4a;
  --teal:       #16383e;   /* logo teal                           */
  --teal-deep:  #0a2327;  /* deepest teal — hero & footer        */
  --green:      #1d4a42;   /* dark green                          */
  --accent-deep:        #7e2d12;   /* dark red                            */
  --ink:        #16282c;   /* body text                           */
  --muted:      #576460;
  --line:       #e3dfc8;

  /* type */
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 14px;
  --shadow: 0 6px 22px rgba(10, 35, 39, .07);
  --shadow-lift: 0 14px 34px rgba(10, 35, 39, .12);

  --fs-h2: clamp(2rem, 4.6vw, 3.3rem);

  --header-h: 76px;
  --ease-liquid: cubic-bezier(.33, 1.2, .35, 1); /* slight slosh */
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.06; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
/* on dark surfaces a navy ring vanishes — switch to yellow there */
.hero :focus-visible, .page-hero :focus-visible, .insta :focus-visible,
.site-footer :focus-visible, .quote-panel :focus-visible,
.site-header:not(.scrolled) :focus-visible { outline-color: var(--accent-soft); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

::selection { background: var(--accent); color: var(--cream); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--teal); color: var(--cream); padding: .6em 1em; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }

/* mono eyebrow labels — the industrial bit */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: .7em;
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 2.2em; height: 2px; background: currentColor; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: var(--fs-h2); }
.lede { font-size: 1.15rem; color: var(--muted); }

/* ============================================================
   BUTTONS  (with liquid ripple — see main.js)
   ============================================================ */
.btn {
  --btn-bg: var(--accent);
  --btn-ink: var(--cream);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1rem/1 var(--font-head);
  letter-spacing: .01em;
  color: var(--btn-ink);
  background: var(--btn-bg);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 1em 1.7em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .35s var(--ease-liquid), box-shadow .35s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 26px rgba(168, 60, 23, .35); color: var(--btn-ink); }
.btn:active { transform: translateY(0) scale(.99); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-ink: var(--cream);
  border-color: currentColor;
}
.btn--ghost:hover { box-shadow: 0 12px 26px rgba(10, 35, 39, .25); }
.btn--ink { --btn-bg: var(--teal); --btn-ink: var(--cream); }
.btn--ink:hover { box-shadow: 0 12px 26px rgba(22, 56, 62, .35); }
.btn--ghost-dark { --btn-bg: transparent; --btn-ink: var(--teal); border-color: currentColor; }

/* ripple droplet */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 70%);
  transform: scale(0);
  animation: ripple .65s ease-out forwards;
}
@keyframes ripple { to { transform: scale(3); opacity: 0; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s ease, box-shadow .35s ease, color .35s ease;
  color: var(--cream);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-right { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem); }
.header-cta { padding: .75em 1.3em; font-size: .9rem; }
@media (max-width: 480px) { .header-cta { padding: .65em 1em; font-size: .82rem; } }
.site-header.scrolled {
  background: rgba(248, 247, 230, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(22, 56, 62, .12);
  color: var(--teal-deep);
}

.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 800 1.35rem/1 var(--font-head);
  letter-spacing: -.02em;
  color: inherit; text-decoration: none;
}
.logo:hover { color: inherit; }
.logo .logo-bowl { width: 30px; height: 30px; flex: none; }
.logo .tld { color: var(--accent); }
.site-header:not(.scrolled) .tld { color: var(--accent-soft); }

.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.main-nav a:not(.btn) {
  font: 600 .95rem/1 var(--font-head);
  color: inherit; text-decoration: none;
  padding: .4em 0; position: relative;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent);
  transition: right .3s var(--ease-liquid);
}
.main-nav a:not(.btn):hover::after, .main-nav a:not(.btn):focus-visible::after { right: 0; }
.main-nav .btn { padding: .75em 1.3em; font-size: .9rem; }
.ext-mark { font-size: .8em; opacity: .7; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; color: inherit;
  width: 44px; height: 44px; border-radius: 10px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: currentColor; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--teal-deep); color: var(--cream);
    padding: 1rem 4vw 1.5rem;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(calc(-100% - var(--header-h)));
    visibility: hidden;
    transition: transform .4s var(--ease-liquid), visibility 0s .4s;
    box-shadow: var(--shadow-lift);
  }
  .nav-open .main-nav { transform: translateY(0); visibility: visible; transition: transform .4s var(--ease-liquid), visibility 0s 0s; }
  .main-nav :focus-visible { outline-color: var(--accent-soft); }
  .main-nav a:not(.btn) { padding: .9em .2em; font-size: 1.1rem; border-bottom: 1px solid rgba(248,247,230,.12); }
  .main-nav .btn { margin-top: 1rem; justify-content: center; }
}

/* ============================================================
   HERO — video fills up like broth poured into a bowl
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--teal-deep);
  color: var(--cream);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  clip-path: inset(calc(100% - var(--fill, 0%)) 0 0 0);
}
/* animated duotone placeholder behind the (optional) video */
.hero-media .placeholder {
  position: absolute; inset: -10%;
  background:
    radial-gradient(65% 85% at 22% 35%, rgba(168,60,23,.55), transparent 62%),
    radial-gradient(55% 75% at 82% 18%, rgba(126,45,18,.6), transparent 62%),
    radial-gradient(70% 90% at 62% 88%, rgba(29,74,66,.55), transparent 65%),
    radial-gradient(40% 55% at 50% 60%, rgba(217,123,74,.22), transparent 70%),
    linear-gradient(160deg, #143a41, #0a2327 60%, #1a4650);
  animation: simmer 14s ease-in-out infinite alternate;
}
@keyframes simmer {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
}
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,35,39,.88) 0%, rgba(10,35,39,.35) 45%, rgba(10,35,39,.25) 100%);
}
/* the wave crest riding the fill line */
.hero-crest {
  position: absolute; left: -5%; width: 110%; height: 46px;
  bottom: var(--fill, 0%);
  transform: translateY(50%);
  color: rgba(244, 196, 83, .5);
  animation: bob 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bob { 0%, 100% { margin-left: -18px; } 50% { margin-left: 18px; } }
.hero.filled .hero-crest { opacity: 0; transition: opacity 1s ease; }

.hero-content {
  position: relative; z-index: 2;
  padding: calc(var(--header-h) + 3rem) 0 clamp(3.5rem, 9vh, 6rem);
}
.hero-kicker {
  font-family: var(--font-mono); font-size: .8rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 8.4vw, 6.8rem);
  font-weight: 900; text-transform: uppercase;
  margin: 0 0 1.2rem;
}
.hero h1 .cook { color: var(--accent-soft); display: inline-block; }
.hero-sub { max-width: 46ch; font-size: 1.15rem; color: rgba(248,247,230,.85); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-pause {
  position: absolute; left: clamp(1rem, 4vw, 3rem); bottom: 2rem; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,35,39,.45); color: var(--cream);
  border: 1.5px solid rgba(248,247,230,.4); cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.hero-pause:hover { background: rgba(10,35,39,.7); border-color: var(--accent); }
.hero-pause .icon-play { display: none; }
.hero.motion-paused .hero-pause .icon-play { display: block; }
.hero.motion-paused .hero-pause .icon-pause { display: none; }
.hero.motion-paused .placeholder, .hero.motion-paused .hero-crest { animation-play-state: paused; }

/* filmic grain over the hero */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .07;
  mix-blend-mode: overlay;
}

/* squiggly hand-drawn underline accent */
.squiggle-u {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='9' viewBox='0 0 26 9'%3E%3Cpath d='M0 5 Q 6.5 0 13 5 T 26 5' fill='none' stroke='%23a83c17' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left 100%/26px 9px;
  padding-bottom: .18em;
}
.page-hero .squiggle-u {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='9' viewBox='0 0 26 9'%3E%3Cpath d='M0 5 Q 6.5 0 13 5 T 26 5' fill='none' stroke='%23d97b4a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ============================================================
   TICKER — scrolling service strip
   ============================================================ */
.ticker {
  position: relative; z-index: 3;
  background: var(--accent);
  color: var(--cream);
  overflow: hidden;
  padding: .95rem 0;
  transform: rotate(-.6deg) scale(1.01);
  margin-top: -16px; /* tuck under the hero so the tilt shows no seam */
}
.ticker-track {
  display: flex; gap: 2.6rem; width: max-content;
  animation: ticker 26s linear infinite;
  font: 800 1.05rem/1 var(--font-head);
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 2.6rem; }
.ticker-track .dot { font-size: .7em; opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.scroll-cue {
  position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: 2.2rem; z-index: 2;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(248,247,230,.65);
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: .8em;
  text-decoration: none;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(var(--accent-soft), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* ============================================================
   WAVE DIVIDERS
   ============================================================ */
.wave-divider { display: block; width: 100%; height: clamp(38px, 6vw, 72px); }
.wave-divider path { fill: currentColor; }

/* ============================================================
   SCROLL REVEALS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s var(--ease-liquid); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ============================================================
   ABOUT — text left / image right
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.about-copy h2 { font-size: var(--fs-h2); }
.about-copy .big { font-size: 1.2rem; }
.about-facts {
  display: flex; gap: 2.2rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1.6rem;
  border-top: 2px solid var(--line);
}
.fact b { display: block; font: 800 1.9rem/1.1 var(--font-head); color: var(--teal); }
.fact span { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.about-visual { position: relative; }
.about-visual .frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--teal);
}
.about-visual::before {
  content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 2px solid var(--accent); border-radius: var(--radius);
  z-index: -1;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { margin-right: 1.4rem; }
}

/* ============================================================
   PROCESS — the squiggly broth road
   ============================================================ */
.process { background: var(--cream-2); }
.road { position: relative; }
.squiggle {
  position: absolute; top: 0; bottom: 185px; /* stops at the bowl — the road pours into it */
  left: 50%; width: 140px; transform: translateX(-50%);
  pointer-events: none;
}
.squiggle .bed { stroke: rgba(22, 56, 62, .18); }
.squiggle .broth {
  stroke: var(--accent);
  stroke-dasharray: 10 14;
  animation: flow 1.6s linear infinite;
  stroke-linecap: round;
}
.squiggle .broth.drawing {
  animation: none;
  transition: stroke-dashoffset .35s ease-out;
}
@keyframes flow { to { stroke-dashoffset: -24; } }

.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); }
.stage { display: grid; grid-template-columns: 1fr 140px 1fr; align-items: center; }
.stage .stage-card { grid-column: 1; }
.stage:nth-child(even) .stage-card { grid-column: 3; }
.stage::before {
  content: ""; grid-column: 2; grid-row: 1; justify-self: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  border: 5px solid var(--cream-2);
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 10px rgba(168, 60, 23, .15);
}

.stage-card {
  display: block; position: relative; overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem 1.4rem;
  box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  transition: transform .4s var(--ease-liquid), box-shadow .4s ease;
}
.stage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--ink); }
.stage-num {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .2em;
  color: var(--accent-deep);
}
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .1rem; }
.stage-date {
  font: 600 .66rem/1.4 var(--font-mono); letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(168, 60, 23, .08);
  border-radius: 999px;
  padding: .35em .9em;
  white-space: nowrap;
}
.stage-date.blub { animation: blub .5s var(--ease-liquid); }
@keyframes blub { 0% { transform: scale(.82); } 55% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* interactive cards (planner + delivery speed) */
.stage-card--live { cursor: default; }
.stage-field { display: grid; gap: .4rem; margin: .5rem 0 1rem; }
.stage-field > span {
  font: 500 .68rem/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.stage-field input[type="date"] {
  font: 600 1.02rem/1.4 var(--font-body);
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: .55em .9em;
  width: 100%; max-width: 250px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.stage-field input[type="date"]:hover { border-color: var(--accent-soft); }
.stage-field input[type="date"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(168,60,23,.1); }

.speed-pills { display: flex; gap: .45rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.speed-pill { position: relative; cursor: pointer; }
.speed-pill input { position: absolute; opacity: 0; pointer-events: none; }
.speed-pill span {
  display: inline-block;
  font: 600 .7rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: .6em 1.05em;
  transition: background .3s var(--ease-liquid), color .25s ease, border-color .25s ease, transform .3s var(--ease-liquid);
}
.speed-pill:hover span { border-color: var(--accent-soft); }
.speed-pill input:checked + span {
  background: var(--accent); border-color: var(--accent); color: var(--cream);
  transform: translateY(-1px);
}
.speed-pill input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.stage-card .stage-cta { text-decoration: none; }
.stage-card--live .stage-cta:hover { color: var(--accent-deep); }
.stage-card h3 { font-size: 1.35rem; margin: .35em 0 .3em; }
.stage-card p { color: var(--muted); font-size: .98rem; margin-bottom: .8em; }
.stage-cta { font: 700 .9rem/1 var(--font-head); color: var(--teal); }
.stage-card:hover .stage-cta { color: var(--accent-deep); }

/* road pours into the bowl */
.road-end { text-align: center; margin-top: clamp(2rem, 5vw, 3rem); position: relative; }
.road-end .bowl { width: 150px; margin-inline: auto; }
.road-end h3 { font-size: 1.5rem; margin-top: 1rem; }
.road-end p { color: var(--muted); }
.road-summary {
  display: block; width: max-content; max-width: 100%;
  font: 600 .74rem/1.6 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep);
  border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
  padding: .55em .4em;
  margin: 0 auto 1.4rem;
}
.road-end .btn { margin-top: .2rem; }

/* steam — used above bowls & the footer pot */
.steam { position: relative; height: 46px; width: 90px; margin-inline: auto; }
.steam i {
  position: absolute; bottom: 0; width: 5px; height: 34px; border-radius: 6px;
  background: linear-gradient(to top, rgba(22,56,62,.30), transparent);
  filter: blur(1.5px);
  animation: waft 3s ease-in-out infinite;
  opacity: 0;
}
.steam i:nth-child(1) { left: 22%; animation-delay: 0s; }
.steam i:nth-child(2) { left: 48%; animation-delay: .9s; height: 42px; }
.steam i:nth-child(3) { left: 72%; animation-delay: 1.7s; }
.steam--light i { background: linear-gradient(to top, rgba(248,247,230,.5), transparent); }
@keyframes waft {
  0%   { transform: translateY(8px) scaleY(.4) translateX(0); opacity: 0; }
  35%  { opacity: .9; }
  100% { transform: translateY(-26px) scaleY(1.1) translateX(4px); opacity: 0; }
}

@media (max-width: 820px) {
  .squiggle { left: 10px; width: 44px; transform: none; }
  .stage { grid-template-columns: 64px 1fr; }
  .stage .stage-card, .stage:nth-child(even) .stage-card { grid-column: 2; }
  .stage::before { grid-column: 1; grid-row: 1; border-color: var(--cream-2); }
}

/* ============================================================
   THE JOURNEY — full-screen scroll story, Apple-quiet
   ============================================================ */
.journey-grid { display: grid; gap: clamp(1.2rem, 3vh, 2.2rem); justify-items: center; }
.journey-scene, .journey-final { display: none; }
/* static / reduced-motion fallback: steps stack, plain and readable */
.journey-copy { width: 100%; max-width: 620px; }
.journey-step { padding: 1.6rem 0 .4rem; border-top: 2px dashed var(--line); }
.journey-step:first-child { border-top: 0; padding-top: 0; }
.stage-links { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: baseline; }
.stage-cta--alt { color: var(--accent-deep); }

/* live mode — enabled by JS when motion is allowed */
.journey--live { height: 460vh; }
.journey--live .journey-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; align-content: center;
  padding-top: calc(var(--header-h) * .6);
}
.journey--live .journey-grid {
  grid-template-columns: minmax(320px, 440px) 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  justify-items: stretch;
}
.journey--live .journey-copy { order: 1; }
.journey--live .journey-scene { order: 2; }
.journey--live .journey-copy {
  position: relative; text-align: left;
  height: clamp(280px, 42svh, 380px);
  max-width: none; width: 100%;
}
.journey--live .journey-step {
  position: absolute; inset: 0;
  border: 0; padding: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  opacity: 0; filter: blur(14px); transform: translateY(16px) scale(.99);
  visibility: hidden;
  transition: opacity .7s ease, filter .7s ease, transform .8s var(--ease-liquid), visibility 0s .7s;
}
.journey--live .journey-step.active {
  opacity: 1; filter: blur(0); transform: none; visibility: visible;
  transition: opacity .8s ease .15s, filter .8s ease .15s, transform .9s var(--ease-liquid) .15s, visibility 0s;
}
.journey--live .journey-step h3 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: .3em 0 .35em; }
.journey--live .journey-step p { max-width: 44ch; color: var(--muted); }
.journey--live .stage-top { gap: .9rem; }

/* the drawing */
.journey--live .journey-scene {
  display: block; position: relative;
  width: 100%; max-width: 560px; aspect-ratio: 4 / 3; max-height: 52svh;
  margin-inline: auto;
  transform-origin: 53.8% 46%;
  will-change: transform;
}
.scene-float { position: absolute; inset: 0; }
.journey--live .scene-float { animation: j-float 8s ease-in-out infinite; }
@keyframes j-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.journey--live .journey-scene svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; filter: blur(10px); transform: translateY(10px);
  transition: opacity .9s ease, filter .9s ease, transform 1s var(--ease-liquid);
}
.journey--live .journey-scene svg.active { opacity: 1; filter: blur(0); transform: none; }
.jart path, .jart circle, .jart rect { stroke: var(--teal); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.jart .thin { stroke-width: 1.4; }
.jart .fill { stroke: none; }
.jart .plane { fill: none; stroke: var(--accent); }
.jart .check { stroke: #f8f7e6; stroke-width: 2.5; }
.jart .pupils circle { transition: transform .18s ease-out; }
.jart text { opacity: 0; transition: opacity .9s ease .5s; }
.jart.active text { opacity: 1; }
.jlabel { font: 600 14px var(--font-mono); fill: var(--accent-deep); letter-spacing: .06em; stroke: none; }
.jlabel.jsmall { font-size: 8.5px; letter-spacing: .02em; fill: var(--accent-deep); }
.jart .mood { opacity: 0; transition: opacity .5s ease; }
.scene-edit.m-urgent .mood-urgent, .scene-edit.m-normal .mood-normal, .scene-edit.m-slow .mood-slow { opacity: 1; }

/* quiet idle motion — runs only while a scene is showing */
.jart .idle-breathe, .jart .idle-sway { transform-box: fill-box; transform-origin: 50% 100%; }
.jart .idle-pan, .jart .idle-drift { transform-box: fill-box; transform-origin: 50% 50%; }
.jart.active .idle-breathe { animation: j-breathe 4.5s ease-in-out infinite; }
@keyframes j-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }
.jart.active .idle-sway { animation: j-sway 6s ease-in-out infinite; }
@keyframes j-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(2.4deg); } }
.jart.active .idle-pan { animation: j-pan 7s ease-in-out infinite; }
@keyframes j-pan { 0%, 100% { transform: rotate(-.7deg); } 50% { transform: rotate(.7deg); } }
.jart.active .idle-drift { animation: j-drift 5s ease-in-out infinite; }
@keyframes j-drift { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(4px, -4px) rotate(2deg); } }
.jart.active .idle-steam path { animation: j-steam 3.6s ease-in-out infinite; }
.jart.active .idle-steam path:nth-child(2) { animation-delay: 1.4s; }
@keyframes j-steam { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-3px); opacity: .9; } }
.jart.active .idle-playhead { animation: j-playhead 7s ease-in-out infinite alternate; }
@keyframes j-playhead { from { transform: translateX(0); } to { transform: translateX(52px); } }
.jart.active .idle-pulse { animation: j-pulse 2.8s ease-in-out infinite; }
@keyframes j-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.jart.active .twinkle path { animation: j-twinkle 3.2s ease-in-out infinite; }
.jart.active .twinkle path:nth-child(2) { animation-delay: 1.1s; }
.jart.active .twinkle path:nth-child(3) { animation-delay: 2.2s; }
@keyframes j-twinkle { 0%, 100% { opacity: .12; } 50% { opacity: 1; } }
.jart.active .rec { animation: rec-blink 1.6s steps(1) infinite; }
@keyframes rec-blink { 50% { opacity: .12; } }

/* the zoomed-in screen */
.journey--live .journey-final {
  display: grid; place-items: center;
  position: absolute; inset: 0; z-index: 5;
  background: var(--teal-deep);
  opacity: 0; pointer-events: none;
  text-align: center;
}
.jf-noise {
  position: absolute; inset: 0; opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}
.journey--live .jf-noise { animation: jf-static .32s steps(3) infinite; }
@keyframes jf-static {
  0% { background-position: 0 0; } 33% { background-position: -68px 34px; }
  66% { background-position: 52px -58px; } 100% { background-position: 0 0; }
}
.jf-scanlines {
  position: absolute; inset: 0; opacity: .45;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 2px, transparent 2px 5px);
}
.jf-inner { position: relative; color: var(--cream); padding: 2rem; max-width: 780px; }
.jf-kicker {
  font: 600 .78rem/1.4 var(--font-mono); letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: .8rem;
}
.jf-title {
  font: 900 clamp(2.4rem, 7vw, 5rem)/1.02 var(--font-head);
  text-transform: uppercase; letter-spacing: -.01em;
  margin: 0 0 1.2rem;
}
.jf-summary { color: var(--accent-soft); border-color: rgba(217, 123, 74, .4); }
.jf-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .journey--live { height: 430vh; }
  .journey--live .journey-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .journey--live .journey-scene { order: 1; max-height: 30svh; max-width: 380px; }
  .journey--live .journey-copy { order: 2; height: clamp(250px, 36svh, 340px); }
  .journey--live .journey-step { align-items: center; text-align: center; justify-content: flex-start; }
  .journey--live .journey-step p { margin-inline: auto; }
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 330px));
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2rem);
}
.team-card {
  position: relative; overflow: hidden;
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.6rem 1.6rem;
  text-align: center;
  transition: transform .4s var(--ease-liquid), box-shadow .4s ease;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.avatar {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  font: 800 1.7rem/1 var(--font-head);
  color: var(--cream);
  position: relative;
}
.avatar::before {
  content: ""; position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='15' viewBox='0 0 32 15'%3E%3Cpath d='M8 15c0-5 5-5 5-10M19 15c0-5 5-5 5-10' fill='none' stroke='%2316383e' stroke-opacity='.4' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain;
}
.avatar--teal { background: var(--teal); }
.avatar--green { background: var(--green); }
.avatar--accent-deep { background: var(--accent-deep); }
.avatar--accent { background: var(--accent); color: var(--cream); }
.team-card h3 { font-size: 1.2rem; margin-bottom: .15em; }
.team-role { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: .8em; }
.team-soup { color: var(--muted); font-size: .92rem; margin: 0; }
.team-soup b { color: var(--ink); font-weight: 600; }

/* ============================================================
   CLIENT LOGO CAROUSEL
   ============================================================ */
.clients {
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients-label {
  text-align: center;
  font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.logo-carousel { overflow: hidden; position: relative; }
.logo-carousel::before, .logo-carousel::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 8vw, 110px); z-index: 1;
  pointer-events: none;
}
.logo-carousel::before { left: 0; background: linear-gradient(to right, var(--cream), transparent); }
.logo-carousel::after { right: 0; background: linear-gradient(to left, var(--cream), transparent); }
.logo-track { display: flex; width: max-content; }
.logo-track:not(.static) { animation: logo-scroll 32s linear infinite; }
.logo-carousel:hover .logo-track { animation-play-state: paused; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }
.logo-set {
  display: flex; align-items: center;
  gap: clamp(2.2rem, 6vw, 4.5rem);
  padding-right: clamp(2.2rem, 6vw, 4.5rem);
}
.client-logo {
  display: inline-flex; align-items: center; gap: .65rem;
  font: 800 1.3rem/1 var(--font-head);
  color: var(--teal); opacity: .85;
  white-space: nowrap;
}
.client-logo svg { width: 26px; height: 26px; flex: none; }
.client-logo.is-placeholder {
  font: 600 .95rem/1 var(--font-body);
  color: var(--muted);
  border: 2px dashed var(--line); border-radius: 999px;
  padding: .7em 1.3em;
}
.logo-track.static { flex-wrap: wrap; justify-content: center; width: 100%; }

/* ============================================================
   FEATURED WORK
   ============================================================ */
.work-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.work-card {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--cream);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  cursor: pointer; border: 0; padding: 0;
  text-decoration: none;
  transition: transform .4s var(--ease-liquid), box-shadow .4s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--cream); }
.work-card svg.backdrop-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.work-play {
  position: relative; z-index: 1;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--cream);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
  transition: transform .35s var(--ease-liquid);
}
.work-card:hover .work-play { transform: scale(1.1); }
.work-meta {
  position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  text-align: left;
}
.work-meta b { font: 700 1rem/1.3 var(--font-head); }
.work-meta span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(248,247,230,.7); white-space: nowrap; }
.work-cta { margin-top: 1.8rem; }

/* ============================================================
   TESTIMONIALS — hidden until real quotes exist in config.js
   ============================================================ */
.kudos { background: var(--cream-2); }
.kudos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.kudo {
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.8rem;
  margin: 0;
}
.kudo p { font-size: 1.05rem; }
.kudo p::before { content: "“"; color: var(--accent); font: 900 1.6em/0 var(--font-head); vertical-align: -.3em; margin-right: .1em; }
.kudo footer { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.client-strip { margin-top: 2rem; text-align: center; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   INSTAGRAM STRIP
   ============================================================ */
.insta { background: var(--teal); color: var(--cream); }
.insta .section-head h2 { color: var(--cream); }
.insta .lede { color: rgba(248,247,230,.7); }
.insta .eyebrow { color: var(--accent-soft); }
.insta-strip {
  display: flex; gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.insta-strip::-webkit-scrollbar { height: 8px; }
.insta-strip::-webkit-scrollbar-thumb { background: rgba(248,247,230,.25); border-radius: 4px; }
.insta-tile {
  flex: 0 0 min(240px, 62vw);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  display: grid; place-items: center;
  color: var(--cream); text-decoration: none;
  transition: transform .4s var(--ease-liquid);
}
.insta-tile:hover { transform: translateY(-5px) scale(1.02); color: var(--cream); }
.insta-tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.insta-tile .tag {
  position: relative; z-index: 1;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  background: rgba(10,35,39,.55); padding: .5em .9em; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.insta-cta { margin-top: 1.6rem; }
.insta-embed iframe { width: 100%; min-height: 420px; border: 0; border-radius: var(--radius); }

.skyline-divider {
  display: block; width: 100%; height: clamp(54px, 8vw, 110px);
  color: var(--teal);
  margin-bottom: -1px;
}

/* ============================================================
   FOOTER — the soup pot
   ============================================================ */
.site-footer {
  background: var(--teal-deep); color: var(--cream);
  position: relative;
  padding-bottom: 2rem;
}
.footer-divider { color: var(--teal-deep); margin-bottom: -1px; background: var(--cream); }
body.has-hero .footer-divider { background: var(--teal); }

.footer-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem;
  align-items: start;
}
.site-footer h2 { color: var(--cream); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.site-footer .eyebrow { color: var(--accent-soft); }
.footer-note { color: rgba(248,247,230,.7); max-width: 42ch; }

/* --- contact form ------------------------------------------- */
.contact-form { display: grid; gap: 1rem; margin-top: 1.6rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .contact-form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(248,247,230,.7); }
.field input, .field textarea {
  font: 500 1rem/1.5 var(--font-body);
  color: var(--cream);
  background: rgba(248,247,230,.07);
  border: 1.5px solid rgba(248,247,230,.25);
  border-radius: 10px;
  padding: .8em 1em;
  transition: border-color .25s ease, background .25s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(248,247,230,.55); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  background: rgba(248,247,230,.11);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-hint { font-size: .85rem; color: rgba(248,247,230,.55); margin: 0; }
.form-error { color: var(--accent-soft); font-size: .95rem; margin: 0; }
.form-note { color: var(--accent-soft); font-size: .95rem; margin: 0; }
.form-note a { color: inherit; font-weight: 700; }
.form-light .form-note { color: var(--green); }

/* light variant (contact page) */
.form-light .field span { color: var(--muted); }
.form-light .field input, .form-light .field textarea {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}
.form-light .field input:focus, .form-light .field textarea:focus { border-color: var(--accent); }
.form-light .field input::placeholder, .form-light .field textarea::placeholder { color: #98a0aa; }
.form-light .form-hint { color: var(--muted); }
.form-light .form-error { color: var(--accent-deep); }
.form-light .form-note { color: var(--green); }

/* --- bowl-filling success animation --------------------------- */
.form-success { text-align: center; padding: 1.5rem 0; }
.form-success .bowl-anim { width: 170px; margin: 0 auto; }
.form-success h2, .form-success h3 { font-size: 1.5rem; margin-top: .4rem; }
.form-success p { color: rgba(248,247,230,.75); }
.form-success--light { color: var(--teal); }
.form-success--light h2, .form-success--light h3 { color: var(--ink); }
.form-success--light p { color: var(--muted); }
.bowl-anim .broth-fill { transform: translateY(46px); }
.form-success.served .broth-fill { animation: fill-bowl 1.6s var(--ease-liquid) forwards .2s; }
@keyframes fill-bowl { to { transform: translateY(0); } }
.form-success .steam i { animation-play-state: paused; opacity: 0; }
.form-success.served .steam i { animation-play-state: running; }

/* --- the pot: floating social bubbles ------------------------- */
.footer-pot-zone { text-align: center; }
.pot-label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(248,247,230,.6); margin-bottom: .6rem; }
.pot {
  position: relative;
  height: 300px;
  border-radius: 46% 46% 42% 42% / 34% 34% 60% 60%;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(217,123,74,.22), transparent 55%),
    radial-gradient(100% 100% at 50% 100%, rgba(126,45,18,.35), transparent 70%),
    linear-gradient(180deg, #1a454e, #0d3037);
  border: 2px solid rgba(248,247,230,.14);
  overflow: hidden;
}
.pot::after { /* broth surface sheen */
  content: ""; position: absolute; left: -20%; right: -20%; top: 12%;
  height: 30px; border-radius: 50%;
  background: linear-gradient(rgba(217,123,74,.16), transparent);
  filter: blur(6px);
}
.footer-pot-zone .steam { margin: 0 auto -6px; }

.bubble {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--teal-deep);
  background: radial-gradient(circle at 32% 28%, #fff8e6, var(--accent-soft) 55%, var(--accent));
  box-shadow: inset -6px -8px 14px rgba(126,45,18,.18), 0 10px 24px rgba(0,0,0,.3);
  text-decoration: none;
  transition: left 1s var(--ease-liquid), top 1s var(--ease-liquid), box-shadow .3s ease;
  will-change: transform;
}
.bubble svg { width: 30px; height: 30px; }
.bubble b {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  font: 600 .68rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(248,247,230,.75);
  opacity: 0; transition: opacity .4s ease;
  white-space: nowrap;
}
.bubble:hover, .bubble:focus-visible { box-shadow: inset -6px -8px 14px rgba(126,45,18,.18), 0 0 0 4px rgba(217,123,74,.4), 0 12px 28px rgba(0,0,0,.35); }
/* aligned state (hover / keyboard focus in the pot) */
.pot.aligned .bubble { left: var(--ax); top: var(--ay); }
.pot.aligned .bubble b { opacity: 1; }

.pot-hint { margin-top: .9rem; font-size: .85rem; color: rgba(248,247,230,.55); }
@media (hover: none) {
  .pot .bubble { left: var(--ax); top: var(--ay); }
  .bubble b { opacity: 1; }
  .pot-hint { display: none; }
}

/* --- footer bottom bar ---------------------------------------- */
.footer-bottom {
  border-top: 1px solid rgba(248,247,230,.14);
  padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  font-size: .88rem; color: rgba(248,247,230,.6);
}
.footer-bottom a { color: rgba(248,247,230,.85); }
.footer-bottom a:hover { color: var(--accent-soft); }
.footer-bottom .foot-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-legal { width: 100%; margin: .2rem 0 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: rgba(248,247,230,.45); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
  .pot { max-width: 460px; margin-inline: auto; }
}

/* ============================================================
   SUBPAGE HERO (services / contact)
   ============================================================ */
.page-hero {
  background: var(--teal-deep); color: var(--cream);
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)) 0 calc(clamp(2.5rem, 6vw, 4rem) + clamp(30px, 5vw, 58px));
  position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 900; text-transform: uppercase; }
.page-hero .lede { color: rgba(248,247,230,.78); max-width: 56ch; }
.page-hero .eyebrow { color: var(--accent-soft); }
.page-hero .backdrop {
  position: absolute; inset: 0; opacity: .65; pointer-events: none;
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(126,45,18,.4), transparent 60%),
    radial-gradient(40% 55% at 78% 75%, rgba(168,60,23,.22), transparent 65%),
    radial-gradient(45% 60% at 10% 80%, rgba(29,74,66,.45), transparent 60%);
}
.page-hero-art {
  position: absolute; right: clamp(2rem, 8vw, 9rem); bottom: clamp(24px, 4vw, 44px);
  width: clamp(150px, 18vw, 240px); opacity: .95;
}
.page-hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: clamp(30px, 5vw, 58px); width: 100%;
  color: var(--cream);
}
@media (max-width: 760px) { .page-hero-art { display: none; } }

/* ============================================================
   SERVICES — the menu (pricing table)
   ============================================================ */
.menu-note { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); letter-spacing: .06em; }
.menu { display: grid; gap: .9rem; margin: 1.6rem 0 0; }
.menu-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.1rem; align-items: center;
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-liquid), border-color .25s ease, box-shadow .35s ease;
}
.menu-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.menu-row input { position: absolute; opacity: 0; pointer-events: none; }
.menu-row:has(input:checked) { border-color: var(--accent); background: #f9efe4; }
.menu-row:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.menu-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--line);
  display: grid; place-items: center; flex: none;
  transition: border-color .25s ease;
}
.menu-dot::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); transform: scale(0);
  transition: transform .3s var(--ease-liquid);
}
.menu-row:has(input:checked) .menu-dot { border-color: var(--accent); }
.menu-row:has(input:checked) .menu-dot::after { transform: scale(1); }
/* fallbacks for browsers without :has() */
.menu-row input:checked + .menu-dot { border-color: var(--accent); }
.menu-row input:checked + .menu-dot::after { transform: scale(1); }
.menu-row input:focus-visible + .menu-dot { outline: 3px solid var(--teal); outline-offset: 3px; }
.menu-name-line { display: flex; align-items: baseline; gap: .7rem; }
.menu-num { font-family: var(--font-mono); font-size: .72rem; color: var(--accent-deep); letter-spacing: .1em; }
.menu-leader { flex: 1; min-width: 2rem; border-bottom: 2px dotted var(--line); transform: translateY(-.35em); }
.menu-info h3 { font-size: 1.15rem; margin: 0 0 .15em; }
.menu-info p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 620px) { .menu-leader { display: none; } }
.menu-meta { text-align: right; }
.menu-price { display: block; font: 800 1.15rem/1.2 var(--font-head); color: var(--teal); }
.menu-lead { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 620px) {
  .menu-row { grid-template-columns: auto 1fr; }
  .menu-meta { grid-column: 2; text-align: left; }
}

/* --- quote configurator --------------------------------------- */
.quote-panel {
  margin-top: clamp(2rem, 5vw, 3rem);
  background: var(--teal);
  color: var(--cream);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-lift);
  position: relative; overflow: hidden;
}
.quote-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 90% 10%, rgba(217,123,74,.15), transparent 60%);
}
.quote-panel h2 { color: var(--cream); font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.quote-controls { margin-top: 1.4rem; position: relative; }
.qc-group {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.1rem 1.2rem; align-items: end;
  margin-bottom: 1.1rem;
}
.quote-controls .field span { color: rgba(248,247,230,.7); }
.quote-controls input, .quote-controls select {
  font: 600 1.1rem/1.4 var(--font-body);
  color: var(--cream);
  background: rgba(248,247,230,.08);
  border: 1.5px solid rgba(248,247,230,.3);
  border-radius: 10px;
  padding: .7em 1em;
  width: 100%;
}
.quote-controls select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23f8f7e6' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.6em;
  cursor: pointer;
}
.quote-controls select option { color: var(--ink); background: var(--paper); }
.quote-controls input:focus, .quote-controls select:focus { outline: none; border-color: var(--accent-soft); }
.check {
  display: flex; align-items: center; gap: .7rem;
  color: rgba(248,247,230,.85);
  font-size: .98rem; line-height: 1.35;
  padding: .65em 0;
  cursor: pointer;
  align-self: end;
}
.check input {
  width: 21px; height: 21px; flex: none;
  accent-color: var(--accent);
  cursor: pointer;
}
.check b { color: var(--accent-soft); font-weight: 700; }

.quote-result { margin-top: 2rem; border-top: 1px solid rgba(248,247,230,.18); padding-top: 1.6rem; }
.quote-figure { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.quote-amount { font: 900 clamp(2.6rem, 7vw, 4.2rem)/1 var(--font-head); color: var(--accent-soft); }
.quote-approx { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(248,247,230,.6); }
.quote-breakdown { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .4rem; max-width: 460px; }
.quote-breakdown li { display: flex; justify-content: space-between; gap: 2rem; font-size: .95rem; color: rgba(248,247,230,.85); }
.quote-breakdown li.total { border-top: 1px solid rgba(248,247,230,.25); padding-top: .5rem; font-weight: 700; color: var(--cream); }
.budget-verdict {
  display: inline-block; border-radius: 999px; padding: .45em 1em;
  font: 600 .85rem/1.3 var(--font-body); margin-bottom: 1.2rem;
}
.budget-verdict.fits { background: rgba(29,74,66,.55); color: #cfe8d8; }
.budget-verdict.close { background: rgba(168,60,23,.25); color: var(--accent-soft); }
.budget-verdict.over { background: rgba(126,45,18,.45); color: #f3c9c2; }
.quote-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.quote-small { font-size: .82rem; color: rgba(248,247,230,.55); margin-top: 1.2rem; }

/* ============================================================
   FAQ (services)
   ============================================================ */
.faq { max-width: 780px; margin-top: clamp(2.5rem, 6vw, 4rem); }
.faq-item {
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: .8rem;
  border: 2px solid transparent;
  transition: border-color .25s ease;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  cursor: pointer; list-style: none;
  font: 700 1.05rem/1.4 var(--font-head);
  padding: 1.1rem 3.2rem 1.1rem 1.4rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font: 400 1.5rem/1 var(--font-head); color: var(--accent);
  transition: transform .3s var(--ease-liquid);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted); }

.quote-reset {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: rgba(248,247,230,.55);
  text-decoration: underline; text-underline-offset: 3px;
}
.quote-reset:hover { color: var(--accent-soft); }

/* planner handoff note (filled from /?start=…&delivery=…) */
.quote-start-note {
  display: inline-block;
  font: 600 .72rem/1.6 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-soft);
  border: 1.5px dashed rgba(217, 123, 74, .45);
  border-radius: 999px;
  padding: .55em 1.2em;
  margin: .2rem 0 0;
}

/* quote-panel testimonial — hidden until config has real quotes */
.quote-quote { margin: 1.6rem 0 0; padding-left: 1rem; border-left: 3px solid var(--accent); }
.quote-quote p { color: rgba(248,247,230,.85); font-style: italic; margin-bottom: .3em; }
.quote-quote footer { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(248,247,230,.55); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside {
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem;
}
.contact-aside h2, .contact-aside h3 { font-size: 1.2rem; }
.contact-aside .item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-aside .item:last-of-type { border-bottom: 0; }
.contact-aside .item span { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .3em; }
.contact-aside .item a { font-weight: 600; }

/* ============================================================
   MOTION SENSITIVITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-media { clip-path: none !important; }
  .hero-crest { display: none; }
  .reveal { opacity: 1; transform: none; }
}
