/* RawWright product prototype (27.10.2026) – the composer is the hero; the workflow is the product.
   Paper + graphite + layout blue (machinists' marking ink). One signature motion: the blue scan. No dark slabs. */
@font-face { font-family: 'Inter Tight V'; src: url(./fonts/InterTight-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight V'; src: url(./fonts/InterTight-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --paper: #ecebe6; --paper-2: #f5f4f0; --white: #fbfbf9; --ink: #121318; --ink-2: #4a4d55; --ink-3: #85878e; --alu: #c9c7c0; --rule: #d6d4cd;
  --blue: #2a4bff; --blue-2: #e3e8ff; --blue-3: #9aabff; --ok: #1d9e5f; --ok-2: #e2f4ea; --warn: #a15c00; --warn-2: #fbefdc; --err: #b42318; --err-2: #fde8e6;
  --sans: 'Inter Tight V', 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --out: cubic-bezier(.16, 1, .3, 1); --pad: clamp(16px, 3.4vw, 52px); --r: 14px;
  --shadow: 0 1px 0 rgba(18,19,24,.04), 0 24px 60px -28px rgba(18,19,24,.28);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; } img, video, canvas { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: .95; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; } .skip:focus { left: 8px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ---------- brand */
.wordmark { display: inline-flex; align-items: baseline; text-decoration: none; font: 900 23px/1 var(--sans); letter-spacing: -0.05em; }
.wm-raw { color: var(--ink-3); font-weight: 500; letter-spacing: -0.045em; } .wm-wright { color: var(--ink); }   /* solid, not outlined: the variable font's overlapping contours made a stroked R look cluttered */
.wordmark.big { font-size: clamp(56px, 13vw, 200px); letter-spacing: -0.06em; line-height: .8; }
.wordmark.big .wm-raw { font-weight: 400; }
.kicker { display: flex; gap: 12px; align-items: center; margin: 0 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.kicker span:first-child { color: var(--blue); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 650 15px/1 var(--sans); letter-spacing: -0.01em; padding: 15px 20px; border: 0; border-radius: 10px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s, transform .2s var(--out); }
.btn:active { transform: translateY(1px); }
.btn i { font-style: normal; transition: transform .3s var(--out); } .btn:hover i { transform: translateX(3px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 22px -10px rgba(42,75,255,.7); } .btn-blue:hover { background: #1c39e6; }
.btn-ink { background: var(--ink); color: var(--paper); } .btn-ink:hover { background: #262833; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); } .btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-sm { padding: 11px 14px; font-size: 14px; border-radius: 9px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 30px; padding: 14px var(--pad); background: rgba(236,235,230,.86); backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--rule); }
.nav.solid { border-color: var(--rule); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding: 6px 0; } .nav-links a:hover { color: var(--blue); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-project { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--sans); text-decoration: none; padding: 9px 12px; border-radius: 9px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); }
.nav-project i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--blue-2); }
.lang { font: 500 11px/1 var(--mono); letter-spacing: .1em; background: none; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink-2); padding: 9px 10px; cursor: pointer; }
.lang:hover { border-color: var(--ink); color: var(--ink); }
body[data-view="app"] .nav-links { visibility: hidden; }
@media (max-width: 820px) { .nav-links { display: none; } .nav { gap: 12px; } }

/* =================== STUDIO (hero) =================== */
.studio { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(28px, 5vh, 64px) var(--pad) clamp(40px, 6vh, 72px); min-height: calc(100svh - 64px); }
body[data-view="app"] .studio { display: none; }
.proto-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 7px 10px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); }
.proto-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.studio h1 { font-size: clamp(44px, 6.2vw, 96px); letter-spacing: -0.062em; }
.h1-b { color: var(--blue); }
.studio-sub { max-width: 46ch; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); margin: 18px 0 26px; }

