/* ==========================================================================
   Siddhi Kale — portfolio
   Idea: a warm machine. Stone slabs lit by a single seam of amber light,
   which is also the caret of a model writing the answer, token by token.
   ========================================================================== */

/* ---------- tokens ---------- */
:root { --bg: #0c0b09; --slab: #161512; --slab-2: #1e1c18; --slab-3: #2b2922; --fg: #eee7da; --fg-2: #bab2a2; --fg-3: #8f8878; --line: rgba(238, 231, 218, 0.14); --amber: #e4a73f; --amber-hi: #ffd07a; --glow: rgba(228, 167, 63, 0.38); --on-amber: #1a1204; --bar-h: 64px; --ease: cubic-bezier(0.7, 0, 0.2, 1); --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --f-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif; --f-text: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif; --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* The one daylight page: the human part. */
html.day { --bg: #e9d9cd; --slab: #efe3d9; --slab-2: #e3d0c3; --slab-3: #d3bbab; --fg: #1e1814; --fg-2: #4d4137; --fg-3: #62564b; --line: rgba(30, 24, 20, 0.2); --amber: #9a5a08; --amber-hi: #7a4300; --glow: rgba(154, 90, 8, 0.28); --on-amber: #fff6e6; }

/* Surfaces that are always dark, even on the daylight page. */
.veil,
.ask,
.portal,
.idcard { --bg: #0c0b09; --slab: #161512; --slab-2: #1e1c18; --slab-3: #2b2922; --fg: #eee7da; --fg-2: #bab2a2; --fg-3: #8f8878; --line: rgba(238, 231, 218, 0.14); --amber: #e4a73f; --amber-hi: #ffd07a; --glow: rgba(228, 167, 63, 0.38); --on-amber: #1a1204; }

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body { margin: 0; min-height: 100svh; background:
    radial-gradient(1100px 700px at 88% -8%, rgba(228, 167, 63, 0.11), transparent 62%),
    radial-gradient(900px 620px at -8% 45%, rgba(228, 167, 63, 0.07), transparent 62%),
    var(--bg); background-attachment: fixed; color: var(--fg); font: 400 1.0625rem/1.65 var(--f-text); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }

/* stone grain over everything, very quiet */
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; background-image: var(--grain); opacity: 0.07; mix-blend-mode: overlay; }
html.day body::after { opacity: 0.12; mix-blend-mode: multiply; }

img, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--amber); color: var(--on-amber); padding: 10px 14px; font: 600 0.95rem var(--f-display); }
.skip:focus { top: 12px; }

/* display type: tall, light, architectural */
.name, .page-title, .fact-n, .veil-label, .node-name, .map-cluster, .group-title, .frame-org { font-family: var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; }

/* ---------- the lamp: a short caret of light ---------- */
.lamp { display: inline-block; width: 3px; height: 1.15em; border-radius: 2px; background: var(--amber); box-shadow: 0 0 10px var(--glow); margin-right: 0.7em; vertical-align: -0.22em; }
.caret { display: inline-block; width: 0.12em; height: 1.02em; margin-left: 0.14em; background: var(--amber); box-shadow: 0 0 20px var(--glow), 0 0 4px var(--amber); vertical-align: -0.14em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- top bar: a floating pill ---------- */
.bar { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; pointer-events: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 0 var(--pad); }
.bar > * { pointer-events: auto; }
.bar-nav { grid-column: 2; display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 14px 40px -18px #000; }
.bar-nav .link { position: relative; padding: 0.66em 1.05em; border-radius: 999px; color: var(--fg-2); font: 500 0.98rem/1 var(--f-display); font-stretch: 90%; transition: color 0.2s, background 0.2s; }
.bar-nav .link:hover, .bar-nav .link[aria-current], .bar-nav .link.is-active { color: var(--fg); background: rgba(228, 167, 63, 0.16); }
.mark { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 6px; border-radius: 50%; background: var(--amber); color: var(--on-amber); font: 800 0.95rem/1 var(--f-display); letter-spacing: 0.02em; box-shadow: 0 0 24px var(--glow); transition: transform 0.4s var(--ease-out); }
.mark:hover { transform: rotate(-8deg) scale(1.08); }
.bar-tools { grid-column: 3; justify-self: end; display: flex; gap: 8px; align-items: center; }
.bar-resume, .bar-menu { padding: 0.7em 1em; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font: 500 0.95rem/1 var(--f-display); font-stretch: 90%; color: var(--fg-2); transition: border-color 0.2s, color 0.2s; }

.bar-menu:hover { border-color: var(--amber); color: var(--fg); }

.bar-menu { display: none; grid-column: 1; justify-self: start; }

/* the always-on corner readouts */
.hud { position: fixed; left: var(--pad); right: var(--pad); bottom: 14px; z-index: 55; display: flex; justify-content: space-between; pointer-events: none; }
.hud-pill { padding: 0.5em 0.9em; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 0.85rem/1 var(--f-display); font-stretch: 92%; color: var(--fg-2); }
.hud-pill .lamp { height: 0.95em; margin-right: 0.55em; vertical-align: -0.15em; }

/* living field behind everything */
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- headline reveal (one orchestrated moment per page) ---------- */
.name-line, .page-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.name-line > span, .page-title .line > span { display: block; }
.js .name-line > span, .js .page-title .line > span { transform: translateY(108%); animation: failsafe 0.01s 4s forwards; }
.is-lit .name-line > span, .is-lit .page-title .line > span { transform: none; transition: transform 1.05s var(--ease-out); }
.is-lit .name-line:nth-child(2) > span { transition-delay: 0.09s; }
@keyframes failsafe { to { transform: none; opacity: 1; visibility: visible; } }

/* ---------- home: one long scroll ---------- */
.home { position: relative; z-index: 1; }
.cta { display: inline-flex; align-items: center; padding: 1.05em 1.5em; border-radius: 999px; background: var(--amber); color: var(--on-amber); font: 600 1.05rem/1 var(--f-display); font-stretch: 90%; box-shadow: 0 0 0 0 var(--glow); transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.cta:hover { box-shadow: 0 0 0 7px var(--glow); }
.ghost { padding: 1.05em 1.3em; border-radius: 999px; border: 1px solid var(--fg-3); font: 600 1.05rem/1 var(--f-display); font-stretch: 90%; transition: border-color 0.2s, background 0.2s; }
.ghost:hover { border-color: var(--amber); background: rgba(228, 167, 63, 0.1); }
.ghost-quiet { border-color: var(--line); color: var(--fg-2); font-weight: 500; }
.textlink { border-bottom: 2px solid var(--amber); font: 600 1.05rem var(--f-display); font-stretch: 90%; }
.textlink:hover { color: var(--amber-hi); }

.band-title { font: 500 1.05rem/1.2 var(--f-display); font-stretch: 88%; color: var(--fg-2); display: flex; align-items: center; margin-bottom: clamp(18px, 2.4vw, 30px); }
.band-title::before { content: ''; width: 3px; height: 1.1em; margin-right: 0.7em; border-radius: 2px; background: var(--amber); box-shadow: 0 0 10px var(--glow); }

/* hero */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; padding: clamp(112px, 15vh, 160px) var(--pad) clamp(70px, 10vh, 110px); }
.hero-copy { position: relative; z-index: 3; display: grid; justify-items: start; }
.status { font: 500 1rem/1.4 var(--f-display); font-stretch: 90%; color: var(--fg-2); max-width: 44ch; }

.role { font: 500 1.2rem/1.3 var(--f-display); font-stretch: 85%; }
.hero-quote { font: italic 400 clamp(1.3rem, 2.1vw, 1.95rem)/1.3 var(--f-text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* photo with a lit frame and an orbit of tools */
.hero-photo { position: relative; z-index: 2; justify-self: center; }
.photo-frame { position: relative; aspect-ratio: 4 / 5; }
.photo-inner { inset: 0; overflow: hidden; background: var(--slab-2); clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px)); box-shadow: 0 0 80px -20px var(--glow); }
.photo-inner img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--scale, 1.1)); }
.photo-inner .slot { min-height: 0; }
.hud-c { position: absolute; width: 26px; height: 26px; z-index: 4; border: 2px solid var(--amber); filter: drop-shadow(0 0 6px var(--glow)); }
.hud-tl { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.hud-tr { top: -9px; right: -9px; border-left: 0; border-bottom: 0; }
.hud-bl { bottom: -9px; left: -9px; border-right: 0; border-top: 0; }
.hud-br { bottom: -9px; right: -9px; border-left: 0; border-top: 0; }
.scan { position: absolute; left: 0; right: 0; top: 4%; height: 2px; z-index: 3; background: linear-gradient(90deg, transparent, var(--amber-hi), transparent); box-shadow: 0 0 20px var(--glow); animation: scan 5.5s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 4%; opacity: 0; } 12%, 88% { opacity: 1; } 50% { top: 96%; } }

.orbit { position: absolute; left: 50%; top: 50%; width: 124%; aspect-ratio: 1; margin: -62% 0 0 -62%; pointer-events: none; z-index: 1; animation: spin 70s linear infinite; }
.orbit::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(228, 167, 63, 0.3); }
.orbit i { position: absolute; inset: 0; transform: rotate(var(--a)); }
.orbit b { position: absolute; right: 0; top: 50%; padding: 0.4em 0.8em; border-radius: 999px; white-space: nowrap; border: 1px solid rgba(228, 167, 63, 0.5); background: color-mix(in srgb, var(--bg) 80%, transparent); font: 500 0.88rem/1 var(--f-display); color: var(--amber-hi); animation: unspin 70s linear infinite; transform: translate(50%, -50%) rotate(calc(-1 * var(--a))); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unspin { to { transform: translate(50%, -50%) rotate(calc(-1 * var(--a) - 360deg)); } }

.grid-floor { position: absolute; left: -10%; right: -10%; bottom: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(rgba(228, 167, 63, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(228, 167, 63, 0.2) 1px, transparent 1px); background-size: 60px 60px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 85%); mask-image: linear-gradient(to top, #000 8%, transparent 85%); animation: grid-move 9s linear infinite; }
@keyframes grid-move { to { background-position: 0 60px, 0 0; } }

/* marquees */
.marquee { position: relative; z-index: 1; overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, transparent); }
.marquee-track { display: inline-flex; animation: marq 52s linear infinite; }
.marquee span { font: 200 clamp(2.6rem, 6.4vw, 6rem)/1.1 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; color: transparent; -webkit-text-stroke: 1px var(--fg-3); }
.marquee span::after { content: ''; display: inline-block; margin-left: 0.55em; vertical-align: middle; background: var(--amber); box-shadow: 0 0 14px var(--glow); }
.marquee-b .marquee-track { animation-direction: reverse; animation-duration: 40s; }

@keyframes marq { to { transform: translateX(-25%); } }

/* sections */
.sec { z-index: 1; padding: clamp(84px, 12vw, 170px) var(--pad); }
.sec-head { display: grid; max-width: 62rem; }
.sec-tag { font: 500 1rem/1 var(--f-display); font-stretch: 90%; color: var(--amber-hi); }
.sec-tag::before { content: '[ '; opacity: 0.7; }
.sec-tag::after { content: ' ]'; opacity: 0.7; }
.sec-title { font: 250 clamp(2.6rem, 7vw, 6.4rem)/0.96 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; letter-spacing: -0.01em; }

/* about + id card */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); }
.about-copy p { max-width: 56ch; margin-bottom: 1.2rem; }

.about-facts { margin-top: 2rem; max-width: 52ch; }
.about-facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 16px; border-top: 1px solid var(--line); }
.about-facts dt { font: 500 1rem var(--f-display); font-stretch: 88%; color: var(--fg-3); }
.about-facts dd { font-size: 1.02rem; }

/* core stack: cards */
.tcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.tcard, .tcore { border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--slab) 78%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color 0.3s, box-shadow 0.4s; }

.tcard:hover { border-color: rgba(228, 167, 63, 0.5); box-shadow: 0 0 50px -22px var(--glow); }
.tcard-title { font: 600 0.82rem/1.2 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.1rem; }
.tchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchips li { padding: 0.42em 0.85em; border-radius: 999px; border: 1px solid var(--line); font: 400 0.86rem/1.2 var(--f-mono); color: var(--fg-2); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.tchips li:hover { border-color: var(--amber); color: var(--fg); background: rgba(228, 167, 63, 0.1); }
.tcard-note { margin-top: 1rem; font: 400 0.8rem/1.5 var(--f-mono); color: var(--fg-3); }
.tcore { margin-top: clamp(14px, 1.6vw, 22px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.tcore-list { display: grid; gap: 0.7rem; }
.tcore-list li { font: 500 1.05rem/1.35 var(--f-display); font-stretch: 94%; color: var(--fg); padding-left: 1.5em; position: relative; }
.tcore-list li::before { content: '/'; position: absolute; left: 0; color: var(--amber); font-family: var(--f-mono); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 0.35em 0.75em; border-radius: 999px; border: 1px solid var(--line); font: 500 0.86rem/1.2 var(--f-display); color: var(--fg-2); }
.chips-lg li { padding: 0.55em 1em; font-size: 1rem; }

.also { margin-top: clamp(56px, 8vw, 110px); }

/* services */

.svc-proof { color: var(--fg-3); font: 500 0.95rem/1.4 var(--f-display); font-stretch: 92%; }

/* proof, on the long scroll */
.sec.proof > :not(.sec-head) { margin-top: clamp(40px, 6vw, 84px); }

.path-list { border-left: 2px solid var(--amber); margin-left: 6px; box-shadow: -10px 0 30px -18px var(--glow); }
.path-list li { position: relative; display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 20px; padding: 14px 0 14px 26px; }
.path-list li::before { content: ''; position: absolute; left: -8px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--amber); }

/* beyond: the daylight band in the scroll */
.sec.beyond { --bg: #e9d9cd; --slab: #f1e5db; --slab-2: #e3d0c3; --slab-3: #d3bbab; --fg: #1e1814; --fg-2: #4d4137; --fg-3: #62564b; --line: rgba(30, 24, 20, 0.2); --amber: #9a5a08; --amber-hi: #7a4300; --glow: rgba(154, 90, 8, 0.28); --on-amber: #fff6e6; background: radial-gradient(900px 500px at 80% 0%, rgba(255, 220, 170, 0.6), transparent 70%), var(--bg); color: var(--fg); }
.sec.beyond .frames { margin: 0 calc(var(--pad) * -1); }

/* contact */

/* ---------- inner pages ---------- */
.page { padding: calc(var(--bar-h) + clamp(48px, 9vw, 120px)) var(--pad) clamp(48px, 8vw, 110px); }
.page-title { font-weight: 220; line-height: 0.88; letter-spacing: -0.012em; }
.page-sub { margin-top: clamp(16px, 2vw, 28px); color: var(--fg-2); font-size: clamp(1.1rem, 1.5vw, 1.35rem); max-width: 40ch; line-height: 1.5; }

.beyond .page-title { font-size: clamp(3.4rem, 10.5vw, 10rem); }

/* work: map */
.map-field { position: relative; aspect-ratio: 16 / 8.5; background-color: var(--slab); background-image: radial-gradient(circle, rgba(238, 231, 218, 0.1) 1px, transparent 1.6px); background-size: 28px 28px; box-shadow: inset 2px 0 0 var(--amber), inset 18px 0 36px -18px var(--glow); }
.map-cluster { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -50%); font-weight: 200; font-size: clamp(1.6rem, 3.6vw, 3.4rem); color: var(--fg-3); opacity: 0.55; white-space: nowrap; pointer-events: none; }
.map-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-links line { stroke: var(--amber); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0.9; }
.node { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-7px, -50%); display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.4rem; white-space: nowrap; transition: opacity 0.25s; }
.node-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--fg-3); box-shadow: 0 0 0 0 var(--glow); transition: background 0.2s, box-shadow 0.35s var(--ease-out); }
.node.is-featured .node-dot { background: var(--amber); }
.node-name { font-weight: 300; font-size: clamp(1.05rem, 1.7vw, 1.5rem); line-height: 1; color: var(--fg-2); transition: color 0.2s; }
.node:hover .node-dot, .node:focus-visible .node-dot, .node.is-on .node-dot { background: var(--amber-hi); box-shadow: 0 0 0 7px var(--glow); }
.node:hover .node-name, .node:focus-visible .node-name, .node.is-on .node-name { color: var(--fg); }
.map.has-focus .node:not(.is-on):not(.is-focus) { opacity: 0.32; }
.map-hint { margin-top: 0.8rem; color: var(--fg-3); font-size: 0.92rem; }

.list { margin-top: clamp(40px, 6vw, 80px); }
.group { display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; gap: var(--pad); padding: 28px 0 32px; border-top: 1px solid var(--line); }
.group-title { font-weight: 260; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1; }
.row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) 4.5rem; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-name { font: 500 1.2rem/1.2 var(--f-display); font-stretch: 85%; }
.row-name a { display: inline-flex; align-items: center; gap: 0.4em; border-bottom: 2px solid transparent; transition: border-color 0.25s, color 0.25s; }
.row-name a:hover { border-color: var(--amber); color: var(--amber-hi); }
.ext { color: var(--fg-3); display: inline-flex; }
.row-line { color: var(--fg-2); font-size: 0.98rem; }
.row-score { font: 400 1.1rem var(--f-display); font-stretch: 85%; text-align: right; }

/* case study */

.case-hero { position: relative; margin: 0 calc(var(--pad) * -1); min-height: 440px; background: var(--slab-2); overflow: hidden; }
.case-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(12, 11, 9, 0.35) 45%, transparent 75%); pointer-events: none; }
.case-head { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(20px, 3vw, 44px); }

.badge { align-items: center; margin-bottom: 1rem; font: 500 1rem/1.2 var(--f-display); font-stretch: 90%; }

.case-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 calc(var(--pad) * -1); }
.fact { padding: clamp(24px, 4vw, 56px) var(--pad); background: var(--slab); display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.1em; }
.fact + .fact { box-shadow: inset 2px 0 0 var(--amber), inset 18px 0 36px -18px var(--glow); }
.fact-n { font-weight: 200; font-size: clamp(3.4rem, 8.4vw, 8rem); line-height: 0.95; }
.fact-unit { font-family: var(--f-display); font-stretch: 62%; font-weight: 200; font-size: clamp(2rem, 4.5vw, 4.5rem); }
.fact-l { flex-basis: 100%; margin-top: 0.4rem; color: var(--fg-2); font: 500 1rem var(--f-display); font-stretch: 88%; }

.case-flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); padding: clamp(48px, 8vw, 110px) 0; }
.case-flow .band-title { grid-column: 1 / -1; margin-bottom: 0; }
.flow { border-left: 2px solid var(--amber); box-shadow: -10px 0 30px -18px var(--glow); }
.flow li { padding: 0.9rem 0 0.9rem clamp(16px, 2.4vw, 32px); display: grid; gap: 0.1rem; }
.flow-k { font: 500 0.95rem var(--f-display); font-stretch: 88%; color: var(--fg-3); }
.flow-v { font: 300 clamp(1.5rem, 2.6vw, 2.4rem)/1.12 var(--f-display); font-stretch: 70%; font-variation-settings: 'wdth' 70; }

