/* ==========================================================================
   Hearthbowl — Main stylesheet
   VOICE   warm, plain-spoken, trustworthy; a family company, not a startup
   IDEA    the food bowl: round photography framed by concentric rims
   PICTURE hero photo in a bowl of spruce and apricot rings
   COLOUR  spruce fields, oat ground, apricot accents (see tokens.css)
   TYPE    Fraunces for display, Figtree for reading
   LAYOUT  mobile-first; full-bleed bands; 75rem content column

   Cascade layers keep specificity predictable:
   reset → base → layout → components → utilities
   ========================================================================== */

@layer reset, base, layout, components, utilities;

/* ----------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; min-width: 0; }
  html { -webkit-text-size-adjust: none; text-size-adjust: none; }
  img, picture, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  [hidden] { display: none !important; }
}

/* ----------------------------------------------------------------------- */
@layer base {
  html {
    overflow-x: clip; /* the off-canvas drawer must not widen the page */
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--space-s));
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    background: var(--color-bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: var(--leading-body);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-variation-settings: "SOFT" 50;
    line-height: var(--leading-tight);
    text-wrap: balance;
    color: inherit;
  }
  h1 { font-size: var(--step-5); letter-spacing: -0.01em; }
  h2 { font-size: var(--step-4); }
  h3 { font-size: var(--step-2); line-height: var(--leading-snug); }

  p, li, dd { text-wrap: pretty; }
  p { max-width: var(--measure); }

  a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
  a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

  :focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
  }

  main:focus { outline: none; }
  cite { font-style: italic; }
}

/* ----------------------------------------------------------------------- */
@layer layout {
  .container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
  }

  .section { padding-block: var(--space-section); }

  .section-head {
    display: grid;
    gap: var(--space-s);
    margin-bottom: var(--space-xl);
  }
  .section-head p { color: var(--text-muted); font-size: var(--step-1); line-height: 1.45; }

  .section-foot { margin-top: var(--space-l); }
}

