/* HINTRAG · Aruba — site stylesheet
   Design context: .impeccable.md  ·  Tokens first, then base, layout, components, pages. */

@font-face {
  font-family: 'Young Serif';
  src: url('../fonts/young-serif-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-grotesk-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-grotesk-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* surfaces — warm paper tinted toward the Aruba cocoa hue */
  --cream: oklch(96.6% 0.014 72);
  --cream-2: oklch(93.4% 0.02 70);
  --cream-3: oklch(89.5% 0.026 68);
  --paper: oklch(99.3% 0.004 80);
  /* ink */
  --ink: oklch(25% 0.032 42);
  --ink-2: oklch(41% 0.032 45);
  --ink-3: oklch(52% 0.028 50);
  --line: oklch(85.5% 0.022 62);
  --line-strong: oklch(72% 0.03 55);
  /* brand */
  --red: oklch(48% 0.19 22);
  --red-deep: oklch(40% 0.165 22);
  --red-tint: oklch(93% 0.035 20);
  --cocoa: oklch(27% 0.04 42);
  --cocoa-2: oklch(33% 0.045 44);
  --caramel: oklch(82% 0.095 72);
  --on-dark: oklch(95.5% 0.016 72);
  --on-dark-2: oklch(83% 0.026 66);

  --display: 'Young Serif', 'Iowan Old Style', Georgia, serif;
  --body: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);

  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --section: clamp(56px, 4vw + 32px, 112px);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --radius: 6px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in oklch, currentColor 40%, transparent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-md); top: -100px; background: var(--ink); color: var(--cream); padding: var(--space-sm) var(--space-md); z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: var(--space-sm); }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); line-height: 1.4; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.lede-sm { color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prose { max-width: 68ch; display: grid; gap: var(--space-md); color: var(--ink); }
.prose ul, .prose ol { display: grid; gap: var(--space-xs); padding-left: 1.25em; }
.prose li::marker { color: var(--red); }

/* ---------------------------------------------------------------- buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.65em 1.25em; border-radius: 999px;
  font-weight: 650; font-size: 0.975rem; line-height: 1.15; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 0.8em 1.5em; font-size: 1.025rem; }
.btn-red { background: var(--red); color: var(--paper); }
.btn-red:hover { background: var(--red-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-quiet { color: var(--ink); padding-inline: 0.75em; }
.btn-quiet:hover, .btn-quiet[aria-current] { color: var(--red); }
.btn-cream { background: var(--on-dark); color: var(--cocoa); }
.btn-cream:hover { background: var(--caramel); }
.btn-line-light { border-color: var(--on-dark-2); color: var(--on-dark); }
.btn-line-light:hover { background: var(--on-dark); color: var(--cocoa); }
.btn-sub { font-weight: 500; font-size: 0.8em; opacity: 0.75; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 650; color: var(--red); text-decoration: none; }
.link-arrow .i { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .i, a:hover > .link-arrow .i { transform: translateX(4px); }

/* ---------------------------------------------------------------- placeholders (content still to be supplied by HINTRAG) */
.placeholder-mark {
  display: grid; place-content: center; gap: var(--space-2xs); text-align: center;
  width: 100%; height: 100%; padding: var(--space-md);
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--ink-3); font-size: 0.8rem; font-weight: 650; letter-spacing: 0.04em;
}
.placeholder-mark::before { content: 'Placeholder'; justify-self: center; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; background: var(--cream-3); color: var(--ink-2); padding: 2px 8px; border-radius: 999px; }
.placeholder-mark small { display: block; font-weight: 500; font-size: 0.78rem; max-width: 26ch; margin-inline: auto; }
.placeholder-note, .placeholder-box {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: var(--space-md); color: var(--ink-2);
  background: color-mix(in oklch, var(--cream-2) 60%, transparent);
}
.placeholder-note::before, .placeholder-tag {
  content: 'Placeholder · '; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red);
}
.placeholder-tag { display: block; margin-bottom: var(--space-xs); }
.placeholder-box { display: grid; gap: var(--space-md); justify-items: start; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklch, var(--cream) 94%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { width: 132px; height: auto; }
.site-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: var(--space-lg); }
.nav-list { list-style: none; display: flex; align-items: center; gap: var(--space-2xs); }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-sm); font-weight: 600; text-decoration: none; border-radius: var(--radius); }
.nav-link:hover, .nav-link[aria-current] { color: var(--red); }
.has-panel .nav-link { padding-right: 2px; }
.panel-toggle { display: inline-grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink-2); }
.panel-toggle .chev { transition: transform 0.25s var(--ease-out); }
.panel-toggle[aria-expanded='true'] .chev { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: var(--space-xs); }
.nav-actions .btn { min-height: 40px; padding: 0.5em 1em; font-size: 0.925rem; }
.nav-toggle { display: none; }
.nav-panel {
  position: absolute; top: calc(100% + 10px); left: -8px; z-index: 60;
  min-width: 240px; padding: var(--space-md); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -18px oklch(25% 0.04 42 / 0.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s linear 0.22s;
}
.nav-panel::before { content: ''; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.nav-panel--wide { width: min(720px, 80vw); }
.has-panel.is-open .nav-panel,
.js .has-panel:hover .nav-panel,
.has-panel:focus-within .nav-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding: 0 var(--space-xs) var(--space-sm); border-bottom: 1px solid var(--line); margin-bottom: var(--space-xs); }
.panel-title a { font-weight: 650; color: var(--red); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.925rem; }
.panel-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--space-md); }
.panel-grid a, .panel-list a { display: flex; align-items: center; gap: var(--space-sm); padding: 8px var(--space-xs); border-radius: 4px; text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.panel-grid a:hover, .panel-list a:hover, .panel-grid a[aria-current], .panel-list a[aria-current] { background: var(--cream); color: var(--red); }
.panel-grid .count { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.nav-txt { flex: 1; min-width: 0; }
.nav-ico { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--cream); color: var(--red); transition: background-color 0.2s, color 0.2s; }
.nav-ico .i { width: 19px; height: 19px; stroke-width: 1.6; }
.panel-grid a:hover .nav-ico, .panel-list a:hover .nav-ico, .panel-grid a[aria-current] .nav-ico, .panel-list a[aria-current] .nav-ico { background: var(--red); color: var(--paper); }
.panel-list { list-style: none; display: grid; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: var(--space-xs); margin-left: auto; min-height: 44px; padding: 0 var(--space-md); border: 1.5px solid var(--ink); border-radius: 999px; background: none; font-weight: 650; cursor: pointer; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: var(--space-lg); padding: var(--space-md) var(--gutter) var(--space-xl); background: var(--cream); border-bottom: 1px solid var(--line); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; box-shadow: 0 30px 40px -30px oklch(25% 0.04 42 / 0.4); }
  .no-js .site-nav { position: static; }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; font-size: 1.15rem; min-height: 52px; padding-left: 0; }
  .panel-toggle { width: 52px; height: 52px; }
  .nav-panel, .has-panel:focus-within .nav-panel, .js .has-panel:hover .nav-panel { position: static; display: none; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 var(--space-md); background: none; }
  .js .has-panel.is-open .nav-panel, .no-js .nav-panel { display: block; }
  .nav-panel::before { display: none; }
  .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-title { display: none; }
  .panel-grid a, .panel-list a { gap: 10px; padding-inline: 0; }
  .nav-ico { width: 26px; height: 26px; background: var(--paper); }
  .nav-ico .i { width: 17px; height: 17px; }
  .nav-actions { flex-wrap: wrap; }
  .nav-actions .btn { min-height: 48px; flex: 1 1 auto; }
  .nav-actions .btn-quiet { border: 1.5px solid var(--ink); }
}

