/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg:           #000008;
  --border:       rgba(255,255,255,0.07);
  --border-hi:    rgba(255,255,255,0.13);
  --surface:      rgba(255,255,255,0.030);
  --surface-hi:   rgba(255,255,255,0.052);
  --text:         #eef2f8;
  --muted:        rgba(238,242,248,0.50);
  --faint:        rgba(238,242,248,0.26);
  --subtle:       rgba(238,242,248,0.12);
  --cyan:         #22d3ee;
  --cyan-glow:    rgba(34,211,238,0.18);
  --gold:         #c9a55c;
  --gold-dim:     rgba(201,165,92,0.22);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom cursor only activates once JS confirms it's running */
body.js-ready { cursor: none; }

/*
  Browsers override cursor:none with cursor:text on inputs/textareas
  and cursor:pointer on buttons/links — causing the OS cursor to bleed
  back through in those elements. Force none on everything explicitly.
*/
body.js-ready *,
body.js-ready input,
body.js-ready textarea,
body.js-ready button,
body.js-ready select,
body.js-ready a { cursor: none !important; }

::selection {
  background: rgba(34,211,238,0.20);
  color: var(--text);
}

/* ─── Custom Cursor ─────────────────────────────────────────────────────── */
/*
  Two-part precision cursor:
  · dot  — 4px white disc, snaps instantly, mix-blend-mode:difference
  · halo — 38px thin ring, springs 10% per frame, same blend
  difference blend = white on dark, auto-black on light — works everywhere
*/
.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: transform 0.18s cubic-bezier(.16,.84,.24,1),
              opacity  0.22s ease;
  will-change: left, top;
}

.cursor-halo {
  position: fixed;
  width: 26px;
  height: 26px;
  border: 0.65px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width  0.55s cubic-bezier(.16,.84,.24,1),
              height 0.55s cubic-bezier(.16,.84,.24,1),
              border-color 0.35s ease,
              border-width 0.35s ease,
              opacity      0.28s ease;
  will-change: left, top;
}

/* Hover state: ring contracts, dot fades — feels like locking on */
body.cursor-hover .cursor-dot {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}
body.cursor-hover .cursor-halo {
  width: 22px;
  height: 22px;
  border-color: rgba(255,255,255,0.90);
  border-width: 1.2px;
}

/* Clicking: brief inward pulse */
body.cursor-click .cursor-halo {
  width: 14px;
  height: 14px;
  border-color: rgba(255,255,255,1.0);
  border-width: 1.5px;
  transition-duration: 0.08s;
}

body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-halo { opacity: 0; }

/* ─── Three.js Stage ────────────────────────────────────────────────────── */
.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#three-root {
  position: absolute;
  inset: 0;
}

#three-root canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  /* Feather the left edge (where hero text sits) and the bottom */
  background:
    radial-gradient(ellipse at 0% 50%,   rgba(0,0,8,0.55) 0%,  transparent 45%),
    radial-gradient(ellipse at 50% 108%, rgba(0,0,8,0.92) 0%,  transparent 52%),
    radial-gradient(ellipse at 50% 0%,   rgba(0,0,8,0.40) 0%,  transparent 38%);
  pointer-events: none;
  z-index: 1;
}

.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 2;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 50%, black 5%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 50%, black 5%, transparent 75%);
}

/* ─── Site Header / Nav ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition:
    background 0.6s ease,
    backdrop-filter 0.6s ease,
    box-shadow 0.6s ease;
}

.site-header.scrolled {
  background: rgba(6,8,16,0.80);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 var(--border);
}

.nav-wrap {
  width: min(100% - 40px, 1440px);
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand / Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.35s ease, filter 0.35s ease;
}
.brand:hover {
  opacity: 0.85;
  filter: drop-shadow(0 0 10px rgba(34,211,238,0.35));
}

/* The logo icon in the nav — pinned to 30px tall, auto width */
.brand-logo-icon {
  display: block;
  height: 39px !important;
  width: auto !important;
  max-height: 39px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(1.20) drop-shadow(0 0 4px rgba(34,211,238,0.20));
  transition: filter 0.4s ease;
}
.brand:hover .brand-logo-icon {
  filter: brightness(1.45)
          drop-shadow(0 0 8px rgba(34,211,238,0.55))
          drop-shadow(0 0 18px rgba(34,211,238,0.20));
}

/* Brand text next to logo */
.brand-text {
  display: inline-block !important;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
  transform: translateY(8px) !important;
}

/* Cyan foliage colour token — alias for theme coherence */
:root {
  --logo-foliage: #22d3ee;   /* matches --cyan; use for thematic accents */
}

