/* ==========================================================================
   Cubbly — site styles
   1. Fonts & design tokens   5. Header & navigation   9. Forms
   2. Base                    6. Footer                10. Page sections
   3. Layout helpers          7. Buttons & links       11. Motion
   4. Type                    8. Media & placeholders  12. Print
   ========================================================================== */

/* 1. Fonts & design tokens ------------------------------------------------ */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2-variations"),
       url("../fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var-italic.woff2") format("woff2-variations"),
       url("../fonts/figtree-var-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand palette (from the Cubbly brand identity) */
  --cherry: #C51D38;
  --cherry-deep: #A3172F;   /* hover/pressed shade of Cherry Red only */
  --powder: #C9E3F4;
  --milk: #FFFCF5;
  --ink: #24374A;
  --ink-muted: #4E5E6E;     /* secondary text on light backgrounds (6.5:1 on milk) */
  --line: #5B6B7B;          /* form borders (5.3:1 on milk) */
  --white: #FFFFFF;

  /* Type */
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-mega: clamp(3.8rem, 1.2rem + 8.4vw, 9.25rem);
  --t-h1: clamp(2.9rem, 1.35rem + 5.6vw, 6.75rem);
  --t-h2: clamp(2.3rem, 1.35rem + 3.7vw, 4.75rem);
  --t-h3: clamp(1.55rem, 1.15rem + 1.5vw, 2.4rem);
  --t-h4: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
  --t-lede: clamp(1.2rem, 1.06rem + .55vw, 1.5rem);
  --t-body: 1.125rem;
  --t-small: .9375rem;
  --t-xs: .8125rem;

  /* Space */
  --gutter: clamp(1.25rem, .6rem + 2.8vw, 3rem);
  --section-y: clamp(4.5rem, 2.5rem + 8vw, 9.5rem);
  --stack: 1.25rem;
  --wrap: 82rem;
  --header-h: 4.75rem;

  --radius: 3px;
  --focus: var(--ink);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; }
main:focus { outline: none; }
::selection { background: var(--cherry); color: var(--milk); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--milk); padding: .75rem 1rem; font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. Layout helpers ------------------------------------------------------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .6); }

.block--cherry { background: var(--cherry); color: var(--milk); --focus: var(--milk); }
.block--powder { background: var(--powder); color: var(--ink); }
.block--ink    { background: var(--ink); color: var(--milk); --focus: var(--powder); }
.block--milk   { background: var(--milk); color: var(--ink); }

/* Two-column editorial split: heading column + content column */
.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem) var(--gutter);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 60em) {
  .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .split--wide-right { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split--top { align-items: start; }
  .split--center { align-items: center; }
  .split > .split__offset { grid-column: 2; }
}

.flow > * + * { margin-top: var(--stack); }
.flow-lg > * + * { margin-top: calc(var(--stack) * 1.8); }
.measure { max-width: 36em; }

/* 4. Type ----------------------------------------------------------------- */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 82%;
  letter-spacing: -0.025em;
  line-height: .94;
  text-wrap: balance;
}
.display { font-size: var(--t-mega); letter-spacing: -0.035em; line-height: .88; }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); line-height: 1.02; letter-spacing: -0.015em; }
.h4 {
  font-family: var(--font-display); font-weight: 700; font-stretch: 92%;
  font-size: var(--t-h4); line-height: 1.15; letter-spacing: -0.005em;
}
.lede { font-size: var(--t-lede); line-height: 1.45; max-width: 32em; text-wrap: pretty; }
.prose p { max-width: 36em; text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.small { font-size: var(--t-small); }
.muted { color: var(--ink-muted); }
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: lowercase;
}
.label {
  font-weight: 700;
  font-size: var(--t-small);
  letter-spacing: .01em;
}