/* the composer: the most desirable place on the page */
.composer { position: relative; background: var(--white); border-radius: 20px; box-shadow: var(--shadow), inset 0 0 0 1px var(--rule); padding: 18px 18px 14px; transition: box-shadow .25s; }
.composer:focus-within { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--blue), 0 0 0 5px var(--blue-2); }
.composer textarea { display: block; width: 100%; resize: none; border: 0; outline: none; background: transparent; font: 500 clamp(17px, 1.4vw, 20px)/1.45 var(--sans); letter-spacing: -0.01em; min-height: 3.6em; padding: 2px 2px 8px; }
.composer textarea::placeholder { color: var(--ink-3); }
.composer-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 12px; }
.attach { display: inline-flex; align-items: center; gap: 7px; font: 600 14px/1 var(--sans); padding: 10px 12px; border-radius: 9px; cursor: pointer; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }
.attach:hover { box-shadow: inset 0 0 0 1px var(--ink); } .attach svg { width: 18px; height: 18px; }
#file-in:focus-visible + .out-sel, .attach:focus-within { outline: 2px solid var(--blue); }
.out-sel { appearance: none; font: 600 14px/1 var(--sans); padding: 10px 30px 10px 12px; border-radius: 9px; border: 0; cursor: pointer; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234a4d55' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center; box-shadow: inset 0 0 0 1px var(--rule); }
.go { margin-left: auto; padding: 14px 18px; }
.drop-veil { position: absolute; inset: 0; border-radius: 20px; display: grid; place-items: center; background: rgba(227,232,255,.92); border: 2px dashed var(--blue); opacity: 0; pointer-events: none; transition: opacity .15s; font: 700 18px/1.2 var(--sans); color: var(--blue); text-align: center; padding: 20px; }
body.dragging .drop-veil { opacity: 1; }
.composer-err, .err-box { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; background: var(--err-2); color: var(--err); font: 600 14px/1.4 var(--sans); box-shadow: inset 0 0 0 1px rgba(180,35,24,.25); }
/* attachment chips with their real read-out */
.att { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.att:empty { display: none; }
.chip { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 11px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); position: relative; overflow: hidden; }
.chip-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); font: 700 9px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase; }
.chip b { display: block; font: 600 14px/1.25 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip small { display: block; font: 500 11.5px/1.35 var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.ok small { color: var(--ok); } .chip.warn small { color: var(--warn); } .chip.bad { background: var(--err-2); } .chip.bad small { color: var(--err); }
.chip-x { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; color: var(--ink-3); font-size: 16px; }
.chip-x:hover { background: var(--white); color: var(--ink); }
.chip-bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--blue); width: var(--pct, 0%); transition: width .2s; }
.chip.ok .chip-bar, .chip.bad .chip-bar, .chip.warn .chip-bar { opacity: 0; }
.formats { margin: 12px 2px 0; font: 500 11px/1.5 var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.ex-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.ex-prompts button { font: 500 13.5px/1.25 var(--sans); text-align: left; padding: 9px 12px; border-radius: 999px; border: 0; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.ex-prompts button:hover { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.try-ex { margin-top: 18px; background: none; border: 0; padding: 0; cursor: pointer; font: 600 15px/1.3 var(--sans); color: var(--blue); text-align: left; }
.try-ex:hover { text-decoration: underline; text-underline-offset: 4px; }

/* the stage card on the right */
.stage-card { position: relative; aspect-ratio: 1 / 1.02; max-height: calc(100svh - 120px); width: 100%; border-radius: 24px; background: radial-gradient(120% 90% at 60% 40%, #f7f6f2 0%, #ecebe6 70%); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.stage-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(18,19,24,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(18,19,24,.045) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(80% 70% at 50% 50%, #000 40%, transparent 100%); pointer-events: none; }
.hero-stage { position: absolute; inset: 0; }
.hero-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .5s var(--out); }
.hero-stage.shown canvas { opacity: 1; }
.hero-fallback { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; }
html.no-3d .hero-fallback { opacity: .9; }
.hero-steps { position: absolute; left: 20px; right: 20px; bottom: 18px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; z-index: 3; }
.hero-steps li { display: grid; gap: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hero-steps li::before { content: ""; height: 2px; border-radius: 2px; background: var(--rule); transition: background .4s; }
.hero-steps b { font-weight: 500; }
#hero[data-stage="raw"] [data-s="raw"], #hero[data-stage="reconstructed"] [data-s="reconstructed"], #hero[data-stage="refined"] [data-s="refined"], #hero[data-stage="real"] [data-s="real"] { color: var(--ink); }
#hero[data-stage="raw"] [data-s="raw"]::before, #hero[data-stage="reconstructed"] [data-s="reconstructed"]::before, #hero[data-stage="refined"] [data-s="refined"]::before, #hero[data-stage="real"] [data-s="real"]::before { background: var(--blue); }
.stage-cap { position: absolute; top: 16px; left: 20px; margin: 0; z-index: 3; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.note { position: absolute; left: 0; top: 0; z-index: 2; transform: translate(var(--x, -999px), var(--y, -999px)); opacity: 0; pointer-events: none; display: flex; align-items: center; transition: opacity .3s; }
.note::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border: 1.5px solid var(--blue); border-radius: 50%; background: var(--paper); }
.note::after { content: ""; position: absolute; left: 4px; top: 0; width: 26px; height: 1px; background: var(--blue); }
.note b, .note span { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; }
.note b { background: var(--blue); color: #fff; margin-left: 30px; border-radius: 4px 0 0 4px; } .note span { background: var(--white); box-shadow: 0 0 0 1px var(--rule); border-radius: 0 4px 4px 0; }
@media (max-width: 980px) {
  .studio { grid-template-columns: 1fr; min-height: 0; }
  .stage-card { aspect-ratio: 4 / 3.3; max-height: none; }
  .note span { display: none; }
}
@media (max-width: 560px) { .go { width: 100%; margin-left: 0; } .composer-bar { gap: 8px; } .out-sel { flex: 1; } }

/* =================== APP (workflow) =================== */
.app { padding: clamp(20px, 3vw, 36px) var(--pad) clamp(60px, 8vw, 110px); min-height: calc(100svh - 64px); }
body[data-view="app"] .home-only { display: none; }
.stepper { list-style: none; margin: 0 0 clamp(22px, 3vw, 36px); padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; counter-reset: s; }
.stepper li { display: grid; gap: 8px; font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.stepper li::before { content: ""; height: 3px; border-radius: 3px; background: var(--rule); }
.stepper li.done { color: var(--ink-2); } .stepper li.done::before { background: var(--ink); }
.stepper li.now { color: var(--blue); } .stepper li.now::before { background: var(--blue); }
@media (max-width: 640px) { .stepper li span { display: none; } .stepper li.now span { display: inline; } }
.app-body { outline: none; }
.panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(18px, 2.6vw, 36px); align-items: start; animation: fadeup .5s var(--out); }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 980px) { .panel { grid-template-columns: 1fr; } }
.app h2 { font-size: clamp(32px, 3.8vw, 56px); letter-spacing: -0.05em; margin-bottom: 10px; }
.lead { color: var(--ink-2); font-size: 17px; max-width: 58ch; margin: 0 0 22px; }
.card { background: var(--white); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--rule); padding: clamp(16px, 2vw, 24px); }
.card + .card { margin-top: 14px; }
.card h3 { font-size: 20px; letter-spacing: -0.03em; margin-bottom: 12px; }
.card-k { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.sticky { position: sticky; top: 84px; }
/* file results */
.files { display: grid; gap: 12px; }
.file { border-radius: 12px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); padding: 14px; }
.file-h { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.file-h b { font-size: 16px; word-break: break-all; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; white-space: nowrap; }
.badge.ok { background: var(--ok-2); color: var(--ok); } .badge.warn { background: var(--warn-2); color: var(--warn); } .badge.bad { background: var(--err-2); color: var(--err); } .badge.blue { background: var(--blue-2); color: var(--blue); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; margin: 12px 0 0; }
.facts div { display: grid; gap: 3px; } .facts dt { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); } .facts dd { margin: 0; font: 600 14px/1.3 var(--sans); word-break: break-word; }
.hints { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.hints li { font-size: 14px; color: var(--ink-2); padding-left: 18px; position: relative; } .hints li::before { content: "→"; position: absolute; left: 0; color: var(--blue); }
.route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.route div { padding: 10px; border-radius: 10px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); font-size: 13.5px; color: var(--ink-2); }
.route div.on { background: var(--blue-2); box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--ink); }
.route b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
@media (max-width: 560px) { .route { grid-template-columns: 1fr; } }
.deliv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deliv li { display: flex; gap: 8px; align-items: baseline; font-size: 14.5px; } .deliv li::before { content: "✓"; color: var(--ok); font-weight: 700; } .deliv li.no::before { content: "–"; color: var(--ink-3); } .deliv li.no { color: var(--ink-3); }
.estimate { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.estimate strong { font: 800 clamp(34px, 3.4vw, 48px)/1 var(--sans); letter-spacing: -0.05em; }
.estimate span { color: var(--ink-2); }
.draft { display: inline-block; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--warn); background: var(--warn-2); padding: 5px 7px; border-radius: 5px; }
.fine { color: var(--ink-3); font: 500 12px/1.5 var(--mono); margin: 10px 0 0; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.edit-prompt { width: 100%; border: 0; border-radius: 10px; padding: 12px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); resize: vertical; min-height: 84px; font-size: 15px; }
.edit-prompt:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--blue); }
.preview { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #f7f6f2, #e6e4de); box-shadow: inset 0 0 0 1px var(--rule); }
.preview canvas { width: 100% !important; height: 100% !important; display: block; }
.preview-tag { position: absolute; left: 10px; top: 10px; z-index: 2; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); font-size: 14px; }
/* upgrade (Modelwright) – contextual, helpful, never loud */
.upgrade { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; border-radius: 12px; padding: 14px; background: linear-gradient(135deg, #f4f6ff, #fbfbf9); box-shadow: inset 0 0 0 1px #d5dcff; }
.upgrade + .upgrade { margin-top: 10px; }
.up-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 800 13px/1 var(--sans); letter-spacing: -0.03em; }
.upgrade b { display: block; font-size: 15px; margin-bottom: 3px; } .upgrade p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
/* offer */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .options { grid-template-columns: 1fr; } }
.opt { position: relative; display: grid; gap: 10px; align-content: start; text-align: left; border: 0; cursor: pointer; border-radius: var(--r); padding: 20px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow .2s, transform .2s var(--out); }
.opt:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--blue), 0 18px 40px -26px rgba(42,75,255,.6); }
.opt h3 { font-size: 22px; letter-spacing: -0.035em; }
.opt .rec { position: absolute; top: 14px; right: 14px; }
.opt .p { font: 800 30px/1 var(--sans); letter-spacing: -0.05em; } .opt .p small { font: 500 13px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-2); }
.opt ul { margin: 0; padding: 0 0 0 18px; color: var(--ink-2); font-size: 14px; }
.plans { display: grid; gap: 8px; margin-top: 4px; }
.plan { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer; font-size: 14px; }
.plan:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--blue); background: var(--blue-2); }
.plan b { font-size: 15px; } .plan span { color: var(--ink-2); } .plan em { font-style: normal; font-weight: 700; white-space: nowrap; }
.sum { width: 100%; border-collapse: collapse; font-size: 15px; }
.sum td { padding: 8px 0; border-bottom: 1px solid var(--rule); } .sum td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum tr.total td { font-weight: 800; font-size: 18px; border-bottom: 0; padding-top: 12px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; } .field label { font: 600 13px/1 var(--sans); color: var(--ink-2); }
.field input { border: 0; border-radius: 10px; padding: 13px 12px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); font-size: 16px; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--blue); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--err); background: var(--err-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 8px 0; } .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); }
.test-flag { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--warn-2); color: var(--warn); font: 600 14px/1.35 var(--sans); margin-bottom: 14px; }
/* production workspace: real status left, honest illustration right */
.prod { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(18px, 2.6vw, 36px); align-items: start; animation: fadeup .5s var(--out); }
@media (max-width: 980px) { .prod { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 0 0 20px; }
.timeline li::before { content: ""; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: var(--rule); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--rule); font: 700 12px/1 var(--mono); color: var(--ink-3); z-index: 1; }
.timeline li.done .dot { background: var(--ink); color: var(--paper); box-shadow: none; } .timeline li.done::before { background: var(--ink); }
.timeline li.now .dot { background: var(--blue); color: #fff; box-shadow: 0 0 0 5px var(--blue-2); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(42,75,255,.08); } }
.timeline b { display: block; font-size: 16px; } .timeline p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.timeline li.wait b { color: var(--ink-3); }
.who { display: inline-block; margin-top: 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.illu { position: relative; aspect-ratio: 16 / 11; border-radius: 18px; overflow: hidden; background: #f3f2ee; box-shadow: inset 0 0 0 1px var(--rule); }
.illu svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.illu-tag { position: absolute; left: 12px; top: 12px; z-index: 2; }
.illu-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; justify-content: space-between; gap: 10px; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; color: var(--ink-2); text-transform: uppercase; }
/* dashboard */
.dash { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(18px, 2.6vw, 36px); align-items: start; animation: fadeup .5s var(--out); }
@media (max-width: 980px) { .dash { grid-template-columns: 1fr; } }
.viewer { position: relative; aspect-ratio: 16 / 11; border-radius: 18px; overflow: hidden; background: #e9e7e3; box-shadow: inset 0 0 0 1px var(--rule); }
.viewer > .mw3d-stage, .viewer canvas { position: absolute; inset: 0; }
.dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl a { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); text-decoration: none; }
.dl a:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.dl em { font: 700 11px/1 var(--mono); font-style: normal; text-transform: uppercase; color: var(--blue); } .dl small { color: var(--ink-3); font-size: 13px; }
.embed { width: 100%; font: 500 12px/1.5 var(--mono); border: 0; border-radius: 10px; padding: 10px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); resize: none; color: var(--ink-2); }
.hist { list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 6px; } .hist time { font: 500 11.5px/1 var(--mono); color: var(--ink-3); margin-right: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 0; } .kv dt { color: var(--ink-3); } .kv dd { margin: 0; font-weight: 600; }
.handoff { margin-top: 12px; }
.brief { font: 500 12px/1.5 var(--mono); white-space: pre-wrap; background: var(--paper-2); border-radius: 10px; padding: 12px; box-shadow: inset 0 0 0 1px var(--rule); max-height: 280px; overflow: auto; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--blue-2); border-top-color: var(--blue); animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =================== MARKETING =================== */
.sec { padding: clamp(70px, 9vw, 130px) var(--pad); }
.sec-head { margin-bottom: clamp(28px, 4vw, 50px); }
.sec h2 { font-size: clamp(36px, 5vw, 80px); letter-spacing: -0.055em; max-width: 16ch; }
.draft-flag { display: inline-block; margin: 16px 0 0; font: 600 12px/1.4 var(--mono); color: var(--warn); background: var(--warn-2); padding: 8px 10px; border-radius: 7px; }
.examples { background: var(--paper-2); }
.demo-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.demo-tabs button { border: 0; cursor: pointer; border-radius: 999px; padding: 10px 14px; font: 600 14px/1 var(--sans); background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); }
.demo-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.demo-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(16px, 2.4vw, 32px); align-items: stretch; }
@media (max-width: 980px) { .demo-wrap { grid-template-columns: 1fr; } }
.demo-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #e9e7e3; box-shadow: inset 0 0 0 1px var(--rule); }
.demo-stage > canvas { position: absolute; inset: 0; }
.demo-ph { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.demo-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-ph .btn { position: relative; }
.demo-side { display: grid; gap: 10px; align-content: start; }
.demo-side h3 { font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.045em; }
.demo-side p { margin: 0; color: var(--ink-2); }
.demo-side > .btn { justify-self: start; margin-top: 6px; }
.ex-from { font: 500 12px/1 var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--blue) !important; }
.demo-ctl:empty { display: none; }
.how-grid { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.4vw, 30px); }
.how-grid .how-steps { order: 1; } .how-grid .how-video { order: 2; }   /* steps on top, the recording full width below */
.how-video { margin: 0; } .how-video video { width: 100%; aspect-ratio: 1280 / 684; object-fit: contain; border-radius: 18px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }
.how-video figcaption { margin-top: 10px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.how-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(6, 1fr); }
.how-steps li { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; align-content: start; padding: 16px 14px 16px 0; border-bottom: 1px solid var(--rule); }
.how-steps li + li { padding-left: 14px; border-left: 1px solid var(--rule); }
@media (max-width: 1100px) { .how-steps { grid-template-columns: repeat(3, 1fr); } .how-steps li:nth-child(4) { border-left: 0; padding-left: 0; } }
@media (max-width: 600px) { .how-steps { grid-template-columns: 1fr 1fr; } .how-steps li { border-left: 0 !important; padding-left: 0 !important; } .how-steps li:nth-child(even) { padding-left: 14px !important; border-left: 1px solid var(--rule) !important; } }
.how-steps b { font: 500 12px/1 var(--mono); color: var(--blue); } .how-steps h3 { font-size: 18px; letter-spacing: -0.03em; } .how-steps p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.how-steps em { font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.pricing { background: var(--paper-2); }
.price-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 13px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; } .price-table td:last-child { text-align: right; font-weight: 800; font-size: 19px; white-space: nowrap; letter-spacing: -0.02em; }
.price-table small { display: block; color: var(--ink-3); font-size: 13px; }
.mw { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.mw-media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; background: #e8e6e1; }
.mw-video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transform-origin: 54% 52%; }
.mw p { color: var(--ink-2); font-size: 17px; max-width: 46ch; margin: 18px 0 26px; }
@media (max-width: 860px) { .mw { grid-template-columns: 1fr; } }
.faq-list { max-width: 900px; border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq-list summary { cursor: pointer; font: 700 19px/1.3 var(--sans); letter-spacing: -0.02em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::after { content: "+"; color: var(--ink-3); font-weight: 400; } .faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; }
.foot { padding: clamp(40px, 6vw, 80px) var(--pad) 28px; border-top: 1px solid var(--rule); display: grid; gap: 26px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-links a { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; } .foot-links a:hover { color: var(--blue); }
.foot-fine { margin: 0; font: 500 11px/1.5 var(--mono); color: var(--ink-3); }
body[data-view="app"] .foot .wordmark.big { font-size: 64px; }
/* free preview */
.pv-big { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #f7f6f2, #e3e1db); box-shadow: inset 0 0 0 1px var(--rule); user-select: none; -webkit-user-select: none; }
.pv-big canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: none; }
.pv-big .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); font-size: 15px; }
.pv-manual { display: grid; place-items: center; aspect-ratio: auto; min-height: 320px; background: linear-gradient(135deg, #f4f6ff, #fbfbf9); box-shadow: inset 0 0 0 1px #d5dcff; }
.ph-manual { max-width: 520px; padding: 28px; } .ph-manual h3 { font-size: 26px; letter-spacing: -0.04em; margin-bottom: 10px; } .ph-manual p { color: var(--ink-2); margin: 0 0 16px; }
.pr-form { display: flex; gap: 8px; flex-wrap: wrap; } .pr-form input { flex: 1; min-width: 200px; border: 0; border-radius: 10px; padding: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); font-size: 16px; }
.locks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
@media (max-width: 900px) { .locks { grid-template-columns: 1fr 1fr; } }
.lock { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; text-decoration: none; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow .2s; }
.lock:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.lock b { display: block; font-size: 13.5px; line-height: 1.25; } .lock small { font: 500 10.5px/1 var(--mono); color: var(--ink-3); }
.lock-ico { font-size: 15px; filter: grayscale(1); opacity: .7; }
.panel-pv { grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); }
@media (max-width: 980px) { .panel-pv { grid-template-columns: 1fr; } }
.free-line { margin: 12px 2px 0; font-size: 14px; color: var(--ink-2); } .free-line b { color: var(--ok); }

