/*
 * site.css — one stylesheet, in cascade order:
 * tokens, reset, typography, primitives, layout, sections, motion.
 *
 * No preprocessor, no utility framework, no build step. Custom properties do
 * the work a theme layer would do, and the file stays small enough to read.
 */

/* ---------------------------------------------------------------- tokens - */

:root {
  /* Midnight — the page is a night sky over Oklahoma City. */
  --void: #05090f;
  --navy-900: #070d1a;
  --navy-800: #0b1424;
  --navy-700: #101c31;
  --navy-600: #16253d;

  /* Gold — used sparingly: rules, marks, one word at a time. */
  --gold: #d9b25f;
  --gold-bright: #f3d894;
  --gold-deep: #a3801f;

  --text: #e9edf6;
  --text-soft: #b3bed3;
  --text-mute: #7c8aa6;

  --edge: rgba(217, 178, 95, 0.18);
  --edge-strong: rgba(217, 178, 95, 0.4);
  --edge-cool: rgba(140, 165, 210, 0.14);

  --panel: linear-gradient(160deg, rgba(22, 37, 61, 0.66), rgba(9, 16, 29, 0.72));

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas,
    monospace;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 78rem;
  --radius: 2px;
  --rule: 1px solid var(--edge);

  --step: clamp(3.5rem, 9vw, 8rem);
}

@font-face {
  font-family: "Fraunces";
  src: url("/static/vendor/fraunces-latin-var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191,
    U+2193, U+2212, U+2215;
}

/* ----------------------------------------------------------------- reset - */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: var(--radius);
}

::selection {
  background: rgba(217, 178, 95, 0.28);
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--void);
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------- sky - */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #0d1930 0%, var(--void) 62%),
    var(--void);
}

/* Static starfield: layered radial gradients, no elements, no script. */
.sky__stars {
  position: absolute;
  inset: -10%;
  opacity: 0.75;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 22%, rgba(255, 255, 255, 0.72), transparent 60%),
    radial-gradient(1px 1px at 62% 12%, rgba(214, 228, 255, 0.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 84% 34%, rgba(255, 245, 220, 0.55), transparent 60%),
    radial-gradient(1px 1px at 33% 58%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.6px 1.6px at 8% 74%, rgba(243, 216, 148, 0.5), transparent 60%),
    radial-gradient(1px 1px at 71% 66%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.1px 1.1px at 46% 88%, rgba(214, 228, 255, 0.42), transparent 60%),
    radial-gradient(1px 1px at 92% 82%, rgba(255, 255, 255, 0.36), transparent 60%);
  background-size: 620px 520px, 480px 640px, 720px 560px, 560px 480px, 800px 700px,
    520px 600px, 660px 540px, 740px 620px;
  background-repeat: repeat;
}

.sky__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(65% 40% at 50% 108%, rgba(217, 178, 95, 0.16), transparent 70%),
    radial-gradient(45% 30% at 12% 96%, rgba(90, 140, 220, 0.12), transparent 70%);
}

.sky__meteors {
  position: absolute;
  inset: 0;
}

.meteor {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 1px;
  opacity: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(243, 216, 148, 0) 0%, rgba(243, 216, 148, 0.9) 88%,
    rgba(255, 255, 255, 0.95) 100%);
  filter: drop-shadow(0 0 6px rgba(217, 178, 95, 0.55));
  will-change: transform, opacity;
}

/* -------------------------------------------------------------- masthead - */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.masthead[data-scrolled] {
  background: rgba(5, 9, 15, 0.82);
  border-bottom-color: var(--edge);
  backdrop-filter: blur(14px) saturate(140%);
}

.masthead__mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--gold);
}

.mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.masthead__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.masthead__name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.masthead__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.masthead__toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  cursor: pointer;
}

.masthead__toggle-bars,
.masthead__toggle-bars::before,
.masthead__toggle-bars::after {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--gold);
  transition: transform 200ms ease, opacity 160ms ease;
}

.masthead__toggle-bars::before,
.masthead__toggle-bars::after {
  content: "";
  position: relative;
}

.masthead__toggle-bars::before {
  top: -5px;
}

.masthead__toggle-bars::after {
  top: 4px;
}

.masthead__toggle[aria-expanded="true"] .masthead__toggle-bars {
  background: transparent;
}

.masthead__toggle[aria-expanded="true"] .masthead__toggle-bars::before {
  transform: translateY(5px) rotate(45deg);
}

.masthead__toggle[aria-expanded="true"] .masthead__toggle-bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

.masthead__nav {
  display: none;
}

.masthead__nav[data-open] {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: block;
  padding: 1rem var(--gutter) 1.75rem;
  background: rgba(7, 13, 26, 0.97);
  border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(14px);
}