/* ---------------------------------------------------------------- arch motif (from the Aruba badge) */
.arch { overflow: hidden; border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius); aspect-ratio: 4 / 5; background: var(--cream-3); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- home hero */
.hero { padding-block: clamp(32px, 5vw, 80px) 0; overflow: clip; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-text { display: grid; gap: var(--space-lg); justify-items: start; }
.hero-aruba { width: clamp(132px, 14vw, 180px); height: auto; margin-bottom: var(--space-xs); }
.hero h1 { font-size: clamp(3rem, 1.8rem + 6vw, 6.5rem); line-height: 0.98; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.hero-media { position: relative; justify-self: end; width: min(100%, 440px); }
.hero-arch { aspect-ratio: 4 / 5.2; }
.hero-arch img { object-position: 30% center; }
.hero-pack { position: absolute; width: 46%; left: -22%; bottom: -4%; filter: drop-shadow(0 22px 24px oklch(25% 0.05 40 / 0.35)); }
.hero-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin-top: clamp(40px, 5vw, 72px); padding-block: var(--space-lg); border-top: 1px solid var(--line); }
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong { font-family: var(--display); font-weight: 400; font-size: var(--step-2); color: var(--ink); line-height: 1.1; }
.hero-facts span { color: var(--ink-2); font-size: 0.95rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 0.9s var(--ease-out) both; }
  .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.16s; }
  .hero-text > :nth-child(4) { animation-delay: 0.24s; }
  .hero-arch { animation: unveil 1.2s var(--ease-out) both 0.1s; }
  .hero-pack { animation: rise 1s var(--ease-out) both 0.45s; }
  .page-hero-text > * { animation: rise 0.8s var(--ease-out) both; }
  .page-hero-text > :nth-child(2) { animation-delay: 0.06s; }
  .page-hero-text > :nth-child(3) { animation-delay: 0.12s; }
}
/* Scroll reveal (classes added by site.js only when motion is allowed) and counting figures */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out); }
.num { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; }
.hero-facts .num { font: inherit; color: inherit; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { opacity: 0; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: var(--space-md); max-width: 760px; margin-bottom: clamp(28px, 3vw, 48px); }
.section-head p { color: var(--ink-2); max-width: 60ch; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: var(--space-md); }

/* launches */
.launches { padding-top: var(--space-xl); }
.launches .label { margin-bottom: var(--space-md); }
.launch-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.launch a { display: grid; grid-template-columns: 38% 1fr; align-items: end; gap: var(--space-md); height: 100%; padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-md); border-radius: 10px; text-decoration: none; overflow: hidden; transition: transform 0.35s var(--ease-out); }
.launch a:hover { transform: translateY(-3px); }
.launch img { width: 100%; height: auto; max-height: 190px; object-fit: contain; filter: drop-shadow(0 12px 14px oklch(25% 0.05 40 / 0.25)); transition: transform 0.45s var(--ease-out); }
.launch a:hover img { transform: rotate(-3deg) translateY(-4px); }
.launch-text { display: grid; gap: var(--space-xs); font-size: 0.95rem; }
.launch-title { font-family: var(--display); font-size: var(--step-1); line-height: 1.15; }
.launch--tart a { background: var(--red-tint); }
.launch--cocoa a { background: var(--cocoa); color: var(--on-dark); }
.launch--cocoa .link-arrow { color: var(--caramel); }
.launch--cream a { background: var(--cream-2); }