/* 5. Header & navigation ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--milk);
  border-bottom: 1px solid rgba(36, 55, 74, .14);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--cherry); text-decoration: none;
}
.brand .bears { width: 4.4rem; height: auto; flex: none; }
.brand .wordmark { font-size: 2rem; transform: translateY(-.06em); }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); }
.site-nav__list { display: flex; gap: clamp(.9rem, 1.6vw, 1.9rem); }
.site-nav__list a {
  font-weight: 600; text-decoration: none; padding-block: .4rem;
  border-bottom: 3px solid transparent;
}
.site-nav__list a:hover { border-bottom-color: rgba(197, 29, 56, .45); }
.site-nav__list a[aria-current="page"] { border-bottom-color: var(--cherry); }

.nav-toggle { display: none; }

@media (max-width: 63.99em) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    background: none; border: 2px solid var(--ink); border-radius: var(--radius);
    color: var(--ink); font: 700 1rem/1 var(--font-body); padding: .65rem .9rem; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative;
    transition: transform .2s ease, background-color .2s ease;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem 0 2rem;
  }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--milk); border-bottom: 1px solid rgba(36, 55, 74, .14);
    padding: 1rem var(--gutter) 2rem;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    display: block; padding: .7rem 0; border-bottom: 1px solid rgba(36, 55, 74, .14);
    font-family: var(--font-display); font-weight: 750; font-stretch: 85%; font-size: 1.85rem;
    letter-spacing: -0.02em;
  }
  .site-nav__list a[aria-current="page"] { color: var(--cherry); border-bottom-color: rgba(36, 55, 74, .14); }
  .site-nav__cta { align-self: flex-start; }
}
@media (max-width: 30em) { .brand .wordmark { font-size: 1.7rem; } .brand .bears { width: 3rem; } }

/* 6. Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--milk); padding-block: clamp(3.5rem, 2rem + 5vw, 6rem) 2rem; --focus: var(--powder); }
.site-footer__top {
  display: grid; gap: 2.5rem var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
@media (min-width: 64em) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; } }
.brand--footer { color: var(--milk); }
.brand--footer .bears { width: 5rem; }
.brand--footer .wordmark { font-size: 2.6rem; }
.site-footer__tagline {
  margin-top: 1rem; font-family: var(--font-display); font-weight: 700; font-stretch: 90%;
  font-size: 1.35rem; color: var(--powder);
}
.site-footer__heading { font-size: 1rem; font-weight: 700; color: var(--powder); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
.site-footer a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__small { margin-top: .8rem; font-size: var(--t-small); color: var(--powder); }
.site-footer__partner p { margin-bottom: 1.2rem; max-width: 22em; }
.site-footer__bottom {
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 252, 245, .2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: var(--t-small);
}

/* 7. Buttons & links ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .8rem 1.35rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--lg { min-height: 3.5rem; padding: 1rem 1.7rem; font-size: 1.0625rem; }
.btn--cherry { background: var(--cherry); color: var(--milk); }
.btn--cherry:hover { background: var(--cherry-deep); }
.btn--milk { background: var(--milk); color: var(--cherry); }
.btn--milk:hover { background: var(--white); color: var(--cherry-deep); }
.btn--powder { background: var(--powder); color: var(--ink); }
.btn--powder:hover { background: var(--milk); }
.btn--ink { background: var(--ink); color: var(--milk); }
.btn--ink:hover { background: #1a2938; }
.btn--outline { border-color: currentColor; background: transparent; }
.btn--outline:hover { background: rgba(255, 252, 245, .12); }
.btn[disabled] { opacity: .65; cursor: progress; }

.text-link {
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em;
}
.text-link:hover { text-decoration-thickness: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.prose a, .source a, .form-notice a { text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* 8. Media & placeholders -------------------------------------------------- */
.media-caption { font-size: var(--t-xs); line-height: 1.4; color: var(--ink-muted); margin-top: .75rem; max-width: 34em; }
.block--cherry .media-caption, .block--ink .media-caption { color: inherit; opacity: .9; }

