@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/InstrumentSerif-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/InstrumentSerif-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Variable.woff2") format("woff2-variations"), url("assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2-variations"), url("assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* ==========================================================================
   Andrey Lipsky - v4 "Aurora Editorial" (v3 Aurora Glass base + v1 Noir typography + v2 timeline)
   ========================================================================== */

:root {
  --bg: #060912;
  --bg-2: #0a0f1c;
  --ink: #F2F4F8;
  --ink-2: #AEB6C6;   /* body secondary, ~9.6:1 on bg */
  --ink-3: #8A93A6;   /* meta, ~6:1 on bg */
  --teal: #2DD4BF;
  --indigo: #6366F1;
  --indigo-ink: #A5A8FA;
  --amber: #F5B971;
  --sky: #7CC4FA;

  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --glass-line: rgba(255, 255, 255, 0.09);
  --glass-hi: rgba(255, 255, 255, 0.14);
  --hair: rgba(242, 244, 248, 0.10);

  --font: "Geist", "Inter Display", "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", "DejaVu Sans Mono", monospace;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
main, .footer { position: relative; z-index: 1; overflow-x: clip; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: rgba(45, 212, 191, 0.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--ink-3);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Aurora backdrop ---------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #0d1426 0%, transparent 60%),
    var(--bg);
}
.aurora__layer {
  position: absolute;
  inset: -20% -10%;
  will-change: transform;
}
.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .62;
  will-change: transform;
}
.blob--teal {
  width: 62vmax; height: 38vmax;
  left: 8%; top: 4%;
  background: radial-gradient(closest-side, rgba(45, 212, 191, .55), rgba(45, 212, 191, 0) 70%);
  animation: drift-a 46s ease-in-out infinite alternate;
}
.blob--indigo {
  width: 58vmax; height: 44vmax;
  right: 2%; top: 14%;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .62), rgba(99, 102, 241, 0) 70%);
  animation: drift-b 58s ease-in-out infinite alternate;
}
.blob--amber {
  width: 34vmax; height: 26vmax;
  left: 40%; top: 30%;
  opacity: .34;
  background: radial-gradient(closest-side, rgba(245, 185, 113, .55), rgba(245, 185, 113, 0) 70%);
  animation: drift-c 64s ease-in-out infinite alternate;
}
.blob--deep {
  width: 70vmax; height: 40vmax;
  left: -12%; top: 62%;
  opacity: .32;
  background: radial-gradient(closest-side, rgba(56, 120, 220, .5), rgba(56, 120, 220, 0) 70%);
  animation: drift-b 72s ease-in-out infinite alternate-reverse;
}
.aurora__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 9, 18, 0) 0%, rgba(6, 9, 18, .35) 55%, rgba(6, 9, 18, .55) 100%),
    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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift-a {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(8vw, 4vh, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(-4vw, 10vh, 0) rotate(-6deg) scale(.96); }
}
@keyframes drift-b {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(-10vw, 6vh, 0) rotate(-10deg) scale(1.1); }
  100% { transform: translate3d(4vw, -4vh, 0) rotate(6deg) scale(.94); }
}
@keyframes drift-c {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-12vw, -8vh, 0) scale(1.2); }
}

/* ---------- Glass ---------- */

.glass {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .025) 100%);
  border: 1px solid var(--glass-line);
  box-shadow:
    inset 0 1px 0 0 var(--glass-hi),
    inset 0 0 0 1px rgba(255, 255, 255, .015),
    0 24px 60px -30px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(14, 19, 34, .92); }
}

/* ---------- Buttons, pills ---------- */

