/* ══════════════════════════════════════════════════════════
   MOBULA CONSULTING — Shared Stylesheet v4
   Bold redesign: gradient blobs, new palette, glass effects
   ══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --bg: #050508;
  --fg: #e0e0f0;
  --accent: #7B61FF;      /* electric violet — primary */
  --accent2: #4F7CFF;     /* deep blue — secondary */
  --accent3: #00D4AA;     /* teal — tertiary */
  --dim: #2A2A42;
  --muted: #9898B8;
  --deep: #0A0A12;
  --glow: rgba(123, 97, 255, 0.2);
  --glow2: rgba(79, 124, 255, 0.15);
  --glass: rgba(10, 10, 18, 0.65);
  --glass-border: rgba(123, 97, 255, 0.10);
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  max-width: 100%;
  cursor: default;
}

a { color: inherit; }

/* ── SCANLINE OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  z-index: 1000;
  contain: strict;
  backface-visibility: hidden;
}

/* ── GRADIENT BACKGROUND CANVAS ── */
#gradient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── CONTAINER ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1090;
  background: rgba(5, 5, 8, 0.56);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  isolation: isolate;
  border-bottom: 1px solid var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeDown 0.8s ease forwards 0.3s;
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}
nav .logo-mark {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s;
}
nav .logo-mark:hover { color: var(--accent2); }
nav .nav-links a {
  margin-left: 2rem;
  color: var(--muted);
  transition: color 0.3s;
  cursor: pointer;
  text-decoration: none;
}
nav .nav-links a:hover { color: var(--accent); }
nav .nav-links a.active,
nav .nav-links a[aria-current="page"] {
  color: var(--fg);
  position: relative;
}
nav .nav-links a.active::after,
nav .nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent3), var(--accent2));
}
nav.nav-scrolled {
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(20px) saturate(1.45);
  -webkit-backdrop-filter: blur(20px) saturate(1.45);
  border-bottom-color: rgba(79, 124, 255, 0.28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
nav.nav-hidden {
  transform: translateY(calc(-100% - 2px));
}

/* ── HERO ── */
.hero {
  padding: 7rem 0 5rem;
  position: relative;
}

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  padding: 6rem 0 3.5rem;
  border-bottom: 1px solid var(--dim);
  margin-bottom: 4rem;
}
.page-hero .page-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--fg);
  margin-bottom: 1rem;
}
.page-hero .page-title .dot { color: var(--accent); }
.page-hero .page-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
}

/* ── ASCII LOGO ── */
.ascii-logo {
  font-size: clamp(0.45rem, 1.1vw, 0.82rem);
  line-height: 1.25;
  color: var(--accent3);
  white-space: pre;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
  opacity: 0;
  animation: terminalReveal 1.2s steps(20) forwards 0.6s;
  text-shadow: 0 0 30px rgba(0,212,170,0.2), 0 0 80px rgba(0,212,170,0.06);
  position: relative;
}
.ascii-logo .wave-line {
  white-space: pre;
  display: block;
}
.ascii-logo .wave-char {
  display: inline-block;
}
.ascii-logo.wave-active .wave-char {
  animation: charWave 4s ease-in-out infinite;
  will-change: transform;
}

/* ── ASCII RAY ── */
.ascii-ray {
  font-size: clamp(0.6rem, 1.4vw, 1rem);
  line-height: 1.05;
  color: var(--accent);
  white-space: pre;
  display: flex;
  justify-content: center;
  overflow: hidden;
  max-width: 100%;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.6s;
  text-shadow: 0 0 20px rgba(123,97,255,0.25);
  margin-top: 1.5rem;
}

/* ── SUBTITLE & TAGLINE ── */
.subtitle {
  text-align: center;
  margin-top: 3.5rem;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  color: var(--fg);
  opacity: 0;
  animation: fadeUp 1s ease forwards 2s;
  letter-spacing: 0.02em;
}
.subtitle .dot { color: var(--accent2); }

.tagline {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 2.4s;
}

/* ── TERMINAL PROMPT ── */
.terminal-prompt {
  margin-top: 4rem;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 2.8s;
}
.terminal-prompt .line {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
}
.terminal-prompt .cmd { color: var(--accent); }
.terminal-prompt .cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* ── SECTION HEADERS ── */
.section-header {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}
.section-header::before { content: '▸ '; }

