/* ============================================================
   IRRADIX — Red light devices, verified to spec.
   Shared stylesheet for all 6 pages.
   Theme: instrument-grade dark, two-tier red, spectrum motif.
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* ---- Design tokens ---- */
:root {
  /* Color */
  --ink:        #0B0B0E;  /* page base, warm near-black */
  --ink-2:      #0E0E12;  /* alt section band */
  --carbon:     #16161A;  /* cards, raised surfaces */
  --carbon-2:   #1C1C22;  /* hover / nested surfaces */
  --oxblood:    #3E1014;  /* structural borders, rails */
  --oxblood-dim:#2A0C0F;  /* faint borders */
  --signal:     #E5342A;  /* brand 660nm red — verified data + primary CTA only */
  --signal-soft:#FF5246;  /* brighter red for small text on dark (contrast) */
  --nir:        #7A1A1F;  /* mid spectrum */
  --bone:       #ECEAE6;  /* primary text, warm off-white */
  --slate:      #9A9AA2;  /* secondary / muted text */
  --slate-2:    #BCBCC4;  /* brighter body text for cards / readability */
  --slate-dim:  #6B6B73;  /* faint labels */

  /* Spectrum band gradient (630 -> 660 -> 810 -> 850nm) */
  --spectrum: linear-gradient(90deg, #FF5246 0%, var(--signal) 22%, var(--nir) 60%, var(--oxblood) 88%, #1A070A 100%);

  /* Type */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1200px;
  --rail-w: 88px;
  --nav-h: 68px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Z-scale */
  --z-rail: 5;
  --z-nav: 50;
  --z-menu: 60;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); overflow-wrap: break-word; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: 0; }
h4 { font-size: 1rem; letter-spacing: 0.02em; }
p { color: var(--slate); max-width: 68ch; }
strong { color: var(--bone); font-weight: 600; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--signal-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--spectrum);
}

/* ---- Spectrum band (signature divider) ---- */
.spectrum-band {
  height: 3px;
  width: 100%;
  background: var(--spectrum);
  border: 0;
  opacity: 0.95;
}
.spectrum-band.thin { height: 2px; }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.section--alt { background: var(--ink-2); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head h2 { margin-top: 0.9rem; }
.section-head p { margin-top: 1rem; font-size: 1.06rem; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--bone); max-width: 60ch; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  background: rgba(11,11,14,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--oxblood-dim);
}
.nav__inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px 1px rgba(229,52,42,0.85);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav__link {
  font-size: 0.95rem;
  color: var(--slate);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__link:hover { color: var(--bone); background: var(--carbon); }
.nav__link[aria-current="page"] { color: var(--bone); }
.nav__link[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: var(--spectrum);
}

/* dropdown */
.nav__dd { position: relative; }
.nav__dd-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: 0; color: var(--slate);
  font-size: 0.95rem; padding: 0.5rem 0.85rem; border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__dd-toggle:hover, .nav__dd:focus-within .nav__dd-toggle { color: var(--bone); background: var(--carbon); }
.nav__dd-toggle svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav__dd:hover .nav__dd-toggle svg, .nav__dd:focus-within .nav__dd-toggle svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: var(--carbon);
  border: 1px solid var(--oxblood);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav__dd:hover .nav__menu, .nav__dd:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__menu a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  color: var(--slate);
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__menu a:hover { color: var(--bone); background: var(--carbon-2); }
.nav__menu a span { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate-dim); margin-top: 2px; }

.nav__right { display: flex; align-items: center; gap: 0.75rem; }

