/* Layout: full-bleed WebGL 3D city as hero (a live digital twin), mono marquee, scroll-lit statement,
   sticky scroll story with a live instrument panel, O-RAN explorer, spotlight bento, oversized contact and footer wordmark.
   Deliberately light, single theme: cool white, ink, one electric-blue accent, cyan only for the twin's scan light. */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #132042;
  --ink-2: #45506a;
  --muted: #6b7488;
  --faint: #a0a8b8;
  --line: #dde3ea;
  --line-2: #ccd4de;
  --accent: #2b59ff;
  --cyan: #00b3c7;
  --orange: #ff6a1a;
  --red: #e5484d;
  --green: #12a150;
  --sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: var(--sans);
  --mono: var(--sans);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(246,247,249,0.92); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 70; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
svg { display: block; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.label b { color: var(--ink); font-weight: 500; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 14px); left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.nav-in { pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,0.72); border: 1px solid rgba(11,13,18,0.07); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px); box-shadow: 0 6px 24px rgba(11,13,18,0.06); }
.mark { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; text-decoration: none; font-weight: 500; font-size: 0.92rem; letter-spacing: -0.01em; white-space: nowrap; }
.mark i { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font-style: normal; color: #fff; font-weight: 600; font-size: .9rem; }
.links-nav { position: relative; display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.links-nav li { position: relative; z-index: 1; }
.links-nav a { display: block; padding: 7px 14px; border-radius: 999px; text-decoration: none; font-size: 0.86rem; color: var(--ink-2); transition: color .35s; }
.links-nav a:hover { color: var(--ink); }
.links-nav a.on, .links-nav a.on:hover { color: #fff; }
.nav-cta { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-size: 0.86rem; font-weight: 500; box-shadow: 0 6px 24px rgba(11,13,18,0.14); white-space: nowrap; }
.nav-cta .dot { width: 7px; height: 7px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 3px rgba(57,217,138,0.25); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 820px; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 520px at 72% 48%, rgba(43,89,255,0.07), transparent 65%), radial-gradient(600px 400px at 85% 85%, rgba(0,179,199,0.06), transparent 70%), var(--bg); }
.guides { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.guides .wrap { height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
.guides .wrap span { border-left: 1px solid rgba(11,13,18,0.045); }
.guides .wrap span:last-child { border-right: 1px solid rgba(11,13,18,0.045); }
.viz { position: absolute; inset: 0; z-index: 1; }
.viz canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.viz .fallback { position: absolute; inset: 0; display: none; }
.no-webgl .viz .fallback { display: block; background: radial-gradient(500px 300px at 70% 50%, rgba(43,89,255,0.12), transparent 70%); }
.tag3d { position: absolute; z-index: 3; transform: translate(-50%, -100%); pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity .3s; }
.tag3d span { font-family: var(--mono); font-size: 0.66rem; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,0.86); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tag3d i { width: 1px; height: 22px; background: linear-gradient(var(--accent), transparent); }
.tag3d.jam span { color: #fff; background: var(--red); border-color: var(--red); }
.tag3d.mit span { color: #fff; background: var(--accent); border-color: var(--accent); }

.hero-copy { position: relative; z-index: 2; pointer-events: none; padding-block: 150px 60px; }
.hero-copy .wrap > * { pointer-events: none; }
.hero-copy .ctas { pointer-events: auto; width: fit-content; }
.kick { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.kick .bar { width: 28px; height: 1px; background: var(--ink); }
h1 { font-weight: 500; font-size: clamp(3.6rem, 10.2vw, 9.6rem); line-height: 0.86; letter-spacing: -0.065em; margin: 0 0 30px; max-width: 8ch; }
h1 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
h1 .ln > span { display: inline-block; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
h1 .ln:nth-child(2) > span { animation-delay: .12s; }
h1 em { font-style: normal; font-weight: 300; letter-spacing: -0.06em; color: var(--ink); }
@keyframes rise { from { transform: translateY(40%); opacity: 0.15; } }
.sub { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.5; color: var(--ink-2); max-width: 30ch; margin: 0 0 34px; letter-spacing: -0.01em; }
.sub strong { color: var(--ink); font-weight: 500; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; text-decoration: none; font-size: 0.92rem; font-weight: 500; border: 1px solid var(--line-2); background: rgba(255,255,255,0.7); color: var(--ink); cursor: pointer; transition: transform .25s, background .25s, border-color .25s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn:hover { border-color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: #1c2030; }


.hero-meta { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); background: rgba(246,247,249,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-meta .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm { padding: 18px 20px 18px 0; min-width: 0; }
.hm + .hm { padding-left: 20px; border-left: 1px solid var(--line); }
.hm .v { font-size: 0.95rem; letter-spacing: -0.01em; margin-top: 4px; }

.console { position: absolute; z-index: 3; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 104px; width: 330px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.78); border: 1px solid rgba(11,13,18,0.07); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 20px 60px rgba(20,30,60,0.10); }
.console-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.state { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.68rem; color: var(--green); }
.state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
.state.bad { color: var(--red); } .state.mit { color: var(--accent); }
@keyframes blink { 50% { opacity: .3; } }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: rgba(11,13,18,0.05); margin-bottom: 10px; }
.seg { position: relative; }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(11,13,18,.08), 0 4px 12px rgba(11,13,18,.08); transition: transform .55s cubic-bezier(.3,1.35,.5,1); }
.seg[data-v="1"] .thumb { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; padding: 7px 8px; border-radius: 8px; font-size: 0.8rem; color: var(--muted); cursor: pointer; transition: color .3s; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.kpi4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.kpi4 div { background: rgba(255,255,255,0.92); padding: 9px 11px; min-width: 0; }
.kpi4 .k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi4 .v { font-family: var(--mono); font-size: 1rem; font-variant-numeric: tabular-nums; transition: color .3s; }
.kpi4 .v.bad { color: var(--red); }
.jam { width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; border: 1px solid rgba(229,72,77,0.35); background: rgba(229,72,77,0.06); color: var(--red); font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: background .2s, opacity .2s; }
.jam:hover { background: rgba(229,72,77,0.12); }
.jam[disabled] { opacity: .4; cursor: not-allowed; }
.evlog { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.66rem; color: var(--muted); display: grid; gap: 3px; min-height: 4.6em; }
.evlog li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evlog li b { font-weight: 400; color: var(--faint); margin-right: 6px; }
.evlog .r { color: var(--red); } .evlog .a { color: var(--accent); } .evlog .g { color: var(--green); }
.sim { position: absolute; z-index: 3; right: max(24px, env(safe-area-inset-right, 0px)); top: 96px; }

/* ---------- Marquee ---------- */
.marquee { border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.track span { display: inline-flex; align-items: center; gap: 28px; padding: 18px 14px; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; }
.track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .5; margin-left: 14px; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .track { animation-play-state: paused; }

/* ---------- Sections ---------- */
section.s { padding-block: 140px; scroll-margin-top: 80px; position: relative; }
.s-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; margin-bottom: 64px; align-items: start; }
.s-head .label { padding-top: 14px; display: flex; gap: 10px; align-items: center; }
.s-head .label::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; }
h2 { font-weight: 500; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 0.98; letter-spacing: -0.05em; margin: 0; max-width: 16ch; text-wrap: balance; }
h2 em { font-style: normal; font-weight: 300; letter-spacing: -0.045em; color: var(--accent); }
.s-head p { margin: 22px 0 0; color: var(--ink-2); font-size: 1.08rem; max-width: 54ch; }

/* Statement */
.statement { padding-block: 150px 130px; border-bottom: 1px solid var(--line); background: var(--surface); }
.statement .wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 520px); gap: 40px; align-items: start; }
.lit { font-size: clamp(1.7rem, 3.6vw, 3.2rem); line-height: 1.16; letter-spacing: -0.035em; font-weight: 400; margin: 0; max-width: 24ch; }
.lit .w { color: var(--ink); transition: color .25s; }
.js .lit .w { color: #c3c8d1; }
.js .lit .w.on { color: var(--ink); }
.lit em { font-style: normal; font-weight: 500; color: var(--accent); }
.portrait { position: relative; margin: 0; width: 100%; max-width: 100%; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #eef1f6, #e6ecf7); border: 1px solid var(--line); }
.portrait::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(43,89,255,0.18) 1px, transparent 1.3px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); }
.portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait figcaption { position: absolute; z-index: 2; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 0.64rem; color: var(--muted); background: rgba(255,255,255,.85); padding: 3px 7px; border-radius: 5px; }
.statement-side { display: grid; gap: 18px; align-content: start; }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; }
.steps { display: grid; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; border-top: 1px solid var(--line); opacity: .38; transition: opacity .5s; }
.step:first-child { border-top: 0; }
.step.on { opacity: 1; }
.step .n { font-family: var(--mono); font-size: 0.74rem; color: var(--accent); margin-bottom: 16px; display: flex; gap: 12px; align-items: center; }
.step .n span { color: var(--muted); }
.step h3 { font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.4rem); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 16px; }
.step p { margin: 0 0 18px; color: var(--ink-2); font-size: 1.04rem; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--mono); font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.stage { position: sticky; top: 110px; height: min(600px, calc(100vh - 150px)); align-self: start; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(20,30,60,0.08); overflow: hidden; display: flex; flex-direction: column; }
.stage-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.stage-h .tabs { position: relative; display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(11,13,18,0.04); }
.stage-h .tabs .tthumb { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 7px; background: var(--ink); transition: left .5s cubic-bezier(.3,1.3,.5,1), width .5s cubic-bezier(.3,1.3,.5,1); }
.stage-h .tabs button { position: relative; z-index: 1; border: 0; background: transparent; padding: 5px 10px; border-radius: 7px; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); cursor: pointer; transition: color .3s; }
.stage-h .tabs button:hover { color: var(--ink); }
.stage-h .tabs button.on { color: #fff; }
.stage-prog { height: 2px; background: var(--line); }
.stage-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); transform-origin: 0 50%; transform: scaleX(0); }
.stage-c { position: relative; flex: 1; min-height: 0; }
.stage-c canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-c canvas.drag { cursor: grab; touch-action: none; }
.stage-f { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.stage-f b { color: var(--ink); font-weight: 500; }

/* Architecture */
.arch { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.arch-l { padding: 22px; border-right: 1px solid var(--line); min-width: 0; background-image: radial-gradient(rgba(11,13,18,0.07) 1px, transparent 1.2px); background-size: 18px 18px; }
.arch-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.svg-scroll { overflow-x: auto; }
#archSvg { width: 100%; min-width: 640px; height: auto; overflow: visible; }
#archSvg .node { cursor: pointer; outline: none; }
#archSvg .box { fill: #fff; stroke: var(--line-2); stroke-width: 1; transition: stroke .2s, fill .2s; }
#archSvg .node:hover .box, #archSvg .node:focus-visible .box { stroke: var(--ink); }
#archSvg .node.sel .box { stroke: var(--ink); stroke-width: 1.6; }
#archSvg .node.twin .box { stroke: var(--accent); stroke-dasharray: 4 4; fill: #f7f9ff; }
#archSvg .node.twin.sel .box { stroke-dasharray: none; stroke-width: 1.6; }
#archSvg .node.threat .box { stroke: var(--red); stroke-width: 1.6; fill: #fff7f7; stroke-dasharray: none; }
#archSvg text { font-family: var(--sans); font-size: 13px; font-weight: 500; fill: var(--ink); }
#archSvg text.sub { font-family: var(--mono); font-size: 9.5px; font-weight: 400; fill: var(--muted); letter-spacing: .02em; }
#archSvg .ig { color: var(--ink-2); }
#archSvg .node.twin .ig { color: var(--accent); }
#archSvg .node.threat .ig, #archSvg .node.threat text { color: var(--red); fill: var(--red); }
#archSvg .node.threat text.sub { fill: var(--red); opacity: .8; }
#archSvg .e { fill: none; stroke: #b9c1cd; stroke-width: 1.2; }
#archSvg .e.ctl { stroke-dasharray: 3 4; }
#archSvg .e.tw { stroke: var(--accent); stroke-dasharray: 4 5; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
#archSvg .lb { font-family: var(--mono); font-size: 9.5px; fill: var(--muted); }
#archSvg .lbb { fill: #fff; }
#archSvg .zone { fill: rgba(255,255,255,0.6); stroke: var(--line-2); stroke-dasharray: 2 4; }
#archSvg .zl { font-family: var(--mono); font-size: 10px; fill: var(--faint); }
.threats { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.tbtn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 0.8rem; cursor: pointer; color: var(--ink-2); transition: all .2s; }
.tbtn:hover { border-color: var(--red); color: var(--red); }
.tbtn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.tbtn .ico { width: 14px; height: 14px; }
.detail { padding: 30px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.detail .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.detail .k.red { color: var(--red); } .detail .k.blue { color: var(--accent); }
.detail h3 { margin: 0; font-weight: 500; font-size: 1.9rem; letter-spacing: -0.04em; line-height: 1.05; }
.detail p { margin: 0; color: var(--ink-2); }
.detail dl { margin: 6px 0 0; border-top: 1px solid var(--line); }
.detail dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail dt { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); padding-top: 3px; }
.detail dd { margin: 0; font-size: 0.92rem; }
.fade { animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; padding: 26px; border-radius: 20px; min-width: 0; border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, radial-gradient(360px circle at var(--x, -100px) var(--y, -100px), rgba(43,89,255,0.55), transparent 45%) border-box, linear-gradient(var(--line), var(--line)) border-box; }
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--x, -100px) var(--y, -100px), rgba(43,89,255,0.05), transparent 50%); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .span4 { grid-column: span 4; }
.tile h3 { margin: 0 0 18px; font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; }
.tile .label { display: block; margin-bottom: 14px; }
.edu-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.edu-row:first-of-type { border-top: 0; padding-top: 4px; }
.edu-row .lvl { font-size: 1.9rem; font-weight: 300; line-height: 1; letter-spacing: -0.05em; }
.edu-row h4 { margin: 0 0 2px; font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; }
.edu-row p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-bottom: 8px; }
.pill.now { color: var(--green); background: rgba(18,161,80,0.08); }
.pill.now i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
.pill.done { color: var(--muted); background: rgba(11,13,18,0.05); }
.stack-g { display: grid; gap: 14px; }
.stack-g div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.stack-g div:last-child { border-bottom: 0; padding-bottom: 0; }
.stack-g dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.stack-g dd { margin: 0; font-size: 0.98rem; letter-spacing: -0.01em; }
.big-num { font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 500; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-sub { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.empty-pub { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; }
.empty-pub p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.ghost-lines { display: grid; gap: 8px; margin-bottom: 22px; }
.ghost-lines i { display: block; height: 10px; border-radius: 4px; background: linear-gradient(90deg, #eef0f4, #f6f7f9, #eef0f4); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.ghost-lines i:nth-child(2) { width: 82%; } .ghost-lines i:nth-child(3) { width: 64%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.tb-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* Contact */
.contact { padding-block: 150px 60px; border-top: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.contact h2 { font-size: clamp(2.8rem, 7.4vw, 7rem); max-width: 12ch; margin-bottom: 56px; }
.c-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.email-box { min-width: 0; }
.email-big { font-size: clamp(1.4rem, 2.8vw, 2.4rem); letter-spacing: -0.03em; font-weight: 400; overflow-wrap: anywhere; margin: 8px 0 14px; }
.copy { font-family: var(--mono); font-size: 0.74rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s, background .3s; }
.row:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(43,89,255,0.04), transparent); }
.row .n { font-size: 1.3rem; letter-spacing: -0.03em; }
.row .h { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); overflow-wrap: anywhere; text-align: right; }
.row .ar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .3s; }
.row:hover .ar { background: var(--ink); border-color: var(--ink); color: #fff; transform: rotate(-45deg); }
.wordmark { margin-top: 110px; font-size: 19.5vw; font-weight: 500; letter-spacing: -0.075em; line-height: 0.78; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px #d4d9e0; user-select: none; text-align: center; height: 0.62em; overflow: hidden; }
footer { background: var(--surface); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 28px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
footer a { color: var(--ink-2); }


/* ===== Interaction layer ===== */
.mag { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(var(--s, 1)); transition: transform .6s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s, color .3s, box-shadow .3s; will-change: transform; }
.mag.live { transition: transform .15s linear, background .3s, border-color .3s, color .3s, box-shadow .3s; }
.mag:active { --s: .95; }
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn > .lab { display: inline-block; transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.btn.dark::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.btn.dark:hover::after { transform: translateX(120%); }
.btn:not(.dark)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit; transform: translateY(101%); transition: transform .5s cubic-bezier(.7,0,.2,1); }
.btn:not(.dark):hover { color: #fff; border-color: var(--ink); }
.btn:not(.dark):hover::before { transform: translateY(0); }
.sw { position: relative; display: inline-block; width: 18px; height: 18px; overflow: hidden; flex: none; }
.sw svg { position: absolute; inset: 0; transition: transform .55s cubic-bezier(.7,0,.2,1); }
.sw svg:last-child { transform: translateX(-150%); }
a:hover > .sw svg:first-child, button:hover > .sw svg:first-child, .row:hover .sw svg:first-child { transform: translateX(150%); }
a:hover > .sw svg:last-child, button:hover > .sw svg:last-child, .row:hover .sw svg:last-child { transform: translateX(0); }

.nav-ind, .nav-hov { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px; pointer-events: none; z-index: 0; transition: left .55s cubic-bezier(.3,1.25,.5,1), width .55s cubic-bezier(.3,1.25,.5,1), opacity .3s; }
.nav-ind { background: var(--ink); opacity: 0; }
.nav-hov { background: rgba(11,13,18,0.06); opacity: 0; }
.nav-in { position: relative; }
.nav-prog { position: absolute; left: 22px; right: 22px; bottom: -1px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--cyan)); transform-origin: 0 50%; transform: scaleX(0); opacity: .85; }
.nav-cta { transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.nav-cta:hover { box-shadow: 0 10px 30px rgba(11,13,18,0.22); }

/* cursor */
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 95; opacity: 0; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--ink); transition: opacity .25s, width .3s, height .3s, margin .3s; }
.cur-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 999px; border: 1px solid rgba(11,13,18,.28); display: grid; place-items: center; transition: width .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1), margin .45s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s, opacity .3s; }
.cur-ring span { font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.has-cur .cur-dot, .has-cur .cur-ring { opacity: 1; }
.has-cur.cur-out .cur-dot, .has-cur.cur-out .cur-ring { opacity: 0; }
.cur-ring.link { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: rgba(43,89,255,.55); background: rgba(43,89,255,.06); }
.cur-ring.lbl { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: var(--ink); border-color: var(--ink); }
.cur-ring.lbl span { opacity: 1; }
.cur-ring.lbl.red { background: var(--red); border-color: var(--red); }
.cur-ring.lbl.blue { background: var(--accent); border-color: var(--accent); }
.cur-dot.hide { width: 0; height: 0; margin: 0; }
.has-cur, .has-cur a, .has-cur button, .has-cur canvas, .has-cur .node, .has-cur [role="button"] { cursor: none !important; }

/* console extras */
.jam { position: relative; overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none; touch-action: none; }
.jam-fill { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(229,72,77,.18), rgba(229,72,77,.32)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.jam-l { display: inline-flex; align-items: center; gap: 8px; }
.jam-l small { font-family: var(--mono); font-size: .62rem; opacity: .7; letter-spacing: .04em; }
.jam.armed { background: rgba(229,72,77,0.12); }
.spark { display: block; width: 100%; height: 40px; margin: 0 0 10px; }
.phases { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; padding-top: 12px; }
.phases::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--line); }
.phases .ph-bar { position: absolute; left: 0; top: 0; height: 2px; width: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--red), var(--accent) 45%, var(--green)); transform-origin: 0 50%; transform: scaleX(var(--pp, 0)); transition: transform .3s linear; }
.phases span { font-family: var(--mono); font-size: .58rem; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 5px; transition: color .3s; }
.phases span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; }
.phases span.done { color: var(--ink-2); }
.phases span.now { color: var(--ink); }
.phases span.now::before { opacity: 1; box-shadow: 0 0 0 3px rgba(43,89,255,.18); background: var(--accent); }