/* Nav links */
.nav {
  display: flex;
  gap: 42px;
  align-items: center;
}

.nav-link {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s cubic-bezier(.16,.84,.24,1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* ─── Main ──────────────────────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 5;
}

/* ─── Reveal Animations ─────────────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.95s cubic-bezier(.16,.84,.24,1) var(--d, 0s),
    transform 1.05s cubic-bezier(.16,.84,.24,1) var(--d, 0s);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  width: min(100% - 40px, 1440px);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-inner {
  max-width: 1080px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--faint);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.55;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 8.5vw, 8.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-title .line         { display: block; }
.hero-title .line-accent  { color: var(--cyan); font-style: italic; }
.hero-title .line-muted   { color: var(--muted); }

.hero-copy-block {
  margin-top: 44px;
  max-width: 580px;
}

.hero-copy,
.band-text {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.hero-quote {
  margin-top: 34px;
  padding-left: 18px;
  border-left: 1px solid rgba(201,165,92,0.30);
  max-width: 500px;
}

.hero-quote p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1.5;
  margin-bottom: 10px;
}

.hero-quote cite {
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--faint);
  font-style: normal;
}

/* ─── Marquee ───────────────────────────────────────────────────────────── */
.marquee-strip {
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.010);
}

.marquee-track {
  display: flex;
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  white-space: nowrap;
  flex-shrink: 0;
  animation: marquee-scroll 36s linear infinite;
}

.marquee-inner span {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 16px;
}

.marquee-inner .sep {
  color: var(--subtle);
  padding: 0 2px;
  letter-spacing: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-strip:hover .marquee-inner {
  animation-play-state: paused;
}

/* ─── Bands ─────────────────────────────────────────────────────────────── */
.band {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  /* Dark backing so content reads over the fixed 3D scene */
  background: rgba(0, 1, 6, 0.84);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.band-inner {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
}

.band-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--faint);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-kicker::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.45;
  flex-shrink: 0;
}

.band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.9rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 22px;
}

.band-text {
  max-width: 56ch;
}

/* ─── Glass Cards (System Windows) ─────────────────────────────────────── */
/* ─── Glassmorphism panels ───────────────────────────────────────────────── */
/*
  True glass on a dark field:
  · Three-stop gradient tint — very low opacity so the starfield shows through
  · High-blur backdrop-filter with a saturation lift
  · Top-edge refraction line (brightest) + bottom-edge whisper
  · Cyan bloom on hover — picks up the jellyfish palette
*/
.system-window {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    148deg,
    rgba(255,255,255,0.068) 0%,
    rgba(255,255,255,0.022) 48%,
    rgba(255,255,255,0.042) 100%
  );
  /* Distinct top rim — glass refracts light most at its edge */
  border-top:    1px solid rgba(255,255,255,0.18);
  border-right:  1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  border-left:   1px solid rgba(255,255,255,0.07);
  border-radius: inherit; /* let subclasses control radius */
  backdrop-filter: blur(36px) saturate(1.55) brightness(1.04);
  -webkit-backdrop-filter: blur(36px) saturate(1.55) brightness(1.04);
  box-shadow:
    0 2px  8px  rgba(0,0,0,0.18),    /* tight contact shadow */
    0 16px 48px rgba(0,0,0,0.42),    /* mid depth */
    0 40px 90px rgba(0,0,0,0.30),    /* long ambient */
    inset 0  1px 0 rgba(255,255,255,0.14),   /* top inner rim */
    inset 0 -1px 0 rgba(255,255,255,0.03);   /* bottom inner whisper */
  transition:
    border-color 0.45s ease,
    box-shadow   0.50s ease,
    background   0.45s ease;
  will-change: transform, opacity;
}

/* Refraction shimmer across top edge */
.system-window::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.08) 0%,
    transparent 45%
  );
  pointer-events: none;
  z-index: 0;
}

/* Subtle bottom-edge depth line */
.system-window::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.06) 40%,
    rgba(255,255,255,0.06) 60%,
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

/* Hover: deepen shadow + soft cyan bloom from within */
.system-window:hover {
  border-top-color:    rgba(255,255,255,0.28);
  border-right-color:  rgba(255,255,255,0.11);
  border-bottom-color: rgba(255,255,255,0.08);
  border-left-color:   rgba(255,255,255,0.11);
  box-shadow:
    0 2px  8px  rgba(0,0,0,0.20),
    0 20px 60px rgba(0,0,0,0.52),
    0 50px 100px rgba(0,0,0,0.35),
    inset 0  1px 0 rgba(255,255,255,0.20),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    inset 0  0  80px rgba(34,211,238,0.032); /* cyan bloom */
}

