/* Layout: an instrument on clean paper. One bold object per screen (the 3D product frame, then the
   capabilities grid); everything around it is quiet: white surfaces, hairlines, mono labels.
   Light only, by design. */
:root {
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --sunk: #EDF1F6;
  --ink: #0B1B3A;
  --ink-2: #3E4A63;
  --ink-3: #5E6A82;
  --line: #E1E6EF;
  --line-2: #C9D2E0;
  --blue: #2B54F0;
  --blue-wash: #EAF0FF;
  --orange: #FF5A1F;
  --orange-ink: #C2410C;
  --orange-wash: #FFF1EA;
  --night: #0B1B3A;
  --night-2: #15284F;
  --night-text: #B9C6E4;
  --slate: #8FA3C8;
  --ok: #157347; --ok-bg: #E2F5EA;
  --warn: #8A4B00; --warn-bg: #FFF0D6;
  --bad: #B42318; --bad-bg: #FDE7E4;
  --sh-1: 0 1px 2px rgba(11, 27, 58, 0.05);
  --sh-2: 0 1px 2px rgba(11, 27, 58, 0.04), 0 14px 32px -18px rgba(11, 27, 58, 0.22);
  --sh-frame: 0 2px 6px rgba(11, 27, 58, 0.05), 0 48px 90px -48px rgba(11, 27, 58, 0.45);
  --r-xl: 24px; --r-lg: 18px; --r-md: 12px; --r-sm: 8px;
  --f-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --frame: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background-color: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, canvas { max-width: 100%; }
main { overflow-x: clip; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--f-mono); }
.wrap { max-width: var(--frame); margin-inline: auto; padding-inline: var(--gutter); }
.display { font-family: var(--f-display); font-variation-settings: 'opsz' 96; font-weight: 700; letter-spacing: -0.025em; line-height: 1; text-wrap: balance; margin: 0; }
h2.display { font-size: clamp(32px, 3.9vw, 54px); }
.lede { font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; margin: 0; text-wrap: pretty; }
.mono-label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.small { font-size: 14px; color: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--orange); border-radius: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; background: none; color: var(--ink); }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .2s; }
.btn:hover .nudge { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1B2E57; color: #fff; }
.btn-signal { background: var(--orange); color: var(--ink); }
.btn-signal:hover { background: #FF7240; color: var(--ink); box-shadow: 0 8px 20px -10px rgba(255, 90, 31, 0.8); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- header ---------- */
.mast { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(243, 245, 249, 0.84); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 28px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { font-family: var(--f-display); font-variation-settings: 'opsz' 48; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; font-size: 15px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); transition: background-color .15s, color .15s; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.acct { display: flex; align-items: center; gap: 8px; }
.acct .link { text-decoration: none; font-size: 15px; padding: 10px; color: var(--ink); }
.user-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 3px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; cursor: pointer; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; border-radius: 50%; }
.user-menu { position: absolute; right: var(--gutter); top: calc(100% + 8px); min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 10px; display: grid; gap: 2px; z-index: 50; }
.user-menu p { margin: 4px 8px 8px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.user-menu button { text-align: left; min-height: 40px; padding: 0 10px; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.user-menu button:hover { background: var(--sunk); }
body[data-auth="in"] .out-only, body[data-auth="out"] .in-only { display: none !important; }
@media (max-width: 900px) { .nav { display: none; } }

/* ---------- section heads ---------- */
.block { padding-top: clamp(84px, 10vw, 136px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: 36px; }
.sec-head > div { min-width: 0; }
.sec-head p.intro { margin: 0; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
@media (max-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(24px, 3.4vw, 42px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px 56px; align-items: end; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-side { display: grid; gap: 22px; justify-items: start; }
.pill-note { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 12px 5px 6px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); }
.pill-note b { padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; }
.hero h1 { font-size: clamp(44px, 6vw, 84px); letter-spacing: -0.035em; line-height: 0.94; }
.hero h1 .l2 { display: block; }
.hero h1 .w { display: inline-block; animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { transform: translateY(0.35em); opacity: 0.001; } }
.mark { font-style: normal; position: relative; z-index: 0; white-space: nowrap; }
.mark::before { content: ''; position: absolute; z-index: -1; left: -0.07em; right: -0.09em; bottom: 0.04em; height: 0.42em; background: var(--orange); border-radius: 0.14em 0.32em 0.2em 0.38em; transform: skewX(-10deg) rotate(-1.6deg); transform-origin: left center; animation: markIn .9s .75s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes markIn { from { transform: skewX(-10deg) rotate(-1.6deg) scaleX(0.001); } }

/* ---------- product frame (explorer) ---------- */
.showcase { position: relative; margin-top: clamp(24px, 2.8vw, 36px); }
.showcase::before { content: ''; position: absolute; inset: -40px 0 auto; height: 70%; z-index: -1; pointer-events: none; background: radial-gradient(42% 60% at 18% 30%, rgba(43, 84, 240, 0.14), transparent 70%), radial-gradient(36% 56% at 86% 46%, rgba(255, 90, 31, 0.12), transparent 70%); filter: blur(8px); }
.explorer { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--sh-frame); overflow: hidden; }
.ex-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px; border-bottom: 1px solid var(--line); }
.prompt { position: relative; flex: 1 1 520px; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px 10px; background: var(--sunk); border: 1px solid var(--line); border-radius: 14px; margin-top: 6px; }
.prompt > svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--blue); }
.ex-prompt { min-width: 0; flex: 1 1 auto; }
.ex-prompt .mono-label { position: absolute; top: -8px; left: 40px; padding: 0 6px; background: var(--surface); border-radius: 4px; font-size: 10.5px; line-height: 16px; }
.prompt-text { margin: 0; font-family: var(--f-mono); font-size: clamp(12.5px, 1vw, 14px); line-height: 1.5; color: var(--ink); min-height: 3em; }
.caret { display: inline-block; width: 2px; height: 1.15em; vertical-align: -0.2em; background: var(--orange); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ex-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ex-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12.5px; padding: 0 14px; min-height: 40px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1.2s ease-in-out infinite; }
.ex-status.ready .status-dot { background: var(--ok); animation: none; }
@keyframes pulse { 50% { opacity: 0.3; } }
.ex-body { position: relative; display: flex; flex-wrap: wrap; }
.vp { position: relative; flex: 999 1 640px; min-width: 0; height: clamp(380px, 52vw, 640px); overflow: hidden; touch-action: none; background: radial-gradient(120% 90% at 50% 40%, #FFFFFF 40%, #F1F4F9 100%); }
.vp::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(11, 27, 58, 0.09) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, transparent 40%, #000 100%); mask-image: radial-gradient(70% 70% at 50% 50%, transparent 40%, #000 100%); }
.vp-stage { position: absolute; inset: 0; z-index: 1; }
.vp-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.vp-canvas:active { cursor: grabbing; }
.vp-lead { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .3s; z-index: 2; }
.bln-ln { stroke: var(--orange); stroke-width: 1.2; }
.bln-dot { fill: var(--orange); }
.vp-balloons { position: absolute; inset: 0; transition: opacity .3s; z-index: 2; }
.bln { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--orange); background: var(--surface); color: var(--ink); font-family: var(--f-mono); font-size: 12px; font-weight: 600; display: grid; place-items: center; cursor: pointer; padding: 0; will-change: transform; box-shadow: var(--sh-1); }
.bln:hover, .bln.on { background: var(--orange); color: var(--ink); }
.vp-env { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.env-lbl { position: absolute; left: 0; top: 0; padding: 3px 8px; border: 1px solid var(--blue); background: rgba(255, 255, 255, 0.94); color: var(--blue); border-radius: 6px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; will-change: transform; }
.env-lbl b { font-weight: 600; margin-right: 6px; color: var(--ink-3); }
.vp-tip { position: absolute; left: 0; top: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 10px; font-size: 13px; line-height: 1.35; border-radius: 10px; max-width: 260px; z-index: 4; }
.vp-tip b { display: block; font-weight: 600; }
.vp-tip span { color: #C8D3EC; font-family: var(--f-mono); font-size: 12px; }
.vp-hud { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 3; max-width: calc(100% - 24px); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; box-shadow: var(--sh-1); }
.seg button { min-height: 32px; padding: 0 12px; border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--ink-2); border-radius: 999px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.hud-btn { min-height: 38px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--sh-1); }
.hud-btn[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-wash); color: var(--blue); }
.hud-btn svg { width: 15px; height: 15px; }
.vp-hint { position: absolute; right: 14px; bottom: 12px; margin: 0; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); pointer-events: none; z-index: 2; }
.vp-cap { position: absolute; right: 12px; top: 13px; margin: 0; max-width: calc(100% - 24px); padding: 7px 12px; background: var(--ink); color: #fff; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.03em; border-radius: 999px; pointer-events: none; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s; z-index: 3; }
.vp-cap.on { opacity: 1; transform: none; }
@media (max-width: 700px) { .vp-cap { top: auto; right: auto; left: 12px; bottom: 10px; transform: translateY(6px); } .vp-cap.on + .vp-hint { opacity: 0; } }
.vp-off .vp-stage { display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-2); }
.vp-wait { position: absolute; inset: auto 16px 16px 16px; margin: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); font-size: 14px; color: var(--ink-2); z-index: 3; }
#hero-ex .vp { height: clamp(360px, calc(100vh - 440px), 600px); }
#hero-ex .parts { max-height: clamp(360px, calc(100vh - 440px), 600px); }
@media (max-width: 960px) { #hero-ex .parts { max-height: 420px; } }

.parts { position: relative; flex: 1 1 300px; min-width: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; max-height: clamp(380px, 52vw, 640px); background: var(--surface); }
@media (max-width: 960px) { .parts { border-left: 0; border-top: 1px solid var(--line); max-height: none; } }
.parts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.parts-head h2, .parts-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.parts-head span { font-size: 12px; color: var(--ink-3); }
.bom { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1 1 auto; }
.bom li { margin: 0; }
.bom button { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border: 0; background: none; cursor: pointer; font-size: 14px; line-height: 1.3; min-height: 46px; border-radius: 10px; }
.bom button:hover, .bom button.hot { background: var(--sunk); }
.bom button[aria-pressed="true"] { background: var(--orange-wash); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.45); }
.bom .no { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--orange); display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; font-weight: 600; }
.bom .nm b { display: block; font-weight: 600; }
.bom .nm span { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
.bom .qm { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bom .new { animation: slideIn .35s ease-out both; }
@keyframes slideIn { from { transform: translateY(8px); opacity: 0.001; } }
.part-card { border-top: 1px solid var(--line); padding: 14px 16px 16px; background: var(--bg); }
.part-card h3 { margin: 0; font-size: 16px; }
.part-card .sub { margin: 2px 0 10px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.part-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0 0 10px; font-size: 13px; }
.part-card dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.part-card dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.part-card .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.timeline { flex: 1 1 320px; min-width: 0; }
.timeline input[type="range"] { width: 100%; accent-color: var(--orange); margin: 0; height: 24px; }
.tl-marks { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.tl-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); margin: 20px 0 0; gap: 0; }
.stats div { padding: 4px 18px; border-left: 1px solid var(--line-2); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.stats dd { margin: 2px 0 0; font-family: var(--f-display); font-variation-settings: 'opsz' 72; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(24px, 2.6vw, 34px); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; } .stats div { border-left: 0; padding-left: 0; } }
.formats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.formats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.formats li { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.formats-note { flex-basis: 100%; margin: 0; max-width: 84ch; font-size: 13px; line-height: 1.5; color: var(--ink-3); }

/* ---------- how it works ---------- */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.how .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-ink); }
.how h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.how p { margin: 0; color: var(--ink-2); font-size: 15px; }
.vig { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); padding: 12px; display: grid; gap: 8px; font-size: 13px; min-height: 176px; align-content: start; }
.vig .ln { font-family: var(--f-mono); font-size: 12px; line-height: 1.5; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.vig .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vig .att { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 12px; color: var(--ink-2); }
.vig .att svg { width: 14px; height: 14px; color: var(--blue); }
.vig .stage { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: center; color: var(--ink-2); }
.vig .stage i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.vig .stage.done i { background: var(--ok); border-color: var(--ok); }
.vig .stage.run i { border-color: var(--orange); border-right-color: transparent; animation: rot .9s linear infinite; }
.vig .stage.run { color: var(--ink); font-weight: 600; }
.vig .stage span:last-child { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.vig .file { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.vig .file b { font-family: var(--f-mono); font-size: 11px; font-weight: 600; text-align: center; padding: 2px 0; border: 1px solid var(--ink); border-radius: 5px; }
.vig .file span { font-family: var(--f-mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vig .file em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }

/* ---------- capabilities (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { grid-column: span 4; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tile.s5 { grid-column: span 5; } .tile.s6 { grid-column: span 6; } .tile.s7 { grid-column: span 7; } .tile.s8 { grid-column: span 8; } .tile.s12 { grid-column: span 12; }
@media (max-width: 1000px) { .tile, .tile.s5, .tile.s7, .tile.s8 { grid-column: span 6; } .tile.s12 { grid-column: span 12; } }
@media (max-width: 680px) { .tile, .tile.s5, .tile.s6, .tile.s7, .tile.s8 { grid-column: span 12; } }
.tile .t-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.tile h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.tile > p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 60ch; }
.tile .big { font-family: var(--f-display); font-variation-settings: 'opsz' 96; font-weight: 700; letter-spacing: -0.04em; font-size: clamp(56px, 6vw, 84px); line-height: 0.9; }
.tile .big small { font-family: var(--f-body); font-size: 16px; letter-spacing: 0; font-weight: 500; color: var(--ink-2); margin-left: 8px; }
.tile .viz { margin-top: auto; min-width: 0; }
.stack { display: flex; height: 34px; border-radius: 8px; overflow: hidden; background: var(--sunk); gap: 2px; }
.stack i { display: block; height: 100%; min-width: 3px; transform-origin: left; animation: grow .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0.001); } }
.legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { font-family: var(--f-mono); font-weight: 600; color: var(--ink); }
.calc { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg); }
.calc div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12.5px; }
.calc div:first-child { border-top: 0; }
.calc span { color: var(--ink-2); overflow-wrap: anywhere; }
.calc b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.calc .hl b { color: var(--blue); }
.std-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.std-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding-bottom: 8px; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.std-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.std-list b { font-weight: 600; }
.std-list span { grid-column: 1; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
.std-list em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; gap: 4px; font-size: 13.5px; }
.bars .bl { display: flex; justify-content: space-between; gap: 10px; }
.bars .bl b { font-family: var(--f-mono); font-size: 12px; font-weight: 600; white-space: nowrap; }
.bars .bt { height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.bars .bt i { display: block; height: 100%; border-radius: 99px; background: var(--blue); transform-origin: left; animation: grow .9s cubic-bezier(.2, .7, .2, 1) both; }
.ring { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; }
.ring svg { width: 104px; height: 104px; }
.ring ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.ring li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.thumb { position: relative; aspect-ratio: 1.414; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; display: grid; place-items: center; }
.thumb svg { width: 100%; height: 100%; display: block; }
.thumb .ph { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 10px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 12px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.rev-ask { align-self: flex-start; max-width: 100%; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 14px 14px 14px 4px; font-size: 14.5px; }
.rev-ask span { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-text); }
.rev-reply { align-self: flex-end; max-width: 100%; padding: 10px 14px; background: var(--blue-wash); color: var(--ink); border-radius: 14px 14px 4px 14px; font-size: 14.5px; animation: slideIn .4s ease-out both; }
.rev-reply span { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.diff { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.diff th { text-align: left; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 0 8px 6px 0; }
.diff td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.diff td.n { font-family: var(--f-mono); font-size: 12.5px; white-space: nowrap; }
.diff tr.ch td.new { color: var(--blue); font-weight: 600; }
.rep-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px 32px; align-items: start; }
@media (max-width: 860px) { .rep-grid { grid-template-columns: minmax(0, 1fr); } }
.toc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; counter-reset: toc; }
@media (max-width: 560px) { .toc { grid-template-columns: minmax(0, 1fr); } }
.toc li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 8px; padding: 10px 0; border-top: 1px solid var(--line); counter-increment: toc; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--orange-ink); padding-top: 2px; }
.toc b { font-weight: 600; font-size: 14.5px; }
.toc span { grid-column: 2; font-size: 13.5px; color: var(--ink-2); }

/* ---------- brief → decisions ---------- */
.decided { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
@media (max-width: 860px) { .decided { grid-template-columns: minmax(0, 1fr); } }
.decided > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; min-width: 0; }
.decided h3 { margin: 0 0 14px; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.decided h3 .ct { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border: 1px solid var(--line-2); font-size: 14px; border-radius: 999px; background: var(--surface); }
.chip small { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.chip.assumed { border-style: dashed; border-color: var(--orange); }
.alist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.alist li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.alist li::before { content: ''; width: 9px; height: 9px; margin-top: 8px; border: 1.5px dashed var(--orange); border-radius: 2px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.st { display: inline-block; min-width: 56px; text-align: center; padding: 2px 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; border-radius: 999px; }
.st.pass { background: var(--ok-bg); color: var(--ok); }
.st.warn { background: var(--warn-bg); color: var(--warn); }
.st.fail { background: var(--bad-bg); color: var(--bad); }
.checks b { font-weight: 600; color: var(--ink); }
.checks span.d { color: var(--ink-2); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-weight: 600; font-size: 14px; }
.field small { color: var(--ink-2); font-size: 13px; }
.field .lbl small, .field > label small { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-md); font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.55; font-family: var(--f-mono); font-size: 14.5px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 84, 240, 0.14); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--bad); }
.err { color: var(--bad); font-size: 13.5px; min-height: 0; margin: 0; }
.err:empty { display: none; }
.ex-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ex-chips .mono-label { margin-right: 4px; font-size: 11px; }
.ex-chips button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; cursor: pointer; font-size: 13.5px; }
.ex-chips button:hover { border-color: var(--ink); }
.tbl-wrap { overflow-x: auto; min-width: 0; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { text-align: left; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 9px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.ptable td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable td.n { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge { display: inline-block; padding: 1px 8px; font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px !important; }
.pw-toggle { position: absolute; right: 6px; top: 6px; min-height: 34px; padding: 0 12px; border: 0; background: var(--sunk); border-radius: 999px; cursor: pointer; font-size: 13px; }
.meter { height: 4px; background: var(--line); position: relative; border-radius: 99px; overflow: hidden; }
.meter::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--bad); transition: width .2s; }
.meter[data-s="1"]::after { width: 25%; } .meter[data-s="2"]::after { width: 50%; background: var(--warn); } .meter[data-s="3"]::after { width: 75%; background: var(--ok); } .meter[data-s="4"]::after { width: 100%; background: var(--ok); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.note { font-size: 13.5px; color: var(--ink-2); background: var(--sunk); padding: 10px 14px; border-radius: var(--r-md); margin: 0; }

/* ---------- drawings ---------- */
.dw { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dw-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.dw-tabs button { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13.5px; white-space: nowrap; color: var(--ink-2); border-radius: 999px; }
.dw-tabs button:hover { border-color: var(--ink-3); }
.dw-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dw-tabs button small { font-family: var(--f-mono); font-size: 10.5px; opacity: 0.75; margin-left: 6px; }
.dw-view { overflow: auto; max-height: 78vh; background: #fff; }
.dw-view svg { display: block; width: 100%; height: auto; min-width: 620px; }
.dw-view.z15 svg { width: 150%; } .dw-view.z2 svg { width: 220%; }
.dw-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.dw-bar .meta { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.dw-bar .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.plotting .ln-v, .plotting .dwg-dim path, .plotting .dwg-balloons path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: plot 1.8s ease-out forwards; }
.plotting .ln-h, .plotting text, .plotting .dwg-cl { animation: fadeIn .6s ease-out 1s both; }
@keyframes plot { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0.001; } }
.dw-empty { padding: 40px; text-align: center; color: var(--ink-2); }

/* ---------- report document ---------- */
.doc { background: var(--surface); padding: clamp(18px, 3vw, 36px); font-size: 15px; }
.doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.doc-head h3 { margin: 4px 0 2px; font-family: var(--f-display); font-variation-settings: 'opsz' 72; font-weight: 700; letter-spacing: -0.02em; font-size: 28px; }
.doc-head .dmeta { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); text-align: right; }
.doc section { margin-top: 22px; }
.doc h4 { margin: 0 0 10px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; display: flex; gap: 10px; align-items: baseline; }
.doc h4 span { font-family: var(--f-mono); color: var(--orange-ink); font-size: 12px; }
.doc p { margin: 0 0 10px; color: var(--ink-2); max-width: 70ch; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0; }
.kv div { background: var(--surface); padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kv dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.kv dd { margin: 3px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- call to action & footer ---------- */
.cta { margin-top: clamp(84px, 10vw, 136px); position: relative; overflow: hidden; background: var(--night); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; }
.cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(36px, 5vw, 68px); color: #fff; }
.cta p { margin: 0 0 14px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-text); }
.cta .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta .btn-line:hover { border-color: #fff; color: #fff; }
.foot { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.foot .wrap { display: grid; gap: 18px; padding-block: 28px 36px; font-size: 14px; color: var(--ink-2); }
.foot p { margin: 0; max-width: 680px; }
.foot nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; }
.foot-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.foot-mail span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.foot-mail a { font-family: var(--f-display); font-variation-settings: 'opsz' 32; font-weight: 600; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.foot-mail a:hover { color: var(--blue); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.foot-bottom p { color: var(--ink-3); }
.copy-btn { min-height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); }
.cta .cta-mail { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--f-body); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--night-text); }
.cta .cta-mail a { color: #fff; font-weight: 600; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 3px; }
.cta .copy-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* sign-up consent, account menu */
.check a { color: var(--blue); font-weight: 600; }
.check-soft { color: var(--ink-2); font-size: 14px; }
.check-soft b { color: var(--ink); font-weight: 600; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.menu-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14.5px; }
.menu-check:hover { background: var(--sunk); }
.menu-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: 0 0 auto; }
.menu-check span { display: grid; gap: 1px; }
.menu-check small { color: var(--ink-3); font-size: 12.5px; }
.user-menu button.danger { color: var(--bad); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger-line { background: var(--surface); color: var(--bad); border-color: rgba(180, 35, 24, 0.35); }
.btn-danger-line:hover { border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: #8F1C13; color: #fff; }

/* build screen on the server: the brief instead of a model */
.gen-brief { position: absolute; inset: 22px 22px 92px; z-index: 2; overflow: auto; display: grid; align-content: start; gap: 14px; }
/* on the server build the viewport holds the brief, so it grows with it instead of clipping */
.gen .vp.remote { height: auto; min-height: 280px; display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.gen .vp.remote .gen-brief { position: static; inset: auto; overflow: visible; }
.gen .vp.remote .vp-wait { position: static; margin-top: auto; order: 2; }
.gen .vp.remote .vp-stage, .gen .vp.remote .vp-lead, .gen .vp.remote .vp-balloons { display: none; }
.gen-brief blockquote { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--f-mono); font-size: 14px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.gen-thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gen-thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: block; }
.gen-dims { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gen-dims div { padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.gen-dims dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.gen-dims dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.gen-fmts { margin: 0; font-size: 14px; color: var(--ink-2); }
.gen-fmts b { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px; }

/* "we emailed you" notices */
.mail-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid #CFE0FF; background: var(--blue-wash); border-radius: var(--r-md); font-size: 14px; color: var(--ink-2); }
.mail-note > svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--blue); margin-top: 1px; }
.mail-note > div { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.mail-note b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.mail-note small { color: var(--ink-3); font-size: 12.5px; }
.mail-note .btn { flex: 0 0 auto; align-self: center; }
@media (max-width: 560px) { .mail-note { flex-wrap: wrap; } .mail-note .btn { margin-left: 34px; } }

/* modals: sizes, email preview, legal text */
.modal-box.modal-sm { width: min(560px, 100%); }
.modal-box.modal-legal { width: min(820px, 100%); }
.modal-box.modal-mail { width: min(760px, 100%); }
.confirm-box { display: grid; gap: 14px; padding: 20px 22px 24px; }
.confirm-box p { margin: 0; color: var(--ink-2); }
.confirm-box b { color: var(--ink); }
.mailview { display: grid; }
.mail-head { margin: 0; padding: 14px 20px; display: grid; gap: 4px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mail-head div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.mail-head dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.mail-head dd { margin: 0; overflow-wrap: anywhere; }
.mail-frame { display: block; width: 100%; height: min(68vh, 760px); border: 0; background: #F3F5F9; }
.auth-sent { display: grid; gap: 14px; justify-items: start; padding-top: 8px; outline: none; }
.auth-sent p { margin: 0; max-width: 46ch; color: var(--ink-2); }
.auth-sent .small { font-size: 14px; color: var(--ink-3); }
.sent-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-wash); color: var(--blue); }
.sent-icon svg { width: 26px; height: 26px; }
.legal-modal { padding: 8px clamp(18px, 3vw, 32px) 28px; }
.legal-modal .legal-kicker { display: none; }

/* legal pages */
.legal-wrap { max-width: 760px; margin: 0 auto; padding-block: clamp(32px, 5vw, 64px) 24px; }
.legal-back { margin: 0 0 28px; font-size: 14.5px; }
.legal-back a { color: var(--ink-2); text-decoration: none; }
.legal-back a:hover { color: var(--ink); }
.legal { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal-kicker { margin: 0 0 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-ink); }
.legal h1 { margin: 0; font-family: var(--f-display); font-variation-settings: 'opsz' 96; font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.legal-date { margin: 12px 0 0; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); }
.legal h2 { margin: 36px 0 10px; font-size: 19px; line-height: 1.35; color: var(--ink); text-wrap: balance; }
.legal p { margin: 0 0 12px; max-width: 68ch; }
.legal ul { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; max-width: 68ch; }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { color: var(--blue); }
.legal code { font-family: var(--f-mono); font-size: 0.9em; background: var(--sunk); padding: 1px 5px; border-radius: 5px; }
.legal-sum { margin: 28px 0 8px; padding: 20px 22px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--r-lg); }
.legal-sum h2 { margin: 0 0 10px; font-size: 16px; }
.legal-modal .legal h1 { font-size: clamp(28px, 4vw, 40px); }

.foot nav a { text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); margin-top: clamp(24px, 4vw, 48px); }
.auth-form { padding: clamp(22px, 4vw, 44px); display: grid; gap: 16px; align-content: start; }
.auth-tabs { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; width: max-content; max-width: 100%; background: var(--bg); }
.auth-tabs button { min-height: 40px; padding: 0 18px; border: 0; background: none; cursor: pointer; font-weight: 600; border-radius: 999px; color: var(--ink-2); }
.auth-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.auth form { display: grid; gap: 14px; }
.auth h1 { font-size: clamp(30px, 3.4vw, 44px); }
.auth-side { border-left: 1px solid var(--line); padding: clamp(22px, 4vw, 44px); background: var(--bg); display: grid; gap: 18px; align-content: start; }
@media (max-width: 860px) { .auth-side { border-left: 0; border-top: 1px solid var(--line); } }
.auth-side .art { aspect-ratio: 4 / 3; max-width: 100%; color: var(--ink); border: 1px solid var(--line); background: #fff; display: grid; place-items: center; padding: 10px; border-radius: var(--r-md); }
.auth-side .art svg { width: 100%; height: 100%; }
.auth-side ul { margin: 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 6px; }

/* ---------- requests (studio) ---------- */
.studio { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.rail { flex: 1 1 230px; max-width: 100%; display: grid; gap: 12px; position: sticky; top: 84px; }
@media (max-width: 1080px) { .rail { position: static; flex-basis: 100%; } }
.rail > .btn { width: 100%; }
.rail-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.rail-box h3 { margin: 0; padding: 12px 14px; font-size: 12px; font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.rail-list { list-style: none; margin: 0; padding: 6px; max-height: 420px; overflow-y: auto; }
.rail-list button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; text-align: left; padding: 10px; border: 0; background: none; cursor: pointer; min-height: 44px; border-radius: 10px; }
.rail-list button:hover { background: var(--sunk); }
.rail-list button[aria-current="true"] { background: var(--orange-wash); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.4); }
.rail-list b { display: block; font-family: var(--f-body); font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-list span { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.rail-empty { padding: 10px; font-size: 14px; color: var(--ink-2); }
.pill { display: inline-block; padding: 2px 8px; font-family: var(--f-mono); font-size: 10.5px; border-radius: 999px; white-space: nowrap; align-self: start; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.run { background: var(--orange-wash); color: var(--orange-ink); } .pill.ex { background: var(--sunk); color: var(--ink-2); }
.stage { flex: 999 1 640px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-1); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-family: var(--f-display); font-variation-settings: 'opsz' 72; font-weight: 700; letter-spacing: -0.015em; font-size: clamp(24px, 2.4vw, 32px); }
.panel-head p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.rq { display: flex; flex-wrap: wrap; }
.rq-main { flex: 999 1 460px; min-width: 0; padding: 22px; display: grid; gap: 24px; align-content: start; }
.rq-side { flex: 1 1 260px; min-width: 0; border-left: 1px solid var(--line); background: var(--bg); padding: 22px 20px; display: grid; gap: 14px; align-content: start; }
@media (max-width: 900px) { .rq-side { border-left: 0; border-top: 1px solid var(--line); } }
.rq-side h3 { margin: 0; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rq-side .small { margin: 0; }
.next { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: nx; }
.next li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; counter-increment: nx; }
.next li::before { content: counter(nx); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--orange); display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; font-weight: 600; }
.next b { font-size: 14.5px; } .next span { font-size: 13.5px; color: var(--ink-2); }
.field-foot { display: flex; justify-content: space-between; gap: 10px; }
.drop { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed var(--line-2); background: var(--bg); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s, background-color .15s; font-weight: 400 !important; }
.drop:hover, .drop.over { border-color: var(--orange); background: var(--orange-wash); }
.drop:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.drop > svg { width: 30px; height: 30px; flex: 0 0 auto; color: var(--blue); }
.drop > span { display: grid; gap: 2px; min-width: 0; }
.drop b { font-size: 14.5px; font-weight: 600; } .drop span span { font-size: 13px; color: var(--ink-2); }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; border: 1px solid var(--line-2); background: var(--bg); aspect-ratio: 1; overflow: hidden; border-radius: 10px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(11, 27, 58, 0.85); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.thumbs button svg { width: 12px; height: 12px; }
.thumbs .nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 8px; background: rgba(255, 255, 255, 0.92); font-family: var(--f-mono); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dims { display: grid; gap: 8px; }
.dims:empty { display: none; }
.dim-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 84px 44px; gap: 8px; align-items: center; }
.dim-row input, .dim-row select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; font-size: 15px; color: var(--ink); }
.dim-row input:focus, .dim-row select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 84, 240, 0.14); }
.dim-row .x { width: 44px; height: 44px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 50%; cursor: pointer; display: grid; place-items: center; padding: 0; }
.dim-row .x svg { width: 13px; height: 13px; }
@media (max-width: 520px) { .dim-row { grid-template-columns: minmax(0, 1fr) 84px 44px; } .dim-row input[data-k="label"] { grid-column: 1 / -1; } .dims { gap: 14px; } }
.fmt-more { display: grid; gap: 10px; margin-top: 4px; }
.fmt-more[hidden] { display: none; }
.fmt-more .hint { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px; }
.radio-cards label { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); cursor: pointer; background: var(--surface); min-height: 44px; position: relative; }
.radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.radio-cards label:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: var(--blue-wash); }
.radio-cards label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.radio-cards b { font-size: 14px; } .radio-cards span { font-size: 12.5px; color: var(--ink-2); }
.fmt-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 8px; }
.fmt-picks label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); cursor: pointer; align-items: start; }
.fmt-picks label:has(input:checked) { border-color: var(--blue); background: var(--blue-wash); }
.fmt-picks input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.fmt-picks b { font-family: var(--f-mono); font-size: 13px; } .fmt-picks small { display: block; font-size: 12.5px; color: var(--ink-2); }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 16px 22px; border-top: 1px solid var(--line); }
.send-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.send-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: center; }
.send-list svg { width: 20px; height: 20px; color: var(--blue); }

