/* ==========================================================================
   Borja Webs — single-page landing site
   Retro-future treatment of the original 2009 brand: the navy serif
   wordmark, glossy globe, and source-code mural carried forward — the
   mural now luminous and in motion over a deep-navy hero.

   Wordmark type: Playfair Display — a transitional display face with the
   large x-height and firm presence the 2009 original demands, but with
   more character than a system serif. Playfair Display SC (a true
   small-caps companion family) sets the tagline, matching the original
   artwork's genuine small caps.
   ========================================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display SC";
  src: url("../fonts/playfair-display-sc-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1d3760;
  --navy-deep: #142743;
  --night: #0e1e38;        /* hero backdrop */
  --steel: #4d6890;
  --mist: #8fa5c2;
  --glow: #66d4f0;         /* retro-future accent */
  --ink: #33415a;
  --ink-soft: #4a5a75;
  --paper: #ffffff;
  --paper-tint: #f3f6fa;
  --line: #dde5ef;
  --focus: #2f5fa3;

  --serif: "Playfair Display", Georgia, "Palatino Linotype", "Times New Roman", serif;
  --serif-sc: "Playfair Display SC", "Playfair Display", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ------------------------------ Base ------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }

a { color: var(--steel); }
a:hover { color: var(--navy); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  padding: .6em 1em;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

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

/* ----------------------------- Buttons ---------------------------- */

.btn {
  display: inline-block;
  padding: .85em 1.9em;
  border-radius: 6px;
  border: 1.5px solid var(--navy);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}
.btn-ghost:hover {
  background: rgba(29, 55, 96, .07);
  color: var(--navy);
}

.btn-small { padding: .55em 1.2em; font-size: .85rem; }
.btn-block { width: 100%; font-size: 1.02rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ----------------------------- Header ----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--serif);
  font-weight: 100;
  font-size: 1.35rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.5vw, 1.8rem);
}

.nav-link {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav-link:hover { color: var(--navy); }

/* --------------------------- Globe mark --------------------------- */
/* The 2009 glossy globe (PNG with its own soft shadow) stands in for
   the "o" of Borja. Sized against Georgia-class metrics: sphere roughly
   x-height-plus-overshoot, dipping just below the baseline. */

.globe {
  display: inline-block;
  width: .85em;
  height: .85em;
  object-fit: contain;
  vertical-align: -0.145em;
  margin: 0 .01em;
}

/* ------------------------------ Hero ------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: min(90vh, 60rem);
  padding: 6.5rem 1.5rem 6rem;
  text-align: center;
  background:
    radial-gradient(ellipse 120% 80% at 50% 110%, #16305a 0%, rgba(22, 48, 90, 0) 55%),
    linear-gradient(180deg, #0c1a31 0%, #102647 55%, #0e2140 100%);
  color: #e8f0fb;
}

/* Code mural — luminous, slowly scrolling source text */
.code-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  gap: 6rem;
  padding: 0 2rem;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: #9cc2ee;
  opacity: .17;
  text-shadow: 0 0 12px rgba(120, 180, 255, .55);
  user-select: none;
  pointer-events: none;
  text-align: left;
}
.code-col { flex: none; }
.code-col pre { margin: 0; padding-bottom: 3rem; }

/* JS duplicates each column's content, then this loops seamlessly */
@keyframes code-drift {
  to { transform: translateY(-50%); }
}
.code-col.is-animated {
  animation: code-drift var(--drift, 160s) linear infinite;
  will-change: transform;
}
.code-col:nth-child(1) { --drift: 150s; }
.code-col:nth-child(2) { --drift: 200s; animation-delay: -70s; }
.code-col:nth-child(3) { --drift: 175s; animation-delay: -30s; }

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 58% 48% at 50% 42%,
      rgba(96, 150, 230, .32) 0%,
      rgba(58, 102, 176, .14) 45%,
      rgba(14, 30, 56, 0) 75%);
  pointer-events: none;
}

