/* sumit.ivaraa.studio: Sumit Akhuli
   An Ivaraa-family site with its own palette: graphite, acid yellow (the main character), signal red, cool white.
   Same type system and motion language as motion.ivaraa.studio. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; src: url(../assets/fonts/BricolageGrotesque-800.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; src: url(../assets/fonts/Inter-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; src: url(../assets/fonts/Inter-700.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; src: url(../assets/fonts/JetBrainsMono-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; src: url(../assets/fonts/InstrumentSerif-400-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"); size-adjust: 102%; ascent-override: 93%; descent-override: 24%; line-gap-override: 0%; }

:root {
  /* palette (contrast on --ink: paper 16.9:1, paper-2 11:1, mute 6.9:1, acid 15.6:1, signal 5.6:1) */
  --ink: #0E0E10;
  --ink-2: #131316;
  --coal: #18181C;
  --line: #26262B;
  --line-2: #3A3A42;
  --paper: #EDEEF0;
  --paper-2: #C6C8CE;
  --mute: #9A9CA4;
  --acid: #F2E600;
  --acid-2: #D9CC00;
  --signal: #FF3B30;

  --acid-a: 242, 230, 0;
  --signal-a: 255, 59, 48;
  --dot-fill: radial-gradient(circle at 42% 38%, #FFFBC2 0%, #F7EC2A 45%, #D9CC00 100%);
  --dot-glow-sm: 0 0 14px 2px rgba(var(--acid-a), .5);

  --f-display: "Bricolage Grotesque", "Bricolage Fallback", "Inter", system-ui, sans-serif;
  --f-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-serif: "Instrument Serif", Georgia, serif;

  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --inout: cubic-bezier(0.83, 0, 0.17, 1);

  --gutter: clamp(18px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--f-body); font-size: 17px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 14px; background: var(--acid); color: var(--ink); border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

/* ---------- the dot (IV.dotCSS, recoloured) ---------- */
.iv-dot { position: absolute; left: 0; top: 0; width: 100px; height: 100px; margin: -50px 0 0 -50px; will-change: transform; }
.iv-dot-body { position: absolute; inset: 0; border-radius: 50%; background: var(--dot-fill);
  box-shadow: 0 0 16px 2px rgba(var(--acid-a), .5), 0 0 50px 8px rgba(var(--acid-a), .18); }
.iv-dot-halo { position: absolute; inset: -150%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--acid-a), .26) 0%, rgba(var(--acid-a), .08) 35%, rgba(var(--acid-a), 0) 68%); }
.iv-ring { position: absolute; left: 0; top: 0; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; border: 3px solid var(--acid); opacity: 0; pointer-events: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter); transition: background .4s, padding .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(14, 14, 16, .74); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 rgba(237, 238, 240, .06); }
.nav-mark { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -0.04em; line-height: 1; }
.nav-mark-last { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.nav-i { position: relative; }
.nav-tittle { position: absolute; left: 50%; top: .02em; width: .19em; height: .19em; margin-left: -.095em; border-radius: 50%; background: var(--dot-fill); box-shadow: var(--dot-glow-sm); }
.nav-links { display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 999px; background: rgba(24, 24, 28, .6); box-shadow: inset 0 0 0 1px rgba(237, 238, 240, .07); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--paper-2); transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--paper); background: rgba(237, 238, 240, .07); }
.nav-links a.is-current { color: var(--ink); background: var(--acid); }
.nav-ivaraa { font-size: 14px; color: var(--paper-2); padding: 8px 4px; transition: color .25s; }
.nav-ivaraa:hover { color: var(--acid); }
.arr { display: inline-block; margin-left: 4px; transition: transform .3s var(--out); }
a:hover > .arr, a:hover .arr { transform: translate(2px, -2px); }
@media (max-width: 760px) {
  .nav { gap: 10px; padding: 14px var(--gutter); }
  .nav-links a:not([href="#work"]):not([href="#contact"]) { display: none; }
  .nav-links a { padding: 7px 12px; font-size: 13px; }
  .nav-mark-last { display: none; }
  .nav-ivaraa { font-size: 13px; }
}

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 45% at 50% 52%, rgba(var(--acid-a), .05) 0%, rgba(var(--acid-a), 0) 70%),
    linear-gradient(180deg, #0e0e10 0%, #101013 38%, #151518 52%, #111114 60%, #0e0e10 100%); }
.hero-stage { position: absolute; inset: 0; }
.hero-back, .hero-front { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-back { z-index: 1; }
.hero-type { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: center; align-items: flex-start; pointer-events: none;
  padding-top: clamp(84px, 13vh, 150px); will-change: transform; transform-origin: 50% 30%; }
.hero-dotlayer { position: absolute; inset: 0; z-index: 2; pointer-events: none; transform-origin: 50% 30%; }
.hero-dotlayer.is-flying { z-index: 5; }
.hero-front { z-index: 3; }
.hero-title { margin: 0; font-family: var(--f-display); font-weight: 800; line-height: .8; letter-spacing: -0.042em;
  font-size: clamp(118px, 29.5vw, 640px); color: var(--paper); text-align: center; }
.hero-title .word { display: inline-block; white-space: nowrap; padding: 0 .04em; clip-path: inset(-60% -10% -2% -10%); }
.hero-title .ch { display: inline-block; background: linear-gradient(180deg, #ffffff 0%, #edeef0 50%, #b9bcc4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ch-i { position: relative; }
.baseline { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.hero-dotlayer .iv-dot { opacity: 0; }
html.is-reduced .hero-dotlayer .iv-dot, html.dot-ready:not(.is-intro) .hero-dotlayer .iv-dot { opacity: 1; }

.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; align-items: end; gap: 28px 40px;
  padding: 120px var(--gutter) clamp(26px, 5vh, 48px); background: linear-gradient(0deg, rgba(14, 14, 16, .94) 0%, rgba(14, 14, 16, .62) 50%, rgba(14, 14, 16, 0) 100%); }
.hero-badge { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); display: flex; gap: 10px; align-items: center; }
.hero-badge::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot-fill); box-shadow: var(--dot-glow-sm); }
.hero-desc { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.4; color: var(--paper-2); max-width: 34em; text-wrap: pretty; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
html.is-intro .hero-copy > *, html.is-intro .nav > * { opacity: 0; }
/* the overhead shot: a caption fades in when the camera is above the crowd */
.hero-over { position: absolute; z-index: 6; left: 50%; top: 76%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; opacity: 0; width: min(90vw, 760px); }
.hero-over p { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 72px); line-height: .95; letter-spacing: -0.04em; color: var(--paper); text-shadow: 0 4px 40px rgba(0, 0, 0, .8); }
.hero-over p em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--acid); }
.hero-over span { display: block; margin-top: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-2); }

