/* Pollo y Llama product website: one page for every production insert (build_site.py), in the
   brand guidelines v1.0. From website v004.
   Same finish as the company landing (business/website/company, 2026-10-23, Andres: "use the
   landing logo and style in each product site, make all pages feel consistent"): the original
   logo in a fixed header that shrinks on scroll, Fredoka headings, Nunito text on paper, 1px warm
   lines instead of thick outlines, no solid shadows or label pills, renders on cream panels,
   comb-dark buttons and numbers, spaced comb-dark labels.
   Product colours (the printed caramel and plum) appear only where they draw the product.
   Brand rules: business/brand/GUIDELINES.md. */
:root {
  --paper: #FFF9EF;          /* base background */
  --surface: #FFFFFF;
  --cream: #FCF2E1;
  --wool: #FAE5C9;
  --ink: #29100A;            /* cocoa */
  --text: #4E382D;           /* body text, as on the landing: 10:1 on paper */
  --muted: #6B4C3F;          /* 7.3:1 on paper */
  --rule: #E7D9C6;           /* 1px warm line */
  --outline: #E7D9C6;        /* former thick outline, now the same warm line */
  --panel: #FCF2E1;          /* cream panel under renders */
  --btn-hover: #29100A;
  --accent: #B53524;         /* comb dark: red text and buttons */
  --accent-fill: #B53524;
  --on-accent: #FFFFFF;
  --accent-tint: #FBE3DC;
  --comb: #DF503A;           /* large headings and decoration only */
  --yolk: #FCB52A;           /* never text */
  --on-yolk: #29100A;
  --band: #29100A;           /* the reference band: cocoa */
  --band-line: #4A2A20;
  --band-text: #F3E3CC;
  --band-strong: #FFF9EF;
  --band-accent: #FCB52A;
  --shadow: rgba(41, 16, 10, 0.12);

  --font: "Nunito", ui-rounded, "Avenir Next", system-ui, sans-serif;
  --font-head: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --w-title: 600;
  --w-text: 400;
  --w-em: 600;
  --w-label: 800;

  --t-xs: 0.875rem;
  --t-s: 1rem;
  --t-m: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --t-l: clamp(1.4rem, 1.2rem + 0.8vw, 2.125rem);
  --t-xl: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --t-xxl: clamp(3rem, 1.8rem + 4.8vw, 6rem);
  --t-step: clamp(2.2rem, 1.8rem + 1.6vw, 3rem);

  --page: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 28px;
  --stroke: 1px;
  --bar: 136px;              /* header height at the top of the page; compact when scrolled */
  --bar-compact: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1F0C07;
    --surface: #2C140D;
    --cream: #3A1F17;
    --wool: #3A1F17;
    --ink: #FCF2E1;
    --text: #E6D3BE;
    --muted: #D9C3A8;
    --rule: #4A2A20;
    --outline: #4A2A20;
    --panel: #2C140D;
    --btn-hover: #8E2A1C;
    --accent: #F28C76;
    --accent-fill: #B53524;
    --on-accent: #FFFFFF;
    --accent-tint: #43201A;
    --comb: #F28C76;
    --yolk: #FCB52A;
    --on-yolk: #29100A;
    --band: #140704;
    --band-line: #4A2A20;
    --band-text: #F3E3CC;
    --band-strong: #FFF9EF;
    --band-accent: #FCB52A;
    --shadow: rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1F0C07;
  --surface: #2C140D;
  --cream: #3A1F17;
  --wool: #3A1F17;
  --ink: #FCF2E1;
  --text: #E6D3BE;
  --muted: #D9C3A8;
  --rule: #4A2A20;
  --outline: #4A2A20;
  --panel: #2C140D;
  --btn-hover: #8E2A1C;
  --accent: #F28C76;
  --accent-fill: #B53524;
  --on-accent: #FFFFFF;
  --accent-tint: #43201A;
  --comb: #F28C76;
  --yolk: #FCB52A;
  --on-yolk: #29100A;
  --band: #140704;
  --band-line: #4A2A20;
  --band-text: #F3E3CC;
  --band-strong: #FFF9EF;
  --band-accent: #FCB52A;
  --shadow: rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-compact) + 20px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-weight: var(--w-text);
  font-size: 1.125rem;
  line-height: 1.65;
  padding-top: var(--bar);   /* room for the fixed header: shrinking it never moves the page */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--w-title); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.015em; color: var(--ink); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.lede { font-size: var(--t-l); color: var(--muted); max-width: 40ch; }