/* ─── Reveal Panel (Position card) ─────────────────────────────────────── */
.reveal-panel {
  padding: 34px;
  border-radius: 26px;
  opacity: 0;
  transform: translateY(44px) scale(0.962);
  filter: blur(14px);
  transition:
    opacity 1.05s cubic-bezier(.16,.84,.24,1),
    transform 1.15s cubic-bezier(.16,.84,.24,1),
    filter 1.05s cubic-bezier(.16,.84,.24,1),
    box-shadow 0.6s ease;
}

.reveal-panel.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.panel-label {
  font-size: 0.60rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.panel-body {
  color: var(--muted);
  line-height: 1.62;
  font-size: 0.94rem;
  position: relative;
  z-index: 2;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.90rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
  transition: gap 0.35s cubic-bezier(.16,.84,.24,1);
}

.panel-link:hover { gap: 14px; }

.panel-link .arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(.16,.84,.24,1);
}

.panel-link:hover .arrow { transform: translateX(4px); }

/* ─── Focus Sequence ────────────────────────────────────────────────────── */
.focus-sequence {
  position: relative;
  z-index: 5;
  padding: 8vh 0 14vh;
  background: rgba(0, 1, 6, 0.84);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.focus-window {
  max-width: 880px;
  margin: 0 auto 15vh;
  padding: 42px 44px;
  border-radius: 28px;
  opacity: 0;
  transform: translateY(42px) scale(0.968);
  filter: blur(12px);
  transition:
    opacity 0.95s cubic-bezier(.16,.84,.24,1) var(--d, 0s),
    transform 1.05s cubic-bezier(.16,.84,.24,1) var(--d, 0s),
    filter 0.95s cubic-bezier(.16,.84,.24,1) var(--d, 0s);
}

.focus-window.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.focus-inner {
  display: flex;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.focus-index {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 0.95;
  color: var(--subtle);
  flex-shrink: 0;
  width: 88px;
  padding-top: 4px;
}

.focus-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.08;
}

.focus-content p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
  max-width: 52ch;
}

/* ─── Thinking ──────────────────────────────────────────────────────────── */
.thinking-band {
  border-top: 1px solid var(--border);
}

.thinking-block {
  max-width: 980px;
  margin-bottom: 64px;
}

.thinking-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  font-weight: 300;
  line-height: 1.10;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 26px;
}

.thinking-text { max-width: 66ch; }

/* ─── Philosophical Quote ───────────────────────────────────────────────── */
.phil-quote {
  margin: 0;
  padding: 44px 0 0;
  border-top: 1px solid var(--border);
  max-width: 740px;
}

.phil-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  line-height: 1.42;
  margin-bottom: 16px;
}

.phil-quote blockquote::before { content: '\201C'; }
.phil-quote blockquote::after  { content: '\201D'; }

.phil-quote figcaption {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ─── Contact ───────────────────────────────────────────────────────────── */
.contact-band {
  min-height: 62vh;
  border-top: 1px solid var(--border);
}

.contact-statement {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 18px 0 28px;
  line-height: 1.15;
}

.legal-text {
  max-width: 54ch;
  font-size: 0.86rem;
  color: var(--faint);
  line-height: 1.68;
}

/* ─── Contact Grid & Copy ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: start;
}

.contact-copy {
  padding-top: 8px;
}

.contact-detail {
  margin: 0 0 32px;
  max-width: 44ch;
}

/* ─── Contact Form Panel ────────────────────────────────────────────────── */
.contact-panel {
  border-radius: 26px;
  padding: 42px 40px 40px;
}

/* ─── Form Layout ───────────────────────────────────────────────────────── */
.contact-form {
  position: relative;
  z-index: 2;       /* sit above .system-window::before / ::after overlays */
}

.form-row {
  margin-bottom: 26px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Labels ────────────────────────────────────────────────────────────── */
.field-label {
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1;
  transition: color 0.3s ease;
}

.form-field:focus-within .field-label {
  color: var(--muted);
}

.field-req {
  color: rgba(34,211,238,0.50);
  font-size: 0.65rem;
  margin-left: 1px;
}

/* ─── Inputs & Textarea ─────────────────────────────────────────────────── */
.field-input {
  width: 100%;
  background: rgba(255,255,255,0.025);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  border-radius: 0;
  padding: 11px 0 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.5;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.35s ease,
    box-shadow   0.35s ease,
    background   0.35s ease;
}

/* Subtle underline glow on focus */
.field-input:focus {
  border-bottom-color: var(--cyan);
  background: rgba(34,211,238,0.018);
  box-shadow: 0 1px 0 0 rgba(34,211,238,0.35);
}

/* Autofill — override browser's harsh default */
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(0,0,8,0.95) inset;
  -webkit-text-fill-color: var(--text);
  transition: background-color 9999s ease;
}

/* Textarea */
.field-textarea {
  resize: none;
  padding-top: 10px;
  line-height: 1.65;
  min-height: 120px;
}

/* Validation: invalid field */
.field-input.field-invalid {
  border-bottom-color: rgba(201,165,92,0.60);
}

/* ─── Inline field errors ───────────────────────────────────────────────── */
.field-error {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: transparent;
  line-height: 1;
  height: 0;
  overflow: hidden;
  transition:
    color   0.3s ease,
    height  0.3s ease;
}

.field-error.visible {
  color: rgba(201,165,92,0.80);
  height: 1em;
  margin-top: -4px;
}

/* ─── Honeypot — visually and physically hidden ─────────────────────────── */
.hp-field {
  position: absolute;
  left: -9999px;
  top:  -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

/* ─── Turnstile wrapper ─────────────────────────────────────────────────── */
.turnstile-wrap {
  margin: 8px 0 22px;
  min-height: 64px;   /* reserves space for the widget once loaded */
}

/* ─── Status messages ───────────────────────────────────────────────────── */
.form-status {
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 12px 0;
  border-top: 1px solid transparent;
  transition: opacity 0.4s ease;
}

.form-success {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--cyan);
  border-top-color: rgba(34,211,238,0.14);
  letter-spacing: 0.01em;
}

.form-error {
  color: rgba(201,165,92,0.80);
  border-top-color: rgba(201,165,92,0.14);
}

/* ─── Actions row ───────────────────────────────────────────────────────── */
.form-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 6px;
}