/* ── DIVIDER ── */
.divider {
  text-align: center;
  padding: 5rem 0 4rem;
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.4em;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 3s;
  white-space: pre;
  overflow: hidden;
  max-width: 100%;
}

/* ── SERVICE CARDS ── */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 6rem;
}

.service-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  border: 1px solid var(--glass-border);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card:nth-child(1) { animation-delay: 3.2s; }
.service-card:nth-child(2) { animation-delay: 3.4s; }
.service-card:nth-child(3) { animation-delay: 3.6s; }
.service-card:hover {
  background: rgba(123, 97, 255, 0.06);
  border-color: rgba(123, 97, 255, 0.25);
  box-shadow: 0 0 40px rgba(123, 97, 255, 0.08);
}
.service-card:hover .card-index { color: var(--accent); }

/* Service card link overlay (home page) */
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card-index {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  transition: color 0.4s;
}

.card-ascii {
  font-size: 0.55rem;
  line-height: 1.2;
  color: var(--accent3);
  white-space: pre;
  margin-bottom: 1.5rem;
  opacity: 0.7;
  overflow: hidden;
  max-width: 100%;
}

.card-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  color: var(--fg);
  margin-bottom: 0.8rem;
}

.card-desc {
  font-size: 0.72rem;
  line-height: 1.8;
  color: var(--muted);
  flex: 1;
}

.card-detail {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.card-cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}
.card-cta:hover { color: var(--accent2); }
.card-cta::after { content: ' →'; }

/* ── APPROACH / MODEL SECTION ── */
.approach-section {
  padding: 5rem 0;
  border-top: 1px solid var(--dim);
  border-bottom: 1px solid var(--dim);
  margin-bottom: 6rem;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 2rem;
}

.approach-step {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 2rem 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.approach-step:hover {
  border-color: rgba(123, 97, 255, 0.2);
  box-shadow: 0 0 30px rgba(123, 97, 255, 0.05);
}
.approach-step .step-num {
  font-size: 0.6rem;
  color: var(--accent2);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}
.approach-step .step-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.approach-step .step-desc {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── MOBULA RAY SECTION ── */
.ray-section {
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid var(--dim);
  border-bottom: 1px solid var(--dim);
  margin-bottom: 6rem;
}

.ray-ascii-large {
  font-size: clamp(0.9rem, 2vw, 1.6rem);
  line-height: 1.05;
  color: var(--accent);
  white-space: pre;
  display: inline-block;
  text-shadow: 0 0 40px rgba(123,97,255,0.2);
  opacity: 0.8;
  transition: opacity 0.4s;
  text-align: left;
  overflow: hidden;
  max-width: 100%;
}
.ray-ascii-large:hover { opacity: 1; }

.ray-quote {
  margin-top: 2.5rem;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--fg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}
.ray-quote .highlight { color: var(--accent3); }

/* ── ABOUT SECTION ── */
.about-section {
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  font-size: 0.82rem;
  line-height: 2;
  color: var(--muted);
}
.about-text p { margin-bottom: 1.5rem; }
.about-text strong { color: var(--fg); font-weight: 500; }

.about-stats {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--dim);
  font-size: 0.72rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-value { color: var(--accent3); }

/* ── TESTIMONIALS SECTION ── */
.testimonials-section {
  padding: 5rem 0;
  border-top: 1px solid var(--dim);
  border-bottom: 1px solid var(--dim);
  margin-bottom: 6rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  position: relative;
  transition: border-color 0.3s;
}
.testimonial-card:hover {
  border-color: rgba(123, 97, 255, 0.2);
}

.testimonial-quote-mark {
  font-size: 2.5rem;
  color: var(--accent2);
  opacity: 0.3;
  font-family: 'Instrument Serif', serif;
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-attribution {
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.05em;
}
.testimonial-attribution strong {
  color: var(--fg);
  font-weight: 500;
  display: block;
  margin-bottom: 0.2rem;
}
.testimonial-role {
  color: var(--accent);
  font-size: 0.6rem;
}

/* Testimonials empty state */
.testimonials-empty {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--dim);
  margin-top: 2rem;
}
.testimonials-empty p {
  font-size: 0.75rem;
  color: var(--dim);
  font-style: italic;
}

/* ── CONTACT SECTION ── */
.contact-section {
  padding: 6rem 0;
  text-align: center;
}

.contact-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.contact-headline .dot { color: var(--accent2); }

.contact-sub {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto 3rem;
}

.contact-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.2s;
  position: relative;
}
.contact-cta:hover {
  box-shadow: 0 0 30px rgba(123, 97, 255, 0.3), 0 0 60px rgba(79, 124, 255, 0.15);
  transform: translateY(-1px);
}

.contact-email {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.7rem;
  color: var(--muted);
}
.contact-email a {
  color: var(--accent3);
  text-decoration: none;
  transition: color 0.3s;
}
.contact-email a:hover { color: var(--accent); }

/* ── CONTACT METHODS GRID (contact page) ── */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 4rem;
}
.contact-method {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-method:hover {
  border-color: rgba(123, 97, 255, 0.25);
  box-shadow: 0 0 30px rgba(123, 97, 255, 0.06);
}
.contact-method-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.contact-method-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.contact-method-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.contact-method a {
  font-size: 0.7rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.contact-method a:hover { color: var(--accent2); }

/* ── CONTACT FORM ── */
.form-section {
  max-width: 600px;
  margin: 0 auto 4rem;
  text-align: left;
}
.form-section label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}
.form-section input,
.form-section textarea,
.form-section select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--glass);
  border: 1px solid var(--dim);
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.form-section input:focus,
.form-section textarea:focus,
.form-section select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(123, 97, 255, 0.1);
}
.form-section textarea {
  min-height: 120px;
  resize: vertical;
}
.form-section select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%237878A0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.form-section select option {
  background: var(--deep);
  color: var(--fg);
}

