:root {
  --bg: oklch(10% 0.018 305);
  --bg-2: oklch(14% 0.026 305);
  --bg-3: oklch(20% 0.032 304);
  --ink: oklch(90% 0.03 83);
  --ink-2: oklch(76% 0.03 82);
  --ink-dim: oklch(58% 0.028 82);
  --ink-faint: oklch(42% 0.024 82);
  --paper: oklch(16% 0.026 305);
  --line: oklch(90% 0.03 83 / 0.12);
  --line-mid: oklch(90% 0.03 83 / 0.26);
  --line-strong: oklch(90% 0.03 83 / 0.56);
  --accent: oklch(58% 0.14 24);
  --accent-2: oklch(62% 0.11 142);
  --candle: oklch(76% 0.115 72);
  --shadow: oklch(4% 0.012 305 / 0.78);
  --f-display: "Cinzel", Georgia, serif;
  --f-sans: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --pad-x: clamp(20px, 4vw, 56px);
}

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

html, body {
  min-height: 100%;
  background:
    radial-gradient(circle at 50% -18%, oklch(34% 0.08 24 / 0.30), transparent 40vw),
    linear-gradient(180deg, var(--bg) 0%, oklch(7% 0.016 305) 100%);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
::selection { background: var(--ink); color: var(--bg); }

.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 1000;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.06 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
  opacity: 0.13;
  mix-blend-mode: screen;
  animation: grainShift 1.1s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0,0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(2%, -1%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, 1%); }
  100% { transform: translate(0,0); }
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: oklch(90% 0.03 83 / 0.08);
  z-index: 1450;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--candle), var(--accent));
  transition: width 0.08s linear;
}

.cinema {
  position: fixed;
  inset: 0;
  z-index: 1320;
  pointer-events: none;
}
.cinema__shade {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(12px, 2.2vh, 26px);
  background: oklch(4% 0.012 305 / 0.9);
}
.cinema__shade--top { top: 0; }
.cinema__shade--bottom { bottom: 0; }
.cinema__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 38%, oklch(3% 0.01 305 / 0.52) 100%),
    linear-gradient(90deg, oklch(3% 0.01 305 / 0.36), transparent 18%, transparent 82%, oklch(3% 0.01 305 / 0.36));
  mix-blend-mode: multiply;
}
.cinema__scene {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(26px, 4vh, 44px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.cinema__scene span:first-child { color: var(--candle); }
.cinema__scene::before {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--line-mid);
}
.cinema__strip {
  position: absolute;
  top: 50%;
  right: clamp(18px, 2.5vw, 34px);
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
  opacity: 0.32;
}
.cinema__strip i {
  width: 8px;
  height: 22px;
  border: 1px solid var(--ink-dim);
  background: oklch(90% 0.03 83 / 0.03);
}

.frame {
  position: fixed;
  inset: 24px;
  pointer-events: none;
  z-index: 1400;
}
.frame__c {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink);
  opacity: 0.48;
}
.frame__c--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame__c--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.frame__c--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.frame__c--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  color: var(--ink);
}
.cursor * { pointer-events: none; }
.cursor__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  transition: width 0.32s var(--ease), height 0.32s var(--ease), margin 0.32s var(--ease), background 0.25s ease;
}
.cursor__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: currentColor;
  border-radius: 50%;
}
.cursor__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.cursor.is-hover .cursor__ring {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  background: var(--ink);
  border-color: var(--ink);
}
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-hover .cursor__label { opacity: 1; }

.boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 38%, oklch(28% 0.08 24 / 0.28), transparent 28vw),
    var(--bg);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot.is-done .boot__seal { animation: none; }
