:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #9ad6ff;
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
}

body.no-webgl {
  overflow: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  overflow: hidden;
}

.stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 42%;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: opacity 0.38s ease;
}

.stage-img.is-on {
  opacity: 1;
}

body.is-open .stage-img {
  left: 0;
  right: auto;
  width: calc(100% - min(520px, 40vw) + 80px);
  object-position: 92% 40%;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 68% 48%, transparent 16%, rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, transparent 48%);
  transition: background 0.7s var(--ease);
}

body.is-open .vignette {
  background:
    radial-gradient(ellipse at 26% 48%, transparent 14%, rgba(0, 0, 0, 0.3) 52%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(270deg, rgba(0, 0, 0, 0.2) 0%, transparent 46%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-mark {
  font-size: clamp(20px, 2.3vw, 25px);
  letter-spacing: -0.03em;
  font-weight: 500;
}

.nav-asterisk {
  font-size: 26px;
  color: var(--accent);
  transition: transform 0.45s var(--ease);
}

.nav-logo:hover .nav-asterisk {
  transform: rotate(90deg);
}

.nav-links {
  display: none;
  align-items: center;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.nav-links a,
.nav-cta {
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-cta:hover,
.nav-links a.is-active,
.nav-cta.is-active {
  opacity: 0.55;
}

.nav-comma {
  margin-right: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
}

.nav-cta {
  display: none;
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-burger {
  width: 2rem;
  height: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 40;
}

.nav-burger span {
  width: 1.45rem;
  height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  gap: 1.3rem;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.mobile-cta {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.pins {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.pin i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 10px rgba(154, 214, 255, 0.8);
}

.pin.is-active {
  color: var(--accent);
}

.pin.is-active i {
  background: var(--accent);
}

.pin:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero {
  position: fixed;
  z-index: 10;
  left: clamp(1.2rem, 5vw, 3.2rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(520px, 46vw);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.hero.is-dim {
  opacity: 0;
  transform: translateY(-46%);
  pointer-events: none;
}

.hero-photo {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 28% 12%;
  border: 1px solid rgba(154, 214, 255, 0.35);
  margin-bottom: 1.1rem;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.hero-lede {
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84);
  max-width: 28rem;
  margin-bottom: 1.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 14px;
}

.hero-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--muted);
}

.hero-links a:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 0.38em 1.05rem;
  font-size: 15px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn:hover {
  background: #000;
  color: #fff;
  outline: 1px solid #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  outline: 1px solid #fff;
}

.btn-ghost:hover {
  background: #fff;
  color: #000;
}

.sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 16;
  width: min(560px, 100%);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(22px);
  border-left: 1px solid var(--line);
  transform: translateX(104%);
  transition: transform 0.5s var(--ease);
  overflow: hidden;
}

.sheet.is-open {
  transform: none;
}

.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5.4rem 1.6rem 0.8rem;
}

.sheet-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.sheet-close {
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sheet-body {
  height: calc(100% - 7.2rem);
  overflow: auto;
  padding: 0 1.6rem 2.4rem;
}

.sheet-body::-webkit-scrollbar {
  width: 5px;
}

.sheet-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
}

.sheet h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  word-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.sheet p,
.job li {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 0.75rem;
}

.muted {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.about-row img {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 28% 12%;
  border: 1px solid rgba(154, 214, 255, 0.35);
}

.card {
  display: block;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.card:hover {
  opacity: 0.72;
}

.card h3,
.job h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.card p {
  font-size: 14.5px;
  margin-bottom: 0.55rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.03em;
  border: 1px solid var(--line);
  padding: 0.18rem 0.55rem;
  color: var(--muted);
}

.job {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.job-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}

.job-dates {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.job-role {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.job ul {
  padding-left: 1.05rem;
  margin-bottom: 0.55rem;
}

.job li {
  font-size: 14.5px;
  margin-bottom: 0.3rem;
}

.more {
  margin: 0.4rem 0 0.8rem;
}

.more summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 0.5rem;
}

.skill {
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.skill-title {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.55rem;
}

.skill .tags {
  margin-top: 0.1rem;
}

.bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: #fff;
}

.mail {
  display: inline-block;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 0.3rem 0 1.2rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
}

.socials a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.socials a:hover {
  opacity: 0.6;
}

.dock {
  display: none;
}

.step {
  position: fixed;
  z-index: 12;
  left: 1.4rem;
  bottom: 1.2rem;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

.hint {
  position: fixed;
  z-index: 12;
  right: 1.4rem;
  bottom: 1.2rem;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  transition: opacity 0.5s;
}

.fallback {
  position: relative;
  z-index: 6;
  max-width: 720px;
  margin: 5rem auto 3rem;
  padding: 0 1.4rem 4rem;
}

.fallback[hidden] {
  display: none;
}

.fallback-hero {
  margin-bottom: 2rem;
}

.fallback-hero img {
  width: 88px;
  height: 88px;
  border-radius: 99px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.fallback section {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.hint.is-gone {
  opacity: 0;
}

@media (min-width: 768px) {
  .nav {
    padding: 1.2rem 2rem;
  }

  .nav-links,
  .nav-cta {
    display: flex;
  }

  .nav-burger,
  .mobile-menu {
    display: none !important;
  }

  .sheet-bar,
  .sheet-body {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 767px) {
  .stage-img,
  body.is-open .stage-img {
    left: 0;
    right: 0;
    width: 100%;
    object-position: 60% 28%;
  }

  .vignette {
    background:
      radial-gradient(ellipse at 50% 38%, transparent 12%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.82) 100%);
  }

  .hero {
    left: 1.15rem;
    right: 1.15rem;
    width: auto;
    top: auto;
    bottom: 1.4rem;
    transform: none;
  }

  .hero.is-dim {
    transform: translateY(12px);
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .sheet {
    width: 100%;
    border-left: 0;
    background: rgba(0, 0, 0, 0.94);
  }

  .hint {
    display: none;
  }

  .pins {
    display: none;
  }

  .dock {
    display: flex;
    position: fixed;
    z-index: 17;
    left: 50%;
    bottom: 0.7rem;
    transform: translateX(-50%);
    gap: 0.25rem;
    padding: 0.3rem;
    max-width: calc(100vw - 1rem);
    overflow: auto;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
  }

  .dock button {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 0.55rem;
    color: var(--muted);
    white-space: nowrap;
  }

  .dock button.is-active,
  .dock button:hover {
    color: #fff;
  }

  .step {
    display: none;
  }

  body.is-open .hero-photo {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet,
  .hero,
  .stage-img {
    transition: none;
  }
}