/* Checkbox group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--dim);
  transition: border-color 0.3s, color 0.3s;
}
.checkbox-group label:hover {
  border-color: var(--accent);
  color: var(--fg);
}
.checkbox-group input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}

.form-submit {
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}
.form-submit:hover {
  box-shadow: 0 0 30px rgba(123, 97, 255, 0.3), 0 0 60px rgba(79, 124, 255, 0.15);
  transform: translateY(-1px);
}
.form-submit:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--accent);
  margin-top: 2rem;
  background: var(--glass);
}
.form-success.visible { display: block; }
.form-success p {
  font-size: 0.8rem;
  color: var(--accent3);
  line-height: 1.8;
}

.form-error {
  display: none;
  text-align: center;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 107, 129, 0.6);
  margin-top: 1rem;
  background: rgba(255, 107, 129, 0.08);
  font-size: 0.76rem;
  color: #ff9ab0;
  line-height: 1.6;
}
.form-error.visible { display: block; }

/* ── FAQ SECTION ── */
.faq-section {
  padding: 4rem 0;
  border-top: 1px solid var(--dim);
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--dim);
  padding: 1.5rem 0;
}
.faq-question {
  font-size: 0.82rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.faq-answer {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ── SERVICES PAGE — EXPANDED CARDS ── */
.service-expanded {
  padding: 4rem 0;
  border-bottom: 1px solid var(--dim);
}
.service-expanded:last-of-type {
  border-bottom: none;
}

.service-expanded-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}
.service-expanded-ascii {
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--accent3);
  white-space: pre;
  opacity: 0.7;
  flex-shrink: 0;
  overflow: hidden;
  max-width: 100%;
}
.service-expanded-meta {
  flex: 1;
}
.service-expanded-index {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}
.service-expanded-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--fg);
}

.service-expanded-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.service-expanded-text {
  font-size: 0.82rem;
  line-height: 2;
  color: var(--muted);
}
.service-expanded-text p { margin-bottom: 1.5rem; }
.service-expanded-text strong { color: var(--fg); font-weight: 500; }

.service-includes {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
}
.service-includes-title {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.service-includes-list {
  list-style: none;
}
.service-includes-list li {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--dim);
}
.service-includes-list li:last-child { border-bottom: none; }
.service-includes-list li::before {
  content: '▸ ';
  color: var(--accent3);
}