.prose { max-width: 62ch; }
.muted { color: var(--muted); }

/* Section label (the landing's eyebrow): it names the kind of page you are on. */
.ribbon {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-size: var(--t-xs); font-weight: var(--w-label); text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.band .ribbon { color: var(--band-accent); }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.head h2 { font-size: var(--t-xl); }
.head h2 + .lede, .head .turn { margin-top: 4px; }

/* ---------- header: the landing's ----------
   Fixed at the top with the original logo; once the page scrolls it turns compact (site.js). */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--paper);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.bar .wrap { display: flex; align-items: center; gap: 28px; height: var(--bar); transition: height .25s ease; }
.brand { display: block; flex: none; text-decoration: none; }
.brand img { width: 120px; height: auto; transition: width .25s ease; }   /* the original logo, as on the landing */
.brand .logo-dark { display: none; }
.bar.compact { border-bottom-color: var(--rule); }
.bar.compact .wrap { height: var(--bar-compact); }
.bar.compact .brand img { width: 64px; }
.nav { display: flex; gap: 32px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative; text-decoration: none; color: var(--ink); font-size: 1rem; font-weight: 700;
  padding-block: 8px; white-space: nowrap;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.nav a.on { color: var(--accent); }
@media (max-width: 760px) {
  :root { --bar: 92px; --bar-compact: 64px; }
  .bar .wrap { gap: 14px; }
  .brand img { width: 76px; }
  .bar.compact .brand img { width: 50px; }
  .nav { gap: 18px; }
}

/* Light/dark switch: icon only, beside the menu; the choice is shared by every polloyllama.com site. */
.theme-toggle {
  flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color .2s, background .2s;
}
.theme-toggle:hover { color: var(--ink); background: var(--accent-tint); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- hero and packing: one stage ----------
   The stage column stays beside the text from the landing to step 13. The empty box is the
   stage's floor; the packed pieces lift off it while you scroll, then each step sets its parts. */
.journey { padding-block: clamp(24px, 4vw, 48px) clamp(64px, 9vw, 120px); }
.hero-copy { display: grid; gap: 22px; min-width: 0; min-height: calc(100vh - 160px); align-content: center; }
.hero-copy .for { font-size: var(--t-l); color: var(--muted); }
.hero h1, .hero-copy h1 { font-size: var(--t-xxl); letter-spacing: -0.02em; color: var(--ink); }
.hero-copy h1 small { display: block; font-family: var(--font); font-size: 0.3em; font-weight: var(--w-em); color: var(--muted); letter-spacing: 0; margin-top: 10px; }
.hero-art { display: none; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); margin-top: 8px; }
.figures div { padding: 16px 12px 0 0; display: grid; gap: 2px; }
.figures b { font-family: var(--font-head); font-size: var(--t-xl); font-weight: var(--w-title); color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.figures span { font-size: var(--t-xs); color: var(--muted); line-height: 1.3; }
@media (max-width: 900px) {
  .hero-copy { min-height: 0; padding-block: 8px 24px; }
  .hero-art { display: block; order: -1; }
}
@media (max-width: 460px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; } }

/* "From the guide" shortcuts */
.start { border-block: 1px solid var(--rule); background: var(--paper); }
.start .wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding-block: 20px; }
.start p { font-weight: var(--w-title); font-size: var(--t-s); }
.start ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.start a {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center;
  text-decoration: none; color: var(--ink); padding: 12px 14px; border-radius: 20px;
  border: 1px solid transparent; background: var(--panel); transition: border-color .2s;
}
.start a:hover { border-color: var(--accent); }
.start a i { grid-row: span 2; font-style: normal; font-family: var(--font-head); font-weight: var(--w-title); color: var(--accent); font-size: 1.6rem; line-height: 1; width: 32px; display: grid; place-items: center; }
.start a b { font-weight: var(--w-title); font-size: var(--t-s); }
.start a span { font-size: var(--t-xs); color: var(--muted); }
@media (max-width: 960px) { .start .wrap { grid-template-columns: 1fr; } .start ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- box explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.plan-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--panel); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button {
  border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer;
  font-size: var(--t-s); font-weight: var(--w-em); color: var(--muted); transition: background .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px var(--shadow); }