/* ----------------------------------------------------------------------- */
@layer components {

  /* ---- Accessibility helpers ------------------------------------------ */
  .skip-link {
    position: absolute;
    left: var(--space-s);
    top: var(--space-s);
    z-index: 100;
    padding: var(--space-xs) var(--space-s);
    background: var(--color-spruce);
    color: var(--text-inverse);
    border-radius: var(--radius-sm);
    transform: translateY(-200%);
  }
  .skip-link:focus { transform: none; color: var(--text-inverse); }

  .concept-note {
    max-width: none;
    padding: var(--space-2xs) var(--gutter);
    background: var(--color-clay);
    color: var(--text);
    font-size: var(--step--1);
    text-align: center;
  }

  .icon { width: 1.25em; height: 1.25em; flex: none; }
  .icon--sm { width: 1em; height: 1em; }

  /* ---- Buttons --------------------------------------------------------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xs);
    min-height: 2.75rem;
    padding: 0.65em 1.4em;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: var(--weight-bold);
    font-size: var(--step-0);
    line-height: 1.2;
    text-decoration: none;
    transition: background-color var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease);
  }
  .btn:hover { text-decoration: none; }

  .btn--primary { background: var(--color-spruce); color: var(--text-inverse); }
  .btn--primary:hover { background: var(--color-spruce-600); color: var(--text-inverse); }

  .btn--apricot { background: var(--color-apricot); color: var(--color-ink); }
  .btn--apricot:hover { background: var(--color-apricot-200); color: var(--color-ink); }

  .btn--ghost { border-color: var(--color-spruce); color: var(--color-spruce); }
  .btn--ghost:hover { background: var(--color-spruce); color: var(--text-inverse); }

  .btn--ghost-light { border-color: var(--color-bg); color: var(--color-bg); }
  .btn--ghost-light:hover { background: var(--color-bg); color: var(--color-spruce); }

  .btn--brand { background: var(--brand-accent); color: #fff; }
  .btn--brand:hover { background: var(--color-ink); color: #fff; }

  .text-link {
    font-weight: var(--weight-bold);
    color: var(--color-spruce);
    text-decoration: underline;
    text-decoration-color: var(--color-apricot);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.3em;
  }
  .text-link:hover { color: var(--color-terracotta); text-decoration-color: currentColor; }
  .text-link--light, .site-footer .text-link--light { color: var(--color-bg); text-decoration: underline; text-decoration-color: var(--color-apricot); }
  .text-link--light:hover { color: var(--color-apricot); }

  /* ---- Wordmark -------------------------------------------------------- */
  .wordmark {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    color: var(--color-spruce);
    text-decoration: none;
  }
  .wordmark:hover { color: var(--color-spruce); }
  .wordmark__mark { width: 1.9rem; height: 1.9rem; color: var(--color-terracotta); }
  .wordmark__text, .wordmark--small {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .wordmark--small { font-size: 1.3rem; color: var(--color-spruce); }

  /* ---- Header ---------------------------------------------------------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    /* Solid, no backdrop-filter: a filter would become the containing block
       for the fixed-position drawer and trap it inside the header bar. */
    background: var(--color-bg);
    border-bottom: 1px solid var(--border);
  }
  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    min-height: var(--header-h);
  }

  /* Mobile-first: the toggle and the drawer. Without JS (no .js on <html>)
     the nav simply stacks under the header so every link stays reachable. */
  .nav-toggle, .nav-close {
    display: none;
    align-items: center;
    gap: var(--space-2xs);
    min-height: 2.75rem;
    padding-inline: var(--space-xs);
    border-radius: var(--radius-pill);
    font-weight: var(--weight-bold);
    color: var(--color-spruce);
  }
  .nav-close { min-width: 2.75rem; justify-content: center; }
  .nav-toggle:hover, .nav-close:hover { background: var(--color-spruce-100); }

  .site-nav__head { display: none; }

  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: var(--space-xs); }
  html:not(.js) .site-nav { flex-basis: 100%; }

  .nav-list { display: grid; gap: var(--space-3xs); }
  .nav-link, .nav-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3xs);
    width: 100%;
    min-height: 2.75rem;
    padding: var(--space-2xs) var(--space-xs);
    border-radius: var(--radius-sm);
    font-weight: var(--weight-medium);
    color: var(--text);
    text-decoration: none;
  }
  .nav-link:hover, .nav-trigger:hover { background: var(--color-spruce-100); color: var(--color-spruce); }
  .nav-link[aria-current="page"], .nav-item--active > .nav-trigger { color: var(--color-spruce); box-shadow: inset 0 -3px 0 var(--color-apricot); }

  .nav-trigger .icon { transition: transform var(--dur-base) var(--ease); }
  .nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

  .sub-menu { padding: 0 0 var(--space-2xs) var(--space-s); }
  .js .nav-trigger[aria-expanded="false"] + .sub-menu { display: none; }
  .sub-menu a {
    display: block;
    padding: var(--space-2xs) var(--space-xs);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
  }
  .sub-menu a:hover { background: var(--color-spruce-100); color: var(--color-spruce); }
  .sub-menu a[aria-current="page"] { color: var(--color-spruce); font-weight: var(--weight-bold); }

  .site-nav__cta { margin-top: var(--space-m); }

  /* Drawer (JS present, below desktop breakpoint) */
  @media (width < 64em) {
    .js .nav-toggle { display: inline-flex; }
    .js .nav-close { display: inline-flex; }
    .js .site-nav__head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: var(--space-m);
    }
    .js .site-nav {
      position: fixed;
      inset: 0 0 0 auto;
      z-index: var(--z-drawer);
      width: min(22rem, 88vw);
      padding: var(--space-s) var(--space-m) var(--space-xl);
      overflow-y: auto;
      overscroll-behavior: contain;
      background: var(--color-bg);
      box-shadow: var(--shadow-lg);
      transform: translateX(100%);
      visibility: hidden;
      transition: transform var(--dur-slow) var(--ease), visibility 0s linear var(--dur-slow);
    }
    .js .site-nav[data-open] {
      transform: none;
      visibility: visible;
      transition: transform var(--dur-slow) var(--ease), visibility 0s;
    }
    .js .site-nav__cta { width: 100%; }
  }

  /* Sits just under the header: the sticky header is its own stacking
     context, so the drawer inside it must out-rank the scrim from there. */
  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-header) - 1);
    background: rgb(19 36 28 / 0.45);
  }

  /* Desktop: horizontal bar with dropdown panels */
  @media (width >= 64em) {
    .site-nav { display: flex; align-items: center; gap: var(--space-m); }
    .nav-list { display: flex; align-items: center; gap: var(--space-3xs); }
    .nav-item { position: relative; }
    .nav-link, .nav-trigger { width: auto; justify-content: flex-start; border-radius: var(--radius-pill); }
    .site-nav__cta { margin-top: 0; }
    .nav-scrim { display: none !important; }

    .sub-menu {
      position: absolute;
      top: calc(100% + var(--space-2xs));
      left: 0;
      min-width: 15rem;
      padding: var(--space-2xs);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-lg);
    }
    /* No-JS fallback: reveal on hover/focus */
    html:not(.js) .sub-menu { display: none; }
    html:not(.js) .nav-item:is(:hover, :focus-within) .sub-menu { display: block; }
    .js .nav-trigger[aria-expanded="true"] + .sub-menu { animation: drop-in var(--dur-base) var(--ease); }
  }

  @keyframes drop-in {
    from { opacity: 0; transform: translateY(-6px); }
  }

  /* ---- Hero: the bowl -------------------------------------------------- */
  .hero {
    --focus-ring: var(--color-apricot);
    position: relative;
    background: var(--color-spruce);
    color: var(--text-inverse);
    padding-block: var(--space-2xl) var(--space-3xl);
    overflow: hidden;
  }
  /* soft second field: a darker arc behind the bowl */
  .hero::before {
    content: "";
    position: absolute;
    right: -20vw;
    top: 50%;
    width: 80vw;
    max-width: 62rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #24573f 0%, #183f30 70%);
    transform: translateY(-50%);
  }
  .hero__grid {
    position: relative;
    display: grid;
    gap: var(--space-xl);
    align-items: center;
  }
  .hero__title { max-width: 14ch; }
  .hero__lead {
    margin-top: var(--space-m);
    font-size: var(--step-1);
    line-height: 1.5;
    color: color-mix(in srgb, var(--color-bg) 88%, var(--color-spruce));
    max-width: 38ch;
  }
  .hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space-l); }

  .hero__media {
    position: relative;
    justify-self: center;
    width: min(100%, 26rem);
    aspect-ratio: 1;
    margin: 0;
  }
  .hero__rims {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
  }
  .hero__rims circle:nth-child(1) { stroke: var(--color-spruce-600); stroke-width: 2; }
  .hero__rims circle:nth-child(2) { stroke: var(--color-spruce-600); stroke-width: 1; stroke-dasharray: 2 6; }
  .hero__rims path {
    stroke: var(--color-apricot);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: rim-draw 1.4s var(--ease) 0.3s forwards;
  }
  @keyframes rim-draw { to { stroke-dashoffset: 0; } }
  @media (prefers-reduced-motion: reduce) {
    .hero__rims path { animation: none; stroke-dashoffset: 0; }
  }

  /* The video sits in the "bowl": a circle inside the rims */
  .hero__video {
    position: absolute;
    inset: 11%;
    width: 78%;
    height: 78%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--color-spruce-600);
    box-shadow: 0 0 0 10px var(--color-bg), var(--shadow-lg);
  }

  .hero__badge {
    position: absolute;
    left: -2%;
    bottom: 6%;
    display: grid;
    place-content: center;
    width: 7.5rem;
    aspect-ratio: 1;
    padding: var(--space-xs);
    border-radius: 50%;
    background: var(--color-apricot);
    color: var(--color-ink);
    text-align: center;
    box-shadow: var(--shadow-md);
  }
  .hero__badge-year {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1;
  }
  .hero__badge-text { font-size: 0.8125rem; line-height: 1.25; font-weight: var(--weight-medium); }

  @media (width >= 48em) {
    .hero { padding-block: var(--space-3xl); }
    .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
    .hero__media { justify-self: end; }
  }

  /* ---- Heritage ruler -------------------------------------------------- */
  .ruler {
    display: grid;
    gap: var(--space-m);
    border-left: 2px solid var(--color-spruce);
    padding-left: var(--space-m);
  }
  .ruler__item { position: relative; }
  .ruler__item::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--space-m) - 7px);
    top: 0.55em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 3px solid var(--color-spruce);
  }
  .ruler__item:first-child::before,
  .ruler__item:last-child::before { background: var(--color-apricot); }
  .ruler__year {
    display: block;
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-size: var(--step-2);
    line-height: 1.2;
    color: var(--color-spruce);
  }
  .ruler__item p { margin-top: var(--space-3xs); color: var(--text-muted); font-size: var(--step--1); line-height: 1.5; }

  @media (width >= 64em) {
    .ruler {
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: var(--space-m);
      border-left: 0;
      border-top: 2px solid var(--color-spruce);
      padding-left: 0;
      padding-top: var(--space-m);
    }
    .ruler__item::before { left: 0; top: calc(-1 * var(--space-m) - 7px); }
  }

  /* ---- Brand spotlight tabs ------------------------------------------- */
  .spotlight { background: var(--color-surface); border-block: 1px solid var(--border); }

  .tabs__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xs);
    margin-bottom: var(--space-m);
  }
  @media (width >= 48em) { .tabs__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

  .tabs__tab {
    display: grid;
    justify-items: center;
    gap: var(--space-2xs);
    padding: var(--space-s) var(--space-xs);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  }
  .tabs__monogram {
    display: grid;
    place-items: center;
    width: 3rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--brand-accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
  }
  .tabs__tab:hover { border-color: color-mix(in srgb, var(--brand-accent) 45%, white); color: var(--text); }
  .tabs__tab[aria-selected="true"] {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
    font-weight: var(--weight-bold);
    box-shadow: var(--shadow-md);
  }

  .brand-panel {
    display: grid;
    gap: var(--space-l);
    padding: var(--space-m);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--brand-accent) 7%, var(--color-bg));
  }
  .brand-panel + .brand-panel { margin-top: var(--space-m); } /* no-JS stacking */
  .brand-panel:focus-visible { outline-offset: 4px; }

  .brand-panel__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
  }

  .brand-panel__body { display: grid; gap: var(--space-s); align-content: center; justify-items: start; }
  .brand-panel__name { font-size: var(--step-3); color: var(--brand-accent); }
  .brand-panel__tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--step-1);
    line-height: 1.3;
    margin-top: calc(-1 * var(--space-2xs));
  }
  .brand-panel__facts { display: flex; flex-wrap: wrap; gap: var(--space-l); }
  .brand-panel__facts dt { font-size: var(--step--1); color: var(--text-muted); }
  .brand-panel__facts dd { font-weight: var(--weight-bold); }
  .brand-panel .btn { margin-top: var(--space-2xs); }

  .js .tabs__panel:not([data-active]) { display: none; }
  .js .tabs__panel[data-active] { animation: fade-in var(--dur-base) var(--ease); }
  @keyframes fade-in { from { opacity: 0; } }

  @media (width >= 48em) {
    .brand-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding: var(--space-l); gap: var(--space-xl); }
  }

  /* ---- Highlights ------------------------------------------------------ */
  .highlights__grid { display: grid; gap: var(--space-m); }

  .feature-story, .news-card, .careers-card { border-radius: var(--radius-lg); }

  .feature-story { background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
  .feature-story__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .feature-story__body { display: grid; gap: var(--space-s); justify-items: start; padding: var(--space-l); }

  .news-card {
    display: grid;
    gap: var(--space-m);
    align-content: start;
    justify-items: start;
    padding: var(--space-l);
    background: var(--color-spruce-100);
  }
  .news-card__list { display: grid; gap: var(--space-s); }
  .news-card__list li { padding-top: var(--space-s); border-top: 1px solid color-mix(in srgb, var(--color-spruce) 20%, transparent); }
  .news-card__list a {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--step-1);
    line-height: 1.3;
    color: var(--text);
    text-decoration: none;
  }
  .news-card__list a:hover { color: var(--color-spruce); text-decoration: underline; }
  .news-card__meta { display: block; margin-top: var(--space-3xs); font-size: var(--step--1); color: var(--text-muted); }

  .careers-card {
    display: grid;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
  }
  .careers-card__media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .careers-card__body { display: grid; gap: var(--space-s); align-content: center; justify-items: start; padding: var(--space-l); }

  @media (width >= 48em) {
    .careers-card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
    .careers-card__media img { aspect-ratio: auto; min-height: 14rem; }
  }
  @media (width >= 64em) {
    .highlights__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; }
    .feature-story { grid-row: span 2; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
    .feature-story__media, .feature-story__media img { height: 100%; }
    .feature-story__media img { aspect-ratio: auto; min-height: 20rem; }
    .careers-card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  }

  /* ---- Foundation band (apricot field + pet pattern) ---------------- */
  .foundation-band {
    --focus-ring: var(--color-spruce);
    position: relative;
    background: var(--color-apricot);
    color: var(--color-ink);
    padding-block: var(--space-2xl);
    overflow: hidden;
  }
  .foundation-band__inner { position: relative; display: grid; gap: var(--space-l); align-items: center; }
  .foundation-band__photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 8px solid var(--color-bg);
    box-shadow: var(--shadow-lg);
    rotate: -2deg;
  }
  .foundation-band h2 { font-size: var(--step-3); max-width: 22ch; }
  .foundation-band p { margin-top: var(--space-s); }
  .foundation-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space-l); }
  .foundation-band .btn--ghost { border-color: var(--color-ink); color: var(--color-ink); }
  .foundation-band .btn--ghost:hover { background: var(--color-ink); color: var(--color-apricot); }
  @media (width >= 48em) {
    .foundation-band__inner { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-2xl); }
  }

  /* Pet pattern texture (from the studio's licensed "seamless pet patterns"
     artwork, recoloured to white motifs on transparency) */
  .has-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../assets/img/pattern/pet-pattern-white.png") right top / 60rem auto repeat-y;
    opacity: 0.28;
    mask-image: linear-gradient(to left, #000 25%, transparent 85%);
    pointer-events: none;
  }

  /* ---- Footer ---------------------------------------------------------- */
  .site-footer {
    --focus-ring: var(--color-apricot);
    background: var(--color-night);
    color: var(--color-bg);
    padding-block: var(--space-2xl) var(--space-l);
  }
  .site-footer a { color: var(--color-bg); text-decoration: none; }
  .site-footer a:hover { color: var(--color-apricot); text-decoration: underline; }

  .newsletter {
    display: grid;
    gap: var(--space-m);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgb(251 247 240 / 0.15);
  }
  .newsletter h2 { font-size: var(--step-3); }
  .newsletter p { margin-top: var(--space-2xs); color: rgb(251 247 240 / 0.8); }
  .newsletter__row { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-2xs); }
  .newsletter__row input { flex: 1 1 14rem; }

  @media (width >= 64em) {
    .newsletter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--space-2xl); }
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: var(--space-xl) var(--space-l);
    padding-block: var(--space-xl);
  }
  .footer-heading {
    font-family: var(--font-body);
    font-size: var(--step-0);
    font-weight: var(--weight-bold);
    color: var(--color-apricot);
    margin-bottom: var(--space-s);
  }
  .site-footer ul { list-style: none; padding: 0; }
  .footer-grid ul { display: grid; gap: var(--space-2xs); }
  .footer-contact { font-style: normal; display: grid; gap: var(--space-s); align-content: start; }
  .footer-contact__line { display: flex; gap: var(--space-xs); line-height: 1.45; }
  .footer-contact__line .icon { margin-top: 0.15em; color: var(--color-apricot); }

  .footer-legal {
    display: grid;
    gap: var(--space-s);
    padding-top: var(--space-l);
    border-top: 1px solid rgb(251 247 240 / 0.15);
    font-size: var(--step--1);
    color: rgb(251 247 240 / 0.75);
  }
  .footer-legal ul { display: flex; flex-wrap: wrap; gap: var(--space-m); }
  .footer-legal__credit { color: var(--color-apricot); }

  /* ---- Forms ----------------------------------------------------------- */
  .field { display: grid; gap: var(--space-3xs); }
  .field label { font-weight: var(--weight-medium); }
  input[type="email"], input[type="text"], input[type="tel"], input[type="password"], textarea, select {
    min-height: 2.75rem;
    padding: 0.6em 0.9em;
    font-size: 1rem;
    color: var(--color-ink);
    background: var(--surface);
    border: 2px solid var(--color-clay);
    border-radius: var(--radius-sm);
  }
  input:focus-visible, textarea:focus-visible { border-color: var(--focus-ring); outline-offset: 1px; }
  input[aria-invalid="true"] { border-color: var(--danger); }

  .field__error {
    display: flex;
    gap: var(--space-2xs);
    font-size: var(--step--1);
    font-weight: var(--weight-medium);
    color: var(--danger);
  }
  .site-footer .field__error { color: var(--color-apricot); }
  .form-status:empty { display: none; }
  .form-status { margin-top: var(--space-s); font-weight: var(--weight-medium); }
}