/* Temporary photography slot. Replace each with licensed photography before launch. */
.photo-slot {
  position: relative; display: flex; align-items: flex-end;
  aspect-ratio: var(--ratio, 4 / 5); width: 100%;
  background-color: var(--powder);
  background-image: repeating-linear-gradient(135deg, rgba(36, 55, 74, .085) 0 2px, transparent 2px 16px);
  color: var(--ink);
  overflow: hidden;
}
.photo-slot--milk { background-color: #f3efe4; }
.photo-slot__note {
  margin: 1rem; padding: .85rem 1rem; max-width: 24rem;
  background: var(--milk); color: var(--ink);
  font-size: var(--t-xs); line-height: 1.45;
  border-left: 4px solid var(--cherry);
}
.photo-slot__note strong { display: block; font-size: var(--t-small); margin-bottom: .15rem; }
.photo-slot .bears { position: absolute; right: 8%; top: 10%; width: 34%; color: rgba(36, 55, 74, .12); }

.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* 9. Forms ------------------------------------------------------------------ */
.contact-form { display: grid; gap: 1.4rem; }
.field-row { display: grid; gap: 1.4rem var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-weight: 700; font-size: 1rem; }
.req { font-weight: 500; color: var(--ink-muted); font-size: var(--t-small); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.1rem;
  font: 400 1.0625rem/1.4 var(--font-body); color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: .75rem .9rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  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='%2324374A' stroke-width='2.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .95rem center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--cherry); outline-offset: 1px; border-color: var(--ink);
}
.field [aria-invalid="true"] { border-color: var(--cherry); border-width: 3px; }
.field-hint { font-size: var(--t-small); color: var(--ink-muted); }
.field-error { font-size: var(--t-small); font-weight: 700; color: var(--cherry); }
.field-error::before { content: "Error: "; }
.form-errors {
  border-left: 6px solid var(--cherry); background: var(--white); padding: 1rem 1.2rem;
}
.form-errors p { font-weight: 700; }
.form-errors ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.form-notice { font-size: var(--t-small); color: var(--ink-muted); max-width: 40em; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { font-weight: 700; }
.form-status.is-error { color: var(--cherry); }
.form-preview-notice {
  background: var(--powder); padding: 1rem 1.2rem; font-size: var(--t-small);
  border-left: 6px solid var(--ink);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form-success { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--powder); border-left: 8px solid var(--cherry); }
.form-success__title {
  font-family: var(--font-display); font-weight: 750; font-stretch: 88%;
  font-size: var(--t-h3); line-height: 1.08; letter-spacing: -0.015em; max-width: 22em;
}
.form-panel { background: var(--milk); color: var(--ink); padding: clamp(1.5rem, 1rem + 3vw, 3.25rem); --focus: var(--ink); }

/* 10. Page sections ------------------------------------------------------- */

/* Home hero: cherry copy block beside a milk product panel */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 60em) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: min(calc(100svh - var(--header-h)), 58rem); }
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: clamp(3.5rem, 2rem + 6vw, 7rem) var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.hero__copy .display { max-width: 8.5ch; }
.hero__status { font-size: var(--t-small); font-weight: 600; max-width: 34em; }
.hero__media {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: clamp(2rem, 4vw, 4rem) var(--gutter);
  background: var(--milk);
}
.hero__media picture { width: min(100%, 34rem); }
.hero__media .media-caption { align-self: stretch; text-align: center; margin-inline: auto; }

/* Problem */
.choices { border-top: 2px solid var(--ink); margin-top: 2rem; }
.choices li {
  padding: 1rem 0; border-bottom: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 700; font-stretch: 90%;
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.15; letter-spacing: -0.01em;
}
.stat-note {
  display: grid; gap: .5rem 2rem; margin-top: clamp(3rem, 6vw, 5rem);
  padding: 1.75rem 0 0; border-top: 6px solid var(--cherry);
}
@media (min-width: 48em) { .stat-note { grid-template-columns: auto minmax(0, 1fr); align-items: start; } }
.stat-note__figure {
  font-family: var(--font-display); font-weight: 800; font-stretch: 78%;
  font-size: clamp(3.5rem, 2.5rem + 4vw, 6rem); line-height: .85; color: var(--cherry); letter-spacing: -0.04em;
}
.stat-note__text { font-size: var(--t-lede); line-height: 1.4; max-width: 30em; }
.source { font-size: var(--t-xs); line-height: 1.5; color: var(--ink-muted); margin-top: .75rem; max-width: 46em; }
.block--cherry .source, .block--ink .source { color: inherit; opacity: .92; }

/* Principles (home) and pillars (food): editorial rows, not cards */
.rows { border-top: 2px solid currentColor; }
.row {
  display: grid; gap: .6rem var(--gutter); padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-bottom: 2px solid currentColor;
}
@media (min-width: 48em) { .row { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: baseline; } }
.row__title { color: var(--cherry); }
.block--powder .row__title { color: var(--cherry); }  /* cherry on powder: 4.4:1, large text only */
.row__body { font-size: var(--t-lede); line-height: 1.45; max-width: 30em; }

/* Brand philosophy */
.philosophy .bears { width: 100%; color: var(--milk); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.philosophy .h1 { max-width: 12ch; }
.philosophy__copy { font-size: var(--t-lede); line-height: 1.45; max-width: 30em; }

/* Markets */
.markets__list { list-style: none; padding: 0; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgba(255, 252, 245, .3); }
.markets__list li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 2rem;
  padding-block: clamp(.9rem, .6rem + 1vw, 1.5rem); border-bottom: 1px solid rgba(255, 252, 245, .3);
}
.markets__city {
  font-family: var(--font-display); font-weight: 800; font-stretch: 76%;
  font-size: clamp(2.6rem, 1.2rem + 6vw, 7.5rem); line-height: .9; letter-spacing: -0.035em; color: var(--powder);
}
.markets__state { font-weight: 600; font-size: var(--t-lede); }
.status-flag {
  display: inline-block; font-weight: 700; font-size: var(--t-small);
  border: 2px solid currentColor; border-radius: var(--radius); padding: .3rem .6rem;
}

