/* Self-hosted variable fonts (latin subset, from Fontsource) */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url('/assets/fonts/syne-latin-wght-v5.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/manrope-latin-wght-v5.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/instrument-serif-latin-italic-v5.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --bg: #07070b;
  --bg-2: #0c0c13;
  --card: #10101a;
  --line: rgba(236, 235, 243, 0.09);
  --line-2: rgba(236, 235, 243, 0.16);
  --text: #ecebf3;
  --muted: #8d8b9c;
  --dim: #807e90;
  --violet: #8f7cff;
  --coral: #ff7a5c;
  --grad: linear-gradient(100deg, #a594ff 0%, #ff8a6b 100%);

  --display: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;

  --pad: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
main, .footer { overflow-x: clip; }
::selection { background: var(--violet); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 4px; }
[tabindex="-1"]:focus-visible { outline: none; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1001;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus-visible { transform: none; outline-color: var(--coral); }
strong { color: var(--text); font-weight: 600; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.08em; }

/* ── HERO INTRO (pure CSS: runs on first paint, no JS wait) ── */
@keyframes rise-line { from { transform: translateY(115%) rotate(3deg); } }
@keyframes rise-in { from { transform: translateY(24px); opacity: 0; } }
@keyframes drop-in { from { transform: translateY(-24px); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  html.js .ht-line > span { animation: rise-line 1.2s var(--ease) both; }
  html.js .ht-line:nth-child(2) > span { animation-delay: 0.08s; }
  html.js .ht-line:nth-child(3) > span { animation-delay: 0.16s; }
  html.js .hero-eyebrow span { animation: rise-in 0.9s var(--ease) 0.2s both; }
  html.js .hero-eyebrow span + span { animation-delay: 0.28s; }
  html.js .scroll-cue { animation: rise-in 0.9s var(--ease) 0.45s both; }
  html.js .bar { animation: drop-in 0.9s var(--ease) 0.3s both; }
}

/* ── AMBIENT ── */
.grain {
  position: fixed;
  inset: -20%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .grain { animation: grain 0.9s steps(6) infinite; }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); }
  80% { transform: translate(8%, 2%); }
  100% { transform: translate(0, 0); }
}
.spotlight { display: none; }
html.has-cursor .spotlight {
  display: block;
  position: fixed;
  top: -640px; left: -640px;
  width: 1280px; height: 1280px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(143, 124, 255, 0.08), transparent 70%);
  will-change: transform;
}

/* ── CURSOR ── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor {
    display: grid;
    place-items: center;
    position: fixed;
    top: 0; left: 0;
    z-index: 950;
    width: 10px; height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid transparent;
    pointer-events: none;
    transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.35s, border-color 0.35s;
  }
  html.has-cursor .cursor.is-link {
    width: 46px; height: 46px; margin: -23px 0 0 -23px;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
  }
  html.has-cursor .cursor.is-grow {
    width: 110px; height: 110px; margin: -55px 0 0 -55px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(3px) saturate(1.6);
    -webkit-backdrop-filter: blur(3px) saturate(1.6);
  }
  .cursor span { font-size: 11px; font-weight: 700; color: #000; text-transform: uppercase; letter-spacing: 0.06em; }
}

/* ── TOP BAR ── */
.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px max(var(--pad), env(safe-area-inset-right)) 22px max(var(--pad), env(safe-area-inset-left));
  color: #fff;
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.bar.is-solid {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(7, 7, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.brand { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; display: inline-block; }
.brand sup { font-size: 0.45em; margin-left: 1px; }
.bar-mid { display: flex; gap: 32px; font-size: 13.5px; }
.avail { display: inline-flex; align-items: center; gap: 8px; }
.avail i { width: 7px; height: 7px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 12px #3ee08f; animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.35; } }
.bar-clock b { font-weight: 600; font-variant-numeric: tabular-nums; }
.menu-btn { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
.mb-text { display: grid; height: 1.4em; overflow: hidden; line-height: 1.4; }
.mb-text span { grid-area: 1 / 1; transition: transform 0.6s var(--ease); }
.mb-text span + span { transform: translateY(100%); }
.menu-open .mb-text span:first-child { transform: translateY(-100%); }
.menu-open .mb-text span + span { transform: translateY(0); }
.mb-icon { position: relative; width: 26px; height: 10px; }
.mb-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.6s var(--ease), top 0.6s var(--ease); }
.mb-icon i:first-child { top: 0; }
.mb-icon i:last-child { top: 8.5px; }
.menu-open .mb-icon i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-open .mb-icon i:last-child { top: 4.25px; transform: rotate(-45deg); }
@media (max-width: 760px) { .bar-mid { display: none; } }

/* ── MENU ── */
.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: #0d0c16;
  clip-path: circle(0% at calc(100% - 60px) 40px);
  transition: clip-path 0.9s var(--ease);
  visibility: hidden;
  overscroll-behavior: contain;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 60px) 40px); visibility: visible; }
.menu-inner { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 110px var(--pad) 40px; }
.menu-links { list-style: none; }
.menu-links li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu-links a { display: flex; align-items: baseline; gap: 18px; padding: 6px 0; }
.menu-links small { font-size: 13px; color: var(--muted); width: 28px; }
.menu-links [data-roll] {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 8.5vw, 116px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.roll-a, .roll-b { display: block; transition: transform 0.7s var(--ease); }
.roll-b { position: absolute; left: 0; top: 100%; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu-links a:hover .roll-a, .menu-links a:hover .roll-b,
.menu-links a:focus-visible .roll-a, .menu-links a:focus-visible .roll-b { transform: translateY(-100%); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 36px; font-size: 14px; color: var(--muted); }
.menu-foot a:hover { color: var(--text); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 40%, #2a1f6b 0%, #120d2e 40%, var(--bg) 75%);
}
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2s ease-out; }
.hero-gl.is-on { opacity: 1; }
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 0 var(--pad) clamp(28px, 5vh, 56px); }
.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 14px;
  color: rgba(236, 235, 243, 0.75);
  margin-bottom: clamp(18px, 3vh, 32px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.hero-eyebrow span:first-child { color: var(--text); font-weight: 600; }
.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(46px, 9.2vw, 158px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}
.ht-line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.ht-line > span { display: inline-block; }
.hero-title em {
  font-size: 1.1em;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(22px, 4vh, 40px); }
.hero-lede { max-width: 440px; color: rgba(236, 235, 243, 0.75); font-size: 16px; }
.scroll-cue { position: relative; display: grid; place-items: center; width: 112px; height: 112px; flex-shrink: 0; }
.scroll-cue svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.scroll-cue text { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; fill: var(--text); font-family: var(--body); font-weight: 600; }
.scroll-cue > span { font-size: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .hero-title { font-size: 10.2vw; }
  .scroll-cue { display: none; }
  .hero-eyebrow span:last-child { display: none; }
}

/* ── SPLIT LAYOUT ── */
.split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 0 48px;
}
.side-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.side-role { margin-top: 14px; font-size: 19px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.side-bio { margin-top: 12px; max-width: 30ch; color: var(--muted); }
.side-nav { display: grid; gap: 4px; margin-top: 56px; }
.side-nav a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  width: max-content;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.3s;
}
.side-nav i { display: block; width: 32px; height: 1px; background: currentColor; transition: width 0.5s var(--ease); }
.side-nav a:hover, .side-nav a.is-active, .side-nav a:focus-visible { color: var(--text); }
.side-nav a:hover i, .side-nav a.is-active i, .side-nav a:focus-visible i { width: 72px; }
.side-bottom { display: grid; gap: 6px; font-size: 14px; }
.side-link { color: var(--muted); transition: color 0.3s; width: max-content; }
a.side-link:hover { color: var(--text); }

.content { padding: 120px 0 80px; min-width: 0; outline: none; }
.block { margin-bottom: clamp(110px, 16vh, 180px); scroll-margin-top: 90px; }
.block-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.block-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.block-intro { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 36px; max-width: 24ch; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .side { position: relative; height: auto; padding: 96px 0 0; }
  .side-nav, .side-bottom { display: none; }
  .content { padding-top: 64px; }
}

/* ── ABOUT ── */
.about-lead {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.about-lead strong { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-lead .w { display: inline-block; }
.about-text p { color: var(--muted); font-size: 17px; margin-bottom: 18px; max-width: 62ch; }
.about-text em { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.facts dd { font-size: 14.5px; color: var(--text); }
.facts a { border-bottom: 1px solid var(--line-2); transition: border-color 0.3s; }
.facts a:hover { border-color: var(--coral); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* ── IMPACT: stacking cards ── */
.stack-cards { display: grid; gap: 28px; }
.icard {
  position: sticky;
  top: calc(110px + var(--i, 0) * 22px);
  min-height: 360px;
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: 28px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  transform-origin: 50% 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.8);
  container-type: inline-size;
}
.icard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--shade, 0);
  pointer-events: none;
}
.icard::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(500px circle at var(--mx, 80%) var(--my, 0%), rgba(255, 255, 255, 0.09), transparent 50%);
}
.ic-1 { --i: 0; background: linear-gradient(145deg, #231a5c, #120f2c 70%); }
.ic-2 { --i: 1; background: linear-gradient(145deg, #0f3d34, #0b1a17 70%); }
.ic-3 { --i: 2; background: linear-gradient(145deg, #4d1f16, #1d0f12 70%); }
.ic-4 { --i: 3; background: linear-gradient(145deg, #12305a, #0c1424 70%); }
.ic-5 { --i: 4; background: linear-gradient(145deg, #2c2c3a, #13131b 70%); }
.ic-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(236, 235, 243, 0.7); }
.ic-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: min(15cqi, 140px);
  line-height: 1;
  letter-spacing: -0.06em;
  margin: 18px 0 10px;
  font-variant-numeric: tabular-nums;
}
.ic-desc { max-width: 44ch; color: rgba(236, 235, 243, 0.78); font-size: 16px; }
.ic-bars { display: grid; gap: 8px; margin-top: auto; padding-top: 26px; }
.ic-bars div { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(236, 235, 243, 0.6); }
.ic-bars i { display: block; height: 6px; border-radius: 6px; width: var(--w); background: rgba(236, 235, 243, 0.25); transform-origin: 0 50%; }
.ic-bars div + div i { background: var(--grad); }

/* ── EXPERIENCE ── */
.jobs { list-style: none; display: grid; gap: 8px; }
.job {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 26px;
  margin: 0 -26px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, opacity 0.4s;
}
@media (hover: hover) {
  .jobs:hover .job:not(:hover) { opacity: 0.42; }
  .job:hover { background: rgba(236, 235, 243, 0.03); border-color: var(--line); }
}
.job-when { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding-top: 5px; font-variant-numeric: tabular-nums; }
.job h4 { font-size: 18px; font-weight: 700; line-height: 1.35; margin-bottom: 14px; transition: color 0.3s; }
.job h4 span { color: var(--muted); font-weight: 600; transition: color 0.3s; }
.job:hover h4, .job:hover h4 span { color: var(--coral); }
.arrow { display: inline-block; font-weight: 400; transition: transform 0.4s var(--ease); }
.job:hover .arrow { transform: translate(4px, -4px); }
.job ul { list-style: none; display: grid; gap: 10px; }
.job-sub { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }
.job ul + .job-sub { margin-top: 22px; }
.job ul li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15.5px; overflow-wrap: break-word; }
.job ul li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--coral); }
.job ul em { color: var(--text); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pills span { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 99px; color: #c7bfff; background: rgba(143, 124, 255, 0.12); }
@media (max-width: 640px) {
  .job { grid-template-columns: 1fr; gap: 8px; margin: 0; padding: 22px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
}

/* ── STACK ORBIT ── */
.orbit { display: none; }
.has-orbit .orbit {
  display: block;
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.ring-line {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  border: 1px dashed var(--line-2);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle at 30% 25%, #3a2c8f, #150f33 70%);
  box-shadow: 0 0 80px -10px rgba(143, 124, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.oc-title { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.4vw, 28px); letter-spacing: -0.03em; line-height: 1.1; padding: 0 12px; }
.oc-sub { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.orb {
  position: absolute;
  left: 50%; top: 50%;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  will-change: transform;
  cursor: default;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.orb[data-l="Expert"] { z-index: 3; }
.orb[data-l="Advanced"] { z-index: 2; }
.orb.is-hot { z-index: 5; }
.orb[data-l="Expert"] { background: var(--text); color: var(--bg); }
.orb[data-l="Advanced"] { background: #26214d; color: #d8d1ff; border: 1px solid rgba(143, 124, 255, 0.4); }
.orb[data-l="Intermediate"] { background: var(--bg); color: var(--text); border: 1px solid var(--line-2); }
.orb[data-l="Daily tooling"] { background: linear-gradient(100deg, #ff8a6b, #ffb36b); color: #2a0e06; }
.orb:hover, .orb.is-hot { box-shadow: 0 0 0 4px rgba(255, 122, 92, 0.35), 0 10px 30px -6px rgba(255, 122, 92, 0.6); }
.orbit.is-dimming .orb:not(.is-hot) { opacity: 0.35; }

.skill-groups { display: grid; gap: 22px; margin-top: 36px; }
.sg { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.sg-k { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.sg p { display: flex; flex-wrap: wrap; gap: 6px; }
.sg p span { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-2); }
.has-orbit .skill-groups { margin-top: 44px; }
.has-orbit .sg p span { cursor: default; transition: background 0.3s, border-color 0.3s; }
.has-orbit .sg p span.is-hot { background: rgba(255, 122, 92, 0.15); border-color: var(--coral); }
@media (max-width: 640px) { .sg { grid-template-columns: 1fr; gap: 8px; } }

/* ── EDUCATION ── */
.edu { display: grid; }
.edu-row { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.edu-row:last-child { border-bottom: 1px solid var(--line); }
.edu-when { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding-top: 4px; font-variant-numeric: tabular-nums; }
.edu h4 { font-size: 19px; font-weight: 700; }
.edu p { color: var(--muted); }
.edu .award { margin-top: 8px; color: var(--text); font-size: 15px; }
.award:first-of-type { margin-top: 14px; }
.edu .award::first-letter { color: var(--coral); }
@media (max-width: 640px) { .edu-row { grid-template-columns: 1fr; gap: 6px; } }

/* ── CONTACT ── */
.contact {
  position: relative;
  z-index: 1;
  padding: clamp(100px, 14vw, 180px) var(--pad) clamp(80px, 10vw, 120px);
  text-align: center;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  left: 50%; top: 58%;
  width: 90vw; height: 60vw;
  max-width: 1300px; max-height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(143, 124, 255, 0.22), rgba(255, 122, 92, 0.08) 40%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.contact-kicker { font-size: clamp(16px, 1.6vw, 20px); color: var(--muted); }
.contact-big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 14vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 18px 0 30px;
  white-space: nowrap;
}
.contact-big .c { display: inline-block; will-change: transform; transition: color 0.4s; }
.contact-desc { max-width: 60ch; margin: 0 auto 40px; color: var(--muted); font-size: 17px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.glow-btn {
  position: relative;
  display: inline-block;
  padding: 2px;
  border-radius: 99px;
  background: conic-gradient(from var(--ang), #8f7cff, #ff7a5c, #ffd36b, #8f7cff);
  animation: ang 4s linear infinite;
  box-shadow: 0 20px 60px -20px rgba(143, 124, 255, 0.7);
}
@keyframes ang { to { --ang: 360deg; } }
.glow-btn span {
  display: block;
  padding: 18px 30px;
  border-radius: 99px;
  background: var(--bg);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.4s, color 0.4s;
}
.glow-btn:hover span, .glow-btn:focus-visible span { background: transparent; color: #0b0718; }
.ghost-btn {
  padding: 18px 26px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  font-weight: 600;
  transition: border-color 0.3s, background 0.3s;
}
.ghost-btn:hover, .ghost-btn:focus-visible { border-color: var(--text); background: rgba(255, 255, 255, 0.04); }
.contact-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 48px; font-size: 14.5px; color: var(--muted); }
.contact-meta a:hover, .contact-meta a:focus-visible { color: var(--text); }
.side-link, .facts dd, .menu-foot a { overflow-wrap: anywhere; }

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px var(--pad) max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.footer a { display: inline-block; transition: color 0.3s; }
.footer a:hover { color: var(--text); }

/* ── TOAST ── */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 99px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transform: translate(-50%, calc(100% + 50px));
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