.service-cta-wrap {
  margin-top: 2rem;
}

/* ── ABOUT PAGE — OPERATOR BIO ── */
.operator-section {
  padding: 4rem 0;
  border-top: 1px solid var(--dim);
  border-bottom: 1px solid var(--dim);
  margin-bottom: 4rem;
}
.operator-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.operator-meta {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
}
.operator-name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  color: var(--fg);
  margin-bottom: 0.3rem;
}
.operator-role {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.operator-detail {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--dim);
}
.operator-detail:last-child { border-bottom: none; }
.operator-detail span { color: var(--dim); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 0.2rem; }

.operator-text {
  font-size: 0.82rem;
  line-height: 2;
  color: var(--muted);
}
.operator-text p { margin-bottom: 1.5rem; }
.operator-text strong { color: var(--fg); font-weight: 500; }

/* ── ABOUT PAGE — PHILOSOPHY ── */
.philosophy-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--dim);
  margin-bottom: 4rem;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2rem;
}
.philosophy-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  transition: border-color 0.3s;
}
.philosophy-card:hover {
  border-color: rgba(123, 97, 255, 0.2);
}
.philosophy-card .phi-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.05rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.philosophy-card .phi-text {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ── FILM GALLERY ── */
.film-section {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--dim);
  border-bottom: 1px solid var(--dim);
  margin-bottom: 4rem;
}

.film-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.film-header .section-header {
  margin-bottom: 0;
}

.film-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(0, 212, 170, 0.32);
  background: rgba(0, 212, 170, 0.08);
  color: var(--accent3);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.film-stock-pill span {
  color: var(--muted);
}
.film-stock-pill strong {
  color: var(--accent3);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.film-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: start;
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: relative;
}

/* Normalize gallery thumbnail frames so portrait scans don't break the layout */
.film-stage .holo-card__body {
  aspect-ratio: 4 / 3;
}
.film-stage .holo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* hide cards beyond the first row (4th onward) */
.film-stage .holo-card:nth-child(n+4) {
  display: none;
}
.film-section.is-open .film-stage .holo-card:nth-child(n+4) {
  display: block;
  animation: filmReveal 0.45s ease both;
}
.film-section.is-open .film-stage .holo-card:nth-child(4) { animation-delay: 0s; }
.film-section.is-open .film-stage .holo-card:nth-child(5) { animation-delay: 0.08s; }
.film-section.is-open .film-stage .holo-card:nth-child(6) { animation-delay: 0.16s; }
.film-section.is-open .film-stage .holo-card:nth-child(7) { animation-delay: 0.24s; }
.film-section.is-open .film-stage .holo-card:nth-child(8) { animation-delay: 0.32s; }
.film-section.is-open .film-stage .holo-card:nth-child(9) { animation-delay: 0.40s; }
.film-section.is-open .film-stage .holo-card:nth-child(10) { animation-delay: 0.48s; }
.film-section.is-open .film-stage .holo-card:nth-child(11) { animation-delay: 0.56s; }
.film-section.is-open .film-stage .holo-card:nth-child(12) { animation-delay: 0.64s; }
.film-section.is-open .film-stage .holo-card:nth-child(13) { animation-delay: 0.72s; }
.film-section.is-open .film-stage .holo-card:nth-child(14) { animation-delay: 0.80s; }
.film-section.is-open .film-stage .holo-card:nth-child(15) { animation-delay: 0.88s; }
.film-section.is-open .film-stage .holo-card:nth-child(16) { animation-delay: 0.96s; }
.film-section.is-open .film-stage .holo-card:nth-child(17) { animation-delay: 1.04s; }
.film-section.is-open .film-stage .holo-card:nth-child(18) { animation-delay: 1.12s; }
.film-section.is-open .film-stage .holo-card:nth-child(19) { animation-delay: 1.20s; }
.film-section.is-open .film-stage .holo-card:nth-child(20) { animation-delay: 1.28s; }
.film-section.is-open .film-stage .holo-card:nth-child(21) { animation-delay: 1.36s; }