.masthead__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.masthead__nav a {
  display: block;
  padding: 0.65rem 0;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text-soft);
  border-bottom: 1px solid var(--edge-cool);
  transition: color 160ms ease;
}

.masthead__nav a:hover,
.masthead__nav a[aria-current="true"] {
  color: var(--gold-bright);
}

.masthead__cta {
  margin-top: 1rem;
}

@media (min-width: 60rem) {
  .masthead__toggle {
    display: none;
  }

  .masthead__nav,
  .masthead__nav[data-open] {
    position: static;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    border: 0;
    backdrop-filter: none;
  }

  .masthead__nav ul {
    flex-direction: row;
    gap: 1.75rem;
  }

  .masthead__nav a {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid transparent;
  }

  .masthead__cta {
    margin-top: 0;
  }
}

/* ------------------------------------------------------------ primitives - */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 200ms ease, border-color 200ms ease,
    color 200ms ease, box-shadow 200ms ease;
}

.button .arrow {
  width: 1em;
  height: 1em;
  transition: transform 200ms ease;
}

.button:hover .arrow {
  transform: translateX(3px);
}

.button--solid {
  background: linear-gradient(140deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #100a02;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 30px -12px rgba(217, 178, 95, 0.6);
}

.button--solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 16px 34px -12px rgba(217, 178, 95, 0.7);
}

.button--ghost {
  border-color: var(--edge-strong);
  color: var(--text);
  background: rgba(16, 28, 49, 0.35);
}

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

.button--block {
  width: 100%;
  justify-content: center;
}

.label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.label__index {
  color: var(--gold-deep);
}

.label__rule {
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--edge-strong), transparent);
}

.label__text {
  color: var(--text-mute);
}

.prose {
  max-width: 62ch;
  margin-bottom: 1.15rem;
  color: var(--text-soft);
}

.prose--tight {
  font-size: 0.9375rem;
  line-height: 1.62;
  margin-bottom: 1.4rem;
}

.prose:last-child {
  margin-bottom: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--edge-cool);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  background: rgba(16, 28, 49, 0.5);
}

/* ---------------------------------------------------------------- layout - */

main {
  display: block;
}

.section {
  max-width: var(--measure);
  margin-inline: auto;
  padding: var(--step) var(--gutter);
  border-top: 1px solid var(--edge-cool);
}

.section:first-of-type {
  border-top: 0;
}

.section__title {
  max-width: 22ch;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-weight: 550;
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.section__lede {
  max-width: 58ch;
  margin-bottom: 2.5rem;
  color: var(--text-soft);
}

/* ------------------------------------------------------------------ hero - */

.hero {
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(3rem, 9vw, 7rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(217, 178, 95, 0.55);
}

.hero__title {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 600;
  font-size: clamp(2.6rem, 1rem + 9.2vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  background: linear-gradient(96deg, var(--gold-bright) 8%, var(--gold) 48%, var(--gold-deep) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__rotator {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  min-height: 2.2em;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  font-size: clamp(1.05rem, 0.9rem + 1.1vw, 1.5rem);
  color: var(--text-soft);
}

.hero__rotator-prefix {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-style: italic;
  color: var(--text-mute);
}

.typewriter {
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.typewriter__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 0.28em;
  translate: 0 0.12em;
  background: var(--gold);
  animation: caret 1.05s steps(1) infinite;
}

@keyframes caret {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.hero__lede {
  max-width: 54ch;
  margin-bottom: 2.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
}

/* --------------------------------------------------------------- session - */

/*
 * The hero terminal. It is served complete and readable; session.js hides the
 * rows and replays them only once it has decided to. Nothing below assumes the
 * animation ever runs.
 */

.session {
  margin: 0;
  padding-top: 2rem;
  border-top: var(--rule);
  max-width: 44rem;
}

.session__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--navy-700);
  border: 1px solid var(--edge);
  border-bottom: 0;
  border-radius: 0.5rem 0.5rem 0 0;
}

.session__dots {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold-deep);
  box-shadow: 0.85rem 0 0 var(--navy-600), 1.7rem 0 0 var(--navy-600);
}

.session__path {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-mute);
}

.session__body {
  margin: 0;
  padding: 1rem 0.9rem 1.1rem;
  list-style: none;
  background: var(--navy-800);
  border: 1px solid var(--edge);
  border-radius: 0 0 0.5rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  overflow-x: auto;
}

.session__row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  white-space: nowrap;
}

.session__marker {
  flex: none;
  width: 1ch;
  color: var(--gold);
}

.session__tool {
  flex: none;
  width: 5ch;
  color: var(--text-soft);
}

.session__text {
  color: var(--text-soft);
}

.session__detail {
  color: var(--text-mute);
}

.session__row--prompt {
  margin-bottom: 0.6rem;
}

.session__row--prompt .session__text {
  color: var(--text);
}

/* The caret rides the end of the prompt only while it is being typed. */
.session[data-session-playing] .session__row--prompt .session__text::after {
  content: "";
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 0.15ch;
  vertical-align: text-bottom;
  background: var(--gold);
  animation: session-caret 1s steps(2, jump-none) infinite;
}

.session__row--output .session__marker,
.session__row--output .session__text {
  color: var(--gold-bright);
}

.session__row--summary {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--edge-cool);
}