/* Live-typing terminal pane (filled by JS; empty and invisible without it) */
.code-live {
  position: absolute;
  left: clamp(1rem, 4vw, 3.5rem);
  bottom: 2.2rem;
  z-index: 2;
  margin: 0;
  max-width: 44ch;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: left;
  color: #a9d2ff;
  opacity: .55;
  text-shadow: 0 0 10px rgba(130, 190, 255, .6);
  user-select: none;
  pointer-events: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code-cursor {
  color: var(--glow);
  animation: cursor-blink 1.1s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

/* Faint CRT scanlines over the mural (beneath the content layer) */
.crt {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(0deg,
      rgba(5, 12, 26, .20) 0 1px,
      transparent 1px 3px);
  opacity: .35;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 56rem;
  animation: rise .8s ease-out both;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 100;
  font-size: clamp(3.2rem, 10vw, 6.4rem);
  line-height: 1.05;
  color: #f0f5fc;
  letter-spacing: .002em;
  text-shadow: 0 2px 28px rgba(100, 160, 255, .30);
}

.tagline {
  margin-top: 1rem;
  font-family: var(--serif-sc);
  font-weight: 400;
  font-size: clamp(1rem, 2.7vw, 1.5rem);
  letter-spacing: .3em;
  text-indent: .3em; /* balances trailing letter-spacing when centered */
  color: #a9c6ea;
}

.hero-est {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--glow);
  opacity: .85;
}

.lede {
  max-width: 42rem;
  margin: 2.4rem auto 0;
  font-size: 1.08rem;
  color: #b8cbe4;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.3rem;
}

/* Button treatments on the dark hero */
.hero .btn-primary {
  background: #e9f2fd;
  border-color: #e9f2fd;
  color: #12233f;
}
.hero .btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0c1a31;
  box-shadow: 0 0 0 1px rgba(140, 200, 255, .55), 0 6px 28px rgba(90, 160, 255, .35);
}
.hero .btn-ghost {
  border-color: rgba(150, 190, 235, .55);
  color: #d6e6f8;
}
.hero .btn-ghost:hover {
  background: rgba(140, 190, 250, .1);
  border-color: var(--glow);
  color: #ffffff;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------- Bands ------------------------------ */

.band {
  padding: clamp(3.8rem, 8vw, 5.8rem) 1.5rem;
}
.band-inner {
  max-width: 68rem;
  margin: 0 auto;
}
.band-tint {
  background: var(--paper-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Section labels styled as code comments — the dev-shop thread that ties
   the light sections back to the mural */
.eyebrow {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before { content: "// "; opacity: .65; }

.band h2 {
  margin: .4rem 0 .9rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 2.6rem);
  line-height: 1.18;
  color: var(--navy);
}

.section-lead {
  max-width: 46rem;
  color: var(--ink-soft);
}

/* ------------------------------ Cards ----------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.9rem 1.7rem;
  box-shadow: 0 1px 2px rgba(20, 39, 67, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #a9c8e8;
  box-shadow: 0 12px 30px rgba(29, 55, 96, .13);
}

.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: .6rem;
}

.card p {
  font-size: .95rem;
  color: var(--ink-soft);
}

.svc-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  color: var(--navy);
}
.svc-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------- Process ---------------------------- */

.band-dark {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 4px),
    var(--navy-deep);
  color: #e8eef7;
}
.band-dark .eyebrow { color: var(--mist); }
.band-dark h2 { color: #fff; }

.process-grid {
  list-style: none;
  margin: 2.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.2rem 2rem;
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--mist);
}

.process-grid h3 {
  margin: .55rem 0 .35rem;
  font-size: 1.02rem;
  letter-spacing: .05em;
  color: #fff;
}

.process-grid p {
  font-size: .88rem;
  color: #b9c7dc;
}

/* ------------------------------ FAQ --------------------------------- */

.faq-list {
  margin-top: 2rem;
  display: grid;
  gap: .75rem;
  max-width: 46rem;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--paper-tint);
  color: var(--steel);
  font-size: 1.05rem;
  transition: transform .18s ease;
}
.faq-item[open] summary::before {
  content: "−";
  transform: rotate(180deg);
}

.faq-item p {
  margin: .9rem 0 .1rem 2.1rem;
  color: var(--ink-soft);
  font-size: .96rem;
}

/* --------------------------- Intake form --------------------------- */

.start-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.check-list {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink);
  font-size: .98rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: var(--navy);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M4 12.5l5 5L20 6.5"/></svg>') center / 70% no-repeat, linear-gradient(#000, #000);
  -webkit-mask-composite: destination-out;
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M4 12.5l5 5L20 6.5"/></svg>'), linear-gradient(#000, #000);
  mask-size: 70%, auto;
  mask-repeat: no-repeat, no-repeat;
  mask-composite: exclude;
}

.intake-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: 0 12px 32px rgba(20, 39, 67, .09);
  transition: opacity .25s ease, transform .25s ease;
}
.intake-card.is-hidden {
  opacity: 0;
  transform: translateY(6px);
}
.intake-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field { margin-bottom: 1.15rem; min-width: 0; }

.field label,
.field legend {
  display: block;
  margin-bottom: .4rem;
  padding: 0;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #3c4c66;
}