@keyframes filmReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* show-more toggle */
.film-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  margin: 0.5rem auto 0;
  background: none;
  border: 1px solid var(--dim);
  padding: 0.5rem 1.4rem;
  cursor: pointer;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s, border-color 0.3s;
}
.film-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.film-toggle-icon {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.4s ease;
  line-height: 1;
}
.film-section.is-open .film-toggle-icon {
  transform: rotate(45deg);
}

/* ── HOLOCARD COMPONENT ── */
.holo-card {
  --mx: 50%;
  --my: 50%;
  --rx: 0;
  --ry: 0;
  --bg-x: 50;
  --bg-y: 50;
  --glow: 0;
  --lift: 1;
  --shadow-rest: 0 2px 8px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-drag: 0 30px 60px rgba(0,0,0,0.55), 0 10px 20px rgba(0,0,0,0.35);

  position: relative;
  display: inline-block;
  width: 320px;
  perspective: 900px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
  transition: z-index 0s;
}

.holo-card.is-dragging {
  cursor: grabbing;
  z-index: 10000;
}

/* inner 3D wrapper */
.holo-card__body {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(var(--rx) * 1deg))
    rotateY(calc(var(--ry) * 1deg))
    scale3d(var(--lift), var(--lift), 1);
  will-change: transform;
  box-shadow: var(--shadow-rest);
  transition: box-shadow 0.35s ease;
  overflow: hidden;
}

.holo-card:hover .holo-card__body,
.holo-card.is-hovering .holo-card__body {
  box-shadow: var(--shadow-hover);
}

.holo-card.is-dragging .holo-card__body {
  box-shadow: var(--shadow-drag);
}

/* image layer */
.holo-card__img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  position: relative;
  z-index: 1;
  filter: saturate(0.92) contrast(1.02);
  transition: filter 0.5s ease;
}

.holo-card:hover .holo-card__img,
.holo-card.is-dragging .holo-card__img {
  filter: saturate(1.05) contrast(1.04);
}

/* specular shine */
.holo-card__shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background:
    radial-gradient(
      ellipse at var(--mx) var(--my),
      rgba(255,255,255,0.28) 0%,
      rgba(255,255,255,0.08) 25%,
      transparent 55%
    );
  mix-blend-mode: overlay;
}

.holo-card.is-hovering .holo-card__shine,
.holo-card.is-dragging .holo-card__shine {
  opacity: 0.7;
}

/* gloss sweep */
.holo-card__gloss {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background:
    linear-gradient(
      calc(var(--ry) * 3.5deg + 115deg),
      transparent 0%,
      transparent 38%,
      rgba(255,255,255,0.02) 40%,
      rgba(255,255,255,0.10) 44%,
      rgba(255,255,255,0.02) 48%,
      transparent 50%,
      transparent 100%
    );
  mix-blend-mode: overlay;
}

.holo-card.is-hovering .holo-card__gloss,
.holo-card.is-dragging .holo-card__gloss {
  opacity: 1;
}

/* edge highlight — light catching the card edge */
.holo-card__body::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: linear-gradient(
    calc(var(--ry) * 3deg + 120deg),
    transparent 30%,
    rgba(255,255,255,0.15) 48%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.15) 52%,
    transparent 70%
  );
}

.holo-card.is-hovering .holo-card__body::before,
.holo-card.is-dragging .holo-card__body::before {
  opacity: calc(var(--glow) * 0.8);
}

/* ambient glow below card */
.holo-card__body::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 12%;
  width: 76%;
  height: 50%;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse,
    rgba(180,180,220,0.15) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: blur(20px);
}

.holo-card.is-hovering .holo-card__body::after,
.holo-card.is-dragging .holo-card__body::after {
  opacity: 1;
}

/* edition: none — physical tilt + shine only */
.holo-card[data-edition="none"] .holo-card__rainbow { display: none; }

.film-stage .holo-card.is-lightbox-trigger {
  cursor: zoom-in;
}

.film-stage .holo-card.is-lightbox-trigger:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 4px;
}

body.film-lightbox-open {
  overflow: hidden;
}

.film-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.film-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.film-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.film-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.film-lightbox__frame {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.film-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(88vw, 980px);
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid rgba(79, 124, 255, 0.32);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6);
  background: #040407;
  filter: none !important;
  transform: none !important;
}