.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; isolation: isolate;
  transition: box-shadow .35s, background .35s, color .35s; will-change: transform; }
.btn-acid { background: var(--acid); color: var(--ink); box-shadow: 0 10px 40px -12px rgba(var(--acid-a), .55); }
.btn-acid:hover { box-shadow: 0 16px 50px -10px rgba(var(--acid-a), .75); }
.btn-ghost { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(237, 238, 240, .24); background: rgba(14, 14, 16, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--acid); color: var(--acid); }
.btn > span { pointer-events: none; }

/* callout: an annotation on the man in the spotlight */
.callout { position: absolute; z-index: 4; left: 0; top: 0; pointer-events: none; display: flex; align-items: center; opacity: 0; will-change: transform; }
.callout-line { display: block; width: clamp(60px, 8vw, 130px); height: 1px; background: linear-gradient(90deg, rgba(var(--acid-a), 0), var(--acid)); transform-origin: 0 50%; }
.callout-text { padding: 7px 12px; border-radius: 999px; background: rgba(14, 14, 16, .8); box-shadow: inset 0 0 0 1px rgba(var(--acid-a), .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-2); white-space: nowrap; }
.callout-text b { color: var(--acid); font-weight: 400; margin-right: 6px; }
.callout::before { content: ""; position: absolute; left: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); }

