:root {
  --bg: #070709;
  --ink: #eae5ec;
  --muted: #9b95a3;
  --dim: #6f6978;
  --purple: #c481ff;
  --purple-2: #c2a4ff;
  --line: rgba(234, 229, 236, 0.14);
  --gutter: clamp(20px, 4.5vw, 72px);
  --header: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Clash Display", Syne, "Segoe UI", sans-serif;
  --sans: Geist, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  z-index: 45;
  width: 280px;
  height: 280px;
  left: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.55), transparent 68%);
  pointer-events: none;
}

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

::selection { background: #c481ff; color: #140818; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 400;
  background: #fff;
  color: #111;
  padding: 8px 12px;
}

.skip:focus { top: 12px; }

.eyebrow,
.block-title,
.tools-label,
.panel-kicker,
.hint {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-2);
}

.grad {
  background: linear-gradient(100deg, #f4f0f8 10%, #c481ff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.loader { display: none; }

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  background: #e6e3ee;
  color: #111114;
  overflow: hidden;
}

.loader.is-leave {
  transform: translateY(-101%);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1);
}

.loader-marquee { width: 100%; overflow: hidden; }

.loader-track {
  display: flex;
  width: max-content;
  animation: ticker 16s linear infinite;
}

.loader-track span {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(4.2rem, 11vw, 10rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}

.loader-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 210px;
  padding: 16px 22px;
  border-radius: 999px;
  background: #0c0c0e;
  color: #f4f1f6;
  box-shadow: -10px 0 28px rgba(150, 80, 255, 0.45), 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.loader-pill i {
  width: 14px;
  height: 14px;
  margin-left: auto;
  box-shadow: inset 0 0 0 1.5px #fff;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  padding: 0 var(--gutter);
  background: rgba(7, 7, 9, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  position: relative;
  z-index: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}

.header-mail {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.nav {
  display: none;
  align-items: center;
  gap: 26px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav a,
.legal a,
.menu-bottom a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.35s var(--ease), color 0.2s linear;
}

.nav a:hover,
.legal a:hover,
.menu-bottom a:hover,
.nav a[aria-current="true"] { background-size: 100% 1px; }

.nav a[aria-current="true"] { color: var(--purple); }

.menu-btn {
  position: relative;
  z-index: 1;
  min-height: 44px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rail {
  position: fixed;
  left: 22px;
  bottom: 28px;
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 14px;
}

.rail a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.rail a:hover { color: var(--purple); }

.rail svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: calc(var(--header) + 8px) var(--gutter) 28px;
  position: relative;
  overflow: visible;
}

.hello {
  color: var(--purple-2);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  margin-bottom: 8px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3.4rem, 10vw, 6.4rem);
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero h1 span { display: block; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portrait {
  position: relative;
  width: min(100%, 420px);
  height: min(48vh, 460px);
  margin: 8px auto 0;
  align-self: center;
}

.glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 6%;
  width: 130%;
  height: 78%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 45%, rgba(196, 129, 255, 0.85), rgba(110, 40, 210, 0.28) 42%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

.portrait canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-role { margin-top: 18px; }

.role-kicker {
  color: var(--purple-2);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 500;
  margin-bottom: 10px;
}

.role-word {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
  margin-top: 6px;
}

.role-place { margin-top: 8px; color: var(--muted); }

.role-word.is-out,
.role-place.is-out {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero-anim { opacity: 0; }

html.is-ready .hero-anim { animation: up 0.9s var(--ease) forwards; }
html.is-ready .d1 { animation-delay: 0.05s; }
html.is-ready .d2 { animation-delay: 0.14s; }
html.is-ready .d3 { animation-delay: 0.24s; }
html.is-ready .d4 { animation-delay: 0.36s; }

.section { padding: clamp(72px, 11vh, 130px) 0; }
#about, #career, #work, #study, #contact { scroll-margin-top: 18px; }
.inner { padding-inline: var(--gutter); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(28px, 5vh, 48px);
}

.section h2,
.display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.about-grid { display: grid; gap: 36px; }
.about-grid h2 { max-width: 14ch; margin: 14px 0 18px; }
.prose { display: grid; gap: 14px; max-width: 62ch; }
.prose p { color: #d8d3de; }

.facts {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }

.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--dim);
}

.panel {
  border: 1px solid rgba(196, 129, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
  padding: 22px 20px 26px;
  min-height: 320px;
}

.switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.switch button {
  border: 1px solid rgba(234, 229, 236, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  color: #b7b1bd;
  min-height: 40px;
}

.switch button[aria-selected="true"] {
  background: var(--ink);
  color: #141218;
  border-color: var(--ink);
}

.panel-kicker { margin: 18px 0 10px; }
.panel-kicker:first-child { margin-top: 0; }
.panel p { color: #d8d3de; max-width: 48ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tags li {
  border: 1px solid rgba(234, 229, 236, 0.16);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.84rem;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee p {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.job {
  display: grid;
  gap: 8px 0;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.job:last-child { border-bottom: 1px solid var(--line); }

.job h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.job:not(.is-now) h3,
.job:not(.is-now) .year { color: #8d8796; }

.job:not(.is-now) .job-copy { color: #7d7786; }
.org { color: var(--purple-2); margin-top: 4px; }
.org a { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: rgba(196, 129, 255, 0.55); }
.org a:hover { text-decoration-color: #fff; }
.dates { margin-top: 4px; color: var(--dim); font-size: 0.92rem; }
.year { display: none; }
.job-copy { color: #d5d0da; max-width: 52ch; }

.work-section { padding-bottom: clamp(48px, 8vh, 90px); }
.work-bleed { position: relative; }

.work-bleed::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 12px;
  width: 56px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
}

.work-bleed.is-end::after { opacity: 0; }

.work-row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  scrollbar-color: #3a3344 transparent;
}

.work-row::-webkit-scrollbar { height: 8px; }
.work-row::-webkit-scrollbar-thumb { background: #3a3344; border-radius: 99px; }
.work-row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.work-row.is-dragging a { pointer-events: none; }

.card {
  flex: 0 0 min(84vw, 420px);
  scroll-snap-align: start;
  padding: 0 22px 28px 0;
}

.card-wide { flex-basis: min(88vw, 560px); }

.visual {
  position: relative;
  min-height: 280px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  border-radius: 14px;
}

.visual-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.visual-dj { background: #140e1c; color: #f3f3f1; }
.visual-s17 { background: #cfc6b8; color: #161616; }
.visual-fly { background: #101412; color: #f3f3f1; }
.visual-code { background: #e7e1d6; color: #141414; }

.visual-stat {
  font-family: var(--display);
  font-size: clamp(4.4rem, 8vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.82;
}

.visual-caption { max-width: 14ch; margin-top: 8px; color: rgba(243, 243, 241, 0.78); }
.mini-stats { display: flex; gap: 22px; margin-top: 16px; }

.mini-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.mini-stats span {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }

.pills li {
  border: 1px solid rgba(243, 243, 241, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.zoom { transition: transform 0.8s var(--ease); }
.card:hover .zoom { transform: scale(1.035); }

.window {
  width: min(100%, 520px);
  height: 168px;
  margin: 0 auto;
  background: #f7f6f3;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.window-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #cfc8bc; }

.window-body {
  display: grid;
  grid-template-columns: 72px 1fr;
  flex: 1;
  min-height: 0;
}

.window-side {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.window-side span { height: 7px; background: #e6e1d8; display: block; }
.window-side span:first-child { background: #171717; width: 70%; }
.window-main { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.window-main b { height: 10px; width: 46%; background: #171717; display: block; }
.window-main em { height: 7px; background: #e6e1d8; display: block; }
.window-main em.short { width: 72%; }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.cells i { display: block; height: 36px; background: #ece7df; }
.cells i:nth-child(2) { background: #171717; }
.net { position: absolute; inset: 0; width: 100%; height: 100%; }

.fly-line {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 10ch;
}

.stack {
  font-family: var(--display);
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.86;
}

.stack span { display: block; }
.stack .outline { color: transparent; -webkit-text-stroke: 1.5px #141414; }

.card-meta { display: flex; gap: 14px; align-items: baseline; margin-top: 16px; }

.num {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--purple-2);
}

.card h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.card-meta p,
.card-copy,
.tools { color: var(--muted); }

.card-copy { margin-top: 10px; max-width: 42ch; }
.tools-label { margin-top: 14px; }
.tools { margin-top: 6px; }
.card-link { margin-top: 12px; }

.card-link a,
.contact-list a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(196, 129, 255, 0.7);
}

.card-link a:hover,
.contact-list a:hover { text-decoration-color: #fff; }

.block { margin-top: clamp(28px, 5vh, 48px); }
.block-title { margin-bottom: 4px; }

.row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.row:last-child { border-bottom: 1px solid var(--line); }
.row b { font-weight: 500; }
.row span,
.row em { color: var(--muted); font-style: normal; }

.contact { padding: clamp(80px, 12vh, 140px) 0 28px; }
.display { margin: 12px 0 8px; }
.contact-list { margin-top: 28px; }

.contact-list div {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-list div:last-child { border-bottom: 1px solid var(--line); }

.contact-list dt {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-2);
  font-weight: 500;
}

.contact-list dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.contact-list dd a + a { margin-left: 18px; }

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: clamp(48px, 8vh, 88px);
  padding-top: 16px;
  color: var(--dim);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #070709;
  padding: 22px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu[hidden] { display: none; }
.menu-top,
.menu-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.menu-nav { display: grid; margin: 6vh 0; }

.menu-nav a {
  font-family: var(--display);
  font-size: clamp(2.8rem, 12vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-transform: uppercase;
}

.menu-nav a:hover { color: var(--purple); }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js [data-reveal].in { opacity: 1; transform: none; }

@keyframes up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes ticker { to { transform: translateX(-50%); } }

@media (min-width: 800px) {
  .job {
    grid-template-columns: minmax(0, 1.15fr) 120px minmax(0, 1.05fr);
    gap: 18px 28px;
    align-items: start;
  }

  .year {
    display: block;
    position: relative;
    text-align: right;
    padding-right: 22px;
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
  }

  .year::before {
    content: "";
    position: absolute;
    right: 0;
    top: -26px;
    bottom: -26px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(196, 129, 255, 0.85), transparent);
  }

  .job:first-child .year::before { top: 6px; }
  .job:last-child .year::before { bottom: 6px; }

  .job.is-now .year::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0.45em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    transform: translate(50%, -50%);
    background: #f4e9ff;
    box-shadow: 0 0 0 6px rgba(196, 129, 255, 0.18), 0 0 18px #c481ff;
  }

  .row {
    grid-template-columns: 1.4fr 1fr auto;
    gap: 12px 24px;
    align-items: baseline;
  }

  .contact-list div {
    grid-template-columns: 140px 1fr;
    align-items: baseline;
    gap: 18px;
  }
}

@media (min-width: 980px) {
  :root { --gutter: clamp(88px, 7vw, 112px); }
  .nav { display: flex; }
  .menu-btn { display: none; }
  .rail { display: flex; }

  .hero {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 420px) minmax(220px, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
    padding-top: var(--header);
    padding-bottom: 0;
    gap: 8px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-role {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    padding-bottom: 8vh;
    text-align: left;
  }

  .hero-copy,
  .hero-role { position: relative; z-index: 2; }

  .hero-role {
    justify-content: flex-end;
    padding-bottom: 14vh;
    padding-left: 6vw;
  }

  .portrait {
    z-index: 1;
    width: 168%;
    height: 108%;
    margin: 0 0 0 -34%;
    align-self: end;
    pointer-events: none;
  }

  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: start;
  }

  .card { flex-basis: min(42vw, 460px); }
  .card-wide { flex-basis: min(52vw, 640px); }
  .visual { min-height: 340px; }
}

@media (max-width: 799px) {
  .window-side { display: none; }
  .window-body { grid-template-columns: 1fr; }
  .header-mail { display: none; }
}

@media (min-width: 800px) and (max-width: 979px) {
  .header-mail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader { display: none !important; }
  .hero-anim,
  .js [data-reveal] { opacity: 1; transform: none; animation: none; transition: none; }
  .loader-track,
  .marquee-track,
  .zoom,
  .role-word,
  .role-place { animation: none; transition: none; }
}

@media print {
  .loader, .rail, .header, .menu, .marquee { display: none !important; }
  .hero { min-height: 0; }
  .hero-anim, .js [data-reveal] { opacity: 1; transform: none; }
  body { background: #fff; color: #111; }
}
