
/* Layout: a stone-grey workshop wall. Home opens on one pinned 3D stage (a timber frame that builds as you scroll, then becomes the real photo);
   everything after it is a quiet editorial grid where the photographs do the talking. Measurements and labels are set in mono, like a cut list. */
:root {
  --bg: #eceee9;
  --surface: #f7f8f5;
  --ink: #131b17;
  --muted: #56615b;
  --line: rgba(19, 27, 23, 0.14);
  --pine: #21463b;
  --oak: #9c6a26;
  --oak-wash: rgba(156, 106, 38, 0.12);
  --night: #0d1714;
  --on-night: #e9ede5;
  --night-muted: #9aaba2;
  --star: #e2b866;
  --display: 'Bricolage Grotesque', 'Avenir Next Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1412; --surface: #151d1a; --ink: #e6eae3; --muted: #9ba69f; --line: rgba(230, 234, 227, 0.13);
    --pine: #8fc2aa; --oak: #d9a456; --oak-wash: rgba(217, 164, 86, 0.12);
    --night: #070d0b; --on-night: #e9ede5; --night-muted: #93a49b; --star: #e2b866; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1412; --surface: #151d1a; --ink: #e6eae3; --muted: #9ba69f; --line: rgba(230, 234, 227, 0.13);
  --pine: #8fc2aa; --oak: #d9a456; --oak-wash: rgba(217, 164, 86, 0.12);
  --night: #070d0b; --on-night: #e9ede5; --night-muted: #93a49b; --star: #e2b866; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }
::selection { background: var(--oak); color: var(--surface); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.label b { color: var(--oak); font-weight: 500; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; font-variation-settings: "wdth" 82, "opsz" 96; letter-spacing: -0.025em; line-height: 0.98; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8.4vw, 7.6rem); }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); letter-spacing: -0.015em; line-height: 1.05; }
h4 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 40rem; }
.prose { max-width: 38rem; display: grid; gap: 1em; color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
em.oak { font-style: normal; color: var(--oak); }

.btn { display: inline-flex; align-items: center; gap: 0.7em; padding: 0.95em 1.35em; border-radius: 3px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), background .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .35s, box-shadow .35s; }
.top.solid { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.top-in { max-width: var(--max); margin-inline: auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: auto; flex: none; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand span { display: grid; line-height: 1.1; min-width: 0; }
.brand b { font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand small { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.nav a { position: relative; text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 8px 11px; border-radius: 3px; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; background: var(--oak); }
.nav a.cta { color: var(--bg); background: var(--ink); margin-left: 8px; }
.nav a.cta::after { display: none; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 3px; cursor: pointer; }
.menu-btn i { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform .3s; }
@media (max-width: 1060px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 0; margin: 0; padding: calc(90px + env(safe-area-inset-top, 0px)) var(--gutter) 40px; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; transform: translateY(-102%); transition: transform .55s var(--ease); z-index: -1; overflow-y: auto; }
  .nav.open { transform: none; }
  .nav a { font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 650; font-size: clamp(1.8rem, 7vw, 2.6rem); color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { left: auto; right: 0; top: 50%; bottom: auto; width: 10px; height: 10px; border-radius: 50%; }
  .nav a.cta { margin: 20px 0 0; text-align: center; color: var(--bg); padding: 16px; }
  .menu-open .menu-btn i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-open .menu-btn i:last-child { transform: translateY(-3px) rotate(-45deg); }
}

/* ---------- pages ---------- */
main { display: block; }
.page { padding-bottom: 0; }
.page-head { padding-top: calc(150px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(40px, 6vw, 80px); display: grid; gap: 22px; }
.page-head h1 { font-size: clamp(2.8rem, 7.4vw, 6.4rem); max-width: 14ch; }
.sec { padding-block: clamp(64px, 9vw, 130px); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head.split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 24px 48px; }
@media (max-width: 820px) { .sec-head.split { grid-template-columns: minmax(0, 1fr); } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* reveal (only applied to things that start below the fold) */
.rv-wait { opacity: 0; transform: translateY(28px); }
.rv-in { transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.img-rv { overflow: hidden; }
.img-rv.rv-wait { opacity: 1; transform: none; clip-path: inset(12% 0 0 0); }
.img-rv.rv-wait img { transform: scale(1.12); }
.img-rv.rv-in { transition: clip-path 1.3s var(--ease); }
.img-rv.rv-in img { transition: transform 1.6s var(--ease); }

/* ---------- hero: pinned 3D build ---------- */
.hero { position: relative; height: 340vh; }
.hero-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#frame3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 62% 58%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 62% 58%, #000 10%, transparent 75%); }
.hero-copy { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; max-width: var(--max); margin-inline: auto; padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter) 120px; pointer-events: none; will-change: opacity, transform; }
.hero-copy > * { max-width: 34rem; }
.hero-copy h1 { max-width: 12ch; font-size: clamp(2.7rem, 6.6vw, 6.4rem); }
.hero-copy h1 span { display: block; }
.hero-copy h1 .line2 { color: var(--oak); }
.hero-copy .lede { color: var(--muted); }
.routes { display: flex; flex-wrap: wrap; gap: 10px; pointer-events: auto; }
.route { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 3px; text-decoration: none; font-weight: 600; transition: border-color .25s, transform .35s var(--ease); }
.route small { font-family: var(--mono); font-size: 0.68rem; color: var(--oak); letter-spacing: .1em; }
.route:hover { border-color: var(--ink); transform: translateY(-2px); }
.hud { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--max); margin-inline: auto; padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; pointer-events: none; font-family: var(--mono); font-size: 0.74rem; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.hud-l { display: grid; gap: 8px; min-width: 0; width: min(360px, 60vw); }
.hud-l b { color: var(--ink); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; }
.hud-bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.hud-bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--oak); }
.hud-r { text-align: right; text-transform: uppercase; letter-spacing: .14em; }
.cue { display: inline-flex; align-items: center; gap: 10px; }
.cue i { width: 1px; height: 34px; background: linear-gradient(var(--ink), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero-photo { position: absolute; inset: 0; margin: 0; clip-path: circle(0% at 50% 52%); will-change: clip-path; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; transform: scale(1.15); will-change: transform; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,10,.0) 40%, rgba(8,12,10,.72) 100%); }
.hero-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; max-width: var(--max); margin-inline: auto; padding: 0 var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); color: #f3f1ea; display: grid; gap: 12px; }
.hero-photo figcaption h2 { color: #f3f1ea; max-width: 12ch; }
.hero-photo figcaption .label { color: rgba(243,241,234,.78); }
.no3d .hero { height: auto; }
.no3d .hero-stick { height: auto; min-height: 100svh; }
.no3d .hero-photo { position: relative; clip-path: none; height: 100svh; }
.no3d .hero-copy { position: relative; }
.no3d #frame3d, .no3d .hud, .no3d .hero-grid { display: none; }

/* ---------- tree to build ---------- */
.journey { display: flex; gap: 10px; height: clamp(420px, 62vh, 640px); }
.jstep { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 3px; text-decoration: none; color: #f3f1ea; transition: flex-grow .8s var(--ease); background: var(--night); }
.jstep img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.jstep::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(6,10,8,.8)); }
.jstep .jt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; display: grid; gap: 6px; }
.jstep .jt .label { color: var(--star); }
.jstep h3 { color: #f3f1ea; }
.jstep p { font-size: .95rem; color: rgba(243,241,234,.82); max-width: 26rem; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease); }
.journey:hover .jstep { flex-grow: .8; }
.journey .jstep:hover, .journey .jstep:focus-within { flex-grow: 2.4; }
.jstep:hover img { transform: scale(1.05); filter: saturate(1); }
.jstep:hover p, .jstep:focus-within p { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .journey { flex-direction: column; height: auto; }
  .jstep { flex: none; height: 300px; }
  .jstep p { opacity: 1; transform: none; }
}

/* ---------- three routes ---------- */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
@media (max-width: 900px) { .three { grid-template-columns: minmax(0, 1fr); } }
.door { display: grid; gap: 16px; text-decoration: none; }
.door .ph { aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; background: var(--surface); }
.door .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.door:hover .ph img { transform: scale(1.05); }
.door .dt { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.door .dt span { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--oak); }
.door p { color: var(--muted); font-size: .98rem; }
.door .go { font-weight: 600; display: inline-flex; gap: 8px; }
.door:hover .go .arr { transform: translateX(4px); }
.go .arr { transition: transform .35s var(--ease); display: inline-block; }

/* ---------- sauna sticky story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.story-pics { position: sticky; top: 90px; height: calc(100vh - 120px); height: calc(100svh - 120px); max-height: 820px; border-radius: 3px; overflow: hidden; background: var(--night); }
.story-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
.story-pics img.on { opacity: 1; transform: none; }
.story-pics .tagline { position: absolute; left: 16px; bottom: 16px; z-index: 1; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #f3f1ea; background: rgba(6,10,8,.55); padding: 7px 10px; border-radius: 2px; backdrop-filter: blur(6px); }
.story-steps { display: grid; }
.sstep { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-block: 40px; opacity: .35; transition: opacity .6s; }
.sstep.on { opacity: 1; }
.sstep:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 0; }
.sstep:last-child { min-height: 60vh; }
.sstep .mobile-pic { display: none; }
@media (max-width: 820px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-pics { display: none; }
  .sstep, .sstep:first-child, .sstep:last-child { min-height: 0; opacity: 1; padding-block: 20px; }
  .sstep .mobile-pic { display: block; aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: 3px; }
}

/* ---------- night band (film teaser) ---------- */
.night { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.night .label { color: var(--night-muted); }
.night .lede, .night .prose { color: var(--night-muted); }
.night h2, .night h3 { color: var(--on-night); }
.night .btn { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.night .btn.ghost { background: transparent; color: var(--on-night); border-color: rgba(233,237,229,.25); }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.film-teaser { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .film-teaser { grid-template-columns: minmax(0, 1fr); } }
.film-box { position: relative; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; border: 1px solid rgba(233,237,229,.14); background: #0a0f14; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.film-box iframe, .film-host { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-box .poster { position: absolute; inset: 0; display: grid; place-items: center; gap: 14px; cursor: pointer; border: 0; color: var(--on-night); background:
  radial-gradient(ellipse at 50% 60%, rgba(224,173,115,.22), transparent 60%), #0a0f14; }
.film-box .poster svg { width: 76%; max-width: 520px; }
.film-box .poster .playc { position: absolute; width: 78px; height: 78px; border-radius: 50%; border: 1px solid rgba(233,237,229,.4); display: grid; place-items: center; background: rgba(10,15,20,.4); backdrop-filter: blur(6px); transition: transform .4s var(--ease), background .3s; }
.film-box .poster:hover .playc { transform: scale(1.08); background: rgba(224,173,115,.25); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(233,237,229,.14); border: 1px solid rgba(233,237,229,.14); border-radius: 3px; overflow: hidden; }
.facts div { background: var(--night); padding: 16px; display: grid; gap: 4px; }
.facts b { font-family: var(--display); font-variation-settings: "wdth" 80; font-size: 1.9rem; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); }

/* ---------- community teaser / partners ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.duo .ph { border-radius: 3px; overflow: hidden; }
.duo .ph img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 1px solid var(--line); }
.partner { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; text-decoration: none; }
.partner b { font-family: var(--display); font-variation-settings: "wdth" 85; font-weight: 650; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.1; }
.partner span { color: var(--muted); font-size: .95rem; }
.partner small { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oak); }
a.partner:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- review CTA ---------- */
.review-cta { position: relative; border: 1px solid var(--line); border-radius: 4px; padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 60px; align-items: end; background: var(--surface); overflow: hidden; }
.review-cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; opacity: .5; mask-image: linear-gradient(110deg, transparent 45%, #000); -webkit-mask-image: linear-gradient(110deg, transparent 45%, #000); }
.review-cta > * { position: relative; }
@media (max-width: 860px) { .review-cta { grid-template-columns: minmax(0, 1fr); } }
.review-cta .acts { display: grid; gap: 14px; justify-items: start; }

/* ---------- builds ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--muted); transition: all .25s; }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip small { font-family: var(--mono); font-size: .68rem; margin-left: 6px; opacity: .7; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.bcard { display: grid; gap: 12px; text-align: left; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity .4s, transform .5s var(--ease); }
.bcard[hidden] { display: none !important; }
.bcard .ph { position: relative; aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; background: var(--surface); }
.bcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.bcard:hover .ph img { transform: scale(1.05); }
.bcard .count { position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; padding: 5px 8px; background: rgba(6,10,8,.6); color: #f3f1ea; border-radius: 2px; }
.bcard .bt { display: grid; gap: 4px; }
.bcard .bt small { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oak); }
.bcard .bt b { font-family: var(--display); font-variation-settings: "wdth" 85; font-size: 1.3rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.1; }
.bcard .bt span { color: var(--muted); font-size: .92rem; }
.blank { position: absolute; inset: 0; display: grid; align-content: space-between; padding: 20px; background: var(--pine); color: var(--bg); }
.blank svg { width: 100%; height: auto; opacity: .85; }
.blank .label { color: color-mix(in srgb, var(--bg) 75%, transparent); }

dialog.lb { width: min(1180px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 4px; background: var(--surface); color: var(--ink); overflow: hidden; }
dialog.lb::backdrop { background: rgba(6,10,8,.72); backdrop-filter: blur(6px); }
.lb-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); max-height: inherit; }
@media (max-width: 820px) { .lb-in { grid-template-columns: minmax(0, 1fr); overflow-y: auto; } }
.lb-pics { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--night); min-height: 0; }
.lb-pics img { flex: none; width: 100%; height: min(80vh, 760px); object-fit: contain; scroll-snap-align: start; }
@media (max-width: 820px) { .lb-pics img { height: 62vh; } }
.lb-txt { padding: clamp(22px, 3vw, 40px); display: grid; gap: 16px; align-content: start; overflow-y: auto; }
.lb-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(6,10,8,.6); color: #f3f1ea; font-size: 1.3rem; cursor: pointer; }
.lb-dots { display: flex; gap: 6px; }
.lb-dots button { width: 34px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: var(--line); cursor: pointer; }
.lb-dots button[aria-current="true"] { background: var(--oak); }
dl.spec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: .95rem; }
dl.spec dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
dl.spec dd { margin: 0; }

/* ---------- learn ---------- */
.cards4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
@media (max-width: 760px) { .cards4 { grid-template-columns: minmax(0, 1fr); } }
.offer { background: var(--surface); padding: clamp(22px, 3vw, 40px); display: grid; gap: 14px; align-content: start; }
.offer .label b { margin-right: 6px; }
.offer p { color: var(--muted); }
.offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .95rem; }
.offer li { padding-left: 18px; position: relative; }
.offer li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--oak); }

.cutter { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: clamp(20px, 3vw, 40px); display: grid; gap: 26px; }
.cut-ctrls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; }
@media (max-width: 760px) { .cut-ctrls { grid-template-columns: minmax(0, 1fr); } }
.ctrl { display: grid; gap: 8px; }
.ctrl label { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: .95rem; }
.ctrl output { font-family: var(--mono); font-weight: 500; color: var(--oak); font-variant-numeric: tabular-nums; }
.ctrl input[type=range] { width: 100%; accent-color: var(--oak); }
.ctrl select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); }
.board-wrap { overflow-x: auto; }
#boardSvg { width: 100%; min-width: 520px; height: auto; display: block; }
.sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 28px; font-family: var(--mono); font-size: .9rem; font-variant-numeric: tabular-nums; }
.sum div { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.sum small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sum b { font-weight: 500; font-size: 1rem; }
.sum big { font-family: var(--display); font-variation-settings: "wdth" 80; font-size: 2.4rem; font-weight: 650; line-height: 1; color: var(--oak); }

/* ---------- projects ---------- */
.pcard { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); text-decoration: none; transition: border-color .3s; }
.pcard:hover { border-color: var(--ink); }
@media (max-width: 860px) { .pcard { grid-template-columns: minmax(0, 1fr); } }
.pcard .pv { background: var(--night); min-height: 340px; position: relative; display: grid; place-items: center; overflow: hidden; }
.pcard .pv svg { width: 82%; max-width: 560px; }
.pcard .pt { padding: clamp(22px, 3vw, 44px); display: grid; gap: 16px; align-content: center; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; }
.chain span { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); }
.soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 18px; }
.soon div { border: 1px dashed var(--line); border-radius: 4px; padding: 22px; display: grid; gap: 6px; }
.soon b { font-family: var(--display); font-variation-settings: "wdth" 85; font-size: 1.2rem; font-weight: 650; }
.soon span { color: var(--muted); font-size: .92rem; }