/* Steps (facilities): a real sequence, so numbers carry meaning */
.steps { counter-reset: step; display: grid; gap: clamp(2rem, 4vw, 3rem) var(--gutter); }
@media (min-width: 56em) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: .75rem;
  font-family: var(--font-display); font-weight: 800; font-stretch: 76%;
  font-size: clamp(4rem, 3rem + 4vw, 7rem); line-height: .8; color: var(--cherry); letter-spacing: -0.04em;
}
.steps p { max-width: 24em; }

/* Benefit list */
.ticks { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.ticks li {
  display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .9rem;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(36, 55, 74, .35);
  font-size: var(--t-lede); line-height: 1.4;
}
.ticks li::before {
  content: ""; width: 1.25rem; height: 1.25rem; margin-top: .2em;
  background: var(--cherry);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5l4.2 4.2L17 5' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5l4.2 4.2L17 5' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Facility types: one flowing typographic run */
.type-run {
  font-family: var(--font-display); font-weight: 700; font-stretch: 86%;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.9rem); line-height: 1.15; letter-spacing: -0.02em;
  max-width: 30em; text-wrap: pretty;
}
.type-run span { color: var(--cherry); }

/* Mission statements */
.tenets { display: grid; gap: 0; border-top: 1px solid rgba(255, 252, 245, .35); }
.tenet {
  display: grid; gap: .5rem var(--gutter); padding-block: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-bottom: 1px solid rgba(255, 252, 245, .35);
}
@media (min-width: 48em) { .tenet { grid-template-columns: 12rem minmax(0, 1fr); align-items: baseline; } }
.tenet__label { font-weight: 700; color: var(--milk); }
.tenet__text { font-family: var(--font-display); font-weight: 800; font-stretch: 82%; font-size: var(--t-h3); line-height: 1.02; letter-spacing: -0.02em; max-width: 22em; }

/* Team */
.team { display: grid; gap: 2.5rem var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); max-width: 44rem; }
.team__name { margin-top: 1rem; }

/* Fact panels (nutrition references) */
.facts { display: grid; gap: 2.5rem var(--gutter); }
@media (min-width: 52em) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { border-top: 6px solid var(--cherry); padding-top: 1.25rem; }
.fact__figure {
  font-family: var(--font-display); font-weight: 800; font-stretch: 78%;
  font-size: clamp(2.6rem, 2rem + 2.6vw, 4.25rem); line-height: .9; letter-spacing: -0.035em;
}
.fact__figure small { font-size: .45em; letter-spacing: -0.01em; font-stretch: 90%; }
.fact p { margin-top: .9rem; max-width: 30em; }

.callout {
  border-left: 6px solid var(--cherry); padding: .25rem 0 .25rem 1.25rem; max-width: 40em;
}
.callout--ink { border-left-color: var(--ink); }

/* Page heroes (inner pages) */
.page-hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.page-hero .h1 { max-width: 13ch; }
.page-hero .lede { margin-top: 1.75rem; }
.page-hero--media .split { align-items: center; }

/* Closing CTA */
.closing .h1 { max-width: 11ch; }
.closing__copy { font-size: var(--t-lede); line-height: 1.45; max-width: 30em; margin-bottom: 2rem; }

/* Legal / long-form text */
.legal { max-width: 46rem; }
.legal h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 88%; font-size: var(--t-h4); margin-top: 2.5rem; }
.legal p, .legal ul { margin-top: 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: .4rem; }
.draft-flag { background: var(--powder); padding: 1rem 1.25rem; border-left: 6px solid var(--ink); font-size: var(--t-small); }

/* 11. Motion -------------------------------------------------------------- */
/* The one orchestrated moment: the bears walk in, smallest first. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal-bears .bear {
    transform-box: fill-box; transform-origin: bottom center;
    opacity: 0; transform: translateX(-6%);
    transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  }
  .js .reveal-bears .bear-young { transition-delay: .18s; }
  .js .reveal-bears .bear-grown { transition-delay: .36s; }
  .js .reveal-bears.is-in .bear { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 12. Print --------------------------------------------------------------- */