/* no-WebGL / no-JS fallback: SVG silhouettes */
.hero-fallback { position: absolute; inset: 0; display: none; pointer-events: none; }
.hero-fallback svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.hero-fallback-back { z-index: 1; }
.hero-fallback-front { z-index: 3; }
html.no-webgl .hero-fallback { display: block; }
html.no-webgl .hero-back, html.no-webgl .hero-front { display: none; }

@media (max-width: 900px) {
  .hero-copy { grid-template-columns: 1fr; gap: 16px; padding-top: 90px; }
  .hero-actions { justify-content: flex-start; }
  .hero-title { font-size: clamp(110px, 33vw, 400px); }
  .callout { display: none; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .hero-type { padding-top: clamp(110px, 19vh, 190px); }
  .hero-title { font-size: 32vw; letter-spacing: -0.045em; }
  .hero-desc { font-size: 16px; }
  .btn { height: 44px; padding: 0 18px; font-size: 14px; }
}

/* ---------- ticker ---------- */
.ticker { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); padding: 18px 0; }
.ticker-track { display: flex; width: max-content; animation: tick 48s linear infinite; will-change: transform; }
.ticker-set { display: flex; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -0.03em; color: var(--paper-2); white-space: nowrap; }
.ticker-track span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections + kinetic headings ---------- */
.section { position: relative; padding: clamp(90px, 14vh, 170px) 0; }
.sec-head { position: relative; display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-num { position: absolute; right: calc(var(--gutter) * -0.5); top: -0.32em; z-index: -1; font-family: var(--f-display); font-weight: 800; font-size: clamp(160px, 26vw, 420px); line-height: .8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(237, 238, 240, .09); pointer-events: none; user-select: none; will-change: transform; }
.marker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.marker::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background .3s, box-shadow .3s, transform .5s var(--out); }
.marker.is-current::before { background: var(--dot-fill); box-shadow: var(--dot-glow-sm); transform: scale(1.25); }
.marker b { color: var(--signal); font-weight: 400; }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 7.4vw, 124px); line-height: .92; letter-spacing: -0.045em; max-width: 13ch; text-wrap: balance; }
.h2 > span { display: inline-block; transform-origin: 0 100%; will-change: transform; }
.h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--acid); padding-right: .04em; }
.h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin: 0 -.02em -.1em; }
.h2 .c { display: inline-block; will-change: transform; }