.film-lightbox__close,
.film-lightbox__nav {
  border: 1px solid rgba(224, 224, 240, 0.26);
  background: rgba(10, 10, 18, 0.85);
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.film-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.2rem;
  line-height: 1;
}

.film-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.15rem;
  line-height: 1;
}

.film-lightbox__nav--prev { left: 1rem; }
.film-lightbox__nav--next { right: 1rem; }

.film-lightbox__close:hover,
.film-lightbox__nav:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(10, 10, 18, 1);
}

.film-lightbox__close:focus-visible,
.film-lightbox__nav:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.film-lightbox__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.film-lightbox__counter {
  color: var(--accent2);
}

.film-lightbox__stock {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 212, 170, 0.4);
  background: rgba(0, 212, 170, 0.08);
  color: var(--accent3);
  padding: 0.2rem 0.5rem;
}
.film-lightbox__stock[hidden] {
  display: none;
}

.film-lightbox__caption {
  color: var(--fg);
  text-transform: none;
  letter-spacing: 0.03em;
}

/* ── SECTION LINK (teaser "read more") ── */
.section-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.section-link:hover { color: var(--accent2); }
.section-link::after { content: ' →'; }

/* ── FOOTER ── */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
footer .contact-line { color: var(--accent3); }
.footer-social a {
  color: var(--accent2);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--accent); }

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes terminalReveal {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes charWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* ── RAY SWIMMING ANIMATION ── */
.ray-animated {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: oceanGlide 12s ease-in-out infinite;
}
@keyframes oceanGlide {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-3px) translateX(2px); }
  50% { transform: translateY(0px) translateX(0px); }
  75% { transform: translateY(3px) translateX(-2px); }
}
.ray-animated span {
  display: block;
  transform-origin: center;
}

.ray-wing-tip { animation: wingTip 6s ease-in-out infinite; }
@keyframes wingTip {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.ray-wing-top { animation: wingTop 6s ease-in-out infinite; }
@keyframes wingTop {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.ray-wing-mid { animation: wingMid 6s ease-in-out infinite; }
@keyframes wingMid {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}

.ray-wing-wide { animation: wingWide 6s ease-in-out infinite; }
@keyframes wingWide {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-1px); }
}

.ray-body { animation: bodyDrift 8s ease-in-out infinite; }
@keyframes bodyDrift {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  30% { transform: translateY(1px) translateX(1px); }
  70% { transform: translateY(-1px) translateX(-1px); }
}

.ray-body-low { animation: bodyLow 8s ease-in-out infinite; }
@keyframes bodyLow {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  30% { transform: translateY(2px) translateX(1px); }
  70% { transform: translateY(-1px) translateX(-1px); }
}

.ray-tail-top { animation: tailTop 5s ease-in-out infinite; }
@keyframes tailTop {
  0%, 100% { transform: translateX(0px) translateY(0px); }
  25% { transform: translateX(2px) translateY(1px); }
  75% { transform: translateX(-2px) translateY(-1px); }
}

.ray-tail-mid { animation: tailMid 5s ease-in-out infinite; }
@keyframes tailMid {
  0%, 100% { transform: translateX(0px) translateY(0px); }
  25% { transform: translateX(4px) translateY(2px); }
  75% { transform: translateX(-4px) translateY(-1px); }
}

.ray-tail-end { animation: tailEnd 5s ease-in-out infinite; }
@keyframes tailEnd {
  0%, 100% { transform: translateX(0px) translateY(0px); }
  25% { transform: translateX(6px) translateY(3px); }
  75% { transform: translateX(-6px) translateY(-2px); }
}

/* ── SCROLL REVEAL (sub-pages) ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* Prevent any element from blowing past the viewport */
*, *::before, *::after { box-sizing: border-box; }

/* Hard stop on overflow — keep layout bounded without breaking sticky nav */
.container, nav, section, footer, article { max-width: 100%; }
section, footer, article { overflow-x: hidden; }