.shot { width: 100%; height: auto; border: 1px solid var(--line); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.85em 1.2em; border: 1px solid var(--fg-3); font: 600 1rem/1 var(--f-display); font-stretch: 90%; transition: border-color 0.2s, background 0.2s; }
.btn:hover { border-color: var(--amber); background: rgba(228, 167, 63, 0.08); }
.btn-solid { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.btn-solid:hover { background: var(--amber-hi); }
.btn-slot { border-style: dashed; color: var(--fg-3); font-weight: 400; }

.next { margin: 0 calc(var(--pad) * -1) calc(-1 * clamp(48px, 8vw, 110px)); }
.next a { display: block; padding: clamp(32px, 6vw, 80px) var(--pad); background: var(--slab); box-shadow: inset 0 2px 0 var(--amber); transition: background 0.3s; }
.next a:hover { background: var(--slab-2); }

/* proof */

.paper { margin-top: 24px; padding: clamp(24px, 3.4vw, 48px); background: var(--slab); box-shadow: inset 2px 0 0 var(--amber), inset 18px 0 36px -18px var(--glow); display: grid; gap: 1rem; justify-items: start; }

.proof > section { margin-top: clamp(56px, 9vw, 120px); }

.background { margin-top: 2rem; color: var(--fg-2); max-width: 56ch; }

/* beyond (daylight) */
.rail { margin: 0 calc(var(--pad) * -1); }
.frames { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding: 24px var(--pad) 40px; scrollbar-width: thin; scrollbar-color: var(--amber) transparent; }
.frame { flex: 0 0 min(78vw, 340px); scroll-snap-align: center; background: var(--slab); transform: rotate(var(--tilt)); transition: transform 0.5s var(--ease-out); box-shadow: 0 1px 0 var(--line), 0 24px 40px -28px rgba(30, 24, 20, 0.5); }
.frame:hover { transform: rotate(0) translateY(-6px); }
.frame-photo { background: var(--slab-3); overflow: hidden; }
.frame-photo img { width: 100%; height: 100%; object-fit: cover; }
.frame-org { font-weight: 300; line-height: 1.02; }
.frame-role { color: var(--fg-2); line-height: 1.4; }
.frame-facts { display: grid; gap: 0.15rem; font: 500 1rem var(--f-display); font-stretch: 90%; }
.frame-facts li::before { content: ''; display: inline-block; width: 3px; height: 0.9em; margin-right: 0.6em; background: var(--amber); vertical-align: -0.08em; border-radius: 2px; }

/* contact */

.copy { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.55em 0.8em; border: 1px solid var(--line); font: 500 0.92rem var(--f-display); font-stretch: 90%; color: var(--fg-2); }
.copy:hover { border-color: var(--amber); color: var(--fg); }
.copy.is-done { border-color: var(--amber); color: var(--fg); }

body[data-page='contact']::before { content: ''; position: fixed; inset: 0; z-index: 70; background: var(--bg); pointer-events: none; opacity: 0; animation: lights-on 2.4s linear 0.8s both; }
@keyframes lights-on {
  0% { opacity: 0.78; } 14% { opacity: 0.4; } 20% { opacity: 0.8; } 34% { opacity: 0.3; }
  42% { opacity: 0.55; } 60% { opacity: 0.12; } 100% { opacity: 0; }
}

/* slots: clearly marked, never ugly */
.slot { position: relative; display: flex; align-items: flex-end; width: 100%; height: 100%; min-height: 220px; background: var(--slab-2); overflow: hidden; }
.slot::before { content: ''; position: absolute; left: 50%; top: 12%; bottom: 12%; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 22px var(--glow); opacity: 0.8; }
.slot-hint { position: relative; padding: 12px 14px; font: 500 0.85rem/1.3 var(--f-display); font-stretch: 90%; color: var(--fg-3); }

.frame-photo .slot { min-height: 0; }

/* ---------- footer ---------- */
.foot { padding: clamp(40px, 6vw, 80px) var(--pad) 28px; background: var(--slab); box-shadow: inset 0 2px 0 var(--amber), inset 0 18px 36px -18px var(--glow); }

.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--fg-2); font: 500 0.98rem var(--f-display); font-stretch: 90%; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { border-bottom: 1px solid var(--fg-3); }
.foot-links a:hover { border-color: var(--amber); color: var(--fg); }

/* ---------- page transition veil ---------- */
.veil { position: fixed; inset: 0; z-index: 200; display: flex; pointer-events: none; visibility: hidden; }
.veil-slab { flex: var(--w, 1) 1 0; background: var(--slab); transform: translateY(100%); background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%, rgba(0, 0, 0, 0.35)); box-shadow: inset 2px 0 0 var(--amber), 0 0 40px var(--glow); will-change: transform; }
.veil-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 var(--pad); font-weight: 200; font-size: clamp(4rem, 15vw, 14rem); line-height: 0.9; opacity: 0; color: var(--fg); }
html.is-veiled .veil { visibility: visible; animation: veil-failsafe 0.01s 4.5s forwards; }
html.is-veiled .veil-slab { transform: none; }
@keyframes veil-failsafe { to { visibility: hidden; } }

/* ---------- ID card on a lanyard ---------- */

.badge { display: grid; justify-items: center; }
.hang { display: grid; justify-items: center; transform-origin: 50% 0; animation: swing 7s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
.strap { position: relative; width: 26px; background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(0, 0, 0, 0.35) 9px 10px), linear-gradient(90deg, #26241e, #3b372c 50%, #26241e); box-shadow: inset 2px 0 0 var(--amber), inset -2px 0 0 var(--amber); }
.clasp { position: absolute; left: 50%; bottom: -10px; width: 34px; height: 18px; margin-left: -17px; border-radius: 4px; background: linear-gradient(180deg, #8c8576, #4c483e); }
.idcard { aspect-ratio: 5 / 8; perspective: 1100px; margin-top: 6px; }
.idcard-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); transition: transform 0.6s var(--ease-out); }
.idcard.is-tilting .idcard-inner { transition: transform 0.12s linear; }
.idcard.is-flipped { --flip: 180deg; }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 18px 18px 16px; border-radius: 20px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: radial-gradient(120% 70% at 50% 0%, #2d2b24, #17160f 70%); border: 1px solid rgba(238, 231, 218, 0.18); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 60px -20px var(--glow), inset 0 0 0 1px rgba(255, 255, 255, 0.03); }
.face::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(240px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 220, 160, 0.16), transparent 60%); }
.face-back { transform: rotateY(180deg); }
.id-hole { align-self: center; width: 58px; height: 10px; border-radius: 6px; background: #070605; box-shadow: inset 0 1px 3px #000, 0 0 0 1px rgba(238, 231, 218, 0.12); margin-bottom: 14px; }
.id-photo { position: relative; aspect-ratio: 1 / 1.02; overflow: hidden; border-radius: 10px; background: var(--slab-2); box-shadow: inset 0 0 0 1px var(--line); }
.id-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--scale, 1.1)); }
.id-photo .slot { min-height: 0; }
.id-photo::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--amber); box-shadow: 0 0 14px var(--glow); }
.id-name { margin-top: 14px; font: 300 2.5rem/0.95 var(--f-display); }
.id-role { margin-top: 6px; font: 500 0.98rem/1.25 var(--f-display); font-stretch: 88%; color: var(--fg-2); }
.id-fields { margin-top: auto; padding-top: 14px; display: grid; gap: 7px; }
.id-fields div { display: grid; grid-template-columns: 4.6rem 1fr; align-items: baseline; border-top: 1px solid var(--line); padding-top: 7px; }
.id-fields dt { font: 500 0.85rem var(--f-display); font-stretch: 90%; color: var(--fg-3); }
.id-fields dd { font: 500 0.95rem/1.25 var(--f-display); font-stretch: 92%; overflow-wrap: anywhere; }
.id-bars { width: 100%; height: 30px; margin-top: 14px; color: var(--fg); opacity: 0.85; }
.id-open { margin-top: 4px; font: 300 2rem/1 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; }
.id-open-list { margin-top: 10px; display: grid; gap: 4px; font: 500 1.02rem var(--f-display); font-stretch: 90%; }
.id-open-list li::before { content: ''; display: inline-block; width: 3px; height: 0.9em; margin-right: 0.6em; background: var(--amber); border-radius: 2px; vertical-align: -0.08em; }
.id-fields-back { margin-top: auto; }

.flip { margin-top: 18px; padding: 0.6em 1em; border: 1px solid var(--line); font: 500 0.95rem var(--f-display); font-stretch: 90%; color: var(--fg-2); }
.flip:hover { border-color: var(--amber); color: var(--fg); }