/* ---------- work ---------- */
.filters[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -30px 0 36px; }
.filter { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: color .25s, background .25s, box-shadow .25s; }
.filter sup { font-family: var(--f-mono); font-size: 10px; color: var(--mute); top: 0; }
.filter:hover { color: var(--paper); box-shadow: inset 0 0 0 1px var(--mute); }
.filter[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: none; }
.filter[aria-pressed="true"] sup { color: var(--signal); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); perspective: 1600px; }
.card { grid-column: span 4; position: relative; min-height: 360px; transform-style: preserve-3d; }
.card.s-7 { grid-column: span 7; min-height: 480px; }
.card.s-5 { grid-column: span 5; min-height: 480px; }
.card.s-6 { grid-column: span 6; }
.card.s-12 { grid-column: span 12; min-height: 320px; }
.card[hidden] { display: none; }
.card-in { position: relative; height: 100%; display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 2.4vw, 34px); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #1b1b20 0%, #141417 60%, #111113 100%); box-shadow: inset 0 0 0 1px rgba(237, 238, 240, .07), 0 30px 60px -30px rgba(0, 0, 0, .8);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--out), box-shadow .4s; }
.card-in::before { /* the spotlight follows the cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(var(--acid-a), .11), rgba(var(--acid-a), .03) 40%, transparent 70%); }
.card:hover .card-in::before, .card:focus-within .card-in::before { opacity: 1; }
.card:hover .card-in, .card:focus-within .card-in { box-shadow: inset 0 0 0 1px rgba(var(--acid-a), .4), 0 40px 80px -30px rgba(0, 0, 0, .9); }
.card-glyph { position: absolute; right: -0.06em; bottom: -0.24em; z-index: -1; font-family: var(--f-display); font-weight: 800; font-size: clamp(180px, 22vw, 340px); line-height: 1; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(237, 238, 240, .07); transform: translate3d(calc(var(--gx, 0) * -14px), calc(var(--gy, 0) * -14px), 0); transition: transform .6s var(--out), -webkit-text-stroke-color .4s; pointer-events: none; user-select: none; }
.card:hover .card-glyph { -webkit-text-stroke-color: rgba(var(--acid-a), .28); }
.card-top { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.card-n { color: var(--signal); }
.card-year { margin-left: auto; }
.card-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3vw, 46px); line-height: .95; letter-spacing: -0.04em; }
.s-7 .card-title, .s-5 .card-title { font-size: clamp(36px, 4.4vw, 68px); }
.card-sum { color: var(--paper-2); font-size: 16px; max-width: 46ch; text-wrap: pretty; }
.card-metrics { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: auto 0 0; padding-top: 6px; }
.card-metrics div { display: flex; flex-direction: column-reverse; }
.card-metrics dt { font-size: 13px; color: var(--mute); }
.card-metrics dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 3.4vw, 54px); letter-spacing: -0.04em; line-height: 1; color: var(--acid); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card:not(.s-7):not(.s-5) .card-metrics dd { font-size: clamp(28px, 2.6vw, 40px); }
/* odometer: each digit is a strip of 0-9 that rolls into place */
.odo { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.odo-s { display: block; will-change: transform; }
.odo-s > span { display: block; height: 1em; }
.odo-c { display: inline-block; }
.card-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.card-sum + .card-stack, .card-preview + .card-stack { margin-top: auto; }
.card-stack li { font-family: var(--f-mono); font-size: 11px; padding: 5px 9px; border-radius: 999px; color: var(--paper-2); background: rgba(237, 238, 240, .05); box-shadow: inset 0 0 0 1px rgba(237, 238, 240, .08); }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding-top: 14px; border-top: 1px solid rgba(237, 238, 240, .07); }
.card-links a { font-size: 14px; font-weight: 700; color: var(--paper); display: inline-flex; align-items: center; }
.card-links a:hover { color: var(--acid); }
.card-private { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); display: inline-flex; gap: 6px; align-items: center; margin-left: auto; }
.card-private::before { content: ""; width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--mute); }