/* =================== PLAYGROUND (footer, v3 from 27.10): throw and stack cubes =================== */
.play { position: relative; height: clamp(260px, 34vw, 380px); border-radius: 18px; background: #f2f1ec; box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.play canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.play canvas.grabbing { cursor: grabbing; }
.play-hint { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; white-space: nowrap; transition: opacity .4s; }
.play-count { position: absolute; right: 18px; top: 18px; margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--blue); pointer-events: none; }

.lab { padding: clamp(60px, 8vw, 110px) var(--pad) clamp(30px, 4vw, 50px); }
.lab h2 { font-size: clamp(32px, 4vw, 60px); letter-spacing: -0.055em; margin-bottom: 14px; } .lab-b { color: var(--blue); }
.lab-stage { position: relative; height: clamp(300px, 30vw, 400px); border-radius: 18px; overflow: hidden; background: #f2f1ec; box-shadow: inset 0 0 0 1px var(--rule); user-select: none; -webkit-user-select: none; }
.mw-canvas { position: absolute; inset: 0; display: block; touch-action: pan-y; }
.lab-stage.grabbing .mw-canvas { cursor: grabbing !important; }
.lab-reset { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; cursor: pointer; color: var(--ink-3); background: transparent; transition: color .2s, background .2s; }
.lab-reset:hover { color: var(--ink); background: rgba(18,19,24,.05); } .lab-reset svg { width: 16px; height: 16px; transition: transform .5s var(--out); } .lab-reset:hover svg { transform: rotate(-200deg); }
.lab-cta { display: inline-block; margin-top: 14px; font: 600 15px/1.3 var(--sans); color: var(--ink-2); text-decoration: none; } .lab-cta:hover { color: var(--blue); }
body[data-view="app"] .lab { display: none; }

/* =================== interaction polish =================== */
/* composer: lifts on focus, a single blue scan runs along its top edge */
.composer { transition: box-shadow .25s, transform .35s var(--out); }
.composer:focus-within { transform: translateY(-2px); }
.composer::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); background-size: 40% 100%; background-repeat: no-repeat; background-position: -40% 0; opacity: 0; pointer-events: none; }
.composer:focus-within::before { animation: edgescan 1.1s var(--out) 1; }
@keyframes edgescan { 0% { opacity: 1; background-position: -40% 0; } 100% { opacity: 0; background-position: 140% 0; } }
.composer.pulse { animation: absorb .5s var(--out); }
@keyframes absorb { 0% { transform: scale(1.012); } 100% { transform: none; } }
/* drag-over: marching outline + the stage answers */
body.dragging .composer { box-shadow: var(--shadow), 0 0 0 5px var(--blue-2); }
body.dragging .drop-veil { background: rgba(227,232,255,.94) repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 18px) top left / 100% 2px no-repeat; animation: march .6s linear infinite; border-style: solid; border-color: transparent; }
@keyframes march { to { background-position: 18px 0, 0 0; } }
body.dragging .stage-card { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 6px var(--blue-2); transition: box-shadow .2s; }
/* chips: slide in, scan while uploading, pop when read */
.chip.fresh { animation: chipin .45s var(--out); }
@keyframes chipin { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.chip.up::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(42,75,255,.10) 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 1.1s linear infinite; pointer-events: none; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.chip.pop .chip-ico { animation: icopop .5s var(--out); }
.chip.ok .chip-ico { box-shadow: inset 0 0 0 1.5px var(--ok); color: var(--ok); }
@keyframes icopop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: none; } }
/* example prompts + output */
.ex-prompts button { transition: background .2s, color .2s, box-shadow .2s, transform .2s var(--out); }
.ex-prompts button:hover { transform: translateY(-1px); }
.ex-prompts button[aria-pressed="true"] { background: var(--blue-2); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue-3); }
.out-sel.pulse { animation: selpulse .7s var(--out); }
@keyframes selpulse { 0% { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 0 rgba(42,75,255,.35); } 100% { box-shadow: inset 0 0 0 1px var(--rule), 0 0 0 8px rgba(42,75,255,0); } }
/* buttons */
.btn-blue:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(42,75,255,.8); }
.btn:active { transform: translateY(0) scale(.97); }
.go.busy span { opacity: .6; } .go.busy i { animation: nudge .6s ease-in-out infinite alternate; }
@keyframes nudge { to { transform: translateX(6px); } }
/* demos: obvious affordance + soft swap */
.demo-stage canvas { transition: opacity .35s, filter .35s; }
.demo-stage.is-loading canvas { opacity: .35; filter: blur(3px); }
.demo-stage::after { content: attr(data-hint); position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; pointer-events: none; padding: 8px 12px; border-radius: 999px; font: 600 12px/1 var(--sans); color: var(--ink); background: rgba(251,251,249,.92); box-shadow: 0 6px 18px -10px rgba(18,19,24,.5); transition: opacity .4s; }
.demo-stage.touched::after, .demo-stage:not([data-hint])::after { opacity: 0; }
.demo-tabs button { transition: background .2s, color .2s, transform .2s var(--out); } .demo-tabs button:hover { transform: translateY(-1px); }
/* process steps scrub the recording */
.how-steps li.chapter { cursor: pointer; transition: background .2s, box-shadow .2s; } .how-steps li.chapter:first-child { padding-left: 12px; }
.how-steps li.chapter:hover, .how-steps li.chapter:focus-visible { background: var(--white); }
.how-steps li.chapter.on { background: var(--blue-2); box-shadow: inset 0 3px 0 var(--blue); }
.how-steps li.chapter.on b { color: var(--ink); }
/* pricing + offer feedback */
.price-table tr { transition: background .2s; } .price-table tr:hover { background: var(--paper-2); }
.price-table tr:hover td:last-child { color: var(--blue); }
.opt[aria-pressed="true"] { animation: optpop .35s var(--out); }
@keyframes optpop { 0% { transform: scale(.985); } 100% { transform: none; } }
.lock { transition: box-shadow .2s, transform .2s var(--out); } .lock:hover { transform: translateY(-2px); } .lock:hover .lock-ico { filter: none; opacity: 1; }
.faq-list details p { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .composer:focus-within { transform: none; } }

