@import "tokens.css";

/* ============================================================
 * Reset + base
 * ========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 120ms var(--ease-out), opacity 120ms var(--ease-out);
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--bg), 0 0 0 3px var(--accent);
  border-radius: 2px;
}

::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

/* ============================================================
 * Ambient background — extremely faint hairline grid, gradient vignette
 * ========================================================== */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(91, 227, 255, 0.035), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(244, 177, 74, 0.025), transparent 65%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(39, 42, 49, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(39, 42, 49, 0.35) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, black 40%, transparent 80%);
  opacity: 0.55;
}

main, header, footer { position: relative; z-index: 1; }

/* ============================================================
 * Scroll progress rail
 * ========================================================== */

.scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(91, 227, 255, 0.08);
  z-index: 50;
  pointer-events: none;
}

.scroll-rail__fill {
  transform-origin: left center;
  transform: scaleX(0);
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent-deep));
  box-shadow: 0 0 12px rgba(91, 227, 255, 0.55);
  will-change: transform;
}

/* ============================================================
 * Top nav strip
 * ========================================================== */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(10, 10, 11, 0.72);
  border-bottom: var(--hairline);
}

.masthead__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
}

.mark {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.mark__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 10px;
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(73, 216, 138, 0.8);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav-links a {
  transition: color 120ms var(--ease-out);
}

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

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

/* ============================================================
 * Layout primitives
 * ========================================================== */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: var(--hairline);
  margin-bottom: 56px;
}

.section-head__tag {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}

.section-head__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-head__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Mono labels that act like small caps */
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
 * HERO
 * ========================================================== */

.hero {
  min-height: clamp(620px, 92vh, 980px);
  display: flex;
  flex-direction: column;
  padding-top: 56px;
  padding-bottom: 56px;
  position: relative;
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
}

.hero__grid-bg line {
  stroke: var(--rule-strong);
  stroke-width: 1;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 1400ms var(--ease-out) forwards;
}

.hero__grid-bg line:nth-child(even) {
  animation-delay: 120ms;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.hero__top .ts span {
  color: var(--accent);
}

.hero__main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  padding-top: 80px;
  max-width: 920px;
}

@media (max-width: 960px) {
  .hero__main {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 48px;
  }
}

.hero__bracket {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__bracket::before,
.hero__bracket::after {
  content: "";
  height: 1px;
  width: 24px;
  background: var(--rule-strong);
}

.hero__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--step-5);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero__name .shine {
  background: linear-gradient(180deg, #fff 0%, #AEB2BC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__role {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.hero__role span.sep {
  color: var(--rule-strong);
}

.hero__note {
  max-width: 560px;
  color: var(--text-dim);
  font-size: var(--step-0);
  line-height: 1.65;
}

.hero__note strong {
  color: var(--text);
  font-weight: 500;
}

/* Telemetry readout */

.readout {
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.75), rgba(18, 20, 26, 0.35));
  border: var(--hairline);
  border-radius: 2px;
  padding: 22px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
}

.readout::before,
.readout::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--rule-strong);
}
.readout::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.readout::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.readout__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: var(--hairline);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.readout__head .status {
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.readout__head .status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(73, 216, 138, 0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}

.readout__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(39, 42, 49, 0.55);
}

.readout__row:last-child { border-bottom: none; }

.readout__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.readout__value {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.readout__value .unit {
  font-size: 0.62em;
  color: var(--text-mute);
  margin-left: 4px;
  letter-spacing: 0.08em;
}

/* Scroll cue */

.hero__cue {
  align-self: center;
  margin-top: 72px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero__cue .arrow {
  display: inline-block;
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ============================================================
 * DOSSIER (§01)
 * ========================================================== */

.dossier {
  border: var(--hairline);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(23, 25, 34, 0.5), rgba(18, 20, 26, 0.2));
  padding: 28px 32px;
  position: relative;
}

.dossier__header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: var(--hairline);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dossier__body {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text);
  max-width: 900px;
}

.dossier__body em {
  font-style: normal;
  color: var(--accent);
  border-bottom: 1px solid rgba(91, 227, 255, 0.4);
}

/* ============================================================
 * CAPABILITIES (§02)
 * ========================================================== */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: var(--hairline);
}

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