/* hamburger */
.nav__burger {
  display: none;
  background: none; border: 1px solid var(--oxblood);
  border-radius: var(--radius);
  width: 42px; height: 42px;
  color: var(--bone);
  align-items: center; justify-content: center;
}
.nav__burger svg { width: 20px; height: 20px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--signal);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(229,52,42,0);
}
.btn--primary:hover {
  background: #f23d33;
  box-shadow: 0 6px 26px -6px rgba(229,52,42,0.7);
}
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--oxblood);
}
.btn--ghost:hover { border-color: var(--signal); color: #fff; background: rgba(229,52,42,0.06); }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 6rem) 0; overflow: hidden; }
.hero::after {
  /* ambient red light pool, behaves like emitted light — gently breathes */
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgba(229,52,42,0.16) 0%, rgba(122,26,31,0.06) 38%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  transform-origin: 70% 30%;
  will-change: opacity, transform;
  animation: heroGlow 9s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: var(--rail-w) 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero__grid > * { min-width: 0; }
.hero__body { padding-block: 2rem; min-width: 0; }
.hero h1 { margin: 1.2rem 0; font-size: clamp(2.2rem, 5.2vw, 4rem); overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.hero h1 .em { color: var(--signal); }
.hero__sub { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--bone); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* spec rail (left margin wavelength index) */
.rail {
  z-index: var(--z-rail);
  align-self: stretch;
  display: flex; flex-direction: column;
  justify-content: center; gap: 1.1rem;
  border-right: 1px solid var(--oxblood-dim);
  padding-right: 1rem;
}
.rail__item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-dim);
  display: flex; align-items: center; gap: 0.5rem;
  letter-spacing: 0.04em;
}
.rail__item::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--nir);
}
.rail__item.is-active { color: var(--signal-soft); }
.rail__item.is-active::before { background: var(--signal); box-shadow: 0 0 8px rgba(229,52,42,0.8); }

/* ============================================================
   VERIFIED READOUT (signature component)
   ============================================================ */
.readout {
  background: linear-gradient(180deg, var(--carbon) 0%, #101013 100%);
  border: 1px solid var(--oxblood);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.03);
}
.readout__top {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate-dim);
  padding-bottom: 0.9rem; margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--oxblood-dim);
}
.readout__live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--signal-soft); }
.readout__live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(229,52,42,0.7);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,52,42,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(229,52,42,0); }
}
.readout__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0;
  border-bottom: 1px dashed var(--oxblood-dim);
}
.readout__row:last-child { border-bottom: 0; padding-bottom: 0; }
.readout__label {
  font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate);
}
.readout__value {
  font-family: var(--font-mono);
  font-size: 1.04rem; font-weight: 500;
  color: var(--bone);
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-align: right;
}
.readout__value .ph { color: var(--signal-soft); letter-spacing: 0.04em; }
.tick {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  color: #6fd08a;
}
.tick svg { width: 13px; height: 13px; }
.readout__note {
  margin: 0.9rem 0 0; padding-top: 0.8rem;
  border-top: 1px solid var(--oxblood-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.04em; line-height: 1.5;
  color: var(--slate-dim);
}

/* ============================================================
   GRID / CARDS
   ============================================================ */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--carbon);
  border: 1px solid var(--oxblood-dim);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  position: relative;
}
.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 1.04rem; color: var(--slate-2); line-height: 1.62; }
.card__num {
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--signal-soft);
  letter-spacing: 0.1em; margin-bottom: 1.1rem;
}
.card__icon {
  width: 42px; height: 42px; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--oxblood); border-radius: var(--radius);
  color: var(--signal-soft);
}
.card__icon svg { width: 22px; height: 22px; }

/* interactive product card */
.card--link { display: flex; flex-direction: column; }
.card--link:hover { border-color: var(--signal); transform: translateY(-4px); background: var(--carbon-2); }
.card--link .card__more {
  margin-top: auto; padding-top: 1.3rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em;
  color: var(--bone);
}
.card--link .card__more svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card--link:hover .card__more { color: var(--signal-soft); }
.card--link:hover .card__more svg { transform: translateX(5px); }
.card__band {
  height: 2px; background: var(--spectrum);
  margin: -1.8rem -1.8rem 1.6rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0; transition: opacity 0.25s ease;
}
.card--link:hover .card__band { opacity: 1; }
.card__wl {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--slate-dim);
  margin-top: 0.8rem; letter-spacing: 0.04em;
}

/* feature card w/ readout flavor */
.card--feature h3 { display: flex; align-items: center; gap: 0.6rem; }

/* ============================================================
   PROCESS — numbered (used where order is real)
   ============================================================ */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.4rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--oxblood-dim);
}
.step:last-child { border-bottom: 1px solid var(--oxblood-dim); }
.step__n {
  font-family: var(--font-mono);
  font-size: 1.5rem; font-weight: 600;
  color: var(--signal);
  line-height: 1;
}
.step__n span { display: block; font-size: 0.64rem; color: var(--slate-dim); letter-spacing: 0.18em; margin-top: 0.4rem; }
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.98rem; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--slate);
}
.trust li { display: inline-flex; align-items: center; gap: 0.6rem; }
.trust li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 8px rgba(229,52,42,0.6);
}

