:root {
  --paper: #000000;
  --paper-2: #121212;
  --ink: #ffffff;
  --ink-soft: #d7d7d7;
  --muted: #a3a3a3;
  --line: #2a2a2a;
  --water: #0e8c44;
  --water-deep: #111111;
  --fiber: #0e8c44;
  --fiber-deep: #1aaa52;
  --foam: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --serif: "IBM Plex Sans", "Segoe UI", sans-serif;
  --sans: "Roboto", "Segoe UI", sans-serif;
  --max: 1120px;
  --header: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(14, 140, 68, 0.16), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 400;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--fiber);
  color: var(--foam);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header);
  padding: 0.75rem 6vw;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled { border-bottom-color: var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand img { height: 48px; width: auto; flex: none; }

.brand strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--fiber);
}

.site-nav a:hover { color: var(--fiber-deep); }

.wrap {
  width: min(var(--max), calc(100% - 12vw));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: end;
  padding: 4.5rem 0 3.5rem;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--fiber-deep);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }

h1 {
  margin: 0;
  font-size: clamp(3.3rem, 7vw, 6.4rem);
  line-height: 0.9;
  font-weight: 600;
}

h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--water);
}

.definition { max-width: 46rem; margin: 0.4rem 0 2.4rem; }
.definition h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.definition p { margin: 0.8rem 0 0; color: var(--ink-soft); }
.definition figure { margin: 1.4rem 0 0; }
.definition img { width: 100%; height: auto; border-radius: 16px; background: #fff; }
.definition figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.92rem; }
.definition .meta { font-size: 0.88rem; }