@media (max-width: 880px) {
  .capability-grid { grid-template-columns: 1fr; }
  .cap--wide { grid-column: auto; }
}

.cap {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 200ms var(--ease-out);
  position: relative;
}

.cap:hover {
  background: var(--surface);
}

.cap__id {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.cap__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  color: var(--text);
}

.cap__desc {
  color: var(--text-dim);
  font-size: var(--step-0);
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: rgba(18, 20, 26, 0.4);
  transition: border-color 80ms var(--ease-out), color 80ms var(--ease-out), box-shadow 80ms var(--ease-out);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(91, 227, 255, 0.3);
}

/* ============================================================
 * OPERATIONS (§03) — 3 tiers
 * ========================================================== */

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1080px) { .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .ops-grid { grid-template-columns: 1fr; } }

.op {
  background: var(--surface);
  border: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  position: relative;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.op:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
}

.op__thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
  border-bottom: var(--hairline);
}

.op__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.9) contrast(1.05) brightness(0.85);
  transition: filter 300ms var(--ease-out), transform 4000ms var(--ease-out);
}

.op:hover .op__thumb img {
  filter: grayscale(0) contrast(1) brightness(1);
  transform: scale(1.02);
}

/* Corner brackets on thumbs */
.op__thumb::before,
.op__thumb::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
}
.op__thumb::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.op__thumb::after  { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.op__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.op__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pill--live     { color: var(--success); background: rgba(73, 216, 138, 0.06); }
.pill--private  { color: var(--text-dim); background: rgba(136, 143, 153, 0.05); }
.pill--redacted {
  color: var(--amber);
  background: rgba(244, 177, 74, 0.08);
  box-shadow: 0 0 12px rgba(244, 177, 74, 0.18);
  animation: breathe 2.6s ease-in-out infinite;
}

.pill--live::before,
.pill--private::before,
.pill--redacted::before {
  content: "●";
  font-size: 8px;
  transform: translateY(-0.5px);
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 12px rgba(244, 177, 74, 0.18); opacity: 1; }
  50%      { box-shadow: 0 0 22px rgba(244, 177, 74, 0.38); opacity: 0.82; }
}

.op__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  color: var(--text);
}

.op__title a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.op__title .ext {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  transition: color 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.op__title a:hover .ext {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.op__desc {
  color: var(--text-dim);
  font-size: var(--step-0);
  line-height: 1.55;
}

.op__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0;
  border-top: 1px dashed rgba(39, 42, 49, 0.6);
  border-bottom: 1px dashed rgba(39, 42, 49, 0.6);
  margin: 4px 0;
}

.op__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.op__metric .v {
  font-family: var(--font-mono);
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--text);
}

.op__metric .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* Tier 2 — named private — stylized topo glyph instead of screenshot */