/* ============================================================
   AUDIENCE / TAG LIST
   ============================================================ */
.tags { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.tags li {
  font-family: var(--font-mono); font-size: 0.84rem;
  color: var(--bone);
  border: 1px solid var(--oxblood);
  background: var(--carbon);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
}

/* ============================================================
   SPLIT (text + readout) blocks
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--narrow { grid-template-columns: 1.2fr 0.8fr; }

/* ============================================================
   SPEC TABLE (placeholder)
   ============================================================ */
.spec-wrap { overflow-x: auto; border: 1px solid var(--oxblood); border-radius: var(--radius-lg); }
.spec-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-mono); font-size: 0.86rem;
  min-width: 720px;
}
.spec-table th, .spec-table td {
  text-align: left; padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--oxblood-dim);
}
.spec-table thead th {
  background: var(--carbon);
  color: var(--slate); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem;
}
.spec-table tbody td { color: var(--slate); }
.spec-table tbody td:first-child { color: var(--bone); }
.spec-table .ph { color: var(--signal-soft); }
.spec-table tbody tr:hover { background: var(--carbon); }
.spec-note {
  margin-top: 0.9rem; font-family: var(--font-mono);
  font-size: 0.76rem; color: var(--slate-dim);
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip { text-align: center; }
.cta-strip .container { max-width: 720px; }
.cta-strip h2 { margin-bottom: 1rem; }
.cta-strip p { margin: 0 auto 2rem; }
.cta-strip__inner {
  border: 1px solid var(--oxblood);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(229,52,42,0.10) 0%, transparent 55%),
    var(--carbon);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}

/* ============================================================
   FORM
   ============================================================ */
.form-grid { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-family: var(--font-mono); font-size: 0.76rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate);
}
.field .req { color: var(--signal-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--oxblood);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(229,52,42,0.22);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239A9AA2' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-success {
  display: none;
  border: 1px solid #2f6b43;
  background: rgba(47,107,67,0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--bone);
}
.form-success.is-visible { display: block; }
.form-success h3 { color: var(--bone); margin-bottom: 0.5rem; }
.form-aside {
  border: 1px solid var(--oxblood);
  border-radius: var(--radius-lg);
  background: var(--carbon);
  padding: 1.8rem;
}
.form-aside h3 { margin-bottom: 0.8rem; }
.form-aside .contact-line {
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--bone);
  margin-top: 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.form-aside .contact-line svg { width: 16px; height: 16px; color: var(--signal-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--oxblood-dim); background: var(--ink-2); padding-block: 3.5rem 2rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--oxblood-dim);
}
.footer__brand .brand { margin-bottom: 1rem; }
.footer__tag { font-family: var(--font-mono); font-size: 0.84rem; color: var(--slate); max-width: 34ch; }
.footer__col h4 { color: var(--slate); font-family: var(--font-mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.14em; margin-bottom: 1rem; text-transform: uppercase; }
.footer__col a { display: block; color: var(--slate); font-size: 0.94rem; padding: 0.35rem 0; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--bone); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.8rem;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate-dim);
}
.footer__legal { max-width: 60ch; }

/* ============================================================
   UTILITIES
   ============================================================ */
.disclaimer {
  font-style: italic; font-size: 0.92rem; color: var(--slate);
  border-left: 2px solid var(--oxblood); padding-left: 1rem;
  max-width: 64ch;
}
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--signal); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--signal-soft);
  outline-offset: 2px;
  border-radius: 2px;
}

/* reveal-on-load / scroll */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .rail { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--oxblood-dim); padding: 0 0 1rem; gap: 1.2rem; }
  .split, .split--narrow { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--carbon); border-bottom: 1px solid var(--oxblood);
    padding: 1rem; gap: 0.2rem; z-index: var(--z-menu);
  }
  .nav__dd { width: 100%; }
  .nav__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0.2rem 0 0.2rem 1rem;
    display: none; min-width: 0;
  }
  .nav__dd.is-open .nav__menu { display: block; }
  .nav__link, .nav__dd-toggle { width: 100%; text-align: left; justify-content: space-between; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
}

/* ============================================================
   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 { opacity: 1; transform: none; }
}