/* steps rail */
.step { position: relative; }
.step::before { content: ""; position: absolute; left: -22px; top: 50%; height: 0; width: 2px; border-radius: 2px; background: var(--accent); transform: translateY(-50%); transition: height .6s cubic-bezier(.2,.8,.2,1); }
.step.on::before { height: 52%; }
.step h3 { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.step.on h3 { transform: translateX(4px); }

/* architecture */
#archSvg .node { transition: opacity .4s, transform .4s cubic-bezier(.2,.8,.2,1); transform-box: fill-box; transform-origin: center; }
#archSvg .node:hover { transform: translateY(-2px); }
#archSvg.focus .node:not(.sel):not(.rel):not(.threat) { opacity: .42; }
#archSvg .node.sel .box { filter: drop-shadow(0 8px 18px rgba(11,13,18,.12)); }
#archSvg .e { transition: stroke .3s, opacity .3s, stroke-width .3s; }
#archSvg.focus .e:not(.hot):not(.hotr) { opacity: .35; }
#archSvg .e.hot { stroke: var(--ink); stroke-width: 1.8; stroke-dasharray: 4 5; animation: dash .8s linear infinite; opacity: 1; }
#archSvg .e.hotr { stroke: var(--red); stroke-width: 1.8; stroke-dasharray: 4 5; animation: dash .6s linear infinite; opacity: 1; }
.detail dl div { animation: rowin .5s cubic-bezier(.2,.8,.2,1) both; }
.detail dl div:nth-child(2) { animation-delay: .06s; } .detail dl div:nth-child(3) { animation-delay: .12s; }
@keyframes rowin { from { opacity: 0; transform: translateY(8px); } }
.dnav { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dnav .cnt { font-family: var(--mono); font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dnav .cnt b { color: var(--ink); font-weight: 500; }
.dnav .btns { display: flex; gap: 6px; }
.icb { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icb:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icb.prev svg { transform: scaleX(-1); }
.tbtn { transition: background .3s, border-color .3s, color .3s, transform .6s cubic-bezier(.2,.8,.2,1); }

/* bento tilt */
.tile { transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .9s cubic-bezier(.2,.8,.2,1); }
.tile.tilting { transition: transform .12s linear; }

/* contact */
.row { position: relative; overflow: hidden; isolation: isolate; transition: padding .5s cubic-bezier(.2,.8,.2,1); }
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.7,0,.2,1); }
.row:hover { padding-left: 22px; padding-right: 14px; background: none; }
.row:hover::before { transform: scaleY(1); }
.row .n, .row .h { transition: color .35s; }
.row:hover .n { color: #fff; } .row:hover .h { color: rgba(255,255,255,.6); }
.row .ar { transition: background .35s, color .35s, border-color .35s; }
.row:hover .ar { background: #fff; color: var(--ink); border-color: #fff; transform: none; }
.copy { display: inline-flex; align-items: center; gap: 8px; transition: background .3s, color .3s, border-color .3s; }
.copy.ok { background: var(--green); color: #fff; border-color: var(--green); }
.copy svg { width: 14px; height: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); z-index: 96; transform: translate(-50%, calc(100% + 60px)); opacity: 0; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .86rem; box-shadow: 0 18px 50px rgba(11,13,18,.28); transition: transform .6s cubic-bezier(.3,1.3,.5,1), opacity .3s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast i { width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-style: normal; }
.toast i svg { width: 12px; height: 12px; }

/* ===== One-family type details ===== */
.label, .evlog, .stage-f, .tag3d, .phases, .chip, .detail dt, .stack-g dt, .kpi4 .k, .row .h { font-variant-numeric: tabular-nums; }
.ico.sm { width: 14px; height: 14px; flex: none; }
.hm .label, .stack-g dt, .tile > .label, .email-box > .label { display: flex; align-items: center; gap: 7px; }
.hm .label .ico, .tile > .label .ico, .email-box > .label .ico { color: var(--accent); }
.stack-g dt .ico { color: var(--ink-2); }
.row .n { display: inline-flex; align-items: center; gap: 14px; }
.row .rico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); flex: none; transition: background .35s, color .35s, border-color .35s; }
.row:hover .rico { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }

/* images */
.step-art { margin: 0 0 18px -14px; width: min(230px, 62%); aspect-ratio: 1; }
.step-art .iso, .about-art .iso { display: block; width: 100%; height: auto; overflow: visible; }
.iso-flow { animation: dash 1s linear infinite; }
@keyframes isoBar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.iso-bar polygon { transform-box: fill-box; transform-origin: 50% 100%; animation: isoBar 2.8s ease-in-out infinite; }
.iso-bar:nth-child(2n) polygon { animation-duration: 3.4s; }
@keyframes isoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.iso-float, .iso-holo { animation: isoFloat 4.5s ease-in-out infinite; }
@keyframes isoZapL { 0% { opacity: 0; transform: translateX(-26px) scaleY(.7); } 25% { opacity: 1; } 75% { opacity: .9; transform: translateX(4px) scaleY(1.15); } 100% { opacity: 0; transform: translateX(10px) scaleY(.4); } }
@keyframes isoZapR { 0% { opacity: 0; transform: translateX(26px) scaleY(.7); } 25% { opacity: 1; } 75% { opacity: .9; transform: translateX(-4px) scaleY(1.15); } 100% { opacity: 0; transform: translateX(-10px) scaleY(.4); } }
.iso-zap { opacity: 0; transform-box: fill-box; transform-origin: center; }
.iso-zap-l { animation: isoZapL 2.6s cubic-bezier(.4,0,.6,1) infinite; }
.iso-zap-r { animation: isoZapR 2.6s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes isoDome { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.iso-dome { animation: isoDome 2.6s ease-in-out infinite; }
.step .step-art { transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .6s; transform: scale(.94); filter: saturate(.6); }
.step.on .step-art { transform: scale(1); filter: none; }
.about-art { margin: 0; align-self: center; }
.no-webgl .viz .fallback { background: radial-gradient(500px 300px at 70% 50%, rgba(43,89,255,0.12), transparent 70%); }

/* 3D view controls and tooltips */
.viz-ctl { position: absolute; z-index: 4; top: 124px; right: max(24px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,0.72); border: 1px solid rgba(11,13,18,0.07); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.vc-hint { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 8px; font-size: .74rem; color: var(--muted); white-space: nowrap; }
.vc-hint .ico { width: 16px; height: 16px; color: var(--accent); }
.vc { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; transition: background .25s, color .25s; }
.vc:hover { background: rgba(11,13,18,0.06); color: var(--ink); }
.vc[aria-pressed="true"] { background: var(--ink); color: #fff; }
.vc .ico { width: 16px; height: 16px; }
.vtip { position: absolute; z-index: 4; pointer-events: none; transform: translate(-50%, calc(-100% - 18px)); min-width: 150px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.92); border: 1px solid rgba(11,13,18,0.08); box-shadow: 0 12px 30px rgba(20,30,60,0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 3px; font-size: .74rem; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: opacity .2s; }
.vtip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: inherit; border-right: 1px solid rgba(11,13,18,0.08); border-bottom: 1px solid rgba(11,13,18,0.08); transform: translateX(-50%) rotate(45deg); }
.vtip b { font-size: .82rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 10px; }
.vtip b small { font-weight: 500; font-size: .64rem; letter-spacing: .06em; color: var(--accent); }
.vtip .st { justify-self: start; margin-top: 4px; font-size: .64rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; color: var(--green); background: rgba(18,161,80,0.1); }
.vtip .st.bad { color: var(--red); background: rgba(229,72,77,0.1); }
.vtip .st.mit { color: var(--accent); background: rgba(43,89,255,0.1); }

/* stage tools */
.stage-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 18px; border-top: 1px solid var(--line); min-height: 54px; }
.stage-tools .hint { font-size: .74rem; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.sbtn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .78rem; font-weight: 500; cursor: pointer; color: var(--ink); transition: background .25s, color .25s, border-color .25s; }
.sbtn:hover { border-color: var(--ink); }
.sbtn .ico { width: 14px; height: 14px; }
.sbtn.red { color: var(--red); border-color: rgba(229,72,77,.35); background: rgba(229,72,77,.05); }
.sbtn.red:hover { background: var(--red); color: #fff; border-color: var(--red); }
.sbtn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sseg { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(11,13,18,0.05); }
.sseg button { position: relative; z-index: 1; border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: .76rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: color .3s; font-variant-numeric: tabular-nums; }
.sseg button[aria-pressed="true"] { color: #fff; }
.sseg .sthumb { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: left .5s cubic-bezier(.3,1.3,.5,1), width .5s cubic-bezier(.3,1.3,.5,1); }
.srange { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; color: var(--muted); }
.srange b { font-weight: 600; color: var(--ink); min-width: 52px; font-variant-numeric: tabular-nums; }
.srange input { -webkit-appearance: none; appearance: none; width: 150px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line-2) var(--fill, 50%)); outline-offset: 6px; cursor: pointer; }
.srange input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 8px rgba(11,13,18,.18); transition: transform .2s; }
.srange input::-webkit-slider-thumb:hover { transform: scale(1.15); }
.srange input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 8px rgba(11,13,18,.18); }

.motion-off *, .motion-off *::before, .motion-off *::after { animation-play-state: paused !important; }
.motion-btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(11,13,18,0.08); background: rgba(255,255,255,0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: .82rem; font-weight: 500; color: var(--ink-2); cursor: pointer; box-shadow: 0 6px 24px rgba(11,13,18,0.06); }
.motion-btn .ico { width: 15px; height: 15px; }
.motion-btn:hover { color: var(--ink); border-color: var(--ink); }
.nav-right { display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px) { .motion-btn span { display: none; } .motion-btn { padding: 12px; } }

/* ===== Studio pass: one family, quiet chrome, one bold moment ===== */
body { font-size: 1.0625rem; font-stretch: 100%; }
body::after { display: none; }
.hero { background: var(--bg); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1 { font-stretch: 125%; font-weight: 700; letter-spacing: -0.035em; line-height: .88; font-size: clamp(3.1rem, 8.2vw, 8.2rem); max-width: none; margin-bottom: 28px; }
h2 { font-stretch: 125%; font-weight: 650; letter-spacing: -0.03em; line-height: 1; font-size: clamp(1.9rem, 3.9vw, 3.4rem); max-width: 18ch; }
h3, .step h3, .detail h3 { font-stretch: 112%; font-weight: 600; letter-spacing: -0.02em; }
.step h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); max-width: 18ch; }
.sub { max-width: 38ch; font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.55; color: var(--ink-2); }
.lit { font-stretch: 110%; font-weight: 400; letter-spacing: -0.02em; }
.label, .kpi4 .k, .detail .k, .detail dt, .stack-g dt, .pill, .phases span, .vtip b small, .vtip .st, .chip, .stage-h .tabs button, .t, .sim, .state {
  text-transform: none !important; letter-spacing: 0 !important; font-stretch: 75%; font-weight: 600; }
.label { font-size: .84rem; color: var(--muted); }
.kpi4 .k { font-size: .74rem; }
.phases span { font-size: .68rem; }
.state { font-size: .78rem; }
.s-head { display: block; margin-bottom: 56px; }
.s-head-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.s-head-in p { margin: 0; max-width: 52ch; }
.statement .wrap { grid-template-columns: 200px minmax(0, 1fr) minmax(0, 520px); }
.step .n { display: flex; align-items: baseline; gap: 12px; color: var(--muted); font-stretch: 75%; font-weight: 600; font-size: .9rem; }
.step .n b { font-stretch: 125%; font-weight: 700; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.btn { font-weight: 600; font-stretch: 100%; }
.btn.dark::after { display: none; }
/* profile: typographic rows instead of a card kit */
.bento { column-gap: 56px; row-gap: 48px; }
.tile, .band.alt .tile { background: none !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; padding: 22px 0 0 !important; box-shadow: none !important; transform: none !important; }
.tile::before { display: none !important; }
.tile.dark { color: var(--ink) !important; }
.big-num { font-stretch: 125%; font-weight: 300; letter-spacing: -0.04em; }
.edu-row .lvl { font-stretch: 125%; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--accent); }
.contact h2 { font-size: clamp(2.4rem, 6vw, 5.6rem); max-width: 13ch; }
.row .n { font-stretch: 112%; font-weight: 500; }
@media (max-width: 860px) { .s-head-in { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
@media (max-width: 900px) { .sim { position: static; order: 2; padding: 0 max(24px, env(safe-area-inset-right, 0px)) 10px; text-align: right; } }

/* Reveal: only below-the-fold elements are hidden, and only after script runs */
.rv { transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.rv.pre { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .track, h1 .ln > span { animation: none !important; }
  .cur-dot, .cur-ring { display: none; }
  .rv.pre { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .links-nav { display: none; }
  .statement .wrap { grid-template-columns: 220px minmax(0, 1fr); }
  .about-art { grid-column: 2; max-width: 460px; }
  .step-art { width: 150px; margin-left: -8px; }
  .step::before { display: none; }
  .console { width: 300px; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage { position: relative; top: 0; height: 420px; order: -1; margin-bottom: 16px; }
  .step { min-height: 0; padding-block: 26px; cursor: pointer; opacity: .55; }
  .step.on { opacity: 1; }
  .arch { grid-template-columns: minmax(0, 1fr); }
  .arch-l { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-copy { order: 0; } .viz { order: 1; } .console { order: 2; } .hero-meta { order: 3; }
  .hero-copy { padding-block: 120px 24px; }
  .viz { position: relative; height: 440px; }
  .console { position: relative; right: auto; bottom: auto; width: auto; margin: -8px max(24px, env(safe-area-inset-left, 0px)) 24px; }
  .sim { top: auto; bottom: 10px; }
  .hero-meta { position: relative; }
  .hero-meta .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm:nth-child(3) { padding-left: 0; border-left: 0; }
  .hm:nth-child(n+3) { border-top: 1px solid var(--line); }
  .guides { display: none; }
  .s-head, .statement .wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .about-art { grid-column: auto; max-width: 400px; }
  .viz-ctl { top: 12px; right: 12px; }
  .vc-hint { display: none; }
  .statement-side { grid-template-columns: 160px minmax(0, 1fr); align-items: end; }
  section.s { padding-block: 96px; }
  .bento .span2, .bento .span3, .bento .span4 { grid-column: span 6; }
  .c-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hero-meta .wrap { grid-template-columns: minmax(0, 1fr); }
  .hm, .hm + .hm { padding-left: 0; border-left: 0; }
  .hm + .hm { border-top: 1px solid var(--line); }
  .viz { height: 360px; }
  .stage { height: 360px; }
  .mark span { display: none; }
  .mark { padding-right: 4px; }
  .detail dl div, .stack-g div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .empty-pub { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row .h { display: none; }
  .statement-side { grid-template-columns: 120px minmax(0, 1fr); }
}

/* About: portrait and statement on the left, diorama on the right */
.statement .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-rows: 1fr auto auto 1fr; column-gap: 64px; row-gap: 0; align-items: center; }
.statement-side { grid-column: 1; grid-row: 2; display: flex; align-items: flex-end; gap: 22px; }
.statement-side .portrait { width: 196px; flex: none; aspect-ratio: 4 / 5; border-radius: 18px; box-shadow: 0 18px 40px rgba(19,32,66,.14); }
.who { display: grid; gap: 4px; padding-bottom: 6px; font-size: .92rem; color: var(--muted); }
.who b { font-size: 1.06rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.statement .lit { grid-column: 1; grid-row: 3; align-self: start; margin-top: 40px; font-size: clamp(1.55rem, 2.45vw, 2.35rem); line-height: 1.22; max-width: 30ch; }
.statement .about-art { grid-column: 2; grid-row: 1 / span 4; max-width: none; }
@media (max-width: 1100px) {
  .statement .wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .statement-side { grid-row: 1; } .statement .lit { grid-row: 2; margin-top: 28px; }
  .statement .about-art { grid-column: 1; grid-row: 3; margin-top: 36px; max-width: 480px; justify-self: center; width: 100%; }
}
@media (max-width: 560px) {
  .statement-side .portrait { width: 132px; }
  .who { font-size: .84rem; }
}

/* Research: larger, detailed step illustrations */
.step-art { width: min(500px, 100%); aspect-ratio: auto; margin: 0 0 26px -12px; }
@media (max-width: 900px) { .step-art { width: min(440px, 100%); margin-left: 0; } }

/* Research: larger, detailed step illustrations */
.step-art { width: min(500px, 100%); aspect-ratio: auto; margin: 0 0 26px -12px; }
@media (max-width: 900px) { .step-art { width: min(440px, 100%); margin-left: 0; } }

/* Stage panels: keep enough drawing room on small screens */
@media (max-width: 900px) { .stage-c { min-height: 440px; flex: none; height: 440px; } }
@media (max-width: 480px) { .stage-c { min-height: 470px; height: 470px; } }

/* Architecture: layered, clearer diagram */
.arch-l { padding: 26px 26px 18px; background-image: radial-gradient(rgba(11,13,18,0.05) 1px, transparent 1.2px); }
#archSvg { min-width: 720px; }
.arch { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
#archSvg .band { fill: rgba(255,255,255,.75); stroke: #d3dae4; stroke-width: 1; }
#archSvg .band.tw { fill: rgba(43,89,255,.05); stroke: rgba(43,89,255,.35); stroke-dasharray: 5 5; }
#archSvg .band.dv { fill: rgba(244,246,249,.8); stroke: #dfe4eb; }
#archSvg .bl { font-size: 11.5px; font-weight: 650; fill: var(--ink-2); }
#archSvg .bl.b { fill: var(--accent); }
#archSvg .bls { font-size: 10.5px; font-weight: 500; fill: var(--faint); }
#archSvg .box { fill: #fff; stroke: #c9d1dc; stroke-width: 1.2; filter: drop-shadow(0 4px 10px rgba(19,32,66,.06)); }
#archSvg .itile { fill: #eef2f8; transition: fill .3s; }
#archSvg .ig { color: var(--ink); }
#archSvg text.t { font-size: 14.5px; font-weight: 650; fill: var(--ink); }
#archSvg text.sub { font-size: 10.5px; font-weight: 500; fill: var(--muted); }
#archSvg .node.sel .box { stroke: var(--ink); stroke-width: 2; }
#archSvg .node.sel .itile { fill: var(--ink); } #archSvg .node.sel .ig { color: #fff; }
#archSvg .node.twin .box { fill: url(#twg); stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: none; }
#archSvg .node.twin .itile { fill: var(--accent); } #archSvg .node.twin .ig { color: #fff; }
#archSvg .node.twin .glow { fill: none; stroke: rgba(43,89,255,.35); stroke-width: 1.4; animation: twGlow 2.6s ease-in-out infinite; }
@keyframes twGlow { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
#archSvg .node.twin .live { fill: var(--green); animation: blink 1.4s infinite; }
#archSvg .node.threat .box { stroke: var(--red); stroke-width: 2; fill: #fff6f6; }
#archSvg .node.threat .itile { fill: var(--red); } #archSvg .node.threat .ig { color: #fff; }
#archSvg .node.threat text.t { fill: var(--red); }
#archSvg .e { stroke: #9aa5b6; stroke-width: 1.8; }
#archSvg .e.up { stroke: #f1a26f; stroke-width: 2.6; }
#archSvg .e.ctl { stroke: #8f9aab; stroke-dasharray: 4 4; stroke-width: 1.6; }
#archSvg .e.tw { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 5; }
#archSvg .pk.up { fill: var(--orange); stroke: #fff; stroke-width: 1.5; }
#archSvg .pk.ct { fill: var(--ink); stroke: #fff; stroke-width: 1.2; }
#archSvg .pk.tw { fill: var(--accent); stroke: #fff; stroke-width: 1.2; }
#archSvg .lbb { fill: #fff; stroke: #cfd6e0; }
#archSvg .lbb.b { fill: #eef2ff; stroke: rgba(43,89,255,.4); }
#archSvg .lb { font-size: 10.5px; font-weight: 600; fill: var(--ink-2); }
#archSvg .lb.b { fill: var(--accent); }
#archSvg .legend text { font-size: 11.5px; font-weight: 500; fill: var(--ink-2); }
#archSvg .legend text.hint { fill: var(--faint); }
#archSvg .lg { stroke-width: 2.6; } #archSvg .lg.up { stroke: #f1a26f; } #archSvg .lg.ct { stroke: #8f9aab; stroke-dasharray: 4 4; stroke-width: 1.8; } #archSvg .lg.tw { stroke: var(--accent); stroke-dasharray: 5 5; stroke-width: 2; }
#archSvg.focus .node:not(.sel):not(.rel):not(.threat) { opacity: .72; }
#archSvg.focus .e:not(.hot):not(.hotr) { opacity: .45; }
#archSvg .e.hot { stroke-width: 2.6; }
#archSvg .node.rel .box { stroke: #8f9aab; }
.arch-top .label:last-child { display: none; }
.threats { gap: 8px; }
.tbtn { padding: 9px 14px; font-size: .84rem; font-weight: 500; }
.tbtn .ico { color: var(--red); }
.tbtn[aria-pressed="true"] .ico { color: #fff; }

/* Architecture: cleaner canvas and clearer icons */
.arch-l { background-color: #fbfcfe; background-image: radial-gradient(rgba(19,32,66,.09) 1px, transparent 1.3px), radial-gradient(600px 300px at 85% 18%, rgba(43,89,255,.06), transparent 70%); background-size: 18px 18px, 100% 100%; }
#archSvg .itile { fill: #eef2f8; stroke: #dde3eb; stroke-width: 1; }
#archSvg .ig { color: #26324f; }
#archSvg .node.sel .itile, #archSvg .node.threat .itile, #archSvg .node.twin .itile { stroke: none; }
.tbtn .ico.ti { width: 24px; height: 24px; fill: none; stroke: none; }
.tbtn { gap: 9px; padding: 8px 15px 8px 11px; }

/* Profile redesign */
.s-head-meta { margin: -30px 0 28px; }
.sch-link { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink); }
.sch-link:hover { border-color: var(--accent); color: var(--accent); }
.pf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.pf-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; min-width: 0; box-shadow: 0 10px 30px rgba(19,32,66,.04); }
.pf-edu { grid-column: span 5; } .pf-skills { grid-column: span 7; } .pf-pubs { grid-column: span 9; } .pf-time { grid-column: span 3; display: flex; flex-direction: column; gap: 18px; }
.pf-h { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pf-h h3 { margin: 0; font-size: 1.2rem; } .pf-h p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.pic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: #eef2ff; color: var(--accent); }
.pic svg { width: 26px; height: 26px; }
.pic.sm { width: 26px; height: 26px; border-radius: 8px; } .pic.sm svg { width: 17px; height: 17px; }
.pic.y { background: #fff6e0; color: #b7791f; } .pic.v { background: #f1edff; color: #6d4aff; } .pic.c { background: #e3f8fa; color: #008a9a; }
.pic.b { background: #e8efff; color: var(--accent); } .pic.g { background: #e5f6ec; color: var(--green); } .pic.o { background: #fff0e6; color: #d4580f; }
.tl { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.tl::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line)); border-radius: 2px; }
.tl li { position: relative; padding-bottom: 22px; } .tl li:last-child { padding-bottom: 0; }
.tl .dot { position: absolute; left: -22px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); }
.tl li.now .dot { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(43,89,255,.15); }
.tl-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.deg { font-stretch: 125%; font-weight: 700; font-size: 1.35rem; color: var(--accent); line-height: 1; }
.tl .pill { margin: 0; }
.tl h4 { margin: 0 0 2px; font-size: 1.05rem; font-weight: 600; } .tl p { margin: 0; color: var(--muted); font-size: .92rem; }
.tl .topic { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f5f7fb; color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
.sk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sk-i { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; transition: border-color .3s, transform .3s; min-width: 0; }
.sk-i:hover { border-color: var(--line-2); transform: translateY(-2px); }
.sk-i .pic { width: 42px; height: 42px; } .sk-i .pic svg { width: 24px; height: 24px; }
.sk-i span { display: block; font-size: .76rem; font-weight: 600; color: var(--muted); font-stretch: 75%; }
.sk-i b { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); line-height: 1.3; }
.pf-pubs .pf-h { flex-wrap: wrap; } .pf-pubs .pf-h > div:nth-child(2) { margin-right: auto; }
.pf-stats { display: flex; gap: 8px; }
.pf-stats div { padding: 8px 14px; border-radius: 12px; background: #f5f7fb; text-align: center; min-width: 74px; }
.pf-stats b { display: block; font-size: 1.35rem; font-stretch: 125%; font-weight: 700; color: var(--ink); line-height: 1.1; }
.pf-stats span { font-size: .72rem; font-weight: 600; color: var(--muted); }
.pubs { display: grid; gap: 10px; }
.pub { display: grid; grid-template-columns: 56px minmax(0, 1fr) 64px; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .3s, background .3s, transform .3s; }
.pub:hover { border-color: var(--accent); background: #f8faff; transform: translateY(-2px); }
.pub .yr { font-stretch: 125%; font-weight: 700; color: var(--accent); font-size: 1rem; padding-top: 2px; }
.pub h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.pub p { margin: 0; font-size: .86rem; color: var(--muted); } .pub p b { color: var(--ink); font-weight: 600; }
.pub .venue { margin-top: 4px; color: var(--ink-2); font-style: italic; }
.pub .cit { text-align: center; padding: 8px 4px; border-radius: 12px; background: #eef2ff; color: var(--accent); font-weight: 700; font-size: 1.15rem; line-height: 1; }
.pub .cit small { display: block; margin-top: 4px; font-size: .66rem; font-weight: 600; color: var(--muted); }
.pf-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.pf-time .pic { width: 46px; height: 46px; }
.pf-time .k { font-size: .84rem; font-weight: 600; color: var(--muted); font-stretch: 75%; }
@media (max-width: 1100px) { .pf-edu, .pf-skills { grid-column: span 12; } .pf-pubs { grid-column: span 12; } .pf-time { grid-column: span 12; flex-direction: row; align-items: center; } }
@media (max-width: 640px) { .sk { grid-template-columns: 1fr; } .pub { grid-template-columns: minmax(0, 1fr) 56px; } .pub .yr { grid-column: 1 / -1; } .pf-card { padding: 20px; } .s-head-meta { margin-top: -20px; } }
.pf-int { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.ints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ints span { padding: 6px 11px; border-radius: 999px; background: #eef2ff; color: var(--accent); font-size: .8rem; font-weight: 600; }
@media (max-width: 1100px) { .pf-time { flex-wrap: wrap; } .pf-int { margin-top: 0; width: 100%; } }

/* Profile icons: official logos and Lucide line icons, centred, no tinted tiles */
.hic { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.hic svg { width: 22px; height: 22px; display: block; }
.sic { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; gap: 4px; }
.sic svg { width: 30px; height: 30px; display: block; }
.sic.two svg { width: 22px; height: 24px; }
.sic.ln { color: var(--ink-2); } .sic.ln svg { width: 26px; height: 26px; }
.sch-link .lg-ic { width: 20px; height: 20px; display: block; }
.sch-link { padding-left: 12px; }
.sk-i .sic { display: flex; } .sk-i .sic.two { width: 52px; } .sk-i .sic.two svg { width: 23px; height: 25px; }

.pf-open { grid-column: span 3; display: flex; flex-direction: column; }
.pf-open .pf-h { margin-bottom: 16px; }
.open-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.open-l li { display: flex; gap: 12px; align-items: flex-start; }
.open-l li > svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
.open-l b { display: block; font-size: .95rem; font-weight: 600; color: var(--ink); }
.open-l span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.pf-open .pf-int { margin-top: 18px; }
.open-cta { margin-top: 18px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; }
.open-cta svg { width: 18px; height: 18px; } .open-cta .ar { margin-left: auto; transition: transform .3s; }
.open-cta:hover .ar { transform: translateX(4px); }
@media (max-width: 1100px) { .pf-open { grid-column: span 12; } }
.pf-open .k { font-size: .84rem; font-weight: 600; color: var(--muted); font-stretch: 75%; }
.pf-pubs { display: flex; flex-direction: column; } .pf-pubs .pf-foot { margin-top: auto; padding-top: 18px; }
.pf-pubs .pubint { margin-top: 20px; padding-top: 0; border-top: 0; } .pf-pubs .k { font-size: .84rem; font-weight: 600; color: var(--muted); font-stretch: 75%; }
.pf-open .open-cta { margin-top: auto; } .pf-open .open-l { margin-bottom: 22px; }

/* Questions card */
.pf-rq { grid-column: span 3; }
.rq { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: q; }
.rq li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.rq-i { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--accent); }
.rq-i svg { width: 18px; height: 18px; display: block; }
.rq p { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--ink); font-weight: 500; }
@media (max-width: 1100px) { .pf-rq { grid-column: span 12; } }
/* Contact */
.c-grid2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.open-lead { margin: 0 0 26px; font-size: 1.2rem; color: var(--ink-2); max-width: 36ch; }
.open-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.open-l li { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.open-l li > svg { width: 24px; height: 24px; color: var(--accent); }
.open-l b { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.open-l span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.reach .k { display: block; font-size: .84rem; font-weight: 600; color: var(--muted); font-stretch: 75%; margin-bottom: 14px; }
.soc { display: flex; gap: 14px; }
.sb { position: relative; width: 72px; height: 72px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s, background .3s, color .3s; }
.sb svg { width: 30px; height: 30px; display: block; }
.sb:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 14px 30px rgba(19,32,66,.12); }
.sb.mail:hover { background: var(--ink); color: #fff; }
.sb::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); padding: 5px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.sb:hover::after, .sb:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { .c-grid2 { grid-template-columns: minmax(0, 1fr); gap: 36px; } .open-l { grid-template-columns: minmax(0, 1fr); } .sb { width: 64px; height: 64px; } }
.reach { justify-self: end; text-align: right; } .reach .soc { justify-content: flex-end; } .sb { width: 84px; height: 84px; border-radius: 24px; } .sb svg { width: 34px; height: 34px; }
@media (max-width: 900px) { .reach { justify-self: start; text-align: left; } .reach .soc { justify-content: flex-start; } }
.oil { width: 64px; height: 64px; display: block; } .oil svg { width: 64px; height: 64px; display: block; }
.open-l li { gap: 16px; padding: 20px; } .open-l li:hover { border-color: var(--line-2); box-shadow: 0 12px 28px rgba(19,32,66,.06); }
.oil, .oil svg { width: 84px; height: 84px; } .c-grid2 { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.oic { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.oic svg { width: 28px; height: 28px; display: block; }
.open-l li:hover .oic { background: var(--ink); color: #fff; border-color: var(--ink); }
.open-l .oic { display: flex; color: var(--ink); } .open-l li:hover .oic { color: #fff; }

.pf-creds { grid-column: span 3; display: flex; flex-direction: column; }
.creds { display: grid; gap: 10px; flex: 1; }
.cr { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; text-decoration: none; color: inherit; transition: border-color .3s, transform .3s; }
a.cr:hover { border-color: var(--accent); transform: translateY(-2px); }
.cr-l { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; }
.cr-l svg { width: 32px; height: 32px; display: block; } .cr-l svg.gen { width: 26px; height: 26px; color: var(--ink); }
.cr-t b { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cr-t span { display: block; font-size: .8rem; color: var(--muted); }
.cr-empty { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 8px 0; }
.cr-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cr-slots i { aspect-ratio: 1; border-radius: 14px; border: 1.5px dashed var(--line-2); background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(19,32,66,.025) 8px 16px); }
.cr-empty p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 1100px) { .pf-creds { grid-column: span 12; } .cr-slots { grid-template-columns: repeat(6, 1fr); } }
.creds { align-content: start; } .cr-l { width: 52px; } .cr-l svg { width: 46px; height: 30px; }

/* ===== Version 2 hero: person first over the full-bleed city ===== */
.hero { min-height: clamp(760px, 100vh, 900px); }
.hero .guides { display: none; }
.hero-copy { padding-block: 150px 140px; }
.hero-id { display: flex; align-items: flex-start; gap: clamp(22px, 2.4vw, 36px); max-width: 640px; }
.hero-face { flex: none; margin: 0; width: clamp(150px, 13vw, 200px); aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #eef1f6, #e6ecf7); border: 1px solid var(--line); box-shadow: 0 22px 50px rgba(19,32,66,.14); animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; pointer-events: auto; }
.hero-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-txt { min-width: 0; }
.hero h1 { font-size: clamp(2.8rem, 5.4vw, 5.8rem); margin-bottom: 22px; }
.hero .sub { max-width: 31ch; margin-bottom: 30px; }
.hero .console { width: 250px; padding: 12px; border-radius: 16px; }
.hero .console .kpi4, .hero .console .spark, .hero .console .evlog { display: none; }
.hero .console .seg { margin-bottom: 8px; }
.vtip[hidden] { display: none; }
/* Research page */
.page-research .hero h1 { font-size: clamp(2.3rem, 4vw, 4.1rem); line-height: .95; max-width: 13ch; }
.page-research .hero .sub { max-width: 38ch; }
.page-research .hero-copy { padding-bottom: 80px; }
/* Version 2 order: publications in their own section */
#publications .pf-pubs { grid-column: 1 / -1; }
#profile .pf-creds { grid-column: 1 / -1; }
#profile .cr-empty { flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 20px; }
#profile .cr-empty > * { flex: none; }
#profile .cr-slots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64px; }
@media (min-width: 1101px) { #about .lit { grid-row: 1 / span 4; align-self: center; margin-top: 0; } }
@media (min-width: 901px) { .hero .viz::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(244,246,248,.92) 30%, rgba(244,246,248,0) 52%); } .hero .viz canvas { position: relative; z-index: 0; } }
@media (max-width: 1100px) { .hero-face { width: 132px; } .hero-id { max-width: 520px; } }
@media (max-width: 900px) {
  .hero-copy { padding-block: 116px 26px; }
  .hero-id { max-width: none; }
  .hero .viz { height: 480px; }
  .hero .console { position: absolute; right: auto; left: 12px; bottom: 12px; width: 230px; margin: 0; }
  .hero .viz .sim { position: absolute; top: 18px; left: 16px; right: auto; bottom: auto; padding: 0; text-align: left; }
}
@media (max-width: 560px) {
  .hero-id { flex-direction: column; gap: 20px; }
  .hero-face { width: 112px; border-radius: 16px; }
  .hero .console { right: 12px; width: auto; }
}

/* ===== Responsive fixes and mobile menu ===== */
.nav-burger, .nav-menu, .swipe-hint { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
  .nav-burger { pointer-events: auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid rgba(11,13,18,0.07); background: rgba(255,255,255,0.78); -webkit-backdrop-filter: saturate(1.8) blur(16px); backdrop-filter: saturate(1.8) blur(16px); color: var(--ink); cursor: pointer; }
  .nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-menu:not([hidden]) { display: block; position: absolute; top: calc(100% + 10px); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); max-width: 520px; margin-left: auto; pointer-events: auto; padding: 8px; border-radius: 22px; background: rgba(255,255,255,0.96); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(19,32,66,.16); animation: menuIn .28s cubic-bezier(.2,.8,.2,1) both; }
  .nav-menu ul { list-style: none; margin: 0; padding: 0; }
  .nav-menu li + li { border-top: 1px solid var(--line); }
  .nav-menu a { display: block; padding: 16px 18px; border-radius: 14px; font-size: 1.15rem; font-weight: 600; font-stretch: 112%; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
  .nav-menu a:hover, .nav-menu a:focus-visible { background: rgba(11,13,18,0.05); }
  .nav-menu a[aria-current="page"] { color: var(--accent); }
  .arch { grid-template-columns: minmax(0, 1fr); }
  .arch-l { border-right: 0; border-bottom: 1px solid var(--line); }
  .statement .wrap { row-gap: 0; }
}
@media (max-width: 900px) {
  .c-grid2 { grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
  .open-l { grid-template-columns: minmax(0, 1fr); }
  .reach { justify-self: start; text-align: left; }
  .reach .soc { justify-content: flex-start; flex-wrap: wrap; }
  .sb { width: 64px; height: 64px; border-radius: 18px; }
  .sb svg { width: 28px; height: 28px; }
  .statement { padding-block: 96px 80px; }
  .step { opacity: 1; }
  .detail { padding: 24px; }
  #profile .cr-empty p { flex: 1 1 200px; min-width: 0; }
  .contact { padding-block: 96px 48px; }
  .contact h2 { margin-bottom: 36px; }
  .swipe-hint { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font-size: .8rem; color: var(--muted); }
  .swipe-hint::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
}
@media (max-width: 560px) {
  .nav .wrap { gap: 8px; }
  .nav-right { gap: 6px; }
  .nav-cta { padding: 12px 16px; }
  .statement { padding-block: 80px 64px; }
  .statement .lit { font-size: 1.45rem; }
  .detail { padding: 20px; }
  .detail h3 { font-size: 1.6rem; }
  .dnav { flex-wrap: wrap; }
  section.s { padding-block: 80px; }
}
@media (max-width: 380px) {
  .nav-cta { display: none; }
}
