:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --paper: #eaeaea;
  --ink: #0a0a0a;
  --text: #eaeaea;
  --mute: #8a8a8a;
  --line: rgba(234, 234, 234, .14);
  --accent: #e61919;
  --ok: #19a463;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--bg); color: var(--text); font-family: var(--display); font-size: 17px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.loading { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.small { font-size: 12px; color: var(--mute); }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--mute); margin-bottom: 20px; }
h2 { font-size: clamp(40px, 6.4vw, 104px); line-height: .92; font-weight: 800; letter-spacing: -.045em; }
h3 { font-weight: 700; letter-spacing: -.02em; }

.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .16s var(--ease-out); white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn .ico { font-size: 10px; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-ghost { border: 1px solid var(--line); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent.running { background: var(--ok); }

/* ---------- preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; padding: 22px var(--gutter); }
.loader-top { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--mute); }
.loader-line { position: absolute; left: var(--gutter); top: 50%; font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--mute); }
.loader-line::after { content: "_"; animation: blink 1s steps(1) infinite; }
.loader-count { font-weight: 800; font-size: clamp(110px, 24vw, 380px); line-height: .8; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.loader-bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); mix-blend-mode: difference; color: #fff; }
.logo { font-weight: 800; font-size: 24px; text-decoration: none; letter-spacing: -.05em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.nav-links a { text-decoration: none; opacity: .65; transition: opacity .2s; }

.nav-cta { font-size: 12px; border: 1px solid #fff; border-radius: 999px; padding: 8px 14px; text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; transition: opacity .8s var(--ease); }
.fx-canvas.invert { mix-blend-mode: difference; }
.fx-canvas.off { opacity: 0; }
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 96px var(--gutter) 34px; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-meta { display: flex; flex-direction: column; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--mute); }
.dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 1.6s cubic-bezier(0.23, 1, 0.32, 1) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
.hero-title { font-weight: 800; font-size: clamp(50px, 15.5vw, 260px); line-height: .82; letter-spacing: -.045em; text-transform: uppercase; margin-top: auto; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .char { display: inline-block; will-change: transform; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 28px; }
.hero-sub { font-size: clamp(18px, 2vw, 26px); line-height: 1.25; font-weight: 400; color: #cfcfcf; }
.rotator { color: #fff; font-weight: 700; border-bottom: 2px solid var(--accent); }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -0.12em; margin-left: 3px; animation: blink 1s steps(1) infinite; }
.hero-hint { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--mute); text-align: right; }

/* ---------- statement ---------- */
.statement { padding: 12vh 0 22vh; }
.statement-text { font-size: clamp(30px, 4.4vw, 70px); line-height: 1.08; font-weight: 500; letter-spacing: -.035em; max-width: 1200px; }
.statement-text .w { opacity: .12; }

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee-track { display: inline-block; white-space: nowrap; font-size: 13px; letter-spacing: .2em; color: var(--mute); will-change: transform; }

/* ---------- learning curve ---------- */
.curve { position: relative; }
.curve-pin { position: relative; height: 100vh; height: 100lvh; overflow: hidden; display: flex; flex-direction: column; padding-top: 86px; }
.curve-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; position: relative; z-index: 3; }
.curve-stats { display: flex; gap: 34px; }
.curve-stats div { display: flex; flex-direction: column; align-items: flex-end; }
.curve-stats div > span { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--mute); }
.curve-stats b { font-family: var(--display); font-size: clamp(34px, 4vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.curve-stats div:last-child b { color: var(--accent); }
.curve-year { position: absolute; left: var(--gutter); bottom: 4vh; z-index: 1; font-weight: 800; font-size: clamp(120px, 26vw, 420px); line-height: .78; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px rgba(234,234,234,.22); font-variant-numeric: tabular-nums; pointer-events: none; }
.curve-svg { position: absolute; left: 0; right: 0; top: 22%; bottom: 10%; width: 100%; height: 68%; z-index: 2; overflow: visible; }
.curve-line { fill: none; stroke: var(--text); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.cdot { fill: var(--bg); stroke: rgba(234,234,234,.35); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill .3s, stroke .3s; }
.cdot.on { fill: var(--text); stroke: var(--text); }
.cdot.now { fill: var(--accent); stroke: var(--accent); }
.curve-card { position: absolute; inset: auto 0 9vh 0; z-index: 4; display: flex; justify-content: flex-end; pointer-events: none; }
.cv-card { width: min(470px, 100%); background: rgb(17 17 17 / calc(.82 * var(--f, 1))); backdrop-filter: blur(calc(14px * var(--f, 1))); -webkit-backdrop-filter: blur(calc(14px * var(--f, 1))); border: 1px solid rgb(234 234 234 / calc(.14 * var(--f, 1))); border-radius: 18px; padding: 24px 26px; pointer-events: auto; }
.cv-when { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin-bottom: 10px; }
.cv-title { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.02; margin-bottom: 6px; }
.cv-where { color: var(--mute); font-size: 15px; margin-bottom: 14px; }
.cv-text { font-size: 15.5px; color: #c9c9c9; margin-bottom: 16px; }
.cv-learned { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid rgb(234 234 234 / calc(.14 * var(--f, 1))); padding-top: 14px; }
.cv-learned > span { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--mute); padding-top: 5px; }
.cv-learned > div { display: flex; flex-wrap: wrap; gap: 6px; }
.chipx { font-family: var(--mono); font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.chipx.new { border-color: var(--accent); color: #fff; }
.curve-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); z-index: 5; }
.curve-progress i { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- university ---------- */
.uni-pin { position: relative; height: 100dvh; overflow: hidden; background: radial-gradient(ellipse at 60% 40%, #1a1a1a 0%, #050505 70%); }
.uni-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.uni-copy { position: relative; z-index: 2; padding-top: 120px; pointer-events: none; }
.uni-title { font-size: clamp(38px, 5.4vw, 90px); margin-bottom: 30px; }
.uni-facts { display: grid; gap: 8px; font-size: 13px; max-width: 360px; }
.uni-facts div { display: grid; grid-template-columns: 100px 1fr; border-top: 1px solid var(--line); padding-top: 8px; }
.uni-facts div > span { color: var(--mute); text-transform: uppercase; font-size: 10px; letter-spacing: .16em; padding-top: 2px; }
.uni-caption { position: absolute; right: var(--gutter); bottom: 26px; z-index: 2; font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--mute); }

/* ---------- how I work ---------- */
.how { padding: 160px 0 120px; background: var(--paper); color: var(--ink); }
.how .eyebrow { color: #666; }
.how-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.wf-canvas { background-image: radial-gradient(#bdbdbd 1px, transparent 1px); background-size: 22px 22px; padding: 40px 0; overflow-x: auto; scrollbar-width: none; }
.wf-canvas::-webkit-scrollbar { display: none; }
.wf-track { position: relative; display: flex; gap: 56px; width: max-content; max-width: none; }
.node { position: relative; width: 250px; flex: none; background: #fff; border: 1.5px solid var(--ink); border-radius: 14px; padding: 16px 18px 44px; display: flex; flex-direction: column; gap: 9px; transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out); }
.node:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: 100%; width: 56px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); }
.node:not(:first-child)::before { content: ""; position: absolute; top: calc(50% - 6px); left: -7px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); z-index: 1; }
.ntype { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; background: var(--ink); color: #fff; padding: 3px 9px; border-radius: 6px; font-size: 10.5px; }
.node[data-type="trigger"] { border-radius: 40px 14px 14px 40px; }
.node[data-type="if"] .ntype, .node[data-type="loop"] .ntype { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.node h3 { font-size: 21px; line-height: 1.1; }
.node p { font-size: 14.5px; color: #3a3a3a; }
.true, .false { font-size: 11px; color: #fff; border-radius: 4px; padding: 1px 6px; }
.true { background: var(--ok); } .false { background: var(--accent); }
.nout { position: absolute; left: 18px; right: 18px; bottom: 14px; font-size: 11px; color: #5f5f5f; display: flex; gap: 6px; }
.node.done { border-color: var(--ok); box-shadow: 0 0 0 4px rgba(25,164,99,.15); }
.node.done .nout { color: var(--ok); }
.node.done .nout::before { content: "✓"; font-weight: 700; }
.node.done:not(:last-child)::after { background: var(--ok); }
.node.active { transform: translateY(-8px); }
.pulse-dot { position: absolute; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); z-index: 2; pointer-events: none; }

/* ---------- elements ---------- */
.elements { padding: 160px 0; }
.el-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend i.el { width: 14px; height: 14px; aspect-ratio: auto; border-radius: 3px; padding: 0; }
.ptable { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; perspective: 900px; }
.el { position: relative; min-width: 0; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s; color: var(--text); }
.el.sel { transform: translateY(-5px) scale(1.06); box-shadow: 0 18px 30px -14px rgba(0,0,0,.9); z-index: 2; }
.el.auto { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.el.code { background: #3d3d3d; border-color: #3d3d3d; }
.el.fin { background: var(--bg-2); border-color: rgba(234,234,234,.45); }
.el.biz { background: repeating-linear-gradient(135deg, var(--bg-2) 0 5px, #1d1d1d 5px 6px); border-color: rgba(234,234,234,.3); }
.el.lang { background: transparent; border: 1px dashed rgba(234,234,234,.5); }
.el.sel { outline: 2px solid var(--accent); outline-offset: 2px; }
.el .n { font-family: var(--mono); font-size: 9.5px; opacity: .6; }
.el .s { font-size: clamp(18px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.el .nm { font-size: 10px; line-height: 1.15; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-detail { margin-top: 36px; border-top: 1px solid rgb(234 234 234 / calc(.14 * var(--f, 1))); padding-top: 30px; display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; min-height: 160px; }
.el-big { width: 120px; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 48px; font-weight: 800; letter-spacing: -.05em; padding: 0; }
.el-big.el:hover { transform: none; box-shadow: none; }
.el-big.el { outline: none; }
.el-detail h3 { font-size: 34px; margin: 4px 0 8px; }
.el-detail p { color: #bdbdbd; max-width: 680px; }

/* ---------- hello ---------- */
.hello { position: relative; padding: 160px 0 0; overflow: hidden; border-top: 1px solid var(--line); }
.hello-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.letter h2 { margin-bottom: 30px; font-size: clamp(38px, 5vw, 80px); }
.letter p { font-size: 18.5px; color: #c4c4c4; margin-bottom: 16px; max-width: 600px; }
.sig { font-size: 44px !important; font-weight: 800; color: #fff !important; letter-spacing: -.04em; font-style: italic; }
.hello-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.big-name { font-weight: 800; font-size: 12.4vw; line-height: .8; letter-spacing: -.065em; white-space: nowrap; margin-top: 120px; color: transparent; -webkit-text-stroke: 1px rgba(234,234,234,.2); text-align: center; transform: translateY(12%); }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; font-size: 11px; color: var(--mute); border-top: 1px solid var(--line); }

/* ID card */
.card-scene { perspective: 1400px; display: flex; justify-content: center; }
.card { position: relative; width: min(470px, 100%); aspect-ratio: 1.586; transform-style: preserve-3d; transition: transform .9s var(--ease); text-align: left; }
.card.flipped { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.card-front { background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.card-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); transform: translateX(var(--shine, -60%)); pointer-events: none; }
.card-back { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); transform: rotateY(180deg); }
.card-top { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; letter-spacing: .18em; }
.chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #cfcfcf, #7d7d7d); position: relative; }
.chip::before { content: ""; position: absolute; inset: 6px 10px; border: 1px solid rgba(0,0,0,.35); border-radius: 3px; }
.card-body { display: flex; gap: 20px; align-items: center; }
.card-body img { width: 34%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; filter: grayscale(1) contrast(1.1); }
.card-label { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #5f5f5f; margin-top: 6px; }
.card-name { font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: .95; letter-spacing: -.03em; }
.card-val { font-size: 14px; }
.card-bottom { display: flex; justify-content: space-between; align-items: flex-end; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.barcode { width: 46%; height: 26px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; font-size: 13.5px; margin: 10px 0; }
.specs dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }

/* avatar bubble + modal */
.avatar-bubble { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; border: 2px solid var(--paper); box-shadow: 0 20px 40px -10px rgba(0,0,0,.8); transition: transform .25s var(--ease-out); }
.avatar-bubble[hidden] { display: none; }

.avatar-bubble video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.avatar-bubble span { position: absolute; inset: auto 0 10px 0; text-align: center; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #fff; text-shadow: 0 1px 6px #000; }

@keyframes ring { 0% { box-shadow: inset 0 0 0 0 rgba(230,25,25,.8); } 100% { box-shadow: inset 0 0 0 10px rgba(230,25,25,0); } }
.modal { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-inner { position: relative; width: min(960px, 100%); }
.modal-inner video { width: 100%; border-radius: 16px; }
.modal-close { position: absolute; top: -46px; right: 0; color: #fff; font-size: 36px; line-height: 1; }

/* reveal helper */
[data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), filter .6s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-hint { display: none; }
  .hello-grid { grid-template-columns: 1fr; gap: 56px; }
  .ptable { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .el-detail { grid-template-columns: 80px 1fr; gap: 18px; }
  .el-big { width: 80px; font-size: 30px; }
  .curve-card { justify-content: center; inset: auto 0 5vh 0; }
  .curve-svg { top: 26%; height: 36%; }
  .curve-year { bottom: auto; top: 18%; font-size: 30vw; }
  .cv-card { padding: 18px 20px; }
  .cv-text { font-size: 14px; }
  .uni-copy { padding-top: 90px; }
  .uni-facts { display: none; }
  .avatar-bubble { width: 84px; height: 84px; right: 14px; bottom: 14px; }
}
@media (max-width: 560px) {
  .curve-stats { gap: 18px; }
  .curve-head .eyebrow { max-width: 140px; }
  .statement { padding: 8vh 0 12vh; }
  .how, .elements { padding: 110px 0; }
  .hello { padding-top: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  /* fewer, gentler animations, not none: opacity and colour still fade */
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-property: opacity, color, background-color, border-color !important; transition-duration: .2s !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .statement-text .w { opacity: 1; }
}
.uni-pin::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(5,5,5,.85) 0%, rgba(5,5,5,.5) 30%, transparent 55%); }
@media (max-width: 900px) { .uni-pin::after { background: linear-gradient(180deg, rgba(5,5,5,.9) 0%, rgba(5,5,5,.4) 35%, transparent 55%); } }
[hidden] { display: none !important; }
.ptable.anim .el, #wfTrack.anim .node { transition: none; }

/* ---------- polish ---------- */
.nav { transition: transform .35s var(--ease-out); }
.nav.hide { transform: translateY(-110%); }
.scroll-prog { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 95; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.how { position: relative; z-index: 3; border-radius: 36px 36px 0 0; margin-top: -36px; }
.elements { position: relative; z-index: 2; background: var(--bg); border-radius: 36px 36px 0 0; margin-top: -36px; }
@media (min-width: 901px) { .curve-card { padding-right: calc(var(--gutter) + 10px); } }

/* layering above the fixed particle canvas */
.hero, .statement, .marquee, .curve { position: relative; z-index: 2; }
.uni, .how, .elements, .hello, .foot { position: relative; z-index: 3; }
.uni { background: #050505; } .hello, .foot { background: var(--bg); }
.uni-title .ul { display: block; }
@media (max-width: 900px) { .hero-meta > span:not(:first-child) { display: none; } }

/* ---------- story: university → work → globe ---------- */
.story { position: relative; z-index: 3; }
.story-pin { position: relative; height: 100vh; height: 100lvh; overflow: hidden; background: radial-gradient(ellipse at 55% 42%, #171717 0%, #0a0a0a 70%); }
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gap-label { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: min(720px, 88vw); text-align: center; pointer-events: none; }
.gap-label > span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); margin-bottom: 6px; }
.gap-label b { display: block; font-size: clamp(17px, 1.9vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.9); }
.story-copy { position: absolute; left: var(--gutter); top: 110px; z-index: 2; max-width: min(560px, 90vw); pointer-events: none; }
.hold-title { font-size: clamp(36px, 5.2vw, 88px); margin-bottom: 28px; }
.hold-title .ul { display: block; }
.story-globe { top: auto; bottom: 14vh; }
.globe-text { font-size: clamp(20px, 2.3vw, 34px); line-height: 1.22; font-weight: 500; letter-spacing: -.02em; }
.story-caption { position: absolute; right: var(--gutter); bottom: 24px; z-index: 2; font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--mute); }
@media (max-width: 900px) {
  .story-copy { top: 84px; }
  .story-globe { top: auto; bottom: 8vh; }
  .hold-title { font-size: clamp(30px, 9vw, 48px); }
  .story-copy .uni-facts { display: none; }
}
.story-pin::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(10,10,10,.7) 0%, rgba(10,10,10,.25) 34%, transparent 55%); }
@media (max-width: 900px) { .story-pin::after { background: linear-gradient(180deg, rgba(10,10,10,.6) 0%, transparent 35%, transparent 65%, rgba(10,10,10,.6) 100%); } }
.gap-label.pin { width: min(340px, 44vw); transform: translate(-50%, -100%); padding-bottom: 14px; }
.gap-label.pin b { font-size: clamp(14px, 1.35vw, 19px); }
@media (max-width: 900px) { .gap-label.pin { width: 46vw; } .gap-label.pin b { font-size: 12.5px; } .gap-label.pin > span { font-size: 9px; } }
.statement .wrap { display: flex; justify-content: center; }
.statement-text { text-align: center; max-width: 1100px; }
@media (max-width: 900px) {
  .gap-label.pin { width: 88vw; padding-bottom: 0; }
  .gap-label.pin b { font-size: 15px; }
  .gap-label.pin > span { font-size: 9.5px; margin-bottom: 3px; }
  .curve-head .eyebrow { display: none; }
  .curve-head { justify-content: flex-end; }
}


/* ---------- final polish (motion, interaction, type) ---------- */
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; transition: top .2s var(--ease-out); }
.skip:focus-visible { top: 12px; }
section[id], header[id] { scroll-margin-top: 80px; }
h2, h3, .hold-title, .gap-label b, .cv-title, .hero-title { text-wrap: balance; }
.lead, .cv-text, .letter p, .globe-text, .node p, .el-detail p { text-wrap: pretty; }
.card-body img { outline: 1px solid rgba(0,0,0,.1); outline-offset: -1px; }
.loader-count, .curve-stats b, .curve-year { font-variant-numeric: tabular-nums; }
.btn { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out); }
.btn:active { transform: scale(.97); }
.el:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { border-color: var(--text); }
  .nav-links a:hover { opacity: 1; }
  .el:hover { transform: translateY(-5px) scale(1.06); box-shadow: 0 18px 30px -14px rgba(0,0,0,.9); z-index: 2; }
  .el-big.el:hover { transform: none; box-shadow: none; }
  .avatar-bubble:hover { transform: scale(1.04); }
  .node:hover { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .statement-text .w, .gap-label .w, .hero-title .char { transition: opacity .2s ease; }
}

/* ---------- phones: the workflow runs top to bottom ---------- */
@media (max-width: 700px) {
  .how { padding: 96px 0 80px; }
  .how-head { margin-bottom: 28px; }
  .wf-canvas { overflow: visible; padding: 26px 0 30px; }
  .wf-track { flex-direction: column; gap: 40px; width: 100%; max-width: 100%; padding: 0 var(--gutter); }
  .node { width: 100%; padding: 16px 18px 42px; }
  .node[data-type="trigger"] { border-radius: 28px 28px 14px 14px; }
  .node:not(:last-child)::after { top: 100%; left: calc(50% - 1px); width: 2px; height: 40px; background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 10px); }
  .node:not(:first-child)::before { top: -7px; left: calc(50% - 6px); }
  .node.active { transform: translateY(-4px); }
}
/* ---------- phones: the skill detail sits right above the table, so a tap shows its answer in view ---------- */
@media (max-width: 700px) {
  .elements { padding: 96px 0 80px; }
  .elements .wrap { display: flex; flex-direction: column; }
  .el-head { margin-bottom: 18px; gap: 14px; }
  .legend { gap: 10px 14px; }
  .el-detail { order: 1; margin: 0 0 18px; padding: 16px 0 18px; border-top: 0; border-bottom: 1px solid rgb(234 234 234 / calc(.14 * var(--f, 1))); min-height: 132px; }
  .ptable { order: 2; gap: 6px; }
  .el-detail h3 { font-size: 24px; margin: 2px 0 4px; }
  .el-detail p { font-size: 14.5px; line-height: 1.45; }
  .el { padding: 6px 6px 5px; border-radius: 7px; }
  .el .nm { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 8.5px; line-height: 1.1; }
  .el .s { font-size: 20px; }
}
/* ---------- phones: the pass gets the height its content needs ---------- */
@media (max-width: 560px) {
  .card { aspect-ratio: 1.24; }
  .card-face { padding: 16px 18px; border-radius: 18px; }
  .card-body { gap: 16px; }
  .card-body img { width: 31%; }
  .card-name { font-size: 24px; }
  .card-val { font-size: 13px; }
  .specs { font-size: 12.5px; gap: 6px 14px; margin: 8px 0; }
  .letter h2 { font-size: 40px; margin-bottom: 22px; }
  .letter p { font-size: 16.5px; }
  .sig { font-size: 36px !important; }
  .hello-actions .btn { flex: 1 1 auto; justify-content: center; }
  .big-name { margin-top: 72px; }
  .foot { flex-direction: column; gap: 8px; }
}

/* ---------- mobile browsers: the toolbar slides in and out while scrolling ----------
   pinned scenes and the particle layer use the large viewport, so nothing resizes or jumps mid-scroll;
   whatever sits at the bottom is lifted by the toolbar's height (0 on desktop) so it is never hidden */
:root { --bar: 0px; }
@supports (height: 100lvh) { :root { --bar: calc(100lvh - 100svh); } }
.fx-canvas { height: 100vh; height: 100lvh; bottom: auto; }
.story-caption { bottom: calc(24px + var(--bar)); }
.story-globe { bottom: calc(14vh + var(--bar)); }
.curve-card { bottom: calc(9vh + var(--bar)); }
.curve-progress { bottom: var(--bar); }
.curve-year { bottom: calc(4vh + var(--bar)); }
@media (max-width: 900px) {
  .story-globe { bottom: calc(8svh + var(--bar)); }
  .curve-card { bottom: calc(4svh + var(--bar)); }
  .curve-year { bottom: auto; }
  /* expensive on phones while WebGL animates behind it */
  .cv-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(17 17 17 / calc(.94 * var(--f, 1))); }
  .grain { display: none; }
}
@media (max-width: 900px) {
  .story-caption { left: var(--gutter); text-align: right; font-size: 9.5px; letter-spacing: .12em; text-wrap: balance; }
}

/* ---------- ?loop: the portrait alone, for the GIF ---------- */
.loop .nav, .loop .scroll-prog, .loop .hero-hint, .loop .skip, .loop .avatar-bubble { display: none !important; }
.loop body { overflow: hidden; }
.loop .hero { height: 100vh; min-height: 0; z-index: 5; }
.loop .hero-title { text-shadow: 0 6px 40px rgba(0,0,0,.55); }

/* the light "how" card rises over the end of the timeline instead of after an empty screen */
.how { margin-top: -36px; }

/* ---------- no particles possible (no WebGL / scripts failed): the plain, readable page ---------- */
.no-fx .w, .no-fx .char, .no-fx .ul, .no-fx .el, .no-fx .node, .no-fx .btn, .no-fx .card-scene, .no-fx .uni-facts > div,
.no-fx .chipx, .no-fx .el-big, .no-fx .curve-progress, .no-fx i.el, .no-fx .dot { opacity: 1 !important; }
.no-fx .cv-card, .no-fx .el-detail { --f: 1 !important; }
.no-fx .story, .no-fx .fx-canvas, .no-story .story { display: none; }
.no-fx .hero { background: url("assets/portrait-cut.webp") right 8% bottom 22% / auto 62% no-repeat; }
.no-fx .hero-meta, .no-fx .hero-foot { opacity: 1 !important; transform: none !important; }
@media (max-width: 900px) { .no-fx .hero { background-position: center 18%; background-size: auto 48%; } }
/* the timeline rises over the last of the globe dust instead of after an empty screen */
.curve { z-index: 3; margin-top: -40vh; }   /* above the story (same level, later), below the particle layer (4) */
.curve-pin { background: linear-gradient(180deg, rgba(10,10,10,0) 0, var(--bg) 26vh); }

/* ---------- statement: a headline forms, a beat of silence, then one short line ---------- */
.statement .wrap { flex-direction: column; align-items: center; }
.statement-text { font-size: clamp(46px, 7.6vw, 128px); font-weight: 700; line-height: .95; letter-spacing: -.05em; max-width: 1100px; text-wrap: balance; }
.statement-sub { margin-top: clamp(22px, 3vw, 40px); max-width: 680px; text-align: center; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; color: #bdbdbd; text-wrap: balance; }

/* ---------- work: an aligned list on the left, a number on each building ---------- */
.work-list { position: absolute; z-index: 2; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(400px, 34vw); pointer-events: none; }
.work-row { display: grid; grid-template-columns: 44px 1fr; gap: 0 10px; padding: 16px 0 18px; border-top: 1px solid rgb(234 234 234 / calc(.16 * var(--f, 1))); }
.work-row:last-child { border-bottom: 1px solid rgb(234 234 234 / calc(.16 * var(--f, 1))); }
.work-row .wn { font-size: 12px; color: var(--accent); letter-spacing: .1em; padding-top: 3px; }
.work-row .wm { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--mute); margin-bottom: 6px; }
.work-row b { display: block; font-size: clamp(16px, 1.45vw, 21px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: #fff; }
.bld-tag { position: absolute; z-index: 2; transform: translate(-50%, -100%); font-size: 12px; letter-spacing: .1em; color: #fff; padding: 4px 8px 5px; border: 1px solid rgb(234 234 234 / calc(.45 * var(--f, 1))); border-radius: 999px; background: rgb(10 10 10 / calc(.55 * var(--f, 1))); pointer-events: none; }
@media (max-width: 900px) {
  .work-list { top: auto; transform: none; bottom: calc(9vh + var(--bar)); right: var(--gutter); width: auto; }
  .work-row { grid-template-columns: 34px 1fr; padding: 11px 0 12px; }
  .work-row .wm { font-size: 9.5px; margin-bottom: 3px; }
  .work-row b { font-size: 15px; }
  .bld-tag { font-size: 10.5px; padding: 3px 7px 4px; }
}

.work-row { transition: opacity .45s var(--ease-out); }
.work-row.dim { opacity: .28; }
.bld-tag { transition: visibility 0s; }
.story-pin.visiting .bld-tag { visibility: hidden; }

/* ---------- moments: photos that open inside the showroom ---------- */
.moment { position: absolute; z-index: 3; right: calc(var(--gutter) + 10px); width: min(300px, 26vw); margin: 0; padding: 8px 8px 10px; background: #f4efe4; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); pointer-events: none; }
.moment img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: #ddd; }
.moment figcaption { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #333; padding: 8px 2px 0; }
.moment[data-moment="1"] { top: 16vh; transform: rotate(-3deg); }
.moment[data-moment="2"] { top: 46vh; right: calc(var(--gutter) + 70px); transform: rotate(2.5deg); }
.moment.missing { display: none; }
@media (max-width: 900px) {
  .moment { width: 44vw; padding: 5px 5px 7px; }
  .moment figcaption { font-size: 8.5px; padding-top: 5px; }
  .moment[data-moment="1"] { top: 11vh; right: 4vw; }
  .moment[data-moment="2"] { top: 11vh; right: auto; left: 4vw; }
}
.bld-tag { display: none !important; }

/* the story scene melts into the page above and below (no visible edge when it slides in or out) */
.story-pin::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #0a0a0a 0, rgba(10,10,10,0) 14vh, rgba(10,10,10,0) calc(100% - 14vh), #0a0a0a 100%); }

/* ---------- the CV at a glance: one view, one stop ---------- */
/* the CV rises over the globe's last dust: its title forms out of that dust while the scene lets go */
.curve { margin-top: -100vh; padding: 26vh 0 14vh; background: linear-gradient(180deg, rgba(10,10,10,0) 0, rgba(10,10,10,0) 12vh, var(--bg) 46vh); }
.cvx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 42px; }
.cvx-title { font-size: clamp(40px, 5.6vw, 92px); }
.cvx-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cvx-note { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.cvx-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.curve .curve-svg { position: relative; inset: auto; top: auto; bottom: auto; width: 100%; height: clamp(240px, 32vw, 460px); }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid rgb(234 234 234 / .12); align-items: baseline; }
.cv-list li:last-child { border-bottom: 1px solid rgb(234 234 234 / .12); }
.cv-list .y { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .06em; }
.cv-list b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.cv-list .wh { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.35; }
@media (max-width: 900px) {
  .curve { margin-top: -100vh; padding: 24vh 0 10vh; }
  .cvx-grid { grid-template-columns: 1fr; gap: 22px; }
  .cvx-cta { align-items: flex-start; }
  .curve .curve-svg { height: 200px; }
  .cv-list li { grid-template-columns: 48px 1fr; padding: 7px 0; }
  .cv-list b { font-size: 14px; }
  .cv-list .wh { font-size: 11.5px; }
}

/* ---------- workflow: two rounds, the first one bounces at the human review ---------- */
.node.fail { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(230,25,25,.15); }
.node.fail .nout { color: var(--accent); }
.node.fail .nout::before { content: "✕"; font-weight: 700; }
.node.v2 h3::after { content: " · v2"; color: var(--ok); }
.wf-back { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.wf-back path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 5; }
.wf-back-label { position: absolute; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none; }
.wf-back-label.on { opacity: 1; }
.wf-track { padding-bottom: 70px; }
/* desktop: all six nodes fit in one row (no sideways scrolling) */
@media (min-width: 1101px) {
  .wf-canvas { overflow: visible; }
  .wf-track { width: 100%; max-width: 1360px; gap: 40px; }
  .node { width: auto; flex: 1 1 0; min-width: 0; }
  .node:not(:last-child)::after { width: 40px; }
  .node h3 { font-size: 18px; }
  .node p { font-size: 13.5px; }
}
@media (max-width: 1100px) {
  .wf-canvas { overflow: visible; padding: 26px 0 30px; }
  .wf-track { flex-direction: column; gap: 40px; width: 100%; max-width: 100%; padding: 0 calc(var(--gutter) + 46px) 0 var(--gutter); }
  .node { width: 100%; }
  .node[data-type="trigger"] { border-radius: 28px 28px 14px 14px; }
  .node:not(:last-child)::after { top: 100%; left: calc(50% - 1px); width: 2px; height: 40px; background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 10px); }
  .node:not(:first-child)::before { top: -7px; left: calc(50% - 6px); }
}

/* ---------- work: one place at a time, on a readable panel ---------- */
.work-list { display: grid; width: min(500px, 38vw); top: 50%; transform: translateY(-50%); }
.work-row, .work-row:last-child { grid-area: 1 / 1; border: 0; padding: 26px 28px 28px; grid-template-columns: 58px 1fr; border-radius: 16px;
  background: rgb(10 10 10 / calc(.84 * var(--f, 1))); box-shadow: 0 30px 70px -30px rgb(0 0 0 / calc(.9 * var(--f, 1))); }
.work-row .wn { font-size: 34px; font-family: var(--display); font-weight: 800; letter-spacing: -.04em; line-height: 1; padding-top: 0; }
.work-row .wm { font-size: 11px; margin-bottom: 8px; color: #9a9a9a; }
.work-row b { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; margin-bottom: 12px; }
.work-row .wd { font-size: 16px; line-height: 1.55; color: #d4d4d4; text-wrap: pretty; }
.work-row.dim { opacity: 1; }
@media (max-width: 900px) {
  .work-list { top: auto; transform: none; left: 12px; right: 12px; width: auto; bottom: calc(5vh + var(--bar)); }
  .work-row, .work-row:last-child { padding: 18px 18px 20px; grid-template-columns: 40px 1fr; }
  .work-row .wn { font-size: 24px; }
  .work-row b { font-size: 19px; margin-bottom: 8px; }
  .work-row .wd { font-size: 14px; line-height: 1.5; }
  .moment[data-moment="1"], .moment[data-moment="2"] { top: 9vh; }
}

/* the review bounces once: one clear red second */
.node.fail { background: #ffecec; animation: failFlash .9s var(--ease-out) both; }
@keyframes failFlash { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230,25,25,.55); } 18% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(230,25,25,.28); } 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(230,25,25,.15); } }
@media (prefers-reduced-motion: reduce) { .node.fail { animation: none; } }

/* the university hold: copy centred above the middle of the building */
.story-copy[data-hold="uni"] { left: 50%; transform: translateX(-50%); top: 11vh; width: min(1000px, 92vw); max-width: none; text-align: center; }
.story-copy[data-hold="uni"] .hold-title { font-size: clamp(34px, 5vw, 80px); margin-bottom: 22px; }
.story-copy[data-hold="uni"] .uni-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 0 34px; max-width: none; }
.story-copy[data-hold="uni"] .uni-facts > div { display: flex; flex-direction: column; gap: 3px; border-top: 0; padding-top: 0; text-align: center; }
@media (max-width: 900px) {
  .story-copy[data-hold="uni"] { top: 10vh; }
  .story-copy[data-hold="uni"] .hold-title { font-size: clamp(28px, 8.4vw, 44px); }
}
@media (max-width: 900px) {
  .story-copy[data-hold="uni"] .uni-facts { grid-template-columns: repeat(2, auto); gap: 10px 28px; font-size: 12px; }
  .story-copy[data-hold="uni"] .eyebrow { font-size: 9.5px; letter-spacing: .14em; }
}

/* the statement holds the screen: it pins, forms, rests, and dissolves before the story comes in */
.statement, .statement { padding: 0; margin-top: -68vh; }
.statement-pin { height: 100vh; height: 100svh; display: flex; align-items: center; }
@media (max-width: 560px) { .statement { padding: 0; } }

/* one continuous film: the story scene takes over right after the hero, the statement is its first act */
.story { margin-top: -68vh; }
.statement-scene { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--gutter); text-align: center; pointer-events: none; }

/* polaroids: real photos, pinned like notes */
.moment { width: min(340px, 27vw); padding: 10px 10px 0; background: #fbfaf6; border-radius: 3px; box-shadow: 0 2px 0 rgba(0,0,0,.06), 0 30px 60px -18px rgba(0,0,0,.85); }
.moment img { aspect-ratio: 4 / 3; border-radius: 1px; filter: contrast(1.04) saturate(1.05); }
.moment figcaption { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-style: italic; font-weight: 500; font-size: 15px; letter-spacing: 0; text-transform: none; color: #2b2b2b; padding: 10px 4px 14px; }
.moment::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(230, 216, 168, .78); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
@media (max-width: 900px) { .moment { width: 44vw; padding: 6px 6px 0; } .moment figcaption { font-size: 11px; padding: 6px 2px 9px; } .moment::before { width: 56px; height: 16px; top: -8px; } }

/* the illustrated cards again, each with the real photo pinned on as a small polaroid */
.moment { width: min(300px, 26vw); padding: 8px 8px 0; background: #f4efe4; border-radius: 6px; }
.moment > img { aspect-ratio: 4 / 3; filter: none; }
.moment figcaption { font-family: var(--mono); font-style: normal; font-weight: 400; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #333; padding: 8px 2px 10px; }
.moment::before { display: none; }
.pin-photo { position: absolute; right: -22px; bottom: -26px; width: 46%; padding: 5px 5px 16px; background: #fbfaf6; border-radius: 2px; transform: rotate(6deg); box-shadow: 0 14px 30px -10px rgba(0,0,0,.75); }
.pin-photo::before { content: ""; position: absolute; top: -8px; left: 50%; width: 46px; height: 15px; transform: translateX(-50%) rotate(-4deg); background: rgba(230, 216, 168, .8); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.pin-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1px; }
.pin-photo.missing { display: none; }
.moment[data-moment="2"] .pin-photo { transform: rotate(-5deg); right: auto; left: -24px; }
@media (max-width: 900px) { .moment { width: 40vw; } .pin-photo { width: 52%; right: -10px; bottom: -18px; padding: 3px 3px 10px; } .moment[data-moment="2"] .pin-photo { left: -10px; } }
/* the story now slides in under the hero: the hero (transparent) stays on top until its name has dissolved */
.hero { z-index: 4; }

/* round two: the review passes, a clear green second */
.node.pass { background: #e9f8f0; border-color: var(--ok); animation: passFlash 1.1s var(--ease-out) both; }
.node.pass .nout { color: var(--ok); font-weight: 600; }
@keyframes passFlash { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(25,164,99,.55); } 18% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(25,164,99,.28); } 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(25,164,99,.18); } }
@media (prefers-reduced-motion: reduce) { .node.pass { animation: none; } }

/* ---------- polish pass (emil-design-eng · make-interfaces-feel-better · web-design-guidelines) ---------- */
.rotator { white-space: nowrap; }
@media (max-width: 560px) { .hero-sub { min-height: calc(2 * 1.25em); } }
#execBtn { min-width: 13.5em; justify-content: center; }
.node { transition: transform 160ms var(--ease-out), border-color 200ms ease, background-color 200ms ease; }
.node.active { transform: translateY(-4px); }
.work-row .wn, .cv-list .y, .el .n { font-variant-numeric: tabular-nums; }
.cv-list b, .work-row .wd, .statement-sub, .globe-text { text-wrap: pretty; }
@media (max-width: 560px) { h2, .hold-title, .cvx-title, .statement-text { letter-spacing: -.03em; } }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; transition: background-color .2s ease, color .2s ease; }
.modal-close { width: 44px; height: 44px; display: grid; place-items: center; }
.card-front::after { transition: transform 200ms ease; }
.el { transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-light:hover { background: #fff; }
  .btn-accent:hover { background: #f02a2a; }
  .btn-accent.running:hover { background: var(--ok); }
  .nav-cta:hover { background: #fff; color: #000; }
  .el:hover:active, .el.sel:active { transform: translateY(-5px) scale(1.02); transition-duration: 120ms; }
}
@media (hover: none) { a:active, button:active { opacity: .7; } }

.cdot { transition: opacity .2s ease; }

.cv-group { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin: 0 0 6px; }
.cv-list + .cv-group { margin-top: 26px; }