.pnav { position: sticky; top: calc(70px + env(safe-area-inset-top, 0px)); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.pnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pnav a { flex: none; padding: 14px 12px; text-decoration: none; font-size: .88rem; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; }
.pnav a span { font-family: var(--mono); font-size: .68rem; color: var(--oak); margin-right: 6px; }
.pnav a.on { color: var(--ink); border-color: var(--oak); }
.film-full { position: relative; height: min(78vh, 760px); min-height: 480px; border-radius: 4px; overflow: hidden; background: #0a0f14; }
.film-full iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
table.cut { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; background: var(--surface); }
table.cut th, table.cut td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cut th { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.cut td.n { font-family: var(--mono); color: var(--oak); width: 3.5em; }
table.cut td.d { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.cut tr:last-child td { border-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.steps li { background: var(--surface); padding: 24px; display: grid; gap: 10px; align-content: start; }
.steps li > span { font-family: var(--display); font-variation-settings: "wdth" 75; font-size: 2.6rem; font-weight: 300; color: var(--oak); line-height: 1; }
.steps p { color: var(--muted); font-size: .96rem; }
.helper { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pine); border: 1px solid currentColor; padding: 4px 8px; border-radius: 2px; justify-self: start; }
.maths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.maths div { border-left: 2px solid var(--oak); padding: 4px 0 4px 18px; display: grid; gap: 6px; }
.maths code { font-family: var(--mono); font-size: 1.05rem; color: var(--ink); }
.maths span { color: var(--muted); font-size: .94rem; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.dlc { border: 1px solid var(--line); border-radius: 4px; padding: 24px; display: grid; gap: 14px; background: var(--surface); }
.dlc .file { display: flex; gap: 14px; align-items: center; }
.dlc .file i { flex: none; width: 46px; height: 58px; border: 1.5px solid var(--ink); border-radius: 2px 12px 2px 2px; display: grid; place-items: end center; padding-bottom: 6px; font-family: var(--mono); font-style: normal; font-size: .6rem; letter-spacing: .1em; }
.dlc small { color: var(--muted); }

/* ---------- reels ---------- */
.reels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .reels { grid-template-columns: minmax(0, 1fr); } }
.reel-main { position: relative; aspect-ratio: 9 / 16; max-height: 78vh; margin-inline: auto; width: 100%; max-width: 420px; border-radius: 6px; overflow: hidden; background: var(--night); color: var(--on-night); }
.reel-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .6s, transform 1s var(--ease); }
.reel-main .rm-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 10px; background: linear-gradient(transparent, rgba(6,10,8,.85)); }
.reel-main .rm-t .label { color: var(--star); }
.reel-main h3 { color: #f3f1ea; }
.reel-main .bar { display: flex; gap: 4px; position: absolute; top: 14px; left: 14px; right: 14px; }
.reel-main .bar i { flex: 1; height: 2px; border-radius: 1px; background: rgba(243,241,234,.3); overflow: hidden; position: relative; }
.reel-main .bar i::after { content: ""; position: absolute; inset: 0; background: #f3f1ea; transform: scaleX(var(--f, 0)); transform-origin: left; }
.reel-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.reel-list button { width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); cursor: pointer; text-align: left; transition: border-color .25s; }
.reel-list button:hover, .reel-list button[aria-current="true"] { border-color: var(--ink); }
.reel-list img { width: 64px; height: 84px; object-fit: cover; border-radius: 3px; }
.reel-list b { display: block; font-weight: 600; }
.reel-list span { color: var(--muted); font-size: .9rem; }
.reel-list small { font-family: var(--mono); font-size: .68rem; color: var(--oak); letter-spacing: .1em; }
.note { font-size: .88rem; color: var(--muted); border-left: 2px solid var(--line); padding-left: 14px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 22px; }
.fr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 700px) { .fr { grid-template-columns: minmax(0, 1fr); } }
.fld { display: grid; gap: 8px; }
.fld > label, .fld > legend { font-weight: 600; font-size: .95rem; padding: 0; }
.fld input, .fld select, .fld textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); transition: border-color .2s; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--ink); outline: none; }
.fld textarea { min-height: 150px; resize: vertical; }
fieldset.fld { border: 0; margin: 0; padding: 0; min-width: 0; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .92rem; transition: all .2s; }
.pick input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pick input:focus-visible + span { outline: 2px solid var(--oak); outline-offset: 2px; }
.hint { font-size: .85rem; color: var(--muted); }
.sent { border: 1px solid var(--line); border-radius: 4px; padding: 28px; background: var(--surface); display: grid; gap: 14px; }
.sent pre { white-space: pre-wrap; font-family: var(--mono); font-size: .85rem; background: var(--bg); padding: 16px; border-radius: 3px; margin: 0; max-height: 260px; overflow: auto; }
.tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 30px; }
.tabs button { flex: 1 1 160px; padding: 16px; border: 0; border-right: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; display: grid; gap: 2px; }
.tabs button:last-child { border-right: 0; }
.tabs button b { font-weight: 600; }
.tabs button small { color: var(--muted); font-size: .82rem; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tabs button[aria-selected="true"] small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.side { display: grid; gap: 28px; align-content: start; }
.side .blk { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.soc { display: flex; flex-wrap: wrap; gap: 8px; }
.soc a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; font-size: .92rem; font-weight: 500; transition: border-color .2s; }
.soc a:hover { border-color: var(--ink); }
.soc svg { width: 16px; height: 16px; }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: h; }
.how li { counter-increment: h; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.how li::before { content: "0" counter(h); font-family: var(--mono); font-size: .8rem; color: var(--oak); padding-top: 4px; }
.how b { display: block; font-family: var(--display); font-variation-settings: "wdth" 85; font-weight: 650; font-size: 1.25rem; margin-bottom: 4px; }
.how span { color: var(--muted); }

/* ---------- about ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.mosaic figure { margin: 0; display: grid; gap: 8px; }
.mosaic figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.mosaic figcaption { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mosaic .a { grid-column: 1 / span 5; } .mosaic .a img { aspect-ratio: 3/4; }
.mosaic .b { grid-column: 6 / span 4; margin-top: 18%; } .mosaic .b img { aspect-ratio: 9/14; }
.mosaic .c { grid-column: 10 / span 3; margin-top: 46%; } .mosaic .c img { aspect-ratio: 3/4; }
@media (max-width: 760px) { .mosaic .a, .mosaic .b, .mosaic .c { grid-column: 1 / -1; margin-top: 0; } }

/* ---------- footer ---------- */
footer { margin-top: clamp(60px, 8vw, 120px); background: var(--night); color: var(--on-night); padding-block: clamp(56px, 7vw, 96px) calc(32px + env(safe-area-inset-bottom, 0px)); overflow: hidden; position: relative; }
.f-top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 820px) { .f-top { grid-template-columns: minmax(0, 1fr); } }
.f-top .label { color: var(--night-muted); }
.f-top nav { display: grid; gap: 8px; align-content: start; }
.f-top nav a { text-decoration: none; color: var(--on-night); opacity: .82; }
.f-top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.f-brand { display: grid; gap: 16px; align-content: start; }
.f-brand img { width: 120px; }
.f-brand p { color: var(--night-muted); max-width: 26rem; }
footer .soc a { border-color: rgba(233,237,229,.2); color: var(--on-night); }
footer .soc a:hover { border-color: var(--on-night); }
.wordmark { margin-top: clamp(40px, 6vw, 80px); font-family: var(--display); font-variation-settings: "wdth" 75, "opsz" 96; font-weight: 800; font-size: clamp(3rem, 14.5vw, 15.5rem); letter-spacing: -0.045em; line-height: .8; white-space: nowrap; color: #b98a52; background-size: 900px auto; background-position: 0 50%; -webkit-background-clip: text; background-clip: text; user-select: none; }
.wordmark.grain { color: transparent; }
.f-base { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv-wait, .img-rv.rv-wait { opacity: 1; transform: none; clip-path: none; }
}

/* WordPress */
html, body { margin: 0; }
[hidden] { display: none !important; }
body.admin-bar .top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .top { top: 46px; } }
.tv-plain { padding-top: calc(140px + env(safe-area-inset-top, 0px)); padding-bottom: 80px; }
.tv-plain .entry { max-width: 44rem; display: grid; gap: 1.1em; color: var(--muted); }
.tv-plain .entry h2, .tv-plain .entry h3 { color: var(--ink); margin-top: .6em; }
.tv-plain .entry img { height: auto; border-radius: 3px; }
.reel-main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* WordPress content */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(10px, 1.6vw, 18px); margin-top: clamp(14px, 2vw, 24px); }
.pgrid figure { margin: 0; border-radius: 3px; overflow: hidden; }
.pgrid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.duo .ph img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.film-full video, .film-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.film-full iframe, .film-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.film-full .poster { position: absolute; inset: 0; display: grid; place-items: center; border: 0; cursor: pointer; background: #0a0f14; color: var(--on-night); }
.film-full .poster .playc, .film-box .poster .playc { position: absolute; width: 78px; height: 78px; border-radius: 50%; border: 1px solid rgba(233,237,229,.5); display: grid; place-items: center; background: rgba(10,15,20,.45); }
.pcard .pv img { transition: transform 1.2s var(--ease); }
.pcard:hover .pv img { transform: scale(1.04); }
.prose-lb { display: grid; gap: .8em; color: var(--muted); }
.prose-lb p { margin: 0; }
.page section[id], .page [id^="nb-"] { scroll-margin-top: 140px; }

/* videos in the build viewer */
.lb-vid { flex: none; width: 100%; height: min(80vh, 760px); scroll-snap-align: start; position: relative; display: grid; place-items: center; background: #05080a; }
@media (max-width: 820px) { .lb-vid { height: 62vh; } }
.lb-vid video { width: 100%; height: 100%; object-fit: contain; }
.lb-vid iframe { border: 0; display: block; background: #000; }
.lb-vid iframe.wide { width: 100%; aspect-ratio: 16 / 9; max-height: 100%; }
.lb-vid iframe.tall { height: 100%; aspect-ratio: 9 / 16; max-width: 100%; background: #fff; }
.lb-play { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; border: 0; padding: 0; background: #0a0f14; color: #f3f1ea; cursor: pointer; text-decoration: none; font-weight: 600; }
.lb-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.lb-play .playc { position: relative; width: 78px; height: 78px; border-radius: 50%; border: 1px solid rgba(243,241,234,.55); display: grid; place-items: center; background: rgba(10,15,20,.5); font-size: 1.4rem; transition: transform .4s var(--ease); }
.lb-play:hover .playc { transform: scale(1.08); }
.lb-play b { position: relative; }
.lb-cap { position: absolute; left: 12px; top: 12px; z-index: 2; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: #f3f1ea; background: rgba(6,10,8,.6); padding: 6px 9px; border-radius: 2px; max-width: calc(100% - 24px); }
.lb-dots button.is-vid { width: 22px; }
/* steps: ruled cells without grey fill in empty slots */
.steps { gap: 0; background: none; border: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 0; }
.steps li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* reels player */
.reel-stage { position: absolute; inset: 0; z-index: 3; background: #000; }
.reel-stage iframe, .reel-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.reel-play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; color: #f3f1ea; }
.reel-play .playc { width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(243,241,234,.6); display: grid; place-items: center; background: rgba(10,15,20,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .4s var(--ease); margin-bottom: 18%; }
.reel-play:hover .playc { transform: scale(1.08); }
.reel-main .rm-t { z-index: 2; pointer-events: none; }
.reel-main .rm-t a { pointer-events: auto; }
.reel-main .bar { z-index: 4; }
.reel-main.playing .rm-t { display: none; }
.ts-slot { min-height: 0; }

/* reels v2: full-width player, story tiles underneath */
.reels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.reel-main { aspect-ratio: 16 / 9; max-width: none; max-height: min(78vh, 760px); width: 100%; border-radius: 6px; }
@media (max-width: 700px) { .reel-main { aspect-ratio: 4 / 5; } }
.reel-main img { opacity: .82; }
.reel-main .rm-t { padding: clamp(18px, 3vw, 36px); }
.reel-main .rm-t h3 { font-size: clamp(1.6rem, 3.4vw, 2.8rem); }
.reel-main .rm-t p { color: rgba(243,241,234,.8); max-width: 40rem; }
.reel-main .rm-t p:empty { display: none; }
.reel-main .reel-play .playc { margin-bottom: 0; width: 96px; height: 96px; }
.reel-stage iframe.wide, .reel-stage video { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel-stage iframe.tall { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; aspect-ratio: 9 / 16; max-width: 100%; background: #fff; }
.reel-list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; scrollbar-width: thin; }
.reel-list li { flex: 0 0 clamp(150px, 18vw, 210px); scroll-snap-align: start; }
.reel-list button { position: relative; display: block; width: 100%; aspect-ratio: 9 / 14; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--night); color: #f3f1ea; text-align: left; cursor: pointer; outline-offset: 3px; transition: transform .4s var(--ease); }
.reel-list button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,8,.1) 35%, rgba(6,10,8,.85)); }
.reel-list button:hover { transform: translateY(-3px); }
.reel-list button[aria-current="true"] { box-shadow: 0 0 0 3px var(--oak); }
.reel-list img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.reel-list small { position: absolute; top: 10px; left: 10px; z-index: 1; color: #f3f1ea; background: rgba(6,10,8,.55); padding: 4px 7px; border-radius: 2px; }
.reel-list b { position: absolute; left: 12px; right: 12px; bottom: 30px; z-index: 1; font-weight: 600; line-height: 1.2; }
.reel-list span { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; color: rgba(243,241,234,.75); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-list b:last-child { bottom: 12px; }

.intro-copy { display: grid; gap: 14px; }
.intro-copy .intro-lead { color: var(--ink); }

.f-legal { display: inline-flex; gap: 16px; }
.f-legal a { color: inherit; text-decoration: none; }
.f-legal a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
.tv-plain .entry ul { margin: 0; padding-left: 1.2em; display: grid; gap: .4em; }
.tv-plain .entry a { color: var(--ink); }
.tv-plain .entry h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-top: .8em; }
.tv-plain .entry h3 { font-size: 1.2rem; }

/* ---------- 2.0: real pages ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: tv-out .28s var(--ease) both; }
::view-transition-new(root) { animation: tv-in .45s var(--ease) both; }
@keyframes tv-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes tv-in { from { opacity: 0; transform: translateY(12px); } }
.top { view-transition-name: tv-top; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 3px; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
a.bcard { text-decoration: none; color: inherit; }
.build-hero { margin: 0; border-radius: 4px; overflow: hidden; background: var(--night); }
.build-hero img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; display: block; }
.blank-hero { position: relative; aspect-ratio: 16 / 7; }
.blank-hero .blank svg { max-width: 420px; margin-inline: auto; }
.build-text { font-size: 1.1rem; max-width: 40rem; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.vid-box { position: relative; border-radius: 4px; overflow: hidden; background: #05080a; aspect-ratio: 16 / 9; }
.vid-box.tall { aspect-ratio: 9 / 16; max-height: 640px; }
.vid-box video, .vid-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.vid-box iframe.tall { background: #fff; }
.vid-box .poster { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; background: #0a0f14; color: #f3f1ea; }
.vid-box .poster .playc { position: relative; width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(243,241,234,.55); display: grid; place-items: center; background: rgba(10,15,20,.5); }
.pv { position: relative; }

/* ================= 2.1 · difficulty, at a glance, units, tools & cost, related ================= */
.diff { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.diff .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.diff .bars i { display: block; width: 4px; border-radius: 1px; background: var(--line); }
.diff .bars i:nth-child(1) { height: 6px; } .diff .bars i:nth-child(2) { height: 8px; } .diff .bars i:nth-child(3) { height: 10px; }
.diff .bars i:nth-child(4) { height: 12px; } .diff .bars i:nth-child(5) { height: 14px; }
.diff .bars i.on { background: var(--oak); }
.diff .dl-txt { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--muted); }
.diff .dl-txt b { color: var(--ink); font-weight: 600; }

.glance { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) auto; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 28px; }
.glance .g { background: var(--surface); padding: 16px 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.glance .g:first-child { border-radius: 4px 0 0 4px; } .glance .g:last-child { border-radius: 0 4px 4px 0; }
.glance small { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.glance .g > b { font-family: var(--display); font-variation-settings: "wdth" 82; font-weight: 650; font-size: 1.45rem; line-height: 1.05; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.glance .g > a { font-size: .82rem; color: var(--pine); text-decoration: none; font-weight: 500; }
.glance .g > a:hover { text-decoration: underline; }
.glance .diff .bars { height: 20px; gap: 3px; }
.glance .diff .bars i { width: 6px; }
.glance .diff .bars i:nth-child(1) { height: 8px; } .glance .diff .bars i:nth-child(2) { height: 11px; } .glance .diff .bars i:nth-child(3) { height: 14px; }
.glance .diff .bars i:nth-child(4) { height: 17px; } .glance .diff .bars i:nth-child(5) { height: 20px; }
.glance .diff .dl-txt { font-family: var(--display); font-variation-settings: "wdth" 82; font-size: 1.45rem; letter-spacing: -0.01em; color: var(--ink); font-weight: 650; }
.glance .diff .dl-txt b { font-weight: 650; color: var(--oak); }
.dwhat summary { cursor: pointer; font-size: .82rem; color: var(--pine); font-weight: 500; list-style: none; }
.dwhat summary::-webkit-details-marker { display: none; }
.dwhat summary::after { content: ' +'; font-family: var(--mono); }
.dwhat[open] summary::after { content: ' −'; }
.glance .g:first-child { position: relative; }
.dwhat .dscale { position: absolute; z-index: 20; top: calc(100% - 8px); left: 12px; width: min(520px, calc(100vw - 48px)); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
@media (max-width: 980px) {
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance .g:first-child { grid-column: 1 / -1; border-radius: 4px 4px 0 0; }
  .glance .g:last-child { grid-column: 1 / -1; border-radius: 0 0 4px 4px; }
  .glance .g-units { display: flex; align-items: center; justify-content: space-between; }
}

ol.dscale { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
ol.dscale li { background: var(--surface); display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 14px 16px; align-items: center; }
ol.dscale li div { display: grid; gap: 2px; }
ol.dscale li b { font-family: var(--display); font-variation-settings: "wdth" 85; font-weight: 650; font-size: 1.05rem; }
ol.dscale li span:not(.diff):not(.bars) { font-size: .92rem; color: var(--muted); line-height: 1.45; }
ol.dscale li.here { background: color-mix(in srgb, var(--oak) 12%, var(--surface)); }
ol.dscale li.here b::after { content: 'This project'; margin-left: 10px; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oak); font-weight: 500; vertical-align: 2px; }
.sec ol.dscale { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sec ol.dscale li { grid-template-columns: minmax(0, 1fr); align-content: start; padding: 20px 18px; gap: 12px; }
@media (max-width: 980px) { .sec ol.dscale { grid-template-columns: minmax(0, 1fr); } .sec ol.dscale li { grid-template-columns: 52px minmax(0, 1fr); } }

.units { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); flex: none; }
.units button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.units button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.units button:focus-visible { outline: 2px solid var(--oak); outline-offset: 1px; }
.pnav .wrap { align-items: center; }
.pnav-units { margin-left: auto; padding-left: 12px; flex: none; }
@media (max-width: 820px) { .pnav-units { display: none; } }
body.units-in .uu { display: none; }
.u { font-variant-numeric: tabular-nums; }
.inch-note { display: none; margin: 16px 0 0; font-size: .86rem; color: var(--muted); max-width: 72ch; }
body.units-in .inch-note { display: block; }
.sec-head .units { align-self: end; justify-self: end; }

.kit { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); align-items: start; }
@media (min-width: 900px) { ul.ticks { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; } ul.ticks li + li { border-top: 0; } ul.ticks li { border-bottom: 1px solid var(--line); } }
.kit .tools, .kit .est { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
.kit .label { margin: 0 0 14px; }
ul.ticks { list-style: none; margin: 0; padding: 0; display: grid; }
ul.ticks li + li { border-top: 1px solid var(--line); }
ul.ticks label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 11px 0; cursor: pointer; align-items: start; }
ul.ticks input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--muted); border-radius: 3px; display: grid; place-items: center; cursor: pointer; background: transparent; }
ul.ticks input::after { content: ''; width: 10px; height: 5px; border: solid var(--bg); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
ul.ticks input:checked { background: var(--pine); border-color: var(--pine); }
ul.ticks input:checked::after { opacity: 1; }
ul.ticks input:focus-visible { outline: 2px solid var(--oak); outline-offset: 2px; }
ul.ticks label > span { display: grid; gap: 2px; }
ul.ticks b { font-weight: 600; font-size: .98rem; }
ul.ticks small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
ul.ticks input:checked + span b { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); }

.est-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.est-top .label { margin: 0; }
.howmany { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: .95rem; }
.stepper { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg); }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 1.2rem; color: var(--ink); cursor: pointer; }
.stepper button:hover { background: var(--oak-wash); }
.stepper input { width: 52px; border: 0; background: transparent; text-align: center; font-family: var(--mono); font-size: 1rem; font-weight: 600; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button, .gbp input::-webkit-inner-spin-button, .gbp input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.est .tbl-wrap { border: 1px solid var(--line); border-radius: 3px; }
table.est-t { min-width: 600px; background: var(--surface); }
table.est-t th, table.est-t td { padding: 11px 12px; }
table.est-t td:first-child { min-width: 200px; white-space: normal; }
table.est-t td:first-child b { font-weight: 600; }
table.est-t small.src { display: block; margin-top: 3px; font-family: var(--body); font-size: .8rem; color: var(--muted); white-space: normal; }
table.est-t .r { text-align: right; }
table.est-t td.need, table.est-t td.buy { color: var(--ink); }
table.est-t td.buy { font-weight: 600; }
.gbp { display: inline-flex; align-items: center; border-bottom: 1px dashed var(--muted); }
.gbp input { width: 4.4em; border: 0; background: transparent; font-family: var(--mono); font-size: .95rem; color: var(--ink); padding: 2px 0 2px 2px; -moz-appearance: textfield; }
.gbp:focus-within { border-bottom: 1px solid var(--oak); }
.gbp input:focus { outline: none; }
small.per { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
table.est-t tfoot td { border-bottom: 0; background: var(--oak-wash); padding-block: 14px; white-space: normal; }
table.est-t tfoot .each { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin-left: 8px; }
table.est-t tfoot .total { font-family: var(--display); font-variation-settings: "wdth" 82; font-size: 1.6rem; font-weight: 650; color: var(--oak); white-space: nowrap; }
.disclaimer { margin: 14px 0 0; font-size: .84rem; line-height: 1.5; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--oak); }
.disclaimer b { color: var(--ink); font-weight: 600; }

.pfacts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.dfilter { align-items: center; margin-top: -16px; }
.dfilter .label { margin-right: 4px; }
.dfilter .chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); }
.dfilter .chip[aria-pressed="true"] .bars i.on { background: var(--bg); }
.dfilter .chip[aria-pressed="true"] .bars i { background: color-mix(in srgb, var(--bg) 35%, transparent); }
.dlink { font-size: .85rem; color: var(--pine); margin-left: 6px; }
nav.filters a.chip { text-decoration: none; }
nav.filters a.chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pcard[hidden] { display: none !important; }
.none-yet { margin-top: 8px; }

.teach { margin-top: 28px; border: 1px solid var(--line); border-radius: 4px; padding: clamp(18px, 2.4vw, 28px); background: linear-gradient(var(--oak-wash), var(--oak-wash)), var(--surface); }
.teach-head { display: grid; gap: 8px; margin-bottom: 18px; max-width: 70ch; }
.teach-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.teach-head p { margin: 0; color: var(--muted); }

.pminis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 900px) { .pminis { grid-template-columns: minmax(0, 1fr); } }
a.pmini { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); text-decoration: none; color: inherit; transition: border-color .3s, transform .4s var(--ease); }
a.pmini:hover { border-color: var(--ink); transform: translateY(-2px); }
.pm-art { aspect-ratio: 16 / 10; background: var(--night); display: grid; place-items: center; overflow: hidden; }
.pm-art img { width: 100%; height: 100%; object-fit: cover; }
.pm-art svg { width: 70%; }
.pm-t { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.pm-t small { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oak); }
.pm-t b { font-family: var(--display); font-variation-settings: "wdth" 85; font-weight: 650; font-size: 1.3rem; line-height: 1.1; letter-spacing: -0.01em; }
.pm-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-top: 4px; }

.browse { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.browse a { color: var(--ink); font-weight: 500; text-decoration-color: var(--line); text-underline-offset: 4px; }
.browse a:hover { text-decoration-color: var(--oak); }
@media print { .units, .stepper button, .pnav { display: none !important; } }

.u { white-space: nowrap; } .u .fr { display: inline !important; }
.fr { font-family: var(--body); font-variant-numeric: normal; letter-spacing: 0; }
@media (max-width: 700px) {
  .est .tbl-wrap { border: 0; overflow: visible; }
  table.est-t { min-width: 0; background: transparent; }
  table.est-t thead { display: none; }
  table.est-t, table.est-t tbody, table.est-t tfoot { display: block; }
  table.est-t tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 14px; border: 1px solid var(--line); border-radius: 3px; margin-bottom: 10px; background: var(--surface); }
  table.est-t td { display: block; padding: 0; border: 0; }
  table.est-t td:first-child { grid-column: 1 / -1; min-width: 0; }
  table.est-t tbody td:nth-child(2) { display: none; }
  table.est-t tbody td:nth-child(n+3)::before { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  table.est-t tbody td:nth-child(3)::before { content: 'You need'; }
  table.est-t tbody td:nth-child(4)::before { content: 'Buy'; }
  table.est-t tbody td:nth-child(5)::before { content: 'Price'; }
  table.est-t tbody td:nth-child(6)::before { content: 'Cost'; }
  table.est-t td.r { text-align: left; }
  table.est-t tfoot tr { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; background: var(--oak-wash); border-radius: 3px; }
  table.est-t tfoot td { background: none; padding: 0; }
  table.est-t tfoot .each { display: block; margin: 4px 0 0; }
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ================= 2.2 · photo carousel ================= */
.gal { display: grid; gap: 12px; }
.gal-stage { position: relative; aspect-ratio: 3 / 2; max-height: 80vh; width: 100%; border-radius: 4px; overflow: hidden; background: var(--night); isolation: isolate; touch-action: pan-y; }
.gal-one .gal-stage { aspect-ratio: auto; height: min(78vh, 880px); }
@media (max-width: 700px) { .gal-stage { aspect-ratio: 4 / 5; max-height: 76vh; } .gal-one .gal-stage { height: auto; aspect-ratio: 4 / 5; } }
.gal-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s linear .7s; }
.gal-slide.on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; z-index: 1; }
.gal-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.1) brightness(.62); transform: scale(1.08); }
.gal-zoom { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; display: block; }
.gal-zoom img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: contain; display: block; }
.gal-zoom:focus-visible { outline: 3px solid var(--oak); outline-offset: -3px; }
.gal-slide figcaption { position: absolute; left: 16px; right: 120px; bottom: 16px; z-index: 2; pointer-events: none; font-size: .9rem; line-height: 1.4; color: #f3f1ea; text-shadow: 0 1px 8px rgba(0,0,0,.6); max-width: 60ch; }
.gal-nav { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(8,12,10,.42); color: #f3f1ea; font-size: 1.15rem; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, opacity .3s; display: grid; place-items: center; }
.gal-nav:hover { background: rgba(8,12,10,.7); }
.gal-nav:focus-visible { outline: 2px solid var(--oak); outline-offset: 2px; }
.gal-prev { left: 14px; } .gal-next { right: 14px; }
@media (hover: hover) { .gal-stage .gal-nav { opacity: 0; } .gal-stage:hover .gal-nav, .gal-stage:focus-within .gal-nav { opacity: 1; } }
@media (max-width: 700px) { .gal-nav { width: 40px; height: 40px; margin-top: -20px; } .gal-prev { left: 8px; } .gal-next { right: 8px; } }
.gal-hud { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(8,12,10,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #f3f1ea; font-family: var(--mono); font-size: .74rem; font-variant-numeric: tabular-nums; }
.gal-hud b { font-weight: 600; }
.gal-play { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.gal-play span { width: 9px; height: 10px; border-style: solid; border-color: transparent; border-left: 9px solid currentColor; border-width: 5px 0 5px 9px; box-sizing: border-box; }
.gal.playing .gal-play span { width: 9px; height: 10px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.gal-play:focus-visible { outline: 2px solid var(--oak); }
.gal-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255,255,255,.12); }
.gal-bar i { display: block; height: 100%; background: var(--oak); transform: scaleX(0); transform-origin: left; }
.gal-full-hint { position: absolute; left: 12px; top: 12px; z-index: 3; pointer-events: none; padding: 6px 10px; border-radius: 999px; background: rgba(8,12,10,.45); color: #f3f1ea; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; opacity: 0; transition: opacity .3s; }
.gal-stage:hover .gal-full-hint { opacity: 1; }
@media (hover: none) { .gal-full-hint { opacity: .85; } }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
.gal-thumbs button { flex: none; width: 92px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; background: var(--night); cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; scroll-snap-align: center; }
.gal-thumbs button:hover { opacity: .9; }
.gal-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--oak); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .gal-thumbs button { width: 68px; } }
@media (prefers-reduced-motion: reduce) { .gal-slide, .gal-slide.on { transition: none; } }

dialog.gal-full { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,8,7,.96); color: #f3f1ea; overflow: hidden; }
dialog.gal-full::backdrop { background: rgba(5,8,7,.9); }
dialog.gal-full figure { margin: 0; position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: max(56px, env(safe-area-inset-top)) clamp(8px, 6vw, 88px) 28px; gap: 12px; }
dialog.gal-full img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
dialog.gal-full figcaption { font-size: .95rem; max-width: 70ch; text-align: center; color: #d9ddd5; }
dialog.gal-full .gal-nav { opacity: 1; z-index: 2; }
dialog.gal-full .gal-nav[hidden] { display: none; }
.gf-x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(8,12,10,.5); color: #f3f1ea; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.gf-count { position: absolute; top: max(22px, env(safe-area-inset-top)); left: 18px; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: #c9cec5; }

/* ================= 2.3 · services, areas, questions, AI page ================= */
.svc-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }
.svc-main { display: grid; gap: 28px; min-width: 0; }
.svc-intro p { font-size: 1.12rem; line-height: 1.65; margin: 0 0 1em; max-width: 64ch; }
.svc-words { margin: 0; color: var(--muted); font-size: .95rem; }
.svc-words .label { margin-right: 8px; }
.svc-price { border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; background: var(--surface); }
.svc-price p { margin: 8px 0 0; }
.faq { display: grid; }
.faq .label { margin-bottom: 10px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-family: var(--mono); color: var(--oak); font-size: 1.1rem; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 64ch; }
.areas { border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; background: var(--surface); display: grid; gap: 10px; }
.areas .label { margin: 0; }
.areas-lede { margin: 0; font-size: .95rem; color: var(--muted); }
.areas ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.areas li { font-size: .82rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.side .areas + .blk, .side .blk + .areas { margin-top: 0; }
.svc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(12px, 1.6vw, 20px); }
a.svc-card { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); text-decoration: none; color: inherit; transition: border-color .3s, transform .4s var(--ease); }
a.svc-card:hover { border-color: var(--ink); transform: translateY(-2px); }
a.svc-card b { font-family: var(--display); font-variation-settings: "wdth" 85; font-weight: 650; font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.01em; }
a.svc-card span { color: var(--muted); font-size: .95rem; line-height: 1.5; }
a.svc-card small { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--oak); line-height: 1.5; }
a.svc-card .go { font-style: normal; font-weight: 600; font-size: .92rem; margin-top: 4px; }
ol.howto3 { list-style: none; counter-reset: h; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
ol.howto3 li { counter-increment: h; background: var(--surface); padding: 18px 20px 18px 64px; position: relative; display: grid; gap: 4px; }
ol.howto3 li::before { content: '0' counter(h); position: absolute; left: 20px; top: 18px; font-family: var(--mono); color: var(--oak); font-size: .8rem; }
ol.howto3 b { font-weight: 600; }
ol.howto3 span { color: var(--muted); font-size: .95rem; }
.ticks-plain { padding-left: 1.1em; display: grid; gap: 8px; }
.ticks-plain li::marker { color: var(--oak); }
.mcp-url { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.mcp-url code { font-family: var(--mono); font-size: .88rem; overflow-wrap: anywhere; flex: 1 1 260px; }
.mcp-url .label { flex-basis: 100%; }

/* ================= 2.4 · custom sizes ("Make it your size") ================= */
.cz-note { margin: 0; padding: 14px 16px; border-left: 3px solid var(--oak); background: var(--oak-wash); border-radius: 0 4px 4px 0; font-size: .95rem; line-height: 1.5; align-self: end; }
.cz-note b { color: var(--ink); }
.cz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 40px); align-items: stretch; margin-bottom: 20px; }
@media (max-width: 860px) { .cz-grid { grid-template-columns: minmax(0, 1fr); } }
.cz-controls { display: grid; gap: 18px; align-content: start; padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.cz-param label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.cz-val { font-family: var(--display); font-variation-settings: "wdth" 82; font-size: 1.6rem; font-weight: 650; color: var(--oak); font-variant-numeric: tabular-nums; }
.cz-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; margin-top: 8px; }
.cz-inputs input[type=range] { width: 100%; accent-color: var(--oak); height: 28px; }
.cz-num { width: 5.6em; padding: 8px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: .95rem; }
.cz-unit { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.cz-range { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.cz-size { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.cz-size small { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cz-size b { font-family: var(--display); font-variation-settings: "wdth" 82; font-size: 1.45rem; font-weight: 650; line-height: 1.1; }
.cz-reset { justify-self: start; }
.cz-draw { margin: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 14px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; min-height: 320px; }
.cz-svg { width: 100%; height: 100%; max-height: 460px; min-height: 280px; overflow: visible; }
.cz-shape { fill: var(--oak-wash); stroke: var(--oak); stroke-width: 2; stroke-linejoin: round; transition: d .25s; }
.cz-ghost { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 5; opacity: .55; }
.cz-dim line { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cz-dim text { fill: var(--ink); font-family: var(--mono); }
.cz-fixed { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-align: center; }
.cz-tbl { margin-top: 4px; }
.cz.cz-custom .cz-tbl { box-shadow: 0 0 0 2px var(--oak-wash); border-radius: 4px; }
.cz-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 16px; }
.cz-stock { margin: 0; font-weight: 600; font-size: 1.05rem; }
.est-size { margin: -4px 0 12px; font-family: var(--mono); font-size: .78rem; color: var(--oak); }
tr.cz-swapped td.per-build { color: var(--oak); font-weight: 600; }
.cz-sheet { display: none; }
@media print {
  @page { size: A4 portrait; margin: 14mm; }
  body.cz-printing { background: #fff !important; }
  body.cz-printing > *:not(.cz-sheet) { display: none !important; }
  body.cz-printing .cz-sheet { display: block !important; color: #111; font-family: var(--body); font-size: 10pt; line-height: 1.35; }
  .cz-sheet header { border-bottom: 1.5pt solid #111; padding-bottom: 6pt; margin-bottom: 8pt; }
  .cz-sheet .cz-brand { margin: 0; font-family: var(--mono); font-size: 8pt; letter-spacing: .1em; text-transform: uppercase; color: #555; }
  .cz-sheet h1 { font-size: 22pt; margin: 2pt 0; }
  .cz-sheet .cz-ps { margin: 0; font-size: 11pt; font-weight: 600; }
  .cz-sheet .cz-pnote { margin: 0 0 8pt; padding: 5pt 8pt; border-left: 3pt solid #9c6a26; background: #f4ece0; }
  .cz-sheet .cz-pbody { display: grid; grid-template-columns: 62mm 1fr; gap: 8mm; align-items: start; }
  .cz-sheet .cz-pdraw svg { width: 62mm; height: auto; max-height: 120mm; }
  .cz-sheet .cz-shape { fill: #f1e6d4; stroke: #6b4a1c; }
  .cz-sheet .cz-ghost { display: none; }
  .cz-sheet table { width: 100%; border-collapse: collapse; font-size: 9pt; }
  .cz-sheet th, .cz-sheet td { border-bottom: .5pt solid #bbb; padding: 3pt 4pt; text-align: left; vertical-align: top; }
  .cz-sheet th { font-family: var(--mono); font-size: 7pt; text-transform: uppercase; letter-spacing: .08em; color: #444; }
  .cz-sheet .r { text-align: right; }
  .cz-sheet tr { break-inside: avoid; }
  .cz-sheet .cz-pstock { font-weight: 700; font-size: 11pt; margin: 8pt 0 2pt; }
  .cz-sheet .cz-pfixed { font-family: var(--mono); font-size: 8pt; color: #444; margin: 2pt 0; }
  .cz-sheet footer { all: unset; display: block; margin-top: 10pt; padding-top: 4pt; border-top: .5pt solid #bbb; font-size: 7.5pt; color: #666; background: none !important; }
  .cz-sheet header { all: unset; display: block; border-bottom: 1.5pt solid #111; padding-bottom: 6pt; margin-bottom: 8pt; position: static !important; background: none !important; }
}

/* ================= 2.5 · email sign-ups, free plans page, popup ================= */
.sub-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.sub { display: grid; gap: 14px; }
.sub-box, .sub-plain { }
form.sub-box { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 3vw, 32px); }
.sub-head { display: grid; gap: 8px; }
.sub-head h3 { font-family: var(--display); font-variation-settings: "wdth" 85; font-weight: 650; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.sub-head p:not(.label) { margin: 0; color: var(--muted); max-width: 60ch; }
.sub-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: end; }
@media (max-width: 640px) { .sub-row { grid-template-columns: minmax(0, 1fr); } }
.sub-f { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.sub-f small { font-weight: 400; color: var(--muted); }
.sub-f input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; font-size: 1rem; }
.sub-f input:focus { outline: 2px solid var(--oak); outline-offset: 0; border-color: transparent; }
.sub-ints { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sub-ints legend { font-size: .9rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.sub-chk { display: inline-flex; align-items: flex-start; gap: 9px; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.sub-chk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--oak); flex: none; }
.sub-consent { font-size: .88rem; color: var(--muted); }
.sub-consent span { color: var(--ink); }
.sub-consent a { color: var(--pine); }
.sub-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sub-msg { margin: 0; font-size: .95rem; min-height: 0; }
.sub-msg:empty { display: none; }
.sub-msg.ok { color: var(--pine); font-weight: 600; padding: 12px 14px; background: color-mix(in srgb, var(--pine) 10%, transparent); border-radius: 3px; }
.sub-msg.err { color: #a2361f; font-weight: 600; }
form.sub.done > :not(.sub-msg):not(.sub-head):not(.sub-t):not(input) { display: none !important; }
.sub-ts:empty { display: none; }
.sub-inline { margin-top: clamp(28px, 4vw, 44px); }
.plan-email { margin-top: 18px; display: grid; gap: 12px; justify-items: start; }
form.sub-plan { width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; }
.pe-lede { margin: 0; }
/* footer one-liner */
.f-sub { padding-bottom: clamp(32px, 5vw, 56px); margin-bottom: clamp(32px, 5vw, 56px); border-bottom: 1px solid rgba(233, 237, 229, .14); }
.f-sub form.sub-compact { gap: 12px; }
.f-sub .sub-t { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 85; font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.f-sub .sub-t b { font-weight: 650; }
form.sub-compact .sub-row { grid-template-columns: minmax(0, 1fr) auto; max-width: 620px; }
@media (max-width: 640px) { form.sub-compact .sub-row { grid-template-columns: minmax(0, 1fr) auto; } }
form.sub-compact .sub-email > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sub-more { display: none; gap: 12px; max-width: 760px; }
form.sub-compact.open .sub-more { display: grid; }
footer .sub-f input { background: rgba(233, 237, 229, .06); border-color: rgba(233, 237, 229, .22); color: var(--on-night); }
footer .sub-f small, footer .sub-consent { color: var(--night-muted); }
footer .sub-consent span { color: var(--on-night); }
footer .sub-consent a { color: var(--star); }
footer form.sub .btn { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
footer .sub-msg.ok { color: var(--on-night); background: rgba(233, 237, 229, .08); }
footer .sub-msg.err { color: #f0a58e; }
/* free plans grid */
.fp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .fp-head { grid-template-columns: minmax(0, 1fr); } }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.fp { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); }
.fp-art { position: relative; aspect-ratio: 16 / 10; background: var(--night); display: block; }
.fp-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-film { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; padding: 5px 9px; border-radius: 999px; background: rgba(8, 12, 10, .6); color: #f3f1ea; }
.fp-b { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.fp-b small { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oak); }
.fp-b h3 { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 85; font-weight: 650; font-size: 1.35rem; line-height: 1.1; }
.fp-b h3 a { color: inherit; text-decoration: none; }
.fp-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.fp-sum { margin: 0; color: var(--muted); font-size: .95rem; }
.fp-links { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.fp-dl { font-size: .9rem; font-weight: 600; color: var(--pine); }
.fp-compact .fp-art { aspect-ratio: 16 / 8; }
/* email pages */
.email-body { display: grid; gap: 24px; }
.unsub-form { display: grid; gap: 12px; justify-items: start; }
form.prefs { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 3vw, 32px); }
/* popup: small card on desktop, bottom sheet on phones; never full screen */
.pop-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(8, 12, 10, 0); transition: background .25s; }
.pop-wrap.in { background: rgba(8, 12, 10, .38); }
.pop { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); color: var(--ink); border-radius: 6px; padding: 28px 26px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); display: grid; gap: 10px; opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .3s var(--ease); }
.pop-wrap.in .pop { opacity: 1; transform: none; }
.pop:focus { outline: none; }
.pop h2 { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 82; font-weight: 650; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.05; }
.pop-d { margin: 0 0 4px; color: var(--muted); }
.pop-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.pop .sub-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.pop .sub-ints { gap: 6px 14px; }
.pop .sub-chk { font-size: .86rem; }
.pop .btn.pop-no { font-weight: 600; }
.pop-wrap.sheet { place-items: end stretch; padding: 0; background: transparent !important; pointer-events: none; }
.pop-wrap.sheet .pop { pointer-events: auto; width: 100%; max-height: 62dvh; border-radius: 14px 14px 0 0; padding: 22px 18px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); transform: translateY(100%); }
.pop-wrap.sheet.in .pop { transform: none; }
.pop-wrap.sheet .sub-row { grid-template-columns: minmax(0, 1fr); }
.pop-wrap.sheet h2 { font-size: 1.5rem; padding-right: 40px; }
@media (prefers-reduced-motion: reduce) { .pop, .pop-wrap, .pop-wrap.sheet .pop { transition: none !important; } }
.nav a[href*="free-plans"] { color: var(--oak); }
/* phone sheet: email, consent and the two buttons first; name and interests open once you start typing */
.pop-wrap.sheet .pop { gap: 8px; padding-top: 18px; }
.pop-wrap.sheet .pop > .label { display: none; }
.pop-wrap.sheet .pop-d { font-size: .92rem; line-height: 1.45; }
.pop-wrap.sheet form.sub { gap: 10px; }
.pop-wrap.sheet .sub-f > span { font-size: .82rem; }
.pop-wrap.sheet .sub-f input { padding: 10px 12px; }
.pop-wrap.sheet .sub-ints, .pop-wrap.sheet .sub-row .sub-f:not(.sub-email) { display: none; }
.pop-wrap.sheet form.open .sub-ints { display: flex; }
.pop-wrap.sheet form.open .sub-row .sub-f:not(.sub-email) { display: grid; }
.pop-wrap.sheet .sub-consent { font-size: .82rem; }
.pop-wrap.sheet .sub-acts { display: grid; grid-template-columns: 1fr auto; }
.pop-wrap.sheet .sub-acts .btn { justify-content: center; padding-inline: 16px; }
.fp-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.fp-ph svg { width: 70%; height: auto; }
.brand-case { text-transform: none; letter-spacing: .04em; }
.f-company { margin: 14px 0 0; font-size: .8rem; line-height: 1.5; color: var(--night-muted); max-width: 90ch; }

/* ================= 2.6 · Workshop Safety: Rewind ================= */
/* The series look: #0a0f14 night, #eef2f3 ink, #9fd3ff blueprint, #ff7a3a orange, #e0ad73 wood.
   Safety pages switch the whole page (header, sign-up, footer) to it, so everything stays readable. */
body.tv-view-safety {
  --bg: #0a0f14; --surface: #101820; --ink: #eef2f3; --muted: #a3b0b8; --line: rgba(159, 211, 255, 0.16);
  --pine: #9fd3ff; --oak: #e0ad73; --oak-wash: rgba(224, 173, 115, 0.12); --night: #060a0e; --on-night: #eef2f3; --night-muted: #a3b0b8;
  --rw-blue: #9fd3ff; --rw-orange: #ff7a3a; --rw-wood: #e0ad73;
  color-scheme: dark;
}
.rw { --rw-serif: 'Instrument Serif', Georgia, serif; --rw-sans: 'Geist', var(--body); --rw-mono: 'Geist Mono', var(--mono); font-family: var(--rw-sans); }
.rw h2 { font-family: var(--rw-serif); font-weight: 400; font-variation-settings: normal; letter-spacing: -0.01em; line-height: 1.02; font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 0 0 18px; }
.rw h3 { font-family: var(--rw-sans); font-variation-settings: normal; letter-spacing: 0; font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.rw-k { font-family: var(--rw-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rw-orange); margin: 0 0 12px; }
.rw-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: #cfd8dd; max-width: 62ch; margin: 0; }
.rw-hero { padding-top: calc(140px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(28px, 4vw, 48px);
  background: linear-gradient(rgba(159, 211, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(159, 211, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px, #0a0f14; }
.rw-hero .wrap { display: grid; gap: 0; }
.rw-crumb ol { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--rw-mono); font-size: .78rem; color: var(--muted); }
.rw-crumb li + li::before { content: '›'; margin-right: 6px; color: var(--muted); }
.rw-crumb a { color: var(--rw-blue); text-decoration: none; }
.rw-crumb a:hover { text-decoration: underline; }
.rw-h { font-family: var(--rw-serif); font-weight: 400; font-variation-settings: normal; letter-spacing: -0.015em; line-height: .95; font-size: clamp(3.2rem, 9vw, 7.4rem); margin: 0; max-width: 14ch; }
.rw-stand { font-family: var(--rw-serif); font-style: italic; color: var(--rw-wood); font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1.15; margin: 18px 0 0; max-width: 30ch; }
.rw-arch .rw-stand { font-family: var(--rw-sans); font-style: normal; color: #cfd8dd; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 56ch; }
.rw-strap { font-family: var(--rw-serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 14px 0 0; }
.rw-strap em { color: var(--rw-wood); }

/* the stage: cover → film or video */
.rw-stage { margin-top: 8px; }
.rw-screen { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #05080b; }
.rw-cover { margin: 0; position: relative; }
.rw-cover img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.rw-cover:not(:has(img)) { aspect-ratio: 16 / 10; }
.rw-playbtn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 999px; border: 1px solid rgba(238, 242, 243, .3); background: rgba(10, 15, 20, .78); color: #eef2f3; font-weight: 600; font-size: 1.02rem; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .3s var(--ease), background .2s; }
.rw-playbtn:hover { background: rgba(10, 15, 20, .92); transform: translate(-50%, -50%) scale(1.03); }
.rw-playbtn[disabled] { opacity: .7; cursor: progress; }
.rw-playc { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--rw-orange, #ff7a3a); color: #0a0f14; }
.rw-playc svg { margin-left: 3px; }
.rw-wait { position: absolute; left: 16px; bottom: 14px; margin: 0; font-family: var(--rw-mono); font-size: .8rem; color: #eef2f3; background: rgba(10, 15, 20, .8); padding: 6px 10px; border-radius: 6px; }
.rw-film-host { display: block; }
.rw-video { display: grid; place-items: center; background: #000; padding: clamp(0px, 1vw, 12px) 0; }
.rw-video video { display: block; width: auto; max-width: 100%; height: auto; max-height: min(78vh, 760px); background: #000; }
.rw-video video::cue { font-family: var(--rw-sans); background: rgba(10, 15, 20, .82); }
.rw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.rw-toggle { display: inline-flex; align-items: center; gap: 10px; padding: .7em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; }
.rw-toggle:hover { border-color: var(--rw-blue); }
.rw-toggle[aria-pressed="true"] { border-color: var(--rw-blue); color: var(--rw-blue); }
.rw-bar-note, .rw-hint { font-size: .9rem; color: var(--muted); margin: 0; }
.rw-hint { margin-top: 10px; }

/* the lesson */
.rw-body { padding-bottom: 20px; }
.rw-sec { padding-block: clamp(44px, 6vw, 84px); border-top: 1px solid var(--line); }
.rw-what { border-top: 0; padding-top: clamp(36px, 5vw, 64px); display: grid; gap: 0; }
.rw-units { margin-top: 18px; }
.rw-rule { margin: 0 0 clamp(44px, 6vw, 84px); padding: clamp(24px, 4vw, 48px); border-radius: 12px; background: linear-gradient(135deg, rgba(255, 122, 58, .14), rgba(255, 122, 58, .03)); border: 1px solid rgba(255, 122, 58, .38); }
.rw-rule-t { font-size: clamp(2.4rem, 6.4vw, 5rem) !important; margin: 0 0 14px !important; }
.rw-rule p { margin: 0; font-size: 1.15rem; max-width: 60ch; color: #dbe3e7; }
.rw-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 8px 0 0; }
.rw-opts button { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; }
.rw-opts button:hover { border-color: var(--rw-blue); }
.rw-opt-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--rw-mono); font-size: .9rem; flex: none; }
.rw-opts button.is-right { border-color: var(--rw-blue); background: rgba(159, 211, 255, .1); }
.rw-opts button.is-right::after { content: '✓ Right answer'; margin-left: auto; font-family: var(--rw-mono); font-size: .74rem; color: var(--rw-blue); font-weight: 500; }
.rw-opts button.is-wrong { border-color: var(--rw-orange); background: rgba(255, 122, 58, .1); }
.rw-opts button.is-wrong::after { content: '✗ Your answer'; margin-left: auto; font-family: var(--rw-mono); font-size: .74rem; color: var(--rw-orange); font-weight: 500; }
.rw-reveal { margin-top: 26px; display: grid; gap: 14px; max-width: 72ch; }
.rw-reveal > p { margin: 0; font-size: 1.08rem; color: #dbe3e7; }
.rw-verdict { font-size: 1.25rem !important; }
.rw-verdict b { color: var(--rw-wood); }
.rw-law { margin-top: 8px; padding: clamp(20px, 3vw, 32px); border: 1px solid rgba(159, 211, 255, .35); border-radius: 12px; background: rgba(159, 211, 255, .05); display: grid; gap: 10px; }
.rw-law .rw-k { color: var(--rw-blue); margin: 0; }
.rw-law h3 { font-family: var(--rw-serif); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.rw-formula { font-family: var(--rw-mono); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--rw-blue); margin: 0; }
.rw-law p:last-child { margin: 0; color: #dbe3e7; }
.rw-tl { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; }
.rw-tl li { position: relative; padding: 0 0 26px 28px; border-left: 1px solid rgba(159, 211, 255, .35); display: grid; gap: 4px; }
.rw-tl li::before { content: ''; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: #0a0f14; border: 2px solid var(--rw-orange); }
.rw-tl li:last-child { border-left-color: transparent; padding-bottom: 0; }
.rw-at { font-family: var(--rw-mono); font-size: 1.15rem; color: var(--rw-blue); }
.rw-tl b { font-size: 1.08rem; }
.rw-tl p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (min-width: 900px) {
  .rw-tl { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 22px; }
  .rw-tl li { border-left: 0; border-top: 1px solid rgba(159, 211, 255, .35); padding: 24px 0 0; }
  .rw-tl li::before { left: 0; top: -6px; }
  .rw-tl li:last-child { border-top-color: rgba(159, 211, 255, .35); }
}
.rw-dd { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.rw-dd > div { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 3vw, 30px); }
.rw-dd h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin-bottom: 12px; }
.rw-do h3, .rw-do .rw-ico { color: var(--rw-blue); }
.rw-dont h3, .rw-dont .rw-ico { color: var(--rw-orange); }
.rw-dd ul { list-style: none; margin: 0; padding: 0; display: grid; }
.rw-dd li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rw-dd li .rw-ico { width: 18px; height: 18px; margin-top: 3px; }
.rw-note { color: var(--muted); max-width: 72ch; margin: 0 0 18px; font-size: .98rem; }
table.rw-num { width: 100%; border-collapse: collapse; }
table.rw-num th, table.rw-num td { padding: 14px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
table.rw-num tr:first-child th, table.rw-num tr:first-child td { border-top: 0; }
table.rw-num th { font-weight: 500; color: #dbe3e7; }
table.rw-num td { font-family: var(--rw-mono); color: var(--rw-blue); text-align: right; white-space: nowrap; }
.rw-used .pmini { background: var(--surface); }
.rw-pn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.rw-pn a { text-decoration: none; display: grid; gap: 2px; }
.rw-pn small { font-family: var(--rw-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rw-pn b { font-family: var(--rw-serif); font-weight: 400; font-size: 1.5rem; }
.rw-pn-next { text-align: right; }
.rw-pn-all { padding: .7em 1.1em; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.rw-pn-all:hover { border-color: var(--rw-blue); }
@media (max-width: 700px) { .rw-pn { grid-template-columns: 1fr; } .rw-pn-next { text-align: left; } .rw-pn > span { display: none; } .rw-pn-all { justify-self: start; } }
.sub-extra { display: block; font-size: .78em; color: var(--oak); margin-top: 4px; }
.rw .sub-head h3 { font-family: var(--rw-serif); font-weight: 400; font-variation-settings: normal; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.rw .sub-extra { font-style: italic; color: var(--rw-wood); }
.rw-foot { padding-block: 28px 8px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.rw-foot h2 { font-family: var(--rw-mono) !important; font-size: .74rem !important; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px !important; color: var(--muted); }
.rw-foot ol { margin: 0 0 16px; padding-left: 1.3em; display: grid; gap: 4px; }
.rw-foot a { color: var(--rw-blue); }
.rw-disc { margin: 0 0 6px; max-width: 80ch; }

/* /safety/ */
.rw-latest { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding-block: clamp(24px, 3vw, 40px) clamp(44px, 6vw, 84px); }
.rw-latest-art { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.rw-latest-art img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.rw-latest-art:hover img { transform: scale(1.02); }
.rw-latest-art .rw-playc, .rw-strip-art .rw-playc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; }
.rw-latest-t h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.rw-latest-t h2 a { text-decoration: none; }
.rw-latest-t h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.rw-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 900px) { .rw-latest { grid-template-columns: 1fr; } }
.rw-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.rw-tile > a, .rw-tile > div { display: grid; height: 100%; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); transition: border-color .2s, transform .35s var(--ease); }
.rw-tile > a:hover { border-color: var(--rw-blue); transform: translateY(-2px); }
.rw-tile-art { position: relative; display: block; aspect-ratio: 16 / 10; background: #05080b; }
.rw-tile-art img { width: 100%; height: 100%; object-fit: cover; }
.rw-tile-art .rw-playc { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; }
.rw-tile-in { display: grid; gap: 6px; padding: 18px 20px 22px; align-content: start; }
.rw-tile-in .rw-k { margin: 0; }
.rw-tile-in b { font-family: var(--rw-serif); font-weight: 400; font-size: 1.8rem; line-height: 1.05; }
.rw-tile-hook { color: var(--muted); font-size: .98rem; }
.rw-chip { justify-self: start; margin-top: 6px; font-family: var(--rw-mono); font-size: .76rem; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 122, 58, .5); color: #ffb08a; }
.rw-tile.is-soon > div { opacity: .62; }
.rw-tile.is-soon img { filter: grayscale(1); }
.rw-soon { position: absolute; left: 14px; top: 14px; font-family: var(--rw-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; background: #eef2f3; color: #0a0f14; }
.rw-tile-more > div { border-style: dashed; background: transparent; min-height: 100%; align-content: center; }
.rw-tile-more .rw-tile-in { padding: 28px; }
.rw-tile-more p { margin: 0; color: var(--muted); }
.rw-rules-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.rw-rules-list { list-style: none; counter-reset: rw; margin: 10px 0 0; padding: 0; display: grid; }
.rw-rules-list li { counter-increment: rw; border-top: 1px solid var(--line); }
.rw-rules-list a { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 2px 16px; padding: 16px 0; text-decoration: none; }
.rw-rules-list a::before { content: counter(rw, decimal-leading-zero); grid-row: span 2; font-family: var(--rw-mono); color: var(--rw-orange); font-size: 1.1rem; padding-top: 8px; }
.rw-rules-list b { font-family: var(--rw-serif); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.1; }
.rw-rules-list small { color: var(--muted); font-family: var(--rw-mono); font-size: .78rem; }
.rw-rules-list a:hover b { color: var(--rw-wood); }
.rw-print-only { display: none; }
.rw-how { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.rw-how li { border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 8px; align-content: start; background: var(--surface); }
.rw-how b { font-size: 1.2rem; }
.rw-how p { margin: 0; color: var(--muted); }
.rw-teach .rw-lede { margin-bottom: 20px; }
.rw-none h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
@media print {
  body.tv-view-safety { --bg: #fff; --ink: #000; --muted: #333; --line: #bbb; background: #fff; color: #000; }
  .tv-view-safety .top, .tv-view-safety footer, .rw-latest, .rw-grid, .rw-how, .rw-teach, .rw-sub, .rw-print, .rw-stage, .rw-pn, .rw-used, .rw-crumb, .rw-arch .rw-sec:not(.rw-rules) { display: none !important; }
  .rw-hero { background: none; padding-top: 0; }
  .rw-h, .rw-k, .rw-strap em, .rw-rules-list a::before, .rw-rules-list b, .rw-stand { color: #000 !important; }
  .rw-rules { border: 0; padding-top: 12px; }
  .rw-rules-list li { break-inside: avoid; }
  .rw-print-only { display: block; margin-top: 18px; font-family: var(--rw-mono); }
}

/* "Watch before you start" on project pages: beside the tools on desktop, under them on a phone */
.kit-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); align-items: start; }
@media (min-width: 1000px) {
  .kit-row { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
  .kit-row ul.ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rwc { background: #0a0f14; color: #eef2f3; border-radius: 12px; padding: 18px; min-width: 0; border: 1px solid rgba(159, 211, 255, .18); }
.rwc .label { color: #ff7a3a; margin: 0 0 12px; }
.rwc .label b { color: #ff7a3a; font-weight: 500; }
.rwc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rwc-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; border-radius: 8px; padding: 6px; margin: -6px; transition: background .2s; }
.rwc-card:hover { background: rgba(159, 211, 255, .08); }
.rwc-card:focus-visible { outline: 2px solid #9fd3ff; outline-offset: 2px; }
.rwc-art { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #05080b; }
.rwc-img { width: 100%; height: 100%; object-fit: cover; }
.rwc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ff7a3a; color: #0a0f14; }
.rwc-play svg { margin-left: 2px; }
.rwc-t { display: grid; gap: 2px; min-width: 0; }
.rwc-t small { font-family: 'Geist Mono', var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #a3b0b8; }
.rwc-k { font-family: 'Geist Mono', var(--mono); font-size: .78rem; color: #9fd3ff; }
.rwc-t b { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 1.35rem; line-height: 1.1; }
.sec > .rwc { margin-bottom: clamp(24px, 3vw, 36px); max-width: 560px; }

/* home strip (Customizer → TimberVerse: Workshop Safety) */
.rw-strip { background: #0a0f14; color: #eef2f3; padding-block: clamp(48px, 7vw, 96px); }
.rw-strip-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.rw-strip-art { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(159, 211, 255, .18); }
.rw-strip-art img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.rw-strip .rw-k { font-family: 'Geist Mono', var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #ff7a3a; margin: 0 0 12px; }
.rw-strip h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-variation-settings: normal; letter-spacing: 0; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; color: #eef2f3; }
.rw-strip .btn { background: #eef2f3; color: #0a0f14; border-color: #eef2f3; }
.rw-strip .btn.ghost { background: transparent; color: #eef2f3; border-color: rgba(238, 242, 243, .3); }
.rw-strip .rw-playc { background: #ff7a3a; color: #0a0f14; }
@media (max-width: 800px) { .rw-strip-in { grid-template-columns: 1fr; } }
.rw-playbtn { white-space: nowrap; }
@media (max-width: 600px) { .rw-playbtn { font-size: .92rem; gap: 10px; padding: 6px 16px 6px 6px; } .rw-playbtn .rw-playc { width: 36px; height: 36px; } }
