/* Resoudre Tech v5 · "Dukaan OS"
   Layout: the whole site is one desktop of terminal windows in Ramu Kaka ki Dukaan.
   Hero = the crew's windows opening and a task flowing through them; then chapters on
   colour fields (amber marquee, teal workflow), each content block a window with mac dots.
   Dark only, by choice (CLAUDE.md §5 palette). */
:root {
  --bg: #0B0E14;        /* page ground */
  --panel: #12161F;     /* window body */
  --panel-2: #181D28;   /* raised rows, inputs */
  --line: #232A36;      /* borders, hairlines */
  --fg: #EDEDED;        /* text */
  --gray: #7D8590;      /* secondary text */
  --dim: #464C58;       /* tertiary, dots */
  --teal: #2EC4B6;      /* success, workflow field, primary CTA */
  --amber: #F5A623;     /* the dukaan bulb, marquee, beta */
  --violet: #9580FF;    /* research / learning */
  --rose: #E46FA4;      /* Robin */
  --ice: #9CD8FF;       /* Gojo */
  --leaf: #8FD694;      /* Ramu Kaka */
  --on-accent: #0B0E14; /* text on teal / amber fields */
  --coral: #FF7A59;     /* RaisingHs, warm accents */
  --ember: #FF5A1F;     /* Dhanbad coal glow */
  --lime: #B7E34C;      /* Ramu Kaka */
  --live: #FF4E45;      /* on-air red */

  /* crew signature colours: window, team panel, pipeline step */
  --k-shikamaru: #2EC4B6;
  --k-sanji: #9580FF;
  --k-robin: #FF5C8A;
  --k-usopp: #F5A623;
  --k-gojo: #7FD3FF;
  --k-ramu: #B7E34C;
  --k-harsh: #F2EBDD;

  /* section surface tokens (each .s-* chapter redefines these) */
  --sb: var(--bg); --sf: var(--fg); --sm: var(--gray); --sl: var(--line); --sa: var(--teal);

  --f-display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-deva: "Yatra One", "Noto Sans Devanagari", "Kohinoor Devanagari", serif;

  --t-xs: .75rem; --t-sm: .875rem; --t-md: 1.0625rem;
  --t-lg: clamp(1.1rem, 1rem + .45vw, 1.35rem);
  --t-xl: clamp(2.6rem, 1.4rem + 5vw, 6rem);
  --t-hero: clamp(3.3rem, .6rem + 11vw, 7.4rem);

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1360px;
  --r: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 var(--t-md)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal); color: var(--on-accent); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--teal); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 12px; }
