/* Toyineer site stylesheet (redesign, Nov 2026).
   The page is built like a blueprint sheet: black solid lines are cut edges,
   red dashed lines are folds, and panel colours match the printed blueprints. */

@font-face { font-family: "D-DIN Condensed"; src: url("fonts/d-dincondensed-bold-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "D-DIN Condensed"; src: url("fonts/d-dincondensed-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "D-DIN"; src: url("fonts/D-DIN.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "D-DIN"; src: url("fonts/D-DIN-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Galindo"; src: url("fonts/galindo-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #1f2933;
  --muted: #56616c;
  --paper: #ffffff;
  --cut: #1f2933;          /* black cut line */
  --fold: #e8302a;         /* red fold line */
  --go: #8AC926;           /* brand green: buy / primary action */
  --go-ink: #1d3a00;
  /* panel colours, sampled from the printed blueprints */
  --p-blue: #7fd3f0;
  --p-yellow: #ffe066;
  --p-pink: #dba6cc;
  --p-green: #9fc995;
  --p-orange: #f6956b;
  --p-sky: #5aa9dc;
  /* brand accents from the logo */
  --title: #8e3c96;        /* toy-name purple on the blueprint headers */
  --tier: #c99400;         /* crafting-tier gold */
  --cat: #4c8a1c;          /* category green */
  --head: "D-DIN Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "D-DIN", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;   /* D-DIN everywhere; system fonts only while it loads */
  --wrap: 1140px;
  --read: 68ch;
  --r: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--title); }
:focus-visible { outline: 3px solid var(--p-sky); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r); z-index: 10; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, .headline { font-family: var(--head); font-weight: 700; line-height: 1.02; letter-spacing: -.005em; margin: 0 0 .4em; text-wrap: balance; }
h1, .headline { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
/* Plain search label: the page's real h1, shown small above the creative headline (.headline). */
h1.label { font-size: 1.08rem; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; color: var(--cat); margin: 0 0 .9em; max-width: 52ch; text-wrap: balance; }
p.headline { max-width: none; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.55rem; line-height: 1.1; }
p { margin: 0 0 1em; max-width: var(--read); }
/* Text styles, kept to five: headline (h1-h3, .headline), label (h1.label), body (every paragraph),
   caption (small notes under a label or number: one size, grey), and the button. Nothing else. */
.lede, .fine { font-size: inherit; color: inherit; }

/* ---------- fold line: the section divider ---------- */
.fold { border: 0; height: 2px; margin: 0; background: repeating-linear-gradient(90deg, var(--fold) 0 14px, transparent 14px 22px); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { margin-bottom: 36px; }


/* ---------- buttons ---------- */
/* One button style site-wide: the green button. */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 700 1.2rem/1 var(--head); letter-spacing: .02em; text-decoration: none; border: 2px solid var(--go); background: var(--go); color: var(--go-ink); box-shadow: 0 3px 0 #5f9416; cursor: pointer; }
.btn:hover { background: #97d532; border-color: #97d532; color: var(--go-ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid #e3e6e9; background: #fff; position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font: 700 1.12rem/1 var(--head); letter-spacing: .02em; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--fold); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav .btn { min-height: 42px; padding: 10px 18px; font-size: 1.08rem; white-space: nowrap; }
@media (max-width: 860px) {
  .nav .nav-link { display: none; }
  .brand img { height: 34px; }
}
@media (max-width: 420px) {
  .brand img { height: 26px; }
  .nav .btn { min-height: 40px; padding: 8px 14px; font-size: 1rem; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .headline { max-width: 18ch; }
.hero-grid .headline { max-width: 19ch; font-size: clamp(2.3rem, 4.4vw, 3.5rem); }
.hero-media { position: relative; border: 2px solid var(--cut); border-radius: var(--r); overflow: hidden; background: var(--p-yellow); aspect-ratio: 4 / 3; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 12px; bottom: 12px; background: #fff; border: 2px solid var(--cut); border-radius: 999px; padding: 4px 12px; font: 700 1rem/1.3 var(--head); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-media { order: -1; } }

/* ---------- "already at home" kit list ---------- */
.kit { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border: 2px solid var(--cut); border-radius: var(--r); overflow: hidden; }
.kit li { padding: 18px 16px 16px; display: grid; gap: 10px; align-content: start; font: 700 1.2rem/1.1 var(--head); }
.kit li + li { border-left: 2px dashed var(--fold); }
.kit svg { width: 44px; height: 44px; }
.kit small { font: 400 .88rem/1.4 var(--body); color: var(--muted); }
@media (max-width: 760px) { .kit { grid-template-columns: 1fr 1fr; } .kit li + li { border-left: 0; } .kit li { border-top: 2px dashed var(--fold); } .kit li:nth-child(-n+2) { border-top: 0; } .kit li:nth-child(even) { border-left: 2px dashed var(--fold); } .kit li:last-child { grid-column: 1 / -1; } }

/* ---------- the five steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step { position: relative; border: 2px solid var(--cut); border-radius: var(--r); padding: 18px 16px 20px; background: #fff; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 1.4rem/1 var(--head); margin-bottom: 14px; }
.step:nth-child(1) { background: linear-gradient(var(--p-blue) 0 8px, #fff 8px); }
.step:nth-child(2) { background: linear-gradient(var(--p-yellow) 0 8px, #fff 8px); }
.step:nth-child(3) { background: linear-gradient(var(--p-pink) 0 8px, #fff 8px); }
.step:nth-child(4) { background: linear-gradient(var(--p-green) 0 8px, #fff 8px); }
.step:nth-child(5) { background: linear-gradient(var(--p-orange) 0 8px, #fff 8px); }
.step h3 { font-size: 1.45rem; }
.step p { margin: 0; }
.step .line-cut, .step .line-fold { display: inline-block; vertical-align: middle; width: 30px; height: 0; margin-right: 4px; }
.line-cut { border-top: 3px solid var(--cut); }
.line-fold { border-top: 3px dashed var(--fold); }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } .step:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- pack (product) panel: the one bold, cut-out shape ---------- */
.pack { display: grid; grid-template-columns: 1.1fr .9fr; border: 3px solid var(--cut); border-radius: var(--r); overflow: hidden; background: #fff; }
.pack-body { padding: clamp(24px, 4vw, 44px); }
.pack-facts { margin: 0; padding: clamp(24px, 4vw, 44px); background: var(--p-yellow); border-left: 3px dashed var(--fold); display: grid; gap: 14px; align-content: center; }
.pack-facts div { display: grid; grid-template-columns: 6.5ch 1fr; gap: 14px; align-items: baseline; }
.pack-facts dt { font: 700 2.4rem/1 var(--head); text-align: right; }
.pack-facts dd { margin: 0; }
.price { font: 700 2.6rem/1 var(--head); margin: 18px 0 0; }
.tbd { background: #fff3a8; outline: 2px dashed #c99400; padding: 0 .25em; font-style: normal; }
@media (max-width: 820px) { .pack { grid-template-columns: 1fr; } .pack-facts { border-left: 0; border-top: 3px dashed var(--fold); } }

/* ---------- spec plate: echoes the blueprint page header ---------- */
.plate { font-family: var(--head); font-weight: 700; line-height: 1.05; }
.plate .p-name { color: var(--title); font-size: 1.7rem; display: block; }
.plate .p-cat { color: var(--cat); font-size: 1rem; display: block; letter-spacing: .03em; }
.plate .p-tier { color: var(--tier); font-size: 1rem; display: block; letter-spacing: .03em; }

/* ---------- tiers and toy cards ---------- */
.tier { padding: 34px 0; }
.tier + .tier { border-top: 2px dashed var(--fold); }
.tier-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.tier-head h2 { font-size: 2rem; margin: 0; }
.tier-head p { margin: 0; }
.toys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.toy { border: 2px solid var(--cut); border-radius: var(--r); background: #fff; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.toy-swatch { height: 12px; }
.toy-in { padding: 16px 18px 18px; }
.toy .plate .p-name { font-size: 1.6rem; }
.toy-stats { display: flex; gap: 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--muted); }
.toy-stats b { display: block; font: 700 1.5rem/1 var(--head); color: var(--ink); }
.toy-terms { margin: 12px 0 0; }
.toy a.toy-link { display: block; padding: 12px 18px; border-top: 2px dashed var(--fold); font: 700 1.15rem/1 var(--head); text-decoration: none; }
.toy a.toy-link:hover { background: #fafbfc; }
@media (max-width: 900px) { .toys { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .toys { grid-template-columns: 1fr; } }

/* ---------- glossary of mechanisms ---------- */
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 0; }
.glossary div { padding: 16px 0; border-top: 1px solid #e3e6e9; }
.glossary dt { font: 700 1.4rem/1.1 var(--head); }
.glossary dd { margin: 4px 0 0; }
.glossary dd .used { display: block; font-size: .88rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 720px) { .glossary { grid-template-columns: 1fr; } }

/* ---------- split callouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border: 2px solid var(--cut); border-radius: var(--r); padding: 26px; }
.panel h3 { font-size: 1.8rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid #e3e6e9; }
.faq details:last-child { border-bottom: 1px solid #e3e6e9; }
.faq summary { cursor: pointer; padding: 18px 0; font: 700 1.35rem/1.2 var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fold); font-size: 1.6rem; line-height: .8; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; }

/* ---------- assembly page ---------- */
.asm-head { padding: 28px 0 22px; }
.asm-head .lede { margin: 14px 0 0; }
.asm-head .plate .p-name { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.asm-head .plate .p-cat, .asm-head .plate .p-tier { font-size: 1.25rem; }
.player { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--cut); border-radius: var(--r); overflow: hidden; background: var(--ink); color: #fff; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-face { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px), var(--ink); }
.player-face h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 10px 0 6px; }
.player-face p { margin: 0 auto; color: #c9d1d8; }
.play { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--go); display: grid; place-items: center; margin: 0 auto; cursor: pointer; box-shadow: 0 4px 0 #5f9416; }
.play svg { width: 34px; height: 34px; margin-left: 5px; }
.play:hover { background: #97d532; }

.mini-steps { margin: 0; padding-left: 1.4em; }
.mini-steps li { margin: 4px 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; }
.facts dt { font-size: .88rem; color: var(--muted); }
.facts dd { margin: 0; font: 700 1.6rem/1 var(--head); }
.terms-list { margin: 0; }
.terms-list div + div { margin-top: 12px; }
.terms-list dt { font: 700 1.25rem/1.1 var(--head); }
.terms-list dd { margin: 2px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--go); color: var(--go-ink); padding: 40px 0 44px; border-top: 3px solid var(--cut); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.f-brand { font: 400 1.9rem/1 "Galindo", var(--body); }
.f-tag { font: 700 1.1rem/1.2 var(--head); letter-spacing: .04em; margin-top: 6px; }
.site-footer p { margin: 10px 0 0; font-size: .88rem; }
.f-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; font-size: .88rem; }
.f-social { display: flex; gap: 10px; margin-top: 16px; }
.f-social a { display: grid; place-items: center; width: 40px; height: 40px; background: #fff; border: 2px solid var(--cut); border-radius: 50%; }
.f-social svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Assembly page layout (10 Nov rev. 2): full-width player, note, then a row of boxes */
.asm-main { padding-bottom: 64px; }
.asm-note { margin: 26px 0 22px; text-align: center; }
.asm-note h2 { font-size: 1.9rem; margin-bottom: .2em; }
.asm-note p { margin: 0 auto; }
.asm-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: start; }
.asm-boxes .panel { padding: 22px; }
.asm-boxes h2 { font-size: 1.6rem; }
.asm-boxes .mini-steps { margin-bottom: 18px; }
.btn-small { font-size: 1.05rem; line-height: 1.15; min-height: 0; padding: 11px 18px; white-space: normal; text-align: left; }

/* "Then, imagination takes over" block under the five steps */
.imagine { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 56px; }
.imagine .section-head { margin: 0; }
@media (max-width: 860px) { .imagine { grid-template-columns: 1fr; } }

/* Process loop video under the five steps (home) */
.process-video { margin: 28px 0 0; border: 2px solid var(--cut); border-radius: var(--r); overflow: hidden; background: var(--p-yellow); aspect-ratio: 16 / 9; }
.process-video video { width: 100%; height: 100%; object-fit: cover; }



/* ---------- additions, 10 Nov pass 2 ---------- */
.section-tight { padding: clamp(32px, 4vw, 48px) 0; }
.h-small { font-size: 1.6rem; margin-bottom: 16px; }
.split-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .split-3 { grid-template-columns: 1fr; } }
.hero-plain { border: 0; background: none; aspect-ratio: auto; }
.hero-plain img { max-height: 360px; width: auto; margin-inline: auto; border: 2px solid var(--cut); border-radius: var(--r); }

/* engineering words (home): neat columns, all black; one column on a phone */
.words { list-style: none; margin: 0; padding: 0; columns: 4; column-gap: 40px; font: 700 1.4rem/1.2 var(--head); }
.words li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid #e3e6e9; }
.words a { color: var(--ink); text-decoration: none; display: block; }
.words a:hover { text-decoration: underline; }
@media (max-width: 980px) { .words { columns: 3; } }
@media (max-width: 700px) { .words { columns: 2; } }
@media (max-width: 520px) { .words { columns: 1; } }

/* one-liners */
.toy-line { margin: 12px 0 0; }
.toy-lines { margin: 0; padding-left: 1.1em; }
.toy-lines li { margin: 0 0 8px; }

/* the four categories (gallery) */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; }
.cats div { border-top: 12px solid var(--cut); padding-top: 10px; }
.cats dt { font: 700 1.4rem/1.1 var(--head); color: var(--cat); }
.cats dd { margin: 2px 0 0; }
@media (max-width: 760px) { .cats { grid-template-columns: 1fr 1fr; } }

/* standards index */
.std-index { padding: 24px 0 56px; }
.std-country { padding: 28px 0; }
.std-country + .std-country { border-top: 2px dashed var(--fold); }
.std-country h2 { font-size: 2rem; }
.std-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; }
.std-list a { font: 700 1.35rem/1.15 var(--head); }
.std-list small { display: block; font-size: .88rem; line-height: 1.4; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) { .std-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .std-list { grid-template-columns: 1fr; } }

/* standards pages */
.summary { margin-top: 24px; background: #fffbe6; }
.summary h2 { font-size: 1.5rem; }
.summary p { max-width: none; margin: 0; }
.std-group { margin: 0 0 36px; }
.std-group h2 { font-size: 1.7rem; padding-bottom: 10px; border-bottom: 2px solid var(--cut); margin: 0; }
.std-row { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 24px; padding: 18px 0; border-bottom: 2px dashed var(--fold); }
.std-code { font: 700 1.15rem/1.2 var(--head); overflow-wrap: anywhere; }
.std-code strong { display: block; color: var(--tier); }

.std-sources { max-width: none; }
@media (max-width: 820px) { .std-row { grid-template-columns: 1fr; gap: 8px; } }

/* contact and legal pages */
.prose { max-width: 820px; }
.prose h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { max-width: none; }
.field { margin: 0 0 16px; max-width: 560px; }
.field label { display: block; font: 700 1.15rem/1.2 var(--head); margin-bottom: 4px; }
.field input, .field textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--cut); border-radius: var(--r); font: inherit; color: var(--ink); background: #fff; }
.field textarea { resize: vertical; }

/* ---------- image slots (10 Nov pass 3) ---------- */
.slot { margin: 0; border: 2px solid var(--cut); border-radius: var(--r); overflow: hidden; background: var(--p-yellow); }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot-empty { display: grid; place-items: center; text-align: center; background: #fff3a8; border: 2px dashed #c99400; color: #6b5200; font: 700 1.2rem/1.2 var(--head); }
.slot-empty small { display: block; font: 400 .8rem/1.4 var(--body); margin-top: 4px; }
.toy-img { border: 0; border-radius: 0; border-bottom: 2px solid var(--cut); }
.toy-img.slot-empty { border-bottom: 2px dashed #c99400; }
.toy { grid-template-rows: auto auto 1fr auto; }
.pack-side { display: flex; flex-direction: column; border-left: 3px dashed var(--fold); }
.pack-side .slot { border: 0; border-radius: 0; border-bottom: 3px dashed var(--fold); }
.pack-side .pack-facts { border-left: 0; border-top: 0; flex: 1; }
@media (max-width: 820px) { .pack-side { border-left: 0; border-top: 3px dashed var(--fold); } }
.about-video { padding-bottom: clamp(40px, 6vw, 72px); }
.panel-narrow { max-width: 640px; margin-inline: auto; }