/* =================== homepage art direction (28.10): one object per section =================== */
/* logo: the playground cube is the mark */
.wordmark { gap: 0; align-items: center; }
.wm-mark { width: 26px; height: 26px; margin-right: 9px; flex: none; }
.wordmark.big .wm-mark { width: clamp(46px, 9vw, 130px); height: auto; margin-right: clamp(10px, 1.6vw, 22px); }
/* shared section rhythm */
.sec-lead { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); max-width: 52ch; margin: 16px 0 0; }
.sec-links { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 26px; }
.media-tile { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: #e7e5df; isolation: isolate; }
.media-tile img, .media-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-tile video { opacity: 0; transition: opacity .5s var(--out); } .media-tile.playing video { opacity: 1; }
.media-tile img { transition: transform 1.2s var(--out); } .media-tile:hover img { transform: scale(1.025); }
.media-tile figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 2; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 9px; border-radius: 6px; background: rgba(251,251,249,.92); color: var(--ink); }
.media-tile[data-hover]::after { content: "▶"; position: absolute; right: 12px; top: 12px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; color: var(--ink); background: rgba(251,251,249,.9); transition: opacity .3s; }
.media-tile.playing::after { opacity: 0; }
@media (hover: none) { .media-tile[data-hover]::after { display: none; } }