/* ranges (home) */
.ranges { background: var(--cream-2); }
.range-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.range a { position: relative; display: grid; grid-template-rows: 1fr auto auto; height: 100%; padding: var(--space-md) var(--space-md) var(--space-lg); background: var(--paper); border-radius: 10px; text-decoration: none; transition: box-shadow 0.3s var(--ease-out); }
.range a:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.range-img { display: grid; place-items: center; aspect-ratio: 1; padding: var(--space-sm); }
.range-img { min-height: 0; overflow: hidden; }
.range-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.45s var(--ease-out); }
.range a:hover .range-img img { transform: scale(1.04); }
.range-name { font-family: var(--display); font-size: var(--step-1); line-height: 1.15; margin-top: var(--space-sm); }
.range-count { color: var(--ink-2); font-size: 0.9rem; }
.range--big { grid-column: span 2; grid-row: span 2; }
.range--big .range-name { font-size: var(--step-2); }
.range--wide { grid-column: span 2; }
.range--wide a { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; column-gap: var(--space-md); align-items: end; }
.range--wide .range-img { grid-row: span 2; aspect-ratio: auto; height: 100%; max-height: 220px; }
.range-more { margin-top: var(--space-xl); line-height: 2; color: var(--ink-2); }
.range-more .label { margin-right: var(--space-xs); }
.range-more a { font-weight: 600; color: var(--ink); }

/* trade band */
.trade { position: relative; background: var(--cocoa); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.trade-map { position: absolute; right: -8%; top: 50%; width: min(1100px, 95%); transform: translateY(-50%); opacity: 0.16; z-index: -1; pointer-events: none; }
.trade .label { color: var(--caramel); }
.trade h2 { color: var(--on-dark); font-size: var(--step-3); max-width: 20ch; }
.trade-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.trade-text { display: grid; gap: var(--space-lg); }
.trade-text > p { color: var(--on-dark-2); line-height: 1.7; max-width: 60ch; }
.trade-facts { list-style: none; display: grid; gap: var(--space-lg); }
.trade-facts li { display: grid; gap: var(--space-xs); padding-top: var(--space-md); border-top: 1px solid oklch(95% 0.02 70 / 0.22); }
.trade-facts p { color: var(--on-dark-2); line-height: 1.65; }
.trade :focus-visible { outline-color: var(--caramel); }

/* recipes (shared) */
.recipe-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.recipe--compact { display: grid; gap: var(--space-md); align-content: start; }
.recipe--compact .recipe-body { display: grid; gap: var(--space-sm); justify-items: start; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--cocoa); aspect-ratio: 16 / 9; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out), opacity 0.3s; }
.yt:hover img { transform: scale(1.03); opacity: 0.9; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--paper); box-shadow: 0 10px 24px -8px oklch(20% 0.05 30 / 0.6); transition: transform 0.25s var(--ease-out); }
.yt-play svg { width: 26px; height: 26px; margin-left: 3px; }
.yt:hover .yt-play { transform: scale(1.08); }
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; background: var(--cocoa); }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.stats li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; background: var(--paper); }
.stats .i { color: var(--red); width: 1em; height: 1em; }
.recipe-title { font-size: var(--step-1); }

/* news */
.news-teaser { background: var(--cream-2); }
.news-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.news-list--all { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: var(--space-2xl) var(--section); }
.news-card a { display: grid; gap: var(--space-md); text-decoration: none; height: 100%; }
.news-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: var(--paper); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.news-card a:hover .news-img img { transform: scale(1.03); }
.news-body { display: grid; gap: var(--space-xs); }
.news-body time { font-size: 0.85rem; font-weight: 650; color: var(--red); letter-spacing: 0.02em; }
.news-title { font-family: var(--display); font-size: var(--step-1); line-height: 1.2; }
.news-card a:hover .news-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.news-excerpt { color: var(--ink-2); font-size: 0.975rem; }

/* ---------------------------------------------------------------- page hero (inner pages) */
.page-hero { padding-block: clamp(32px, 5vw, 72px) clamp(24px, 3vw, 48px); }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 80px); align-items: end; }
.page-hero-text { display: grid; gap: var(--space-md); justify-items: start; max-width: 820px; }
.page-hero h1 { font-size: var(--step-4); }
.page-hero-media { width: clamp(200px, 26vw, 340px); }
.page-hero .hero-actions { margin-top: var(--space-sm); }