@media print {
  .site-header, .site-nav, .nav-toggle, .skip-link, .contact-form, .site-footer__partner { display: none !important; }
  .block--cherry, .block--ink, .block--powder { background: none !important; color: #000 !important; }
}

/* Spacing utilities (intentionally win over flow/prose rules) */
.mt-1 { margin-top: 1.5rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 2.5rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }
.nf-bears { max-width: 28rem; color: var(--cherry); }
@media (min-width: 60em) { .sticky-col { position: sticky; top: calc(var(--header-h) + 2rem); } }

/* Adults vs adolescent athletes comparison (home, food) */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.compare ul { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.compare li {
  padding: .6rem 0; border-bottom: 1px solid rgba(36, 55, 74, .3);
  font-family: var(--font-display); font-weight: 700; font-stretch: 90%;
  font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); line-height: 1.2;
}
.compare__head { font-size: var(--t-small); font-weight: 700; margin-bottom: .6rem; }
.compare__col--athlete .compare__head { color: var(--cherry); }
.compare li.is-added { color: var(--cherry); }
.compare li.is-added::after { content: " (added)"; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.block--powder .compare li.is-added, .block--powder .compare__col--athlete .compare__head { color: var(--ink); }
.block--powder .compare li.is-added { border-left: 5px solid var(--cherry); padding-left: .65rem; }
.compare-wide { max-width: 44rem; }
sup .cite { font-size: .72em; font-weight: 700; text-decoration: underline; text-underline-offset: .15em; margin-left: .15em; }

/* Allergen categories */
.allergens { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; }
.allergens li {
  font-family: var(--font-display); font-weight: 800; font-stretch: 82%;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -0.02em; line-height: 1;
}
.fact .h4 + .allergens { margin-top: 1rem; }
.allergens + p { margin-top: 1.25rem; }

/* Stacked rows (meal sizes) */
@media (min-width: 48em) { .row.row--stack { grid-template-columns: minmax(0, 1fr); } }
.row--stack .h4 { margin-top: .1rem; }
.row--stack .row__body { margin-top: .25rem; }
.sizes .photo-slot { align-self: start; }
.family .photo-slot { max-width: 34rem; justify-self: end; }

/* Our Story: founders side by side */
.founders { display: grid; gap: clamp(3rem, 6vw, 5rem) var(--gutter); }
@media (min-width: 52em) { .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.founder img { width: min(100%, 20rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 6px var(--powder); margin: 6px; }
.founder__name { margin-top: 1.25rem; }
.founder p { margin-top: 1rem; font-size: var(--t-lede); line-height: 1.5; max-width: 32em; text-wrap: pretty; }
.founders__bridge {
  border-top: 6px solid var(--cherry); padding-top: 1.5rem; max-width: 24em;
  font-family: var(--font-display); font-weight: 800; font-stretch: 84%;
  font-size: var(--t-h3); line-height: 1.05; letter-spacing: -0.02em;
}
.statement { max-width: 18ch; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.5rem); }
.statement-tag { font-family: var(--font-display); font-weight: 700; font-stretch: 90%; font-size: var(--t-h4); color: var(--powder); }
.block--cherry .statement-tag { color: var(--milk); }
.family__photo { width: 100%; max-width: 34rem; justify-self: end; }
.family__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.dinner__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.facility__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

/* Rounded photo corners */
:root { --radius-img: 16px; }
.family__photo img, .dinner__photo img, .facility__photo img,
.page-hero--media figure img, .hero__media img, .photo-slot { border-radius: var(--radius-img); }

/* Meal sizes (Our Food) */
.sizes__photo img { width: 100%; height: auto; border-radius: var(--radius-img); }
.sizes__grid { display: grid; gap: 2rem var(--gutter); }
@media (min-width: 48em) { .sizes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.size { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.size .h4 { margin-top: .35rem; }
.size__body { margin-top: .5rem; font-size: var(--t-lede); line-height: 1.45; max-width: 26em; }

/* Facility type tags (For Facilities) */
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem; max-width: 70rem; }
.tag {
  padding: .8rem 1.5rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-stretch: 86%;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); letter-spacing: -0.015em; line-height: 1;
}
.tag--cherry { background: var(--cherry); color: var(--milk); }
.tag--powder { background: var(--powder); color: var(--ink); }
.tag--ink { background: var(--ink); color: var(--milk); }
.tags__note { font-size: var(--t-lede); color: var(--ink-muted); max-width: 34em; }