.orient { font-size: var(--t-xs); color: var(--muted); }
.plan { position: relative; aspect-ratio: 1500 / 1100; max-width: 100%; }
.plan img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s var(--ease); }
.plan img.off { opacity: 0; }
.plan .ends { position: absolute; font-size: var(--t-xs); color: var(--muted); }
.pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--paper);
  background: var(--accent-fill); color: var(--on-accent); font-family: var(--font-head); font-weight: var(--w-title); font-size: 1rem;
  cursor: pointer; box-shadow: 0 2px 8px var(--shadow); transition: transform .25s var(--ease), opacity .3s;
}
.pin:hover { transform: translate(-50%, -50%) scale(1.12); }
.pin[aria-pressed="true"] { transform: translate(-50%, -50%) scale(1.25); background: var(--yolk); color: var(--on-yolk); z-index: 2; }
.pin[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--accent);
  animation: pulse 1.6s var(--ease) infinite;
}
.pin[hidden] { display: none !important; }
@keyframes pulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

.part-card { background: var(--panel); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; position: sticky; top: calc(var(--bar-compact) + 16px); min-width: 0; }
.part-card header { display: flex; align-items: center; gap: 12px; }
.part-card header i {
  font-style: normal; min-width: 32px; flex: none; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; color: var(--accent); font-family: var(--font-head); font-weight: var(--w-title);
}
.part-card h3 { font-size: var(--t-l); }
.part-card .count { font-size: var(--t-xs); color: var(--muted); }
.part-view { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--paper); border-radius: 18px; position: relative; overflow: hidden; }
.part-view img { max-height: 100%; width: auto; max-width: 92%; object-fit: contain; animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.views { display: flex; flex-wrap: wrap; gap: 6px; }
.views button {
  border: 1px solid var(--rule); background: transparent; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  font-size: var(--t-xs); font-weight: var(--w-em); color: var(--muted);
}
.views button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.holds { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: var(--t-s); }
.holds li { display: flex; gap: 10px; }
.holds li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--yolk); margin-top: 0.6em; }
.part-card .note { font-size: var(--t-s); color: var(--muted); border-top: 1px solid var(--rule); padding-top: 12px; }
.part-index { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 16px; font-size: var(--t-s); }
.part-index button { all: unset; cursor: pointer; display: flex; gap: 8px; align-items: baseline; color: var(--muted); }
.part-index button b { color: var(--accent); font-weight: var(--w-title); width: 1.1em; }
.part-index button:hover { color: var(--ink); }
.part-index button[aria-current="true"] { color: var(--ink); font-weight: var(--w-label); }
.part-index button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 900px) { .explorer { grid-template-columns: 1fr; } .part-card { position: static; } }