.mono { font-family: var(--f-mono); }
.deva { font-family: var(--f-deva); font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display, h1, h2 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.005em; line-height: .86; margin: 0; text-wrap: balance;
}
h2 { font-size: var(--t-xl); }
h3 { font: 600 clamp(1.15rem, 1rem + .5vw, 1.4rem)/1.2 var(--f-body); margin: 0; letter-spacing: -.01em; }
.kicker {
  font: 500 var(--t-xs)/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray); margin: 0; display: flex; flex-wrap: wrap; gap: .4em 1em; align-items: center;
}
.kicker b { color: var(--teal); font-weight: 500; }
.lead { font-size: var(--t-lg); line-height: 1.5; color: var(--fg); max-width: 40ch; margin: 0; text-wrap: pretty; }
.lead span, .muted { color: var(--gray); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: .85em 1.25em;
  font: 600 var(--t-sm)/1 var(--f-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--teal); color: var(--on-accent); border: 0; border-radius: 8px;
  box-shadow: 0 0 0 1px var(--teal), 4px 4px 0 0 var(--fg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 0 0 0 1px var(--teal), 6px 6px 0 0 var(--fg); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 1px var(--teal), 1px 1px 0 0 var(--fg); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.btn.amber { background: var(--amber); box-shadow: 0 0 0 1px var(--amber), 4px 4px 0 0 var(--fg); }
.btn.dark { background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--bg), 4px 4px 0 0 var(--on-accent); }
.btn kbd { font: 700 .82em/1 var(--f-mono); letter-spacing: .06em; padding: .32em .45em; border-radius: 4px; background: rgba(11, 14, 20, .14); }
.btn.ghost kbd { background: var(--panel-2); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- the window: the one recurring device ---------- */
.win {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7); overflow: hidden; min-width: 0;
}
.bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 34px;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
  font: 500 .72rem/1 var(--f-mono); color: var(--gray); letter-spacing: .02em;
}
.bar .dots { display: flex; gap: 6px; flex: none; }
.bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.bar .dots i:nth-child(2) { background: #FEBC2E; }
.bar .dots i:nth-child(3) { background: #28C840; }
.bar .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bar .m { margin-left: auto; color: var(--dim); white-space: nowrap; }
.ok { color: var(--teal); }
.warn { color: var(--amber); }

/* dot field: our halftone, drawn in CSS */
.dots-field {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--dim) 1px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask: radial-gradient(60% 55% at 70% 40%, #000 0, transparent 75%);
  mask: radial-gradient(60% 55% at 70% 40%, #000 0, transparent 75%);
  opacity: .55;
}

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(11, 14, 20, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: block; margin-right: auto; line-height: 0; }
.brand img { height: 30px; width: auto; }
.nav { display: none; gap: 4px; font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--gray); padding: 9px 10px; border-radius: 6px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--fg); background: var(--panel-2); }
.top .btn { min-height: 40px; padding: .6em .9em; box-shadow: 0 0 0 1px var(--teal), 3px 3px 0 0 var(--fg); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.hero h1 { font-size: var(--t-hero); }
.hero h1 .l { display: block; white-space: nowrap; }
.hero .copy2 { gap: 18px; order: 2; }
.hero .stage { order: 1; }
.hero h1 .l3 { color: var(--teal); }
.hero h1 .l3 .tick { display: inline-block; width: .55em; height: .55em; margin-left: .08em; vertical-align: .08em; }
.hero .copy { display: grid; gap: 22px; align-content: start; min-width: 0; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .fine { font: 400 var(--t-xs)/1.5 var(--f-mono); color: var(--gray); margin: 0; letter-spacing: .02em; }
.hero .fine b { color: var(--fg); font-weight: 500; }

/* the stage: crew windows + the task that flows through them */
.stage {
  position: relative; container-type: inline-size; width: 100%; max-width: 100%;
  aspect-ratio: 10 / 9; border-radius: 16px; border: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(245, 166, 35, .13), transparent 70%),
    radial-gradient(60% 50% at 80% 100%, rgba(46, 196, 182, .10), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.stage::before { /* desktop dot grid */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, #1E2430 1px, transparent 1.3px); background-size: 3.2cqi 3.2cqi;
}
.stage .os { /* menu bar of Dukaan OS */
  position: absolute; left: 0; right: 0; top: 0; height: 6.4cqi; display: flex; align-items: center; gap: 3cqi; padding-inline: 2.6cqi;
  font: 500 2.3cqi/1 var(--f-mono); color: var(--gray); background: rgba(18, 22, 31, .85); border-bottom: 1px solid var(--line); z-index: 3;
}
.stage .os b { color: var(--fg); font-weight: 700; }
.stage .os .deva { font-size: 2.8cqi; color: var(--amber); }
.stage .os .clock { margin-left: auto; color: var(--fg); font-variant-numeric: tabular-nums; }
.stage svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.stage svg.wires path { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .55; }
.cw { /* crew window */
  position: absolute; z-index: 2; width: 30.5cqi; border-radius: 1.6cqi; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 2cqi 4cqi -2cqi rgba(0, 0, 0, .8);
  transition: border-color .3s, box-shadow .3s; --c: var(--teal);
}
.cw .cb { display: flex; align-items: center; gap: 1cqi; padding: .9cqi 1.4cqi; background: var(--panel-2); border-bottom: 1px solid var(--line); font: 500 1.75cqi/1.1 var(--f-mono); color: var(--gray); }
.cw .cb i { width: 1.15cqi; height: 1.15cqi; border-radius: 50%; background: var(--dim); flex: none; }
.cw .cb i:first-child { background: var(--c); }
.cw .cb span { margin-left: .6cqi; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cw .cbody { display: flex; gap: 1.6cqi; padding: 1.4cqi; align-items: center; }
.cw img { width: 8.6cqi; height: 8.6cqi; border-radius: 1cqi; flex: none; object-fit: cover; background: var(--panel-2); }
.cw .who { min-width: 0; display: grid; gap: .5cqi; }
.cw .nm { font: 800 3.3cqi/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; color: var(--fg); white-space: nowrap; }
.cw .st { font: 500 1.75cqi/1.2 var(--f-mono); color: var(--teal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw .st.busy { color: var(--amber); }
.cw .st.idle { color: var(--dim); }
.cw.hot { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 6cqi -1cqi var(--c); }
.cw[data-k="shikamaru"] { --c: var(--k-shikamaru); left: 3cqi; top: 10cqi; }
.cw[data-k="sanji"] { --c: var(--k-sanji); left: 34.75cqi; top: 13cqi; }
.cw[data-k="robin"] { --c: var(--k-robin); left: 66.5cqi; top: 10cqi; }
.cw[data-k="usopp"] { --c: var(--k-usopp); left: 66.5cqi; top: 35cqi; }
.cw[data-k="gojo"] { --c: var(--k-gojo); left: 34.75cqi; top: 38cqi; }
.cw[data-k="ramu"] { --c: var(--k-ramu); left: 3cqi; top: 35cqi; }
.cw[data-k="harsh"] { --c: var(--k-harsh); left: 34.75cqi; top: 64cqi; }
.cw.ask { --c: var(--amber); left: 3cqi; top: 64cqi; width: 28cqi; }
.cw.ask .q { padding: 1.6cqi; font: 500 2.1cqi/1.4 var(--f-mono); color: var(--fg); }
.cw.ask .q b { color: var(--amber); font-weight: 500; }
.stage .boot { position: absolute; z-index: 2; right: 3cqi; top: 64cqi; width: 28cqi; }
.stage .boot .q { padding: 1.4cqi 1.6cqi; font: 500 1.75cqi/1.5 var(--f-mono); color: var(--gray); }
.stage .boot .meter { height: 1.6cqi; margin-top: .8cqi; border: 1px solid var(--line); border-radius: .5cqi; overflow: hidden; }
.stage .boot .meter i { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(90deg, var(--teal) 0 1.2cqi, transparent 1.2cqi 1.5cqi); transform-origin: 0 50%; }
.stage .chai { margin-top: 1cqi; display: flex; align-items: center; gap: 1cqi; color: var(--fg); }
.stage .chai svg { width: 4cqi; height: 4cqi; overflow: visible; }
.stage .chai .steam path { fill: none; stroke: var(--gray); stroke-width: 1.4; stroke-linecap: round; }
.task { /* the ticket that flows through the crew */
  position: absolute; z-index: 4; left: 0; top: 0; padding: 1cqi 1.6cqi; border-radius: 1cqi;
  font: 700 1.9cqi/1.2 var(--f-mono); color: var(--on-accent); background: var(--amber); white-space: nowrap;
  box-shadow: 0 1cqi 3cqi -1cqi rgba(245, 166, 35, .7); opacity: 0; pointer-events: none;
}
.stamp {
  position: absolute; z-index: 5; right: 4cqi; bottom: 4.5cqi; transform: rotate(-9deg);
  border: .7cqi solid var(--teal); color: var(--teal); border-radius: 1.6cqi; padding: 1cqi 2.2cqi 1.2cqi;
  font: 900 6.4cqi/0.9 var(--f-display); text-transform: uppercase; letter-spacing: .02em; text-align: center;
  background: rgba(11, 14, 20, .78); box-shadow: 0 0 0 .4cqi rgba(11, 14, 20, .78);
}
.stamp small { display: block; font: 400 2.6cqi/1.2 var(--f-deva); text-transform: none; letter-spacing: 0; margin-top: .4cqi; }
.stage .caption { position: absolute; left: 3cqi; bottom: 2.2cqi; z-index: 3; font: 500 1.8cqi/1 var(--f-mono); color: var(--dim); }

/* ---------- marquee band ---------- */
.band-wrap { overflow: hidden; padding-block: 14px; }
.band { background: var(--amber); color: var(--on-accent); overflow: hidden; border-block: 1px solid #000; transform: rotate(-1.2deg); margin-block: 8px; width: 104%; margin-left: -2%; }
.band .row { display: flex; width: max-content; white-space: nowrap; font: 900 clamp(2rem, 1.4rem + 3vw, 4.2rem)/1 var(--f-display); text-transform: uppercase; padding-block: .22em; }
.band .row span { padding-right: .5em; }
.band .row span i { font-style: normal; display: inline-block; margin-left: .5em; }
.band .row.b { background: var(--bg); color: var(--amber); font-size: clamp(1rem, .8rem + 1vw, 1.5rem); font-family: var(--f-mono); font-weight: 500; text-transform: none; padding-block: .6em; }

/* ---------- section scaffolding ---------- */
.sec { padding-block: clamp(72px, 10vw, 150px); position: relative; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 64px); max-width: 980px; }
.sec-head h2 em { font-style: normal; color: var(--teal); }

/* ---------- CREW gallery ---------- */
.crew { overflow: clip; }
.crew .track { display: flex; gap: clamp(14px, 2vw, 28px); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 12px; }
.crew .card { flex: 0 0 min(86vw, 560px); scroll-snap-align: start; --c: var(--teal); }
.crew .card .bar .m { color: var(--c); }
.crew .card figure { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.crew .card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.crew .card:hover figure img { transform: scale(1.04); }
.crew .card .tag { position: absolute; left: 12px; top: 12px; font: 700 var(--t-xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: .55em .7em; border-radius: 4px; background: var(--c); color: var(--on-accent); }
.crew .card .txt { padding: 18px 20px 22px; display: grid; gap: 8px; }
.crew .card .nm { font: 900 clamp(2.2rem, 1.6rem + 2vw, 3.4rem)/.9 var(--f-display); text-transform: uppercase; }
.crew .card .nm small { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: .08em; color: var(--c); margin-left: .6em; vertical-align: .9em; }
.crew .card p { margin: 0; color: var(--gray); max-width: 46ch; }
.crew .card p b { color: var(--fg); font-weight: 600; }
.crew .note { margin-top: 22px; }
.c-teal { --c: var(--teal); } .c-violet { --c: var(--violet); } .c-rose { --c: var(--rose); } .c-amber { --c: var(--amber); }
.c-ice { --c: var(--ice); } .c-leaf { --c: var(--leaf); } .c-fg { --c: var(--fg); }

/* ---------- WORKFLOW (teal field) ---------- */
.flow { background: var(--teal); color: var(--on-accent); overflow: clip; }
.flow .dots-field { background-image: radial-gradient(circle at 1px 1px, rgba(11, 14, 20, .35) 1.1px, transparent 1.5px); opacity: 1; }
.flow .kicker { color: rgba(11, 14, 20, .7); }
.flow .kicker b { color: var(--on-accent); }
.flow .sec-head h2 em { color: var(--bg); -webkit-text-stroke: 0; }
.flow .lead { color: var(--on-accent); }
.flow .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; position: relative; z-index: 1; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step { background: rgba(11, 14, 20, .06); border: 1.5px solid rgba(11, 14, 20, .55); border-radius: var(--r); padding: 18px 18px 18px; display: grid; gap: 6px; transition: background .35s, color .35s, transform .35s var(--ease); }
.step .n { font: 700 var(--t-xs)/1 var(--f-mono); letter-spacing: .08em; }
.step h3 { font: 900 clamp(1.8rem, 1.3rem + 2.2vw, 3.2rem)/.9 var(--f-display); text-transform: uppercase; }
.step p { margin: 0; max-width: 46ch; }
.step .log { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--bg); color: var(--fg); font: 500 .78rem/1.55 var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.step.on { background: var(--bg); color: var(--fg); transform: translateX(6px); }
.step.on .n { color: var(--teal); }
.term { display: none; }
.term .body { padding: 18px 18px 22px; font: 500 .9rem/1.65 var(--f-mono); min-height: 420px; max-height: 60vh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.term .ln { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg); }
.term .ln .who { color: var(--gray); }
.term .cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--teal); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
.term .prog { display: flex; gap: 4px; padding: 0 18px 18px; }
.term .prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.term .prog i.on { background: var(--teal); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- CONTROL ROOM ---------- */
.room .win { position: relative; }
.room .hint { margin-top: 18px; }
.org { padding: 18px; }
.org svg { width: 100%; height: auto; display: block; }
.org svg text { font: 500 11px var(--f-mono); fill: var(--fg); }
.org svg .sub { fill: var(--gray); font-size: 9px; }
.org svg line { stroke: var(--line); stroke-width: 1.5; }
.org svg line.live { stroke: var(--teal); stroke-dasharray: 3 4; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.kanban .col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.kanban .col > b { font: 500 .68rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray); padding: 4px 2px; }
.kcard { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; display: grid; gap: 7px; font-size: .8rem; line-height: 1.35; min-width: 0; }
.kcard .f { display: flex; align-items: center; gap: 6px; font: 500 .66rem/1 var(--f-mono); color: var(--gray); }
.kcard .f img { width: 18px; height: 18px; border-radius: 50%; }
.kcard .f .g { margin-left: auto; color: var(--amber); }
.kcard .f .g.ok { color: var(--teal); }
.menu { padding: 16px; display: grid; gap: 10px; }
.menu .q { font: 800 1.5rem/1 var(--f-display); text-transform: uppercase; }
.menu .opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font: 500 .8rem/1.3 var(--f-mono); }
.menu .opt .k { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line); }
.menu .opt .bar2 { grid-column: 2 / 3; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.menu .opt .bar2 i { display: block; height: 100%; background: var(--violet); }
.menu .opt .p { color: var(--gray); font-variant-numeric: tabular-nums; }
.approvals { padding: 8px 0; }
.ap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.ap:last-child { border-bottom: 0; }
.ap img { width: 30px; height: 30px; border-radius: 50%; }
.ap .w { min-width: 0; }
.ap .w b { display: block; font-weight: 600; }
.ap .w span { font: 500 .68rem/1.4 var(--f-mono); color: var(--gray); }
.ap .acts { display: flex; gap: 6px; }
.ap button { border: 1px solid var(--line); background: var(--panel-2); border-radius: 6px; padding: 7px 10px; font: 600 .72rem/1 var(--f-mono); cursor: pointer; min-height: 32px; }
.ap button.y { background: var(--teal); color: var(--on-accent); border-color: var(--teal); }
.ap .done { font: 600 .72rem/1 var(--f-mono); color: var(--teal); }
.shots-note { font: 500 var(--t-xs)/1.5 var(--f-mono); color: var(--gray); }

/* ---------- OFFERS (ls -la) ---------- */
.ls .head-row, .ls a.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); text-decoration: none; }
.ls .head-row { display: none; font: 500 .7rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.ls a.row { transition: background .2s; position: relative; }
.ls a.row:last-child { border-bottom: 0; }
.ls a.row:hover { background: var(--panel-2); }
.ls .perm { font: 500 .72rem/1.4 var(--f-mono); color: var(--dim); }
.ls .fn { font: 800 clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem)/1 var(--f-display); text-transform: uppercase; color: var(--fg); }
.ls .fn small { display: block; font: 500 .72rem/1.4 var(--f-mono); color: var(--teal); text-transform: none; letter-spacing: 0; margin-top: 6px; }
.ls .what { color: var(--gray); font-size: .95rem; line-height: 1.5; }
.ls .time, .ls .price { font: 500 .78rem/1.4 var(--f-mono); color: var(--fg); }
.ls .price { color: var(--amber); }
.ls .go { font: 700 .78rem/1 var(--f-mono); color: var(--teal); }
.offers-cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 28px; }

/* ---------- PROOF ---------- */
.proof .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.proof .win { display: flex; flex-direction: column; }
.proof .pic { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--panel-2); }
.proof .pic img { width: 100%; height: 100%; object-fit: cover; }
.proof .pic.lab { display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 50%, rgba(46, 196, 182, .16), transparent 70%), var(--panel-2); }
.proof .pic.lab .dots-field { -webkit-mask: radial-gradient(50% 60% at 50% 50%, #000, transparent 80%); mask: radial-gradient(50% 60% at 50% 50%, #000, transparent 80%); }
.proof .pic.lab pre { position: relative; z-index: 1; margin: 0; font: 500 clamp(.72rem, .6rem + .4vw, .9rem)/1.6 var(--f-mono); color: var(--fg); }
.proof .pic.lab pre .ok { color: var(--teal); }
.proof .pic.lab pre .warn { color: var(--amber); }
.proof .t { padding: 18px 20px 22px; display: grid; gap: 10px; flex: 1; align-content: start; }
.proof .t p { margin: 0; color: var(--gray); }
.proof .t p b { color: var(--fg); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: .55em; width: fit-content; font: 700 .7rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: .6em .75em; border-radius: 4px; border: 1px solid currentColor; }
.chip i { width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.chip.amber { color: var(--amber); } .chip.teal { color: var(--teal); } .chip.red { color: #FF6B6B; }
.textlink { color: var(--teal); font: 600 var(--t-sm)/1.4 var(--f-mono); text-decoration: none; border-bottom: 1px solid currentColor; width: fit-content; padding-bottom: 2px; }
.textlink:hover { color: var(--fg); }

/* ---------- FOUNDER ---------- */
.founder .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.founder .win { max-width: 520px; }
.founder .txt { display: grid; gap: 20px; }
.founder h2 { font-size: clamp(3rem, 1.6rem + 6vw, 7.4rem); }
.founder p { margin: 0; color: var(--gray); max-width: 50ch; }
.founder p b { color: var(--fg); font-weight: 600; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 560px; }
.facts li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts li span { font: 500 .72rem/1.9 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }

/* ---------- FAQ ---------- */
.faq .list { display: grid; gap: 10px; max-width: 980px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 18px 20px; font: 600 var(--t-lg)/1.3 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pr { font: 700 var(--t-sm)/1 var(--f-mono); color: var(--teal); flex: none; }
.faq summary .x { margin-left: auto; font: 500 1.2rem/1 var(--f-mono); color: var(--gray); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary .x { transform: rotate(45deg); color: var(--teal); }
.faq details > div { padding: 0 20px 20px 48px; color: var(--gray); max-width: 75ch; }
.faq details > div p { margin: 0 0 .6em; }

/* ---------- CONTACT ---------- */
.contact { overflow: hidden; }
.contact .big { font-size: clamp(4rem, 2rem + 12vw, 13rem); line-height: .82; }
.contact .big .deva { display: block; font-size: .5em; line-height: 1.3; color: var(--amber); text-transform: none; }
.contact .big .send { color: var(--teal); }
.contact .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: clamp(32px, 5vw, 64px); }
.contact .win .in { padding: 18px 20px 22px; display: grid; gap: 12px; }
.contact .num { font: 700 clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem)/1.2 var(--f-mono); color: var(--fg); user-select: all; overflow-wrap: anywhere; }
.contact .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-btn { border: 1px solid var(--line); background: var(--panel-2); border-radius: 6px; min-height: 40px; padding: 0 12px; font: 600 .78rem/1 var(--f-mono); cursor: pointer; }
.copy-btn:hover { border-color: var(--fg); }
.soc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.soc a, .soc span { display: inline-flex; align-items: center; gap: .5em; min-height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); font: 600 .78rem/1 var(--f-mono); text-decoration: none; }
.soc a:hover { border-color: var(--fg); }
.soc span { color: var(--dim); border-style: dashed; cursor: not-allowed; }
.soc svg { width: 1.1em; height: 1.1em; }

/* ---------- FOOTER ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 36px 40px; }
.foot .wrap { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.foot img { height: 40px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 var(--t-xs)/1.8 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; }
.foot nav a { color: var(--gray); text-decoration: none; }
.foot nav a:hover { color: var(--fg); }
.foot .legal { font: 400 var(--t-xs)/1.6 var(--f-mono); color: var(--dim); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; padding-block: 60px; }
.nf .win { max-width: 640px; width: 100%; }
.nf .in { padding: 22px; display: grid; gap: 16px; font-family: var(--f-mono); }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .proof .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof .grid > :first-child { grid-column: 1 / -1; }
  .contact .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls .head-row, .ls a.row { grid-template-columns: 6.5rem minmax(0, 1.25fr) minmax(0, 1.4fr); align-items: baseline; }
  .ls .head-row { display: grid; }
  .ls .time, .ls .price, .ls .go { grid-column: 3; }
}
@media (min-width: 1000px) {
  .nav { display: flex; }
  .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "a s" "b s"; column-gap: clamp(32px, 4vw, 64px); row-gap: 26px; align-items: center; }
  .hero .copy { grid-area: a; align-self: end; }
  .hero .copy2 { grid-area: b; align-self: start; }
  .hero .stage { grid-area: s; }
  :root { --t-hero: clamp(4.6rem, 1rem + 5.6vw, 7.6rem); }
  .crew .card { flex-basis: min(44vw, 640px); }
  .flow .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .term { display: block; position: sticky; top: 96px; }
  .js .step .log { display: none; }
  .step { min-height: 46vh; align-content: center; padding: 28px; }
  .proof .grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .proof .grid > :first-child { grid-column: auto; }
  .founder .grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .faq .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
  .faq .sec-head { position: sticky; top: 100px; }
  .contact .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .wrap { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .foot nav { justify-content: flex-end; }
  .foot .legal { grid-column: 1 / -1; }
  .ls .head-row, .ls a.row { grid-template-columns: 7rem minmax(0, 1.2fr) minmax(0, 1.6fr) 8rem 9rem 5.5rem; }
  .ls .time, .ls .price, .ls .go { grid-column: auto; }
  .ls .go { text-align: right; }
  /* control room becomes a draggable desktop */
}
@media (max-width: 599px) {
  .cw .cb { font-size: 2.5cqi; padding: 1.2cqi 1.6cqi; }
  .cw .cb i { width: 1.6cqi; height: 1.6cqi; }
  .cw .nm { font-size: 4cqi; }
  .stage .caption { display: none; }
  .cw .st { font-size: 2.6cqi; }
  .cw img { width: 9.4cqi; height: 9.4cqi; }
  .cw.ask .q { font-size: 2.7cqi; }
  .stage .boot .q { font-size: 2.5cqi; }
  .stage .os { font-size: 2.8cqi; height: 7.4cqi; }
  .stage .os span:nth-of-type(2), .stage .os span:nth-of-type(3) { display: none; }
  .task { font-size: 2.7cqi; }
  .stage { aspect-ratio: 10 / 9.4; }
}
@media (max-width: 420px) {
  .kanban { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kanban .col:last-child { display: none; }
}

/* ---------- motion ---------- */
/* Pre-states only apply while JS + GSAP run the intro (class set in <head>, removed by a 2.5 s failsafe). */
.anim .cw, .anim .stage .boot { opacity: 0; }
.anim .stamp { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim .cw, .anim .stage .boot, .anim .stamp { opacity: 1; }
}

/* =====================================================================
   v5 · chapters with their own grounds, crew colours, textures
   ===================================================================== */
.s-night, .s-paper, .s-coal, .s-neon, .s-amber { background-color: var(--sb); color: var(--sf); }
.s-paper { --sb: #EFE7D8; --sf: #1B1714; --sm: #62584D; --sl: #D2C4AC; --sa: #C13A22; --sp: #F8F2E7; color-scheme: light; }
.s-coal  { --sb: #100C0B; --sf: #F4EEE8; --sm: #A39890; --sl: #2E2522; --sa: #FF6A2B; --sp: #181210; }
.s-neon  { --sb: #0C0A1C; --sf: #EEEAFB; --sm: #9C95C2; --sl: #29244E; --sa: #A898FF; --sp: #13102A; }
.s-amber { --sb: #F5A623; --sf: #0B0E14; --sm: #4B3610; --sl: rgba(11, 14, 20, .28); --sa: #0B0E14; color-scheme: light; }
.s-night { --sp: var(--panel); }
.kicker { color: var(--sm); }
.kicker b { color: var(--sa); }
.lead { color: var(--sf); }
.lead span, .muted { color: var(--sm); }
.sec-head h2 em { color: var(--sa); }
.s-amber .sec-head h2 em { color: transparent; -webkit-text-stroke: 2px var(--sf); }

/* textures: film grain + halftone + blueprint + ember */
.grain, .halftone { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.s-paper.grain::after { mix-blend-mode: multiply; opacity: .2; }
.halftone::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(149, 128, 255, .55) 1.3px, transparent 1.8px); background-size: 11px 11px;
  -webkit-mask: radial-gradient(40% 50% at 95% 10%, #000, transparent 70%), radial-gradient(35% 45% at 0% 95%, #000, transparent 70%);
  mask: radial-gradient(40% 50% at 95% 10%, #000, transparent 70%), radial-gradient(35% 45% at 0% 95%, #000, transparent 70%);
}
.grain > *, .halftone > * { position: relative; z-index: 1; }
.blueprint {
  background-image: linear-gradient(rgba(46, 196, 182, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 196, 182, .055) 1px, transparent 1px);
  background-size: 40px 40px;
}
.ember { position: absolute !important; z-index: 0 !important; left: 0; right: 0; bottom: 0; height: 70%; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 110%, rgba(255, 90, 31, .42), rgba(255, 90, 31, .1) 45%, transparent 70%);
  animation: smoulder 6s ease-in-out infinite alternate; }
@keyframes smoulder { from { opacity: .75; } to { opacity: 1; } }

/* buttons on light grounds */
.btn.ink { background: #1B1714; color: #EFE7D8; box-shadow: 0 0 0 1px #1B1714, 4px 4px 0 0 var(--coral); }
.btn.ink:hover { box-shadow: 0 0 0 1px #1B1714, 6px 6px 0 0 var(--coral); }
.btn.ink kbd { background: rgba(239, 231, 216, .14); }
.textlink.ink { color: #1B1714; }

/* ---------- STORY (paper) ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.story-copy { display: grid; gap: 20px; min-width: 0; }
.story h2 { font-size: clamp(2.8rem, 1.3rem + 6vw, 6.6rem); }
.dayx { display: inline-block; background: var(--sf); color: var(--sb); padding: .02em .14em .06em; transform: rotate(-2deg); margin-top: .08em; box-shadow: .08em .08em 0 var(--coral); }
.note-hand { margin: 0; font: italic 500 var(--t-sm)/1.4 var(--f-mono); color: var(--sa); }
.note-hand::before { content: "↳ "; }
.prose { display: grid; gap: 14px; max-width: 60ch; font-size: var(--t-lg); line-height: 1.55; }
.prose p { margin: 0; }
.prose b { font-weight: 600; }
.story-cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 6px; }
.polaroid { margin: 0 auto; background: #FFFDF8; padding: 12px 12px 16px; border-radius: 4px; transform: rotate(2.4deg); max-width: 380px; width: 100%;
  box-shadow: 0 1px 0 #D2C4AC, 0 30px 50px -24px rgba(60, 40, 20, .45); }
.polaroid img { aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; }
.polaroid figcaption { font: 600 .82rem/1.4 var(--f-mono); color: #1B1714; padding-top: 12px; }
.polaroid figcaption span { font-weight: 400; color: #62584D; font-size: .74rem; }
.sub-h { font: 900 clamp(1.8rem, 1.3rem + 2vw, 3rem)/.95 var(--f-display); text-transform: uppercase; margin: clamp(48px, 7vw, 88px) 0 22px; }
.tickets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ticket { position: relative; background: var(--sp); border: 1.5px solid var(--sf); border-radius: 10px; padding: 22px 18px 18px; display: grid; gap: 6px; overflow: hidden; }
.ticket::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--c); }
.ticket .tno { font: 500 .72rem/1 var(--f-mono); color: var(--sm); }
.ticket b { font: 900 1.9rem/.95 var(--f-display); text-transform: uppercase; }
.ticket p { margin: 0; color: var(--sf); }
.ticket .tst { justify-self: start; margin-top: 6px; font: 700 .68rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: .55em .7em; border-radius: 4px; background: var(--sf); color: var(--sb); }
.ticket .tst.ok::before { content: "[ok] "; color: var(--c); }
.timeline { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--sf); }
.timeline li { display: grid; gap: 2px; padding: 0 0 18px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .35em; width: 12px; height: 12px; border-radius: 50%; background: var(--sb); border: 2px solid var(--sf); }
.timeline b { font: 700 .82rem/1.3 var(--f-mono); }
.timeline span { color: var(--sm); }
.timeline .goal b { color: var(--sa); }
.timeline .goal::before { background: var(--coral); border-color: var(--coral); }

/* ---------- COMPANIES (coal + ember) ---------- */
.cos { overflow: hidden; }
.backbone { position: relative; margin: 0 0 18px; }
.backbone svg { width: 100%; height: 70px; display: block; overflow: visible; }
.backbone path { fill: none; stroke: var(--sl); stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.backbone .pk { filter: drop-shadow(0 0 6px currentColor); }
.bb-label { position: absolute; left: 50%; top: 0; transform: translate(-50%, -30%); font: 700 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sb); background: var(--sa); padding: .5em .7em; border-radius: 4px; white-space: nowrap; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.co { background: var(--sp); border: 1px solid var(--sl); border-top: 4px solid var(--c); border-radius: 12px; padding: 22px 20px; display: grid; gap: 10px; align-content: start; transition: box-shadow .35s var(--ease), transform .35s var(--ease); min-width: 0; }
.co:hover { box-shadow: 0 0 48px -14px var(--c); transform: translateY(-3px); }
.co .co-k { margin: 0; font: 500 .7rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.co h3 { font: 900 clamp(2rem, 1.6rem + 1.4vw, 2.8rem)/.9 var(--f-display); text-transform: uppercase; }
.co p:not(.co-k) { margin: 0; color: var(--sm); }
.co .chip { margin-top: 6px; }
.chip-link { text-decoration: none; }
.chip-link:hover { background: rgba(255, 255, 255, .06); }
.co-tbd { border-style: dashed; border-top-style: dashed; border-top-color: var(--sl); background: transparent; }
.co-tbd h3 { color: var(--sm); }
.co-tbd .co-k { color: var(--sm); }

/* ---------- CREW (neon night, tabs) ---------- */
.crew-ui { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.roster { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rm { flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 12px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--sl); color: var(--sf); transition: background .25s, border-color .25s, box-shadow .25s; }
.rm img { width: 46px; height: 46px; border-radius: 10px; box-shadow: 0 0 0 2px var(--c); flex: none; }
.rm b { display: block; font: 900 1.35rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.rm small { display: block; font: 500 .66rem/1.3 var(--f-mono); color: var(--sm); margin-top: 3px; white-space: nowrap; }
.rm:hover { border-color: var(--c); }
.rm[aria-selected="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: 0 0 34px -10px var(--c); }
.rm[aria-selected="true"] b { color: var(--c); }
.cpanels { display: grid; gap: 16px; min-width: 0; }
.js .cpanel.off { display: none; }
.cpanel { border: 1px solid var(--c); border-radius: 16px; overflow: hidden; background: var(--sp); box-shadow: 0 0 60px -30px var(--c); min-width: 0; }
.cp-art { margin: 0; position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
.cp-art img { width: 100%; height: 100%; object-fit: cover; }
.cp-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--sp)), linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 50%); mix-blend-mode: normal; }
.cp-body { padding: 0 20px 24px; margin-top: -28px; position: relative; display: grid; gap: 10px; }
.cp-body header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.cp-body h3 { font: 900 clamp(2.6rem, 2rem + 2.4vw, 4rem)/.85 var(--f-display); text-transform: uppercase; color: var(--c); text-shadow: 0 0 24px color-mix(in srgb, var(--c) 45%, transparent); }
.eng { font: 700 .7rem/1.3 var(--f-mono); letter-spacing: .04em; padding: .5em .65em; border-radius: 4px; background: var(--c); color: #0B0E14; }
.cp-role { margin: 0; font-size: var(--t-lg); line-height: 1.5; max-width: 60ch; }
.cp-body h4 { margin: 10px 0 0; font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sm); }
.cp-body h4 small { font-size: .9em; letter-spacing: .04em; text-transform: none; color: var(--dim); margin-left: .5em; }
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.team li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .03); border: 1px solid var(--sl); color: var(--sm); font-size: .95rem; }
.team li b { color: var(--sf); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.team li b::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.tools { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tools span { font: 500 .74rem/1 var(--f-mono); padding: .6em .75em; border-radius: 6px; border: 1px solid var(--sl); color: var(--sf); }
.sample { margin: 0; padding: 14px 16px; border-radius: 8px; background: #07060F; border-left: 3px solid var(--c); color: #EDEDED; font: 500 .8rem/1.6 var(--f-mono); overflow-x: auto; white-space: pre; }

/* ---------- WORKFLOW: each step in its crew colour ---------- */
.step .n { justify-self: start; background: var(--c); color: #0B0E14; padding: .4em .55em; border-radius: 4px; border: 1.5px solid #0B0E14; }
.step.on { background: var(--bg); color: var(--fg); border-color: var(--c); box-shadow: 6px 6px 0 0 var(--c); transform: translateX(-4px); }
.step.on h3 { color: var(--c); }
.step.on .n { color: #0B0E14; }
.term .ln .who { font-weight: 700; }

/* ---------- AUTOMATION diagrams ---------- */
.dg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.dg { margin: 0; }
.dg .bar .m { color: var(--c); }
.dg svg { display: block; width: 100%; height: auto; padding: 14px 10px 0; overflow: visible; }
.dg .wire { fill: none; stroke: #2B3344; stroke-width: 2; stroke-dasharray: 4 5; }
.dg .n rect { fill: #161B26; stroke: var(--c, #2B3344); stroke-width: 1.5; }
.dg .n text { fill: #EDEDED; font: 500 11px var(--f-mono); text-anchor: middle; }
.dg .n.sm text { font-size: 10px; }
.dg .gate rect { stroke: var(--k-harsh); stroke-width: 2; fill: #1F1B13; }
.dg .hot rect { fill: color-mix(in srgb, var(--c) 20%, #161B26); }
.dg .lbl { fill: var(--gray); font: 500 10px var(--f-mono); text-anchor: middle; }
.dg .pk { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .35)); }
.dg .env rect { fill: var(--c); }
.dg .env path { fill: none; stroke: #0B0E14; stroke-width: 1.3; }
.dg .mb { fill: var(--k-sanji); } .dg .mb.b2 { fill: var(--k-robin); } .dg .mb.b3 { fill: var(--k-usopp); }
.dg .onair { fill: var(--live); }
.dg figcaption { padding: 12px 16px 18px; color: var(--gray); font-size: .92rem; line-height: 1.5; }
.hub { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 34px 0 0; font: 700 var(--t-sm)/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sf); }
.hub-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(46, 196, 182, .6); animation: hubpulse 2s ease-out infinite; }
@keyframes hubpulse { to { box-shadow: 0 0 0 16px rgba(46, 196, 182, 0); } }
.room { padding-top: clamp(40px, 6vw, 80px); }

/* ---------- OFFERS on amber ---------- */
.s-amber .offers-cta .shots-note { color: var(--sm); }
.s-amber .ls { box-shadow: 10px 10px 0 0 #0B0E14; border-color: #0B0E14; }
.ls a.row .fn small { color: var(--rc, var(--teal)); }

/* ---------- FAQ on paper ---------- */
.s-paper .faq details, .faq.s-paper details { background: var(--sp); border-color: var(--sl); }
.faq.s-paper summary { color: var(--sf); }
.faq.s-paper summary .pr, .faq.s-paper details[open] summary .x { color: var(--sa); }
.faq.s-paper summary .x { color: var(--sm); }
.faq.s-paper details > div { color: var(--sm); }

/* ---------- CONTACT on coal ---------- */
.contact.s-coal .big .send { color: var(--sa); }
.contact { position: relative; }

@media (min-width: 640px) {
  .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .dg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .story-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .polaroid { margin-top: 40px; }
  .tickets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); border-left: 0; border-top: 2px solid var(--sf); }
  .timeline li { padding: 20px 16px 0 0; }
  .timeline li::before { left: 0; top: -7px; }
  .co-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .co-tbd { grid-column: 1 / -1; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 18px; padding-block: 14px; }
  .co-tbd h3 { font-size: 1.6rem; }
  .crew-ui { grid-template-columns: 290px minmax(0, 1fr); align-items: start; }
  .roster { flex-direction: column; overflow: visible; padding: 0; position: sticky; top: 90px; }
  .rm { width: 100%; }
  .cp-body { padding: 0 28px 28px; }
  .cp-body .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ember, .hub-dot { animation: none; }
}
@media (max-width: 639px) { .sample { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .74rem; } }

/* =====================================================================
   v5.1 · positioning, tighter workflow, diagrams as hero, quieter headings
   ===================================================================== */
/* second heading voice: sentence case, sans, so the condensed caps don't shout everywhere */
h2.h-alt { font: 600 clamp(2.1rem, 1.3rem + 3.4vw, 4.4rem)/1 var(--f-body); text-transform: none; letter-spacing: -.035em; }
h2.h-alt em { font-style: normal; }
h2.h-sm { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.2rem); }
.sec { padding-block: clamp(60px, 8vw, 120px); }
.sec-head { margin-bottom: clamp(26px, 4vw, 48px); }
.cnt { font-weight: 700; color: var(--sf); font-variant-numeric: tabular-nums; }

/* companies map: builder → clients → identity */
.cmap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: stretch; }
.clients { display: grid; gap: 14px; }
.clink { display: grid; place-items: center; height: 64px; position: relative; }
.clink svg { position: absolute; left: 50%; top: 0; width: 64px; height: 64px; transform: translateX(-50%) rotate(90deg); overflow: visible; }
.clink path { fill: none; stroke: var(--sl); stroke-width: 2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; animation: march 1.2s linear infinite; }
.clink span { position: relative; z-index: 1; font: 700 .66rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sm); background: var(--sb); padding: .4em .6em; border-radius: 4px; border: 1px solid var(--sl); }
.co-builder { border-top-width: 4px; background: linear-gradient(160deg, color-mix(in srgb, var(--k-shikamaru) 14%, var(--sp)), var(--sp) 60%); }
.co-builder h3 { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); }
.co-id { background: linear-gradient(160deg, color-mix(in srgb, var(--k-robin) 14%, var(--sp)), var(--sp) 60%); }
.co-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@keyframes march { to { stroke-dashoffset: -18; } }

/* workflow, tighter */
.flow .steps { gap: 10px; }
.step { padding: 14px 16px; gap: 4px; }
.step h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.step p { font-size: .95rem; }
.step .log { font-size: .72rem; padding: 8px 10px; }
.flow.pinned .step { min-height: 0; padding: 10px 16px; transition: background .3s, box-shadow .3s, transform .3s var(--ease), padding .3s; }
.flow.pinned .step h3 { font-size: 1.45rem; }
.flow.pinned .step p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s; }
.flow.pinned .step.on { padding: 14px 18px; }
.flow.pinned .step.on p { max-height: 5em; opacity: 1; }
.flow.pinned .term .body { min-height: 0; height: 430px; }
.flow .rail { display: none; }

/* automation: diagrams lead */
.sec-row h2 { max-width: 14ch; }
.dg { transition: box-shadow .4s var(--ease), border-color .4s; }
.dg:hover { border-color: var(--c); box-shadow: 0 0 60px -24px var(--c); }
.dg .wire { animation: march 1.4s linear infinite; }
.dg .n rect { transition: fill .3s; }
.dtick { margin: 0; padding: 10px 16px 0; font: 500 .78rem/1.4 var(--f-mono); color: var(--fg); min-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtick::before { content: "$ "; color: var(--c); font-weight: 700; }
.dtick span { display: inline-block; }
.dg figcaption { padding-top: 8px; font-size: .88rem; }
.wa-note { margin: 0; color: var(--gray); font-size: .92rem; }

@media (max-width: 639px) {
  .tickets { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .ticket { scroll-snap-align: start; }
  .cp-art { aspect-ratio: 16 / 6; }
  .prose { font-size: 1.02rem; }
  .ls .what { font-size: .88rem; }
  .ls a.row { padding: 12px 14px; }
  .timeline li { padding-bottom: 12px; }
  .team li { padding: 8px 10px; }
}
@media (min-width: 1000px) {
  .cmap { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; }
  .clink { height: 240px; }
  .clink svg { width: 72px; height: 240px; transform: translateX(-50%); }
  .clink span { position: absolute; bottom: -6px; white-space: nowrap; }
  .sec-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 12px 48px; max-width: none; }
  .sec-row .kicker { grid-column: 1 / -1; }
  .sec-row .lead { justify-self: end; }
  .dg svg { padding: 18px 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .clink path, .dg .wire { animation: none; }
}
/* v5.1 · compact pinned steps: one line each, the active one opens */
.flow h2 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.8rem); }
.flow.pinned .step { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 7px 14px; border-left: 5px solid var(--c); }
.flow.pinned .step h3 { font-size: 1.25rem; }
.flow.pinned .step p { flex-basis: 100%; }
.flow.pinned .step.on { padding: 12px 16px; }
.flow.pinned .steps { gap: 7px; }
.flow.pinned .term .body { height: 380px; }
.contact .num { font-size: clamp(1rem, .85rem + .6vw, 1.3rem); }
@media (max-width: 999px) {
  .flow .step .log { margin-top: 4px; }
  .flow .step p { font-size: .9rem; }
}
@media (max-width: 639px) {
  .polaroid { max-width: 230px; }
  .flow .step p { display: none; }
  .ls .perm { display: none; }
  .ls .what { display: none; }
  .team li { font-size: .88rem; }
  .story h2 { font-size: clamp(2.4rem, 1rem + 7vw, 3.4rem); }
}

/* ---------- control room: real screenshots (v5.2) ---------- */
.shots { display: grid; gap: 14px; max-width: 1080px; margin-inline: auto; }
.shots .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.shots .tab {
  font: 500 .74rem/1 var(--f-mono); letter-spacing: .02em; color: var(--gray);
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 8px; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.shots .tab:hover { color: var(--fg); }
.shots .tab[aria-current="true"] { color: var(--teal); border-color: var(--teal); background: var(--panel-2); }
.shots .tab:focus-visible, .shots .track:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.shot-win .bar .t { transition: opacity .2s; }
.shots .track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; scroll-behavior: smooth;
}
.shots .track::-webkit-scrollbar { display: none; }
.shots .slide { flex: 0 0 100%; min-width: 0; margin: 0; display: flex; flex-direction: column; scroll-snap-align: start; scroll-snap-stop: always; }
.shots .frame { aspect-ratio: 1440 / 900; background: #0b0d12; overflow: hidden; }
.shots .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shots .slide.overlay-slide .frame {
  display: grid; place-items: center; padding: 6%;
  background: radial-gradient(120% 90% at 50% 0%, #1a2130 0%, #07090d 70%);
}
.shots .slide.overlay-slide .frame img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); }
.shots figcaption {
  flex: 1; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--panel-2);
  font: 500 .8rem/1.4 var(--f-mono); color: var(--gray);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shots figcaption b { color: var(--fg); font-weight: 600; }
.shots figcaption b::after { content: " ·"; color: var(--dim); }
@media (min-width: 640px) { .shots .tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 639px) { .shots figcaption { white-space: normal; font-size: .74rem; } }
@media (prefers-reduced-motion: reduce) { .shots .track { scroll-behavior: auto; } .shot-win .bar .t { transition: none; } }
.shots + .hint { max-width: 1080px; margin-inline: auto; }

/* ---------- products + first customers (v5.3) ---------- */
.pmap { display: grid; gap: 0; }
.pdrop { position: relative; height: 56px; display: grid; place-items: center; }
.pdrop::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed var(--sl); }
.pdrop span { position: relative; font: 700 .66rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sm); background: var(--sb); padding: .4em .6em; border-radius: 4px; border: 1px solid var(--sl); }
.prods .co { background: linear-gradient(170deg, color-mix(in srgb, var(--c) 10%, var(--sp)), var(--sp) 55%); }
.prods .co h3 { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); overflow-wrap: anywhere; }
.prods .co h3 .alt { display: block; margin-top: 6px; font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; color: var(--sm); text-transform: uppercase; }
.prods .p-what { font-size: .95rem; line-height: 1.5; }
.prods .p-for { font: 500 .78rem/1.4 var(--f-mono); color: var(--sm); }
.prods .p-for span, .prods .p-first span { display: block; font: 500 .62rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin-bottom: 5px; }
.prods .p-for { margin-top: 2px; }
.prods .p-first { border-top: 1px dashed var(--sl); padding-top: 10px; margin-top: auto; }
.prods .p-first b { display: block; font: 600 1.05rem/1.2 var(--f-body, inherit); color: var(--sf); }
.prods .p-first small { display: block; font-size: .8rem; color: var(--sm); margin-top: 2px; }
.prods .p-live { font: 500 .74rem/1.3 var(--f-mono); color: var(--sm); text-decoration: none; border-bottom: 1px dotted currentColor; width: fit-content; }
.prods .p-live:hover { color: var(--c); }
.prods .p-see { color: var(--c); }
.prods .co { display: flex; flex-direction: column; }
.prods .co.soon { border-top-style: dashed; }
.prods .co.soon .chip { border-style: dashed; }
@media (min-width: 1000px) { .co-builder, .co-id { max-width: 760px; width: 100%; justify-self: center; } }
.ls .fn .pt { display: block; font: 700 .62rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--rc, currentColor); margin-bottom: 4px; }

/* ---------- FREE: Crew for Claude card (offers) ---------- */
.free-crew { margin-top: 28px; display: grid; gap: 10px; }
.free-crew .fc-main { display: grid; gap: 6px; padding: 18px 20px; background: #0B0E14; color: #EDEDED; border: 1px solid #0B0E14; border-radius: 10px; box-shadow: 6px 6px 0 0 rgba(11, 14, 20, .35); text-decoration: none; transition: transform .2s; }
.free-crew .fc-main:hover { transform: translate(-2px, -2px); }
.free-crew .fc-tag { font: 700 .7rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.free-crew .fc-name { font: 800 clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem)/1 var(--f-display); text-transform: uppercase; }
.free-crew .fc-what { color: #B7BDC6; font-size: .95rem; line-height: 1.5; max-width: 70ch; }
.free-crew .fc-go { font: 700 .8rem/1.3 var(--f-mono); color: var(--teal); }
.free-crew .fc-more { color: var(--sm); font-size: .95rem; }
