/* OTTO Design System reference. Quiet tool register: white canvas, gray25
   frame for examples, near-black text, OTTO red only for the brand moments
   (logo, hero field, active navigation, primary action). Values come from
   tokens/tokens.css; OTTO Sans in 400, 700 and the 800 black cut. */
@font-face { font-family: "OTTOSans"; src: url("/tokens/fonts/otto-sans.CtUYNJ_f.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "OTTOSans"; src: url("/tokens/fonts/otto-sans-bold.7ffBVm3L.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "OTTOSans"; src: url("/tokens/fonts/otto-sansko-black.D1JqNP4v.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --red: #eb001f;             /* oc-base-color-otto-red-100 */
  --text: #212121;            /* oc-semantic-color-text-default */
  --text-secondary: #6d6d6d;  /* oc-semantic-color-text-secondary */
  --frame: #f0f0f0;           /* oc-semantic-color-background-frame */
  --canvas: #fff;             /* oc-semantic-color-background-canvas */
  --line: rgb(0 0 0 / 0.1);   /* oc-semantic-color-divider */
  --focus: #418ade;           /* oc-semantic-focus-outline-color */
  --do: #227642; --dont: #b30023; --caution: #ae4518; /* success, error, warning 100 */
  --radius: 8px;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --oc-base-font-otto-sans: "OTTOSans", Arial, Helvetica, sans-serif;
  color-scheme: light dark;
  font-family: "OTTOSans", Arial, Helvetica, sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root { --text: #fff; --text-secondary: #ccc; --frame: #2e2e2e; --canvas: #212121; --line: rgb(255 255 255 / 0.16); --focus: #53bfff; --do: #6fcf97; --dont: #ff8a8a; --caution: #ffab76; }
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.5rem; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--canvas); padding: 8px 16px; border-radius: var(--radius); z-index: 20; }
.skip:focus { left: 16px; }

/* ---------- header: logo, sections with icons, menu on small screens */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 32px; height: 64px; padding: 0 32px; background: var(--canvas); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.875rem; white-space: nowrap; flex: none; }
.brand img { display: block; height: 24px; width: auto; }
.brand span { padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.5rem; }
.top .primary { flex: 1; min-width: 0; }
.top .primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.top .primary a { position: relative; display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 10px; color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; font-weight: 700; white-space: nowrap; transition: color 125ms var(--ease-out); }
.top .primary a:hover { color: var(--text); }
.top .primary a[aria-current] { color: var(--text); }
.top .primary a[aria-current]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; background: var(--red); }
.top .primary svg { flex: none; }
.menu-button { display: none; margin-left: auto; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; font-size: 0.875rem; cursor: pointer; }
.menu-close { display: none; }

/* ---------- page layout: section navigation flows with the page */
.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; max-width: 1440px; margin: 0 auto; padding: 32px 32px 96px; }
.layout.no-side { grid-template-columns: minmax(0, 1fr); }
.side { position: sticky; top: 64px; align-self: start; max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 32px 8px 48px 0; margin-top: -32px; font-size: 0.875rem; line-height: 1.25rem; }
.side-title { margin: 0 0 8px 10px; font-weight: 800; font-size: 1.125rem; line-height: 1.5rem; }
.side-sub { margin: 24px 0 6px 10px; font-weight: 700; font-size: 0.6875rem; line-height: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li.folder > ul { margin: 2px 0 8px 19px; padding-left: 8px; border-left: 1px solid var(--line); }
.side a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: var(--text); text-decoration: none; border-radius: 6px; transition: background-color 125ms var(--ease-out); }
.side a svg, .side .ni { flex: none; width: 18px; height: 18px; color: var(--text-secondary); }
.side a:hover { background: var(--frame); }
.side a:hover svg { color: var(--text); }
.side a[aria-current="page"] { font-weight: 700; background: var(--frame); }
.side a[aria-current="page"] svg { color: var(--red); }
.side li.folder > ul a { padding-top: 5px; padding-bottom: 5px; }
.side li.folder > ul .ni { width: 0; margin-right: -10px; }
.content { min-width: 0; }