/* ----------------------------------------------------------------------- */
@layer utilities {
  .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;
  }
  body.is-locked { overflow: hidden; }
}

/* =======================================================================
   Phase 3 components: video, carousel, inner-page heroes, brand pages
   ======================================================================= */
@layer components {

  /* ---- Video play/pause (WCAG 2.2.2: moving content can be paused) ---- */
  [data-video] { position: relative; }
  .video-toggle {
    position: absolute;
    right: var(--space-s);
    bottom: var(--space-s);
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgb(19 36 28 / 0.72);
    color: #fff;
    backdrop-filter: blur(4px);
    transition: background-color var(--dur-fast) var(--ease), scale var(--dur-fast) var(--ease);
  }
  .video-toggle:hover { background: var(--color-spruce); scale: 1.06; }
  .video-toggle--hero { right: 14%; bottom: 14%; background: var(--color-bg); color: var(--color-spruce); }
  .video-toggle--hero:hover { background: var(--color-apricot); color: var(--color-ink); }

  /* ---- Section head with controls on the right -------------------------- */
  .section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-m); }
  .section-head--row > div:first-child { display: grid; gap: var(--space-s); }
  .fine-print { margin-top: var(--space-m); font-size: var(--step--1); color: var(--text-muted); }

  .round-btn {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid var(--color-spruce);
    color: var(--color-spruce);
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), opacity var(--dur-fast);
  }
  .round-btn:hover:not(:disabled) { background: var(--color-spruce); color: var(--text-inverse); }
  .round-btn:disabled { opacity: 0.35; cursor: default; }
  .carousel-controls { display: flex; gap: var(--space-2xs); }
  html:not(.js) .carousel-controls { display: none; }

  /* ---- Taste-testers carousel: native scroll-snap ---------------------- */
  .testers { background: var(--color-spruce-100); overflow: hidden; }
  .carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(14rem, 70vw, 19rem);
    gap: var(--space-m);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(var(--gutter), (100vw - var(--container)) / 2);
    padding: var(--space-s) max(var(--gutter), (100vw - var(--container)) / 2) var(--space-m);
    scrollbar-width: thin;
    scrollbar-color: var(--color-spruce-600) transparent;
  }
  .carousel__track:focus-visible { outline-offset: -3px; }

  .tester { scroll-snap-align: start; }
  /* Polaroid-style cards, gently tilted for a bit of play */
  .tester__media {
    display: block;
    padding: var(--space-xs) var(--space-xs) 0;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    rotate: -1.5deg;
    transition: rotate var(--dur-base) var(--ease), translate var(--dur-base) var(--ease);
  }
  .tester:nth-child(even) .tester__media { rotate: 1.5deg; }
  .tester:hover .tester__media { rotate: 0deg; translate: 0 -4px; }
  .tester__media img, .tester__media video {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-sm);
  }
  .tester__media video { display: block; }
  .tester__media .video-toggle { right: calc(var(--space-xs) + var(--space-2xs)); bottom: var(--space-s); }
  .tester__name {
    margin-top: var(--space-s);
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-size: var(--step-1);
    line-height: 1.2;
  }
  .tester__role { color: var(--text-muted); font-size: var(--step--1); }
  @media (prefers-reduced-motion: reduce) {
    .tester__media, .tester:nth-child(even) .tester__media { rotate: 0deg; }
  }

  /* ---- Breadcrumb ------------------------------------------------------ */
  .breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2xs); list-style: none; padding: 0; font-size: var(--step--1); }
  .breadcrumb li:not(:last-child)::after { content: "/"; margin-left: var(--space-2xs); color: var(--text-muted); }
  .breadcrumb a { color: var(--text-muted); }
  .breadcrumb [aria-current] { color: var(--text); font-weight: var(--weight-medium); }
  .breadcrumb--light a, .breadcrumb--light li::after, .breadcrumb--light [aria-current] { color: rgb(255 255 255 / 0.85); }
  .breadcrumb--light a:hover { color: #fff; }

  /* ---- Inner page hero (light) ---------------------------------------- */
  .page-hero { padding-top: var(--space-2xl); background: var(--surface); }
  .page-hero__inner { display: grid; gap: var(--space-m); padding-bottom: var(--space-l); }
  .page-hero__lead { font-size: var(--step-1); line-height: 1.45; color: var(--text-muted); max-width: 52ch; }
  .page-hero__strip img { width: min(100%, 80rem); margin-inline: auto; }

  /* ---- Brands hub cards ------------------------------------------------ */
  .brand-grid { display: grid; gap: var(--space-l); }
  @media (width >= 56em) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .brand-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    background: color-mix(in srgb, var(--brand-accent) 7%, var(--surface));
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: translate var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  }
  .brand-card:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); }
  .brand-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: scale var(--dur-slow) var(--ease); }
  .brand-card:hover .brand-card__media img { scale: 1.03; }
  .brand-card__body { position: relative; display: grid; gap: var(--space-s); align-content: start; padding: var(--space-xl) var(--space-l) var(--space-l); }
  .brand-card__body .tabs__monogram { position: absolute; top: -1.75rem; left: var(--space-l); width: 3.5rem; box-shadow: 0 0 0 5px var(--surface); }
  .brand-card__name { font-size: var(--step-3); }
  .brand-card__name a { color: var(--brand-accent); text-decoration: none; }
  /* The whole card is clickable through the heading link */
  .brand-card__name a::after { content: ""; position: absolute; inset: 0; }
  .brand-card__name a:focus-visible { outline: none; }
  .brand-card:has(a:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) { .brand-card:hover, .brand-card:hover .brand-card__media img { translate: none; scale: none; } }

  /* ---- Feature grid ---------------------------------------------------- */
  .rules { background: var(--color-bg); }
  .feature-grid { display: grid; gap: var(--space-l); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
  .feature { display: grid; gap: var(--space-2xs); align-content: start; }
  .feature__icon {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0.7rem;
    margin-bottom: var(--space-2xs);
    border-radius: 50%;
    color: var(--brand-accent);
    background: color-mix(in srgb, var(--brand-accent) 12%, var(--surface));
  }
  .feature h3 { font-size: var(--step-1); }
  .feature p { color: var(--text-muted); }

  /* ---- Comparison table ------------------------------------------------ */
  .compare { background: var(--surface); }
  .compare-table { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
  .compare-table th, .compare-table td { padding: var(--space-s); text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
  .compare-table thead th { font-size: var(--step--1); color: var(--text-muted); font-weight: var(--weight-medium); }
  .compare-table tbody th a { font-family: var(--font-display); font-size: var(--step-1); color: var(--brand-accent); }
  .compare-table tbody tr { box-shadow: inset 4px 0 0 var(--brand-accent); }
  @media (width < 37.5em) {
    .stack thead { display: none; }
    .stack tr { display: grid; padding: var(--space-xs) 0 var(--space-xs) var(--space-s); border-bottom: 1px solid var(--border); }
    .stack th, .stack td { display: flow-root; border: 0; padding: 3px 0 3px 7.5em; }
    .stack th { padding-left: 0; }
    .stack td::before { content: attr(data-l); float: left; width: 7em; margin-left: -7.5em; color: var(--text-muted); font-size: var(--step--1); }
  }

  /* ---- Brand page hero -------------------------------------------------- */
  .brand-hero {
    --focus-ring: var(--color-apricot);
    background: var(--brand-accent);
    color: #fff;
    padding-block: var(--space-xl) var(--space-2xl);
  }
  .brand-hero__grid { display: grid; gap: var(--space-xl); align-items: center; }
  .brand-hero__copy { display: grid; gap: var(--space-s); }
  .brand-hero h1 { margin-top: var(--space-s); }
  .brand-hero__tagline { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); line-height: 1.25; }
  .brand-hero__lead { font-size: var(--step-1); line-height: 1.5; color: rgb(255 255 255 / 0.9); max-width: 40ch; }
  .brand-hero__facts { display: flex; gap: var(--space-xl); margin-top: var(--space-s); }
  .brand-hero__facts dt { font-size: var(--step--1); color: rgb(255 255 255 / 0.8); }
  .brand-hero__facts dd { font-weight: var(--weight-bold); }
  .brand-hero__photo img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 50%;
    box-shadow: var(--shadow-lg);
  }
  @media (width >= 64em) { .brand-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }

  /* ---- Brand switcher (sticky pill bar) -------------------------------- */
  .brand-switch { background: var(--surface); border-bottom: 1px solid var(--border); }
  .brand-switch li { flex: none; }
  .brand-switch ul { display: flex; gap: var(--space-2xs); overflow-x: auto; list-style: none; padding-block: var(--space-xs); }
  .brand-switch a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    min-height: 2.75rem;
    padding: var(--space-3xs) var(--space-s) var(--space-3xs) var(--space-3xs);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    color: var(--text);
    text-decoration: none;
    font-weight: var(--weight-medium);
  }
  .brand-switch a:hover { background: color-mix(in srgb, var(--brand-accent) 10%, var(--surface)); }
  .brand-switch a[aria-current="page"] { background: var(--brand-accent); color: #fff; }
  .brand-switch .tabs__monogram { width: 2.25rem; font-size: 1.05rem; }
  .brand-switch a[aria-current="page"] .tabs__monogram { background: #fff; color: var(--brand-accent); }

  /* ---- Brand story ----------------------------------------------------- */
  .brand-story__grid { display: grid; gap: var(--space-xl); align-items: center; }
  .brand-story__text { display: grid; gap: var(--space-s); }
  .brand-story__text h2 { color: var(--brand-accent); margin-bottom: var(--space-2xs); }
  .brand-story__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); rotate: 1.5deg; box-shadow: var(--shadow-md); }
  @media (width >= 64em) { .brand-story__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-3xl); } }

  /* ---- Product range --------------------------------------------------- */
  .range { background: color-mix(in srgb, var(--brand-accent) 6%, var(--color-bg)); }
  .range__list { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); list-style: none; padding: 0; }
  .product {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: var(--space-m);
    align-items: start;
    padding: var(--space-l);
    background: var(--surface);
    border-radius: var(--radius-lg);
  }
  .product__pack { width: 5rem; color: var(--brand-accent); fill: var(--brand-accent); }
  .product__pack text { font-family: var(--font-display); font-weight: 700; font-size: 18px; fill: var(--brand-accent); }
  .product__name { font-size: var(--step-1); }
  .product__for { margin-block: var(--space-3xs) var(--space-2xs); font-size: var(--step--1); font-weight: var(--weight-bold); color: var(--brand-accent); }

  /* ---- Brand video ----------------------------------------------------- */
  .brand-video { background: var(--color-night); color: var(--color-bg); }
  .brand-video__inner { display: grid; gap: var(--space-xl); align-items: center; }
  .brand-video__frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); display: block; }
  .brand-video h2 { margin-bottom: var(--space-s); }
  .brand-video p { color: rgb(251 247 240 / 0.85); }
  @media (width >= 64em) { .brand-video__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

  /* ---- More brands ----------------------------------------------------- */
  .more-brands__list { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); list-style: none; padding: 0; }
  .mini-brand { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--brand-accent); color: #fff; }
  .mini-brand__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: 0.9; }
  .mini-brand__body { padding: var(--space-m); }
  .mini-brand h3 a { color: #fff; text-decoration: none; }
  .mini-brand h3 a::after { content: ""; position: absolute; inset: 0; }
  .mini-brand:has(a:focus-visible) { outline: 3px solid var(--color-terracotta); outline-offset: 3px; }
  .mini-brand p { color: rgb(255 255 255 / 0.88); }
}