/* white-space:pre elements are the main overflow culprits on mobile */
@media (max-width: 768px) {
  .ascii-logo,
  .ascii-ray,
  .ray-ascii-large,
  .card-ascii,
  .service-expanded-ascii,
  .terminal-prompt,
  .divider {
    overflow: hidden;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* Container: tighter padding on small screens */
  .container { padding: 5rem 1.25rem 0; }

  /* Nav */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
  }

  /* Hero: reduce top padding so it doesn't feel buried */
  .hero { padding: 4rem 0 3rem; }

  /* ASCII logo: scale to fit viewport */
  .ascii-logo { font-size: clamp(0.28rem, 0.9vw, 0.82rem); }

  /* Subtitle: clamp tighter for small screens */
  .subtitle {
    font-size: clamp(1.4rem, 6vw, 2rem);
    margin-top: 1.5rem;
  }

  /* Tagline: scale down and allow wrap gracefully */
  .tagline {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    line-height: 1.8;
  }

  /* Terminal prompt: allow wrapping, center */
  .terminal-prompt { margin-top: 2rem; }
  .terminal-prompt .line {
    display: block;
    font-size: 0.72rem;
    word-break: break-word;
    white-space: normal;
    text-align: center;
  }

  /* Divider: tighten */
  .divider { padding: 2.5rem 0 2rem; font-size: 0.5rem; }

  /* Services, grids */
  .services { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 2rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  .service-expanded-body { grid-template-columns: 1fr; }
  .service-expanded-header { flex-direction: column; gap: 1rem; }
  .operator-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }

  /* Insights grid */
  .insights-grid { grid-template-columns: 1fr; }

  /* Film cards */
  .film-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .film-stock-pill {
    font-size: 0.56rem;
  }
  .holo-card { width: 280px; }
  .film-stage { gap: 1.5rem; }

  .film-lightbox {
    padding: 1rem;
  }

  .film-lightbox__img {
    max-width: 92vw;
    max-height: 74vh;
  }

  .film-lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .film-lightbox__nav--prev { left: 0.5rem; }
  .film-lightbox__nav--next { right: 0.5rem; }

  .film-lightbox__meta {
    gap: 0.5rem;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Ray ascii */
  .ascii-ray { font-size: 0.3rem; }
  .ray-ascii-large { font-size: clamp(0.55rem, 1.6vw, 1rem); }

  /* Page hero */
  .page-hero { padding: 3.5rem 0 2rem; margin-bottom: 2.5rem; }

  /* Contact section */
  .contact-section { padding: 4rem 0; }

  /* Footer */
  footer { flex-direction: column; gap: 1rem; text-align: center; }

  /* Article */
  .article-hero { padding: 3rem 0 2rem; }
  .article-body { font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .container { padding: 4.7rem 1rem 0; }
  .approach-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .holo-card { width: min(260px, 90vw); }
  .film-stage { gap: 1.2rem; }
  .subtitle { font-size: clamp(1.25rem, 7vw, 1.6rem); }
  .terminal-prompt .line { font-size: 0.65rem; }

  .film-lightbox__nav {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1rem;
  }

  .film-lightbox__close {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.05rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── MOBILE HAMBURGER ── */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  padding: 0;
  position: relative;
  overflow: visible;
  z-index: 1100;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 1.8px;
  background: var(--muted);
  border-radius: 999px;
  will-change: transform, opacity;
  transform-origin: center;
  backface-visibility: hidden;
  transform: translate(-50%, -50%);
  transition: transform 0.28s ease, opacity 0.2s ease, background 0.28s ease;
}
.nav-hamburger span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 6px));
}
.nav-hamburger span:nth-child(2) {
  transform: translate(-50%, -50%);
}
.nav-hamburger span:nth-child(3) {
  transform: translate(-50%, calc(-50% + 6px));
}
.nav-hamburger:hover span { background: var(--accent); }
.nav-hamburger.is-open span { background: var(--fg); }
.nav-hamburger.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(0.2); }
.nav-hamburger.is-open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile overlay — appended to body by JS, shown via opacity/visibility */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(5, 5, 8, 0.50);
  backdrop-filter: blur(30px) saturate(1.5) brightness(0.82);
  -webkit-backdrop-filter: blur(30px) saturate(1.5) brightness(0.82);
  flex-direction: column;
  justify-content: center;
  padding: 0 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  isolation: isolate;
}
.nav-mobile-overlay.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
}
.nav-mobile-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(79,124,255,0.14), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.22));
}
.nav-mobile-overlay a {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--dim);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}
.nav-mobile-overlay a:first-child {
  border-top: 1px solid var(--dim);
}
.nav-mobile-overlay a:hover,
.nav-mobile-overlay a.active { color: var(--accent); }
.nav-mobile-overlay a.active,
.nav-mobile-overlay a[aria-current="page"] {
  color: var(--fg);
  border-left: 2px solid var(--accent3);
  padding-left: 0.7rem;
}
.nav-mobile-overlay::before {
  content: '▸ MOBULA_';
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

/* Keep nav above overlay so hamburger/cross stays stable */
body.nav-menu-open nav { z-index: 1100; }

@media (max-width: 768px) {
  /* Hard fallback blur path for mobile WebKit quirks */
  #gradient-bg {
    transition: filter 0.28s ease, transform 0.28s ease;
  }
  .container > :not(nav) {
    transition: filter 0.28s ease;
  }
  body.nav-menu-open #gradient-bg {
    filter: blur(12px) saturate(1.15);
    transform: scale(1.03);
  }
  body.nav-menu-open .container {
    filter: blur(8px) saturate(0.9);
  }

  nav {
    backdrop-filter: blur(22px) saturate(1.55);
    -webkit-backdrop-filter: blur(22px) saturate(1.55);
  }
  nav.nav-scrolled {
    backdrop-filter: blur(26px) saturate(1.6);
    -webkit-backdrop-filter: blur(26px) saturate(1.6);
  }
  .nav-hamburger { display: flex; }
  .nav-mobile-overlay { display: flex; }
  .nav-links { display: none !important; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  nav {
    background: rgba(5, 5, 8, 0.88);
  }
  nav.nav-scrolled {
    background: rgba(5, 5, 8, 0.94);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
  }
  .nav-mobile-overlay {
    background: rgba(5, 5, 8, 0.92);
  }
}