.op--tier2 .op__thumb {
  background:
    radial-gradient(circle at 30% 60%, rgba(91, 227, 255, 0.06), transparent 50%),
    linear-gradient(180deg, #0E1014, #070709);
}

.op--tier2 .op__thumb::before,
.op--tier2 .op__thumb::after {
  border-color: var(--rule-strong);
  opacity: 1;
}

.op__glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.op__glyph svg {
  width: 78%;
  height: auto;
  opacity: 0.55;
}

.op__glyph-name {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.op__glyph-name strong {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* Tier 3 — fully redacted */

.op--tier3 {
  grid-column: 1 / -1;
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.op--tier3 .op__thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 460px;
  border-bottom: none;
  border-right: var(--hairline);
}

@media (max-width: 880px) {
  .op--tier3 {
    grid-template-columns: 1fr;
  }
  .op--tier3 .op__thumb {
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-right: none;
    border-bottom: var(--hairline);
  }
}

.op--tier3 .op__thumb {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(244, 177, 74, 0.04) 0,
      rgba(244, 177, 74, 0.04) 2px,
      transparent 2px,
      transparent 8px
    ),
    linear-gradient(180deg, #111216, #070708);
}

.op--tier3 .op__thumb::before,
.op--tier3 .op__thumb::after {
  border-color: var(--amber);
  opacity: 0.85;
}

.op--tier3 .op__classified-mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  color: var(--amber);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.op--tier3 .op__classified-mark .big {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-shadow: 0 0 24px rgba(244, 177, 74, 0.25);
}

.op--tier3 .op__classified-mark .sub {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.32em;
}

.op--tier3 .op__metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .op--tier3 .op__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.op--tier3 .op__metric .v {
  color: var(--amber);
  font-size: var(--step-1);
}

/* Public op — show subsystem breakdown */

.op--tier1 .op__subsys {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.op--tier1 .op__subsys .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.op--tier1 .op__subsys .services {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.op--tier1 .op__subsys .svc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  padding: 2px 6px;
  background: rgba(18, 20, 26, 0.8);
  border-radius: 2px;
}

.op--tier1 .op__subsys .svc::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ============================================================
 * TRAJECTORY (§04)
 * ========================================================== */

.trajectory {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 24px;
  border-left: 1px dashed var(--rule);
}

.traj {
  padding: 22px 0 22px 24px;
  position: relative;
  border-bottom: 1px dashed var(--rule);
}

.traj:last-child { border-bottom: none; }

.traj::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 32px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--accent);
  background: var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg), 0 0 8px rgba(91, 227, 255, 0.35);
}

.traj__date {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: block;
  margin-bottom: 8px;
}

.traj__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.traj__title .org {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--step-0);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.traj__title .org--redacted {
  color: var(--amber);
}

.traj__desc {
  color: var(--text-dim);
  font-size: var(--step-0);
  line-height: 1.6;
  max-width: 720px;
}

/* ============================================================
 * CONTACT (§05)
 * ========================================================== */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

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

.contact__lead {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.contact__lead em {
  font-style: normal;
  color: var(--accent);
}

.contact__lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: var(--hairline);
  background: var(--surface);
  border-radius: 2px;
}

.contact__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
}

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

.contact__line .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.contact__line .v {
  font-family: var(--font-mono);
  font-size: var(--step-0);
  color: var(--text);
  transition: color 120ms var(--ease-out);
}

.contact__line a.v:hover {
  color: var(--accent);
}

.contact__eof {
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact__eof::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ============================================================
 * FOOTER
 * ========================================================== */

.site-foot {
  border-top: var(--hairline);
  padding: 28px 0 56px;
  margin-top: 40px;
}

.site-foot__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ============================================================
 * Reveal animations (IntersectionObserver target class = `is-in`)
 * ========================================================== */

/* Progressive enhancement: reveals only start hidden when JS is present.
   Without JS, content is visible immediately. */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

html.js .reveal-stagger.is-in > *:nth-child(1) { transition-delay: 40ms;  opacity: 1; transform: translateY(0); }
html.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 80ms;  opacity: 1; transform: translateY(0); }
html.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 120ms; opacity: 1; transform: translateY(0); }
html.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
html.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
html.js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
html.js .reveal-stagger.is-in > *:nth-child(7) { transition-delay: 280ms; opacity: 1; transform: translateY(0); }
html.js .reveal-stagger.is-in > *:nth-child(8) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
html.js .reveal-stagger.is-in > *:nth-child(n+9) { transition-delay: 360ms; opacity: 1; transform: translateY(0); }

/* ============================================================
 * Reduced motion
 * ========================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .hero__grid-bg line { stroke-dashoffset: 0 !important; }
  .scroll-rail { display: none !important; }
}

/* ============================================================
 * Print
 * ========================================================== */

@media print {
  body { background: #fff; color: #000; }
  body::before, body::after, .scroll-rail, .hero__grid-bg { display: none; }
  .op, .cap, .dossier, .contact__lines { border: 1px solid #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
