@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/source-sans-3.woff2") format("woff2");
}

:root {
  --ink: #061114;
  --gold: #e6c57a;
  --paper: #f0e6d0;
  --muted: #d2c4ab;
  --line: rgba(230, 197, 122, 0.28);
  --focus: #e6c57a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
html, body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Source Sans 3", system-ui, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(920px 500px at 50% -10%, rgba(230, 197, 122, 0.09), transparent 60%),
    var(--ink);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 20;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
}
.skip:focus { left: 8px; }

.banner {
  margin: 0;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 20, 0.94);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  background: rgba(6, 17, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.wordmark:hover { text-decoration: none; color: var(--paper); }
.wordmark .mark { width: 22px; height: 22px; flex: 0 0 auto; }
.wordmark .wm-text {
  font-family: Fraunces, Georgia, "Iowan Old Style", serif;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.wordmark em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  margin-left: 0.22em;
}
.site-header nav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav a:hover { color: var(--paper); text-decoration: none; }
.site-header nav a[aria-current="page"] {
  color: var(--paper);
  box-shadow: inset 0 -1px 0 var(--gold);
}

main { flex: 1 0 auto; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100svh - 7.5rem);
  padding: 2.75rem 1.25rem 3.25rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  background:
    radial-gradient(ellipse 68% 58% at 50% 44%, rgba(6, 17, 20, 0.28) 0%, rgba(6, 17, 20, 0.72) 62%, var(--ink) 100%),
    url("motif-atmosphere.webp") center / cover no-repeat,
    var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("motif-circuit.webp") center / cover no-repeat;
  opacity: 0.32;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-seal {
  width: 76px;
  height: 76px;
  margin: 0 0 1.05rem;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(230, 197, 122, 0.32));
}
.hero--page {
  min-height: 0;
  align-items: flex-start;
  text-align: left;
  max-width: 44rem;
  margin: 0 auto;
  padding-top: 3.25rem;
  padding-bottom: 1.25rem;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(6, 17, 20, 0.55), var(--ink) 70%),
    url("motif-atmosphere.webp") center 18% / cover no-repeat,
    var(--ink);
}
.hero--page::before { opacity: 0.14; }
.lockup {
  width: min(42rem, 100%);
  padding: clamp(2.4rem, 7vw, 4.4rem) 1.35rem 2.6rem;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 7px rgba(6, 17, 20, 0.55), 0 0 0 8px var(--line);
  background: rgba(6, 17, 20, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero h1 {
  margin: 0;
  font-family: Fraunces, Georgia, "Iowan Old Style", serif;
  font-weight: 500;
  font-size: clamp(2.7rem, 11vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}
.hero--page h1 {
  font-size: clamp(2.15rem, 7.5vw, 3.9rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: none;
}
.labs-line {
  margin: 0.4rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.1rem, 3.2vw, 1.7rem);
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--gold);
}
.hairline {
  display: block;
  width: 3rem;
  height: 1px;
  margin: 1.5rem auto 0;
  background: var(--gold);
}
.hero--page .hairline { margin-left: 0; margin-right: 0; }
.lede {
  max-width: 30rem;
  margin: 1.45rem 0 0;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
}
.hero--page .lede { max-width: 38rem; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 1.85rem;
  padding: 0 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
}
.cta:hover {
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
}

.wrap {
  width: min(70rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}
.section {
  padding: 3.5rem 0 4.25rem;
  border-top: 1px solid var(--line);
}
.section h2 {
  margin: 0 0 1rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--paper);
}
.section p {
  margin: 0 0 1rem;
  max-width: 40rem;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}
.section p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--ink);
  padding: 1.5rem 1.25rem;
}
.card h3 {
  margin: 0 0 0.55rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--paper);
}
.card p {
  margin: 0;
  max-width: none;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

.kicker {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0.5rem 0 1.25rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.15rem, 3.8vw, 1.75rem);
  font-weight: 500;
  color: var(--gold);
  word-break: break-all;
}
.mail:hover { color: var(--paper); }

.addr {
  margin: 1.25rem 0 0;
  font-style: normal;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}
.addr strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 0.35rem;
}

.note {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 300;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1.35rem 1.25rem max(2.4rem, calc(1.25rem + env(safe-area-inset-bottom)));
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  text-align: center;
}
.site-footer p {
  margin: 0 auto;
  max-width: 46rem;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}
.site-footer a { color: var(--gold); }

@media (min-width: 700px) {
  .banner {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .site-header {
    padding: 0 1.5rem;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
  .site-header nav a {
    padding: 0 12px;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
  }
  .hero { padding: 4.5rem 1.5rem 5rem; }
  .hero--page { padding-top: 4.5rem; padding-bottom: 1.5rem; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4.5rem 0 5.25rem; }
  .card { padding: 1.75rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 420px) {
  .site-header { gap: 4px; padding: 0 8px; }
  .wordmark { gap: 7px; flex: 1 1 auto; min-width: 0; }
  .wordmark .mark { width: 18px; height: 18px; }
  .wordmark .wm-text {
    font-size: 0.9rem;
    overflow: visible;
    text-overflow: clip;
  }
  .site-header nav a {
    min-width: 0;
    padding: 0 5px;
    font-size: 0.625rem;
    letter-spacing: 0.08em;
  }
}

@media (max-height: 520px) {
  .hero {
    min-height: 0;
    overflow: visible;
    padding: 1rem 1.25rem 1.4rem;
  }
  .hero-seal { width: 52px; height: 52px; margin: 0 0 0.45rem; }
  .lockup { padding: 1.05rem 1.15rem 1.15rem; }
  .hero h1 { font-size: clamp(1.65rem, 6.5vw, 2.7rem); }
  .labs-line { font-size: clamp(0.95rem, 2.4vw, 1.2rem); letter-spacing: 0.36em; margin-top: 0.2rem; }
  .eyebrow { margin-bottom: 0.55rem; }
  .lede { margin-top: 0.85rem; font-size: 1rem; }
  .cta { margin-top: 1rem; }
}

.explainers {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.explainers figure { margin: 0; background: var(--ink); }
.explainers img { width: 100%; height: auto; display: block; }
.explainers figcaption {
  padding: 0.7rem 1rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.video-slot {
  position: relative;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}
.video-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ink);
}
.video-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.video-slot-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  background: rgba(6, 17, 20, 0.42);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
  margin-top: 1.5rem;
}
.cta-row .cta { margin-top: 0; }
.cta--fill {
  background: var(--gold);
  color: var(--ink);
}
.cta--fill:hover {
  background: transparent;
  color: var(--gold);
}

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