/* 01 material – perfume */
.material { padding-bottom: clamp(60px, 7vw, 100px); }
.mat-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.35fr); grid-template-areas: "copy hero" "copy details"; gap: 14px clamp(24px, 4vw, 60px); align-items: start; }
.mat-copy { grid-area: copy; align-self: center; } .mat-hero { grid-area: hero; aspect-ratio: 16 / 9.4; } .mat-details { grid-area: details; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mat-details .media-tile { aspect-ratio: 4 / 3; }
.mat-points { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.mat-points li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; } .mat-points b { font-weight: 700; } .mat-points span { color: var(--ink-2); }
@media (max-width: 900px) { .mat-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "hero" "details"; } .mat-details { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 520px) { .mat-details { grid-template-columns: 1fr 1fr; } .mat-details .media-tile:last-child { grid-column: span 2; aspect-ratio: 16 / 9; } }

/* 02 process – espresso scrubber */
.scrub { display: grid; gap: 16px; margin-bottom: clamp(30px, 4vw, 50px); }
.scrub-stage { position: relative; aspect-ratio: 16 / 10; max-height: 78vh; margin-inline: auto; width: 100%; border-radius: 20px; overflow: hidden; background: #ecebe6; box-shadow: inset 0 0 0 1px var(--rule); }
.scrub-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.scrub-stage img.on { opacity: 1; }
.scrub-tag { position: absolute; left: 16px; top: 16px; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 8px 10px; border-radius: 7px; }
.scrub-ctl { display: grid; gap: 12px; }
#scrub-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --v: 0%; }
#scrub-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) var(--v), var(--rule) var(--v)); }
#scrub-range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--rule); } #scrub-range::-moz-range-progress { height: 4px; background: var(--blue); }
#scrub-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px var(--blue), 0 4px 12px -4px rgba(42,75,255,.6); }
#scrub-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px var(--blue); }
.scrub-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.scrub-steps li { display: flex; gap: 8px; font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); cursor: pointer; } .scrub-steps li:last-child { justify-content: flex-end; } .scrub-steps li:nth-child(2), .scrub-steps li:nth-child(3), .scrub-steps li:nth-child(4) { justify-content: center; }
.scrub-steps li.on { color: var(--blue); } .scrub-steps b { font-weight: 600; }
@media (max-width: 600px) { .scrub-stage { aspect-ratio: 16 / 10; } .scrub-steps span { display: none; } .scrub-steps li.on span { display: inline; } }
.how .how-steps { display: grid; grid-template-columns: repeat(6, 1fr); }

/* 03 try it – headphones live */
.try-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.try-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #e9e7e3; box-shadow: inset 0 0 0 1px var(--rule); }
.try-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.try-poster { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; cursor: pointer; background: none; }
.try-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--out), filter .4s; } .try-poster:hover img { transform: scale(1.02); }
.try-play { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--sans); white-space: nowrap; box-shadow: 0 12px 30px -14px rgba(18,19,24,.7); transition: transform .3s var(--out); }
.try-poster:hover .try-play { transform: translateX(-50%) translateY(-2px); } .try-play i { font-style: normal; color: var(--blue-3); }
.try-side h2 { font-size: clamp(36px, 4.4vw, 68px); }
.try-swatches { list-style: none; display: flex; gap: 8px; margin: 22px 0 24px; padding: 0; } .try-swatches li { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 0 0 3px var(--paper); }
@media (max-width: 900px) { .try-grid { grid-template-columns: 1fr; } .try-stage { aspect-ratio: 4 / 3.4; } }

/* 04 industries – bento with four personalities */
.branchen .bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(190px, 17vw, 270px); gap: 14px; }
.bt { position: relative; border-radius: 18px; overflow: hidden; }
.bt-kitchen { grid-column: span 2; grid-row: span 2; } .bt-window { grid-row: span 2; } .bt-carport, .bt-shelf { grid-column: span 1; }
.bt-copy { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; padding: 14px 16px; border-radius: 12px; background: rgba(251,251,249,.93); }
.bt-copy h3 { font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.03em; margin: 6px 0 0; }
.bt-copy .ex-from { margin: 0; font-size: 10.5px !important; }
.bt-links { display: flex; gap: 14px; margin: 8px 0 0; font: 600 13px/1 var(--sans); } .bt-links a { text-decoration: none; color: var(--blue); } .bt-links a:hover { text-decoration: underline; }
.bt-shelf { background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); display: grid; grid-template-rows: 1fr auto; }
.bt-shelf img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.bt-shelf .bt-copy { position: static; background: transparent; padding: 12px 14px 14px; } .bt-shelf .bt-copy > p:not(.ex-from):not(.bt-links) { display: none; }
.bt-kitchen .bt-copy { right: auto; max-width: 340px; }
.bt-kitchen .bt-copy h3 { font-size: clamp(22px, 2.2vw, 32px); }
@media (max-width: 1000px) { .branchen .bento { grid-template-columns: 1fr 1fr; } .bt-kitchen { grid-column: span 2; } .bt-window { grid-row: span 2; } }
@media (max-width: 600px) { .branchen .bento { grid-template-columns: 1fr; grid-auto-rows: 260px; } .bt-kitchen, .bt-window { grid-column: auto; grid-row: auto; } }

/* 06 Modelwright – the pergola configurator */
.mw .mw-media { aspect-ratio: 16 / 10; }
.mw .mw-media video, .mw .mw-media img { transform: none; }

/* final CTA – typographic, no 3D */
.final { padding: clamp(80px, 11vw, 160px) var(--pad); text-align: center; background: radial-gradient(60% 80% at 50% 100%, var(--blue-2), transparent 70%), var(--paper); border-top: 1px solid var(--rule); }
.final h2 { font-size: clamp(44px, 7vw, 112px); letter-spacing: -0.06em; } .fin-b { color: var(--blue); }
.final p { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 20px); margin: 18px auto 0; max-width: 46ch; }
.final .sec-links { justify-content: center; }
body[data-view="app"] .final { display: none; }
@media (prefers-reduced-motion: reduce) { .media-tile:hover img, .try-poster:hover img { transform: none; } }
@media (max-width: 1100px) { .how .how-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .how .how-steps { grid-template-columns: 1fr 1fr; } }