/* ---------------------------------------------------------------- breadcrumbs, chips, pager */
.crumbs { padding-top: var(--space-lg); font-size: 0.875rem; color: var(--ink-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--space-xs); }
.crumbs li + li::before { content: '/'; margin-right: var(--space-xs); color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.9rem; font-weight: 600; text-decoration: none; background: var(--paper); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip span { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip:hover span { color: var(--on-dark-2); }
.chips--index { padding-block: var(--space-md) var(--space-2xl); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); padding-block: var(--space-2xl) var(--section); border-top: 1px solid var(--line); margin-top: var(--space-2xl); }
.pager a { display: grid; gap: var(--space-2xs); text-decoration: none; font-family: var(--display); font-size: var(--step-1); }
.pager a .i { display: inline; vertical-align: -0.12em; }
.pager a[rel='next'] { text-align: right; justify-items: end; }
.pager a:hover { color: var(--red); }

/* ---------------------------------------------------------------- product catalogue */
.catalog { padding-bottom: var(--space-2xl); }
.catalog-tools { position: sticky; top: var(--header-h); z-index: 10; display: grid; gap: var(--space-sm); padding-block: var(--space-md); background: color-mix(in oklch, var(--cream) 96%, transparent); border-bottom: 1px solid var(--line); margin-bottom: var(--space-lg); }
.catalog-tools .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.catalog-tools .chip { flex: none; }
.recipe-tools { position: sticky; top: var(--header-h); z-index: 10; display: grid; gap: var(--space-sm); padding-block: var(--space-md); margin-bottom: var(--space-lg); background: color-mix(in oklch, var(--cream) 96%, transparent); border-bottom: 1px solid var(--line); }
.recipe-tools .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.recipe-tools .chip { flex: none; }
.chip[hidden], .recipe[hidden] { display: none; }
.search { display: flex; align-items: center; gap: var(--space-sm); max-width: 560px; padding: 0 var(--space-md); min-height: 50px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); }
.search:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.search .i { color: var(--ink-2); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 0; outline: none; }
.search input::placeholder { color: var(--ink-3); }
.search-status { font-size: 0.875rem; color: var(--ink-2); min-height: 1.4em; }
.catalog-group { padding-top: var(--space-xl); scroll-margin-top: calc(var(--header-h) + 150px); }
.group-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); padding-bottom: var(--space-md); margin-bottom: var(--space-lg); border-bottom: 1px solid var(--line); }
.group-head h2 { font-size: var(--step-2); }
.group-head h2 a { text-decoration: none; }
.group-head h2 a:hover { color: var(--red); }
.count-note { color: var(--ink-3); font-size: 0.9rem; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(164px, 44vw), 1fr)); gap: var(--space-lg) var(--space-md); }
.tile a { display: grid; gap: var(--space-xs); text-decoration: none; align-content: start; }
.tile-img { display: grid; place-items: center; aspect-ratio: 1; padding: var(--space-sm); background: var(--paper); border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--line) 60%, transparent); transition: box-shadow 0.25s var(--ease-out); }
.tile-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s var(--ease-out); }
.tile-img.is-missing { padding: var(--space-xs); background: var(--cream-2); }
.tile a:hover .tile-img { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tile a:hover .tile-img img { transform: translateY(-3px) scale(1.02); }
.tile-name { font-weight: 650; line-height: 1.3; font-size: 0.975rem; }
.tile a:hover .tile-name { color: var(--red); }
.tile-meta { font-size: 0.825rem; color: var(--ink-3); margin-top: -4px; }
.tile[hidden], .catalog-group[hidden] { display: none; }
.empty-state { padding: var(--space-2xl) 0; font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.catalogue-band { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); padding-block: var(--space-xl); margin-bottom: var(--section); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* category hero */
.cat-hero { padding-block: var(--space-xl) var(--space-md); }
.cat-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-xl); }
.cat-hero-inner > div:first-child { display: grid; gap: var(--space-md); }
.cat-hero h1 { font-size: var(--step-4); }
.cat-hero .chips { margin-top: var(--space-xs); }
.cat-hero-img { width: clamp(140px, 18vw, 240px); aspect-ratio: 4 / 5; display: grid; place-items: center; padding: var(--space-lg) var(--space-md) var(--space-md); background: var(--paper); border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius); }
.cat-hero-img img { width: 100%; height: 100%; object-fit: contain; }