.req { color: #a33b3b; }
.opt { font-weight: 400; color: var(--steel); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: .68em .8em;
  border: 1px solid #7e8ea5;
  border-radius: 6px;
  background: #fbfcfe;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 95, 163, .16);
}
.field input[type="radio"]:focus-visible,
.field input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

fieldset.field {
  border: 0;
  margin: 0 0 1.15rem;
  padding: 0;
}

/* .field .choice outranks the .field label defaults above */
.field .choice {
  display: flex;
  align-items: baseline;
  gap: .55em;
  font-size: .93rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: .35rem;
  cursor: pointer;
}
.choice input {
  accent-color: var(--navy);
  transform: translateY(.1em);
  flex: none;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .1rem .9rem;
}

.form-note {
  margin-top: .85rem;
  font-size: .84rem;
  color: var(--ink-soft);
  text-align: center;
}

.field-error {
  display: block;
  margin-top: .35rem;
  font-size: .82rem;
  color: #a33b3b;
  line-height: 1.3;
}

.field.has-error input[type="text"],
.field.has-error input[type="email"],
.field.has-error input[type="tel"],
.field.has-error select,
.field.has-error textarea {
  border-color: #a33b3b;
  box-shadow: 0 0 0 2px rgba(163, 59, 59, .12);
}

fieldset.field.has-error {
  border-left: 2px solid #a33b3b;
  padding-left: .75rem;
  border-radius: 2px;
}

.intake-thanks h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: .8rem;
}
.intake-thanks p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.intake-restore-wrap {
  margin-top: 1.4rem;
}
.intake-error h3 { color: #8b2020; }
.intake-error p { color: var(--ink); }

.form-status {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-left: 3px solid var(--navy);
  background: var(--paper-tint);
  border-radius: 0 6px 6px 0;
  font-size: .9rem;
  color: var(--ink);
}

/* ----------------------------- Footer ----------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: #c9d6ea;
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}

.wordmark-footer {
  font-family: var(--serif);
  font-weight: 100;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  color: #fff;
}

.tagline-footer {
  margin-top: .6rem;
  font-family: var(--serif-sc);
  font-weight: 400;
  letter-spacing: .3em;
  text-indent: .3em;
  font-size: clamp(.8rem, 1.8vw, .95rem);
  color: var(--mist);
}

.footer-meta {
  max-width: 68rem;
  margin: 2.6rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  font-size: .82rem;
  color: #92a7c4;
}

.footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1.6rem auto 0;
}
.footer-badges img {
  display: block;
  opacity: .75;
  transition: opacity .15s ease;
}
.footer-badges a:hover img,
.footer-badges a:focus-visible img {
  opacity: 1;
}

.footer-links {
  margin-top: 1.4rem;
  font-size: .82rem;
  color: #92a7c4;
}
.footer-links a { color: inherit; }
.footer-links a:hover { color: #fff; }

/* --------------------------- Content pages -------------------------- */
/* Shared prose treatment for standalone content pages: a single H1
   page title in a .band, followed by .article-content with H2
   subsections. Used by the accessibility statement and the "Behind
   the Scenes" articles — keep new content pages on this pattern
   rather than hand-rolling page-specific styles. */

.band h1 {
  margin: .4rem 0 .9rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 2.6rem);
  line-height: 1.18;
  color: var(--navy);
}

.article-content { max-width: 46rem; }
.article-content h2 {
  margin: 2rem 0 .6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
}
.article-content p { margin: 0 0 1rem; }
.article-content ul,
.article-content ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.article-content li { margin-bottom: .4rem; }

.article-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--steel);
}

/* ------------------------------ 404 ---------------------------------- */

.four-oh-four {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 120% 80% at 50% 110%, #16305a 0%, rgba(22, 48, 90, 0) 55%),
    linear-gradient(180deg, #0c1a31 0%, #102647 55%, #0e2140 100%);
  color: #e8f0fb;
}
.four-oh-four .code-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  gap: 6rem;
  padding: 0 2rem;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: #9cc2ee;
  opacity: .12;
  text-shadow: 0 0 12px rgba(120, 180, 255, .55);
  user-select: none;
  pointer-events: none;
  text-align: left;
}
.four-oh-four .code-bg pre { margin: 0; }
.four-oh-four .crt {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(0deg,
      rgba(5, 12, 26, .20) 0 1px,
      transparent 1px 3px);
  opacity: .35;
  pointer-events: none;
}
.four-oh-four .hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 58% 48% at 50% 42%,
      rgba(96, 150, 230, .32) 0%,
      rgba(58, 102, 176, .14) 45%,
      rgba(14, 30, 56, 0) 75%);
  pointer-events: none;
}
.four-oh-four-inner {
  position: relative;
  z-index: 2;
  max-width: 36rem;
}
.four-oh-four-code {
  font-family: var(--mono);
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 600;
  line-height: 1;
  color: var(--glow);
  opacity: .7;
  text-shadow: 0 0 30px rgba(102, 212, 240, .4);
}
.four-oh-four h1 {
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #f0f5fc;
}
.four-oh-four p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: #b8cbe4;
}
.four-oh-four .btn { margin-top: 2rem; }
.four-oh-four .btn-primary {
  background: #e9f2fd;
  border-color: #e9f2fd;
  color: #12233f;
}
.four-oh-four .btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0c1a31;
  box-shadow: 0 0 0 1px rgba(140, 200, 255, .55), 0 6px 28px rgba(90, 160, 255, .35);
}

/* --------------------------- Responsive ---------------------------- */

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

@media (max-width: 860px) {
  .code-live { display: none; }
}

@media (max-width: 640px) {
  .nav-link { display: none; }
  .hero-est { font-size: .72rem; letter-spacing: .05em; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .choice-grid { grid-template-columns: 1fr; }
  .code-bg { gap: 3rem; font-size: 11.5px; }
  .footer-meta { justify-content: center; text-align: center; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content { animation: none; }
  .btn { transition: none; }
  .card { transition: none; }
  .card:hover { transform: none; }
  .code-col.is-animated { animation: none; }
  .code-cursor { animation: none; }
  .intake-card { transition: none; }
}