.boot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.boot__seal {
  width: 96px;
  height: 96px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 46px;
  position: relative;
  animation: sealRotate 6s linear infinite;
}
.boot__seal span:nth-child(2) {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(180deg);
  opacity: 0.18;
}
@keyframes sealRotate {
  to { transform: rotate(360deg); }
}
.boot__meta {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.boot__lab { color: var(--ink-dim); }
.boot__bar {
  width: 240px;
  height: 1px;
  background: var(--line-mid);
  overflow: hidden;
}
.boot__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--candle);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1480;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px var(--pad-x);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(to bottom, oklch(10% 0.018 305 / 0.92) 62%, transparent);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__monogram,
.foot__monogram {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 17px;
}
.nav__name,
.foot__name {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.nav__links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
}
.nav__links a {
  color: var(--ink-2);
  transition: color 0.3s ease;
}
.nav__links a:hover { color: var(--candle); }
.nav__links span { color: var(--ink-faint); margin-left: 5px; }
.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.nav__cta:hover {
  transform: translateY(-2px);
  background: var(--candle);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(110px, 14vh, 160px) var(--pad-x) clamp(46px, 7vh, 84px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 34%, oklch(76% 0.115 72 / 0.12), transparent 30vw),
    linear-gradient(180deg, var(--bg-2), transparent 72%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, oklch(90% 0.03 83 / 0.025) 7px 8px),
    linear-gradient(180deg, transparent 72%, var(--bg) 100%);
  opacity: 0.44;
}
.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - clamp(160px, 23vh, 250px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(22px, 4vh, 40px);
}
.hero__eyebrow {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.kicker {
  padding: 6px 12px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  background: oklch(90% 0.03 83 / 0.055);
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(60px, 15vw, 230px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-shadow: 0 24px 90px var(--shadow);
  margin-top: auto;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero__title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
  animation-play-state: paused;
}
body.is-loaded .hero__title .word { animation-play-state: running; }
.hero__title .line:nth-child(2) .word { animation-delay: 0.18s; }
.hero__title .italic {
  font-style: italic;
  font-weight: 400;
}
@keyframes rise {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.hero__columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  align-items: end;
}
.hero__lede {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.42;
  max-width: 54ch;
  color: var(--ink-2);
}
.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__stats li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted var(--line-mid);
  padding-bottom: 6px;
}
.hero__stats .k { color: var(--ink-dim); }
.hero__stats .v { color: var(--ink); }
.hero__cue {
  position: absolute;
  bottom: clamp(18px, 4vh, 36px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__cue svg { animation: bob 2.4s var(--ease) infinite; }
@keyframes bob {
  50% { transform: translateY(8px); opacity: 0.4; }
}
.hero__hud {
  position: absolute;
  bottom: clamp(18px, 4vh, 36px);
  right: var(--pad-x);
  z-index: 3;
  display: flex;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

section {
  position: relative;
  min-height: 100dvh;
}
.about,
.work,
.skills,
.lab,
.contact {
  padding: 0 var(--pad-x) clamp(80px, 12vh, 140px);
  background:
    radial-gradient(circle at 12% 20%, oklch(76% 0.115 72 / 0.055), transparent 28vw),
    var(--bg);
}
.about::before,
.work::before,
.skills::before,
.lab::before,
.contact::before {
  content: '';
  position: absolute;
  inset: 0 var(--pad-x);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  pointer-events: none;
  opacity: 0.24;
}
section > * {
  position: relative;
  z-index: 1;
}
.section__chrome {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 18px;
  padding: clamp(80px, 10vh, 120px) 0 36px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.section__num,
.is-scene-active .section__num,
.is-scene-active .section__lab { color: var(--candle); }
.section__lab { color: var(--ink); }
.section__rule {
  height: 1px;
  background: linear-gradient(90deg, var(--candle), transparent);
  opacity: 0.76;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.about__head,
.work__head h2,
.skills__head h2,
.lab__head h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.about__head { max-width: 15ch; }
.about__head em,
.contact__head em {
  font-style: italic;
  font-weight: 400;
  color: var(--candle);
}
.about__body p {
  font-family: var(--f-display);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.58;
  margin-bottom: 18px;
  color: var(--ink-2);
  max-width: 55ch;
}
.about__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip,
.job__tags span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  color: var(--ink-2);
  background: oklch(90% 0.03 83 / 0.04);
}

.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt > * { transform-style: preserve-3d; }

.about__card {
  --tilt-max: 14deg;
  perspective: 1200px;
  align-self: center;
}
.idcard {
  position: relative;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease);
}
.about__card:hover .idcard { transform: rotateY(180deg); transition-duration: 0.7s; }
.idcard__face,
.flipcard__face {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, oklch(90% 0.03 83 / 0.045) 0 1px, transparent 1px 12px),
    var(--paper);
  border: 1.5px solid var(--ink);
  padding: 24px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px -28px var(--shadow);
}
.idcard__face--back { transform: rotateY(180deg); }
.idcard__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.idcard__chip {
  width: 26px;
  height: 20px;
  border: 1px solid var(--candle);
  background: linear-gradient(135deg, var(--candle), oklch(38% 0.09 24));
}
.idcard__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 0.95;
  margin: auto 0;
}
.idcard__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.idcard__grid > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted var(--line-mid);
  padding-bottom: 4px;
}
.idcard__grid .k { color: var(--ink-dim); }
.idcard__sig,
.idcard__back-copy {
  margin-top: 14px;
  color: var(--ink-dim);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.idcard__strip {
  height: 28px;
  background: var(--ink);
  margin: -24px -24px 18px;
}
.idcard__barcode {
  display: flex;
  gap: 2px;
  align-items: end;
  margin-top: auto;
  height: 40px;
}
.idcard__barcode i {
  width: 2px;
  height: 100%;
  background: var(--ink);
}
.idcard__barcode i:nth-child(2n) { width: 1px; height: 70%; }
.idcard__barcode i:nth-child(3n) { width: 4px; height: 90%; }
.idcard__barcode i:nth-child(7n) { width: 3px; height: 60%; }

.work__head,
.skills__head,
.lab__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
  align-items: end;
}
.work__head p,
.skills__head p,
.lab__head p {
  font-family: var(--f-display);
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.4;
  color: var(--ink-dim);
}
.timeline {
  list-style: none;
  position: relative;
  padding-left: 64px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--ink), transparent);
  opacity: 0.38;
}
.job {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 24px;
  padding: clamp(20px, 2.4vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -50px var(--shadow);
  --tilt-max: 6deg;
}
.job__rail {
  position: absolute;
  left: -64px;
  top: 28px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.job__dot {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
  transition: background 0.3s ease, transform 0.4s var(--ease);
}
.job:hover .job__dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}
.job__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.job__when,
.skill__num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--candle);
}
.job__role,
.skill h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.05;
}
.job__where {
  font-family: var(--f-display);
  color: var(--ink-dim);
}
.job__body {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink-2);
}
.job__body li {
  position: relative;
  padding-left: 22px;
}
.job__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--accent);
}
.job__tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px dotted var(--line-mid);
  padding-top: 16px;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.skill {
  position: relative;
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 22px 45px -35px var(--shadow);
  overflow: hidden;
  --tilt-max: 9deg;
}
.skill::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--candle);
  transition: width 0.6s var(--ease);
}
.skill:hover::after { width: 100%; }
.skill h3 { margin: 12px 0 16px; }
.skill ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.skill li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
}