/* ═══════════════════════════════════════
   INSIGHTS PAGE
   ═══════════════════════════════════════ */

/* ── INSIGHTS LISTING ── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 6rem;
}

.insight-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  text-decoration: none;
  color: inherit;
}
.insight-card:hover {
  background: rgba(123, 97, 255, 0.06);
  border-color: rgba(123, 97, 255, 0.25);
  box-shadow: 0 0 40px rgba(123, 97, 255, 0.08);
}

.insight-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.insight-tag {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent3);
  border: 1px solid rgba(0, 212, 170, 0.3);
  padding: 0.2rem 0.5rem;
}

.insight-date {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.insight-readtime {
  font-size: 0.62rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  margin-left: auto;
}

.insight-card-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--fg);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.insight-card-excerpt {
  font-size: 0.72rem;
  line-height: 1.85;
  color: var(--muted);
  flex: 1;
}

.insight-card-cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.insight-card-cta::after { content: ' →'; }
.insight-card:hover .insight-card-cta { color: var(--accent2); }

/* Coming soon card state */
.insight-card.is-upcoming {
  opacity: 0.55;
  pointer-events: none;
}
.insight-card.is-upcoming .insight-tag {
  color: var(--muted);
  border-color: var(--dim);
}

/* ── ARTICLE PAGE ── */
.article-hero {
  padding: 6rem 0 3.5rem;
  border-bottom: 1px solid var(--dim);
  margin-bottom: 4rem;
  max-width: 760px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.article-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
}

.article-body {
  max-width: 680px;
  margin: 0 auto 6rem;
  font-size: 0.85rem;
  line-height: 2.1;
  color: var(--muted);
}

.article-body p { margin-bottom: 1.8rem; }
.article-body h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  color: var(--fg);
  margin: 3rem 0 1rem;
}
.article-body h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.15rem;
  color: var(--fg);
  margin: 2rem 0 0.75rem;
}
.article-body strong { color: var(--fg); font-weight: 500; }
.article-body em { font-style: italic; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.8rem;
}
.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}
.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  color: var(--fg);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
}
.article-body .divider-line {
  border: none;
  border-top: 1px solid var(--dim);
  margin: 3rem 0;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  transition: color 0.3s;
}
.article-back:hover { color: var(--accent); }
.article-back::before { content: '←'; }

@media (max-width: 768px) {
  .insights-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 0.82rem; }
}