.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  font-size: .975rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary {
  background: var(--ink);
  color: #070a14;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 10px 40px -12px rgba(45, 212, 191, .55);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 14px 50px -12px rgba(45, 212, 191, .75); }
.btn--glass {
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .24); transform: translateY(-1px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
}
.pill--inline {
  background: rgba(45, 212, 191, .08);
  border: 1px solid rgba(45, 212, 191, .25);
  color: #BDF3EA;
}

.pulse {
  position: relative;
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px 2px rgba(45, 212, 191, .7);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, .7);
  animation: pulse 2.4s var(--ease) infinite;
}
.pulse--sm { width: 6px; height: 6px; }
@keyframes pulse {
  0% { transform: scale(.6); opacity: .9; }
  80%, 100% { transform: scale(2.1); opacity: 0; }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 14px;
  left: 0; right: 0;
  z-index: 50;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 10px;
  border-radius: 999px;
  background: rgba(10, 14, 26, .55);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled .nav__bar { background: rgba(10, 14, 26, .72); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav__bar { background: rgba(10, 14, 26, .96); }
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-radius: 999px;
}
.mono-badge {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(135deg, rgba(45, 212, 191, .55), rgba(99, 102, 241, .55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.nav__name { font-size: .98rem; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__links a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav__links .nav__cta {
  margin-left: 6px;
  color: #070a14;
  background: var(--ink);
  font-weight: 500;
}
.nav__links .nav__cta:hover { color: #070a14; background: #fff; }
.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.nav__toggle-lines, .nav__toggle-lines::before, .nav__toggle-lines::after {
  display: block;
  width: 16px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle-lines { position: relative; }
.nav__toggle-lines::before, .nav__toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav__toggle-lines::before { top: -5px; }
.nav__toggle-lines::after { top: 5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::after { transform: translateY(-5px) rotate(-45deg); }


/* ==========================================================================
   v4 "Aurora Editorial": Noir editorial typography on the Aurora atmosphere
   ========================================================================== */

.label {
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
}
.label .dim { color: var(--ink-3); letter-spacing: .08em; }
em { font-style: italic; }
.h2 em, .contact__title em, .thesis em, .project__title em { font-family: var(--serif); font-style: italic; color: #CFF7EF; }
.btn--sm { --h: 40px; padding: 0 18px; font-size: .9rem; }

/* ---------- Hero (v1 composition) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  padding: 104px 0 clamp(28px, 5vh, 52px);
}
.hero__wrap { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 4.5vh, 56px); }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  padding-top: 18px; border-top: 1px solid var(--hair);
}
.hero-meta .label { color: var(--ink); }
.hero-meta-mid { text-align: center; }
.hero-meta-right { text-align: right; }
.hero-meta-right .pulse { display: inline-block; margin-right: 10px; vertical-align: .1em; }

.hero-name { position: relative; }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(5.5rem, min(15.6vw, 26vh), 14.25rem);
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--ink);
}
.line { display: block; overflow: hidden; }
.hero-title .line { line-height: 1.26; padding: 0 .04em; margin: 0 -.04em; }
.hero-title .l1 { margin-left: -.05em; }
.hero-title .l2 { text-align: right; margin-top: -.42em; margin-right: -.03em; }
.hero-title .line-in {
  background: linear-gradient(180deg, #FFFFFF 35%, #BFC8DA 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .04em;
}
.line-in { display: inline-block; will-change: transform; }
.hero-tagline {
  position: absolute; left: 0; bottom: .9em;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.75rem, 2.7vw, 2.6rem);
  line-height: 1.08; color: var(--ink-2);
  max-width: 13em;
}
.hero-tagline .line { line-height: 1.2; }
.hero-tagline .glow-word { padding-right: .08em; }

.hero-foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end;
  padding-top: 22px; border-top: 1px solid var(--hair);
}
.hero-facts { grid-column: 1 / span 7; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hero-facts dd { margin: 6px 0 0; font-size: .95rem; line-height: 1.45; color: var(--ink); max-width: 26ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-foot .hero-cta { grid-column: 8 / span 5; justify-content: flex-end; }

/* masked line reveal */
.js:not(.static) .hero .line-in { transform: translateY(110%); }
.js:not(.static) .hero .hero-tagline .line-in { transform: translateY(115%); }
.js:not(.static) .hero-meta, .js:not(.static) .hero-foot { opacity: 0; transform: translateY(12px); }
.hero.is-on .line-in { transform: none !important; transition: transform 1.5s var(--ease); transition-delay: calc(var(--i) * 130ms + 150ms); }
.hero.is-on .hero-meta, .hero.is-on .hero-foot { opacity: 1 !important; transform: none !important; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.hero.is-on .hero-meta { transition-delay: .9s; }
.hero.is-on .hero-foot { transition-delay: 1.1s; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(80px, 10vw, 140px) 0; position: relative; isolation: isolate; overflow-x: clip; }
.section--tight { padding-top: clamp(64px, 8vw, 110px); }

.sec-tag {
  display: flex; align-items: baseline; gap: 16px;
  padding-top: 18px; border-top: 1px solid var(--hair);
  margin-bottom: clamp(40px, 5vw, 80px);
}
.sec-num { font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1; color: var(--teal); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  color: var(--ink);
  max-width: 18ch;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -.005em;
}
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-lede {
  color: var(--ink-2);
  max-width: 44ch;
  justify-self: end;
  text-wrap: pretty;
}

/* ---------- About ---------- */

.thesis { position: relative; padding-left: 8.333%; margin-bottom: clamp(64px, 9vw, 120px); }
.thesis blockquote p {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1.02; letter-spacing: -.02em;
  max-width: 17ch; text-wrap: balance;
  color: var(--ink);
}
.pull-mark { position: absolute; transform: translateX(-.55em); color: var(--teal); font-style: italic; }
.thesis figcaption {
  margin: clamp(32px, 4vw, 56px) 0 0 42%;
  max-width: 42ch;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.about__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.portrait {
  position: sticky;
  top: 112px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 70% at 25% 15%, rgba(45, 212, 191, .22), transparent 60%),
    radial-gradient(80% 70% at 85% 90%, rgba(99, 102, 241, .28), transparent 60%),
    rgba(255, 255, 255, .03);
}
.portrait::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: calc(var(--r-lg) - 10px); pointer-events: none; z-index: 2; }
.portrait__mono {
  font-family: var(--serif);
  font-size: 8.5rem;
  letter-spacing: -.06em;
  line-height: 1;
  padding-right: .06em;
  color: rgba(242, 244, 248, .94);
  text-shadow: 0 0 60px rgba(45, 212, 191, .35);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__text { max-width: 64ch; }
.about__text p { color: var(--ink-2); font-size: 1.1rem; line-height: 1.65; }
.about__text p + p { margin-top: 18px; }
.about__text p:first-child { font-family: var(--serif); color: var(--ink); font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.22; letter-spacing: -.01em; }

/* local ambient light, so depth continues below the hero */
#areas::before, #cases::before, #career::before, #projects::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: min(900px, 90vw); height: 520px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
}
#areas::before { left: -10%; top: 12%; background: radial-gradient(closest-side, rgba(45, 212, 191, .14), transparent 70%); }
#cases::before { right: -12%; top: 8%; background: radial-gradient(closest-side, rgba(99, 102, 241, .2), transparent 70%); }
#career::before { left: 10%; top: 0; background: radial-gradient(closest-side, rgba(56, 120, 220, .16), transparent 70%); }
#projects::before { right: 0; top: 20%; background: radial-gradient(closest-side, rgba(245, 185, 113, .09), transparent 70%); }

/* ---------- Split layout: Areas, How I lead (v1) ---------- */

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.split__statement { grid-column: 1 / span 5; align-self: start; position: sticky; top: 120px; }
.split > .rows { grid-column: 7 / span 6; }
.row { position: relative; padding: 28px 0 32px; border-top: 1px solid var(--hair); }
.row:last-child { border-bottom: 1px solid var(--hair); }
.row::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 44px; height: 1px;
  background: linear-gradient(90deg, var(--teal), rgba(99, 102, 241, .9));
  box-shadow: 0 0 12px rgba(45, 212, 191, .8);
  transition: width .6s var(--ease);
}
.row:hover::before { width: 100%; }
.row p { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }

.lead-intro .h2 { max-width: 14ch; }
.lead-q-label { margin-top: 44px; }
.questions { margin-top: 18px; counter-reset: q; border-top: 1px solid var(--hair); max-width: 440px; }
.questions li { counter-increment: q; display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: .98rem; color: var(--ink); }
.questions li::before { content: counter(q); font-family: var(--serif); font-style: italic; color: var(--amber); width: 14px; flex: none; font-size: 1.1rem; line-height: 1.4; }

/* ---------- Case studies ---------- */

.cases { display: grid; gap: 20px; }
.case {
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
}
.case__top { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 24px; align-items: start; margin-bottom: clamp(28px, 3.4vw, 44px); }
.case__no { font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: .9; color: var(--teal); text-shadow: 0 0 30px rgba(45, 212, 191, .35); }
.case__tag { margin-bottom: 12px; color: #9FE9DD; }
.case__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.04; letter-spacing: -.015em; max-width: 26ch; text-wrap: balance; }
.case__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0;
  margin-left: 112px;
  border-top: 1px solid var(--hair);
}
.case__col { padding: 22px 28px 4px 0; }
.case__col + .case__col { padding-left: 28px; border-left: 1px solid var(--hair); }
.case__col:last-child { padding-right: 0; }
.case__k { margin-bottom: 12px; color: var(--ink-3); }
.case__col p { color: var(--ink-2); font-size: .98rem; line-height: 1.62; }
.case__col:first-child p { color: var(--ink); }
.case__list { display: grid; gap: 10px; }
.case__list li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.case__list li::before {
  content: ""; position: absolute; left: 0; top: .66em;
  width: 8px; height: 1px; background: var(--teal); box-shadow: 0 0 6px rgba(45, 212, 191, .8);
}
.case__take {
  margin: clamp(28px, 3vw, 40px) 0 0 112px;
  padding-top: 22px;
  position: relative;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
}
.case__take::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(45, 212, 191, .6), rgba(99, 102, 241, .25) 60%, transparent);
}

.spot { --mx: 50%; --my: 0%; }
.spot::before,
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s var(--ease);
  z-index: -1;
}
.spot::before { background: radial-gradient(520px circle at var(--mx) var(--my), rgba(45, 212, 191, .18), rgba(99, 102, 241, .1) 42%, transparent 72%); }
.spot::after {
  z-index: 1;
  padding: 1px;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(150, 245, 230, .9), rgba(139, 142, 247, .45) 45%, transparent 75%);
  -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);
}
.spot:hover::before, .spot:hover::after,
.spot:focus-within::before, .spot:focus-within::after { opacity: 1; }

/* ---------- Career (v2 timeline, aurora palette) ---------- */

.track { position: relative; margin-bottom: 48px; }
.track__labels { position: relative; height: 48px; }
.track__labels span {
  position: absolute; bottom: 0; padding: 0 0 6px 8px; border-left: 1px solid rgba(242, 244, 248, .4);
  font: 400 .74rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap; height: 24px; display: flex; align-items: flex-start;
  transition: color .3s var(--ease);
}
.track__labels .track__label--saas { height: 48px; }
.track__labels .track__label--end { border-left: 0; border-right: 1px solid var(--teal); padding: 0 8px 6px 0; color: #9FE9DD; }
.track__labels span.is-hot { color: var(--ink); }
.track__segs, .track__roles { position: relative; }
.track__segs { height: 14px; }
.track__roles { height: 4px; margin-top: 6px; }
.seg, .track__roles i {
  position: absolute; top: 0; bottom: 0; border-radius: 3px;
  transform-origin: left; transition: transform .9s var(--ease), background-color .3s var(--ease), opacity .3s var(--ease), box-shadow .3s var(--ease);
}
.seg { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.seg[data-seg="telecom"] { background: linear-gradient(90deg, rgba(174, 182, 198, .22), rgba(174, 182, 198, .32)); }
.seg[data-seg="gamedev"] { background: linear-gradient(90deg, rgba(124, 196, 250, .28), rgba(124, 196, 250, .4)); }
.seg[data-seg="saas"] { background: rgba(165, 168, 250, .55); }
.seg--now { background: linear-gradient(90deg, #2DD4BF, #7DE8D8); box-shadow: 0 0 22px rgba(45, 212, 191, .55); }
.seg.is-hot { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 22px rgba(45, 212, 191, .4); }
.track__roles i { background: rgba(242, 244, 248, .18); opacity: .8; border-radius: 2px; }
.track__roles i + i { margin-left: 2px; }
.track__roles i.is-hot { background: var(--teal); opacity: 1; box-shadow: 0 0 10px rgba(45, 212, 191, .9); }
.track.is-hovering .seg:not(.is-hot) { opacity: .35; }
.track__years { position: relative; height: 26px; margin-top: 12px; border-top: 1px solid var(--hair); }
.track__years span {
  position: absolute; top: 0; padding-top: 8px; font: 400 .72rem/1 var(--mono); color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.track__years span::before { content: ""; position: absolute; left: 0; top: -4px; width: 1px; height: 8px; background: var(--ink-3); }
.js:not(.static) .track:not(.in) .seg,
.js:not(.static) .track:not(.in) .track__roles i { transform: scaleX(0); }
.track.in .seg:nth-child(2), .track.in .track__roles i:nth-child(3), .track.in .track__roles i:nth-child(4) { transition-delay: 120ms; }
.track.in .seg:nth-child(3), .track.in .track__roles i:nth-child(5) { transition-delay: 240ms; }
.track.in .seg:nth-child(4), .track.in .track__roles i:nth-child(6) { transition-delay: 320ms; }

.roles { display: grid; gap: 12px; }
.role {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3.2fr) minmax(0, 5fr);
  gap: 8px 32px;
  padding: 26px 30px;
  border-radius: var(--r-md);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.role:hover, .role:focus-visible { border-color: rgba(45, 212, 191, .35); }
.role:focus-visible { outline-offset: 2px; border-radius: var(--r-md); }
.role__date { padding-top: 6px; white-space: nowrap; }
.role--now .role__date { color: #9FE9DD; }
.role__head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.12; letter-spacing: -.005em; }
.role__head p { margin-top: 8px; font-size: .98rem; font-weight: 500; color: var(--ink); }
.role__head p span { display: block; margin-top: 3px; font: 400 .74rem/1.45 var(--mono); color: var(--ink-3); }
.role__d { color: var(--ink-2); font-size: .97rem; line-height: 1.6; }
.steps { display: grid; gap: 4px; margin-bottom: 12px; }
.steps li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; color: var(--ink); font-size: .95rem; }
.steps .tnum { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); padding-top: 2px; }

/* ---------- Side projects ---------- */

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project {
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.project__art { width: 96px; height: 96px; margin-bottom: 28px; }
.project__art svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.project__glyph { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 36px; fill: #F2F4F8; }
.project__meta { color: #F5CF9F; }
.project__title { margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.05; letter-spacing: -.012em; }
.project__title em { font-size: .62em; color: var(--ink-2); margin-left: .2em; }
.project__desc { margin-top: 16px; color: var(--ink-2); max-width: 54ch; }
.project__stack { margin-top: 18px; }
.project__links { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em;
  color: #C7C9FC; background: rgba(99, 102, 241, .12); border: 1px solid rgba(165, 168, 250, .3);
}
.chip-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-ink); box-shadow: 0 0 8px rgba(165, 168, 250, .9); }

.chips {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: .88rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}
.chips--quiet { margin-top: 16px; gap: 6px; }
.chips--quiet li { font-size: .82rem; color: var(--ink-2); padding: 5px 11px; background: rgba(255, 255, 255, .03); }

/* ---------- More ---------- */

.more {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(32px, 5vw, 64px);
}
.more__col { padding-top: 24px; border-top: 1px solid var(--hair); }
.more .h3 { font-size: 1.6rem; }
.facts { margin-top: 16px; display: grid; gap: 10px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; }
.facts dt { color: var(--ink); }
.facts dd { margin: 0; color: var(--ink-3); text-align: right; }
.more__edu { margin-top: 16px; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.more__edu + .more__edu { margin-top: 10px; }
.beyond { margin-top: 16px; display: grid; gap: 10px; }
.beyond li { color: var(--ink-2); font-size: .95rem; line-height: 1.45; padding-left: 18px; position: relative; }
.beyond li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
}

/* ---------- Contact ---------- */

.contact { padding-bottom: clamp(64px, 8vw, 110px); }
.contact__card {
  border-radius: 36px;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 80px);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact__card::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 120%;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(45, 212, 191, .18), transparent 70%),
    radial-gradient(40% 50% at 72% 40%, rgba(99, 102, 241, .22), transparent 70%);
  pointer-events: none;
}
.contact__card > * { position: relative; }
.contact__title {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 9vw, 8rem);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.03em;
}
.contact__lede { margin-top: 22px; max-width: 54ch; color: var(--ink-2); font-size: 1.08rem; text-wrap: pretty; }
.contact__email {
  margin-top: 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 400;
  text-decoration: none;
  color: var(--ink);
  background-image: linear-gradient(90deg, var(--teal), var(--indigo));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.contact__email:hover { color: #fff; background-size: 100% 2px; }
.contact__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact__refs { margin-top: 26px; }

/* ---------- Footer ---------- */

.footer { padding: 28px 0 40px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-size: .9rem;
  color: var(--ink-3);
}
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */

.js:not(.static) .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js:not(.static) .reveal.in { opacity: 1; transform: none; filter: none; }
/* sticky children must not sit inside a transformed ancestor once revealed */
.js:not(.static) .reveal.in.split__statement { transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav__links a { padding: 8px 10px; font-size: .86rem; }
  .more { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .more__col--tools { grid-column: 1 / -1; }
  .hero-facts { grid-column: 1 / -1; }
  .hero-foot .hero-cta { grid-column: 1 / -1; justify-content: flex-start; }
  .case__body { margin-left: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .case__col:first-child { grid-column: 1 / -1; padding-right: 0; border-bottom: 1px solid var(--hair); padding-bottom: 22px; }
  .case__col:nth-child(2) { padding-left: 0; border-left: 0; }
  .case__take { margin-left: 0; }
  .role { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .role__d { grid-column: 2; }
}

@media (max-width: 960px) {
  .nav__toggle { display: grid; }
  .nav__bar { border-radius: 26px; flex-wrap: wrap; }
  .nav__links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 2px 4px;
    border-top: 1px solid var(--hair);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__bar { background: rgba(10, 14, 26, .94); }
  .nav__links a { padding: 12px 14px; font-size: 1rem; border-radius: 14px; }
  .nav__links .nav__cta { margin: 6px 0 2px; text-align: center; }
  html:not(.js) .nav__toggle { display: none; }

  .hero-tagline { position: static; margin-top: 14px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .sec-lede { justify-self: start; }
  .thesis { padding-left: 0; }
  .pull-mark { position: static; transform: none; }
  .thesis figcaption { margin-left: 0; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { position: relative; top: auto; width: 200px; aspect-ratio: 1; border-radius: 50%; }
  .portrait::before { border-radius: 50%; }
  .portrait__mono { font-size: 5rem; }
  .split__statement { position: static; grid-column: 1 / -1; }
  .split > .rows { grid-column: 1 / -1; margin-top: 32px; }
  .projects { grid-template-columns: minmax(0, 1fr); }

  /* career: vertical timeline */
  .track { display: none; }
  .roles { position: relative; padding-left: 26px; gap: 14px; }
  .roles::before {
    content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 1px;
    background: linear-gradient(180deg, var(--teal) 0%, var(--indigo-ink) 18%, var(--sky) 55%, rgba(174, 182, 198, .6) 100%);
    opacity: .7;
  }
  .role { grid-template-columns: minmax(0, 1fr); padding: 22px 22px; }
  .role::before {
    content: ""; position: absolute; left: -26px; top: 28px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--sky);
  }
  .role[data-seg="telecom"]::before { border-color: #AEB6C6; }
  .role[data-seg="saas"]::before { border-color: var(--indigo-ink); }
  .role--now::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 12px rgba(45, 212, 191, .8); }
  .role__d { grid-column: 1; }
  .role__date { padding-top: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { padding-top: 96px; padding-bottom: 28px; min-height: auto; }
  .hero__wrap { gap: 26px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-meta-mid { display: none; }
  .hero-meta .label { font-size: .66rem; }
  .hero-title { font-size: clamp(4rem, 26.5vw, 7.5rem); }
  .hero-title .l2 { margin-top: -.4em; }
  .hero-tagline { margin-top: 10px; font-size: clamp(1.625rem, 7.4vw, 2.1rem); max-width: 12em; }
  .hero-facts { grid-template-columns: 1fr; gap: 10px; }
  .hero-facts > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: baseline; }
  .hero-facts dd { margin-top: 0; }
  .hero-foot { padding-top: 16px; gap: 20px; }
  .hero-cta { gap: 8px; width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; padding: 0 16px; min-height: 46px; }
  .hero-cta .btn--primary { flex-basis: 100%; }

  .about__text p:first-child { font-size: 1.45rem; }
  .case { padding: 26px 20px; border-radius: var(--r-md); }
  .case__top { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .case__no { font-size: 2.4rem; }
  .case__body { grid-template-columns: minmax(0, 1fr); }
  .case__col, .case__col + .case__col { grid-column: 1; padding: 20px 0 4px; border-left: 0; }
  .case__col:first-child { padding-bottom: 20px; }
  .case__col + .case__col { border-top: 1px solid var(--hair); margin-top: 16px; }
  .case__col:nth-child(2) { border-top: 0; margin-top: 0; }
  .role { padding: 20px 18px; }
  .steps li { grid-template-columns: 1fr; gap: 0; }
  .more { grid-template-columns: minmax(0, 1fr); }
  .project__links .btn, .contact__ctas .btn { flex: 1 1 auto; }
  .contact__card { border-radius: 28px; }
  .contact__ctas { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .contact__ctas .btn--primary { grid-column: 1 / -1; }
  .footer__inner { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .blob { animation: none !important; }
  .pulse::after { display: none; }
  .js .hero .line-in, .js .hero-meta, .js .hero-foot { opacity: 1 !important; transform: none !important; }
}

.glow-word {
  background: linear-gradient(100deg, #5EEAD4 0%, #2DD4BF 30%, #8B8EF7 75%, #A5A8FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--teal);
}
.mono-badge { font-family: var(--serif); font-weight: 400; font-size: 1rem; letter-spacing: -.02em; padding-top: 1px; }

/* ---- Where I help (replaces case studies) ---- */
.helps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.help { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 2.6vw, 38px); border-radius: 24px; min-height: 100%; }
.help__no { font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--teal); text-shadow: 0 0 30px rgba(45, 212, 191, .35); margin-bottom: 26px; }
.help__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.2vw, 2.1rem); line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; }
.help__when { margin-top: 16px; color: var(--ink); font-size: .98rem; line-height: 1.55; }
.help__what { margin-top: 12px; color: var(--ink-2); font-size: .96rem; line-height: 1.6; }
.help__tag { margin-top: auto; padding-top: 24px; color: #9FE9DD; }
@media (max-width: 1024px) { .helps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .helps { grid-template-columns: minmax(0, 1fr); } }
.project__art--img img { width: 96px; height: 96px; border-radius: 22px; display: block; box-shadow: 0 18px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.1); }
.project__shot { margin: 24px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--glass-line); aspect-ratio: 640 / 420; }
.project__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.projects { align-items: stretch; }
.project__shot img[src*="coin-shot"] { object-position: center 40%; background:#141414; }
.project__shot { margin-top: auto; }
.project__stack { margin-bottom: 24px; }
.project__links { margin-top: 0; }
