:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #161616;
  --line: rgba(245, 245, 245, 0.16);
  --line-strong: rgba(245, 245, 245, 0.32);
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --muted-2: #b8b8b8;
  --button-dark: #0a0a0a;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.045), transparent 28%),
    linear-gradient(180deg, #0a0a0a 0%, #0b0b0b 100%);
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

/* NAV */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted-2);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--text);
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.nav-cta:hover,
.btn:hover {
  background: var(--text);
  color: var(--button-dark);
  transform: translateY(-1px);
}

/* HERO */

.hero {
  padding: 112px 0 72px;
}

.hero.compact {
  padding: 96px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: end;
}

.eyebrow,
.section-kicker,
.panel-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted-2);
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-copy {
  margin: 28px 0 0;
  max-width: 52rem;
  color: var(--muted-2);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}

.hero-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border-radius: 12px;
  padding: 28px;
}

.panel-label {
  margin-bottom: 18px;
}

.panel-copy {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.75;
}

/* MEDIA OPTIONS */

.briefing-image {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}

.briefing-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0%) contrast(1.05) brightness(0.8);
}

.inline-figure {
  margin: 30px 0;
}

.inline-figure img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  filter: grayscale(0%) contrast(1.05) brightness(0.82);
}

.figure-caption {
  margin-top: 12px !important;
  color: var(--muted) !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  font-style: italic;
}

.briefing-video {
  margin-top: 40px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.briefing-video video {
  width: 100%;
  display: block;
}

.video-embed {
  position: relative;
  padding-top: 56.25%;
  margin: 40px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Optional photo sequence */

.photo-sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.photo-sequence figure {
  margin: 0;
}

.photo-sequence img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  filter: grayscale(100%) contrast(1.06) brightness(0.8);
}

.photo-sequence figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* GENERAL SECTIONS */

.rule {
  border-top: 1px solid var(--line);
  margin: 64px 0;
}

.section {
  padding: 28px 0 44px;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: start;
}

.section-kicker {
  margin-bottom: 16px;
}

.copy-stack {
  max-width: 760px;
}

.copy-stack p {
  margin: 0 0 18px;
  color: var(--muted-2);
  font-size: 1.05rem;
  line-height: 1.85;
}

/* FIELD NOTES INDEX */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.note-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease;
}

.note-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.note-card a {
  display: block;
  height: 100%;
}

.note-image {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.note-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.08) brightness(0.78);
}

.note-content {
  padding: 22px;
}

.note-meta {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.note-content h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.note-content p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* BRIEFING LIST */

.briefing-list {
  display: grid;
  gap: 18px;
}

.briefing-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.briefing-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.briefing-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.briefing-item h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* LAB NOTE / BRIEFING SUBPAGE */

.lab-note {
  padding: 28px 0 96px;
}

.note-layout {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 48px;
  align-items: start;
}

.note-meta-panel {
  position: sticky;
  top: 108px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  padding: 24px;
}

.meta-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.meta-row:first-child {
  padding-top: 0;
}

.meta-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.meta-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.meta-row strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 500;
}

.note-body {
  max-width: 760px;
}

.note-body section {
  padding: 0 0 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.note-body section:last-child {
  margin-bottom: 0;
}

.note-body p {
  margin: 0 0 18px;
  color: var(--muted-2);
  font-size: 1.06rem;
  line-height: 1.85;
}

.note-body .callout {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 24px;
  background: rgba(255,255,255,0.025);
}

.note-body .callout p {
  margin: 0;
  color: var(--text);
}

/* CLOSING */

.closing {
  padding: 72px 0 96px;
}

.closing-box {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  text-align: center;
}

.closing-box h2 {
  max-width: 16ch;
  margin: 0 auto 22px;
  text-transform: uppercase;
}

.closing-box p {
  margin: 0 auto;
  max-width: 48rem;
  color: var(--muted-2);
  line-height: 1.85;
  font-size: 1.05rem;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .hero-grid,
  .section-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .photo-sequence {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .note-layout {
    grid-template-columns: 1fr;
  }

  .note-meta-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-inner {
    min-height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    order: 3;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero {
    padding: 72px 0 48px;
  }

  .hero.compact {
    padding: 72px 0 40px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .brand {
    font-size: 11px;
  }

  .nav-cta,
  .btn {
    width: 100%;
  }

  .closing-box {
    padding: 28px;
  }

  .briefing-image,
  .briefing-video,
  .video-embed {
    margin-top: 28px;
  }
}