.lede {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  font-size: 1.22rem;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button, .button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

.button { background: var(--fiber); color: #ffffff; }
.button:hover { background: var(--fiber-deep); }

.button-ghost {
  border: 1px solid var(--line);
  background: transparent;
}

.button-ghost:hover { border-color: var(--ink); }

.figure-card {
  background: var(--water-deep);
  color: #e7efe9;
  border-radius: 28px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
}

.figure-card img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.figure-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.4rem 0.2rem;
  color: #c9d5cf;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.figure-card figcaption span { white-space: nowrap; }

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

.metrics article {
  padding: 1.4rem 1.2rem 1.5rem 0;
}

.metrics article + article {
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}

.metrics strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metrics span { display: block; margin-top: 0.45rem; color: var(--muted); font-size: 0.95rem; }

.section { padding: 4.5rem 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.8rem;
}

.section-head h2, .page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.section-head p, .page-hero p { margin: 0.7rem 0 0; max-width: 40rem; color: var(--ink-soft); }

.page-hero { padding: 3.2rem 0 1rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.surrogate { margin: 1rem 0 0; }
.surrogate img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
}
.surrogate figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.clip img {
  width: min(100%, 720px);
  height: auto;
  border-radius: 12px;
  background: #fff;
}
.clip a { color: var(--fiber-deep); }
.clip iframe {
  width: 100%;
  border: 0;
  border-radius: 12px;
  margin-top: 0.9rem;
}
.clip iframe[src*="spotify"] { height: 152px; }
.clip iframe[src*="youtube"] { aspect-ratio: 16 / 9; height: auto; }
.yt-cue {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0;
  border: 0;
  background: #000;
  border-radius: 12px;
  cursor: pointer;
}
.yt-cue img { width: 100%; height: auto; border-radius: 12px; }
.yt-cue::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background: #e10600;
}
.yt-cue::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-30%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.clip.poster h2 { margin: 0 0 0.9rem; font-size: 1.7rem; }
.clip.poster img {
  width: auto;
  max-width: 100%;
  max-height: 92vh;
  height: auto;
  margin: 0 auto;
}
.clip.poster.lead img {
  width: 100%;
  height: 78vh;
  max-height: none;
  object-fit: cover;
  object-position: center 64%;
}

.card, .story, .person, .paper, .panel {
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.card { padding: 1.35rem 1.3rem 1.4rem; }

.card .index {
  color: var(--fiber);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.card h3, .person h3, .paper h3, .story h3 { margin: 0.45rem 0 0.4rem; font-size: 1.45rem; line-height: 1.15; }

.card p, .person p, .paper p, .story p { margin: 0; color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.story {
  padding: 1.6rem;
  background: #0c1410;
  color: #edf3ef;
  border: 0;
}

.story p { color: #d5e2db; }

.story a { color: #7dffb2; }

.quote {
  margin: 1.2rem 0 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 500;
  color: white;
}

.quote footer { margin-top: 0.8rem; color: #c9d8d1; font-family: var(--sans); font-size: 0.92rem; }

.people-grid, .paper-list, .stack {
  display: grid;
  gap: 0.8rem;
}

.people-grid { grid-template-columns: repeat(4, 1fr); }
.person.lead { grid-column: 1 / -1; }

.person { padding: 1.2rem; }
.person h3 { font-size: 1.28rem; }

.person.lead {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 1.4rem;
  align-items: start;
  background: var(--water-deep);
  color: #edf3ef;
  border: 0;
}
.person.lead .portrait {
  width: 168px;
  height: 168px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 18px;
}

.person.lead p { color: #d5e2db; }

.monogram {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-family: var(--serif);
  letter-spacing: 0.02em;
}

.role { margin-top: 0.8rem !important; color: var(--fiber-deep); font-size: 0.92rem; }

.person.lead .role { color: var(--fiber-deep); }

.paper {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
}

.paper time {
  color: var(--fiber-deep);
  font-variant-numeric: tabular-nums;
}

.record-list { margin: 0; }
.record {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.35rem 1.2rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}
.record time, .record .when {
  color: var(--fiber-deep);
  font-variant-numeric: tabular-nums;
}
.record h3 { margin: 0; font-size: 1.2rem; }
.record p { margin: 0.2rem 0 0; }

.meta { margin-top: 0.35rem !important; font-size: 0.92rem; }

.panel { padding: 1.4rem 1.4rem 1.5rem; }

.panel h2 { margin: 0 0 0.6rem; font-size: 2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.email {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  text-decoration: none;
  color: var(--water);
}

.email:hover { color: var(--fiber-deep); }

.link-list { list-style: none; padding: 0; margin: 1rem 0 0; }

.link-list a { color: var(--water); }

.site-footer {
  margin-top: 2rem;
  background: var(--water-deep);
  color: #d7e3dd;
  padding: 2.4rem 0 2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}

.site-footer strong {
  display: block;
  color: white;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.site-footer a { color: var(--fiber-deep); }

.fine { margin: 1.4rem 0 0; color: #9aada6; font-size: 0.85rem; }

.reel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.reel-item {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
  padding: 0.7rem;
  text-align: left;
  font: inherit;
  color: var(--ink-soft);
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 22px;
  cursor: pointer;
}

.reel-item img,
.reel-item video {
  width: 100%;
  height: 240px;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.reel-item span { font-size: 0.92rem; line-height: 1.4; }

.reel-stage {
  position: relative;
  width: min(1100px, 92vw);
  max-height: 92vh;
  margin: auto;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #000;
  color: #fff;
}

.reel-stage::backdrop { background: rgba(0, 0, 0, 0.84); }

.reel-stage figure { margin: 0; }

.reel-stage img,
.reel-stage video {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  background: #000;
}

.reel-stage iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 12px;
  background: #000;
}

.reel-stage figcaption {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.reel-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 1;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.6rem 6vw 1rem;
    background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.45rem 0; }

  .hero, .cards, .split, .people-grid, .contact-grid, .metrics, .paper, .record {
    grid-template-columns: 1fr;
  }

  .person.lead { grid-column: auto; grid-template-columns: 1fr; }
  .person.lead .portrait { width: 140px; height: 140px; }

  .metrics article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1.1rem;
  }

  .hero { padding-top: 2.4rem; gap: 1.6rem; }
  .footer-grid, .section-head { flex-direction: column; align-items: start; }
}

@media (max-width: 700px) {
  .reel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fiber-glow { animation: none !important; }
}