.session__row--summary .session__marker {
  visibility: hidden;
}

.session__row--summary .session__text {
  color: var(--text-mute);
}

.session__caption {
  margin-top: 0.9rem;
  max-width: 44ch;
  font-size: 0.875rem;
  color: var(--text-mute);
}

@keyframes session-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (min-width: 48rem) {
  .session__body {
    font-size: 0.875rem;
    padding: 1.2rem 1.4rem 1.3rem;
  }
}

/* ---------------------------------------------------------------- roster - */

.roster {
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  padding: 1.4rem clamp(1.1rem, 3vw, 1.8rem) 1.5rem;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 0.75rem;
}

.roster__heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.roster__pulse {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--edge-strong);
  animation: roster-pulse 2.6s ease-out infinite;
}

.roster__list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roster__item {
  display: grid;
  gap: 0.15rem 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--edge-cool);
}

.roster__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.roster__link {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--edge-strong);
  justify-self: start;
}

.roster__link:hover,
.roster__link:focus-visible {
  color: var(--gold-bright);
}

.roster__sector,
.roster__host {
  font-size: 0.875rem;
  color: var(--text-mute);
}

.roster__host {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.roster__note {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: var(--rule);
  max-width: 52ch;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

@keyframes roster-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--edge-strong);
  }
  70% {
    box-shadow: 0 0 0 0.6rem rgba(217, 178, 95, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 178, 95, 0);
  }
}

@media (min-width: 40rem) {
  .roster__item {
    grid-template-columns: minmax(12rem, 1fr) minmax(9rem, auto) minmax(14rem, auto);
    align-items: baseline;
  }

  .roster__host {
    justify-self: end;
  }
}

/* ---------------------------------------------------------------- thesis - */

.thesis__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 62rem) {
  .thesis__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
  }
}

.pipeline {
  padding: 1.75rem;
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  position: relative;
}

.pipeline::before,
.pipeline::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  opacity: 0.55;
}

.pipeline::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.pipeline::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.pipeline__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.4rem;
}

.pipeline__stage {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--edge-cool);
}

.pipeline__stage:last-child {
  border-bottom: 0;
}

.pipeline__number {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}

.pipeline__name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: 1.15rem;
  font-weight: 550;
  color: var(--text);
}

.pipeline__caption {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-mute);
}

/* ----------------------------------------------------------------- cards - */

.cards {
  display: grid;
  gap: 1px;
  background: var(--edge-cool);
  border: 1px solid var(--edge-cool);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 52rem) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(160deg, rgba(16, 28, 49, 0.55), rgba(7, 13, 26, 0.8));
  transition: background-color 240ms ease;
}

.card:hover {
  background: linear-gradient(160deg, rgba(22, 37, 61, 0.75), rgba(9, 16, 29, 0.85));
}

.card__title {
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card__body {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

/* ---------------------------------------------------------- translations - */

.translations {
  display: grid;
  gap: 0;
}

.translation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--edge-cool);
}

.translation:first-child {
  border-top: 1px solid var(--edge-cool);
}

.translation__decision {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}

.translation__arrow {
  display: none;
  color: var(--gold-deep);
}

.translation__consequence {
  color: var(--text-soft);
  font-size: 0.9375rem;
}

@media (min-width: 52rem) {
  .translation {
    grid-template-columns: 15rem 1.5rem minmax(0, 1fr);
    align-items: baseline;
    padding: 1.6rem 0;
  }

  .translation__arrow {
    display: block;
  }
}

/* ------------------------------------------------------------- advantage - */

.section--advantage .section__title {
  max-width: 26ch;
}

.advantage__grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 56rem) {
  .advantage__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.advantage__item {
  padding-top: 1.25rem;
  border-top: 2px solid var(--gold);
}

.advantage__title {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: 1.2rem;
  font-weight: 600;
}

.advantage__body {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.advantage__closer {
  max-width: 60ch;
  padding-left: 1.25rem;
  border-left: 1px solid var(--edge-strong);
  font-size: 1.0625rem;
  color: var(--text);
}

/* -------------------------------------------------------------- projects - */

.projects {
  display: grid;
  gap: 1.5rem;
}

.project {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  position: relative;
  overflow: hidden;
}

.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 45%);
  opacity: 0.7;
}