.form-req-note {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--subtle);
}

/* ─── Submit button ─────────────────────────────────────────────────────── */
.form-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 34px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.40s ease,
    color        0.40s ease,
    box-shadow   0.40s ease,
    background   0.40s ease;
}

.form-submit:hover:not(:disabled) {
  border-color: rgba(34,211,238,0.55);
  color: var(--cyan);
  box-shadow: 0 0 22px rgba(34,211,238,0.08);
  background: rgba(34,211,238,0.03);
}

.form-submit:disabled {
  opacity: 0.50;
  cursor: not-allowed;
}

/* Loading state — swap label text */
.btn-sending { display: none; }

.form-submit.btn-loading .btn-label  { display: none; }
.form-submit.btn-loading .btn-sending {
  display: inline;
  animation: pulse-text 1.4s ease-in-out infinite;
}

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

/* ─── Contact responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

@media (max-width: 580px) {
  .contact-panel { padding: 30px 24px 28px; }
  .form-actions  { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ─── Marquee backing ────────────────────────────────────────────────────── */
.marquee-strip {
  /* already has background, add dark backing */
  background: rgba(0, 1, 6, 0.82) !important;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 5;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  background: rgba(0, 1, 6, 0.94);
}

.footer-inner {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--faint);
  font-weight: 500;
}

.footer-sep {
  font-size: 0.62rem;
  color: var(--subtle);
}

.footer-detail {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--subtle);
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .band-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .reveal-panel {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav { gap: 24px; }
  .nav-link { font-size: 0.82rem; }

  .focus-window {
    padding: 30px 26px;
    margin-bottom: 10vh;
  }

  .focus-inner {
    flex-direction: column;
    gap: 12px;
  }

  .focus-index {
    font-size: 3rem;
    width: auto;
  }

  .thinking-block { margin-bottom: 44px; }
}

@media (max-width: 580px) {
  .nav-wrap,
  .hero,
  .band-inner { width: min(100% - 28px, 1440px); }

  .hero-title { font-size: clamp(3rem, 13vw, 5.5rem); }

  .nav { gap: 18px; }
  .nav-link { font-size: 0.78rem; }

  .reveal-panel { padding: 24px; }

  .focus-window { padding: 24px 20px; }
}

/* ─── Scroll-triggered glow on focus windows ────────────────────────────── */
@keyframes window-glow-in {
  from { box-shadow: 0 28px 70px rgba(0,0,0,0.48), 0 1px 0 rgba(255,255,255,0.08) inset; }
  to   { box-shadow: 0 36px 90px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.10) inset, 0 0 60px rgba(34,211,238,0.05) inset; }
}

.focus-window.in-view {
  animation: window-glow-in 1.5s ease forwards;
}

/* ─── Hero CSS-native animations (no JS dependency) ────────────────────── */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-anim {
  opacity: 0;
  animation: hero-fade-up 0.95s cubic-bezier(.16,.84,.24,1) both;
  animation-delay: var(--d, 0s);
}

/* Cursor dot/halo — default offscreen until JS