.lab {
  background:
    radial-gradient(circle at 50% 52%, oklch(76% 0.115 72 / 0.10), transparent 36vw),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.ring {
  position: relative;
  height: clamp(360px, 56vh, 540px);
  perspective: 1400px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.ring:active { cursor: grabbing; }
.ring__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.ring__face {
  --r: 360px;
  --count: 5;
  --angle: calc(360deg / var(--count));
  --face-w: clamp(220px, 26vw, 320px);
  --face-h: clamp(280px, 32vw, 400px);
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--face-w);
  height: var(--face-h);
  margin-left: calc(var(--face-w) / -2);
  margin-top: calc(var(--face-h) / -2);
  transform:
    rotateY(calc(var(--i) * var(--angle)))
    translateZ(var(--r));
  background: var(--paper);
  border: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 26px;
  backface-visibility: hidden;
  box-shadow: 0 50px 90px -50px oklch(3% 0.01 305 / 0.88);
}
.ring__hello {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(42px, 5.1vw, 78px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.ring__hello--long {
  font-size: clamp(34px, 3.65vw, 54px);
  letter-spacing: -0.055em;
}
.ring__lang {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--ink);
}
.ring__lvl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.contact {
  text-align: left;
}
.contact__head {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin: clamp(28px, 5vh, 56px) 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 76px);
  line-height: 1;
  color: var(--ink);
  will-change: transform;
}
.contact__mail-text {
  overflow-wrap: anywhere;
}
.contact__mail svg { color: var(--candle); }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.contact__grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.contact__grid .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.contact__grid a {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 21px;
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}
.contact__grid a:hover { color: var(--candle); }
.contact__grid p {
  font-family: var(--f-display);
  font-size: 17px;
  color: var(--ink-2);
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  margin-right: 10px;
  box-shadow: 0 0 0 4px oklch(62% 0.11 142 / 0.18);
}
.dot.pulse { animation: dotPulse 2s infinite; }
@keyframes dotPulse {
  50% { box-shadow: 0 0 0 10px oklch(62% 0.11 142 / 0); }
}

.foot {
  position: relative;
  padding: 60px var(--pad-x) 30px;
  border-top: 1px solid var(--line-mid);
  background: var(--bg-2);
  overflow: hidden;
}
.foot__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.foot__sub,
.foot__nav,
.foot__bottom {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.foot__nav {
  display: flex;
  gap: 22px;
}
.foot__nav a:hover { color: var(--candle); }
.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
}
.foot__huge {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(120px, 24vw, 360px);
  line-height: 0.78;
  letter-spacing: -0.05em;
  text-align: center;
  margin-top: 30px;
  color: oklch(90% 0.03 83 / 0.08);
  user-select: none;
}

@media (max-width: 1100px) {
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__card { grid-column: 1 / -1; max-width: 520px; }
  .skills__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  html, body { cursor: auto; }
  .cursor, .frame { display: none; }
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav__links { display: none; }
  .hero { padding-top: 110px; }
  .hero__columns,
  .about__grid,
  .work__head,
  .skills__head,
  .lab__head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero__hud { display: none; }
  .timeline { padding-left: 36px; }
  .job {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .job__rail { left: -36px; }
  .skills__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .contact__mail { max-width: 100%; }
  .foot__top,
  .foot__bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root { --pad-x: 18px; }
  .cinema__strip { right: 20px; opacity: 0.24; }
  .cinema__scene { font-size: 9px; gap: 8px; }
  .cinema__scene::before { width: 36px; }
  .hero__title {
    font-size: clamp(48px, 16.4vw, 68px);
    letter-spacing: -0.055em;
  }
  .contact__mail {
    align-items: flex-start;
    gap: 12px;
    font-size: clamp(18px, 6vw, 24px);
    width: 100%;
  }
  .contact__mail svg {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
  }
  .contact__grid a {
    font-size: 18px;
  }
  .ring {
    height: 430px;
    perspective: 980px;
  }
  .ring__face {
    --r: 215px;
    --face-w: min(70vw, 260px);
    --face-h: min(88vw, 340px);
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__title .word {
    transform: none;
    opacity: 1;
    animation: none;
  }
  .ring__inner { transform: none !important; }
}
