:root {
  --background: oklch(14.5% 0.005 285);
  --foreground: oklch(96% 0.005 90);
  --surface: oklch(19% 0.006 285);
  --line: oklch(32% 0.008 285);
  --accent-ink: oklch(72% 0.19 48);
  --muted-foreground: oklch(68% 0.008 285);
  --primary-foreground: oklch(14% 0.005 285);
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --space: 0.25rem;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

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

::selection {
  background: var(--accent-ink);
  color: var(--primary-foreground);
}

.page {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
}

.label-mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.mega {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  line-height: 0.82;
}

.font-display {
  font-family: var(--font-sans);
}

.grain {
  position: relative;
}

.grain::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.reveal {
  animation: reveal-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.header-bar {
  position: relative;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-actions a {
  white-space: nowrap;
}

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

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--foreground);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.site-nav {
  display: none;
}

@media (max-width: 767px) {
  .nav-open .site-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    background: color-mix(in oklab, var(--background) 92%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    gap: 1.75rem;
  }

  .header-actions {
    gap: 0;
  }
}

.sticky {
  position: sticky;
}

header.sticky {
  isolation: isolate;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.top-0 {
  top: 0;
}

.inset-0 {
  inset: 0;
}

.bottom-6 {
  bottom: calc(var(--space) * 6);
}

.left-5 {
  left: calc(var(--space) * 5);
}

.z-50 {
  z-index: 50;
}

.mx-auto {
  margin-inline: auto;
}

.mt-2 { margin-top: calc(var(--space) * 2); }
.mt-3 { margin-top: calc(var(--space) * 3); }
.mt-4 { margin-top: calc(var(--space) * 4); }
.mt-5 { margin-top: calc(var(--space) * 5); }
.mt-6 { margin-top: calc(var(--space) * 6); }
.mt-10 { margin-top: calc(var(--space) * 10); }
.mt-14 { margin-top: calc(var(--space) * 14); }
.mt-16 { margin-top: calc(var(--space) * 16); }
.mt-20 { margin-top: calc(var(--space) * 20); }
.mb-8 { margin-bottom: calc(var(--space) * 8); }
.mb-10 { margin-bottom: calc(var(--space) * 10); }
.mb-12 { margin-bottom: calc(var(--space) * 12); }
.mb-14 { margin-bottom: calc(var(--space) * 14); }

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.gap-px { gap: 1px; }
.gap-2 { gap: calc(var(--space) * 2); }
.gap-3 { gap: calc(var(--space) * 3); }
.gap-4 { gap: calc(var(--space) * 4); }
.gap-6 { gap: calc(var(--space) * 6); }
.gap-7 { gap: calc(var(--space) * 7); }
.gap-8 { gap: calc(var(--space) * 8); }
.gap-10 { gap: calc(var(--space) * 10); }
.gap-x-6 { column-gap: calc(var(--space) * 6); }
.gap-y-2 { row-gap: calc(var(--space) * 2); }

.space-y-2 > :not(:last-child) { margin-bottom: calc(var(--space) * 2); }
.space-y-3 > :not(:last-child) { margin-bottom: calc(var(--space) * 3); }
.space-y-4 > :not(:last-child) { margin-bottom: calc(var(--space) * 4); }
.space-y-6 > :not(:last-child) { margin-bottom: calc(var(--space) * 6); }
.space-y-10 > :not(:last-child) { margin-bottom: calc(var(--space) * 10); }

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.divide-y > :not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.overflow-hidden {
  overflow: hidden;
}

.max-w-\[1400px\] {
  max-width: 1400px;
}

.max-w-xl {
  max-width: 36rem;
}

.w-full {
  width: 100%;
}

.w-1\.5 {
  width: calc(var(--space) * 1.5);
}

.h-1\.5 {
  height: calc(var(--space) * 1.5);
}

.h-\[62vh\] {
  height: 62vh;
}

.min-h-screen {
  min-height: 100vh;
}

.object-cover {
  object-fit: cover;
}

.object-\[center_22\%\] {
  object-position: center 22%;
}

.p-6 { padding: calc(var(--space) * 6); }
.p-8 { padding: calc(var(--space) * 8); }
.px-2\.5 { padding-inline: calc(var(--space) * 2.5); }
.px-5 { padding-inline: calc(var(--space) * 5); }
.py-1 { padding-block: calc(var(--space) * 1); }
.py-4 { padding-block: calc(var(--space) * 4); }
.py-6 { padding-block: calc(var(--space) * 6); }
.py-16 { padding-block: calc(var(--space) * 16); }
.py-20 { padding-block: calc(var(--space) * 20); }
.pt-1 { padding-top: calc(var(--space) * 1); }
.pt-4 { padding-top: calc(var(--space) * 4); }
.pt-6 { padding-top: calc(var(--space) * 6); }
.pt-8 { padding-top: calc(var(--space) * 8); }
.pt-16 { padding-top: calc(var(--space) * 16); }
.pb-0\.5 { padding-bottom: calc(var(--space) * 0.5); }
.pb-10 { padding-bottom: calc(var(--space) * 10); }
.pl-4 { padding-left: calc(var(--space) * 4); }

.border {
  border-width: 1px;
}

.border-y {
  border-block-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-l {
  border-left-width: 1px;
}

.border-line,
.divide-line > :not(:last-child) {
  border-color: var(--line);
}

.border-accent-ink {
  border-color: var(--accent-ink);
}

.bg-background {
  background-color: var(--background);
}

.bg-background\/85 {
  background-color: color-mix(in oklab, var(--background) 85%, transparent);
}

.bg-surface {
  background-color: var(--surface);
}

.bg-line {
  background-color: var(--line);
}

.bg-accent-ink {
  background-color: var(--accent-ink);
}

.bg-gradient-to-t.from-background {
  background-image: linear-gradient(
    to top,
    var(--background),
    color-mix(in oklab, var(--background) 10%, transparent) 45%,
    transparent
  );
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

.pointer-events-none {
  pointer-events: none;
}

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-\[11vw\] { font-size: 11vw; }
.text-\[19vw\] { font-size: 19vw; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-\[0\.8\] { line-height: 0.8; }
.leading-\[1\.05\] { line-height: 1.05; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }

.tracking-\[-0\.02em\] { letter-spacing: -0.02em; }
.tracking-\[-0\.03em\] { letter-spacing: -0.03em; }
.tracking-\[0\.14em\] { letter-spacing: 0.14em; }

.uppercase { text-transform: uppercase; }
.break-all { word-break: break-all; }

.text-foreground { color: var(--foreground); }
.text-foreground\/80 { color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.text-foreground\/85 { color: color-mix(in oklab, var(--foreground) 85%, transparent); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-accent-ink { color: var(--accent-ink); }
.text-accent-ink\/40 { color: color-mix(in oklab, var(--accent-ink) 40%, transparent); }

.transition-colors {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.transition-opacity {
  transition: opacity 0.15s ease;
}

@media (hover: hover) {
  .hover\:text-accent-ink:hover { color: var(--accent-ink); }
  .hover\:text-foreground:hover { color: var(--foreground); }
  .hover\:bg-surface:hover { background-color: var(--surface); }
  .hover\:border-accent-ink:hover { border-color: var(--accent-ink); }
  .hover\:opacity-70:hover { opacity: 0.7; }
  .group:hover .group-hover\:text-foreground { color: var(--foreground); }
}

@media (min-width: 40rem) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  .md\:col-span-9 { grid-column: span 9 / span 9; }
  .md\:items-end { align-items: flex-end; }
  .md\:px-10 { padding-inline: calc(var(--space) * 10); }
  .md\:py-24 { padding-block: calc(var(--space) * 24); }
  .md\:py-28 { padding-block: calc(var(--space) * 28); }
  .md\:pt-24 { padding-top: calc(var(--space) * 24); }
  .md\:bottom-12 { bottom: calc(var(--space) * 12); }
  .md\:left-10 { left: calc(var(--space) * 10); }
  .md\:h-\[78vh\] { height: 78vh; }
  .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:text-8xl { font-size: 6rem; line-height: 1; }
  .md\:text-\[13\.5vw\] { font-size: 13.5vw; }
}

@media (min-width: 64rem) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero-copy {
  padding: 4rem 1.25rem 2.5rem;
}

.hero-name {
  font-size: 19vw;
  line-height: 0.8;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-lede {
  max-width: 36rem;
}

.hero-photo {
  position: relative;
  min-height: 62vh;
}

.hero-photo img {
  width: 100%;
  height: 62vh;
  object-fit: cover;
  object-position: center 22%;
}

@media (min-width: 48rem) {
  .hero-split {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: stretch;
    min-height: calc(100svh - 4.5rem);
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2.5rem 4rem 2.5rem;
  }

  .hero-name {
    font-size: clamp(3.25rem, 6.5vw, 7.5rem);
  }

  .hero-photo {
    min-height: calc(100svh - 4.5rem);
  }

  .hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .nav-toggle span {
    animation: none;
    transition: none;
  }
}