/* ---------- packing steps (scroll story) ---------- */
.turn { display: flex; gap: 14px; align-items: flex-start; background: var(--accent-tint); border-radius: 18px; padding: 14px 18px; max-width: 62ch; font-size: var(--t-s); }
.turn b { color: var(--accent); }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); }
.journey-text { min-width: 0; }
.journey .head { margin-top: 8vh; margin-bottom: 0; }
.steps { display: grid; gap: 0; min-width: 0; }
.step { min-height: 72vh; display: grid; align-content: center; gap: 12px; padding-block: 24px; opacity: .45; transition: opacity .4s var(--ease); }
.step.on { opacity: 1; }
.unpack-intro { min-height: 45vh; padding-top: 4vh; }   /* short: the unpack takes about one screen of scroll */
.intro-copy { position: sticky; top: 30vh; display: grid; gap: 12px; }
.unpack-intro .tag { justify-self: start; font-weight: var(--w-label); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.unpack-intro p { max-width: 42ch; }
.unpack-intro .inline { display: none; }
.step:last-child { min-height: 62vh; }
.step .no {
  justify-self: start; display: block;
  font-family: var(--font-head); font-size: var(--t-step); font-weight: var(--w-title); line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.step h3 { font-size: var(--t-l); }
.step p { max-width: 42ch; }
.need { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 1rem; }
.need span { font-weight: 700; color: var(--ink); }
.need em { font-style: normal; color: var(--muted); margin-right: 2px; }
.callout { display: flex; gap: 10px; font-size: 1.0625rem; padding: 2px 0 2px 16px; border-left: 1px solid var(--yolk); max-width: 46ch; }
.callout.careful { border-left-color: var(--accent); }
.callout b { font-weight: var(--w-title); }
.step .inline { display: none; }
.stage-col { position: relative; min-width: 0; }
.stage { position: sticky; top: calc(var(--bar-compact) + 16px); height: calc(100vh - var(--bar-compact) - 40px); max-height: 760px; display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.stage-meta { display: flex; align-items: center; gap: 16px; }
.stage-meta .count { font-size: var(--t-s); font-weight: var(--w-title); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4.5em; }
.pips { display: flex; gap: 6px; flex: 1; }
.pips button { all: unset; cursor: pointer; flex: 1; height: 6px; border-radius: 3px; background: var(--rule); position: relative; transition: background .3s; }
.pips button.done { background: var(--yolk); }
.pips button.on { background: var(--accent); }
.pips button.on::after { content: ""; position: absolute; inset: -4px; border-radius: 6px; border: 2px solid var(--accent); animation: pulse 0.9s var(--ease) 1 forwards; }
.pips button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.frame { position: relative; min-height: 0; background: var(--panel); border-radius: var(--radius); }
.frame img { padding: 18px; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 60%; }
.frame .layer { will-change: transform, opacity; }
.frame.placing .layer { transition: opacity .7s var(--ease), transform .85s var(--ease); }
.frame .glow { position: absolute; left: 50%; top: 54%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.6); border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.frame .glow.go { animation: seat 0.9s var(--ease); }
@keyframes seat { 0% { opacity: .55; transform: translate(-50%, -50%) scale(.55); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .stage-col { display: none; }
  .step, .step:last-child, .unpack-intro { min-height: 0; opacity: 1; padding-block: 28px; border-top: 1px solid var(--rule); align-content: start; }
  .unpack-intro .inline { display: block; margin-top: 6px; }
  .intro-copy { position: static; }
  .step .inline { display: block; margin-top: 6px; }
}

/* ---------- play: the trays filled on a stage like the packing ---------- */
.play-component { min-height: 100vh; padding-block: 10vh; opacity: .45; transition: opacity .4s var(--ease); }
.play-component.on { opacity: 1; }
.play-component .tag { font-family: var(--font-head); font-size: var(--t-xl); margin-bottom: 28px; }
.play-component .contents-label { display: flex; align-items: center; gap: 12px; color: var(--accent); text-transform: uppercase; font-size: var(--t-xs); font-weight: var(--w-label); letter-spacing: .08em; }
.play-component .contents-label::after { content: ''; height: 1px; flex: 1; background: var(--rule); }
.play-contents { list-style: none; padding: 0; margin: 18px 0 0; }
.play-contents li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--rule); }
.play-contents li:first-child { border-top: 0; padding-top: 0; }
.play-contents strong { display: block; font-size: var(--t-s); }
.play-contents p { margin: 4px 0 0; font-size: var(--t-s); color: var(--muted); }
.play-contents .contents-quantity { flex-shrink: 0; min-width: 32px; text-align: left; color: var(--accent); font: var(--w-title) 1.25rem/1.2 var(--font-head); }
.play-component .inline { display: none; }
#play-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 900px) {
  .play-component { min-height: 0; padding-block: 32px; border-top: 1px solid var(--rule); opacity: 1; }
  .play-component .inline { display: block; margin-top: 24px; }
}

/* A short reading hold for both stories. Normal scrolling remains reversible. */
.step .story-copy { display: grid; gap: 12px; }
@media (min-width: 901px) {
  .story { --reading-line: 22vh; --reading-hold: 35vh; }
  .story .step, .story .step:last-child, .story .play-component {
    display: block;
    min-height: max(100vh, calc(var(--copy-height, 0px) + var(--reading-hold) + var(--reading-line)));
    padding-block: var(--reading-line) 24px;
  }
  .story-copy { position: sticky; top: var(--copy-top, var(--reading-line)); }
}

/* ---------- design details ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--rule); }
.detail:first-of-type { border-top: 0; padding-top: 0; }
.detail.flip > :first-child { order: 2; }
.detail-copy { display: grid; gap: 14px; min-width: 0; }
.detail-copy h3 { font-size: var(--t-xl); }
.detail-copy .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--t-s); color: var(--muted); }
.detail-copy .facts b { color: var(--ink); font-weight: var(--w-title); font-variant-numeric: tabular-nums; }
.detail-art { min-width: 0; display: grid; gap: 12px; }
.detail-art .shot { aspect-ratio: 4 / 3; position: relative; background: var(--panel); border-radius: var(--radius); }
.detail-art .shot img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 32px); max-height: calc(100% - 32px); width: auto; object-fit: contain; transition: opacity .5s var(--ease); }
.detail-art .shot img.off { opacity: 0; }
.detail-art .seg, .detail-art .chips { justify-self: start; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn {
  cursor: pointer; background: var(--accent-fill); color: var(--on-accent); font-weight: var(--w-label); font-size: 1rem;
  min-height: 44px; padding: 8px 22px; border-radius: 999px; border: 1.5px solid var(--accent-fill);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn.quiet { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.btn.quiet:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.scrub { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-size: var(--t-xs); color: var(--muted); }
.scrub input { width: 100%; accent-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  border: 1px solid var(--rule); background: var(--surface); cursor: pointer; padding: 6px 13px; border-radius: 999px;
  font-size: var(--t-xs); font-weight: var(--w-em); color: var(--muted);
}
.chips button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.seat-cap { font-size: var(--t-s); color: var(--muted); min-height: 1.5em; }
@media (max-width: 860px) { .detail, .detail.flip { grid-template-columns: 1fr; } .detail.flip > :first-child { order: 0; } }

/* park animation (SVG side view) */
.park svg { width: 100%; height: auto; display: block; }
.park .body-out { fill: #AE835B; }   /* printed caramel */
.park .body-in { fill: #760642; }    /* printed plum */
.park .lid { fill: #AE835B; stroke: #760642; stroke-width: 3; }
.park .table { stroke: var(--rule); stroke-width: 2; }
.park .lbl { fill: var(--muted); font: var(--w-em) 13px var(--font); }
.park #lid, .park #tray { transform-box: view-box; }

/* ---------- technology band ---------- */
.band { background: var(--band); color: var(--band-text); }
.band h2, .band h3 { color: var(--band-strong); }
.band .lede, .band .muted { color: var(--band-text); opacity: .85; }
.band a { color: var(--band-accent); }
.tech { display: grid; gap: clamp(56px, 8vw, 96px); }
.tech-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.tech-row .copy { display: grid; gap: 14px; min-width: 0; }
.tech-row h3 { font-size: var(--t-xl); }
.tech-row .spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: var(--t-s); margin: 4px 0 0; }
.tech-row .spec dt { color: var(--band-strong); font-weight: var(--w-title); font-variant-numeric: tabular-nums; }
.tech-row .spec dd { margin: 0; }
.diagram { background: color-mix(in srgb, var(--band-line) 45%, transparent); border: var(--stroke) solid var(--band-line); border-radius: var(--radius); padding: clamp(14px, 2.5vw, 26px); display: grid; gap: 12px; min-width: 0; }
.diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.diagram .cap { font-size: var(--t-xs); opacity: .75; }
.diagram .btn { justify-self: start; }
.svg-text { fill: var(--band-text); font: var(--w-text) 13px var(--font); }
.svg-strong { fill: var(--band-strong); font: var(--w-label) 13px var(--font); }
.svg-accent { fill: var(--band-accent); font: var(--w-label) 13px var(--font); }
.svg-line { stroke: var(--band-text); stroke-width: 1; fill: none; opacity: .55; }
.svg-grid { stroke: var(--band-line); stroke-width: 1; }
.svg-body { fill: #AE835B; }
.svg-plum { fill: #8E1452; }
.svg-lid { fill: #AE835B; }
.svg-pip { fill: var(--band-accent); }
.svg-comb { stroke: var(--band-accent); stroke-width: 1; opacity: .7; }
.svg-curve { stroke: var(--band-strong); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.svg-ring { fill: none; stroke: var(--band-accent); stroke-width: 2; }
@media (max-width: 860px) { .tech-row { grid-template-columns: 1fr; } }

.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { display: flex; gap: 10px; align-items: center; font-size: var(--t-xs); }
.swatch i { width: 34px; height: 34px; border-radius: 50%; display: block; border: 2px solid var(--band-line); }
.print-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.print-figs div { display: grid; gap: 2px; border-top: 2px solid var(--band-accent); padding-top: 10px; }
.print-figs b { color: var(--band-strong); font-family: var(--font-head); font-size: var(--t-l); font-weight: var(--w-title); font-variant-numeric: tabular-nums; }
.print-figs span { font-size: var(--t-xs); }
@media (max-width: 520px) { .print-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- family ---------- */
.family-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.family-strip figure { margin: 0; display: grid; gap: 8px; justify-items: center; text-align: center; font-size: var(--t-xs); color: var(--muted); }
.family-strip img { max-height: 200px; width: auto; transition: transform .5s var(--ease); }
.family-strip figure:hover img { transform: translateY(-6px); }
@media (max-width: 700px) { .family-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.traits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0 32px; }
.traits li { padding: 18px 0; border-top: 1px solid var(--rule); display: grid; gap: 4px; }
.traits b { font-weight: var(--w-title); }
.traits span { color: var(--muted); font-size: var(--t-s); }

/* ---------- guides ---------- */
.guides-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.docs { display: grid; gap: 12px; }
.doc {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--panel); border-radius: var(--radius); padding: 14px 18px; border: 1px solid transparent; transition: border-color .2s;
}
.doc:hover { border-color: var(--accent); }
.doc .sheet { width: 64px; aspect-ratio: 297 / 210; border-radius: 4px; background: var(--paper); border: 1px solid var(--rule); position: relative; overflow: hidden; }
.doc .sheet::before { content: ""; position: absolute; left: 0; top: 6px; width: 46%; height: 6px; background: var(--accent-fill); }
.doc .sheet.ref::before { background: var(--band-line); }
.doc-text { display: grid; gap: 2px; min-width: 0; }
.doc b { font-weight: var(--w-title); }
.doc small { font-size: var(--t-xs); color: var(--muted); }
.doc .go { font-size: var(--t-xs); font-weight: var(--w-title); color: var(--accent); white-space: nowrap; }
.know { display: grid; gap: 0; min-width: 0; }
@media (max-width: 820px) { .guides-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .doc { grid-template-columns: 48px 1fr; } .doc .sheet { width: 48px; } .doc .go { grid-column: 2; } }
.know details { border-top: 1px solid var(--rule); padding: 14px 0; }
.know summary { cursor: pointer; font-weight: var(--w-title); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.know summary::-webkit-details-marker { display: none; }
.know summary::after { content: "+"; color: var(--accent); font-size: 1.3em; line-height: 1; transition: transform .25s var(--ease); }
.know details[open] summary::after { transform: rotate(45deg); }
.know details p { margin-top: 8px; color: var(--muted); font-size: var(--t-s); }
.unpack { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: u; }
.unpack li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: var(--t-s); }
.unpack li::before { counter-increment: u; content: counter(u); width: 28px; color: var(--accent); font-family: var(--font-head); font-weight: var(--w-title); font-size: 1.25rem; line-height: 1.2; }
.foot { border-top: 1px solid var(--rule); padding-block: 28px 36px; font-size: .875rem; font-weight: 600; color: var(--muted); background: var(--paper); }
.foot .wrap { display: grid; grid-template-columns: auto 1fr; gap: 12px 32px; align-items: center; }
.foot img { width: 120px; height: auto; }   /* the original logo, as in the landing's footer */
.foot .logo-dark { display: none; }
.foot p { max-width: 70ch; }
@media (max-width: 640px) { .foot .wrap { grid-template-columns: 1fr; } }
.foot b { color: var(--ink); font-weight: var(--w-label); }

/* ---------- know your box and your insert ---------- */
#box .guides-grid { margin-top: clamp(48px, 7vw, 88px); }
h3.sub { font-size: var(--t-l); margin-bottom: 6px; }
#box .docs { margin-top: 16px; }
.chapter-head { margin-top: clamp(56px, 8vw, 104px); }
.families li { grid-template-rows: auto auto auto; }
.families i { font-style: normal; color: var(--ink); font-weight: var(--w-em); }
.families small { font-size: var(--t-xs); color: var(--accent); font-weight: var(--w-label); text-transform: uppercase; letter-spacing: .06em; }
.brand-outro .outro { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.brand-outro .outro img { width: 100%; height: auto; }
.brand-outro .logo-dark { display: none; }
@media (max-width: 700px) { .brand-outro .outro { grid-template-columns: 1fr; justify-items: start; } .brand-outro .outro img { max-width: 200px; } }
.draft { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1.5px dashed var(--accent); border-radius: 999px; color: var(--accent); font-weight: var(--w-label); }

/* ---------- gallery: product photographs on stickers ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(14px, 2.5vw, 26px); }
.gallery figure { margin: 0; background: var(--panel); border-radius: var(--radius);
  padding: 18px 18px 14px; display: grid; gap: 10px; min-width: 0; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.gallery figcaption { font-weight: var(--w-label); }
.gallery .render::after { bottom: auto; top: 14px; right: 18px; }

/* The Explore viewer (viewer.css) in the landing finish: no yolk tiles or pills. */
.explorer-guides .doc .guide-icon { background: none; border: 0; box-shadow: none; color: var(--accent); }
.part-contents li .contents-quantity { background: none; border-radius: 0; padding: 0; min-width: 32px; text-align: left; color: var(--accent); font: var(--w-title) 1.25rem/1.2 var(--font-head); }

/* ---------- brand details ---------- */
/* Every render says it is a render (brand guidelines: imagery). */
.render { position: relative; }
.render::after {
  content: "Product render"; position: absolute; right: 18px; bottom: 14px; z-index: 2; pointer-events: none;
  font: 700 0.8125rem/1 var(--font); color: var(--muted);   /* as the landing's figure captions */
}
.render.top::after { bottom: auto; top: 14px; }
/* Sparks: two rounded yolk strokes, one pair on the page. */
.sparks { display: inline-block; width: 0.55em; height: 0.55em; vertical-align: top; margin-left: 0.08em; }
.sparks path { stroke: var(--yolk); stroke-width: 9; stroke-linecap: round; fill: none; }
/* On cocoa the logos wear the sticker border. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

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