:root {
  --bg: #000000;
  --panel: #1c1c1e;
  --raised: #2c2c2e;
  --text: #f5f5f7;
  --muted: #98989d;
  --accent: #0a84ff;
  --accent-2: #409cff;
  --ok: #30d158;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --radius: 14px;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-2);
}

code {
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 0.9em;
  background: var(--raised);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.spot {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    520px 520px at var(--mx, 70%) var(--my, 18%),
    rgba(10, 132, 255, 0.16),
    transparent 55%
  );
}

.nav,
main,
.foot {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--text);
}

.cta-git {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
}

.cta-git:hover {
  background: #fff;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 1.08fr);
  gap: 36px 40px;
  align-items: center;
  padding: 40px 8vw 36px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: -8%;
  background:
    url("/assets/hero-bg.png") center / cover no-repeat;
  filter: hue-rotate(-48deg) saturate(0.65) contrast(1.1) brightness(0.42);
  transform: scale(1.06);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
}

.hero-copy,
.hero-frame {
  position: relative;
  z-index: 1;
}

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

.hero-frame {
  margin: 0;
}

.hero-frame button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.hero-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ok);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero h1,
.sec-head h2,
.source h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 5.4vw, 4.15rem);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
}

.lede,
.sec-head p,
.source p {
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions,
.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 0;
}

.btn-source {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px 18px 4px 18px;
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.4), 0 12px 40px rgba(10, 132, 255, 0.25);
}

.btn-source:hover {
  background: var(--accent-2);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 20px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 13px 2px;
}

.hero .lede {
  color: rgba(245, 245, 247, 0.86);
  font-size: 1.12rem;
  max-width: 38ch;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof article {
  background: var(--bg);
  padding: 22px 28px;
}

.proof-k {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.proof-v {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 400;
}

.proof-d {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.desk,
.features,
.source {
  padding: 56px 8vw;
}

.sec-head {
  margin-bottom: 40px;
}

.sec-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.shot-wide {
  grid-column: 1 / -1;
}

.shot {
  margin: 0;
}

.shot button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.shot button:hover,
.shot button:focus-visible {
  transform: translateY(-6px) rotate(-0.25deg);
  border-color: var(--accent);
  box-shadow: 0 40px 90px rgba(10, 132, 255, 0.18);
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.shot figcaption {
  padding: 14px 4px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shot figcaption strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feat {
  padding: 26px 24px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 220px;
}

.feat-n {
  margin: 0 0 18px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.feat h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feat-a {
  border-radius: 22px 6px 22px 6px;
}

.feat-b {
  border-radius: 6px;
  border-top: 2px solid var(--ok);
}

.feat-c {
  border-radius: 6px 22px;
}

.feat-d {
  background: linear-gradient(180deg, #141416, var(--panel));
}

.feat-e {
  box-shadow: inset 10px 0 0 var(--accent);
}

.feat-f {
  border-radius: 28px 28px 8px 8px;
}

.source {
  padding-top: 24px;
}

.source-card {
  max-width: var(--max);
  padding: 48px 44px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.12), transparent 42%),
    var(--panel);
  border-radius: 20px;
}

.source h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 8vw 48px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.foot a {
  color: var(--text);
}

.lightbox {
  width: min(96vw, 1280px);
  max-height: 92vh;
  padding: 18px;
  border: 1px solid var(--line);
  background: #0b0b0d;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}

.lightbox-x {
  display: block;
  margin: 0 0 12px auto;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.lightbox-cap {
  margin: 10px 0 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .proof,
  .feat-grid,
  .gallery,
  .hero {
    grid-template-columns: 1fr;
  }

  .shot-wide {
    grid-column: auto;
  }

  .hero {
    padding: 28px 22px 24px;
  }

  .source-card,
  .desk,
  .features,
  .source {
    padding-left: 22px;
    padding-right: 22px;
  }

  .source-card {
    padding: 28px 22px;
  }
}

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

  .shot button,
  .hero-photo {
    transition: none;
    transform: none;
  }

  .spot {
    display: none;
  }
}