/* building */
.gen { display: flex; flex-wrap: wrap; }
.gen .vp { flex: 999 1 520px; height: clamp(340px, 46vw, 560px); border-right: 1px solid var(--line); }
@media (max-width: 900px) { .gen .vp { border-right: 0; border-bottom: 1px solid var(--line); } }
.gen-side { flex: 1 1 300px; min-width: 0; display: grid; align-content: start; }
.gen-stages { list-style: none; margin: 0; padding: 10px 6px; }
.gen-stages li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; font-size: 14px; color: var(--ink-3); border-radius: 10px; }
.gen-stages .ic { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.gen-stages li.active { color: var(--ink); font-weight: 600; background: var(--bg); }
.gen-stages li.active .ic { border-color: var(--orange); border-right-color: transparent; animation: rot .8s linear infinite; }
.gen-stages li.done { color: var(--ink); }
.gen-stages li.done .ic { background: var(--ok); border-color: var(--ok); }
.gen-stages .t { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
.progress { height: 4px; background: var(--line); margin: 0 18px; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s; border-radius: 99px; }
.gen-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 18px 18px; }
.gen-sum:empty { display: none; }
.gen-sum div { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); animation: slideIn .3s ease-out both; }
.gen-sum dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.gen-sum dd { margin: 3px 0 0; font-family: var(--f-display); font-variation-settings: 'opsz' 48; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* results */
.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.res-head h2 { margin: 4px 0 4px; font-family: var(--f-display); font-variation-settings: 'opsz' 96; font-weight: 700; letter-spacing: -0.015em; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; }
.res-head .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.tabs [role="tab"] { min-height: 40px; padding: 0 16px; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 14.5px; white-space: nowrap; color: var(--ink-2); border-radius: 999px; }
.tabs [role="tab"]:hover { background: var(--sunk); color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs .ct { font-family: var(--f-mono); font-size: 11px; margin-left: 6px; opacity: 0.75; }
.tabpanel { min-width: 0; }
.tabpanel[hidden] { display: none !important; }
.res-explorer.explorer { border: 0; box-shadow: none; border-radius: 0; }
.res-explorer .vp { flex: 999 1 520px; }
.res-explorer .parts { flex: 1 1 270px; }
.files { width: 100%; border-collapse: collapse; font-size: 14px; }
.files th { text-align: left; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.files td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.files .fx { display: inline-block; min-width: 54px; text-align: center; padding: 3px 8px; font-family: var(--f-mono); font-size: 12px; border: 1px solid var(--ink); border-radius: 6px; }
.files .fx.prod { border-style: dashed; color: var(--ink-3); border-color: var(--line-2); }
.files .fn { font-family: var(--f-mono); font-size: 12.5px; overflow-wrap: anywhere; }
.files .desc { color: var(--ink-2); font-size: 13px; }
.files .sz { font-family: var(--f-mono); font-size: 12.5px; white-space: nowrap; color: var(--ink-2); }
.revise { padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--bg); display: grid; gap: 10px; }
.res-wait { padding: 22px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.res-wait h3 { margin: 0; font-size: 18px; }
.res-wait p { margin: 0; color: var(--ink-2); max-width: 70ch; }
/* the design engine's questions to the customer */
.ask-list { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 14px; max-width: 70ch; }
.ask-list .field textarea { min-height: 64px; font-family: inherit; font-size: 15px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font: inherit; text-decoration: underline; }
.ask-past { max-width: 70ch; } .ask-past summary { cursor: pointer; color: var(--ink-2); }
.qa { margin: 8px 0 0; display: grid; gap: 2px; } .qa small { color: var(--ink-3); } .qa dt { font-weight: 600; margin-top: 6px; } .qa dd { margin: 0; color: var(--ink-2); white-space: pre-wrap; }
.brief { padding: clamp(18px, 3vw, 28px); display: grid; gap: 22px; }
.brief h3 { margin: 0 0 8px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.brief blockquote { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); font-family: var(--f-mono); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.brief .thumbs button { position: static; width: 100%; height: 100%; background: none; padding: 0; border: 0; border-radius: 0; cursor: zoom-in; }
.brief p { margin: 0; color: var(--ink-2); }
/* who has seen this request */
.seen { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.seen h3 { margin: 0; }
.seen p { font-size: 14px; }
.seen .seen-none { font-weight: 600; color: var(--ok); }
.seen-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.seen-list li { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 2px 12px; color: var(--ink); }
.seen-list span { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); padding-top: 2px; }
@media (max-width: 560px) { .seen-list li { grid-template-columns: minmax(0, 1fr); } }
/* what the engine said about the files: formats it could not write, and the automatic checks */
.file-notes { margin: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); font-size: 14px; }
.file-notes h3 { margin: 0 0 6px; font-size: 15px; }
.file-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
/* beside the build progress the column is narrow: the time goes above the line, not beside it */
#gen-seen { margin-top: 12px; }
#gen-seen .seen-list li { grid-template-columns: minmax(0, 1fr); }
.code-step { display: grid; gap: 12px; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 140px); margin: 0 auto; border-radius: var(--r-md); }

/* ---------- toasts & modal ---------- */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; justify-items: center; gap: 8px; width: max-content; max-width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 14px; font-size: 14.5px; box-shadow: var(--sh-2); animation: slideIn .25s ease-out both; }
.toast i { width: 10px; height: 10px; border-radius: 50%; background: #C8D3EC; margin-top: 6px; }
.toast.ok i { background: #7EE0AE; } .toast.warn i { background: #FFB38F; }
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(11, 27, 58, 0.5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; }
.modal-box { width: min(1100px, 100%); max-height: calc(100vh - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--sh-frame); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 12px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-body { overflow: auto; padding: 0; }

/* ---------- examples: three briefs, each with one still picture of its solid model ---------- */
.egs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.eg { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.eg-pic { position: relative; flex: 0 0 auto; aspect-ratio: 4 / 3; max-width: 100%; border-bottom: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 40%, #FFFFFF 40%, #F1F4F9 100%); }
.eg-pic::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(11, 27, 58, 0.09) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, transparent 40%, #000 100%); mask-image: radial-gradient(70% 70% at 50% 50%, transparent 40%, #000 100%); }
.eg-pic canvas { position: absolute; left: 0; top: 50%; width: 100%; height: auto; display: block; transform: translateY(-50%); opacity: 0; transition: opacity .5s ease; }
.eg-pic.on canvas { opacity: 1; }
.eg-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; }
.eg-kick { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-ink); }
.eg-title { margin: 0; font-family: var(--f-display); font-variation-settings: 'opsz' 72; font-weight: 700; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.eg-sub { margin: 0; color: var(--ink-2); font-size: 15px; text-wrap: pretty; }
.eg-brief { margin: 0; display: grid; gap: 6px; padding: 10px 12px; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-md); font-family: var(--f-mono); font-size: 12px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.eg-brief b { font-weight: 500; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.eg-meta { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; }
.eg-meta div { display: grid; gap: 2px; }
.eg-meta dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.eg-meta dd { margin: 0; font-family: var(--f-mono); font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
/* without WebGL the cards keep their text and figures */
.eg-off .eg-pic { display: none; }
/* one card per row, picture beside the text, until the screen is too narrow for that */
@media (max-width: 980px) {
  .egs { grid-template-columns: minmax(0, 1fr); }
  .eg { flex-direction: row; }
  .eg-pic { flex: 0 0 42%; aspect-ratio: auto; min-height: 240px; border-bottom: 0; border-right: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .eg { flex-direction: column; }
  .eg-pic { flex: 0 0 auto; aspect-ratio: 4 / 3; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .eg-body { padding: 16px 16px 18px; }
}

/* scroll-in: a small rise from a visible resting state */
.reveal { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.pre { transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal.pre { transform: none; }
}
