/* ============================================================
   Sundae Lane — marketing site
   HAUS / editorial-minimal. Recreated from the design handoff
   (design_handoff_sundae_lane/, Direction D).

   Tokens mirror the `dirD` object + handoff README. The prototype
   was a fixed 1280px artboard; the responsive treatment here is the
   production addition (see "Responsive" at the bottom).
   ============================================================ */

/* ---- Fonts ----------------------------------------------------------------
   Self-hosted (latin subset, woff2) from /assets/fonts/ — no Google Fonts CDN.
   This avoids the render-blocking @import waterfall and the privacy leak of
   sending every visitor's IP to Google. Geist and Geist Mono are variable
   fonts (one file spans the weight range); Instrument Serif ships roman +
   italic. Subset matches the prototype's latin coverage (®, em dash, curly
   quotes, ↑↓); the few remaining glyphs (→ ↗ ★) fall back to system fonts
   exactly as before. The 1–2 critical weights are <link rel=preload>ed in HTML. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Type */
  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  --font-mono: "Geist Mono", "SF Mono", ui-monospace, monospace;

  /* Color (Direction D) */
  --paper: #F7F5E9;        /* primary cream background */
  --paper-2: #EFEBDB;      /* deeper cream / placeholder stripe */
  --ink: #1A1A1A;          /* text + dark sections */
  --ink-2: #5A584E;        /* secondary text */
  --ink-3: #6E6C62;        /* tertiary / mono meta — darkened from #9A968A for WCAG AA (~4.8:1 on --paper; all uses are on cream) */
  --rule: rgba(26, 26, 26, 0.16);       /* hairline borders */
  --rule-soft: rgba(26, 26, 26, 0.08);
  --rule-on-dark: rgba(247, 245, 233, 0.22);
  --paper-dim: rgba(247, 245, 233, 0.65);

  --biscuits: #F4D27A;     /* Biscuits yellow card */
  --picnic: #F7CC6F;       /* Picnic accent (on dark) */
  --terracotta: #E2653E;   /* hero accent / nav dot */
  --sage: #3A574F;
  --slate: #28668C;

  /* Geometry */
  --r-frame: 18px;
  --r-pill: 999px;
  --r-photo: 8px;

  /* Layout */
  --page-max: 1280px;
  --frame-inset: 56px;   /* section padding around the outline */
  --frame-gutter: 80px;  /* tab inset from frame corners */
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body {
  font-feature-settings: "ss01", "ss02";
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

/* ---- Skip link (keyboard a11y) -------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* Anchor targets clear the (non-fixed) nav comfortably */
[id] { scroll-margin-top: 32px; }

/* ---- Page shell ----------------------------------------------------------- */
.page {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 1px 60px rgba(26, 26, 26, 0.06);
}

/* Grain overlay (inline SVG feTurbulence, multiply blend) */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-size: 200px 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* ---- Shared text utilities ------------------------------------------------ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.eyebrow,
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.italic { font-style: italic; }
.accent { color: var(--terracotta); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--terracotta); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-picnic { background: var(--picnic); color: var(--ink); }
.btn-picnic:hover { background: var(--paper); }

/* ============================================================
   FrameSection — the signature outlined-rectangle motif
   ============================================================ */
.frame-section {
  position: relative;
  padding: 60px var(--frame-inset);
  background: var(--paper);
  color: var(--ink);
}
.frame {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--r-frame);
  padding: 120px 80px;
  min-height: 600px;
}

/* Side tab (rotated pill pinned to the left edge) */
.frame__side-tab {
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
}
.frame__side-tab span {
  display: block;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 10px 22px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--ink);
  opacity: 0.8;
}

/* Top tabs (sit on the top border, bottom radius only) */
.frame__top-tabs {
  position: absolute;
  top: -1px;
  left: var(--frame-gutter);
  right: var(--frame-gutter);
  display: flex;
}
.frame__top-tab {
  min-width: 140px;
  margin-left: -1px;
  padding: 14px 28px;
  border: 1px solid var(--rule);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-2);
}
.frame__top-tab:first-child { margin-left: 0; }
.frame__top-tab--active { color: var(--ink); font-weight: 600; }
.frame__top-tab { transition: color 150ms ease; }
.frame__top-tab:hover { color: var(--ink); }
.frame-section--dark .frame__top-tab:hover { color: var(--paper); }

/* Bottom bracketed metadata */
.frame__bottom-meta {
  position: absolute;
  bottom: -1px;
  left: var(--frame-gutter);
  right: var(--frame-gutter);
  display: flex;
}
.frame__meta-cell {
  flex: 1;
  margin-left: -1px;
  padding: 14px 24px;
  border: 1px solid var(--rule);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.frame__meta-cell:first-child { margin-left: 0; }

/* Dark variant */
.frame-section--dark { background: var(--ink); color: var(--paper); }
.frame-section--dark .frame { border-color: var(--rule-on-dark); }
.frame-section--dark .frame__side-tab span,
.frame-section--dark .frame__top-tab,
.frame-section--dark .frame__meta-cell {
  background: var(--ink);
  border-color: var(--rule-on-dark);
  color: var(--paper-dim);
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--frame-inset);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 30px; }
.nav__links { display: flex; gap: 28px; justify-content: flex-end; color: var(--ink-2); }
.nav__links a { transition: color 150ms ease; }
.nav__links a:hover { color: var(--ink); }