/* ---------- opening: walk into a laptop ---------- */
.portal { position: fixed; inset: 0; z-index: 300; display: none; overflow: hidden; color: var(--fg); background: radial-gradient(900px 560px at 50% 64%, #1b1811, #070605 72%); }
html.is-portal .portal { display: block; animation: portal-failsafe 0.01s 45s forwards; }
html.is-portal .veil { display: none; }
html.is-portal body { overflow: hidden; }
.portal.is-out { opacity: 0; transition: opacity 0.9s ease-out; pointer-events: none; }
@keyframes portal-failsafe { to { display: none; } }

.lp-scene { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 46%; }
.lp { --W: min(78vw, 880px); position: absolute; left: 50%; top: 50%; width: var(--W); height: calc(var(--W) * 0.625); margin: calc(var(--W) * -0.3125) 0 0 calc(var(--W) * -0.5); font-size: calc(var(--W) / 58); transform-style: preserve-3d; transform: translateY(var(--ty, 0px)) rotateX(var(--cam, -60deg)) scale(var(--zoom, 0.7)); }
.lid { position: absolute; inset: 0; transform-origin: 50% 100%; transform-style: preserve-3d; transform: rotateX(var(--lid, -90deg)); }
.lid-front, .lid-back { position: absolute; inset: 0; border-radius: 1.1em 1.1em 0.3em 0.3em; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lid-front { padding: 2.4%; background: #0b0a08; border: 0.25em solid #2e2d27; box-shadow: 0 0 0 1px #55524a, 0 0 9em -2em rgba(228, 167, 63, var(--glow-a, 0)); }
.lid-back { transform: rotateY(180deg); display: grid; place-items: center; background: linear-gradient(135deg, #3c3a32, #1c1b17 55%, #2b2a24); border: 1px solid #5a574d; }
.lid-back::after { content: ''; width: 0.5em; height: 4em; border-radius: 1em; background: var(--amber); box-shadow: 0 0 3em var(--glow); }
.cam { position: absolute; left: 50%; top: 1.2%; width: 0.6em; height: 0.6em; margin-left: -0.3em; border-radius: 50%; background: #1d1c18; box-shadow: 0 0 0 0.12em #3a3830; }

.lp-base { position: absolute; left: -1.5%; right: -1.5%; top: 100%; height: calc(var(--W) * 0.6); transform-origin: 50% 0; transform: rotateX(90deg); background: linear-gradient(180deg, #37352d, #1f1e1a 42%, #2b2a24); border: 1px solid #5a574d; border-radius: 0 0 1.4em 1.4em; }
.keys { position: absolute; left: 5%; right: 5%; top: 6%; height: 56%; border-radius: 0.5em; background:
    repeating-linear-gradient(90deg, transparent 0 calc(var(--W) / 17 - 3px), #050403 calc(var(--W) / 17 - 3px) calc(var(--W) / 17)),
    repeating-linear-gradient(180deg, #1f1e19 0 calc(var(--W) / 17 - 3px), #050403 calc(var(--W) / 17 - 3px) calc(var(--W) / 17)); box-shadow: inset 0 0 5em rgba(228, 167, 63, var(--key-a, 0)); }
.pad { position: absolute; left: 34%; right: 34%; bottom: 6%; height: 22%; border-radius: 0.8em; border: 1px solid #5a574d; background: linear-gradient(180deg, #26251f, #191814); }

.scr { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 0.5em; color: #eee7da; background: radial-gradient(130% 90% at 50% 0%, #1b170e, #0a0907 70%); display: grid; grid-template-rows: auto 1fr; padding: 2em 2.6em; }
.scr::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px); }
.scr-top { display: flex; justify-content: space-between; font: 600 1em var(--f-display); color: #bab2a2; }
.scr-body { align-self: center; display: grid; gap: 0.5em; justify-items: center; text-align: center; }
.scr-log { justify-self: center; text-align: left; }
.scr-hello { font: 200 5.4em/0.9 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; }
.scr-role { font: 500 1.35em var(--f-display); color: #bab2a2; margin-bottom: 0.8em; }
.scr-log { display: grid; gap: 0.3em; font: 500 1.1em var(--f-display); font-stretch: 92%; color: #bab2a2; min-height: 7.2em; }
.scr-log li { opacity: 0; transform: translateX(-0.5em); transition: opacity 0.25s, transform 0.25s; }
.scr-log li.on { opacity: 1; transform: none; }
.scr-log li::before { content: '> '; color: var(--amber); }
.scr-bar { width: min(100%, 26em); height: 0.5em; margin-top: 0.8em; border-radius: 1em; background: #2b2922; overflow: hidden; }
.scr-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--amber), var(--amber-hi)); box-shadow: 0 0 1.4em var(--glow); }
.scr-pct { font: 300 1.5em var(--f-display); font-variant-numeric: tabular-nums; }

.lp-flash { position: absolute; inset: 0; pointer-events: none; opacity: var(--flash, 0); background: radial-gradient(circle at 50% 50%, #fff3d6, #e4a73f 58%, #14110a 100%); }
.portal-hud { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(18px, 3.4vw, 40px); display: flex; justify-content: space-between; align-items: flex-end; }
.portal-msg { font: 500 1rem/1.2 var(--f-display); font-stretch: 90%; color: var(--fg-2); }
.portal-skip { padding: 0.7em 1em; border: 1px solid var(--line); border-radius: 999px; font: 500 0.95rem var(--f-display); font-stretch: 90%; color: var(--fg-2); }
.portal-skip:hover { border-color: var(--amber); color: var(--fg); }
html.is-arriving main, html.is-arriving .bar { animation: arrive 1.5s var(--ease-out) both; }
@keyframes arrive { from { transform: scale(1.08); filter: blur(12px); opacity: 0; } 55% { opacity: 1; } to { transform: none; filter: none; opacity: 1; } }

/* ---------- detail pages ---------- */

.badge-line { display: inline-flex; align-items: center; margin-bottom: 1rem; font: 500 1rem/1.2 var(--f-display); font-stretch: 90%; color: var(--amber-hi); }

.case-related { padding-bottom: clamp(24px, 4vw, 48px); }
.rel-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.rel-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rel-list a:hover .rel-name { color: var(--amber-hi); }
.rel-name { font: 300 1.7rem/1.1 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; transition: color 0.2s; }
.rel-line { color: var(--fg-2); }

.page.service .page-head { margin-bottom: clamp(32px, 5vw, 64px); }
.svc-cta { margin-top: 1.6rem; }
.svc-block { margin-top: clamp(40px, 6vw, 84px); }
.deliver { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 60rem; }
.deliver li { padding: 16px 0 16px 28px; position: relative; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
.deliver li::before { content: ''; position: absolute; left: 0; top: 1.15rem; width: 3px; height: 1.1em; background: var(--amber); border-radius: 2px; box-shadow: 0 0 10px var(--glow); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.steps li { display: grid; gap: 0.4rem; align-content: start; padding: 22px 20px 22px 0; border-top: 2px solid var(--amber); }
.step-n { font: 200 3rem/1 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; color: var(--fg-3); }
.step-k { font: 600 1.15rem var(--f-display); }
.step-v { color: var(--fg-2); }
.proof-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.proof-cards a, .proof-cards div { display: grid; gap: 0.4rem; padding: 20px; height: 100%; border-radius: 16px; border: 1px solid var(--line); background: var(--slab); transition: border-color 0.25s, transform 0.4s var(--ease-out); }
.proof-cards a:hover { border-color: var(--amber); transform: translateY(-6px); }
.pc-name { font: 300 1.8rem/1.05 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; }
.pc-line { color: var(--fg-2); }
.pc-badge { color: var(--amber-hi); font: 500 0.92rem var(--f-display); }
.slot-list { margin-top: 1rem; display: grid; gap: 6px; color: var(--fg-3); font: 500 1rem var(--f-display); }

/* everything real sits above the living field */
main, .foot { position: relative; z-index: 1; }

/* the id card sits in the about section now */
.badge { margin-top: 0; }
.resolve { opacity: 0; filter: blur(10px); transform: scale(0.97); }
.resolve.is-in { opacity: 1; filter: none; transform: none; transition: opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out), transform 0.9s var(--ease-out); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  
  .pcard:nth-child(3n + 2) { margin-top: 0; }
  .pcard:nth-child(2n) { margin-top: clamp(0px, 5vw, 56px); }
  
  .svc-proof { grid-column: 1; }
  
  
  
  
  
  
  
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .bar { grid-template-columns: auto 1fr; }
  .bar-menu { display: inline-flex; }
  .bar-tools { grid-column: 2; }
  .bar-nav { display: none; position: absolute; top: 56px; left: var(--pad); right: var(--pad); grid-column: 1 / -1; flex-direction: column; align-items: stretch; border-radius: 24px; padding: 10px; background: color-mix(in srgb, var(--bg) 94%, transparent); }
  .bar.is-open .bar-nav { display: flex; }
  .bar-nav .link { padding: 1em 1.1em; font-size: 1.15rem; }
  .mark { order: -1; align-self: flex-start; margin: 0 0 6px; }
  

  .hud { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; width: min(78%, 340px); margin-top: 8px; }
  
  .orbit { width: 130%; margin: -65% 0 0 -65%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-facts div { grid-template-columns: 6.5rem 1fr; }
  
  .pcard:nth-child(n) { margin-top: 0; }
  .case-facts { grid-template-columns: 1fr; }
  .fact + .fact { box-shadow: inset 0 2px 0 var(--amber), inset 0 18px 36px -18px var(--glow); }
  .fact { padding-top: 28px; padding-bottom: 28px; }
  .case-flow { grid-template-columns: 1fr; }
  
  .rel-list a { grid-template-columns: 1fr; gap: 4px; }
  .map { display: none; }
  .list { margin-top: 0; }
  .group { grid-template-columns: 1fr; gap: 8px; }
  .row { grid-template-columns: 1fr auto; }
  .row-line { grid-column: 1 / -1; grid-row: 2; }
  
  
  
  
  .path-list li { grid-template-columns: 1fr; gap: 2px; }
  
  .lp { --W: min(92vw, 880px); }
  .scr { padding: 1.4em 1.6em; }
  .scr-hello { font-size: 4em; }
}

@media (max-width: 520px) {
  
  
  
  
  .steps { grid-template-columns: 1fr; }
  .case-hero { min-height: 420px; }
  
}

/* touch: nothing hides behind hover */

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .caret { animation: none; }
  .veil, .portal { display: none !important; }
  .hang { animation: none; }
  html.is-arriving main, html.is-arriving .bar { animation: none; }
  .js .name-line > span, .js .page-title .line > span { transform: none; }
  body[data-page='contact']::before { display: none; }
  
  .orbit, .orbit b, .grid-floor, .scan, .marquee-track { animation: none !important; }
  .resolve { opacity: 1; filter: none; transform: none; }
}

/* ---------- v3 additions ---------- */
:root { --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; }

/* the one highlighted word */
.hl { background: linear-gradient(transparent 58%, rgba(228, 167, 63, 0.42) 58%); color: var(--amber-hi); padding: 0 0.08em; border-radius: 2px; }
.hero-quote { font-style: normal; font-weight: 400; line-height: 1.22; font-family: var(--f-display); font-stretch: 78%; letter-spacing: -0.005em; }
.hero-quote .hq-text { font-weight: 500; }

/* social icons and the resume button */
.socials { display: inline-flex; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--fg-2); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.4s var(--ease-out); }
.icon-btn:hover { color: var(--on-amber); background: var(--amber); border-color: var(--amber); transform: translateY(-3px); }

.socials-sm .icon-btn { width: 38px; height: 38px; }
.bar-resume { background: var(--amber); color: var(--on-amber); border-color: var(--amber); font-weight: 600; }
.bar-resume:hover { background: var(--amber-hi); color: var(--on-amber); }
.bar-resume[aria-current] { box-shadow: 0 0 0 4px var(--glow); }

/* numbers, front and centre */
.numbers { position: relative; z-index: 1; padding: clamp(36px, 5vw, 70px) var(--pad); }

.num { padding: clamp(18px, 2.2vw, 30px); display: grid; gap: 0.5rem; align-content: start; }
.num + .num { box-shadow: inset 1px 0 0 var(--line); }

.sec-sub { color: var(--fg-2); line-height: 1.5; max-width: 46ch; }

/* resume page */
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.role-card { display: grid; align-content: start; gap: 0.9rem; padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: color-mix(in srgb, var(--slab) 80%, transparent); transition: border-color 0.3s, transform 0.5s var(--ease-out), box-shadow 0.5s; }
.role-card:hover { border-color: var(--amber); transform: translateY(-6px); box-shadow: 0 0 60px -24px var(--glow); }
.role-title { font: 250 clamp(2rem, 3.2vw, 3rem)/1 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; }
.role-sum { color: var(--fg-2); }
.role-points { display: grid; gap: 0.5rem; }
.role-points li { padding-left: 1.2em; position: relative; }
.role-points li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 3px; height: 0.9em; background: var(--amber); border-radius: 2px; }
.role-slot { color: var(--fg-3); font: 500 0.88rem/1.4 var(--f-display); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.svc-pitch { margin-top: 1rem; max-width: 52ch; color: var(--fg); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; }

.foot-right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

@media (max-width: 1100px) {
  .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  
  .num:nth-child(3n + 1) { box-shadow: none; }
  .num:nth-child(n + 4) { box-shadow: inset 0 1px 0 var(--line); }
  .num:nth-child(n + 4):not(:nth-child(3n + 1)) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
}
@media (max-width: 860px) {
  .tcore { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .bar-tools { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .hero-quote { max-width: 18ch; }
}
@media (max-width: 520px) {
  .tcards { grid-template-columns: 1fr; }
  
  .num:nth-child(n) { box-shadow: inset 0 1px 0 var(--line); }
  .num:nth-child(2n) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  .num:nth-child(-n + 2) { box-shadow: none; }
  .num:nth-child(2) { box-shadow: inset 1px 0 0 var(--line); }
  .bar-resume { display: inline-flex; padding: 0.6em 0.8em; }
}

/* project page hero shows the real screenshot */
.case-hero.has-shot { background: radial-gradient(120% 90% at 30% 10%, rgba(228, 167, 63, 0.16), transparent 60%), var(--slab); }
.case-hero-shot { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); z-index: 1; max-width: min(88%, 1000px); width: auto; height: auto; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95); }
@media (max-width: 860px) {
  .case-hero-shot { top: 78px; max-width: calc(100% - 2 * var(--pad)); }
}

/* ---------- v4: bento numbers, contact panel, lit screenshot frames ---------- */

.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.4rem; min-height: clamp(200px, 17vw, 250px); padding: clamp(20px, 2.2vw, 30px); border: 1px solid var(--line); border-radius: 26px; background: color-mix(in srgb, var(--slab) 78%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color 0.3s, transform 0.5s var(--ease-out), box-shadow 0.5s; }
.tile:hover { border-color: rgba(228, 167, 63, 0.55); transform: translateY(-4px); box-shadow: 0 0 70px -28px var(--glow); }

@keyframes dot-pop { from { transform: scale(0.2); opacity: 0; } }

/* contact: one clean panel */
.sec.contact { padding-top: clamp(40px, 6vw, 90px); }
.cpanel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; border: 1px solid rgba(228, 167, 63, 0.4); border-radius: 32px; background: radial-gradient(90% 120% at 0% 0%, rgba(228, 167, 63, 0.2), transparent 60%), color-mix(in srgb, var(--slab) 82%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cpanel-main { display: grid; gap: 1rem; justify-items: start; }
.cpanel-title { font: 250 clamp(2.4rem, 4.8vw, 4.6rem)/0.98 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; letter-spacing: -0.01em; }
.contact-actions { margin-bottom: 0; margin-top: 0.6rem; }
.ctiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ctile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; min-height: 92px; padding: 16px 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(12, 11, 9, 0.35); transition: border-color 0.25s, transform 0.4s var(--ease-out), background 0.25s; }
.ctile:hover { border-color: var(--amber); transform: translateY(-3px); background: rgba(228, 167, 63, 0.08); }
.ctile-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(228, 167, 63, 0.14); color: var(--amber-hi); }
.ctile-txt { display: grid; gap: 0.15rem; min-width: 0; }
.ctile-k { font: 500 0.82rem var(--f-display); font-stretch: 92%; color: var(--fg-3); }
.ctile-v { font: 500 1.02rem/1.25 var(--f-display); font-stretch: 94%; }
.ctile .copy { position: absolute; right: 10px; top: 10px; z-index: 7; padding: 0.35em 0.6em; font-size: 0.78rem; background: rgba(12, 11, 9, 0.6); }
.ctile .copy .copy-t { display: none; }
.ctile .copy:hover .copy-t, .ctile .copy.is-done .copy-t { display: inline; }

/* dark screenshots get a lit frame so they do not vanish into the card */
.case-hero.has-shot::after { background: linear-gradient(to top, var(--bg) 2%, rgba(12, 11, 9, 0) 46%); }

@media (max-width: 1100px) {
  
  .cpanel { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  
  .tile { min-height: 170px; }
  .ctiles { grid-template-columns: 1fr; }
}

/* ---------- v5: project rail, services grid, records ---------- */
.stretch::after { content: ''; position: absolute; inset: 0; z-index: 6; }

.rail-wrap { position: relative; margin: 0 calc(var(--pad) * -1); }
.rail-tools { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--pad); margin-bottom: 10px; }
.rail-count { font: 500 0.95rem var(--f-mono); color: var(--fg-3); }
.rail-btns { display: flex; gap: 10px; }
.rail-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--fg); border: 1px solid var(--line); background: color-mix(in srgb, var(--slab) 80%, transparent); transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.4s var(--ease-out), opacity 0.25s; }
.rail-btn:hover:not(:disabled) { background: var(--amber); color: var(--on-amber); border-color: var(--amber); transform: scale(1.07); }
.rail-btn:disabled { opacity: 0.3; cursor: default; }
.rail { display: flex; align-items: stretch; gap: clamp(18px, 2.2vw, 32px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; padding: 26px var(--pad) 40px; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 70px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 70px), transparent 100%); }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag * { pointer-events: none; }
.hcard { scroll-snap-align: start; scroll-snap-stop: always; transform: rotate(var(--tilt, 0deg)); transition: transform 0.5s var(--ease-out); }
.hcard:hover, .hcard:focus-within { transform: rotate(0deg) translateY(-12px); z-index: 2; }
.hcard-in { position: relative; flex-direction: column; transition: border-color 0.3s, box-shadow 0.5s; }

.hcard-art { position: relative; display: grid; place-items: center; border-bottom: 1px solid var(--line); background: radial-gradient(110% 90% at 25% 10%, rgba(228, 167, 63, 0.16), transparent 62%), var(--slab); }
.hcard-art img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; outline: 1px solid rgba(228, 167, 63, 0.35); box-shadow: 0 24px 50px -24px #000, 0 0 60px -18px var(--glow); }
.hcard-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hcard-badge { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 0.45em 0.8em; border-radius: 999px; font: 600 0.82rem/1.2 var(--f-display); color: var(--amber-hi); background: color-mix(in srgb, #0c0b09 80%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hcard-badge .lamp { height: 0.9em; margin-right: 0.45em; vertical-align: -0.12em; }
.hcard-body { display: flex; flex-direction: column; gap: 0.8rem; flex: 1; padding: 20px 22px 24px; }
.hcard-name { font: 250 clamp(1.9rem, 2.4vw, 2.4rem)/1 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; }
.hcard-line { color: var(--fg-2); font-size: 0.98rem; line-height: 1.5; }
.hcard-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hcard-facts li { display: grid; }
.hcard-facts b { font: 200 2rem/1 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; font-variant-numeric: tabular-nums; }
.hcard-facts span { font: 500 0.82rem var(--f-display); color: var(--fg-3); }
.hcard-cta { margin-top: auto; padding-top: 0.5rem; }
.hcard-cta span { display: inline-flex; padding: 0.62em 1.05em; border-radius: 999px; background: var(--amber); color: var(--on-amber); font: 600 0.95rem/1 var(--f-display); }
.rail-track { height: 3px; margin: 0 var(--pad); border-radius: 2px; background: var(--line); overflow: hidden; }
.rail-track i { display: block; width: 30%; height: 100%; background: var(--amber); border-radius: 2px; box-shadow: 0 0 10px var(--glow); transition: transform 0.15s linear; }
.also-more { margin-top: 1.4rem; }

/* thrown card + landing */
.shoot-dim { position: fixed; inset: 0; z-index: 450; background: rgba(6, 5, 4, 0.82); opacity: 0; pointer-events: none; }
.shoot-ring { position: fixed; z-index: 520; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--amber-hi); box-shadow: 0 0 40px var(--glow); pointer-events: none; }
.ghost-card { will-change: transform; }
html.is-shot { clip-path: circle(0px at 50% 38%); animation: shot-failsafe 0.01s 3.5s forwards; }
@keyframes shot-failsafe { to { clip-path: none; } }

/* services: cards with an icon, a two-tone title and an arrow */
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.svc-card-link { position: relative; display: grid; gap: 0.75rem; align-content: start; height: 100%; overflow: hidden; padding: clamp(22px, 2.4vw, 32px); padding-bottom: 78px; border: 1px solid rgba(238, 231, 218, 0.16); border-radius: 18px; background: rgba(12, 11, 9, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform 0.5s var(--ease-out), background 0.3s, box-shadow 0.5s; }
.svc-card-link::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.35s; background: linear-gradient(135deg, var(--amber), rgba(255, 138, 61, 0.2) 45%, var(--amber-hi)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.svc-card-link:hover, .svc-card-link:focus-visible { transform: translateY(-8px); background: rgba(228, 167, 63, 0.07); box-shadow: 0 30px 60px -34px var(--glow); }
.svc-card-link:hover::before, .svc-card-link:focus-visible::before { opacity: 1; }
.svc-ic { color: var(--amber); }
.svc-title { font: 600 clamp(1.4rem, 1.8vw, 1.75rem)/1.2 var(--f-display); font-stretch: 90%; }
.svc-title em { font-style: normal; color: var(--amber); }
.svc-text { color: var(--fg-2); font-size: 0.98rem; line-height: 1.55; max-width: 38ch; }
.svc-proof2 { color: var(--fg-3); font: 500 0.86rem/1.4 var(--f-display); }
.svc-arrow { position: absolute; right: 20px; bottom: 20px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), #ff8a3d); color: var(--on-amber); box-shadow: 0 10px 24px -10px var(--glow); transition: transform 0.4s var(--ease-out); }
.svc-card-link:hover .svc-arrow { transform: translateX(4px) scale(1.08); }
.svc-card-cta .svc-card-link { border-style: dashed; }

/* records: three cards, each with its own moving shape */
.records { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.rec-link { position: relative; display: grid; gap: 0.4rem; align-content: start; height: 100%; overflow: hidden; padding: 16px 16px 84px; border: 1px solid var(--line); border-radius: 30px; background: color-mix(in srgb, var(--slab) 80%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color 0.3s, transform 0.5s var(--ease-out), box-shadow 0.5s; }
.rec-link:hover, .rec-link:focus-visible { border-color: var(--amber); transform: translateY(-8px); box-shadow: 0 34px 70px -40px var(--glow); }
.rec-k { padding: 0 8px; font: 600 1rem var(--f-display); font-stretch: 90%; color: var(--amber-hi); }
.rec-v { padding: 0 8px; font: 250 clamp(2.1rem, 3vw, 3rem)/1 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; }
.rec-line { padding: 0 8px; color: var(--fg-2); font-size: 0.98rem; line-height: 1.5; max-width: 34ch; }
.rec-go { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), #ff8a3d); color: var(--on-amber); transition: transform 0.4s var(--ease-out); }
.rec-link:hover .rec-go { transform: translateX(4px) scale(1.08); }

.art { position: relative; display: block; height: 190px; margin-bottom: 0.9rem; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(90% 90% at 50% 38%, rgba(228, 167, 63, 0.2), transparent 70%), rgba(12, 11, 9, 0.55); }
/* the prize: rings that keep unlocking, a turning star and orbiting squares */
.art-prize .ring { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; border: 2px solid var(--amber); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.2); animation: ring-out 3.6s ease-out infinite; }
.art-prize .r2 { animation-delay: 1.2s; }
.art-prize .r3 { animation-delay: 2.4s; }
@keyframes ring-out { 0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); } }
.art-prize .star { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; fill: var(--amber); filter: drop-shadow(0 0 16px var(--glow)); animation: star-turn 14s linear infinite; }
@keyframes star-turn { to { transform: rotate(360deg); } }
.art-prize .chip { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; background: var(--amber-hi); border-radius: 2px; animation: chip-orbit var(--d) linear var(--o) infinite; }
@keyframes chip-orbit { from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg); } to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); } }
/* the rank: a leaderboard that fills, seventh lit */
.art-rank { display: grid; align-content: center; gap: 7px; padding: 22px 26px; }
.art-rank i { display: block; height: 11px; width: var(--w); border-radius: 6px; background: rgba(238, 231, 218, 0.16); transform-origin: left; animation: bar-in 1.2s var(--ease-out) both; animation-delay: calc(var(--k) * 90ms); }
.art-rank i.on { background: var(--amber); box-shadow: 0 0 16px var(--glow); animation: bar-in 1.2s var(--ease-out) 0.7s both, bar-pulse 2.4s ease-in-out 2s infinite; }
@keyframes bar-in { from { transform: scaleX(0); } }
@keyframes bar-pulse { 50% { filter: brightness(1.35); } }
.art-rank em { position: absolute; right: 16px; bottom: 8px; font: 200 3rem/1 var(--f-display); font-style: normal; font-stretch: 62%; font-variation-settings: 'wdth' 62; color: var(--amber-hi); }
/* the paper: sheets that fan, lines that write themselves, a seal that pulses */
.art-paper .sheet { position: absolute; left: 50%; top: 50%; width: 92px; height: 124px; margin: -62px 0 0 -46px; border-radius: 8px; background: #e9e2d4; box-shadow: 0 14px 30px -12px #000; }
.art-paper .s1 { transform: rotate(-12deg) translateX(-26px); background: #b8b0a0; animation: sheet-a 6s ease-in-out infinite alternate; }
.art-paper .s2 { transform: rotate(9deg) translateX(24px); background: #cfc7b7; animation: sheet-b 6s ease-in-out infinite alternate; }
.art-paper .s3 { z-index: 1; display: grid; align-content: start; gap: 8px; padding: 18px 12px; }
.art-paper .s3 u { display: block; height: 4px; border-radius: 2px; background: #3a3630; transform-origin: left; animation: write 3.2s ease-in-out infinite; }
.art-paper .s3 u:nth-child(2) { animation-delay: 0.3s; width: 80%; }
.art-paper .s3 u:nth-child(3) { animation-delay: 0.6s; width: 90%; }
.art-paper .s3 u:nth-child(4) { animation-delay: 0.9s; width: 55%; }
@keyframes write { 0%, 8% { transform: scaleX(0); } 45%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes sheet-a { to { transform: rotate(-16deg) translateX(-32px); } }
@keyframes sheet-b { to { transform: rotate(13deg) translateX(30px); } }
.art-paper .seal { position: absolute; left: calc(50% + 24px); top: calc(50% + 28px); z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 var(--glow); animation: seal 2.4s ease-in-out infinite; }
.art-paper .seal::after { content: ''; position: absolute; left: 10px; top: 8px; width: 9px; height: 15px; border: solid var(--on-amber); border-width: 0 3px 3px 0; transform: rotate(40deg); }
@keyframes seal { 50% { box-shadow: 0 0 0 12px rgba(228, 167, 63, 0); transform: scale(1.08); } 0% { box-shadow: 0 0 0 0 rgba(228, 167, 63, 0.55); } }

/* record pages */
.rec-detail { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.rec-detail-art .art { height: clamp(240px, 30vw, 380px); }
.rec-detail-body p { max-width: 54ch; margin-bottom: 1rem; font-size: 1.12rem; }
.rec-facts { margin: 1.6rem 0; border-bottom: 1px solid var(--line); }
.rec-facts div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.rec-facts dt { font: 500 0.98rem var(--f-display); font-stretch: 90%; color: var(--fg-3); }
.rec-facts dd { font: 500 1.1rem/1.35 var(--f-display); font-stretch: 94%; }

@media (max-width: 1100px) {
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-link { min-height: 0; }
  .rec-detail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sgrid { grid-template-columns: 1fr; }
  .rec-facts div { grid-template-columns: 1fr; gap: 2px; }
  .rail-btn { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .art *, .art { animation: none !important; }
  .art-rank i { transform: none; }
  html.is-shot { clip-path: none; animation: none; }
}

/* project hero: room for the screenshot above the headline */
.case-hero { height: min(94svh, 840px); }
.case-hero-shot { max-height: calc(100% - 84px - 310px); }
@media (max-width: 860px) {
  .case-hero-shot { max-height: calc(100% - 78px - 340px); }
}

/* ---------- v6: metrics as one strip, both marquees outlined ---------- */
.strip { display: flex; align-items: stretch; border-block: 1px solid var(--line); }
.stat { flex: 1 1 0; display: grid; align-content: start; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-n { font: 200 clamp(3.2rem, 5.6vw, 5.6rem)/0.9 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 0.55em; margin-left: 0.04em; color: var(--amber); }
.stat-l { color: var(--fg); font: 600 1rem/1.3 var(--f-display); font-stretch: 92%; }
.stat-sub { color: var(--fg-3); font: 500 0.86rem/1.4 var(--f-display); font-stretch: 92%; max-width: 30ch; }
.marquee-b span { color: transparent; -webkit-text-stroke: 1px var(--fg-3); }
@media (max-width: 860px) {
  .strip { flex-wrap: wrap; }
  .stat { flex: 1 1 50%; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .stat { flex-basis: 100%; border-left: 0 !important; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* ---------- v7: refined scale. Tighter type, less air, content capped on wide screens ---------- */
:root { --max: 1240px; }
html { font-size: clamp(15px, 0.35vw + 12px, 16.5px); }
.hero, .sec, .numbers, .foot, .page, .marquee { --gutter: max(var(--pad), calc((100vw - var(--max)) / 2)); }
.hero, .sec, .numbers, .foot { padding-left: var(--gutter); padding-right: var(--gutter); }
.page { padding-left: var(--gutter); padding-right: var(--gutter); padding-top: calc(var(--bar-h) + clamp(36px, 5vw, 72px)); }
.page.case { padding-top: var(--bar-h); }
.case-hero { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.case-facts, .next { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.case-facts .fact, .next a { padding-left: var(--gutter); padding-right: var(--gutter); }
.rail-wrap, .sec.beyond .frames { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.rail { padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-inline: var(--gutter); }
.rail-tools, .rail-track { margin-left: var(--gutter); margin-right: var(--gutter); padding-left: 0; padding-right: 0; }
.frames { padding-left: var(--gutter); padding-right: var(--gutter); }

/* hero: shorter, smaller type, no dead space under it */
.hero { min-height: min(100svh, 800px); padding-top: clamp(92px, 11vh, 120px); padding-bottom: clamp(36px, 5vh, 60px); gap: clamp(20px, 4vw, 56px); }

.role { font-size: 1.1rem; margin-top: 0.8rem; }
.status { margin-bottom: clamp(10px, 2vh, 20px); }
.hero-quote { margin-top: 1.1rem; min-height: 0; }

.hero-actions { margin-top: 1.1rem; }
.cta, .ghost { padding: 0.9em 1.25em; font-size: 1rem; }
.hero-photo { width: min(100%, 380px); }
.grid-floor { height: 36%; opacity: 0.8; }

/* strip: compact */

/* marquees: slimmer bands */
.marquee { padding: 0.1em 0; }
.marquee span { font-size: clamp(1.7rem, 3.2vw, 3rem); padding: 0 0.4em; }
.marquee span::after { height: 0.5em; width: 0.08em; }

/* sections: tighter rhythm, smaller headings */

.sec-head { gap: 0.7rem; }
.sec-title { font-size: clamp(2.1rem, 4.4vw, 3.9rem); }
.sec-sub { font-size: 1.02rem; }
.page-title { font-size: clamp(3.4rem, 8vw, 7.5rem); }
.page-title-md { font-size: clamp(2.8rem, 6.5vw, 6rem); }
.case-head .page-title { font-size: clamp(2.8rem, 7vw, 6.4rem); }
.page-head { margin-bottom: clamp(24px, 4vw, 48px); }
.about-grid { gap: clamp(24px, 4vw, 64px); }
.about-copy p { font-size: 1.05rem; }
.tcard { padding: 18px; }
.tcore { padding: clamp(18px, 2.4vw, 30px); }

.cpanel-title { font-size: clamp(2rem, 3.6vw, 3.3rem); }
.hcard-name { font-size: clamp(1.7rem, 2vw, 2.1rem); }
.rec-link { min-height: 380px; }
.svc-card-link { min-height: 230px; }

@media (max-width: 860px) {
  .hero { min-height: 0; padding-top: 96px; }
  .name { font-size: clamp(4rem, 19vw, 7rem); }
}

html { overflow-x: clip; }
body { overflow-x: clip; }

/* ---------- v8: cards that flip, calmer spacing, smaller metrics, finishing touches ---------- */
/* metrics: compact, one line */
.numbers { padding-top: 10px; padding-bottom: 10px; }

/* rhythm: less dead air between sections */
.sec { padding-top: clamp(34px, 4.2vw, 60px); padding-bottom: clamp(34px, 4.2vw, 60px); }
.sec-head { margin-bottom: clamp(16px, 2.2vw, 28px); }
.about-grid { align-items: center; }
.idcard { width: min(250px, 70vw); }
.strap { height: clamp(54px, 7vw, 84px); }
.about-facts div { padding: 10px 0; }
.stack .tcards { margin-top: 0; }
.cpanel { padding: clamp(20px, 2.6vw, 36px); }

/* project cards: short on the front, details on the back */
.hcard { flex: 0 0 min(370px, 82vw); perspective: 1400px; }
.hcard-in { display: block; height: 100%; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.hcard:hover .hcard-in, .hcard:focus-within .hcard-in { border-color: transparent; box-shadow: none; }
.hcard-flip { position: relative; height: 100%; transform-style: preserve-3d; transition: transform 0.75s var(--ease-out); }
.hcard:hover .hcard-flip, .hcard:focus-within .hcard-flip, .hcard.is-flipped .hcard-flip { transform: rotateY(180deg); }
.hcard-face { border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, var(--slab-2), var(--slab)); box-shadow: 0 30px 60px -40px #000; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.hcard-front { display: flex; flex-direction: column; height: 100%; }
.hcard-back { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; gap: 0.7rem; padding: 20px 22px; border-color: var(--amber); box-shadow: 0 30px 60px -40px #000, 0 0 60px -20px var(--glow); }
.hcard-art { aspect-ratio: 16 / 10; padding: 12px; }
.hcard-front .hcard-body { padding: 14px 18px 18px; gap: 0.3rem; flex: 0 0 auto; }
.hcard-front .hcard-line { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.hcard-name-sm { font-size: 1.5rem; }
.hcard-line-full { display: block; overflow: visible; }
.hcard-back .hcard-facts b { font-size: 1.7rem; }
.hcard-back .hcard-cta { margin-top: auto; padding-top: 0; position: relative; }
.hcard-back .hcard-cta a { position: static; }
.hcard-back .hcard-cta span { display: inline-flex; }
.hcard-front .stretch::after, .hcard-back .stretch::after { border-radius: 26px; }
@media (prefers-reduced-motion: reduce) {
  .hcard-flip { transition: none; }
}

/* beyond: shorter frames */

/* contact: email gets its own row so it never wraps mid-word */
.ctile:first-child { grid-column: 1 / -1; }
.ctile-v { overflow-wrap: normal; }
.foot { padding-top: clamp(24px, 3vw, 40px); padding-bottom: 22px; }
.foot-meta { margin-top: 0; }

/* finishing touches */
::selection { background: rgba(228, 167, 63, 0.35); color: #fff; }
html { scrollbar-width: thin; scrollbar-color: rgba(228, 167, 63, 0.5) transparent; }
.progress { position: fixed; left: 0; top: 0; z-index: 400; width: 100%; height: 2px; pointer-events: none; background: linear-gradient(90deg, var(--amber), var(--amber-hi)); box-shadow: 0 0 10px var(--glow); transform: scaleX(0); transform-origin: left; }
.sec-title { text-wrap: balance; }
.hcard-name, .cpanel-title, .page-title { text-wrap: balance; }

.ctile:nth-child(2) { grid-column: 1 / -1; }

/* v9: a stronger name, and the portrait framed tight */

.photo-inner img { transform-origin: 50% 20%; }
.id-photo img { transform-origin: 50% 20%; }

/* ---------- v10: bolder name, more breathing room on the left, experience ---------- */
:root { --pad: clamp(24px, 5vw, 80px); }
.name { font-stretch: 100%; font-variation-settings: normal; }
.id-name { font-family: var(--f-display); font-stretch: 100%; font-variation-settings: normal; line-height: 1.1; }
.hero-copy { padding-left: clamp(0px, 1vw, 12px); }
.exp { margin-top: clamp(22px, 3vw, 38px); }

/* ---------- v11: a cleaner name, a shorter Beyond ---------- */
.name { font-family: var(--f-display); font-weight: 700; letter-spacing: 0; word-spacing: 0.05em; }

.sec.beyond { padding-top: clamp(28px, 3.4vw, 48px); padding-bottom: clamp(24px, 3vw, 40px); }
.sec.beyond .sec-head { margin-bottom: 12px; }
.frames { padding-top: 6px; padding-bottom: 18px; gap: 16px; }
.frame { flex-basis: min(76vw, 250px); padding: 8px 8px 12px; }
.frame-photo { aspect-ratio: 16 / 9; }
.frame-photo .slot::before { top: 18%; bottom: 18%; }
.frame-photo .slot-hint { font-size: 0.72rem; padding: 6px 8px; }
.frame-org { font-size: 1.25rem; margin-top: 0.5rem; }
.frame-role { font-size: 0.88rem; margin-top: 0.2rem; }
.frame-facts { margin-top: 0.4rem; font-size: 0.9rem; }

/* ---- v12: case study text ---- */
.case-links { margin-top: clamp(14px, 2vw, 22px); }
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px clamp(20px, 3vw, 44px); margin: clamp(24px, 4vw, 44px) 0 0; padding: 16px 0; border-block: 1px solid var(--line, rgba(255,255,255,.14)); }
.case-meta dt { font: 600 .72rem/1 var(--mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--accent, #f5a524); margin-bottom: 6px; }
.case-meta dd { margin: 0; font-size: .98rem; line-height: 1.45; }
.case-study { display: grid; gap: clamp(26px, 4vw, 46px); margin: clamp(34px, 5vw, 64px) 0; }

/* ---- v13: screens gallery, experience type ---- */
.case-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(12px, 2vw, 22px); margin: clamp(10px, 3vw, 36px) 0 clamp(34px, 5vw, 64px); }
.case-gallery figure { margin: 0; border: 1px solid rgba(238, 231, 218, 0.14); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, 0.03); }
.case-gallery img { display: block; width: 100%; height: auto; }

/* ---- v14: live and code links on the card back ---- */
.hcard-ext { position: relative; z-index: 7; display: flex; gap: 14px; margin: 10px 0 0; font: 600 .85rem/1 var(--f-display, sans-serif); }
.hcard-ext a { display: inline-flex; align-items: center; gap: 5px; color: var(--amber-hi, #f5a524); text-decoration: underline; text-underline-offset: 3px; }
.hcard-ext svg { width: 13px; height: 13px; }

/* ---- v15: case study as boxes ---- */
.case-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: clamp(30px, 4vw, 56px) 0; }
.cbox { position: relative; grid-column: span 3; padding: clamp(20px, 2.4vw, 32px); border: 1px solid rgba(238, 231, 218, 0.14); border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); overflow: hidden; transition: border-color .3s, transform .3s; }
.cbox::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--amber, #f5a524), transparent 70%); opacity: .75; }
.cbox:hover { border-color: rgba(245, 165, 36, 0.5); transform: translateY(-2px); }
.cbox-how-it-was-built, .cbox-stack { grid-column: span 3; }
.cbox-the-result { background: linear-gradient(160deg, rgba(245, 165, 36, 0.16), rgba(245, 165, 36, 0.04)); border-color: rgba(245, 165, 36, 0.4); }
.cbox-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cbox-n { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; border: 1px solid rgba(245, 165, 36, 0.55); color: var(--amber-hi, #f5a524); font: 600 .78rem/1 var(--f-mono, ui-monospace, monospace); letter-spacing: .06em; }
.cbox-k { margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.cbox-t p { margin: 0 0 .9em; line-height: 1.65; font-size: clamp(.98rem, 1.05vw, 1.05rem); }
.cbox-t p:last-child { margin-bottom: 0; }
.cbox-stack .chips { margin: 0; }
@media (max-width: 760px) { .case-boxes { grid-template-columns: 1fr; } .cbox, .cbox-how-it-was-built, .cbox-stack { grid-column: auto; } }

.flow-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; counter-reset: none; }
.flow-boxes li { display: grid; align-content: start; gap: 8px; padding: 16px; border: 1px solid rgba(238, 231, 218, 0.14); border-radius: 16px; background: rgba(255, 255, 255, 0.03); }
.flow-boxes li::before, .flow-boxes li::marker { content: none; }
.flow-i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--amber, #f5a524); color: var(--on-amber, #1a1205); font: 700 .8rem/1 var(--f-display, sans-serif); }
.flow-boxes .flow-k { font-weight: 700; }
.flow-boxes .flow-v { font-size: .93rem; line-height: 1.5; opacity: .85; }
.flow.flow-boxes { border-left: 0; box-shadow: none; }
.flow.flow-boxes li { padding: 16px; }
.case-flow { display: block; }

/* ============ v16: cinematic opening, corporate name, music toggle ============ */
.name, .id-name, .cn-name { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-variation-settings: 'wdth' 125; text-transform: uppercase; letter-spacing: 0.004em; word-spacing: 0; line-height: 1; }
.name { font-size: clamp(2.7rem, 6.2vw, 6.1rem); line-height: 0.98; }
.name-line { padding-bottom: 0.06em; }
.id-name { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.01em; }
html.cinema-landed .name-line > span { transform: none !important; transition: none !important; }
html.is-cinema body { overflow: hidden; }

/* the gate in front of the laptop */
.portal-gate { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; background: radial-gradient(70% 55% at 50% 45%, rgba(245, 165, 36, 0.1), transparent 70%), #080706; transition: opacity 0.6s ease, visibility 0s 0.6s; }
.portal-gate.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes gate-pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.5); } 100% { box-shadow: 0 0 0 22px rgba(245, 165, 36, 0); } }

/* the stage */
.cn { position: fixed; inset: 0; z-index: 290; background: #000; overflow: hidden; color: #f4eee2; transition: opacity 0.5s ease; }
.cn.is-leaving { opacity: 0; pointer-events: none; }
.cn-floor { position: absolute; left: -35%; right: -35%; bottom: -8%; height: 64%; opacity: 0; transform-origin: 50% 100%; transform: perspective(540px) rotateX(66deg); background-image: linear-gradient(rgba(245, 165, 36, 0.38) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 165, 36, 0.38) 1px, transparent 1px); background-size: 76px 76px; -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 82%); mask-image: linear-gradient(to top, #000 0%, transparent 82%); animation: cn-grid 2.6s linear infinite; transition: opacity 1.4s ease; }
.cn.is-in .cn-floor { opacity: 0.85; }
.cn.is-dissolve .cn-floor, .cn.is-moving .cn-floor { opacity: 0; transition-duration: 0.8s; }
@keyframes cn-grid { to { background-position: 0 76px; } }

.cn-scene { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1500px; }
.cn-name { position: relative; font-size: var(--cn-px, 12vw); transform-style: preserve-3d; transform: rotateY(-27deg) rotateX(7deg); animation: cn-drift 12s cubic-bezier(0.2, 0.6, 0.2, 1) forwards; }
@keyframes cn-drift { to { transform: rotateY(-16deg) rotateX(3deg); } }
.cn-ln { display: block; white-space: nowrap; }
.cn-sizer { display: block; visibility: hidden; }
.cn-layer { position: absolute; inset: 0; display: block; opacity: 0; color: transparent; -webkit-text-stroke: 1.5px rgba(245, 165, 36, calc(0.95 - var(--i) * 0.1)); transform: translateZ(calc(var(--i) * -120px)); }
.cn-layer:nth-child(2) { color: #f4eee2; -webkit-text-stroke: 0; text-shadow: 0 0 60px rgba(245, 165, 36, 0.45), 0 0 140px rgba(245, 165, 36, 0.22); }
.cn.is-in .cn-layer { animation: cn-in 1.35s cubic-bezier(0.16, 0.85, 0.2, 1) both; animation-delay: calc((6 - var(--i)) * 85ms); }
@keyframes cn-in {
  from { opacity: 0; transform: translateZ(calc(var(--i) * -120px - 2600px)); }
  to { opacity: calc(1 - var(--i) * 0.11); transform: translateZ(calc(var(--i) * -120px)); }
}
.cn.is-moving .cn-layer { animation: none; transform: translateZ(0); opacity: 0; }
.cn.is-moving .cn-layer:nth-child(2) { opacity: 1; }
.cn.is-glitch .cn-scene { animation: cn-glitch 0.42s steps(2, end) both; }
@keyframes cn-glitch {
  0% { transform: translateX(-12px); filter: drop-shadow(8px 0 rgba(255, 50, 60, 0.85)) drop-shadow(-8px 0 rgba(60, 220, 255, 0.85)); }
  35% { transform: translateX(14px) skewX(-6deg); filter: drop-shadow(-9px 0 rgba(255, 50, 60, 0.85)) drop-shadow(9px 0 rgba(60, 220, 255, 0.85)); }
  70% { transform: translateX(-4px); filter: drop-shadow(4px 0 rgba(255, 50, 60, 0.6)) drop-shadow(-4px 0 rgba(60, 220, 255, 0.6)); }
  100% { transform: none; filter: none; }
}

.cn-avatar { position: absolute; inset: 0; display: grid; place-items: end center; opacity: 0; filter: blur(16px) brightness(0.35); transform: scale(1.04); pointer-events: none; transition: opacity 1s ease, filter 1s ease, transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cn.is-speaking .cn-avatar { opacity: 1; filter: none; transform: none; }
.cn.is-dissolve .cn-avatar { opacity: 0; filter: blur(14px) brightness(0); transform: scale(1.06); transition: opacity 1.1s ease-in, filter 1.1s ease-in, transform 1.1s ease-in; }
.cn-video { display: block; height: 100svh; width: auto; max-width: none; filter: drop-shadow(0 0 30px rgba(245, 165, 36, 0.28)); }
.cn-video.is-blend { mix-blend-mode: screen; }

.cn-scan { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px); }
.cn-scan::after { content: ''; position: absolute; left: 0; right: 0; top: -22%; height: 20%; background: linear-gradient(to bottom, transparent, rgba(245, 165, 36, 0.12), transparent); animation: cn-sweep 4.2s linear infinite; }
@keyframes cn-sweep { to { top: 110%; } }
.cn-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.82) 100%); }
.cn-skip { position: absolute; right: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vh, 32px); z-index: 4; padding: 0.55em 1.1em; border-radius: 999px; border: 1px solid rgba(238, 231, 218, 0.28); background: rgba(0, 0, 0, 0.45); color: var(--fg-2); font: 500 0.9rem/1 var(--f-display); cursor: pointer; }
.cn-skip:hover { color: var(--fg); border-color: var(--amber); }

/* the portrait while it assembles */
.px-reveal { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; z-index: 3; border-radius: inherit; }
.photo-inner { position: relative; }

/* music toggle in the top bar */
.snd { cursor: pointer; }
.snd .off { display: none; }
.snd.is-off .off { display: inline; }
.snd.is-off .w1, .snd.is-off .w2 { display: none; }
.snd:not(.is-off) .w1 { animation: snd-w 1.5s ease-in-out infinite; }
.snd:not(.is-off) .w2 { animation: snd-w 1.5s ease-in-out 0.25s infinite; }
@keyframes snd-w { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cn { display: none !important; }
  
  .snd .w1, .snd .w2 { animation: none !important; }
}

.portal-gate { cursor: pointer; }

/* ============ v17: critique pass ============ */
/* hero: the line that sells is bigger; fewer competing effects */
.hero-quote { font-size: clamp(1.75rem, 2.8vw, 2.55rem); }

#field { opacity: 0.55; }
.home .sec-tag { display: none; }

/* the numbers get room and a readable label */
.stat { padding: clamp(22px, 2.6vw, 36px) clamp(16px, 2vw, 28px); gap: 0.4rem; }
.stat-n { font-size: clamp(3rem, 4.6vw, 4.4rem); }
.stat-l { font-size: 1.05rem; max-width: 26ch; }
.stat-sub { font-size: 0.92rem; }

/* reading sizes */
.tcard-note { font-size: 0.88rem; }
.hud-pill { font-size: 0.86rem; }

.hcard-front .hcard-line { font-size: 1rem; line-height: 1.45; -webkit-line-clamp: 3; }
.hcard-line-full { font-size: 1rem; }

/* touch targets of at least 44px */
.icon-btn, .socials-sm .icon-btn { width: 44px; height: 44px; }
.bar-resume, .bar-menu, .cta, .ghost, .flip, .btn, .bar-nav .link { min-height: 44px; }
.cta, .ghost, .flip, .btn, .bar-nav .link { display: inline-flex; align-items: center; }
.hero-quote { max-width: 24ch; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; }
.hcard-cta span { min-height: 44px; align-items: center; }
.hcard-ext a { min-height: 44px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

.copy { min-width: 44px; min-height: 44px; }

.bar-resume, .bar-menu { align-items: center; justify-content: center; }

/* ============ v18: timeline, living intro background, site-wide motion ============ */

/* experience as a compact timeline */

.tl { list-style: none; margin: 14px 0 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: 8.2rem 22px minmax(0, 1fr); column-gap: 14px; opacity: 0.35; transform: translateY(8px); transition: opacity 0.6s ease, transform 0.6s ease; }
.tl-item.in { opacity: 1; transform: none; }
.tl-when { padding-top: 0.2rem; text-align: right; }
.tl-mid { position: relative; display: block; }
.tl-dot { position: absolute; left: 50%; top: 0.42rem; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; border: 2px solid var(--fg-3); background: #0c0b09; z-index: 2; transition: border-color 0.4s, background 0.4s, box-shadow 0.6s; }
.tl-item.in .tl-dot { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 5px rgba(245, 165, 36, 0.16), 0 0 18px rgba(245, 165, 36, 0.55); }
.tl-line { position: absolute; left: 50%; top: 1rem; bottom: -0.1rem; width: 2px; margin-left: -1px; background: rgba(238, 231, 218, 0.12); }
.tl-line::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--amber), rgba(245, 165, 36, 0.25)); transform: scaleY(0); transform-origin: top; transition: transform 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s; }
.tl-item.in .tl-line::after { transform: scaleY(1); }
.tl-item:last-child .tl-line { display: none; }
.tl-body { padding-bottom: 20px; }
.tl-role { margin: 0; }
.tl-org { color: var(--amber-hi); }
.tl-type { margin-left: 8px; padding: 1px 8px; border: 1px solid rgba(245, 165, 36, 0.5); border-radius: 999px; font: 600 0.66rem/1.5 var(--f-mono, ui-monospace, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); vertical-align: 1px; }
.tl-what { margin: 0; color: var(--fg-2); }
@media (max-width: 640px) {
  .tl-item { grid-template-columns: 18px minmax(0, 1fr); column-gap: 12px; }
  .tl-when { grid-column: 2; grid-row: 1; text-align: left; padding: 0; }
  .tl-mid { grid-column: 1; grid-row: 1 / span 2; }
  .tl-body { grid-column: 2; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .tl-item { opacity: 1; transform: none; transition: none; } .tl-line::after { transform: scaleY(1); transition: none; } }

/* intro: the background is alive */
.cn-halo { position: absolute; inset: 0; background: radial-gradient(38% 58% at 50% 60%, rgba(245, 165, 36, 0.26), rgba(245, 165, 36, 0.06) 55%, transparent 75%); opacity: 0; animation: cn-pulse 3.4s ease-in-out infinite; transition: opacity 1.6s ease; }
.cn.is-in .cn-halo { opacity: 1; }
.cn.is-dissolve .cn-halo, .cn.is-moving .cn-halo { opacity: 0; transition-duration: 0.9s; }
@keyframes cn-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.cn-fx { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.cn.is-in .cn-fx { opacity: 1; }
.cn.is-moving .cn-fx { opacity: 0; transition-duration: 0.8s; }
.cn-floor { animation-duration: 1.8s; }

/* sound hint while the browser is holding audio back */
.sound-hint { position: fixed; left: 50%; transform: translateX(-50%); z-index: 400; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; border: 1px solid rgba(245, 165, 36, 0.5); background: rgba(10, 9, 7, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--fg); font: 500 0.92rem/1 var(--f-display); transition: opacity 0.4s ease, transform 0.4s ease; }
.sound-hint.is-gone { opacity: 0; transform: translate(-50%, 10px); }
.sh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: sh-pulse 1.4s ease-out infinite; }
@keyframes sh-pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.7); } 100% { box-shadow: 0 0 0 12px rgba(245, 165, 36, 0); } }

/* site-wide motion */
.fx-spot { position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0; mix-blend-mode: screen; background: radial-gradient(circle, rgba(245, 165, 36, 0.11), rgba(245, 165, 36, 0.04) 40%, transparent 65%); transition: opacity 0.6s ease; }
.fx-spot.on { opacity: 1; }
.fx-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.18s ease-out, border-color 0.3s, box-shadow 0.3s; }
.fx-tilt:hover { background-image: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(245, 165, 36, 0.12), transparent 70%); }
.cta, .ghost, .btn, .bar-resume, .icon-btn { transition: translate 0.2s ease-out, background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.sec { position: relative; }
.sec::before { content: ''; position: absolute; top: 0; left: var(--gutter, 5vw); right: var(--gutter, 5vw); height: 1px; background: linear-gradient(90deg, var(--amber), rgba(245, 165, 36, 0.12) 55%, transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(0.3, 0.7, 0.2, 1); pointer-events: none; }
.sec.fx-seen::before { transform: scaleX(1); }
.numbers.fx-seen .stat { animation: stat-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.numbers.fx-seen .stat:nth-child(2) { animation-delay: 0.08s; }
.numbers.fx-seen .stat:nth-child(3) { animation-delay: 0.16s; }
.numbers.fx-seen .stat:nth-child(4) { animation-delay: 0.24s; }
@keyframes stat-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-photo { will-change: translate; }
@media (prefers-reduced-motion: reduce) {
  .fx-spot { display: none; }
  .sec::before { transform: scaleX(1); transition: none; }
  .numbers.fx-seen .stat { animation: none; }
  .cn-halo, .sh-dot { animation: none; }
}

/* ============ v19: sound button, more motion ============ */

/* the sound button */
.snd.snd-pill { display: inline-flex; align-items: center; width: auto; border-radius: 999px; cursor: pointer; border: 1px solid rgba(245, 165, 36, 0.45); background: rgba(12, 11, 9, 0.55); color: var(--fg); font: 600 0.88rem/1 var(--f-display); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.snd.snd-pill:hover { background: rgba(245, 165, 36, 0.14); border-color: var(--amber); }
.snd .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.snd .eq i { display: block; width: 3px; height: 100%; border-radius: 2px; background: var(--amber); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.snd .eq i:nth-child(2) { animation-duration: 0.74s; animation-delay: -0.2s; }
.snd .eq i:nth-child(3) { animation-duration: 1.2s; animation-delay: -0.5s; }
.snd .eq i:nth-child(4) { animation-duration: 0.9s; animation-delay: -0.1s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.snd.is-off { border-color: var(--line); color: var(--fg-3); }
.snd.is-off .eq i { animation: none; transform: scaleY(0.2); background: var(--fg-3); }
.snd .w1, .snd .w2, .snd .off { display: none; }
.snd-intro { position: fixed; top: clamp(14px, 3vh, 28px); right: clamp(14px, 3vw, 32px); z-index: 500; display: none; }
html.is-portal .snd-intro, html.is-cinema .snd-intro { display: inline-flex; }
@media (max-width: 560px) { .snd .snd-l { display: none; } .snd.snd-pill { padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .snd .eq i { animation: none; transform: scaleY(0.6); } }

/* name: a slow sheen of light passes over the letters */
.name-line > span { background-image: linear-gradient(105deg, var(--fg) 0%, var(--fg) 42%, #fff8e6 50%, var(--fg) 58%, var(--fg) 100%); background-size: 260% 100%; background-position: 130% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: name-sheen 8s ease-in-out 3s infinite; }
@keyframes name-sheen { 0%, 72% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* the hero call to action breathes now and then */
.hero-actions .cta { animation: cta-breathe 5.5s ease-out 4s infinite; }
@keyframes cta-breathe { 0%, 78% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); } 86% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.55); } 100% { box-shadow: 0 0 0 18px rgba(245, 165, 36, 0); } }

/* the portrait frame corners breathe */
.hud-c { animation: hud-breathe 4.2s ease-in-out infinite; }
.hud-tr { animation-delay: -1s; } .hud-br { animation-delay: -2s; } .hud-bl { animation-delay: -3s; }
@keyframes hud-breathe { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(245, 165, 36, 0.8)); } }

/* section titles are drawn in */
.sec.fx-seen .sec-title { animation: title-wipe 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes title-wipe { from { clip-path: inset(0 100% 0 0); transform: translateX(-12px); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* project cards fan in along the rail */
.sec.fx-seen .rail .hcard { animation: hc-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.sec.fx-seen .rail .hcard:nth-child(2) { animation-delay: 0.07s; }
.sec.fx-seen .rail .hcard:nth-child(3) { animation-delay: 0.14s; }
.sec.fx-seen .rail .hcard:nth-child(4) { animation-delay: 0.21s; }
.sec.fx-seen .rail .hcard:nth-child(n + 5) { animation-delay: 0.28s; }
@keyframes hc-in { from { opacity: 0; translate: 90px 18px; } to { opacity: 1; translate: 0 0; } }

/* service icons draw themselves, then nod on hover */
.svc-ic svg path, .svc-ic svg rect, .svc-ic svg circle, .svc-ic svg line { stroke-dasharray: 160; stroke-dashoffset: 160; }
.svc-card.is-in .svc-ic svg path, .svc-card.is-in .svc-ic svg rect, .svc-card.is-in .svc-ic svg circle, .svc-card.is-in .svc-ic svg line { animation: ic-draw 1.3s ease-out 0.15s forwards; }
@keyframes ic-draw { to { stroke-dashoffset: 0; } }
.svc-card:hover .svc-ic { animation: ic-nod 0.7s ease-in-out; }
@keyframes ic-nod { 0%, 100% { transform: none; } 30% { transform: translateY(-4px) rotate(-6deg); } 60% { transform: translateY(1px) rotate(4deg); } }

/* a ring that trails the cursor */
.fx-ring { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid rgba(245, 165, 36, 0.7); border-radius: 50%; pointer-events: none; z-index: 450; opacity: 0; transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, margin 0.25s ease, background-color 0.25s ease, border-color 0.25s ease; mix-blend-mode: screen; }
.fx-ring.on { opacity: 1; }
.fx-ring.is-hot { width: 58px; height: 58px; margin: -29px 0 0 -29px; background-color: rgba(245, 165, 36, 0.12); border-color: var(--amber); }
.fx-ring.is-down { width: 22px; height: 22px; margin: -11px 0 0 -11px; background-color: rgba(245, 165, 36, 0.35); }
@media (hover: none), (prefers-reduced-motion: reduce) { .fx-ring { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .name-line > span { animation: none; background-position: 0 0; }
  .hero-actions .cta, .hud-c { animation: none; }
  .sec.fx-seen .sec-title, .sec.fx-seen .rail .hcard { animation: none; }
  .svc-ic svg path, .svc-ic svg rect, .svc-ic svg circle, .svc-ic svg line { stroke-dashoffset: 0; animation: none !important; }
}

.snd.snd-pill { white-space: nowrap; flex: none; height: 42px; padding: 0 12px 0 11px; font-size: 0.84rem; gap: 8px; }
.snd .snd-l { white-space: nowrap; }
.bar-tools { flex-wrap: nowrap; }

.snd.snd-pill.snd-intro { display: none; }
html.is-portal .snd.snd-pill.snd-intro, html.is-cinema .snd.snd-pill.snd-intro { display: inline-flex; }

/* ============ v20: motion that follows the scroll ============ */
.fx-wash { position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
    radial-gradient(46% 38% at calc(12% + 76% * var(--sp, 0)) calc(26% + 40% * var(--sp, 0)), rgba(245, 165, 36, 0.10), transparent 70%),
    radial-gradient(38% 30% at calc(88% - 70% * var(--sp, 0)) calc(78% - 30% * var(--sp, 0)), rgba(255, 120, 60, 0.06), transparent 70%); }

/* the section spine */
.spine { position: fixed; right: clamp(10px, 1.6vw, 26px); top: 50%; z-index: 60; display: grid; gap: 14px; transform: translateY(-50%) translateX(20px); opacity: 0; pointer-events: none; transition: opacity 0.5s ease, transform 0.5s ease; }
.spine.is-shown { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.spine-rail { position: absolute; right: 4px; top: 6px; bottom: 6px; width: 1px; background: rgba(238, 231, 218, 0.16); }
.spine-rail i { position: absolute; inset: 0; background: var(--amber); transform: scaleY(var(--fill, 0)); transform-origin: top; transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.2, 1); }
.spine a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 18px; color: var(--fg-3); font: 500 0.78rem/1 var(--f-display); }
.spine a i { order: 2; position: relative; z-index: 1; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--fg-3); background: #0c0b09; transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.4s; }
.spine a span { opacity: 0; transform: translateX(8px); transition: opacity 0.3s, transform 0.3s; white-space: nowrap; padding: 3px 8px; border-radius: 6px; background: rgba(12, 11, 9, 0.75); }
.spine a:hover span, .spine a.is-on span { opacity: 1; transform: none; }
.spine a:hover { color: var(--fg); }
.spine a.is-on { color: var(--fg); }
.spine a.is-on i { background: var(--amber); border-color: var(--amber); transform: scale(1.35); box-shadow: 0 0 0 5px rgba(245, 165, 36, 0.18), 0 0 16px rgba(245, 165, 36, 0.6); }
@media (max-width: 900px) { .spine { display: none; } }

.marquee { will-change: transform; }
.hero-copy { will-change: translate, opacity; }

/* scroll-driven entrances, where the browser supports them */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tcard, .tcore, .rec, .svc-card, .cbox, .ctile, .cpanel-main, .about-copy, .tl-body { animation: sd-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 62%; }
    .sec-sub, .exp .band-title { animation: sd-slide linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .stack .tcards, .records .recs { animation: sd-depth linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
}
@keyframes sd-rise { from { translate: 0 54px; scale: 0.93; filter: blur(7px); } to { translate: 0 0; scale: 1; filter: blur(0); } }
@keyframes sd-slide { from { translate: -40px 0; filter: blur(4px); } to { translate: 0 0; filter: blur(0); } }
@keyframes sd-depth { from { rotate: x 8deg; } to { rotate: x 0deg; } }

/* ============ v21: cinematic touches and fidgets ============ */

/* the stage: letterbox, anamorphic flare, film grain; a slower, steadier flight */
.cn-bar { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 3; transition: height 1.3s cubic-bezier(0.3, 0.7, 0.2, 1); }
.cn-bar-t { top: 0; } .cn-bar-b { bottom: 0; }
.cn.is-in .cn-bar { height: 8.5vh; }
.cn.is-moving .cn-bar, .cn.is-leaving .cn-bar { height: 0; transition-duration: 1.5s; }
.cn-flare { position: absolute; left: -10%; right: -10%; top: 50%; height: 3px; margin-top: -1px; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 190, 90, 0.0) 15%, rgba(255, 226, 170, 0.95) 50%, rgba(255, 190, 90, 0.0) 85%, transparent); filter: blur(1px); box-shadow: 0 0 40px 8px rgba(245, 165, 36, 0.45); transform: scaleX(0.1); }
.cn.is-glitch .cn-flare { animation: cn-flare 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes cn-flare { 0% { opacity: 0; transform: scaleX(0.05); } 18% { opacity: 1; transform: scaleX(0.7); } 100% { opacity: 0; transform: scaleX(1.2); } }
.cn-grain { position: absolute; z-index: 2; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); animation: cn-grain 0.7s steps(7) infinite; }
@keyframes cn-grain { 0% { transform: translate(0, 0); } 14% { transform: translate(-6%, 4%); } 28% { transform: translate(5%, -7%); } 42% { transform: translate(-3%, 8%); } 57% { transform: translate(7%, 2%); } 71% { transform: translate(-8%, -3%); } 85% { transform: translate(2%, 6%); } 100% { transform: translate(0, 0); } }
.cn.is-moving .cn-layer { transition: transform 1.6s cubic-bezier(0.65, 0, 0.25, 1), opacity 1.2s ease; }

/* click shockwave and sparks */
.fx-wave { position: fixed; z-index: 460; width: 0; height: 0; pointer-events: none; }
.fx-wave::before { content: ''; position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(245, 165, 36, 0.9); animation: fx-wave 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.fx-wave i { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #ffd27a; animation: fx-spark 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes fx-wave { to { transform: scale(7); opacity: 0; } }
@keyframes fx-spark { to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }

/* embers behind the cursor */
.fx-ember { position: fixed; z-index: 440; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #ffe3a8, rgba(245, 165, 36, 0.4) 60%, transparent 70%); animation: fx-ember 0.9s ease-out forwards; }
@keyframes fx-ember { to { transform: translate(var(--ex, 0px), -26px) scale(0.2); opacity: 0; } }

/* the name answers a click */
.name.is-poke { cursor: pointer; }
.name.is-glitch { animation: name-glitch 0.5s steps(2, end); }
@keyframes name-glitch {
  0% { filter: drop-shadow(5px 0 rgba(255, 50, 60, 0.85)) drop-shadow(-5px 0 rgba(60, 220, 255, 0.85)); transform: translateX(-5px) skewX(-4deg); }
  30% { filter: drop-shadow(-6px 0 rgba(255, 50, 60, 0.85)) drop-shadow(6px 0 rgba(60, 220, 255, 0.85)); transform: translateX(7px); }
  60% { filter: drop-shadow(3px 0 rgba(255, 50, 60, 0.6)) drop-shadow(-3px 0 rgba(60, 220, 255, 0.6)); transform: translateX(-3px) skewX(3deg); }
  100% { filter: none; transform: none; }
}

/* the portrait leans toward the cursor */
.photo-frame { transform: perspective(900px) rotateY(var(--hx, 0deg)) rotateX(var(--hy, 0deg)); transition: transform 0.25s ease-out; transform-style: preserve-3d; }

/* a beam of light crosses the page when the section changes */
.fx-beam { position: fixed; left: 0; right: 0; top: 0; height: 120px; z-index: 55; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(245, 165, 36, 0.14) 45%, rgba(255, 226, 170, 0.35) 50%, rgba(245, 165, 36, 0.14) 55%, transparent); transform: translateY(-140px); animation: fx-beam 1s cubic-bezier(0.45, 0, 0.25, 1) forwards; }
@keyframes fx-beam { to { transform: translateY(calc(100vh + 20px)); opacity: 0.2; } }

@media (prefers-reduced-motion: reduce) {
  .cn-bar, .cn-flare, .cn-grain, .fx-wave, .fx-ember, .fx-beam { display: none !important; }
  .name.is-glitch { animation: none; }
  .photo-frame { transform: none; }
}

/* lighter grain: no blend mode, smaller bleed */
.cn-grain { inset: -12%; mix-blend-mode: normal; opacity: 0.06; will-change: transform; }

/* ============ v22: phone hero, captions, interactive text ============ */

/* phone only: the portrait no longer pushes the name off the first screen */
@media (max-width: 640px) {
  .hero { min-height: 0; padding-top: 84px; gap: 14px; }
  .hero-photo { order: 0; width: min(46%, 190px); margin: 0 auto 4px; }
  .hero-copy { justify-items: start; }
  .hero-quote { max-width: 100%; }
  .hero-actions { margin-top: 1rem; }
  .cn-video { height: 78svh; }
}

/* typewriter captions beside the avatar */
.cn-cap { position: absolute; z-index: 3; margin: 0; max-width: min(27vw, 380px); top: 40%; opacity: 0; pointer-events: none; font: italic 400 clamp(1.05rem, 1.7vw, 1.55rem)/1.35 var(--f-text); color: #f4eee2; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.8), 0 0 28px rgba(245, 165, 36, 0.25); transition: opacity 0.5s ease, transform 0.5s ease; }
.cn-cap-l { left: clamp(18px, 5vw, 80px); text-align: left; transform: translateX(-14px); }
.cn-cap-r { right: clamp(18px, 5vw, 80px); text-align: right; transform: translateX(14px); }
.cn-cap.on { opacity: 1; transform: none; }
.cn-cap.typing::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -0.12em; background: var(--amber); animation: cap-caret 0.7s steps(2) infinite; }
@keyframes cap-caret { 50% { opacity: 0; } }
.cn.is-dissolve .cn-cap, .cn.is-moving .cn-cap { opacity: 0; }
@media (max-width: 640px) {
  .cn-cap { max-width: 72vw; font-size: 1.05rem; }
  .cn-cap-l { left: 16px; }
  .cn-cap-r { top: auto; right: 16px; }
}

/* text that does something */
.inline-link { color: var(--amber-hi); text-decoration: underline; text-decoration-color: rgba(245, 165, 36, 0.45); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color 0.2s, text-decoration-color 0.2s, background-color 0.2s; border-radius: 3px; }
.inline-link:hover, .inline-link:focus-visible { color: #1a1205; background: var(--amber); text-decoration-color: transparent; }

.tchips li[data-used] { position: relative; cursor: help; transition: transform 0.2s ease, border-color 0.2s, background-color 0.2s; }
.tchips li[data-used]:hover, .tchips li[data-used]:focus { transform: translateY(-3px); border-color: var(--amber); background-color: rgba(245, 165, 36, 0.1); outline: none; }
.tchips li[data-used]::after { content: attr(data-used); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px); min-width: max-content; max-width: 240px; padding: 7px 11px; border-radius: 8px; background: #15120d; border: 1px solid rgba(245, 165, 36, 0.5); color: var(--fg); font: 500 0.82rem/1.3 var(--f-display); white-space: normal; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 5; }
.tchips li[data-used]:hover::after, .tchips li[data-used]:focus::after { opacity: 1; transform: translate(-50%, 0); }

.stat { position: relative; }
.stat-a { color: inherit; text-decoration: none; }
.stat-a::after { content: ''; position: absolute; inset: 0; }
.stat-a:hover, .stat-a:focus-visible { color: var(--amber-hi); outline: none; }
.stat:hover .stat-n { color: var(--amber-hi); }
.stat:focus-within { background: rgba(245, 165, 36, 0.06); }

.qw { display: inline-block; cursor: default; transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1), color 0.2s; }
.qw:hover { transform: translateY(-5px) rotate(-2deg); color: var(--amber-hi); }
.qw.is-hop { animation: qw-hop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes qw-hop { 0% { transform: none; } 40% { transform: translateY(-14px) scale(1.12) rotate(-4deg); } 100% { transform: none; } }

/* the card's flip button is gone; the card itself is the control */
.idcard { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .qw, .tchips li[data-used] { transition: none; } .qw.is-hop { animation: none; } }

/* captions sit above and below the name band so they never fight the letters */
.cn-cap-l { top: 16%; }
.cn-cap-r { top: auto; bottom: 15%; }
@media (max-width: 640px) { .cn-cap-l { top: 14%; } .cn-cap-r { bottom: 15%; } }

/* cheaper scroll entrances: no blur filters on many elements at once */
@keyframes sd-rise { from { translate: 0 44px; scale: 0.95; } to { translate: 0 0; scale: 1; } }
@keyframes sd-slide { from { translate: -32px 0; } to { translate: 0 0; } }

/* ---- v23: nav labels, contact me button, experience section ---- */
.bar-contact { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em; border-radius: 999px; border: 1px solid rgba(245, 165, 36, 0.55); color: var(--fg); font: 600 0.9rem/1 var(--f-display); text-decoration: none; background: rgba(12, 11, 9, 0.5); transition: background-color 0.2s, border-color 0.2s, translate 0.2s; }
.bar-contact:hover { background: rgba(245, 165, 36, 0.16); border-color: var(--amber); }
.bar-nav .nav-contact { display: none; }

@media (max-width: 860px) {
  .bar-nav .nav-contact { display: inline-flex; }
  .bar-contact { display: none; }
}

.bar-contact { white-space: nowrap; flex: none; }

/* ---- v24: volunteering line art ---- */
.frame-photo.is-art { display: grid; place-items: center; background:
  radial-gradient(60% 70% at 50% 40%, rgba(245, 165, 36, 0.28), rgba(245, 165, 36, 0.05) 70%),
  linear-gradient(160deg, #3a2a14, #17120b); overflow: hidden; }
.frame-art { display: block; width: 78%; color: #ffd88a; }
.frame-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.frame-art .a-draw { stroke-dasharray: 260; stroke-dashoffset: 260; animation: art-draw 2.2s ease-out forwards; }
.frame-art .a-dot { fill: var(--amber); animation: art-twinkle 2.4s ease-in-out infinite; }
.frame-art .a-dot.d2 { animation-delay: -1.1s; }
.frame-art .a-wave { opacity: 0; animation: art-wave 2s ease-in-out infinite; }
.frame-art .a-wave.w2 { animation-delay: 0.3s; } .frame-art .a-wave.w3 { animation-delay: 0.6s; }
.frame-art .a-float { animation: art-float 4s ease-in-out infinite; }
.frame-art .f2 { animation-delay: -1.3s; } .frame-art .f3 { animation-delay: -2.4s; }
.frame-art .a-sun { transform-origin: 192px 36px; animation: art-spin 14s linear infinite; }
.frame-art .a-spark { animation: art-twinkle 2s ease-in-out infinite; }
@keyframes art-draw { to { stroke-dashoffset: 0; } }
@keyframes art-twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes art-wave { 0% { opacity: 0; transform: translateX(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateX(8px); } }
@keyframes art-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes art-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .frame-art * { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; } }

.case-gallery img { aspect-ratio: 16 / 10; object-fit: contain; background: #0c0b09; }

.role-tag { display: inline-block; margin: 0 0 0.6rem; padding: 2px 10px; border: 1px solid rgba(245, 165, 36, 0.55); border-radius: 999px; font: 600 0.78rem/1.5 var(--f-display); color: var(--amber-hi); }

/* the sound prompt is easy to see while the laptop loads */
.sound-hint { bottom: clamp(70px, 12vh, 120px); padding: 0.75em 1.3em; font-size: 1rem; box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.5); animation: hint-pulse 1.8s ease-out infinite; }
@keyframes hint-pulse { to { box-shadow: 0 0 0 18px rgba(245, 165, 36, 0); } }
@media (prefers-reduced-motion: reduce) { .sound-hint { animation: none; } }

/* ============ v30: experience in the same voice as the rest, contact form ============ */
.sec.experience { padding-top: clamp(34px, 4.2vw, 60px); }
.sec.experience .exp { margin-top: 0; }
.tl { max-width: 62rem; margin-top: 0; }
.tl-when { font: 500 0.95rem/1.4 var(--f-display); color: var(--fg-3); }
.tl-role { font: 600 1.18rem/1.3 var(--f-display); }
.tl-org { font: 500 0.98rem/1.35 var(--f-display); margin: 0.15rem 0 0.4rem; }
.tl-what { font-size: 1.05rem; line-height: 1.6; max-width: 60ch; }
.tl-type { font-size: 0.7rem; }
@media (min-width: 900px) { .tl-item { grid-template-columns: 9.5rem 22px minmax(0, 1fr); } }

.cpanel-title .q { color: var(--amber); margin: 0 0.04em; }
.cform { display: grid; gap: 14px; width: 100%; max-width: 40rem; margin-top: 0.4rem; }
.cform-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cf { display: grid; gap: 6px; }
.cf > span, .cf-purpose legend { font: 600 0.9rem/1.2 var(--f-display); color: var(--fg-2); }
.cf input, .cf textarea { width: 100%; padding: 0.8em 1em; border: 1px solid rgba(238, 231, 218, 0.2); border-radius: 12px; background: rgba(255, 255, 255, 0.04); color: var(--fg); font: 400 1rem/1.4 var(--f-text); transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.cf textarea { resize: vertical; min-height: 7rem; }
.cf input::placeholder, .cf textarea::placeholder { color: var(--fg-3); }
.cf input:focus, .cf textarea:focus { outline: none; border-color: var(--amber); background: rgba(245, 165, 36, 0.06); box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.14); }
.cf-purpose { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-purpose legend { padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em; border: 1px solid rgba(238, 231, 218, 0.22); border-radius: 999px; font: 500 0.95rem/1 var(--f-display); color: var(--fg-2); transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.chip-radio:hover span { border-color: var(--amber); color: var(--fg); }
.chip-radio input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--on-amber); transform: translateY(-1px); }
.chip-radio input:focus-visible + span { box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.3); }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.cform-status { min-height: 1.4em; margin: 0; font: 500 0.98rem/1.4 var(--f-display); color: var(--fg-2); }
.cform-status[data-kind='ok'] { color: #9fe3a5; }
.cform-status[data-kind='error'] { color: #ff9b8a; }
.cform button[disabled] { opacity: 0.6; cursor: progress; }
@media (max-width: 640px) { .cform-row { grid-template-columns: 1fr; } }

/* ============ v31: projects grouped by technology ============ */
.pgroup { margin-top: clamp(30px, 4.6vw, 64px); }
.pgroup:first-of-type { margin-top: 0; }
.pgroup-head { display: grid; gap: 0.35rem; margin-bottom: clamp(12px, 1.8vw, 22px); max-width: 62rem; }
.pgroup-title { font: 600 clamp(1.4rem, 2.4vw, 2rem)/1.15 var(--f-display); letter-spacing: -0.005em; }
.pgroup-line { margin: 0; color: var(--fg-2); font-size: 1.02rem; line-height: 1.55; max-width: 60ch; }
.rail-wrap.is-short .rail-tools, .rail-wrap.is-short .rail-track { display: none; }

/* ============ v32: projects orbit and group pages ============ */
.proj-orbit { --r: clamp(130px, 22vw, 285px); position: relative; width: min(100%, 880px); aspect-ratio: 1.12 / 1; margin: 0 auto; display: grid; place-items: center; }
.orbit-core { position: relative; z-index: 2; text-align: center; padding: 0 1rem; pointer-events: none; }
.orbit-title { font: 250 clamp(2.4rem, 5.6vw, 4.8rem)/0.98 var(--f-display); font-stretch: 62%; font-variation-settings: 'wdth' 62; letter-spacing: -0.01em; max-width: 8ch; margin: 0 auto; }
.orbit-ring { position: absolute; inset: 0; animation: orbit-spin 44s linear infinite; }
.orbit-item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)); }
.orbit-card { position: absolute; left: -108px; top: -96px; width: 216px; transform: rotate(calc(var(--a) * -1)); }
.orbit-card-in { animation: orbit-counter 44s linear infinite; }
.orbit-link { display: grid; gap: 8px; padding: 10px 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(238, 231, 218, 0.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-decoration: none; color: var(--fg); transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1), border-color 0.25s, background-color 0.25s, box-shadow 0.3s; }
.orbit-link:hover, .orbit-link:focus-visible { transform: scale(1.08); border-color: var(--amber); background: rgba(245, 165, 36, 0.1); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8), 0 0 40px -10px var(--glow); outline: none; }
.orbit-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #3a2a14, #17120b); }
.orbit-thumb img, .orbit-thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.orbit-name { font: 600 1.02rem/1.25 var(--f-display); }
.orbit-count { font: 500 0.88rem/1.2 var(--f-display); color: var(--amber-hi); }
@keyframes orbit-spin { to { transform: rotate(-360deg); } }
@keyframes orbit-counter { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .proj-orbit { aspect-ratio: auto; display: block; }
  .orbit-core { padding: 0 0 18px; text-align: left; }
  .orbit-title { max-width: none; margin: 0; }
  .orbit-ring { position: static; animation: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .orbit-item { position: static; width: auto; height: auto; transform: none; }
  .orbit-card { position: static; width: auto; transform: none; }
  .orbit-card-in { animation: none; }
}
@media (prefers-reduced-motion: reduce) { .orbit-ring, .orbit-card-in { animation: none; } }

.gcards { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0 var(--gutter, var(--pad)); }
.gcards .hcard { flex: 0 0 min(390px, 100%); }
.gnav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: clamp(36px, 5vw, 64px) var(--gutter, var(--pad)) 0; }

/* group pages: heading on top, cards in a row below */
.page.group { display: block; padding-bottom: clamp(60px, 8vw, 110px); }
.page.group .page-head { display: grid; gap: 0.8rem; max-width: 62rem; padding: 0 var(--gutter, var(--pad)); margin-bottom: clamp(24px, 3.4vw, 48px); }
.page.group .page-title { font-size: clamp(2.4rem, 6vw, 5rem); }
.page.group .page-sub { max-width: 60ch; }

.page.group .page-head, .page.group .gcards, .page.group .gnav { padding-left: 0; padding-right: 0; }
.page.group { padding-top: calc(var(--bar-h) + clamp(36px, 5vw, 72px)); }

/* ============ v33: skill cards as terminal windows ============ */
.tcard { position: relative; padding-top: 3.1rem; overflow: hidden; }
.tcard::before { content: ""; position: absolute; left: 18px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: rgba(245, 165, 36, 0.95); box-shadow: 18px 0 0 rgba(245, 165, 36, 0.5), 36px 0 0 rgba(245, 165, 36, 0.22); }
.tcard::after { content: ""; position: absolute; left: 0; right: 0; top: 40px; height: 1px; background: linear-gradient(90deg, rgba(245, 165, 36, 0.5), rgba(238, 231, 218, 0.08) 70%, transparent); }
.tcard-title { position: absolute; left: 90px; top: 12px; margin: 0; font-size: 0.78rem; letter-spacing: 0.12em; }
.tcard .tchips::after { content: ""; flex: none; align-self: center; width: 9px; height: 1.15em; margin-left: 4px; background: var(--amber); animation: term-caret 1.05s steps(2) infinite; }
@keyframes term-caret { 50% { opacity: 0; } }
.tcard .tchips li { opacity: 0; transform: translateY(6px); }
.tcard.is-in .tchips li { animation: chip-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes chip-in { to { opacity: 1; transform: none; } }
.tcard.is-in .tchips li:nth-child(1) { animation-delay: 0.22s; }
.tcard.is-in .tchips li:nth-child(2) { animation-delay: 0.29000000000000004s; }
.tcard.is-in .tchips li:nth-child(3) { animation-delay: 0.36s; }
.tcard.is-in .tchips li:nth-child(4) { animation-delay: 0.43000000000000005s; }
.tcard.is-in .tchips li:nth-child(5) { animation-delay: 0.5s; }
.tcard.is-in .tchips li:nth-child(6) { animation-delay: 0.5700000000000001s; }
.tcard.is-in .tchips li:nth-child(7) { animation-delay: 0.64s; }
.tcard.is-in .tchips li:nth-child(8) { animation-delay: 0.7100000000000001s; }
.tcard.is-in .tchips li:nth-child(9) { animation-delay: 0.7800000000000001s; }
.tcard.is-in .tchips li:nth-child(10) { animation-delay: 0.8500000000000001s; }

.no-js .tcard .tchips li, html:not(.js) .tcard .tchips li { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tcard .tchips li { opacity: 1; transform: none; animation: none !important; } .tcard .tchips::after { animation: none; } }

/* ============ v34: one type system ============
   One family (Bricolage Grotesque) for everything, JetBrains Mono only for tech chips.
   Roles: micro, small, note, body, ui, h4, h3, h2, display. Weights: 300, 400, 500, 600, 800. */
:root {
  --t-micro: 0.8rem; --t-small: 0.92rem; --t-note: 0.96rem; --t-body: 1.0625rem; --t-ui: 0.95rem; --t-h4: 1.22rem;
  --t-h3: clamp(1.45rem, 2.2vw, 1.9rem); --t-h2: clamp(2.2rem, 4.6vw, 3.9rem);
  --lh-tight: 1.05; --lh-snug: 1.3; --lh-body: 1.62;
}
body { font-family: var(--f-text); font-size: var(--t-body); font-weight: 400; line-height: var(--lh-body); font-stretch: 100%; font-variation-settings: normal; }

:root .hud-pill, :root .copy-t, :root .ctile-k, :root .snd-l, :root .orbit-count, :root .tl-type, :root .role-tag, :root .case-meta dt, :root .photo-tag, :root .tcard-title, :root .stat-unit-note {
  font-family: var(--f-display); font-size: var(--t-micro); font-weight: 500; line-height: 1.3; letter-spacing: 0.01em; text-transform: none; font-stretch: 100%; font-variation-settings: normal; }
:root .tcard-title { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0; }
:root .tl-when, :root .tl-org, :root .frame-role, :root .id-role, :root .svc-proof2, :root .bar-menu-t, :root .status, :root .about-facts dt, :root .about-facts dd, :root .stat-sub, :root .rec-k, :root .skip, :root .cf > span, :root .cf-purpose legend, :root .cform-status, :root .ctile-v, :root .id-fields dt, :root .id-fields dd {
  font-family: var(--f-display); font-size: var(--t-small); font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none; font-stretch: 100%; font-variation-settings: normal; }
:root .tl-what, :root .hcard-line, :root .hcard-line-full, :root .svc-text, :root .rec-line, :root .pgroup-line, :root .flow-v, :root .frame-facts, :root .cbox-t p {
  font-family: var(--f-text); font-size: var(--t-note); font-weight: 400; line-height: 1.55; letter-spacing: 0; font-stretch: 100%; font-variation-settings: normal; }
:root .about-copy p, :root .sec-sub, :root .page-sub, :root .svc-pitch, :root .hero-lede {
  font-family: var(--f-text); font-size: var(--t-body); font-weight: 400; line-height: var(--lh-body); letter-spacing: 0; font-stretch: 100%; font-variation-settings: normal; }
:root .cta, :root .ghost, :root .btn, :root .textlink, :root .stat-a, :root .bar-resume, :root .bar-contact, :root .bar-nav .link, :root .snd, :root .chip-radio span, :root .orbit-link, :root .rail-btn, :root .flip {
  font-family: var(--f-display); font-size: var(--t-ui); font-weight: 600; letter-spacing: 0; text-transform: none; font-stretch: 100%; font-variation-settings: normal; }
:root .tl-role, :root .orbit-name, :root .svc-title, :root .hcard-name, :root .frame-org, :root .role-title, :root .cbox-k, :root .pgroup-title, :root .case-head h2, :root .tl-role {
  font-family: var(--f-display); font-size: var(--t-h4); font-weight: 600; line-height: var(--lh-snug); letter-spacing: -0.005em; font-stretch: 100%; font-variation-settings: normal; }
:root .sec-title, :root .cpanel-title, :root .orbit-title, :root .page-title-md, :root .band-title {
  font-family: var(--f-display); font-size: var(--t-h2); font-weight: 300; line-height: var(--lh-tight); letter-spacing: -0.015em; font-stretch: 85%; font-variation-settings: 'wdth' 85; }
:root .stat-n, :root .rec-v, :root .fact-n, :root .stat-unit { font-family: var(--f-display); font-weight: 300; font-stretch: 85%; font-variation-settings: 'wdth' 85; letter-spacing: -0.02em; }
:root .hero-quote, :root .hq-text { font-family: var(--f-display); font-weight: 500; font-stretch: 90%; font-variation-settings: 'wdth' 90; letter-spacing: -0.01em; }
:root .role { font-family: var(--f-display); font-weight: 500; font-size: var(--t-lead, 1.15rem); font-stretch: 100%; font-variation-settings: normal; }
:root .name, :root .cn-name, :root .id-name { font-family: var(--f-display); font-weight: 800; font-stretch: 100%; font-variation-settings: 'wdth' 100; letter-spacing: -0.01em; }
:root .tchips li, :root .chips li { font-family: var(--f-mono); font-size: 0.85rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
:root .cn-cap { font-family: var(--f-text); font-style: normal; font-weight: 500; }
:root .cf input, :root .cf textarea { font-family: var(--f-text); font-size: var(--t-body); font-stretch: 100%; font-variation-settings: normal; }
:root .marquee span { font-family: var(--f-display); font-weight: 300; font-stretch: 85%; font-variation-settings: 'wdth' 85; letter-spacing: -0.01em; }
:root .tcore-list li { font-family: var(--f-display); font-size: var(--t-note); font-weight: 500; line-height: 1.4; font-stretch: 100%; font-variation-settings: normal; }
:root .id-open-list li, :root .foot-meta, :root .foot a, :root .foot p, :root .sec-tag { font-family: var(--f-display); font-size: var(--t-small); font-weight: 500; letter-spacing: 0; text-transform: none; font-stretch: 100%; font-variation-settings: normal; }
:root .id-open { font-family: var(--f-display); font-weight: 300; font-stretch: 85%; font-variation-settings: 'wdth' 85; }

/* ============ v35: round floating bubbles on the orbit ============ */
:root .orbit-card { left: -100px; top: -118px; width: 200px; }
:root .orbit-link { background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; justify-items: center; text-align: center; gap: 10px; }
:root .orbit-link:hover, :root .orbit-link:focus-visible { background: none; box-shadow: none; transform: scale(1.06); }
:root .orbit-thumb { width: 164px; height: 164px; aspect-ratio: auto; border-radius: 50%; border: 2px solid rgba(245, 165, 36, 0.6); box-shadow: 0 0 0 7px rgba(245, 165, 36, 0.1), 0 22px 44px -18px rgba(0, 0, 0, 0.9), 0 0 46px -12px var(--glow); animation: bubble-bob 5.5s ease-in-out infinite; transition: box-shadow 0.3s, border-color 0.3s; }
:root .orbit-item:nth-child(2) .orbit-thumb { animation-delay: -1.4s; }
:root .orbit-item:nth-child(3) .orbit-thumb { animation-delay: -2.8s; }
:root .orbit-item:nth-child(4) .orbit-thumb { animation-delay: -4.1s; }
:root .orbit-link:hover .orbit-thumb, :root .orbit-link:focus-visible .orbit-thumb { border-color: var(--amber-hi); box-shadow: 0 0 0 9px rgba(245, 165, 36, 0.2), 0 22px 44px -18px rgba(0, 0, 0, 0.9), 0 0 60px -6px var(--glow); }
:root .orbit-name { max-width: 15ch; }
@keyframes bubble-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@media (max-width: 760px) { :root .orbit-thumb { width: min(34vw, 150px); height: min(34vw, 150px); } :root .orbit-card { left: auto; top: auto; width: auto; } }
@media (prefers-reduced-motion: reduce) { :root .orbit-thumb { animation: none; } }

/* ============ v36: bold display type, calm text type ============
   Sora (headings, numbers, buttons, labels) and Inter (paragraphs) so body copy never reads like a headline. */
:root {
  --f-display: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --f-text: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --t-h3: clamp(1.4rem, 2vw, 1.75rem); --t-h2: clamp(2rem, 4.2vw, 3.4rem); --t-h4: 1.12rem; --t-body: 1.04rem;
}
body { font-family: var(--f-text); font-weight: 400; font-variation-settings: normal; font-stretch: 100%; }
:root .sec-title, :root .cpanel-title, :root .orbit-title, :root .page-title-md, :root .band-title, :root .page-title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 100%; font-variation-settings: normal; letter-spacing: -0.03em; line-height: 1.04; }
:root .page-title { font-size: clamp(2.6rem, 7vw, 6.2rem); }
:root .tl-role, :root .orbit-name, :root .svc-title, :root .hcard-name, :root .frame-org, :root .role-title, :root .cbox-k, :root .pgroup-title {
  font-family: var(--f-display); font-weight: 700; font-stretch: 100%; font-variation-settings: normal; letter-spacing: -0.015em; }
:root .stat-n, :root .rec-v, :root .fact-n, :root .stat-unit, :root .id-open {
  font-family: var(--f-display); font-weight: 800; font-stretch: 100%; font-variation-settings: normal; letter-spacing: -0.03em; }
:root .cta, :root .ghost, :root .btn, :root .textlink, :root .stat-a, :root .bar-resume, :root .bar-contact, :root .bar-nav .link, :root .snd, :root .chip-radio span, :root .orbit-link, :root .rail-btn, :root .flip { font-weight: 700; font-variation-settings: normal; }
:root .hud-pill, :root .copy-t, :root .ctile-k, :root .snd-l, :root .orbit-count, :root .tl-type, :root .role-tag, :root .case-meta dt, :root .photo-tag { font-weight: 600; font-variation-settings: normal; }
:root .tl-when, :root .tl-org, :root .frame-role, :root .id-role, :root .svc-proof2, :root .bar-menu-t, :root .status, :root .about-facts dt, :root .about-facts dd, :root .stat-sub, :root .rec-k, :root .skip, :root .cf > span, :root .cf-purpose legend, :root .cform-status, :root .ctile-v, :root .id-fields dt, :root .id-fields dd, :root .tcore-list li { font-family: var(--f-display); font-weight: 600; font-variation-settings: normal; font-stretch: 100%; }
:root .tcore-list li { font-size: 0.98rem; }
:root .hero-quote, :root .hq-text { font-weight: 700; font-stretch: 100%; font-variation-settings: normal; letter-spacing: -0.02em; }
:root .role { font-weight: 600; font-variation-settings: normal; }
:root .name, :root .cn-name, :root .id-name { font-weight: 800; font-variation-settings: normal; letter-spacing: -0.02em; }
:root .name { font-size: clamp(2.5rem, 5.4vw, 5.3rem); line-height: 1; }
:root .marquee span { font-weight: 800; font-variation-settings: normal; font-stretch: 100%; font-size: clamp(1.5rem, 2.6vw, 2.3rem); letter-spacing: -0.02em; }
:root .about-copy p, :root .sec-sub, :root .page-sub, :root .svc-pitch { font-family: var(--f-text); font-weight: 400; font-size: var(--t-body); line-height: 1.7; }
:root .tl-what, :root .hcard-line, :root .hcard-line-full, :root .svc-text, :root .rec-line, :root .pgroup-line, :root .flow-v, :root .cbox-t p { font-family: var(--f-text); font-weight: 400; }
:root .cf input, :root .cf textarea { font-family: var(--f-text); }
:root .cn-cap { font-family: var(--f-display); font-weight: 600; }

/* skill chips are always visible; the entrance only animates */
.tcard .tchips li { opacity: 1; transform: none; }
.tcard.is-in .tchips li { animation: chip-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px); } }

/* core concepts: hover or focus to see where each one was used */
.tcore-list li[data-used] { cursor: help; transition: color 0.2s, transform 0.2s; }
.tcore-list li[data-used]:hover, .tcore-list li[data-used]:focus { color: var(--amber-hi); transform: translateX(4px); outline: none; }
.tcore-list li[data-used]::after { content: attr(data-used); position: absolute; left: 1.5em; bottom: calc(100% + 6px); max-width: 260px; padding: 7px 11px; border-radius: 8px; background: #15120d; border: 1px solid rgba(245, 165, 36, 0.5); color: var(--fg); font: 600 0.82rem/1.3 var(--f-display); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 6; }
.tcore-list li[data-used]:hover::after, .tcore-list li[data-used]:focus::after { opacity: 1; transform: none; }

/* the terminal title bar styling belongs to the skill windows only; the core-concepts headings stay normal */
:root .tcore .tcard-title { position: static; left: auto; top: auto; margin: 0 0 1rem; font-family: var(--f-display); font-size: var(--t-small); font-weight: 700; letter-spacing: 0; color: var(--amber); }

/* ============ v37: interactive experience, services, skill map ============ */
/* experience: roles open */
.tl-h { margin: 0; font: inherit; }
.tl-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; width: 100%; padding: 2px 0 8px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tl-head .tl-role { grid-column: 1; }
.tl-head .tl-org { grid-column: 1; }
.tl-head:hover .tl-role, .tl-head:focus-visible .tl-role { color: var(--amber-hi); }
.tl-head:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 6px; }
.tl-chev { grid-column: 2; grid-row: 1 / span 2; width: 30px; height: 30px; border: 1px solid rgba(238, 231, 218, 0.22); border-radius: 50%; position: relative; transition: transform 0.3s, border-color 0.3s, background-color 0.3s; }
.tl-chev::before, .tl-chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: var(--fg-2); transition: transform 0.3s; }
.tl-chev::after { transform: rotate(90deg); }
.tl-item.is-open .tl-chev { transform: rotate(180deg); border-color: var(--amber); background: rgba(245, 165, 36, 0.12); }
.tl-item.is-open .tl-chev::after { transform: rotate(0deg); }
.tl-detail { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.4s cubic-bezier(0.3, 0.7, 0.2, 1); }
.tl-detail-in { overflow: hidden; min-height: 0; }
.js .tl-item:not(.is-open) .tl-detail { grid-template-rows: 0fr; }
.tl-body { padding-bottom: 16px; }

/* services: pick one, see its outcome and proof */
.svc-panel { display: grid; grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: start; }
.svc-tabs { display: grid; gap: 8px; }
.svc-tab { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(238, 231, 218, 0.14); border-radius: 16px; background: rgba(255, 255, 255, 0.03); color: var(--fg-2); font: 700 1rem/1.25 var(--f-display); text-align: left; cursor: pointer; transition: transform 0.25s, border-color 0.25s, background-color 0.25s, color 0.25s; }
.svc-tab-ic { color: var(--amber); display: grid; place-items: center; }
.svc-tab-ic svg { width: 24px; height: 24px; }
.svc-tab:hover { transform: translateX(4px); color: var(--fg); border-color: rgba(245, 165, 36, 0.5); }
.svc-tab[aria-selected="true"] { color: var(--fg); border-color: var(--amber); background: rgba(245, 165, 36, 0.1); box-shadow: inset 4px 0 0 var(--amber); transform: translateX(6px); }
.svc-tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.svc-views { position: relative; border: 1px solid rgba(238, 231, 218, 0.14); border-radius: 22px; padding: clamp(22px, 3vw, 40px); background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); min-height: 24rem; }
.svc-view { display: grid; gap: 14px; align-content: start; }
.svc-view[hidden] { display: none; }
.svc-view.is-in { animation: svc-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes svc-in { from { opacity: 0; transform: translateY(12px); } }
.svc-view-title { margin: 0; font: 800 clamp(1.5rem, 2.6vw, 2.2rem)/1.1 var(--f-display); letter-spacing: -0.03em; }
.svc-view-line { margin: 0; font: 600 1.12rem/1.4 var(--f-display); color: var(--amber-hi); max-width: 44ch; }
.svc-view-pitch { margin: 0; max-width: 60ch; color: var(--fg-2); }
.svc-proof { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.svc-proof a, .svc-proof div { display: grid; gap: 4px; height: 100%; padding: 12px 14px; border: 1px solid rgba(238, 231, 218, 0.14); border-radius: 14px; text-decoration: none; color: var(--fg); transition: border-color 0.2s, background-color 0.2s, transform 0.2s; }
.svc-proof a:hover { border-color: var(--amber); background: rgba(245, 165, 36, 0.08); transform: translateY(-2px); }
.svc-proof b { font: 700 1rem/1.2 var(--f-display); }
.svc-proof span { font: 400 0.9rem/1.45 var(--f-text); color: var(--fg-2); }
.svc-view .cta { justify-self: start; margin-top: 6px; }
.svc-more { margin-top: clamp(18px, 3vw, 32px); }
@media (max-width: 860px) {
  .svc-panel { grid-template-columns: 1fr; }
  .svc-tabs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-tab { flex: 0 0 auto; grid-template-columns: 26px auto; }
  .svc-tab:hover, .svc-tab[aria-selected="true"] { transform: none; }
  .svc-views { min-height: 0; }
}

/* skill map */
.pmap { margin-top: clamp(14px, 1.8vw, 22px); padding: 0 4px; }
.pmap-hint { margin: 0 0 10px; font: 600 0.9rem/1.3 var(--f-display); color: var(--fg-3); }
.pmap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pmap-list li a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(238, 231, 218, 0.2); border-radius: 999px; font: 700 0.9rem/1 var(--f-display); color: var(--fg-2); text-decoration: none; transition: opacity 0.25s, transform 0.25s, background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.3s; }
.pmap-list li a:hover { border-color: var(--amber); color: var(--fg); }
.pmap-list.has-focus li:not(.is-on) a { opacity: 0.25; }
.pmap-list li.is-on a { opacity: 1; background: var(--amber); border-color: var(--amber); color: var(--on-amber); transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 26px -10px var(--glow); }
.tchips li[data-slugs]:hover, .tcore-list li[data-slugs]:hover { cursor: help; }
@media (prefers-reduced-motion: reduce) { .tl-detail, .tl-chev, .svc-tab, .pmap-list li a { transition: none; } .svc-view.is-in { animation: none; } }

/* v38: touch screens. Hints say "tap" where there is no hover, and tap targets and tablets get room. */
.hint-touch { display: none; }
@media (hover: none) {
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}
@media (min-width: 561px) and (max-width: 860px) {
  .svc-tabs { flex-wrap: wrap; overflow: visible; }
}

/* v39: design critique fixes (no motion changes) */
/* small text: nothing under about 13px */
:root .ctile-k, :root .orbit-count, :root .tcard-title { font-size: 0.9rem; }
:root .tcore .tcard-title { font-size: var(--t-small); }
:root .tchips li { font-size: 0.9rem; }
:root .tl-type { font-size: 0.86rem; }
:root .spine a { font-size: 0.875rem; }

/* form edges must be visible: boxes and chips need about 3:1 against the panel */
:root .cf input, :root .cf textarea { border-color: rgba(238, 231, 218, 0.45); }
:root .chip-radio span { border-color: rgba(238, 231, 218, 0.42); }

/* side dots never sit on top of content: below 1200px only the dots show, labels stay for screen readers */
@media (max-width: 1199px) {
  .spine a span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* records: cards sized to their content */
:root .rec-link { min-height: 0; }
.rec .art { height: 150px; }

/* v40: one floating tooltip for "used in" hints. It stays inside the screen and fades smoothly. */
.tchips li[data-used]::after, .tcore-list li[data-used]::after { display: none; }
.sk-tip { position: fixed; left: 0; top: 0; z-index: 300; max-width: min(260px, calc(100vw - 16px)); padding: 8px 12px; border-radius: 10px; background: #15120d; border: 1px solid rgba(245, 165, 36, 0.5); color: var(--fg); font: 600 0.875rem/1.35 var(--f-display); text-align: center; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: opacity, transform; }
.sk-tip.is-on { opacity: 1; transform: none; }


/* volunteering photos: a swipeable gallery inside each frame */
.frame-photo { position: relative; aspect-ratio: 4 / 3; }
.fp-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline-offset: -3px; }
.fp-track::-webkit-scrollbar { display: none; }
.fp-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; }
.fp-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; display: block; }
.fp-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 2px; pointer-events: none; }
.fp-dot { pointer-events: auto; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.fp-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); transition: transform 0.25s, background-color 0.25s; }
.fp-dot.is-on::before { background: var(--amber); transform: scale(1.35); }
.fp-dot:focus-visible { outline: 2px solid var(--amber); border-radius: 50%; }

/* record pages: a real photo in place of the drawn art */
.rec-photo { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.rec-photo img { display: block; width: 100%; height: auto; }

/* record photos on the home cards, extra images on record pages, and the LinkedIn post snapshot */
.art-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.rec-detail-art { display: grid; gap: 16px; align-content: start; }
.post-snap { display: block; max-width: 760px; margin: clamp(20px, 3vw, 36px) auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); transition: border-color 0.25s, transform 0.4s var(--ease-out), box-shadow 0.4s; }
.post-snap img { display: block; width: 100%; height: auto; }
.post-snap:hover, .post-snap:focus-visible { border-color: var(--amber); transform: translateY(-4px); box-shadow: 0 30px 60px -36px var(--glow); outline: none; }

/* gallery arrows: always visible on touch screens, fade in on hover for mouse users */
.fp-arrow { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(12, 11, 9, 0.62); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity 0.25s, background-color 0.25s, transform 0.25s; }
.fp-prev { left: 8px; }
.fp-next { right: 8px; }
.fp-arrow:hover:not(:disabled) { background: var(--amber); color: var(--on-amber); transform: scale(1.08); }
.fp-arrow:disabled { opacity: 0.25; cursor: default; }
.fp-arrow:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (hover: hover) { .fp-arrow { opacity: 0; } .frame-photo:hover .fp-arrow:not(:disabled), .frame-photo:focus-within .fp-arrow:not(:disabled) { opacity: 1; } .frame-photo:hover .fp-arrow:disabled, .frame-photo:focus-within .fp-arrow:disabled { opacity: 0.25; } }

/* the three wins stay side by side down to tablets; they stack only on phones */
@media (max-width: 700px) { .records { grid-template-columns: 1fr; } }

/* the Smart India Hackathon logo is artwork, not a photo: show all of it on a light tile */
.art-photo img[src*="sih-internal-2026"] { object-fit: contain; padding: 8px; background: #fff; }

/* v42: the wins triptych. Three full-bleed panels in one frame; the active one opens wide. */
.triptych { display: flex; height: clamp(440px, 50vw, 600px); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: clamp(8px, 2vw, 28px); background: #0c0b09; --px: 0; --py: 0; }
.pan { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: var(--fg); text-decoration: none; border-left: 1px solid var(--line); isolation: isolate; transition: flex-grow 0.95s cubic-bezier(0.22, 0.9, 0.2, 1); }
.pan:first-child { border-left: 0; }
.pan.is-on { flex-grow: 3.3; }
.pan:focus-visible { outline: 2px solid var(--amber); outline-offset: -4px; }

.pan-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #14110c; }
.pan-bg > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; filter: grayscale(0.7) brightness(0.5); transform: scale(1.14); transition: filter 0.9s ease, transform 1.3s cubic-bezier(0.22, 0.9, 0.2, 1); }
.pan.is-on .pan-bg > img { filter: none; transform: translate(calc(var(--px) * -10px), calc(var(--py) * -8px)) scale(1.04); transition: filter 0.9s ease, transform 0.5s ease-out; }
.pan-bg .art { height: 100%; margin: 0; border: 0; border-radius: 0; }
/* the logo: a round seal on a dark gridded panel */
.pan-bg.is-emblem { background: radial-gradient(70% 60% at 50% 38%, rgba(228, 167, 63, 0.22), transparent 70%), repeating-linear-gradient(90deg, rgba(238, 231, 218, 0.05) 0 1px, transparent 1px 48px), repeating-linear-gradient(0deg, rgba(238, 231, 218, 0.05) 0 1px, transparent 1px 48px), #100e0a; }
.seal { position: absolute; left: 50%; top: 36%; width: min(58%, 280px); aspect-ratio: 1; transform: translate(-50%, -50%) scale(0.8); border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(228, 167, 63, 0.35), 0 30px 60px -30px #000; display: grid; place-items: center; filter: brightness(0.6); transition: transform 1s cubic-bezier(0.22, 0.9, 0.2, 1), filter 0.9s; }
.seal img { width: 78%; height: 78%; object-fit: contain; }
.pan.is-on .seal { transform: translate(-50%, -50%) scale(1); filter: none; }
.pan-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 11, 9, 0.94) 4%, rgba(12, 11, 9, 0.5) 44%, rgba(12, 11, 9, 0.15) 100%); transition: opacity 0.8s; }
.pan:not(.is-on) .pan-shade { background: linear-gradient(0deg, rgba(12, 11, 9, 0.9), rgba(12, 11, 9, 0.4)); }

/* the laurel with the date inside */
.pan-mark { position: absolute; left: clamp(14px, 2vw, 26px); top: clamp(14px, 2vw, 26px); width: clamp(72px, 8vw, 96px); display: grid; place-items: center; color: rgba(238, 231, 218, 0.7); transition: color 0.5s, transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1); }
.pan.is-on .pan-mark { color: var(--amber); transform: scale(1.04); }
.pan-mark .laurel-svg { width: 100%; height: auto; display: block; overflow: visible; }
.pan-date { position: absolute; display: grid; place-items: center; text-align: center; font: 600 clamp(0.78rem, 1vw, 0.9rem)/1.1 var(--f-display); color: var(--fg-2); }
.pan-date b { font-weight: 800; color: var(--fg); }
.lv-stem { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.55; transition: opacity 0.4s; }
.lv-leaf { fill: currentColor; opacity: 0.35; transform-box: fill-box; transition: opacity 0.5s; transition-delay: calc(var(--k, 0) * 28ms); }
.pan.is-on .lv-stem { opacity: 1; animation: lv-draw 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.pan.is-on .lv-leaf { opacity: 1; animation: lv-pop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both; animation-delay: calc(var(--k, 0) * 38ms); }
@keyframes lv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lv-pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }

/* a folded panel shows its result sideways; the open one shows the full text */
.pan-tab { position: absolute; left: 50%; bottom: clamp(18px, 2.4vw, 30px); transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font: 800 clamp(1.1rem, 1.8vw, 1.6rem)/1 var(--f-display); letter-spacing: -0.01em; white-space: nowrap; transition: opacity 0.5s; }
.pan.is-on .pan-tab { opacity: 0; }
.pan-body { position: absolute; left: clamp(18px, 2.6vw, 38px); bottom: clamp(20px, 2.6vw, 38px); width: min(470px, calc(100% - 2 * clamp(18px, 2.6vw, 38px))); display: grid; gap: 8px; opacity: 0; transform: translateY(14px); transition: opacity 0.4s, transform 0.6s cubic-bezier(0.22, 0.9, 0.2, 1); pointer-events: none; }
.pan.is-on .pan-body { opacity: 1; transform: none; transition-delay: 0.35s; pointer-events: auto; }
.pan-kicker { font: 600 clamp(0.95rem, 1.2vw, 1.08rem)/1.2 var(--f-display); color: var(--amber-hi); }
.pan-result { font: 800 clamp(2.2rem, 4.4vw, 3.9rem)/1 var(--f-display); letter-spacing: -0.025em; }
.pan-line { font: 400 clamp(0.95rem, 1.1vw, 1.04rem)/1.5 var(--f-text); color: var(--fg-2); max-width: 46ch; }
.pan-go { justify-self: start; margin-top: 4px; font: 700 0.95rem/1.2 var(--f-display); border-bottom: 1.5px solid var(--amber); padding-bottom: 2px; }

/* a light sweep when a panel opens, and the line that counts down to the next one */
.pan::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, transparent 38%, rgba(255, 210, 120, 0.28) 50%, transparent 62%); transform: translateX(-130%); pointer-events: none; }
.pan.is-on::after { animation: pan-scan 1.4s 0.3s cubic-bezier(0.3, 0.7, 0.2, 1) 1 both; }
@keyframes pan-scan { to { transform: translateX(130%); } }
.pan-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; z-index: 2; }
.pan.is-on .pan-timer { animation: pan-fill 7s linear 1 both; }
@keyframes pan-fill { to { transform: scaleX(1); } }
.triptych.is-held .pan.is-on .pan-timer, .triptych.is-away .pan.is-on .pan-timer { animation-play-state: paused; }

/* phones and small tablets: the panels stack and the open one grows taller */
@media (max-width: 820px) {
  .triptych { flex-direction: column; height: auto; }
  .pan { flex: none; height: 104px; border-left: 0; border-top: 1px solid var(--line); transition: height 0.9s cubic-bezier(0.22, 0.9, 0.2, 1); }
  .pan:first-child { border-top: 0; }
  .pan.is-on { height: min(470px, 128vw); }
  .pan-tab { writing-mode: horizontal-tb; transform: none; left: 108px; bottom: auto; top: 50%; margin-top: -0.5em; }
  .pan-mark { top: 50%; margin-top: -37px; }
  .pan.is-on .pan-mark { top: clamp(14px, 2vw, 26px); margin-top: 0; }
  .pan-mark { width: 74px; }
  .pan-body { width: calc(100% - 36px); left: 18px; bottom: 20px; }
  .pan-result { font-size: clamp(2rem, 9vw, 2.8rem); }
  .seal { top: 34%; width: min(52%, 220px); }
}
@media (prefers-reduced-motion: reduce) {
  .pan, .pan-bg > img, .seal, .pan-mark, .pan-body, .pan-tab, .lv-leaf { transition: none; }
  .pan.is-on::after, .pan.is-on .lv-stem, .pan.is-on .lv-leaf { animation: none; }
  .pan.is-on .pan-timer { animation: none; transform: scaleX(1); }
}
html:not(.js) .pan { flex: 1 1 0; }

/* v43: services as vertical bars; each one is a link to its page */
.svc-bars { list-style: none; margin: clamp(10px, 2vw, 24px) 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.svc-bars li { border-top: 1px solid var(--line); }
.svc-bar { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px; align-items: center; gap: clamp(14px, 2vw, 26px); padding: clamp(16px, 2vw, 26px) 6px; color: var(--fg); text-decoration: none; overflow: hidden; isolation: isolate; }
.svc-bar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(228, 167, 63, 0.16), rgba(228, 167, 63, 0.03)); transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.2, 1); }
.svc-bar:hover::before, .svc-bar:focus-visible::before { transform: scaleX(1); }
.svc-bar:focus-visible { outline: 2px solid var(--amber); outline-offset: -3px; }
.svc-bar-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); color: var(--amber); transition: background-color 0.4s, color 0.4s, border-color 0.4s; }
.svc-bar-ic svg { width: 26px; height: 26px; }
.svc-bar:hover .svc-bar-ic, .svc-bar:focus-visible .svc-bar-ic { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }
.svc-bar-t { display: grid; gap: 3px; min-width: 0; }
.svc-bar-t b { font: 800 clamp(1.25rem, 2.6vw, 2.1rem)/1.1 var(--f-display); letter-spacing: -0.015em; }
.svc-bar-t span { font: 400 clamp(0.92rem, 1.1vw, 1.02rem)/1.4 var(--f-text); color: var(--fg-2); }
.svc-bar-go { display: grid; place-items: center; width: 44px; height: 44px; color: var(--fg-3); transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1), color 0.3s; }
.svc-bar:hover .svc-bar-go, .svc-bar:focus-visible .svc-bar-go { color: var(--amber); transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .svc-bar::before, .svc-bar-ic, .svc-bar-go { transition: none; } }

/* ============ v44: the phone layout. It is its own design, not the desktop shrunk. ============
   Shorter sections, one column, even rhythm, nothing that scrolls sideways, thumb-sized targets. */

/* the intro: centre the character in the frame (it was left-aligned and wider than the screen) */
@media (max-width: 760px) {
  .cn-avatar { display: block; }
  .cn-video { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: min(74svh, 160vw); }
}

@media (max-width: 760px) {
  :root { --m-gap: 36px; }
  /* one rhythm: the same space above and below every section, one heading size */
  :root .sec { padding-top: var(--m-gap); padding-bottom: var(--m-gap); }
  :root .sec-tag { display: none; }
  :root .sec-title, :root .sec h2.sec-title { font-size: clamp(1.75rem, 8.2vw, 2.2rem); line-height: 1.05; }
  :root .sec-sub { font-size: 0.98rem; margin-top: 8px; }
  .marquee { display: none; }

  /* numbers: a 2 by 2 grid, not four tall rows */
  .strip { display: grid; grid-template-columns: 1fr 1fr; }
  .strip .stat { padding: 16px 12px; border-left: 0; border-top: 1px solid var(--line); }
  .strip .stat:nth-child(-n+2) { border-top: 0; }
  .strip .stat:nth-child(even) { border-left: 1px solid var(--line); }
  :root .stat-n { font-size: clamp(2rem, 10vw, 2.6rem); }
  :root .stat-label, .stat-sub, .stat-a { font-size: 0.88rem; line-height: 1.3; }

  /* about: the words, then the facts. The ID card is desktop decoration. */
  .badge { display: none; }
  .about-facts { margin-top: 14px; }

  /* skills: one column, concepts as chips */
  .tcards { grid-template-columns: 1fr; gap: 12px; }
  .tcore { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .tcore-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .tcore-list li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 0.92rem; }
  .tcore-list li::before { display: none; }
  .pmap { display: none; }

  /* wins: tighter panels */
  .triptych .pan { height: 92px; }
  .triptych .pan.is-on { height: min(400px, 112vw); }

  /* community: no sideways scroll. The cards stack, one after another. */
  :root .frames { display: grid; grid-template-columns: 1fr; gap: 18px; overflow: visible; padding: 8px 0 0; scroll-snap-type: none; }
  :root .frame { flex: none; width: 100%; transform: none; padding: 8px 8px 14px; }
  .frame-facts { display: grid; gap: 4px; }

  /* services: the bars are already thumb-sized; trim the extra line */
  .svc-bar { grid-template-columns: 44px minmax(0, 1fr) 32px; padding: 14px 2px; gap: 12px; }
  .svc-bar-ic { width: 44px; height: 44px; } .svc-bar-ic svg { width: 22px; height: 22px; }
  .svc-bar-t b { font-size: 1.2rem; }
  .svc-bar-t span { font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .svc-bar-go { width: 32px; }

  /* contact: short. Title, three fields, one button, four quick links. */
  :root .cpanel { padding: 22px 18px; gap: 18px; border-radius: 18px; }
  :root .cpanel-title { font-size: clamp(1.55rem, 7.4vw, 1.9rem); line-height: 1.1; }
  .cpanel-main .sec-sub { font-size: 0.92rem; margin: 8px 0 14px; }
  .cform { gap: 12px; }
  .cform-row { grid-template-columns: 1fr; gap: 12px; }
  .cform .cf:has(input[name="organisation"]) { display: none; }
  .cf input, .cf textarea { padding: 0.7em 0.9em; }
  .cf textarea { min-height: 5.2rem; }
  .cf-purpose { gap: 6px; }
  .cf-purpose legend { font-size: 0.92rem; margin-bottom: 6px; }
  .chip-radio span { min-height: 40px; padding: 0 0.9em; font-size: 0.9rem; }
  .cform-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .cform-actions .cta { width: 100%; justify-content: center; min-height: 48px; }
  .cform-actions .ghost { display: none; }
  .ctiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ctile { padding: 10px 12px; gap: 10px; min-height: 52px; }
  .ctile:nth-child(2) { display: none; }          /* the second email */
  .ctile .copy { display: none; }
  .ctile-ic { width: 32px; height: 32px; } .ctile-ic svg { width: 20px; height: 20px; }
  .ctile-k { display: block; font-size: 0.85rem; }
  .ctile-v { font-size: 0; }                          /* the label says what it is; the link still carries the full text */

  /* footer: two lines */
  :root .foot { padding: 22px var(--pad) 26px; }
  .foot-meta { display: grid; gap: 10px; justify-items: start; font-size: 0.92rem; }
  .foot-links { flex-wrap: wrap; gap: 4px 16px; }
}

/* v44b: phone fixes after testing at 320px */
@media (max-width: 760px) {
  :root .tcore-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  :root .tcore-list li { width: auto; }
  :root .cf-purpose { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  :root .cf-purpose legend { width: 100%; }

  /* community: compact two-up tiles, last one full width; swipe and dots, no arrows */
  :root .frames { grid-template-columns: 1fr 1fr; gap: 10px; }
  :root .frame { padding: 6px 6px 10px; min-width: 0; }
  :root .frame:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .frame-photo { aspect-ratio: 1 / 1; }
  .frame:last-child:nth-child(odd) .frame-photo { aspect-ratio: 16 / 9; }
  .fp-arrow { display: none; }
  :root .frame-org { font-size: 1rem; line-height: 1.15; margin-top: 8px; }
  :root .frame-role { font-size: 0.84rem; line-height: 1.3; }
  .frame-facts li:nth-child(n+2) { display: none; }
  :root .frame-facts { font-size: 0.84rem; margin-top: 6px; }
}

/* v44c: phone, second pass */
@media (max-width: 760px) {
  /* contact: four quick links in a 2 by 2 grid, label only */
  :root .ctiles { grid-template-columns: 1fr 1fr; }
  :root .ctile .ctile-v { font-size: 0; }
  :root .ctile .ctile-k { font-size: 0.95rem; font-weight: 700; color: var(--fg); }
  :root .ctile { grid-template-columns: auto 1fr; }
  /* footer: one line and the résumé; the quick links are right above */
  .foot .socials, .foot .socials-sm, .foot-links li:first-child { display: none; }
  /* skills: tighter terminal windows, and the generic "working style" list is desktop-only */
  :root .tcard { padding-top: 2.7rem; padding-bottom: 14px; }
  .tcore-col:nth-child(3) { display: none; }
}

/* ============ v45: Android conventions on phones ============
   Bottom navigation in the thumb zone, a slim top app bar, a bottom sheet for the form, tap ripples,
   tonal surfaces. Desktop never sees any of this. */
.bnav, .bar-brand, .sheet-head, .sheet-open { display: none; }

@media (max-width: 760px) {
  html { -webkit-tap-highlight-color: transparent; }
  a, button, label, summary { touch-action: manipulation; }
  body { padding-bottom: 84px; overscroll-behavior-y: none; }

  /* top app bar: the name on the left, the résumé on the right, nothing else */
  :root .bar { top: 0; left: 0; right: 0; width: auto; height: 56px; padding: 0 14px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: rgba(12, 11, 9, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: none; }
  .bar-menu, .bar-nav, .bar-tools .socials, .bar-tools .bar-contact { display: none !important; }
  .bar-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--fg); text-decoration: none; font: 700 1.02rem/1 var(--f-display); letter-spacing: -0.01em; }
  .bar-brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--amber); color: var(--on-amber); font: 800 0.82rem/1 var(--f-display); }
  :root .bar-resume { min-height: 40px; padding: 0 18px; border-radius: 999px; background: rgba(228, 167, 63, 0.18); color: var(--amber-hi); border: 0; font-size: 0.95rem; }
  .hud, .spine { display: none !important; }

  /* bottom navigation */
  .bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: grid; grid-template-columns: repeat(5, 1fr); height: 68px; padding: 6px 4px 8px; background: rgba(22, 19, 14, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .bnav a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--fg-3); text-decoration: none; overflow: hidden; border-radius: 14px; min-height: 52px; transition: color 0.25s; }
  .bn-pill { display: grid; place-items: center; width: 58px; height: 30px; border-radius: 16px; transition: background-color 0.3s, transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1); }
  .bn-label { font: 600 0.78rem/1 var(--f-display); letter-spacing: 0.01em; }
  .bnav a.is-on { color: var(--fg); }
  .bnav a.is-on .bn-pill { background: rgba(228, 167, 63, 0.26); color: var(--amber-hi); transform: scale(1.02); }
  .bnav a:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }

  /* the tap ripple */
  .ripple { position: absolute; border-radius: 50%; background: rgba(255, 220, 150, 0.28); transform: scale(0); pointer-events: none; animation: ripple 0.6s ease-out forwards; }
  @keyframes ripple { to { transform: scale(1); opacity: 0; } }
  .cta, .ghost, .svc-bar, .chip-radio span, .sheet-open, .ctile { position: relative; overflow: hidden; }

  /* contact: the page keeps the quote and the quick links. The form lives in a sheet. */
  .sheet-open { display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 52px; margin: 4px 0 6px; font-size: 1.02rem; }
  .cform:not(.is-sheet) { display: none; }
  .cform.is-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; display: grid; gap: 12px; max-height: 88svh; overflow-y: auto; margin: 0; padding: 0 18px calc(22px + env(safe-area-inset-bottom, 0px)); background: #17130d; border-radius: 26px 26px 0 0; border-top: 1px solid rgba(228, 167, 63, 0.35); box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, 0.8); animation: sheet-up 0.42s cubic-bezier(0.22, 0.9, 0.2, 1) both; overscroll-behavior: contain; }
  @keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
  .sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 0 10px; background: #17130d; font: 800 1.2rem/1 var(--f-display); }
  .sheet-grab { position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(238, 231, 218, 0.3); }
  .sheet-close { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(238, 231, 218, 0.1); color: var(--fg); font: 600 0.95rem/1 var(--f-display); cursor: pointer; }
  .sheet-scrim { position: fixed; inset: 0; z-index: 290; background: rgba(0, 0, 0, 0); transition: background-color 0.35s; }
  .sheet-scrim.is-on { background: rgba(0, 0, 0, 0.62); }
  html.sheet-open, html.sheet-open body { overflow: hidden; }
  .cform.is-sheet .cform-row { display: grid; grid-template-columns: 1fr; }
  .cform.is-sheet .cf input, .cform.is-sheet .cf textarea { font-size: 1rem; background: rgba(238, 231, 218, 0.07); border-radius: 14px; }
  .cform.is-sheet .cform-actions { position: sticky; bottom: 0; padding-top: 8px; background: linear-gradient(to top, #17130d 70%, transparent); }
  :root .cform.is-sheet .cform-actions .ghost { display: none; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .cform.is-sheet { animation: none; } .ripple { display: none; } }

/* services: the original tabbed panel on larger screens, the tap-through bars on phones */
@media (min-width: 761px) { .svc-bars { display: none; } }
@media (max-width: 760px) { .svc-panel { display: none; } }

/* ============ v46: every section fits one window on desktop ============
   Sizes follow the height of the window, not only its width, so a heading and its content are on screen together.
   Jumping to a section lands its heading below the top bar. */
@media (min-width: 761px) {
  main.home > section[id] { scroll-margin-top: 70px; }

  /* wins: the frame height follows the window */
  .triptych { height: clamp(320px, 54vh, 560px); }

  /* services: a shorter panel */
  .svc-views { min-height: 0; }
  
  /* contact: a smaller headline, a tighter form, quick links in a 2 by 2 grid */
  :root .sec.contact { padding-top: clamp(22px, 3.6vh, 42px); padding-bottom: clamp(22px, 3.6vh, 42px); }
  :root .cpanel { padding: clamp(18px, 2.8vh, 30px) clamp(20px, 2.6vw, 36px); gap: clamp(18px, 2.4vw, 36px); align-items: center; }
  :root .cpanel-title { font-size: clamp(1.9rem, min(3.4vw, 6.4vh), 3.1rem); line-height: 1.05; }
  .cpanel-main .sec-sub { font-size: 1rem; margin: 8px 0 14px; }
  .cform { gap: 12px; }
  .cform .cf textarea { min-height: 4.4rem; }
  .cf input, .cf textarea { padding: 0.6em 0.9em; }
  .chip-radio span { min-height: 38px; font-size: 0.9rem; }
  .ctiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
  .ctile { padding: 12px 14px; min-height: 0; }
  .ctile .copy { padding: 6px; }
  .ctile .copy-t { display: none; }
  .ctile-v { font-size: 0.95rem; overflow-wrap: anywhere; }
}

@media (min-width: 761px) {
  :root .tcore { padding: 12px 24px 14px; margin-top: 10px; }
  .tcore-list li { padding-top: 2px; padding-bottom: 2px; }
  :root .tcard { padding-bottom: 12px; }
  .pmap { margin-top: 8px; }
}

/* services: all views share one cell, so the panel is always as tall as the tallest one */
.svc-views { display: grid; }
.svc-views > .svc-view { grid-area: 1 / 1; }
.svc-views > .svc-view[hidden] { display: block; visibility: hidden; pointer-events: none; }

/* jumping to a section lands its heading just under the top bar */
@media (min-width: 761px) { main.home > section[id] { scroll-margin-top: 84px; } }


/* ============ v50: the calm layer (this copy only) ============
   Removes the decoration that every generated site shares, keeps what is yours.
   Nothing here is needed for the site to work; delete this block to get the old look back. */

/* decoration that carries no information */
.hud, .grid-floor, .scan, .spine, .marquee, .sec-tag, #field, .fx-wash, .fx-spot, .fx-ring { display: none !important; }
.hud-c { display: none !important; }
.badge .id-bars, .badge .id-hole { display: none; }

/* no glow, no glass on content */
main *, main *::before, main *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
main :is(.cta, .ghost, .btn, .hcard, .hcard-in, .tcard, .tcore, .cbox, .frame, .cpanel, .ctile, .orbit-link, .pan, .svc-panel, .svc-view, .svc-bar, .badge, .case-boxes > *, .flow-boxes li, .chips li, .tchips li, .stat, .tl-item, .pcard):not(:focus-visible) { box-shadow: none !important; }
.caret { box-shadow: none; }

/* one corner radius for every panel */
main :is(.hcard-in, .tcard, .tcore, .cbox, .frame, .cpanel, .ctile, .orbit-link, .svc-panel, .svc-view, .badge, .case-boxes > *) { border-radius: 12px; }

/* skills: plain lists, not fake terminal windows */
.tcard::before, .tcard::after, .tcard .tchips::after { display: none; }
:root .tcard { padding-top: 18px; }
:root .tcard-title { position: static; margin: 0 0 12px; }

/* project pages: the steps as a pipeline diagram with a pulse running along it */
.flow.flow-boxes { position: relative; container-type: inline-size; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; padding-top: 6px; }
.flow-boxes li { position: relative; border: 0 !important; background: none !important; padding: 44px 18px 0 0 !important; border-radius: 0; }
.flow-boxes li .flow-i { position: absolute; left: 0; top: 0; width: 30px; height: 30px; background: #0c0b09; color: var(--amber); border: 2px solid var(--amber); z-index: 1; }
.flow-boxes li:not(:last-child)::after { content: ''; position: absolute; left: 34px; right: 4px; top: 14px; height: 2px; background: linear-gradient(90deg, var(--amber), rgba(228, 167, 63, 0.25)); }
.flow-boxes::before { content: ''; position: absolute; left: 30px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); z-index: 2; animation: flow-pulse 5.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes flow-pulse { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(calc(100cqw - 64px)); opacity: 0; } }
.flow-boxes .flow-k { font-weight: 800; font-size: 1.05rem; color: var(--fg); }
.flow-boxes .flow-v { font-size: 0.95rem; line-height: 1.5; opacity: 0.85; }
@media (max-width: 860px) {
  .flow.flow-boxes { grid-auto-flow: row; gap: 0; }
  .flow-boxes li { padding: 0 0 22px 48px !important; }
  .flow-boxes li:not(:last-child)::after { left: 14px; right: auto; top: 34px; bottom: 4px; width: 2px; height: auto; background: linear-gradient(180deg, var(--amber), rgba(228, 167, 63, 0.25)); }
  .flow-boxes::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .flow-boxes::before { animation: none; display: none; } }

/* no page-transition wipe: pages simply appear */
#veil, .veil { display: none !important; }

/* ============ page transitions: a soft cross-fade ============
   The browser keeps the top bar (and the bottom bar on phones) still and fades the page content,
   with a short rise. Browsers without support simply navigate straight away. */
@view-transition { navigation: auto; }
.bar { view-transition-name: topbar; }
.bnav { view-transition-name: bottomnav; }
::view-transition-group(topbar), ::view-transition-group(bottomnav) { animation-duration: 0s; }
::view-transition-old(root) { animation: vt-out 0.18s ease-in both; }
::view-transition-new(root) { animation: vt-in 0.4s cubic-bezier(0.22, 0.9, 0.2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media (pointer: coarse) { .fp-dot { width: 44px; height: 44px; margin: -10px; } }
.hero-proof { margin-top: 1.1rem; max-width: 36rem; font: 500 0.95rem/1.45 var(--f-text); color: var(--fg-2); }
.hero-proof::before { content: ''; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.6rem; border-radius: 50%; background: var(--amber); vertical-align: 0.05em; }