/* ---------------------------------------------------------------- product page */
.product { padding-bottom: var(--section); }
.product-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); padding-top: var(--space-xl); align-items: start; }
.product-media { display: grid; place-items: center; aspect-ratio: 1; padding: clamp(16px, 4vw, 48px); background: var(--paper); border-radius: 50% 50% 10px 10px / 32% 32% 10px 10px; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-media.is-missing { background: var(--cream-2); padding: var(--space-xl); }
.product-info { display: grid; gap: var(--space-lg); align-content: start; padding-top: var(--space-md); }
.product-info .label a { text-decoration: none; }
.product-info .label a:hover { color: var(--red); }
.product-info h1 { font-size: var(--step-3); }
.quick-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-md); margin: 0; padding-block: var(--space-md); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-facts dt, .spec-list dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.quick-facts dd { margin: 2px 0 0; font-weight: 650; }
.product-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.product-details { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); margin-top: var(--section); align-items: start; }
.product-details h2, .product-recipes h2 { font-size: var(--step-2); margin-bottom: var(--space-lg); }
.table-scroll { overflow-x: auto; margin-bottom: var(--space-lg); border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table caption { text-align: left; padding: var(--space-sm) var(--space-md); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 10px var(--space-md); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); background: var(--cream); white-space: nowrap; }
.spec-table tbody tr:last-child > * { border-bottom: 0; }
.spec-table tbody th { font-weight: 650; min-width: 140px; }
.spec-table .num { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; white-space: nowrap; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.spec-list > div { padding: var(--space-md) var(--space-md) var(--space-md) 0; border-bottom: 1px solid var(--line); }
.spec-list dd { margin: 4px 0 0; font-weight: 550; font-variant-numeric: tabular-nums; }
.spec-wide { grid-column: 1 / -1; }
.container-load { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); margin-top: var(--space-xs); }
.container-load li { display: grid; padding: var(--space-sm) var(--space-md); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.container-load span { font-size: 0.8rem; color: var(--ink-3); font-weight: 600; }
.container-load strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.nutrition-img { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: var(--space-sm); }
.nutrition-img + .nutrition-img { margin-top: var(--space-md); }
.nutrition-img:hover { border-color: var(--ink); }
.product-recipes { margin-top: var(--section); }
.product-recipes .recipe-row { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.related { margin-top: var(--section); }
.related .group-head h2 { font-size: var(--step-2); }

/* ---------------------------------------------------------------- recipes page */
.recipe-stack { display: grid; gap: 0; }
.recipe:not(.recipe--compact) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); padding-block: var(--space-2xl); border-top: 1px dashed var(--line-strong); scroll-margin-top: calc(var(--header-h) + 16px); }
.recipe:not(.recipe--compact) .recipe-media { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.recipe:not(.recipe--compact) .recipe-body { display: grid; gap: var(--space-md); align-content: start; }
.recipe:not(.recipe--compact) .recipe-title { font-size: var(--step-2); }
.recipe-method ol { list-style: decimal; }
.recipe-products { font-size: 0.95rem; color: var(--ink-2); }
.recipe-products .label { margin-right: var(--space-xs); }
.recipe-products a { font-weight: 600; color: var(--ink); }
.more-videos { padding-block: var(--space-xl) var(--section); border-top: 1px dashed var(--line-strong); }

/* ---------------------------------------------------------------- articles */
.article { max-width: 860px; padding-bottom: var(--space-2xl); }
.article-head { display: grid; gap: var(--space-md); padding-block: var(--space-xl); }
.article-head .label { color: var(--red); }
.article-head h1 { font-size: var(--step-3); }
.article-img { margin: 0 0 var(--space-xl); border-radius: 10px; overflow: hidden; background: var(--paper); }
.article-img img { width: 100%; }
.article-body { font-size: 1.125rem; line-height: 1.7; }
.news-more { padding-block: var(--space-2xl) var(--section); border-top: 1px solid var(--line); }
.news-more .label { margin-bottom: var(--space-lg); }

/* ---------------------------------------------------------------- about */
.about { padding-bottom: var(--section); }
.about-block { display: grid; gap: var(--space-lg); padding-block: var(--space-3xl); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.about-block > h2, .about-block h2 { font-size: var(--step-3); }
.about-block--media { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-block--media > div:last-child { display: grid; gap: var(--space-lg); }
.about-block--flip > .about-img { order: 2; }
.about-img { border-radius: 50% 50% 10px 10px / 30% 30% 10px 10px; overflow: hidden; background: var(--cream-3); }
.about-img img { width: 100%; }
/* Profile: text left, figures + award right */
.about-block--profile { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-block--profile > h2 { grid-column: 1 / -1; }
.profile-side { display: grid; gap: var(--space-md); }
.profile-facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.profile-facts li { display: grid; gap: 4px; align-content: start; padding: var(--space-md) var(--space-lg); background: var(--paper); }
.profile-facts strong { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; color: var(--red); }
.profile-facts span { color: var(--ink-2); font-size: 0.925rem; line-height: 1.4; }
.profile-facts strong .num { color: inherit; font-size: inherit; line-height: inherit; }
.about-block--profile .award { max-width: none; }

/* Export-route map: dotted world + permanent routes with running comets (SMIL in build.mjs routeMap()),
   hover/focus detail card (site.js) */
.route-map { margin: var(--space-md) 0 0; display: grid; gap: var(--space-md); max-width: 1100px; }
.route-map-art { position: relative; }
.route-map-art img { width: 100%; opacity: 0.42; }
.route-map-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-base { fill: none; stroke: var(--red); stroke-width: 1.4; stroke-linecap: round; opacity: 0.38; transition: opacity 0.3s var(--ease-out), stroke-width 0.3s var(--ease-out); }
.route { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; }
.packet { fill: var(--red); filter: drop-shadow(0 0 6px oklch(60% 0.2 22 / 0.8)); }
.ping { fill: none; stroke: var(--red); stroke-width: 2; }
.market { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.market--show { fill: var(--red-deep); }
.hq { fill: var(--red); stroke: var(--paper); stroke-width: 3; }
.hq-ring { fill: none; stroke: var(--red); stroke-width: 2; pointer-events: none; }
.route-base, .route, .ping, .hq-ring, .market, .hq { vector-effect: non-scaling-stroke; }
.leg { transition: opacity 0.3s var(--ease-out); pointer-events: none; }
/* markers: generous invisible hit area, grow on hover/focus */
.mk { cursor: pointer; outline: none; }
.mk-hit { fill: transparent; }
.mk .market, .mk .hq { transform-box: fill-box; transform-origin: center; transition: transform 0.25s var(--ease-out), stroke 0.2s; }
.mk:hover .market, .mk:hover .hq, .mk.is-hot .market, .mk.is-hot .hq { transform: scale(1.45); }
.mk:focus-visible .market, .mk:focus-visible .hq { stroke: var(--ink); stroke-width: 3; }
/* focus mode: the hovered route lights up, the others step back */
.route-map-art.is-focus .leg { opacity: 0.18; }
.route-map-art.is-focus .leg.is-hot { opacity: 1; }
.leg.is-hot .route-base { opacity: 1; stroke-width: 2.6; }
.route-map.is-static .route, .route-map.is-static .packet, .route-map.is-static .ping, .route-map.is-static .hq-ring { display: none; }
.map-tip {
  --tx: -50%; --ty: calc(-100% - 18px);
  position: absolute; z-index: 2; display: grid; gap: 2px; width: max-content; max-width: min(280px, 80vw);
  padding: 10px 14px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  box-shadow: 0 12px 32px -12px oklch(25% 0.032 42 / 0.35); pointer-events: none;
  transform: translate(var(--tx), var(--ty)); opacity: 0; transition: opacity 0.2s var(--ease-out), transform 0.25s var(--ease-out);
}
.map-tip.is-on { opacity: 1; }
.map-tip:not(.is-on) { transform: translate(var(--tx), calc(var(--ty) + 6px)); }
.map-tip.is-below { --ty: 18px; }
.map-tip.is-start { --tx: -20px; }
.map-tip.is-end { --tx: calc(-100% + 20px); }
.map-tip-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.map-tip-title { font-family: var(--display); font-weight: 400; font-size: 1.15rem; line-height: 1.25; color: var(--ink); }
.map-tip-meta { font-size: 0.85rem; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 600px) {
  .market { r: 10px; } .market--show { r: 12px; } .hq { r: 15px; } .packet { r: 9px; } .mk-hit { r: 30px; }
  .route { stroke-width: 2; } .route-base { stroke-width: 1.2; }
  /* the map is too short for a floating card: dock it full-width under the map (over the legend) */
  .map-tip { left: 0 !important; right: 0; top: calc(100% + 6px) !important; width: auto; max-width: none; --tx: 0; --ty: 0; }
}
.route-legend { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: 0.875rem; color: var(--ink-2); }
.route-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lg--hq { background: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.lg--market { background: var(--ink); }
.lg--show { background: var(--red-deep); }
.route-hint { color: var(--ink-3); }

.award { display: grid; gap: var(--space-xs); max-width: 560px; padding: var(--space-lg); background: var(--red-tint); border-radius: 10px; }
.award .label { color: var(--red-deep); }
.award p { font-size: 1.1rem; }
.cert-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-sm); }
.cert-list a { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: var(--space-sm); padding: var(--space-sm); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: 0.925rem; }
.cert-list a:hover { border-color: var(--ink); }
.cert-list img { width: 48px; height: 48px; object-fit: contain; }
.cert-dl { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 700; color: var(--red); }

/* ---------------------------------------------------------------- split pages & forms */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); padding-block: var(--space-xl) var(--section); align-items: start; }
.split > section { display: grid; gap: var(--space-lg); align-content: start; }
.split h2 { font-size: var(--step-2); }
.format-list { list-style: none; counter-reset: f; display: grid; border-top: 1px solid var(--line); }
.format-list li { counter-increment: f; display: grid; grid-template-columns: 3rem 1fr; padding-block: var(--space-md); border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.format-list li::before { content: counter(f, decimal-leading-zero); font-family: var(--display); color: var(--red); }
.mini-facts { list-style: none; display: grid; gap: var(--space-xs); padding: var(--space-lg); background: var(--cream-2); border-radius: 10px; }
.mini-facts strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.empty-card { display: grid; gap: var(--space-sm); padding: var(--space-lg); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.form-card { padding: clamp(20px, 3vw, 40px); background: var(--paper); border-radius: 12px; border: 1px solid var(--line); }
.form { display: grid; gap: var(--space-lg); }
.form-intro { color: var(--ink-2); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.field { display: grid; gap: 6px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: 0.925rem; }
.field .req { color: var(--red); margin-left: 2px; }
.field .opt { color: var(--ink-3); font-weight: 500; font-size: 0.8rem; margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--cream); transition: border-color 0.2s, background-color 0.2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); background: var(--paper); }
.field [aria-invalid='true'] { border-color: var(--red); background: var(--red-tint); }
.field-error { color: var(--red-deep); font-size: 0.85rem; font-weight: 600; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.form-note { flex: 1 1 260px; font-size: 0.875rem; color: var(--ink-2); }
.form-status:empty { display: none; }

/* Demo form (contact): sending state, cross-fade to the thank-you panel and back */
.form-stage { position: relative; }
.form-stage > [hidden] { display: none; }
.form-stage.is-resizing { overflow: hidden; transition: height 0.5s var(--ease-out); }
.form-stage > .form, .form-done { transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out); }
.form-stage > .is-leaving { opacity: 0; transform: translateY(-10px) scale(0.985); }
.form-stage > .is-entering { opacity: 0; transform: translateY(14px); }
.form.is-sending .fields { opacity: 0.45; transition: opacity 0.3s; pointer-events: none; }
.btn.is-sending { position: relative; color: transparent; pointer-events: none; }
.btn.is-sending > * { visibility: hidden; }
.btn.is-sending::after { content: ''; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid oklch(100% 0 0 / 0.35); border-top-color: var(--paper); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-done { display: grid; justify-items: center; text-align: center; gap: var(--space-sm); padding: var(--space-xl) 0 var(--space-md); outline: none; }
.form-done[hidden] { display: none; }
.done-check { width: 76px; height: 76px; fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--space-xs); }
.done-check circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: draw 0.7s var(--ease-out) 0.1s forwards; }
.done-check path { stroke-width: 3.5; stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw 0.45s var(--ease-out) 0.65s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-title { font-size: var(--step-2); }
.done-text { font-size: 1.1rem; max-width: 40ch; }
.form-done .form-note { flex: none; max-width: 46ch; }
.done-timer { width: min(240px, 70%); height: 3px; border-radius: 3px; background: var(--cream-2); overflow: hidden; margin-block: var(--space-xs); }
.done-timer span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.form-done.is-counting .done-timer span { animation: countdown 6s linear forwards; }
@keyframes countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.form-status { padding: var(--space-md); border-radius: 8px; background: var(--cream-2); font-weight: 550; }
.form-status.is-error { background: var(--red-tint); color: var(--red-deep); }
.form-status a { color: inherit; }
/* honeypot: off-screen for people, still in the DOM for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-hint { font-size: 0.825rem; color: var(--ink-3); }
.field input[type='file'] { padding: 8px; cursor: pointer; }
.field input[type='file']::file-selector-button { font: inherit; font-weight: 650; margin-right: 12px; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.field input[type='file']:hover::file-selector-button { background: var(--ink); color: var(--cream); }
/* confirmation page that api/send.php returns to browsers without JavaScript */
.form-fallback { display: grid; gap: var(--space-md); max-width: 60ch; padding-block: var(--section); }
.form-fallback .btn { justify-self: start; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); padding-block: var(--space-md) var(--section); align-items: start; }
.contact-details { display: grid; gap: var(--space-lg); }
.contact-list { list-style: none; display: grid; gap: var(--space-md); font-size: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-sm); align-items: start; }
.contact-list .i { color: var(--red); margin-top: 0.25em; width: 1.2em; height: 1.2em; }
.map { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--cream-2); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { height: 100%; display: grid; place-content: center; justify-items: center; gap: var(--space-md); padding: var(--space-lg); text-align: center; color: var(--ink-2); font-size: 0.95rem; }
.useful { line-height: 2; }
.useful .label { margin-right: var(--space-xs); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--cream-2); border-top: 1px solid var(--line); font-size: 0.95rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-xl); padding-block: var(--space-3xl) var(--space-2xl); }
.footer-brand { display: grid; gap: var(--space-md); align-content: start; justify-items: start; color: var(--ink-2); max-width: 34ch; }
.footer-brand img { width: 160px; height: auto; }
.footer-strap { font-family: var(--display); font-size: var(--step-1); color: var(--ink); }
.footer-col { display: grid; gap: var(--space-md); align-content: start; }
.footer-col ul { list-style: none; display: grid; gap: 6px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--red); text-decoration: underline; }
.footer-col address { font-style: normal; display: grid; gap: var(--space-sm); color: var(--ink-2); }
.social { list-style: none; display: flex; gap: var(--space-xs); }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); transition: background-color 0.2s, color 0.2s; }
.social a:hover { background: var(--ink); color: var(--cream); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); padding-block: var(--space-lg); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.875rem; }
.certs { list-style: none; display: flex; gap: var(--space-sm); }
.certs a { display: block; padding: 4px; background: var(--paper); border-radius: 6px; }
.certs img { width: 48px; height: 48px; object-fit: contain; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .range-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .range--big { grid-row: span 1; grid-column: span 2; }
  .range--wide { grid-column: span 1; }
  .range--wide a { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; }
  .range--wide .range-img { grid-row: auto; aspect-ratio: 1; max-height: none; }
  .launch-list { grid-template-columns: 1fr; }
  .launch a { grid-template-columns: 120px 1fr; align-items: center; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; max-width: 60ch; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { justify-self: center; width: min(78%, 380px); margin-left: 12%; }
  .hero-facts { grid-template-columns: 1fr; gap: var(--space-md); }
  .hero-facts li { grid-template-columns: 7.5rem 1fr; align-items: baseline; gap: var(--space-md); }
  .trade-inner, .product-top, .product-details, .split, .contact, .about-block--media, .about-block--profile { grid-template-columns: minmax(0, 1fr); }
  .about-block--flip > .about-img { order: 0; }
  .about-img { max-width: 420px; }
  .product-media { position: static; max-width: 460px; width: 100%; justify-self: center; }
  .recipe-row { grid-template-columns: 1fr; gap: var(--space-xl); }
  .recipe:not(.recipe--compact) { grid-template-columns: 1fr; }
  .recipe:not(.recipe--compact) .recipe-media { position: static; }
  .news-list, .news-list--all { grid-template-columns: 1fr; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-media { width: min(70%, 300px); aspect-ratio: 5 / 4; order: -1; border-radius: 50% 50% var(--radius) var(--radius) / 50% 50% var(--radius) var(--radius); }
  .cat-hero-inner { grid-template-columns: 1fr auto; }
  .cat-hero-img { width: 110px; padding: var(--space-md) var(--space-sm) var(--space-sm); }
}
@media (max-width: 600px) {
  .range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
  .range a { padding: var(--space-sm) var(--space-sm) var(--space-md); }
  .range-name, .range--big .range-name { font-size: 1.125rem; }
  .fields { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .container-load { grid-template-columns: 1fr; }
  .container-load li { grid-template-columns: 1fr auto; align-items: baseline; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > .footer-col:last-child { grid-column: 1 / -1; }
  .pager { grid-template-columns: 1fr; }
  .pager a[rel='next'] { text-align: left; justify-items: start; }
  .cat-hero-inner { grid-template-columns: 1fr; }
  .cat-hero-img { display: none; }
  .hero-actions .btn { width: 100%; }
  .launch a { grid-template-columns: 96px 1fr; padding: var(--space-md); }
  .brand img { width: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .product-actions, .related, .product-recipes, .catalog-tools, .recipe-tools, .crumbs { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .product-top, .product-details { grid-template-columns: 1fr 1fr; }
  .product-media { position: static; }
}

/* ---------------------------------------------------------------- contained packshots: absolutely fill the square so tall packs never crop */
.tile-img, .range-img, .product-media, .cat-hero-img { position: relative; }
.tile-img > img, .range-img > img, .product-media > img, .cat-hero-img > img {
  position: absolute; inset: var(--pad, 12px); width: calc(100% - 2 * var(--pad, 12px)); height: calc(100% - 2 * var(--pad, 12px)); object-fit: contain; max-height: none;
}
.range-img { --pad: 16px; }
.product-media { --pad: clamp(24px, 5vw, 56px); }
.cat-hero-img { --pad: 20px; }
.range--wide .range-img { min-height: 200px; }

.form-card h2 { font-size: var(--step-2); margin-bottom: var(--space-sm); }
.about-block > .btn { justify-self: start; }
.cert-list { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------------------------------------------------------------- page-hero variants (one per company page, so they don't look alike) */
.page-hero-text .btn { margin-top: var(--space-sm); }
.page-hero-media:not(.arch) { overflow: hidden; border-radius: 14px; background: var(--cream-3); }
.page-hero-media:not(.arch) img { width: 100%; height: 100%; object-fit: cover; }
/* band: dark cocoa band, framed photo (Private label) */
.page-hero--band { background: var(--cocoa); color: var(--on-dark); padding-block: clamp(40px, 6vw, 104px); overflow: hidden; }
.page-hero--band h1 { color: var(--on-dark); }
.page-hero--band .label { color: var(--caramel); }
.page-hero--band .lede { color: var(--on-dark-2); }
.page-hero--band .page-hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
.page-hero--band .page-hero-media { width: auto; aspect-ratio: 4 / 3; rotate: 2deg; box-shadow: 0 30px 60px oklch(15% 0.03 40 / 0.45); }
.page-hero--band :focus-visible { outline-color: var(--caramel); }
/* banner: wide photo strip under the title (Become a distributor) */
.page-hero--banner .page-hero-inner { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.page-hero--banner .page-hero-text { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: clamp(24px, 5vw, 80px); }
.page-hero--banner .page-hero-text > .label, .page-hero--banner .page-hero-text > h1 { grid-column: 1; }
.page-hero--banner .page-hero-text > .lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.page-hero--banner .page-hero-media { width: 100%; aspect-ratio: 3 / 1; }
/* flip: arch on the left (Careers) */
@media (min-width: 861px) {
  .page-hero--flip .page-hero-inner { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .page-hero--flip .page-hero-media { order: -1; width: clamp(240px, 28vw, 380px); }
}
/* center: centred text, no photo (Contact) */
.page-hero--center .page-hero-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.page-hero--center .page-hero-text { justify-items: center; }

/* ---------------------------------------------------------------- Private label */
.pl-formats { display: grid; gap: var(--space-2xl); padding-block: var(--section); }
.pl-formats-head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.format-grid { list-style: none; counter-reset: f; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.format-grid li {
  counter-increment: f; position: relative; display: grid; gap: var(--space-lg); align-content: start;
  padding: clamp(20px, 2.4vw, 32px); background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  font-size: 1.1rem; line-height: 1.4; transition: border-color 0.25s var(--ease-out), translate 0.35s var(--ease-out);
}
.format-grid li:hover { border-color: var(--line-strong); translate: 0 -3px; }
.format-grid li::after { content: counter(f, decimal-leading-zero); position: absolute; top: clamp(20px, 2.4vw, 32px); right: clamp(20px, 2.4vw, 32px); font-family: var(--display); color: var(--ink-3); }
.format-grid .i { width: 44px; height: 44px; color: var(--red); stroke-width: 1.4; }
.pl-request { background: var(--cream-2); padding-block: var(--section); }
.pl-request-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pl-request-intro { display: grid; gap: var(--space-md); position: sticky; top: calc(var(--header-h) + 32px); }
.pl-request-intro h2 { font-size: var(--step-3); }

/* ---------------------------------------------------------------- Become a distributor */
.stat-band { background: var(--red); color: var(--paper); margin-top: clamp(8px, 1.5vw, 24px); }
.stat-row { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); padding-block: clamp(24px, 3vw, 44px); }
.stat-row li { display: grid; gap: 4px; align-content: start; padding-left: var(--space-lg); border-left: 1px solid oklch(100% 0 0 / 0.28); }
.stat-row li:first-child { padding-left: 0; border-left: 0; }
.stat-row strong { font-family: var(--display); font-weight: 400; font-size: var(--step-3); line-height: 1.05; }
.stat-row li > span { color: oklch(92% 0.035 20); font-size: 0.95rem; line-height: 1.4; }
.split--flip { padding-top: var(--section); }
@media (min-width: 861px) {
  .split--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .split--flip > .form-card { order: -1; }
  .dist-why { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------------------------------------------------------------- Careers: one calm column */
.careers { display: grid; gap: var(--space-xl); max-width: calc(820px + 2 * var(--gutter)); padding-block: var(--space-xl) var(--section); }
.positions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-lg); align-items: start; padding: clamp(20px, 3vw, 32px); background: var(--cream-2); border-radius: 12px; border-left: 4px solid var(--red); }
.positions h2 { font-size: var(--step-1); margin-bottom: var(--space-xs); }
.positions p { color: var(--ink-2); }
.positions-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--red); }
.positions-icon .i { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- Contact */
.reach-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.reach-cards li {
  display: grid; align-content: start; gap: var(--space-xs); padding: clamp(20px, 2.4vw, 32px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 0.25s var(--ease-out), translate 0.35s var(--ease-out);
}
.reach-cards li:hover { border-color: var(--line-strong); translate: 0 -3px; }
.reach-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-sm); border-radius: 50%; background: var(--red-tint); color: var(--red); }
.reach-icon .i { width: 22px; height: 22px; }
.reach-value { font-family: var(--display); font-size: var(--step-1); line-height: 1.3; }
.reach-value a { text-decoration: none; }
.reach-value a:hover { color: var(--red); }
.contact { padding-block: var(--space-2xl) var(--section); }
@media (min-width: 861px) {
  .contact { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .contact > .form-card { order: -1; }
}

/* ---------------------------------------------------------------- Distributor Center */
.portal { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin-top: var(--space-md); background: var(--cocoa); color: var(--on-dark); border-radius: 16px; overflow: hidden; }
.portal-main { display: grid; gap: var(--space-md); justify-items: start; padding: clamp(28px, 4vw, 56px); }
.portal h2 { color: var(--on-dark); font-size: var(--step-3); }
.portal .label { color: var(--caramel); }
.portal-main > p:not(.label) { color: var(--on-dark-2); max-width: 56ch; }
.portal-note { font-size: 0.95rem; padding: var(--space-sm) var(--space-md); border: 1.5px dashed oklch(95% 0.02 70 / 0.3); border-radius: var(--radius); }
.portal-note .placeholder-tag { display: inline; margin: 0; color: var(--caramel); }
.portal-note strong { color: var(--on-dark); }
.portal-side { display: grid; align-content: center; justify-items: start; gap: var(--space-md); padding: clamp(28px, 4vw, 56px); background: var(--cocoa-2); }
.portal-side .positions-icon { background: oklch(100% 0 0 / 0.08); color: var(--caramel); }
.portal :focus-visible { outline-color: var(--caramel); }
.portal .btn { max-width: 100%; white-space: normal; text-align: left; }
.dc-reach { padding-block: var(--section); }
.dc-reach-inner { display: grid; gap: var(--space-xl); }
.dc-reach-head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }

@media (max-width: 860px) {
  .page-hero--band .page-hero-inner, .pl-formats-head, .pl-request-inner, .portal, .dc-reach-head { grid-template-columns: minmax(0, 1fr); }
  .page-hero--band .page-hero-media { order: 0; width: min(100%, 520px); aspect-ratio: 16 / 10; border-radius: 14px; }
  .page-hero--banner .page-hero-text { grid-template-columns: minmax(0, 1fr); }
  .page-hero--banner .page-hero-text > .lede { grid-column: 1; grid-row: auto; }
  .page-hero--banner .page-hero-media { order: 0; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; }
  .pl-request-intro { position: static; }
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .stat-row li:nth-child(3) { padding-left: 0; border-left: 0; }
  .reach-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .format-grid { grid-template-columns: minmax(0, 1fr); }
  .format-grid li { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding-right: 3.5rem; }
  .positions { grid-template-columns: minmax(0, 1fr); }
}