/* ============================================================
   Hero (§01)
   ============================================================ */
.hero .frame { padding: 100px 80px 140px; }
.hero__intro {
  max-width: 460px;
  margin: 24px 0 80px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.7;
}
.hero__headline {
  margin: 0;
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__bottom {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: flex-end;
}
.hero__scroll {
  max-width: 320px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ============================================================
   Biscuits Bundles — hero card (§02, yellow, top radius only)
   ============================================================ */
.biscuits-hero { padding: 60px var(--frame-inset) 0; margin-top: -1px; }
.biscuits-hero__card {
  position: relative;
  overflow: hidden;
  background: var(--biscuits);
  border: 1px solid var(--rule);
  border-bottom: none;
  border-radius: var(--r-frame) var(--r-frame) 0 0;
  padding: 80px 80px 0;
}
.biscuits-hero__meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 60px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.biscuits-hero__wordmark {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 40px;
}
.biscuits-hero__wordmark img { width: 92%; height: auto; }
.biscuits-hero__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: flex-end;
  padding-bottom: 60px;
}
.biscuits-hero__row h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.biscuits-hero__row p {
  max-width: 380px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}

/* ============================================================
   Biscuits Bundles — spec sheet (§02 cont., bottom radius)
   ============================================================ */
.biscuits-details { padding: 0 var(--frame-inset); margin-top: -1px; }
.biscuits-details__card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0 0 var(--r-frame) var(--r-frame);
  padding: 60px 80px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  margin-bottom: 60px;
}
.stat {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: none; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.biscuits-details__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
}
.biscuits-details__rail .eyebrow { margin-bottom: 20px; display: block; }
.biscuits-details__rail h3 {
  max-width: 280px;
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 0.95;
}
.biscuits-details__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.biscuits-details__ctas .btn { padding: 12px 22px; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
}
.feature {
  padding: 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.feature:nth-child(2n) { border-right: none; }
.feature:nth-last-child(-n + 2) { border-bottom: none; }
.feature__num {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.feature__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.015em;
}
.feature__body { font-size: 13px; line-height: 1.55; color: var(--ink-2); }

/* ============================================================
   Picnic — hero (§03, dark, concentric circle accent)
   ============================================================ */
.picnic { padding: 60px var(--frame-inset) 0; margin-top: -1px; }
.picnic__card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-frame);
  padding: 80px;
}
.picnic__circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
  width: 760px;
  height: 760px;
  max-width: 140%;
  border: 1px solid rgba(247, 245, 233, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.picnic__meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 80px;
}
.pill--dark {
  border-color: rgba(247, 245, 233, 0.4);
  background: transparent;
  color: var(--paper);
}
.picnic__lockup {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 0 60px;
}
.picnic__icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 36px;
  border-radius: 24px;
  border: 1px solid rgba(247, 245, 233, 0.25);
}
.picnic__wordmark {
  margin: 0;
  font-size: clamp(72px, 13vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 500;
  color: var(--paper);
}
.picnic__kicker {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(247, 245, 233, 0.55);
}
.picnic__tagline {
  margin: 20px 0 0;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-style: italic;
  font-weight: 400;
  color: var(--picnic);
}
.picnic__row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-top: 100px;
  align-items: start;
}
.picnic__row p {
  max-width: 360px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(247, 245, 233, 0.85);
}
.spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(247, 245, 233, 0.25);
}
.spec {
  padding: 16px;
  border-right: 1px solid rgba(247, 245, 233, 0.25);
  border-bottom: 1px solid rgba(247, 245, 233, 0.25);
}
.spec:nth-child(2n) { border-right: none; }
.spec:nth-last-child(-n + 2) { border-bottom: none; }
.spec__key {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 233, 0.55);
}
.spec__value { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }
.picnic__cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ============================================================
   Studio — team (§04)
   ============================================================ */