/* ---------- page header */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; font-size: 0.8125rem; color: var(--text-secondary); }
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.page-head { padding: 24px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.page-head h1 { font-weight: 800; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.015em; margin: 0; text-wrap: balance; max-width: 22ch; }
.lead { font-size: 1.25rem; line-height: 1.75rem; color: var(--text-secondary); max-width: 40rem; margin: 20px 0 0; text-wrap: pretty; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }

/* ---------- section heroes (five styles, see /hero-styles/) */
.hero { margin: 0 0 48px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; min-height: 360px; padding: 56px; }
.hero h1 { font-weight: 800; font-size: clamp(3.5rem, 9vw, 8.5rem); line-height: 0.92; letter-spacing: -0.03em; margin: 0; }
.hero .lead { font-size: 1.25rem; line-height: 1.75rem; max-width: 34rem; margin-top: 28px; }
.hero-field { background: var(--red); color: #fff; }
.hero-field .hero-inner { position: relative; grid-template-columns: minmax(0, 0.55fr); min-height: 440px; padding: 0 56px; }
.hero-field .hero-art { position: absolute; inset: 0; }
.hero-field .hero-text { position: relative; z-index: 1; }
.hero-field .hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero-field .hero-text, .hero-material .hero-text { padding: 48px 0; }
.hero-field h1 { font-size: clamp(3.25rem, 6.5vw, 6rem); }
.hero-material .hero-art img { -webkit-mask-image: linear-gradient(to right, transparent, #000 22%); mask-image: linear-gradient(to right, transparent, #000 22%); display: block; width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: 70% 50%; }
.hero-field .eyebrow, .hero-field .lead { color: #fff; }
.hero-type { border-bottom: 1px solid var(--line); }
.hero-type .hero-inner { padding: 40px 0 56px; }
.hero-type h1 { font-size: clamp(4rem, 12vw, 10.5rem); }
.hero-mark { display: block; width: auto; height: 80px; margin-bottom: 24px; }
.hero-mark ~ .hero-text .eyebrow { display: none; }
.hero.hero-logo { border-bottom: 1px solid var(--line); }
.hero.hero-logo .hero-inner { padding: 40px 0 56px; }
.hero-material { background: #eeeff0; color: #212121; }
.hero-material .lead { color: #484848; }
.hero-material .hero-inner, .hero.hero-live .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding: 0 0 0 56px; }
.hero-material h1 { font-size: clamp(3.25rem, 6.5vw, 6rem); }
.hero.hero-live h1 { font-size: clamp(3rem, 5vw, 4.75rem); }

.hero.hero-live { background: var(--frame); }
.hero.hero-live .hero-inner { padding: 48px 48px 48px 56px; }
.live-art { color-scheme: light; background: #fff; color: #212121; padding: 32px; }

/* the live collage: real components, entrance staggered once */
.collage { display: grid; gap: 16px; }
.collage-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.collage-row oc-button-v1:first-child { flex: 1 1 12rem; }
@media (prefers-reduced-motion: no-preference) {
  .collage > * { animation: rise 425ms cubic-bezier(0.2, 0, 0, 1) both; }
  .collage > :nth-child(2) { animation-delay: 80ms; }
  .collage > :nth-child(3) { animation-delay: 160ms; }
  .collage > :nth-child(4) { animation-delay: 240ms; }
  .intro h1 .line { display: inline-block; animation: rise 520ms cubic-bezier(0.2, 0, 0, 1) both; }
  .intro h1 .line + .line { animation-delay: 90ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- body: text column and table of contents */
.body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.body.has-toc { grid-template-columns: minmax(0, 1fr) 200px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.8125rem; line-height: 1.125rem; }
.toc p { margin: 0 0 12px; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc li.d3 a { padding-left: 24px; }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--text-secondary); text-decoration: none; }
.toc a:hover { color: var(--text); }

.doc { max-width: 46rem; font-size: 1.0625rem; line-height: 1.75rem; }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-weight: 800; font-size: 2rem; line-height: 2.5rem; letter-spacing: -0.01em; margin: 72px 0 20px; scroll-margin-top: 88px; }
.doc h3 { font-size: 1.375rem; line-height: 1.875rem; margin: 48px 0 12px; scroll-margin-top: 88px; }
.doc h4, .doc h5, .doc h6 { font-size: 1.0625rem; line-height: 1.5rem; margin: 32px 0 8px; scroll-margin-top: 88px; }
.doc p, .doc ul, .doc ol { margin: 0 0 20px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--text-secondary); }
.doc a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color 125ms var(--ease-out); }
.doc a:hover { text-decoration-color: var(--red); }
.doc a.ext { color: inherit; }
.doc img { display: block; max-width: 100%; height: auto; margin: 24px 0; }
.doc p > img:only-child { margin: 0; }
.doc blockquote { margin: 0 0 20px; padding: 20px 24px; background: var(--frame); }
.doc blockquote > :last-child { margin-bottom: 0; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875em; background: var(--frame); padding: 2px 5px; border-radius: 4px; }
.doc pre { background: var(--frame); padding: 20px; overflow: auto; font-size: 0.8125rem; line-height: 1.25rem; border-radius: var(--radius); }
.doc pre code { background: none; padding: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 32px; font-size: 0.875rem; line-height: 1.25rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; border-bottom-color: var(--text); white-space: nowrap; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* pictures from the documentation */
.plate { margin: 32px 0; }
.plate img { margin: 0; background: var(--frame); }
figcaption { margin-top: 12px; font-size: 0.8125rem; line-height: 1.25rem; color: var(--text-secondary); }

/* live examples: real OTTO components on a light stage */
.live { margin: 32px 0; border: 1px solid var(--line); }
.stage { position: relative; color-scheme: light; background: #fff; color: #212121; padding: 32px; font-size: 1rem; line-height: 1.5rem; }
.live figcaption { display: flex; align-items: baseline; gap: 12px; margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); }
.live-tag { font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.code { border-top: 1px solid var(--line); font-size: 0.8125rem; }
.code summary { padding: 10px 20px; cursor: pointer; color: var(--text-secondary); font-weight: 700; list-style: none; }
.code summary::-webkit-details-marker { display: none; }
.code summary::before { content: "+ "; }
.code[open] summary::before { content: "− "; }
.code summary:hover { color: var(--text); }
.doc .code pre { margin: 0; border-radius: 0; padding: 16px 20px 20px; }
.demo-grid { display: grid; gap: 32px; }
.demo-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.demo-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.group, .demo-stack { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.demo-row > oc-button-v1:not([fit-content]) { flex: 1 1 12rem; }
.gap-8 { gap: 8px; }
.demo-row.end { justify-content: flex-end; }
.demo-row.tight { max-width: 320px; flex-wrap: nowrap; }
.demo-row.tight > * { flex: 1 1 0; min-width: 0; }
.narrow { max-width: 360px; }
.on-frame { background: #f0f0f0; padding: 16px; margin: -16px; }
.demo-label { margin: 0; font-size: 0.75rem; line-height: 1rem; font-weight: 700; color: #6d6d6d; }
.demo-block { background: #fff; box-shadow: 0 0 0 16px #f0f0f0; margin: 16px; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.demo-title { margin: 0; font-weight: 700; }
.demo-copy { margin: 0; font-size: 0.875rem; }
.stage oc-banner-v1, .stage oc-switch-v3[width-behavior="fill"], .stage oc-chip-v3[width-behavior="fill"] { display: block; }
.doc .stage p { margin: 0; }

/* do, don't and caution cards */
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 32px 24px; margin: 24px 0 40px; }
.rule { margin: 0; display: flex; flex-direction: column; }
.rule img { margin: 0; background: var(--frame); }
.rule > img, .rule > .stage { border-bottom: 4px solid var(--kind); }
.rule > .stage { padding: 24px; flex: 1; display: flex; align-items: center; }
.rule > .stage > * { flex: 1; }
.rule figcaption { margin: 12px 0 0; font-size: 0.9375rem; line-height: 1.375rem; color: var(--text); }
.rule-kind { display: block; margin-bottom: 4px; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kind); }
.rule.do { --kind: var(--do); }
.rule.dont { --kind: var(--dont); }
.rule.caution { --kind: var(--caution); }
.rule:not(:has(> img, > .stage)) { padding-top: 12px; border-top: 4px solid var(--kind); }

/* sources as small links at the end of the page */
.page-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 80px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.25rem; color: var(--text-secondary); }
.page-foot > span:first-child { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; margin-right: 4px; }
.page-foot a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.page-foot a:hover { color: var(--text); }

.site-foot { border-top: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.25rem; color: var(--text-secondary); }
.foot-inner { max-width: 1440px; margin: 0 auto; padding: 32px; display: flex; justify-content: space-between; gap: 32px; }
.foot-inner p { margin: 0; max-width: 48rem; }
.site-foot a { color: var(--text-secondary); text-underline-offset: 3px; }
.site-foot a:hover { color: var(--text); }

/* ---------- buttons on the start page (OTTO button 100 look) */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px 0 20px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; text-decoration: none; transition: background-color 125ms var(--ease-out); }
.button.primary { background: var(--red); color: #fff; }
.button.primary:hover { background: #c70019; }
.button.secondary { background: var(--frame); color: var(--text); }
.button.secondary:hover { background: color-mix(in srgb, var(--frame) 85%, var(--text)); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; }

/* ---------- start page */
.home { display: block; }
.intro { background: #eeeff0; color: #212121; overflow: hidden; }
.intro .lead { color: #484848; }
.intro-inner { max-width: 1440px; margin: 0 auto; padding: 0 0 0 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; min-height: 600px; }
.intro-text { padding: 64px 0; }
.intro h1 { font-weight: 800; font-size: clamp(3rem, 6.4vw, 6.25rem); line-height: 0.95; letter-spacing: -0.03em; margin: 0; }
.intro h1 .line { display: inline-block; white-space: nowrap; }
.intro .lead { margin-top: 32px; font-size: 1.25rem; line-height: 1.875rem; }
.intro .button.secondary { background: #fff; color: #212121; }
.intro-art { align-self: stretch; }
.intro-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; -webkit-mask-image: linear-gradient(to right, transparent, #000 20%); mask-image: linear-gradient(to right, transparent, #000 20%); }
@media (prefers-reduced-motion: no-preference) {
  .intro-art img { animation: settle 900ms cubic-bezier(0.2, 0, 0, 1) both; }
}
@keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* red band: generated red-ground still, exact OTTO red around it */
.red-band { position: relative; margin-top: 96px; background: var(--red); color: #fff; overflow: hidden; }
.red-band-bg { position: absolute; inset: 0 0 0 auto; width: min(70%, 1100px); height: 100%; object-fit: cover; object-position: 80% 50%; -webkit-mask-image: linear-gradient(to right, transparent, #000 30%); mask-image: linear-gradient(to right, transparent, #000 30%); }
.red-band-inner { position: relative; max-width: 1440px; margin: 0 auto; padding: 88px 32px 96px; }
.red-band h2 { font-weight: 800; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 48px; max-width: 14ch; }
.red-band ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; max-width: 30rem; counter-reset: s; }
.red-band li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; font-size: 1rem; line-height: 1.5rem; }
.red-band li::before { content: counter(s); grid-row: span 3; font-weight: 800; font-size: 1.5rem; line-height: 1.875rem; }
.red-band strong { font-weight: 800; font-size: 1.375rem; line-height: 1.875rem; }
.red-band a { justify-self: start; margin-top: 6px; font-size: 0.8125rem; font-weight: 700; color: #fff; text-underline-offset: 3px; }

.band { max-width: 1440px; margin: 0 auto; padding: 96px 32px 0; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; margin-bottom: 32px; }
.band-head h2 { font-weight: 800; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
.band-head p { margin: 0; color: var(--text-secondary); max-width: 32rem; }

.entries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.entry a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 28px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; transition: background-color 125ms var(--ease-out); }
.entry a:hover { background: var(--frame); }
.entry-icon { display: flex; margin-bottom: 16px; color: var(--text); }
.entry a:hover .entry-icon { color: var(--red); }
.entry-label { font-weight: 800; font-size: 1.5rem; line-height: 1.75rem; }
.entry-text { font-size: 0.9375rem; line-height: 1.375rem; color: var(--text-secondary); max-width: 26rem; }
.entry.lead-entry { grid-column: span 2; grid-row: span 2; }
.entry.lead-entry a { position: relative; overflow: hidden; background: var(--red); color: #fff; justify-content: flex-end; min-height: 440px; border-color: var(--red); }
.entry.lead-entry a:hover { background: var(--red); }
.entry-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; transition: transform 425ms cubic-bezier(0.2, 0, 0, 1); }
.entry.lead-entry a:hover .entry-bg { transform: scale(1.03); }
.entry.lead-entry .entry-bg { object-position: 100% 50%; }
.entry.lead-entry .entry-label, .entry.lead-entry .entry-text { position: relative; z-index: 1; }
.entry.lead-entry .entry-label { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; }
.entry.lead-entry .entry-text { color: #fff; font-size: 1.0625rem; line-height: 1.5rem; max-width: 22rem; }

.statements { max-width: 1440px; margin: 96px auto 0; padding: 0 32px; }
.statements ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.statements li { counter-increment: s; padding-top: 20px; border-top: 3px solid var(--text); font-size: 1rem; line-height: 1.5rem; color: var(--text-secondary); }
.statements li::before { content: counter(s); display: block; font-weight: 800; font-size: 1rem; color: var(--red); margin-bottom: 12px; }
.statements strong { display: block; color: var(--text); font-weight: 800; font-size: 1.5rem; line-height: 1.875rem; margin-bottom: 8px; }
.statements a { display: inline-block; margin-top: 8px; font-size: 0.8125rem; color: var(--text-secondary); text-underline-offset: 3px; }

.glance-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.tile { display: flex; flex-direction: column; background: var(--frame); padding: 28px; }
.tile h3 { margin: 0 0 24px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.more { margin-top: auto; padding-top: 24px; font-size: 0.8125rem; font-weight: 700; color: var(--text); text-underline-offset: 3px; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 12px; }
.swatches li { display: flex; flex-direction: column; font-size: 0.8125rem; line-height: 1.125rem; }
.swatches li::before { content: ""; display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; background: var(--c); box-shadow: inset 0 0 0 1px var(--line); }
.swatches code { font-size: 0.75rem; color: var(--text-secondary); }
.sw-red { --c: #eb001f; } .sw-text { --c: #212121; } .sw-secondary { --c: #6d6d6d; } .sw-frame { --c: #f0f0f0; } .sw-canvas { --c: #fff; } .sw-interactive { --c: #2366cb; }
.specimen { margin: 0 0 16px; font-weight: 800; font-size: 6rem; line-height: 1; letter-spacing: -0.03em; }
.scale { list-style: none; margin: 0; padding: 0; }
.scale li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.scale code { font-size: 0.75rem; color: var(--text-secondary); }
.s-display { font-weight: 800; font-size: 1.5rem; } .s-h300 { font-weight: 700; font-size: 1.125rem; } .s-h100 { font-weight: 700; font-size: 0.9375rem; } .s-copy { font-size: 0.875rem; }
.icon-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 12px; }
.icon-grid li { display: flex; justify-content: center; }

.brands { padding-bottom: 120px; }
.brand-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.brand-card { display: flex; flex-direction: column; gap: 24px; padding: 40px; border: 1px solid var(--line); color: var(--text-secondary); text-decoration: none; transition: border-color 125ms var(--ease-out); }
.brand-card:hover { border-color: var(--text); }
.brand-card img { height: 32px; width: auto; align-self: flex-start; }
.brand-card.group img { background: #fff; padding: 4px; box-sizing: content-box; }

/* ---------- component overview: bento grid per group */
.bento-wrap { max-width: none; }
.body:has(.bento-wrap) .doc { max-width: none; }
.bento-group + .bento-group { margin-top: 56px; }
.doc .bento-group h2 { margin: 0 0 16px; font-size: 0.75rem; line-height: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); font-weight: 700; }
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 176px; grid-auto-flow: dense; gap: 12px; }
.doc .bento li { margin: 0; }
.bento .tile-big { grid-column: span 2; grid-row: span 2; }
.bento .tile-wide { grid-column: span 2; }
.doc .bento a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; height: 100%; padding: 20px; background: var(--frame); color: var(--text); text-decoration: none; overflow: hidden; transition: background-color 125ms var(--ease-out); }
.doc .bento a:hover { background: color-mix(in srgb, var(--frame) 88%, var(--text)); }
.bento-art { position: absolute; top: 20px; right: 20px; color: var(--text); transition: transform 425ms cubic-bezier(0.2, 0, 0, 1); }
.bento-art .a { stroke: var(--red); }
.bento .tile-big .bento-art { top: auto; bottom: 50%; right: 50%; transform: translate(50%, 40%); }
.bento a:hover .bento-art { transform: translateY(-3px); }
.bento .tile-big a:hover .bento-art { transform: translate(50%, 36%); }
.bento-name { position: relative; font-weight: 800; font-size: 1.125rem; line-height: 1.5rem; }
.bento .tile-big .bento-name { font-size: 2rem; line-height: 2.25rem; letter-spacing: -0.01em; }
.bento-desc { position: relative; font-size: 0.875rem; line-height: 1.25rem; color: var(--text-secondary); max-width: 26rem; }

/* overview tiles for list-only section pages */
.body:has(.tiles) .doc { max-width: none; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 12px; }
.doc .tiles li { margin: 0; }
.doc .tiles a { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 200px; padding: 24px; background: var(--frame); color: var(--text); text-decoration: none; transition: background-color 125ms var(--ease-out); }
.doc .tiles a:hover { background: color-mix(in srgb, var(--frame) 88%, var(--text)); }
.tile-icon { display: flex; margin-bottom: auto; padding-bottom: 24px; color: var(--text); }
.tiles a:hover .tile-icon { color: var(--red); }
.tile-name { font-weight: 800; font-size: 1.25rem; line-height: 1.5rem; }
.tile-desc { font-size: 0.875rem; line-height: 1.25rem; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-count { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.04em; }
.doc .intro-para { font-size: 1.25rem; line-height: 1.875rem; max-width: 42rem; margin-bottom: 40px; }

/* tokens: previews and swatch grids */
.tv-cell { display: inline-flex; align-items: center; justify-content: center; width: 56px; min-height: 32px; margin-right: 12px; vertical-align: middle; }
.tv { display: inline-block; }
.tv-bar { height: 8px; background: var(--red); min-width: 2px; }
.tv-cell:has(.tv-bar) { justify-content: flex-start; width: auto; min-width: 56px; }
.tv-radius { width: 32px; height: 32px; border: 1px solid var(--text); border-right: 0; border-bottom: 0; border-top-right-radius: 0 !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.tv-shadow { width: 40px; height: 28px; background: #fff; }
.tv-font { color: var(--text); line-height: 1 !important; }
.tv-curve { color: var(--red); }
.doc td:has(.tv-cell) { white-space: nowrap; }
.swatch-grid { list-style: none; margin: 16px 0 48px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 20px 12px; }
.doc .swatch-grid li { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 0.8125rem; line-height: 1.125rem; }
.sg-chip { position: relative; display: block; aspect-ratio: 3 / 2; margin-bottom: 8px; background: var(--l); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.sg-dark { position: absolute; right: 0; bottom: 0; width: 38%; height: 38%; background: var(--d); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15); }
.sg-name { font-weight: 700; word-break: break-word; }
.doc .swatch-grid code { background: none; padding: 0; font-size: 0.75rem; color: var(--text-secondary); }
.sg-note { font-size: 0.75rem; color: var(--text-secondary); }

/* galleries of generated pictures */
.body:has(.shots) .doc { max-width: 64rem; }
.shots { list-style: none; margin: 16px 0 40px; padding: 0; columns: 3 16rem; column-gap: 12px; }
.shots-2 { columns: 2 16rem; }
.doc .shots li { break-inside: avoid; margin: 0 0 12px; }
.shots a { display: block; }
.doc .shots img { margin: 0; width: 100%; height: auto; background: var(--frame); transition: opacity 125ms var(--ease-out); }
.shots a:hover img { opacity: 0.9; }
.shots span { display: block; margin-top: 6px; font-size: 0.75rem; line-height: 1rem; color: var(--text-secondary); }

/* code embedded from the component library */
.code-embed { margin-top: 8px; }
.code-embed h3 { font-size: 1.25rem; }
.code-embed .live .stage { padding: 24px; }
.code-embed > table, .code-embed table { font-size: 0.8125rem; }

/* ---------- hero style board */
.board { max-width: 1280px; margin: 0 auto; padding: 32px 32px 96px; }
.board-item { margin-top: 64px; }
.board-label { margin: 0 0 16px; max-width: 48rem; color: var(--text-secondary); font-size: 0.9375rem; }
.board-label strong { color: var(--text); margin-right: 6px; }
.board .hero { margin: 0; }
.board .hero-type, .board .hero.hero-logo { border-top: 1px solid var(--line); }

/* ---------- galleries for folders */
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 8px; }
.gallery li { margin: 0; }
.gallery a { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--frame); color: var(--text); text-decoration: none; font-size: 0.75rem; line-height: 1rem; word-break: break-all; }
.gallery img { width: 100%; height: 6rem; object-fit: contain; margin: 0; background: #fff; }
.folder-list { columns: 2; font-size: 0.875rem; }

/* ---------- small screens */
@media (max-width: 1180px) {
  .top .primary a span { display: none; }
  .top .primary a { padding: 0 12px; }
  .top .primary a[aria-current]::after { left: 6px; right: 6px; }
  .body.has-toc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .top { padding: 0 16px; gap: 16px; }
  .brand span { display: none; }
  .menu-button { display: inline-flex; }
  .top .primary { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .menu-state:checked ~ .top .primary { display: block; }
  .menu-state:checked ~ .top .menu-open { display: none; }
  .menu-state:checked ~ .top .menu-close { display: inline; }
  .top .primary ul { flex-direction: column; gap: 0; }
  .top .primary a { height: 48px; padding: 0 4px; }
  .top .primary a span { display: inline; }
  .top .primary a[aria-current]::after { left: -16px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px 64px; }
  .side { order: 2; border-top: 1px solid var(--line); }
  .hero { margin: 0 -16px 40px; }
  .hero-inner, .hero-material .hero-inner, .hero-field .hero-inner, .hero.hero-live .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 40px 16px; min-height: 0; }
  .hero-type .hero-inner, .hero.hero-logo .hero-inner { padding: 32px 16px 40px; }
  .hero-material .hero-inner, .hero-field .hero-inner { padding-bottom: 0; }
  .hero-material .hero-art, .hero-field .hero-art { margin: 0 -16px; }
  .hero-field, .entry.lead-entry a, .entry.lead-entry a:hover { background: #e0061d; }
  .hero-field .hero-art { position: static; }
  .hero-field .hero-art img { aspect-ratio: 2 / 1; height: auto; object-position: 88% 50%; }
  .hero-material .hero-art img { min-height: 0; aspect-ratio: 4 / 3; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%); mask-image: linear-gradient(to bottom, transparent, #000 20%); }
  .hero-mark { height: 56px; }
  .page-head { padding: 24px 0 32px; margin-bottom: 32px; }
  .stage { padding: 20px; }
  .band { padding: 72px 16px 0; }
  .statements { padding: 0 16px; margin-top: 72px; }
  .statements ol, .glance-grid, .brand-pair { grid-template-columns: minmax(0, 1fr); }
  .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry.lead-entry { grid-column: 1 / -1; grid-row: auto; }
  .entry.lead-entry a { min-height: 0; justify-content: flex-start; padding-top: 0; }
  .entry.lead-entry .entry-bg { position: static; order: -1; width: calc(100% + 56px); height: auto; aspect-ratio: 2 / 1; max-width: none; margin: 0 -28px 16px; object-position: 88% 50%; }
  .side { position: static; max-height: none; overflow: visible; margin-top: 64px; padding: 24px 0 0; }
  .intro-inner { grid-template-columns: minmax(0, 1fr); padding: 0; min-height: 0; gap: 0; }
  .intro-text { padding: 48px 16px 32px; }
  .intro-art img { aspect-ratio: 4 / 3; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%); mask-image: linear-gradient(to bottom, transparent, #000 20%); }
  .red-band-bg { width: 100%; opacity: 0.35; }
  .red-band-inner { padding: 64px 16px 72px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .bento .tile-wide { grid-column: span 2; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .entry a { padding: 20px; }
  .foot-inner { flex-direction: column; padding: 24px 16px; }
  .board { padding: 16px 16px 64px; }
  .board .hero { margin: 0 -16px; }
}
@media (max-width: 600px) {
  .entries { grid-template-columns: minmax(0, 1fr); }
  .entry a { padding: 24px 20px 28px; }
  .entry.lead-entry a { padding-top: 0; }
  .entry.lead-entry .entry-bg { width: calc(100% + 40px); margin: 0 -20px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