/* =======================================================================
   Inner pages: About, People, History, Foundation, News, Careers,
   FAQs, Contact, Intranet, legal, sitemap, 404
   ======================================================================= */
@layer components {

  /* ---- Inner hero ------------------------------------------------------ */
  .inner-hero { background: var(--surface); padding-block: var(--space-2xl) var(--space-xl); border-bottom: 1px solid var(--border); }
  .inner-hero__grid { display: grid; gap: var(--space-xl); align-items: center; }
  .inner-hero__copy { display: grid; gap: var(--space-s); }
  .inner-hero h1 { margin-top: var(--space-xs); max-width: 18ch; }
  .inner-hero__lead { font-size: var(--step-1); line-height: 1.45; color: var(--text-muted); max-width: 46ch; }
  .inner-hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl) var(--radius-xl) 50% var(--radius-xl); box-shadow: var(--shadow-lg); }
  .inner-hero--apricot { background: var(--color-apricot-200); }
  .inner-hero--apricot .inner-hero__lead { color: var(--text); }
  @media (width >= 64em) { .inner-hero--split .inner-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

  .prose { display: grid; gap: var(--space-s); }
  .prose__lead { font-size: var(--step-1); line-height: 1.5; }
  .prose-split { display: grid; gap: var(--space-l); }
  @media (width >= 64em) { .prose-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-3xl); } }

  /* ---- Chips (filters + ingredient tabs) ------------------------------- */
  .chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
  .chip {
    min-height: 2.75rem;
    padding: var(--space-2xs) var(--space-m);
    border: 2px solid var(--color-clay);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-weight: var(--weight-medium);
    transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast);
  }
  .chip:hover { border-color: var(--color-spruce-600); }
  .chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--color-spruce); border-color: var(--color-spruce); color: var(--text-inverse); }

  /* ---- Stats with count-up -------------------------------------------- */
  .stats-band { background: var(--color-spruce); color: var(--text-inverse); }
  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--space-l); list-style: none; padding: 0; }
  .stats li { display: grid; gap: var(--space-2xs); border-top: 2px solid var(--color-apricot); padding-top: var(--space-s); }
  .stats__num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-5); line-height: 1; font-variant-numeric: tabular-nums; }
  .stats__label { color: rgb(251 247 240 / 0.85); max-width: 18ch; }

  /* ---- Pantry (ingredient tabs) --------------------------------------- */
  .pantry { background: var(--surface); }
  .pantry .chip-row { margin-bottom: var(--space-m); }
  .ingredient {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-l);
    align-items: center;
    padding: var(--space-l);
    border-radius: var(--radius-lg);
    background: var(--color-apricot-200);
  }
  .ingredient + .ingredient { margin-top: var(--space-s); }
  .ingredient__icon { width: 5rem; height: 5rem; padding: 1.1rem; border-radius: 50%; background: var(--surface); color: var(--color-terracotta); }
  .ingredient h3 { font-size: var(--step-2); margin-bottom: var(--space-2xs); }
  .ingredient__brands { margin-top: var(--space-xs); font-weight: var(--weight-bold); }
  .ingredient__brands span { font-weight: var(--weight-regular); color: var(--text-muted); margin-right: var(--space-3xs); }
  .js .ingredient + .ingredient { margin-top: 0; }

  /* ---- Next links ------------------------------------------------------ */
  .next-links__grid { display: grid; gap: var(--space-m); }
  @media (width >= 48em) { .next-links__grid { grid-template-columns: 1fr 1fr; } }
  .next-link { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none; }
  .next-link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: scale var(--dur-slow) var(--ease); }
  .next-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgb(19 36 28 / 0.85)); }
  .next-link__label { position: absolute; left: var(--space-l); bottom: var(--space-l); z-index: 1; font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--step-3); }
  .next-link:hover { color: #fff; }
  .next-link:hover img { scale: 1.04; }

  /* ---- People: profile viewer ----------------------------------------- */
  .profiles__thumbs { display: flex; gap: var(--space-s); overflow-x: auto; list-style: none; padding: var(--space-2xs) var(--space-3xs) var(--space-m); }
  .profiles__thumbs li { flex: none; }
  .person-thumb { display: grid; justify-items: center; gap: var(--space-2xs); width: 6.5rem; color: var(--text); text-decoration: none; font-size: var(--step--1); font-weight: var(--weight-medium); text-align: center; line-height: 1.25; }
  .person-thumb img { width: 5rem; height: 5rem; object-fit: cover; border-radius: 50%; border: 3px solid transparent; box-shadow: 0 0 0 2px var(--color-clay); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
  .person-thumb:hover img { box-shadow: 0 0 0 2px var(--color-spruce-600); }
  .person-thumb[aria-pressed="true"] { color: var(--color-spruce); font-weight: var(--weight-bold); }
  .person-thumb[aria-pressed="true"] img { border-color: var(--surface); box-shadow: 0 0 0 4px var(--color-apricot); }

  .profile { display: grid; gap: var(--space-l); padding: var(--space-m); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
  .profile + .profile { margin-top: var(--space-m); }
  .profile:focus-visible { outline-offset: 4px; }
  .profile__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
  .profile h3 { font-size: var(--step-3); }
  .profile__role { color: var(--color-terracotta); font-weight: var(--weight-bold); margin-top: var(--space-3xs); }
  .profile__qa { display: grid; gap: var(--space-s); margin-top: var(--space-m); }
  .profile__qa dt { font-size: var(--step--1); color: var(--text-muted); }
  .profile__qa dd { font-size: var(--step-1); line-height: 1.4; font-family: var(--font-display); }
  .profiles.is-enhanced .profile + .profile { margin-top: 0; }
  .profiles.is-enhanced .profile:not([hidden]) { animation: fade-in var(--dur-slow) var(--ease); }
  @media (width >= 56em) { .profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--space-l); align-items: center; } }
  html:not(.js) .people .carousel-controls { display: none; }

  .leadership { background: var(--surface); }
  .leaders { display: grid; gap: var(--space-l); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); list-style: none; padding: 0; }
  .leader { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-m); align-items: start; }
  .leader__avatar { display: grid; place-items: center; width: 4rem; aspect-ratio: 1; border-radius: 50%; background: var(--color-spruce-100); color: var(--color-spruce); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
  .leader h3 { font-size: var(--step-1); }
  .leader__role { color: var(--color-terracotta); font-weight: var(--weight-bold); font-size: var(--step--1); margin-bottom: var(--space-2xs); }

  /* ---- History timeline ----------------------------------------------- */
  .timeline__filters { margin-bottom: var(--space-s); }
  html:not(.js) .timeline__filters { display: none; }
  .timeline__status { color: var(--text-muted); font-size: var(--step--1); margin-bottom: var(--space-l); min-height: 1.5em; }
  .era + .era { margin-top: var(--space-xl); }
  .era__title { font-size: var(--step-2); margin-bottom: var(--space-m); }
  .era__title span { display: block; font-family: var(--font-body); font-size: var(--step--1); font-weight: var(--weight-medium); color: var(--text-muted); margin-top: var(--space-3xs); }
  .milestones { display: grid; gap: var(--space-s); list-style: none; padding: 0 0 0 var(--space-l); border-left: 2px solid var(--color-spruce); }
  .milestone { position: relative; display: grid; gap: var(--space-2xs); }
  .milestone::before { content: ""; position: absolute; left: calc(-1 * var(--space-l) - 8px); top: 0.6em; width: 14px; height: 14px; border-radius: 50%; background: var(--color-bg); border: 3px solid var(--brand-accent); }
  .milestone__year { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: var(--brand-accent); line-height: 1.2; }
  .milestone__card { padding: var(--space-m); background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--border); }
  .milestone__card h4 { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--step-1); line-height: 1.3; }
  .milestone__card p { color: var(--text-muted); margin-top: var(--space-3xs); }
  .milestone__tags { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-xs) !important; }
  .tag { display: inline-block; padding: 0.15em 0.7em; border-radius: var(--radius-pill); font-size: var(--step--1); font-weight: var(--weight-medium); color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 10%, var(--surface)); }
  .tag--plain { color: var(--color-spruce); background: var(--color-spruce-100); }
  @media (width >= 48em) {
    .milestone { grid-template-columns: 6rem minmax(0, 1fr); gap: var(--space-m); align-items: start; }
  }
  .timeline.is-animated .milestone { opacity: 0; translate: 0 16px; transition: opacity var(--dur-slow) var(--ease), translate var(--dur-slow) var(--ease); }
  .timeline.is-animated .milestone.is-visible { opacity: 1; translate: none; }

  /* ---- Foundation ------------------------------------------------------ */
  .giving { background: var(--color-apricot-200); }
  .giving__grid { display: grid; gap: var(--space-m); }
  @media (width >= 48em) { .giving__grid { grid-template-columns: 1fr 1fr; } }
  .give-card { display: grid; gap: var(--space-s); align-content: start; padding: var(--space-l); background: var(--surface); border-radius: var(--radius-lg); }
  .give-card .feature__icon { color: var(--color-terracotta); background: var(--color-apricot-200); }

  .request__grid { display: grid; gap: var(--space-xl); align-items: start; }
  @media (width >= 64em) { .request__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } .request__intro { position: sticky; top: calc(var(--header-h) + var(--space-l)); } }
  .request__intro { display: grid; gap: var(--space-s); }

  /* ---- Form card ------------------------------------------------------- */
  .form-card { display: grid; gap: var(--space-m); padding: var(--space-l); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
  .form-card h2 { font-size: var(--step-2); }
  .form-card--narrow { max-width: 28rem; width: 100%; justify-self: center; }
  .form-card fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-m); }
  .form-card fieldset + fieldset { padding-top: var(--space-m); border-top: 1px solid var(--border); }
  .form-card legend { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--step-1); margin-bottom: var(--space-s); }
  .form-card .btn { justify-self: start; }
  .form-card .btn--block { justify-self: stretch; }
  .form-card__aside { font-size: var(--step--1); color: var(--text-muted); }
  .field-row { display: grid; gap: var(--space-m); }
  @media (width >= 40em) { .field-row { grid-template-columns: 1fr 1fr; } }
  .field__hint { font-size: var(--step--1); color: var(--text-muted); margin-top: -2px; }
  .field__optional { font-weight: var(--weight-regular); color: var(--text-muted); font-size: var(--step--1); }
  textarea { resize: vertical; min-height: 6rem; }
  select { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231E4D3B' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.8em center; padding-right: 2.5em !important; }
  textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
  .field--check { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: var(--space-xs); }
  .field--check input { width: 1.4rem; height: 1.4rem; margin-top: 0.15em; accent-color: var(--color-spruce); }
  .field--check label { font-weight: var(--weight-regular); }
  .field--check .field__error { grid-column: 2; }
  .notice { padding: var(--space-xs) var(--space-s); border-radius: var(--radius-sm); background: var(--color-apricot-200); font-size: var(--step--1); font-weight: var(--weight-medium); }
  .password-box { display: flex; }
  .password-box input { flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; }
  .password-box__toggle { padding-inline: var(--space-s); border: 2px solid var(--color-clay); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: var(--weight-bold); color: var(--color-spruce); background: var(--color-spruce-100); }

  /* ---- Calculator ------------------------------------------------------ */
  .calculator { background: var(--color-spruce-100); }
  .calculator__grid { display: grid; gap: var(--space-xl); align-items: start; }
  .calculator header { display: grid; gap: var(--space-s); }
  .calculator header p { color: var(--text-muted); font-size: var(--step-1); line-height: 1.45; }
  @media (width >= 64em) { .calculator__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
  .calc { display: grid; gap: var(--space-m); padding: var(--space-l); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
  .calc__group { border: 0; padding: 0; margin: 0; }
  .calc legend, .calc__weight > label { display: block; font-weight: var(--weight-bold); margin-bottom: var(--space-2xs); }
  .calc__weight-row { display: flex; gap: var(--space-2xs); }
  .calc__weight-row input { width: 8rem; font-variant-numeric: tabular-nums; }
  .segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--color-bg); border: 1px solid var(--border); }
  .segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .segmented label { min-height: 2.5rem; display: inline-grid; place-items: center; padding: 0 var(--space-m); border-radius: var(--radius-pill); cursor: pointer; font-weight: var(--weight-medium); }
  .segmented label:hover { background: var(--color-spruce-100); }
  .segmented input:checked + label { background: var(--color-spruce); color: var(--text-inverse); }
  .segmented input:focus-visible + label { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
  .calc__result { display: grid; gap: var(--space-3xs); padding: var(--space-m) var(--space-l); border-radius: var(--radius-md); background: var(--color-apricot); }
  .calc__big { font-family: var(--font-display); font-weight: 700; font-size: var(--step-5); line-height: 1; font-variant-numeric: tabular-nums; }
  .calc__big small { font-size: var(--step-1); font-weight: var(--weight-display); }
  .calc__sub { font-weight: var(--weight-medium); }

  /* ---- News ------------------------------------------------------------ */
  .page-subnav { position: sticky; top: var(--header-h); z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); }
  .page-subnav ul { display: flex; gap: var(--space-2xs); overflow-x: auto; list-style: none; padding-block: var(--space-2xs); }
  .page-subnav li { flex: none; }
  .page-subnav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--space-s); border-radius: var(--radius-pill); color: var(--text); text-decoration: none; font-weight: var(--weight-medium); }
  .page-subnav a:hover { background: var(--color-spruce-100); color: var(--color-spruce); }
  .news-layout { display: grid; gap: var(--space-xl); }
  @media (width >= 64em) { .news-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
  .news-lead { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
  .news-lead__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .news-lead__body { display: grid; gap: var(--space-s); padding: var(--space-l); }
  .news-lead h2 { font-size: var(--step-3); }
  time { font-size: var(--step--1); color: var(--text-muted); font-weight: var(--weight-medium); }
  .news-col-title { font-size: var(--step-2); margin-bottom: var(--space-s); }
  .press-list { list-style: none; padding: 0; }
  .press-item { display: grid; gap: var(--space-3xs); padding-block: var(--space-m); border-top: 1px solid var(--border); }
  .press-item h3 { font-size: var(--step-1); }
  .press-item h3 a { color: var(--text); text-decoration: none; }
  .press-item h3 a:hover { color: var(--color-spruce); text-decoration: underline; }
  .press-item p { color: var(--text-muted); }
  .media { background: var(--surface); }
  .media-grid { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; }
  .media-card { display: grid; gap: var(--space-2xs); align-content: start; padding: var(--space-l); border-radius: var(--radius-lg); background: var(--color-bg); }
  .media-card .tag { justify-self: start; }
  .media-card h3 { font-size: var(--step-1); }
  .media-card__date { font-size: var(--step--1); color: var(--text-muted); }
  .contact-strip { display: grid; gap: var(--space-s); padding: var(--space-l); border-radius: var(--radius-lg); background: var(--color-spruce-100); }
  .contact-strip h2 { font-size: var(--step-2); }

  /* ---- Careers --------------------------------------------------------- */
  .life__grid { display: grid; gap: var(--space-xl); align-items: center; }
  .life__photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); list-style: none; padding: 0; }
  .life__photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); }
  .life__photos li:nth-child(2) { margin-top: var(--space-2xl); }
  @media (width >= 64em) { .life__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
  .benefits-band { background: var(--color-spruce); color: var(--text-inverse); }
  .benefits { display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); list-style: none; padding: 0; }
  .benefit { display: flex; align-items: center; gap: var(--space-s); padding: var(--space-s); border-radius: var(--radius-md); background: rgb(255 255 255 / 0.07); font-weight: var(--weight-medium); }
  .benefit .feature__icon { margin: 0; flex: none; color: var(--color-ink); background: var(--color-apricot); }
  .roles__grid { display: grid; gap: var(--space-xl); align-items: start; }
  .roles__grid > header { display: grid; gap: var(--space-s); }
  @media (width >= 64em) { .roles__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .roles__grid > header { position: sticky; top: calc(var(--header-h) + var(--space-l)); } }

  /* ---- Accordion (native <details>) ------------------------------------ */
  .accordion { border-bottom: 1px solid var(--border); }
  .accordion summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2xs) var(--space-m);
    align-items: center;
    padding: var(--space-m) 0;
    cursor: pointer;
    list-style: none;
  }
  .accordion summary::-webkit-details-marker { display: none; }
  .accordion summary::after {
    content: "";
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--color-spruce-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%231E4D3B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    transition: rotate var(--dur-base) var(--ease), background-color var(--dur-fast);
  }
  .accordion[open] summary::after { rotate: 45deg; background-color: var(--color-apricot); }
  .accordion summary:hover .accordion__title { color: var(--color-spruce); }
  .accordion__title { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--step-1); line-height: 1.3; }
  .accordion__meta { display: flex; flex-wrap: wrap; gap: var(--space-xs); font-size: var(--step--1); color: var(--text-muted); }
  .accordion__meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-right: var(--space-xs); vertical-align: middle; }
  .accordion__body { display: grid; gap: var(--space-s); padding-bottom: var(--space-l); max-width: var(--measure); }
  .accordion__body h4 { font-size: var(--step-0); font-weight: var(--weight-bold); margin-top: var(--space-2xs); }
  .accordion__body ul { padding-left: 1.2em; display: grid; gap: var(--space-3xs); }
  /* Smooth open/close where supported (Chrome 131+); others just snap */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .accordion::details-content { height: 0; overflow: clip; transition: height var(--dur-slow) var(--ease), content-visibility var(--dur-slow) allow-discrete; }
    .accordion[open]::details-content { height: auto; }
  }

  /* ---- FAQs ------------------------------------------------------------ */
  .faqs__grid { display: grid; gap: var(--space-xl); align-items: start; }
  @media (width >= 64em) { .faqs__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .faqs__search { position: sticky; top: calc(var(--header-h) + var(--space-l)); } }
  .faqs__search { display: grid; gap: var(--space-2xs); }
  .faqs__search > label { font-weight: var(--weight-bold); }
  .search-box { display: flex; gap: var(--space-2xs); }
  .search-box input { flex: 1; }
  .search-box__clear { padding-inline: var(--space-s); font-weight: var(--weight-bold); color: var(--color-spruce); border-radius: var(--radius-sm); }
  .search-box__clear:hover { background: var(--color-spruce-100); }
  html:not(.js) .faqs__search { display: none; }
  .faqs__status { min-height: 1.5em; color: var(--text-muted); font-size: var(--step--1); }
  .faqs__help { margin-top: var(--space-m); }
  .faq-group + .faq-group { margin-top: var(--space-xl); }
  .faq-group h2 { font-size: var(--step-2); }
  .empty-state { padding: var(--space-l); border-radius: var(--radius-md); background: var(--color-apricot-200); }

  /* ---- Contact --------------------------------------------------------- */
  .contact__grid { display: grid; gap: var(--space-xl); align-items: start; }
  @media (width >= 64em) { .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
  .contact-card { background: var(--color-spruce); color: var(--text-inverse); border-radius: var(--radius-lg); overflow: hidden; }
  .contact-card__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
  .contact-card__body { display: grid; gap: var(--space-s); padding: var(--space-l); }
  .contact-card h2 { font-size: var(--step-2); }
  .contact-card .icon { color: var(--color-apricot); }
  .contact-card .fine-print { color: rgb(251 247 240 / 0.75); }

  /* ---- Intranet -------------------------------------------------------- */
  .intranet { background: linear-gradient(var(--color-spruce-100), var(--color-bg)); min-height: 60vh; }
  .intranet__grid { display: grid; gap: var(--space-xl); align-items: center; }
  .intranet h1 { margin-block: var(--space-s); }
  @media (width >= 64em) { .intranet__grid { grid-template-columns: 1fr 1fr; } }

  /* ---- Legal, sitemap, 404 -------------------------------------------- */
  .legal { display: grid; gap: var(--space-xl); align-items: start; }
  @media (width >= 64em) { .legal { grid-template-columns: 14rem minmax(0, 1fr); } .legal__toc { position: sticky; top: calc(var(--header-h) + var(--space-l)); } }
  .legal__toc ul { list-style: none; padding: 0; display: grid; gap: var(--space-2xs); border-left: 2px solid var(--border); }
  .legal__toc a { display: block; padding-left: var(--space-s); color: var(--text-muted); text-decoration: none; }
  .legal__toc a:hover { color: var(--color-spruce); }
  .legal__body h2 { font-size: var(--step-2); margin-top: var(--space-m); }
  .sitemap { display: grid; gap: var(--space-xl); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
  .sitemap h2 { font-size: var(--step-1); margin-bottom: var(--space-s); color: var(--color-spruce); }
  .sitemap ul { list-style: none; padding: 0; display: grid; gap: var(--space-2xs); }
  .notfound__grid { display: grid; gap: var(--space-xl); align-items: center; }
  @media (width >= 64em) { .notfound__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
  .notfound__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: 0.9; color: var(--color-apricot); }
  .notfound h1 { margin-block: var(--space-s); }
  .notfound__links { display: flex; flex-wrap: wrap; gap: var(--space-s); list-style: none; padding: 0; margin-block: var(--space-l); }
  .notfound__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 50% 50% var(--radius-xl) var(--radius-xl); box-shadow: var(--shadow-lg); }
}