/* ---------- card previews (decorative, CSS-animated, paused off-screen) ---------- */
.card-preview { position: relative; height: 112px; border-radius: 12px; overflow: hidden; background: #0c0c0e; box-shadow: inset 0 0 0 1px rgba(237, 238, 240, .06); flex: none; }
.card-preview * { animation-play-state: paused; }
.card-preview.is-play * { animation-play-state: running; }
.pv-label { position: absolute; left: 10px; top: 8px; z-index: 2; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
/* reel: frames slide past a playhead, render bar fills */
.pv-reel .strip { position: absolute; left: 0; top: 30px; display: flex; gap: 6px; animation: pvStrip 6s linear infinite; }
.pv-reel .strip i { width: 74px; height: 44px; border-radius: 5px; background: linear-gradient(135deg, #2a2a31, #1d1d22); box-shadow: inset 0 0 0 1px rgba(237, 238, 240, .06); position: relative; }
.pv-reel .strip i:nth-child(3n)::after { content: ""; position: absolute; left: 10px; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--dot-fill); }
.pv-reel .strip i:nth-child(3n+1)::after { content: ""; position: absolute; left: 10px; right: 16px; top: 18px; height: 6px; border-radius: 3px; background: rgba(237, 238, 240, .3); }
.pv-reel .head { position: absolute; left: 50%; top: 22px; bottom: 22px; width: 2px; background: var(--signal); box-shadow: 0 0 10px rgba(var(--signal-a), .6); }
.pv-reel .bar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pv-reel .bar b { display: block; height: 100%; background: var(--acid); transform-origin: 0 50%; animation: pvFill 3.2s var(--inout) infinite; }
@keyframes pvStrip { to { transform: translateX(-480px); } }
@keyframes pvFill { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
/* streak: 92 days fill in */
.pv-streak .days { position: absolute; left: 10px; right: 10px; top: 30px; display: grid; grid-template-columns: repeat(23, 1fr); gap: 4px; }
.pv-streak .days i { aspect-ratio: 1; border-radius: 3px; background: var(--line); animation: pvDay 4.6s steps(1) infinite; animation-delay: calc(var(--d) * 40ms); }
@keyframes pvDay { 0% { background: var(--line); } 8%, 82% { background: rgba(var(--acid-a), .7); } 100% { background: var(--line); } }
/* lyrics: karaoke line in a taskbar */
.pv-lyrics .bar { position: absolute; left: 10px; right: 10px; bottom: 12px; height: 40px; border-radius: 8px; background: #1a1a1f; box-shadow: inset 0 0 0 1px rgba(237, 238, 240, .06); overflow: hidden; }
.pv-lyrics .lines { animation: pvLines 6s var(--inout) infinite; }
.pv-lyrics .ln { height: 40px; display: flex; align-items: center; padding: 0 14px; font-weight: 700; font-size: 14px; color: var(--mute); white-space: nowrap; }
.pv-lyrics .ln b { font-weight: 700; color: var(--paper); background: linear-gradient(90deg, var(--acid) 0 50%, var(--mute) 50% 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: pvSing 2s linear infinite; }
.pv-lyrics .eq { position: absolute; left: 14px; top: 30px; display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.pv-lyrics .eq i { width: 4px; background: var(--signal); border-radius: 2px; animation: pvEq .9s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -130ms); }
@keyframes pvLines { 0%, 30% { transform: translateY(0); } 33%, 63% { transform: translateY(-40px); } 66%, 96% { transform: translateY(-80px); } 100% { transform: translateY(0); } }
@keyframes pvSing { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes pvEq { from { height: 4px; } to { height: 22px; } }
/* keys: keyframe tracks and a playhead */
.pv-keys .tr { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--line); }
.pv-keys .tr:nth-of-type(1) { top: 40px; } .pv-keys .tr:nth-of-type(2) { top: 62px; } .pv-keys .tr:nth-of-type(3) { top: 84px; }
.pv-keys .tr i { position: absolute; top: -5px; width: 10px; height: 10px; background: var(--paper-2); transform: rotate(45deg); left: var(--x); }
.pv-keys .tr i.on { background: var(--acid); }
.pv-keys .ph { position: absolute; top: 28px; bottom: 14px; left: 10px; right: 10px; animation: pvPh 4s linear infinite; }
.pv-keys .ph::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--signal); box-shadow: 0 0 8px rgba(var(--signal-a), .7); }
@keyframes pvPh { from { transform: translateX(0); } to { transform: translateX(100%); } }
/* diff: lines appear, then the PR check */
.pv-diff .code { position: absolute; left: 10px; right: 10px; top: 28px; font-family: var(--f-mono); font-size: 11px; line-height: 17px; }
.pv-diff .code div { white-space: nowrap; overflow: hidden; opacity: 0; animation: pvLine 5s steps(1) infinite; animation-delay: calc(var(--d) * 450ms); color: var(--mute); }
.pv-diff .code .m { color: var(--signal); } .pv-diff .code .p { color: var(--acid); }
.pv-diff .pr { position: absolute; right: 10px; top: 8px; font-family: var(--f-mono); font-size: 10px; padding: 2px 8px; border-radius: 999px; background: var(--acid); color: var(--ink); opacity: 0; animation: pvLine 5s steps(1) infinite; animation-delay: 2.2s; }
@keyframes pvLine { 0% { opacity: 0; } 4%, 92% { opacity: 1; } 100% { opacity: 0; } }
/* reward: partial-credit bars */
.pv-reward .bars { position: absolute; left: 10px; right: 10px; bottom: 12px; top: 30px; display: flex; align-items: flex-end; gap: 6px; }
.pv-reward .bars i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--acid), var(--acid-2)); border-radius: 3px 3px 0 0; transform-origin: 50% 100%; animation: pvBar 3.6s var(--out) infinite; animation-delay: calc(var(--d) * 90ms); }
.pv-reward .bars i.lo { background: var(--signal); }
@keyframes pvBar { 0% { transform: scaleY(0); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

@media (max-width: 1100px) {
  .card, .card.s-7, .card.s-5, .card.s-6 { grid-column: span 6; min-height: 400px; }
  .card.s-12 { grid-column: span 12; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .card, .card.s-7, .card.s-5, .card.s-6, .card.s-12 { grid-column: auto; min-height: 0; }
  .filters { margin-top: -16px; }
}

/* ---------- about ---------- */
.about-body { display: grid; grid-template-columns: minmax(0, 1fr);  gap: clamp(30px, 5vw, 90px); align-items: start; }
.about-text p { max-width: 24em; font-size: clamp(26px, 3.4vw, 52px); line-height: 1.28; letter-spacing: -0.02em; color: var(--paper); margin-bottom: .9em; text-wrap: pretty; }
.about-text strong { font-weight: 700; }
html.js:not(.is-reduced) .about-text .aw { opacity: .16; }
.about-text strong .aw { color: var(--acid); }
.term { position: sticky; top: 110px; border-radius: 16px; overflow: hidden; background: #0b0b0d; box-shadow: inset 0 0 0 1px rgba(237, 238, 240, .08), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(237, 238, 240, .06); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-bar i:first-child { background: var(--signal); }
.term-bar i:nth-child(2) { background: var(--acid); }
.term-bar span { margin-left: 8px; font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
.term-body { margin: 0; padding: 18px 18px 22px; font-family: var(--f-mono); font-size: 14px; line-height: 1.65; color: var(--paper-2); white-space: pre-wrap; min-height: 9.5em; }
.term-p { color: var(--acid); }
.caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -0.2em; background: var(--acid); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* how I work: a horizontal track, pinned on wide screens */
.how { margin-top: clamp(70px, 10vw, 140px); overflow: hidden; }
.how-in { display: flex; gap: clamp(14px, 1.6vw, 22px); align-items: stretch; will-change: transform; }
.how-title { flex: none; width: min(34vw, 460px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 4px 0; }
.how-title h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5vw, 84px); line-height: .9; letter-spacing: -0.045em; }
.how-title h3 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--acid); }
.how-title p { color: var(--mute); max-width: 30ch; }
.how-steps { display: flex; gap: clamp(14px, 1.6vw, 22px); counter-reset: s; }
.how-step { position: relative; flex: none; width: min(40vw, 520px); min-height: 300px; padding: 28px; border-radius: 18px; background: #0b0b0d; box-shadow: inset 0 0 0 1px rgba(237, 238, 240, .07); font-family: var(--f-mono); font-size: 14px; line-height: 1.75; color: var(--paper-2); }
.how-step .cmd { display: block; color: var(--paper); font-size: clamp(15px, 1.3vw, 19px); margin-bottom: 16px; }
.how-step .cmd::before { content: "$ "; color: var(--acid); }
.how-step .ln { display: block; color: var(--mute); }
.how-step .ln::before { content: "› "; color: var(--line-2); }
.how-step .st, .how-step .out { display: block; margin-top: 14px; }
.how-step .st b { color: var(--acid); font-weight: 400; }
.how-step .out b { color: #9be28f; font-weight: 400; }
.how-step .num { position: absolute; top: 20px; right: 24px; font-family: var(--f-display); font-weight: 800; font-size: 64px; line-height: .8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.how-progress { margin-top: 26px; height: 2px; background: var(--line); }
.how-progress b { display: block; height: 100%; background: var(--acid); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 900px) {
  .about-body { grid-template-columns: 1fr; }
  .term { position: relative; top: 0; }
  .how-in, .how-steps { flex-direction: column; }
  .how-title, .how-step { width: auto; }
  .how-step { min-height: 0; }
  .how-progress { display: none; }
}

/* ---------- marquee band ---------- */
.band { position: relative; overflow: hidden; padding: clamp(30px, 5vw, 70px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.band-row { display: flex; width: max-content; will-change: transform; }
.band-row span { display: inline-flex; align-items: center; gap: .45em; padding-right: .45em; font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 8vw, 132px); line-height: 1.02; letter-spacing: -0.045em; color: var(--paper); white-space: nowrap; }
.band-row span::after { content: ""; width: .22em; height: .22em; border-radius: 50%; background: var(--dot-fill); box-shadow: var(--dot-glow-sm); }
.band-row-2 span { color: transparent; -webkit-text-stroke: 1.5px rgba(237, 238, 240, .35); }
.band-row-2 span::after { background: var(--signal); box-shadow: none; }

/* ---------- stack ---------- */
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); perspective: 1200px; }
.skill { position: relative; min-height: 240px; padding: 26px 24px 28px; background: var(--ink); display: flex; flex-direction: column; gap: 14px; transition: background .4s; overflow: hidden; }
.skill::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; background: var(--acid); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--out); }
.skill:hover { background: #141417; }
.skill:hover::after { transform: scaleX(1); }
.skill-n { font-family: var(--f-mono); font-size: 11px; color: var(--signal); letter-spacing: .08em; }
.skill h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 1.9vw, 28px); line-height: 1; letter-spacing: -0.035em; margin-top: auto; }
.skill p { color: var(--mute); font-size: 15px; line-height: 1.5; }
@media (max-width: 1000px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .skills { grid-template-columns: 1fr; } .skill { min-height: 0; } .skill h3 { margin-top: 18px; } }

/* ---------- journey: an SVG path the dot travels ---------- */
.tl-wrap { position: relative; }
.tl-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tl-base { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 2 6; }
.tl-draw { fill: none; stroke: var(--acid); stroke-width: 2.5; stroke-linecap: round; }
.tl-nodes circle { fill: var(--ink); stroke: var(--line-2); stroke-width: 2; transition: fill .4s, stroke .4s; }
.tl-nodes circle.on { fill: var(--signal); stroke: var(--signal); }
.tl-dot { fill: var(--acid); filter: drop-shadow(0 0 10px rgba(var(--acid-a), .8)); }
.tl { position: relative; display: grid; }
.tl-item { display: grid; grid-template-columns: 26% minmax(0, 1fr); gap: 0 clamp(60px, 7vw, 120px); padding: 30px 0; }
.tl-date { font-family: var(--f-mono); font-size: 13px; color: var(--mute); text-align: right; padding-top: 10px; padding-right: 10px; transition: color .4s; }
.tl-role { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 2.8vw, 42px); line-height: 1; letter-spacing: -0.035em; color: var(--paper-2); transition: color .4s; }
.tl-org { margin-top: 8px; color: var(--paper-2); font-size: 15px; }
.tl-desc { margin-top: 12px; color: var(--mute); max-width: 62ch; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tl-tags li { font-family: var(--f-mono); font-size: 11px; padding: 4px 9px; border-radius: 999px; color: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.tl-item.is-lit .tl-role { color: var(--paper); }
.tl-item.is-lit .tl-date { color: var(--signal); }
html.is-reduced .tl-item .tl-role, html:not(.js) .tl-item .tl-role { color: var(--paper); }
@media (max-width: 760px) {
  .tl-item { grid-template-columns: 1fr; padding: 22px 0 22px 40px; }
  .tl-date { text-align: left; padding: 0 0 8px; }
}

/* ---------- education ---------- */
.edu { padding-top: 0; }
.edu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); perspective: 1200px; }
.edu-item { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: linear-gradient(160deg, #1b1b20, #111113); box-shadow: inset 0 0 0 1px rgba(237, 238, 240, .07); overflow: hidden; }
.edu-school { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 56px); line-height: .95; letter-spacing: -0.045em; }
.edu-deg { margin-top: 14px; color: var(--paper-2); font-size: 17px; }
.edu-years { margin-top: 26px; font-family: var(--f-mono); font-size: 13px; color: var(--acid); letter-spacing: .06em; }
@media (max-width: 760px) { .edu-list { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { position: relative; padding: clamp(100px, 16vh, 200px) 0 clamp(80px, 12vh, 140px); overflow: hidden;
  background: radial-gradient(60% 60% at 50% 110%, rgba(var(--acid-a), .1), rgba(var(--acid-a), 0) 70%), var(--ink); border-top: 1px solid var(--line); }
.contact .h2 { max-width: 16ch; }
.contact-mail { display: inline-block; position: relative; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 5.4vw, 92px); letter-spacing: -0.045em; line-height: 1.05; word-break: break-all;
  background: linear-gradient(90deg, var(--paper) 0 50%, var(--acid) 50% 100%); background-size: 200% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position .7s var(--out); }
.contact-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--acid); transform: scaleX(.12); transform-origin: 0 50%; transition: transform .7s var(--out); }
.contact-mail:hover, .contact-mail:focus-visible { background-position: -100% 0; }
.contact-mail:hover::after, .contact-mail:focus-visible::after { transform: scaleX(1); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: clamp(50px, 7vw, 100px); }
.label { margin-bottom: 16px; }
.contact-phone { display: inline-block; font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -0.03em; }
.contact-phone:hover { color: var(--acid); }
.contact-open { margin-top: 26px; color: var(--paper-2); max-width: 36ch; font-size: 18px; }
.socials { display: grid; border-top: 1px solid var(--line); }
.socials a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); transition: color .3s, padding .4s var(--out); }
.socials a > span:first-child { font-weight: 700; font-size: 18px; }
.socials a > span:last-child { font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.socials a:hover, .socials a:focus-visible { color: var(--acid); padding-left: 14px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--mute); font-size: 14px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; }
.footer a { color: var(--paper-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.footer a:hover { color: var(--acid); text-decoration-color: var(--acid); }
.footer .to-top { text-decoration: none; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- reveals ---------- */
html.js:not(.is-reduced) [data-reveal] { opacity: 0; transform: translateY(28px); }

/* ---------- cursor + page spotlight ---------- */
.spot { position: fixed; left: 0; top: 0; z-index: 70; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle, rgba(var(--acid-a), .07) 0%, rgba(var(--acid-a), .025) 35%, rgba(var(--acid-a), 0) 62%); mix-blend-mode: screen; will-change: transform; }
.spot.is-on { opacity: 1; }
.cursor { position: fixed; left: 0; top: 0; z-index: 300; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor-dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--dot-fill); box-shadow: 0 0 22px 3px rgba(var(--acid-a), .45); transition: transform .3s var(--out), opacity .2s; }
.cursor.is-link .cursor-dot { transform: scale(2.6); opacity: .35; }
.cursor.is-down .cursor-dot { transform: scale(.7); }
@media (hover: none), (pointer: coarse) { .cursor, .spot { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .ticker-track, .caret, .card-preview * { animation: none !important; }
  .ticker-track { flex-wrap: wrap; width: auto; padding: 0 var(--gutter); }
  .ticker-track [aria-hidden="true"] { display: none !important; }
  .ticker-set { flex-wrap: wrap; row-gap: 8px; }
  .band-row { width: auto; flex-wrap: wrap; padding: 0 var(--gutter); }
  .band-row span:nth-child(n+4) { display: none; }
  .card-in, .card-glyph, .btn, .contact-mail, .contact-mail::after, .socials a { transition: none; }
  .pv-streak .days i { background: var(--acid); }
  .pv-diff .code div, .pv-diff .pr { opacity: 1; }
}