.project__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--edge-cool);
}

.project__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.project__summary {
  max-width: 46ch;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.project__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: right;
  color: var(--text-mute);
}

.project__year {
  color: var(--gold-deep);
}

.project__grid {
  display: grid;
  gap: 0 3rem;
}

@media (min-width: 56rem) {
  .project__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project__heading {
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.project__footer {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--edge-cool);
}

@media (min-width: 56rem) {
  .project__footer {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
    gap: 3rem;
  }
}

.project__outcomes {
  display: grid;
  gap: 0.6rem;
}

.project__outcomes li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.project__tick {
  flex: none;
  width: 7px;
  height: 7px;
  translate: 0 -1px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------- process - */

.steps {
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--edge-cool);
}

.step:first-child {
  border-top: 1px solid var(--edge-cool);
}

.step__index {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1.2;
}

.step__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.step__duration {
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.step__text {
  max-width: 62ch;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

@media (min-width: 56rem) {
  .step {
    grid-template-columns: 5rem 18rem minmax(0, 1fr);
    align-items: baseline;
    gap: 2rem;
  }

  .step__body {
    display: contents;
  }

  .step__title {
    grid-column: 2;
  }

  .step__duration {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
  }

  .step__text {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

/* --------------------------------------------------------------- contact - */

.contact__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 62rem) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.contact__direct {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: var(--rule);
}

.contact__direct li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
}

.contact__direct-label {
  min-width: 5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.contact__direct a {
  color: var(--gold);
  text-decoration-color: var(--edge-strong);
  text-underline-offset: 4px;
}

.contact__direct a:hover {
  color: var(--gold-bright);
}

.contact__form {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}

.field {
  margin-bottom: 1.25rem;
}

.field__label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.field__optional {
  color: var(--text-mute);
  letter-spacing: 0.08em;
}

.field__input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: rgba(5, 9, 15, 0.6);
  border: 1px solid var(--edge-cool);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.field__input::placeholder {
  color: var(--text-mute);
}

.field__input:hover {
  border-color: var(--edge);
}

.field__input:focus {
  border-color: var(--gold);
  background: rgba(5, 9, 15, 0.85);
}

.field__input--area {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.6;
}

.field__input[aria-invalid="true"] {
  border-color: #e0705f;
}

.field__error {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: #f0a294;
}

.form__status {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--gold);
  background: rgba(217, 178, 95, 0.08);
  font-size: 0.9375rem;
  color: var(--text);
}

.form__status--invalid,
.form__status--error,
.form__status--limited {
  border-left-color: #e0705f;
  background: rgba(224, 112, 95, 0.1);
}

.form__status[hidden] {
  display: none;
}

.form__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-mute);
}

/* Off-screen rather than display:none — some bots skip hidden inputs. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------- notice - */

.notice {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(4rem, 14vh, 9rem) var(--gutter);
  text-align: center;
}

.notice__eyebrow {
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.notice__title {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.notice__body {
  margin-bottom: 2.25rem;
  color: var(--text-soft);
  text-wrap: pretty;
}

.notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* ---------------------------------------------------------------- footer - */

.footer {
  position: relative;
  margin-top: var(--step);
  border-top: 1px solid var(--edge-cool);
}

.footer__skyline {
  opacity: 0.5;
  mask-image: linear-gradient(180deg, transparent, #000 55%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%);
}

.footer__skyline img {
  width: 100%;
  height: auto;
}

.footer__inner {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 2rem var(--gutter) 3rem;
  display: grid;
  gap: 1.5rem;
}

.footer__statement {
  max-width: 34ch;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.footer__statement-lead {
  color: var(--gold);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.9375rem;
}

.footer__links a {
  color: var(--text-soft);
  text-decoration-color: var(--edge-cool);
  text-underline-offset: 4px;
}

.footer__links a:hover {
  color: var(--gold-bright);
}

.footer__fine {
  font-size: 0.8125rem;
  color: var(--text-mute);
}

@media (min-width: 62rem) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .footer__statement {
    grid-row: 1;
  }

  .footer__links {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .footer__fine {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------------- motion - */

/* Sections fade up once, when JavaScript observes them. Without JS the class
   is never added and the content is simply visible from the start. */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .typewriter__caret {
    animation: none;
    opacity: 1;
  }

  /* The session is served finished, so there is nothing to reveal; session.js
     returns before it ever sets data-session-playing. */
  .roster__pulse {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .sky,
  .masthead,
  .footer__skyline,
  .hero__actions,
  .contact__form {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