.studio .frame { padding: 80px; }
.studio__headline {
  margin: 24px 0 80px;
  font-size: clamp(36px, 5.5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 0.96;
}
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.team__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--r-photo);
  background: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, var(--paper-2) 0 12px, var(--paper) 12px 24px);
}
.team__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.05);
}
.team__rule {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.team__index,
.team__years {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.team__name { font-family: var(--font-display); font-size: 32px; letter-spacing: -0.015em; }
.team__role {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.team__bio { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ============================================================
   Contact (§05)
   ============================================================ */
.contact { padding: 60px var(--frame-inset) 0; margin-top: -1px; }
.contact__card {
  border: 1px solid var(--rule);
  border-radius: var(--r-frame);
  padding: 100px 80px;
}
.contact__headline {
  margin: 0 0 24px;
  font-size: clamp(48px, 9vw, 112px);
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-wrap: balance;
}
.contact__intro {
  max-width: 560px;
  margin: 0 0 64px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}
.contact__intro a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.contact__rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.contact__rail-block { margin-bottom: 40px; }
.contact__rail-block:last-child { margin-bottom: 0; }
.contact__rail-email {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.contact__rail-text { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px var(--frame-inset);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer__legal { line-height: 1.9; }
.footer__links { display: flex; gap: 24px; align-items: flex-start; }
.footer__links a { transition: color 150ms ease; }
.footer__links a:hover { color: var(--ink); }

/* ============================================================
   Legal / long-form pages (e.g. /privacy-policy)
   ============================================================ */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px var(--frame-inset) 24px;
}
.legal__back {
  display: inline-block;
  margin-bottom: 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 150ms ease;
}
.legal__back:hover { color: var(--ink); }
.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.legal__meta {
  display: block;
  margin-bottom: 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.015em;
}
.legal p { margin-bottom: 18px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal__entities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 24px 0 8px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.legal__entities--single { grid-template-columns: 1fr; }
.legal__entity .eyebrow { display: block; margin-bottom: 10px; }
.legal__entity p { margin-bottom: 0; }

/* ============================================================
   Responsive — production addition (prototype was fixed 1280px)
   ============================================================ */

/* Tablet: shrink frame insets, soften multi-col grids */
@media (max-width: 1099px) {
  :root { --frame-inset: 32px; --frame-gutter: 48px; }

  .frame { padding: 88px 56px; }
  .hero .frame { padding: 80px 56px 120px; }
  .studio .frame { padding: 56px; }
  .biscuits-hero__card { padding: 56px 56px 0; }
  .biscuits-details__card { padding: 48px 56px; }
  .picnic__card { padding: 56px; }
  .contact__card { padding: 72px 56px; }

  .biscuits-details__grid { grid-template-columns: 1fr; gap: 48px; }
  .picnic__row { grid-template-columns: 1fr; gap: 32px; }
}

/* Mobile: single column, hide side/top tabs, clamp display sizes */
@media (max-width: 699px) {
  :root { --frame-inset: 16px; --frame-gutter: 16px; }

  .frame { padding: 48px 24px; min-height: 0; }
  .hero .frame { padding: 56px 24px 72px; }
  .studio .frame { padding: 40px 24px; }
  .biscuits-hero__card,
  .biscuits-details__card,
  .picnic__card { padding: 40px 24px; }
  .contact__card { padding: 48px 24px; }

  /* Side tabs hidden; top tabs scroll horizontally rather than overflow */
  .frame__side-tab { display: none; }
  .frame__top-tabs {
    position: static;
    left: auto; right: auto;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .frame__top-tab { min-width: auto; white-space: nowrap; border-top: 1px solid var(--rule); border-radius: 12px; }
  .frame-section--dark .frame__top-tab { border-top: 1px solid var(--rule-on-dark); }
  .frame__bottom-meta { position: static; left: auto; right: auto; flex-wrap: wrap; margin-top: 24px; }

  .nav { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav__links { flex-wrap: wrap; gap: 16px; justify-content: flex-start; }

  .hero__bottom { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .biscuits-hero__row { grid-template-columns: 1fr; gap: 24px; }
  .biscuits-hero__wordmark img { width: 100%; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { border-right: none; }
  .feature:not(:last-child) { border-bottom: 1px solid var(--rule); }
  .spec-table { grid-template-columns: 1fr; }
  .spec { border-right: none; }
  .spec:not(:last-child) { border-bottom: 1px solid rgba(247, 245, 233, 0.25); }

  .team { grid-template-columns: 1fr; gap: 48px; }
  .contact__rail { grid-template-columns: 1fr; gap: 32px; }
  .legal__entities { grid-template-columns: 1fr; gap: 24px; }
  .footer { flex-direction: column; }

  /* 44px min touch targets */
  .btn { min-height: 44px; }
  .nav__links a { padding: 4px 0; }
}

/* Honour reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ---- Cookie consent banner ------------------------------------------------
   Shown only until the visitor makes a choice (consent.js toggles [hidden]).
   Google Analytics stays in Consent Mode "denied" until "Accept" is clicked. */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: 18px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(26, 26, 26, 0.28);
}
.consent[hidden] { display: none; }
.consent__text {
  flex: 1 1 280px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper-dim);
}
.consent__text a { color: var(--paper); text-decoration: underline; }
.consent__actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent__btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  border-radius: 8px;
  min-height: 40px;
}
.consent__btn--accept { background: var(--paper); color: var(--ink); }
.consent__btn--decline {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--rule-on-dark);
}
@media (max-width: 480px) {
  .consent__actions { width: 100%; }
  .consent__btn { flex: 1; }
}