/* 02 process – four-step storyboard */
.story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); counter-reset: s; }
.story li { display: grid; align-content: start; gap: 6px; }
.story figure { margin: 0 0 12px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #ecebe6; box-shadow: inset 0 0 0 1px var(--rule); }
.story img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--out); } .story li:hover img { transform: scale(1.03); }
.story b { font: 600 12px/1 var(--mono); color: var(--blue); letter-spacing: .08em; }
.story h3 { font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.03em; }
.story p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 30ch; }
.story li + li figure { position: relative; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
@media (max-width: 480px) { .story { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .story li:hover img { transform: none; } }

/* 01 material – seamless perfume stage (backdrop = the renders' own #e6e0d7) */
.material { background: #e6e0d7; padding-bottom: clamp(50px, 6vw, 90px); }
.mat-head { text-align: center; display: grid; justify-items: center; }
.mat-head .kicker { justify-content: center; } .mat-head h2 { max-width: none; } .mat-head .sec-lead { margin-inline: auto; text-align: center; }
.mat-stage { position: relative; aspect-ratio: 16 / 10; max-width: min(1000px, 118vh); margin: clamp(4px, 1vw, 12px) auto 0; }
.mat-view { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--out); pointer-events: none; }
.mat-view.on { opacity: 1; }
.mat-view img, .mat-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mat-view video { opacity: 0; transition: opacity .6s var(--out); } .mat-view.playing video { opacity: 1; }
.mat-switch { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 6px auto 0; padding: 4px; border-radius: 999px; background: rgba(251,251,249,.6); box-shadow: inset 0 0 0 1px rgba(18,19,24,.08); }
.mat-switch button { border: 0; cursor: pointer; background: transparent; padding: 10px 18px; border-radius: 999px; font: 600 14px/1 var(--sans); color: var(--ink-2); transition: background .25s, color .25s; }
.mat-switch button[aria-selected="true"] { background: var(--ink); color: var(--paper); } .mat-switch button:hover:not([aria-selected="true"]) { color: var(--ink); }
.mat-specs { list-style: none; margin: clamp(30px, 4vw, 50px) auto 0; padding: 0; max-width: 1240px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(18,19,24,.18); }
.mat-specs li { display: grid; gap: 4px; padding: 16px 16px 0 0; } .mat-specs b { font-size: 17px; letter-spacing: -0.02em; } .mat-specs span { color: var(--ink-2); font-size: 14px; }
.mat-links { justify-content: center; }
@media (max-width: 760px) { .mat-stage { aspect-ratio: 16 / 10; } .mat-specs { grid-template-columns: 1fr 1fr; row-gap: 14px; } .mat-switch button { padding: 9px 13px; font-size: 13px; } }
.cad-fig { position: relative; background: #161b26 !important; box-shadow: none !important; }
.file-chip { position: absolute; left: 10px; top: 10px; font: 600 11px/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: #c9d2e3; }
.cad-fig .axes { position: absolute; left: 8px; bottom: 6px; width: 34px; height: 34px; }
.story figure.paper img { object-fit: contain; }
.cad-fig .sheet { position: absolute; right: 8px; bottom: 8px; width: 40%; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.cad-fig .sheet img { object-fit: contain; background: #e9e9e6; }
.cad-fig .sheet .file-chip { top: auto; bottom: 5px; left: 5px; font-size: 9px; padding: 4px 5px; background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.story .cad-fig img { object-fit: contain; padding: 8% 3% 4%; }

/* 03 raw data → model: dark CAD sheet, finished render on hover / toggle */
.rf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.rf-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #161b26; cursor: pointer; }
.rf-stage img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rf-raw { object-fit: contain; }
.rf-fin { object-fit: cover; opacity: 0; transition: opacity .5s var(--out); }
.rf-card.show .rf-fin { opacity: 1; }
@media (hover: hover) { .rf-stage:hover .rf-fin { opacity: 1; } .rf-card:has(.rf-stage:hover) .rf-tag .t-raw { display: none; } .rf-card:has(.rf-stage:hover) .rf-tag .t-fin { display: inline; } }
.rf-tag { position: absolute; left: 12px; top: 12px; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 7px 9px; border-radius: 7px; background: rgba(22,27,38,.72); color: #c9d2e3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.rf-tag .t-fin { display: none; } .rf-card.show .rf-tag .t-raw { display: none; } .rf-card.show .rf-tag .t-fin { display: inline; }
.rf-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 4px 0; }
.rf-meta h3 { font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.025em; } .rf-meta p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.rf-toggle { flex: none; border: 0; cursor: pointer; padding: 9px 14px; border-radius: 999px; font: 600 13px/1 var(--sans); background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.rf-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .rf-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rf-fin { transition: none; } }

/* ================================================================ motion-first homepage (28.10)
   One motion language: things open, separate and come back together – like an exploded view. Quiet by default,
   richer under the cursor. */
[data-v] { position: relative; overflow: hidden; isolation: isolate; }
[data-v] > img, [data-v] > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-v] > video { opacity: 0; transition: opacity .45s var(--out); } [data-v].playing > video { opacity: 1; }
.v-play { position: absolute; right: 12px; bottom: 12px; z-index: 4; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(18,19,24,.78); color: #fff; }
.v-play svg { width: 18px; height: 18px; fill: currentColor; } .v-play.on svg path { d: path('M7 5h4v14H7zM13 5h4v14h-4z'); }

/* logo: hover = a tiny exploded view of the cube, springing back */
.wm-mark { overflow: visible; }
.wm-mark g, .wm-mark .f-ring { transform-box: fill-box; transform-origin: center; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.wordmark:hover .f-top, .wordmark:focus-visible .f-top { transform: translateY(-2.4px); }
.wordmark:hover .f-left, .wordmark:focus-visible .f-left { transform: translate(-2px, 1.3px); }
.wordmark:hover .f-right, .wordmark:focus-visible .f-right { transform: translate(2px, 1.3px); }
.wordmark:hover .f-ring, .wordmark:focus-visible .f-ring { transform: rotate(30deg) scale(.82); }

/* 01 · KOMPLEX – the cinematic pump moment; section colour = the render's own backdrop, so the video has no edges */
.komplex { --open: 1; position: relative; padding: clamp(64px, 8vw, 120px) 0 clamp(40px, 5vw, 70px); background: radial-gradient(120% 80% at 50% 28%, #ebece7 0%, #e1e2dd 55%, #d9d9d5 100%);
}
.komplex::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background-image: linear-gradient(rgba(42,75,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(42,75,255,.16) 1px, transparent 1px); background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(240px 240px at var(--gx, 50%) var(--gy, 50%), #000, transparent 72%); mask-image: radial-gradient(240px 240px at var(--gx, 50%) var(--gy, 50%), #000, transparent 72%); }
@media (hover: hover) { .komplex:hover::before { opacity: 1; } }
.kx-head { position: relative; padding: 0 var(--pad); text-align: center; }
.kx-head .kicker { justify-content: center; } .kx-head h2 { margin: 0 auto; max-width: 18ch; }
.kx-stage { aspect-ratio: 16 / 10; max-width: min(1320px, 150vh); margin: clamp(-10px, -1vw, 0px) auto 0; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.kx-stage.scrubbing { cursor: grabbing; }
.kx-stage > img, .kx-stage > video { object-fit: contain; }
.kx-cross { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 2; }
.kx-cross .h, .kx-cross .v { position: absolute; background: rgba(42,75,255,.42); }
.kx-cross .h { left: 0; right: 0; height: 1px; top: var(--cy, 50%); } .kx-cross .v { top: 0; bottom: 0; width: 1px; left: var(--cx, 50%); }
.kx-cross::before, .kx-cross::after { content: ''; position: absolute; left: 0; right: 0; height: 8px; background: repeating-linear-gradient(90deg, rgba(42,75,255,.45) 0 1px, transparent 1px 20px); }
.kx-cross::before { top: 0; } .kx-cross::after { bottom: 0; }
.kx-read { position: absolute; left: calc(var(--cx, 50%) + 12px); top: calc(var(--cy, 50%) + 12px); font: 600 11px/1 var(--mono); letter-spacing: .03em; white-space: nowrap; padding: 6px 8px; border-radius: 6px; background: rgba(251,251,249,.9); color: var(--blue); box-shadow: 0 0 0 1px rgba(42,75,255,.25); }
@media (hover: hover) and (pointer: fine) { .kx-stage:hover .kx-cross { opacity: 1; } }
.kx-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 3; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 7px 10px; border-radius: 999px; background: rgba(251,251,249,.75); opacity: 0; transition: opacity .3s; pointer-events: none; }
.kx-stage:hover .kx-hint { opacity: 1; } .kx-stage.scrubbing .kx-hint { opacity: 0; }
@media (hover: none) { .kx-hint { opacity: .9; } .kx-stage.scrubbing .kx-hint { opacity: 0; } }
.kx-foot { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; max-width: 1320px; margin: clamp(10px, 1.6vw, 22px) auto 0; padding: 0 var(--pad); }
.kx-facts { display: flex; gap: clamp(22px, 4vw, 56px); margin: 0; }
.kx-facts div { display: grid; gap: 4px; } .kx-facts dt { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kx-facts dd { margin: 0; font: 700 clamp(26px, 3vw, 40px)/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.kx-views, .mat-switch { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(251,251,249,.62); box-shadow: inset 0 0 0 1px rgba(18,19,24,.08); width: max-content; max-width: 100%; }
.kx-views button, .mat-switch button { position: relative; overflow: hidden; border: 0; cursor: pointer; background: transparent; padding: 10px 18px; border-radius: 999px; font: 600 14px/1 var(--sans); color: var(--ink-2); transition: background .25s, color .25s; }
.kx-views button[aria-selected="true"], .mat-switch button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.kx-views button[aria-selected="true"]::after, .mat-switch button[aria-selected="true"]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue-3) calc(var(--p, 0) * 100%), rgba(255,255,255,.14) 0); }
@media (max-width: 700px) { .kx-stage { aspect-ratio: 4 / 3; } .kx-foot { flex-direction: column; align-items: stretch; } .kx-views { width: auto; } .kx-views button { flex: 1; padding: 10px 8px; } }

/* 02 · transform loops – dark CAD viewport, scrub by moving across, DWG label opens the 2D drawing */
.tf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.tf h3 { margin-top: 14px; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.025em; } .tf p { margin: 3px 0 0; color: var(--ink-2); font-size: 14px; }
.tf-stage { aspect-ratio: 16 / 9; border-radius: 18px; background: #161b26; }
@media (hover: hover) and (pointer: fine) { .tf-stage { cursor: ew-resize; } }
@media (hover: none) { .tf-stage { touch-action: pan-y; } }
.tf-scrub { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2; background: rgba(255,255,255,.08); opacity: 0; transition: opacity .25s; }
.tf-scrub i { display: block; height: 100%; width: 0; background: #46d5ff; }
.tf-stage.scrubbing .tf-scrub { opacity: 1; }
.dwg { position: absolute; right: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: 600 11px/1 var(--mono); letter-spacing: .08em; padding: 7px 9px; border-radius: 7px; background: rgba(255,255,255,.08); color: #c9d2e3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: background .2s, color .2s; }
.dwg:hover { background: rgba(70,213,255,.16); color: #fff; } .dwg-x { display: none; } .dwg-open .dwg-x { display: inline; }
.dwg-sheet { position: absolute; inset: 0; margin: 0; z-index: 2; background: #161b26; opacity: 0; transform: scale(.08); transform-origin: calc(100% - 30px) 22px; transition: transform .55s var(--out), opacity .3s; pointer-events: none; }
.dwg-sheet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dwg-open .dwg-sheet { opacity: 1; transform: none; }
@media (max-width: 900px) { .tf-grid { grid-template-columns: 1fr; } }

/* 04 · material stage is a video now */
.material { background: #e3e0d5; }
.mat-stage { aspect-ratio: 16 / 10; max-width: min(1000px, 118vh); margin: clamp(4px, 1vw, 12px) auto 0; }
.mat-stage > img, .mat-stage > video { object-fit: contain; }
.mat-switch { margin: 6px auto 0; }

/* 06 · industries – six render loops, six mechanisms; registration marks draw in on hover */
.vt-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(200px, 21vw, 300px); gap: clamp(12px, 1.6vw, 20px);
  grid-template-areas: "a a b" "c d b" "e f f"; }
.vt-a { grid-area: a; } .vt-b { grid-area: b; } .vt-c { grid-area: c; } .vt-d { grid-area: d; } .vt-e { grid-area: e; } .vt-f { grid-area: f; }
.vt { border-radius: 18px; background: #dcddd8; }
.vt-chip { position: absolute; left: 12px; top: 12px; z-index: 2; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; padding: 6px 8px; border-radius: 6px; background: rgba(251,251,249,.82); color: var(--ink-2); }
.vt-copy { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; width: max-content; max-width: calc(100% - 24px); padding: 13px 15px; border-radius: 12px; background: rgba(251,251,249,.9); box-shadow: 0 8px 24px rgba(18,19,24,.08); }
.vt-copy .ex-from { margin: 0 0 4px; } .vt-copy h3 { font-size: clamp(16px, 1.35vw, 20px); letter-spacing: -0.02em; }
.vt-p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--out), opacity .3s; }
.vt:hover .vt-p, .vt:focus-within .vt-p { max-height: 3em; opacity: 1; }
@media (hover: none) { .vt-p { max-height: none; opacity: 1; } }
.vt-copy .bt-links { margin: 6px 0 0; font-size: 13px; }
.reg { position: absolute; inset: 10px; z-index: 1; pointer-events: none; }
.reg::before, .reg::after { content: ''; position: absolute; width: 16px; height: 16px; opacity: 0; transition: opacity .3s, transform .5s var(--out); border-color: var(--blue); border-style: solid; }
.reg::before { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; transform: translate(-8px, 8px); }
.reg::after { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; transform: translate(-8px, -8px); }
.vt:hover .reg::before, .vt:hover .reg::after { opacity: 1; transform: none; }
@media (max-width: 860px) { .vt-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c" "d e" "f f"; grid-auto-rows: clamp(190px, 44vw, 280px); } }
@media (max-width: 520px) { .vt-grid { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f"; grid-auto-rows: 62vw; } }

.mw-media { position: relative; }
.mw-media figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .komplex { clip-path: none; } .wm-mark g, .wm-mark .f-ring, .dwg-sheet, .reg::before, .reg::after, .vt-p { transition: none; }
}
.kx-head h2 { font-size: clamp(40px, 6.2vw, 96px); letter-spacing: -0.058em; max-width: 14ch; }
.kx-stage { margin-top: clamp(8px, 1.4vw, 20px); }
/* renders carry their own backdrop gradient: feather the frame edges so the loop melts into the section */
.kx-stage > img, .kx-stage > video, .mat-stage > img, .mat-stage > video {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 9%, #000 91%, transparent); mask-composite: intersect; }
.material { background: radial-gradient(110% 80% at 50% 45%, #ebe7dd 0%, #e3e0d5 60%, #ddd9cd 100%); }
@media (hover: none) { .reg { display: none; } }
@media (max-width: 520px) { .vt-p { display: none; } .vt-copy { padding: 10px 12px; } }

/* material: cursor light + resting loupe (pointer devices only) */
.mat-light { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s; mix-blend-mode: soft-light;
  background: radial-gradient(220px 220px at var(--lx, 50%) var(--ly, 40%), rgba(255,255,255,.75), rgba(255,255,255,0) 70%); }
@media (hover: hover) and (pointer: fine) { .mat-stage:hover .mat-light { opacity: 1; } .mat-stage { cursor: crosshair; } }
.mat-loupe { position: absolute; left: 0; top: 0; z-index: 3; width: 150px; height: 150px; border-radius: 50%; pointer-events: none; opacity: 0; scale: .6;
  transition: opacity .35s, scale .5s cubic-bezier(.34, 1.56, .64, 1); box-shadow: 0 18px 44px rgba(18,19,24,.24), 0 2px 6px rgba(18,19,24,.12), 0 0 0 1px rgba(18,19,24,.1); will-change: transform; }
.mat-stage.loupe .mat-loupe { opacity: 1; scale: 1; } .mat-stage.loupe { cursor: none; }
.mat-specs li[data-tab] { cursor: pointer; border-radius: 8px; transition: background .25s; } .mat-specs li[data-tab]:hover, .mat-specs li[data-tab]:focus-visible { background: rgba(251,251,249,.45); outline: none; }
.mat-specs li[data-tab] b { position: relative; } .mat-specs li[data-tab] b::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px; background: var(--blue); transition: right .45s var(--out); }
.mat-specs li[data-tab]:hover b::after, .mat-specs li.picked b::after { right: 0; }
.mat-switch button.hint:not([aria-selected="true"]) { box-shadow: inset 0 0 0 1.5px var(--blue-3); color: var(--ink); }

/* rohdaten: outline word, phase readout, crosshair over the drawing */
#rf-title .ol { transition: color .45s var(--out), -webkit-text-stroke-color .45s; -webkit-text-stroke: 1.5px transparent; }
@media (hover: hover) { #rf-title:hover .ol { color: transparent; -webkit-text-stroke-color: var(--ink); } }
.tf-phase { position: absolute; left: 10px; bottom: 10px; z-index: 3; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: rgba(22,27,38,.72); color: #46d5ff; box-shadow: inset 0 0 0 1px rgba(70,213,255,.3); opacity: 0; transition: opacity .25s; pointer-events: none; }
.tf-phase:empty { display: none; }
@media (hover: hover) { .tf-stage:hover .tf-phase { opacity: 1; } } .tf-stage.scrubbing .tf-phase { opacity: 1; } .dwg-open .tf-phase { opacity: 0 !important; }
.tf-phase.flip { animation: phaseflip .35s var(--out); } @keyframes phaseflip { from { transform: translateY(4px); opacity: .2; } }
/* phase boundaries as ticks on the scrub bar (1.2 / 3.6 / 5.8 / 7.4 s of 8 s) */
.tf-scrub { background: linear-gradient(90deg, transparent calc(15% - 1px), rgba(255,255,255,.5) 0 15%, transparent 0 calc(45% - 1px), rgba(255,255,255,.5) 0 45%, transparent 0 calc(72.5% - 1px), rgba(255,255,255,.5) 0 72.5%, transparent 0 calc(92.5% - 1px), rgba(255,255,255,.5) 0 92.5%, transparent 0), rgba(255,255,255,.08); height: 3px; }
.dwg-cross { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s; }
.dwg-cross .h, .dwg-cross .v { position: absolute; background: rgba(70,213,255,.45); } .dwg-cross .h { left: 0; right: 0; height: 1px; top: var(--dy, 50%); } .dwg-cross .v { top: 0; bottom: 0; width: 1px; left: var(--dx, 50%); }
@media (hover: hover) and (pointer: fine) { .dwg-open:hover .dwg-cross { opacity: 1; } .dwg-open { cursor: crosshair; } }
@media (prefers-reduced-motion: reduce) { .mat-loupe, .tf-phase.flip { transition: none; animation: none; } }
[data-scrub]:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* 06 · industries, calm version: the video stays clean, one quiet caption below (same rhythm as the transform cards) */
.vt { display: flex; flex-direction: column; gap: 12px; min-height: 0; background: none; border-radius: 0; overflow: visible; }
.vt-media { flex: 1; min-height: 0; border-radius: 16px; background: #dcddd8; }
.vt-cap { display: grid; gap: 3px; padding: 0 2px; }
.vt-cap p { margin: 0; font: 500 13px/1.2 var(--sans); color: var(--ink-3); letter-spacing: 0; text-transform: none; }
.vt-cap h3 { font-size: clamp(16px, 1.25vw, 19px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.vt-cap h3 a { color: inherit; text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline; }
.vt-cap h3 a i { font-style: normal; color: var(--ink-3); transition: transform .3s var(--out), color .3s; }
.vt-cap h3 a:hover i, .vt-cap h3 a:focus-visible i { transform: translateX(3px); color: var(--blue); }
.vt-cap h3 a:hover span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.vt-grid { grid-auto-rows: clamp(250px, 25vw, 360px); row-gap: clamp(22px, 2.4vw, 32px); }
@media (max-width: 860px) { .vt-grid { grid-auto-rows: clamp(230px, 52vw, 330px); } }
@media (max-width: 520px) { .vt-grid { grid-auto-rows: calc(62vw + 52px); } }
.mw-media figcaption { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 9px; border-radius: 6px; background: rgba(251,251,249,.92); color: var(--ink); }

/* 05 · try it: the controls on the right drive the live model */
.try-poster { cursor: default; transition: opacity .5s var(--out); } .try-stage.ready .try-poster { opacity: 0; pointer-events: none; }
.try-poster .try-play i { display: inline-block; animation: tryspin 1.2s linear infinite; } @keyframes tryspin { to { transform: rotate(360deg); } }
.try-stage.locked iframe { pointer-events: none; }
.try-unlock { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; border: 0; cursor: pointer; padding: 11px 16px; border-radius: 999px; background: rgba(18,19,24,.82); color: var(--paper); font: 600 13.5px/1 var(--sans); }
.try-ctrl { display: grid; gap: 14px; margin: 22px 0 26px; }
.try-swatches { display: flex; align-items: center; gap: 10px; margin: 0; }
.try-swatches [role="radio"] { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 0 0 3px var(--paper), 0 0 0 4px transparent; transition: box-shadow .25s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.try-swatches [role="radio"]:hover { transform: scale(1.1); }
.try-swatches [aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.try-swatches [role="radio"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.try-cname { margin-left: 6px; font: 600 14px/1 var(--sans); color: var(--ink-2); } .try-cname.flip { animation: phaseflip .35s var(--out); }
.try-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.try-tg { border: 0; cursor: pointer; padding: 10px 14px; border-radius: 999px; font: 600 13.5px/1 var(--sans); color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); transition: background .2s, color .2s, box-shadow .2s; }
.try-tg:hover { box-shadow: inset 0 0 0 1px var(--ink-3); } .try-tg[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .try-poster .try-play i { animation: none; } }

/* pump section: framed → full bleed once on arrival (one short transition instead of a scroll-linked repaint) */
.komplex.kx-framed { clip-path: inset(0 3.2vw round 36px); transition: clip-path 1s var(--out); }
.komplex.kx-framed.kx-open { clip-path: inset(0 0 round 0); }
