/* ============================================================
   LEGAL TECH DYNAMICS — SHARED STYLES
   Forensic-editorial design system
   ============================================================ */

/* ROOT TOKENS */
:root {
  /* Palette — dark (forensic) */
  --ink: #0a0c14;
  --ink-soft: #0d1019;
  --ink-elev: rgba(20, 22, 32, 0.5);
  --bone: #e8e3d3;
  --bone-bright: #f4efdf;
  --amber: #d4a83a;
  --amber-bright: #e0b651;
  --amber-soft: rgba(212, 168, 58, 0.7);
  --amber-faint: rgba(212, 168, 58, 0.12);
  --oxblood: #7a1f1f;

  /* Palette — light (editorial cream) */
  --paper: #fbf8f2;
  --paper-bright: #ffffff;
  --navy: #07111f;
  --slate: #445163;
  --slate-soft: #687586;
  --gold: #b8944d;
  --gold-bright: #d9c28a;
  --gold-soft: rgba(184, 148, 77, 0.4);
  --gold-faint: rgba(184, 148, 77, 0.1);

  /* Typography */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --container-max: 1280px;
  --container-pad: 32px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--ink); min-height: 100vh; }
body {
  font-family: var(--font-sans);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(232, 227, 211, 0.08);
}
.nav-inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 18px var(--container-pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-img {
  height: 36px; width: auto; display: block;
  /* logo PNG is white-on-black; works on dark nav as-is */
}
@media (max-width: 600px) { .brand-img { height: 30px; } }
/* Legacy text-wordmark styles retained as fallback */
.brand-mark {
  font-family: var(--font-serif); font-size: 18px; font-weight: 500;
  color: var(--bone-bright); letter-spacing: -0.01em;
}
.brand-tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  color: var(--amber);
  border: 0.5px solid rgba(212, 168, 58, 0.4);
  padding: 3px 8px;
  margin-left: 10px;
}
.nav-links { display: flex; gap: 28px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; }
.nav-links a { color: rgba(232, 227, 211, 0.7); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--amber); }
.nav-cta {
  background: transparent;
  border: 0.5px solid var(--amber); color: var(--amber);
  padding: 9px 16px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; font-weight: 500;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--amber); color: var(--ink); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: transparent; border: none; color: var(--bone); padding: 8px; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); padding: 24px var(--container-pad);
    border-bottom: 0.5px solid rgba(232, 227, 211, 0.08);
    gap: 18px;
  }
  .nav.is-open .nav-cta { display: inline-block; margin: 18px var(--container-pad); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.sec {
  position: relative; padding: 75px var(--container-pad);
  overflow: hidden;
}
.sec-inner { position: relative; max-width: var(--container-max); margin: 0 auto; }
.sec-dark { background: var(--ink); color: var(--bone); }
.sec-light { background: var(--paper); color: var(--navy); }

.sec-grid-dark, .sec-grid-light {
  position: absolute; inset: 0; pointer-events: none;
}
.sec-grid-dark {
  background-image:
    linear-gradient(rgba(232, 227, 211, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 227, 211, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
}
.sec-grid-light {
  background-image:
    linear-gradient(rgba(38, 49, 63, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 49, 63, 0.022) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Section header — two column pattern */
.sec-header {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 60px; align-items: end;
  margin-bottom: 44px;
}
@media (max-width: 900px) {
  .sec-header { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

.sec-eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.sec-eyebrow::before { content: ''; width: 28px; height: 1px; }
.sec-light .sec-eyebrow { color: var(--gold); }
.sec-light .sec-eyebrow::before { background: rgba(184, 148, 77, 0.5); }
.sec-dark .sec-eyebrow { color: var(--amber-soft); }
.sec-dark .sec-eyebrow::before { background: rgba(212, 168, 58, 0.5); }

.sec-h2 {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(28px, 3.2vw, 38px); line-height: 1.18; letter-spacing: -0.012em;
  max-width: 620px;
}
.sec-light .sec-h2 { color: var(--navy); }
.sec-dark .sec-h2 { color: var(--bone-bright); }
.sec-h2 em { font-style: italic; }
.sec-light .sec-h2 em { color: var(--gold); }
.sec-dark .sec-h2 em { color: var(--amber); }

.sec-dek { margin-top: 16px; font-size: 15px; line-height: 1.6; max-width: 540px; }
.sec-light .sec-dek { color: var(--slate); }
.sec-dark .sec-dek { color: rgba(232, 227, 211, 0.6); }

.sec-anchor {
  display: flex; flex-direction: column;
  align-items: flex-end; justify-content: flex-end;
  gap: 18px; height: 100%;
}
@media (max-width: 900px) { .sec-anchor { align-items: flex-start; } }

.sec-anchor-link {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  transition: gap 0.25s;
}
.sec-anchor-link:hover { gap: 16px; }
.sec-light .sec-anchor-link { color: var(--gold); }
.sec-dark .sec-anchor-link { color: var(--amber); font-weight: 500; }

/* ============================================================
   CTAS
   ============================================================ */
.cta-primary {
  background: var(--amber); color: var(--ink);
  padding: 14px 22px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; font-weight: 500;
  display: inline-block; transition: all 0.25s; border: none;
}
.cta-primary:hover { background: var(--amber-bright); transform: translateY(-1px); }
.sec-light .cta-primary { background: var(--gold); color: var(--paper); }
.sec-light .cta-primary:hover { background: #c9a25a; }

.cta-secondary {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 0.25s;
}
.cta-secondary:hover { gap: 14px; }
.sec-light .cta-secondary { color: var(--gold); }

/* ============================================================
   HERO ROTATOR (homepage only, but base styles here)
   ============================================================ */
.hero {
  position: relative; padding: 50px var(--container-pad) 70px;
  overflow: hidden; min-height: 620px; background: var(--ink);
}
.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 227, 211, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 227, 211, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-bg-glow {
  position: absolute; right: -200px; top: 50%; transform: translateY(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(212, 168, 58, 0.06), transparent 60%);
  pointer-events: none;
}
.hero-stage {
  position: relative; max-width: var(--container-max); margin: 0 auto;
  min-height: 540px;
}
.hero-state {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms;
}
.hero-state.is-active { opacity: 1; visibility: visible; }
.hero-text { color: var(--bone); }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em;
  color: rgba(212, 168, 58, 0.85);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: rgba(212, 168, 58, 0.5); }
.hero-headline {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(38px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.025em;
  color: var(--bone-bright);
}
.hero-headline em {
  font-style: italic; color: var(--bone-bright);
  background-image: linear-gradient(transparent 64%, var(--amber) 64%, var(--amber) 94%, transparent 94%);
  background-size: 100% 100%; background-repeat: no-repeat;
  padding: 0 4px;
}
.hero-subhead {
  margin-top: 24px; font-size: 16px; line-height: 1.65;
  color: rgba(232, 227, 211, 0.72); max-width: 480px;
}
.hero-cta-row {
  margin-top: 32px;
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
}

/* Visual stage (right column of hero) */
.v-stage {
  position: relative; height: 540px;
  display: flex; align-items: center; justify-content: center;
}
.v-stage svg {
  width: 100%; height: 100%; max-width: 620px; overflow: visible;
}

/* Shared visual primitives */
.ring-outer { fill: none; stroke: rgba(212, 168, 58, 0.08); stroke-width: 0.5; }
.ring-mid { fill: none; stroke: rgba(212, 168, 58, 0.14); stroke-width: 0.5; }
.ring-inner { fill: none; stroke: rgba(212, 168, 58, 0.06); stroke-width: 0.5; }
.callout-line { stroke: rgba(212, 168, 58, 0.55); stroke-width: 0.6; fill: none; }
.callout-dot { fill: var(--amber); }
.callout-label {
  font-family: var(--font-mono); font-size: 10px;
  fill: rgba(244, 239, 223, 0.92); letter-spacing: 0.14em; font-weight: 500;
}
.callout-sub {
  font-family: var(--font-mono); font-size: 8px;
  fill: rgba(212, 168, 58, 0.7); letter-spacing: 0.18em;
}

@keyframes labelPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.pulse-1 .callout-dot, .pulse-1 .callout-line { animation: labelPulse 4s ease-in-out infinite; }
.pulse-2 .callout-dot, .pulse-2 .callout-line { animation: labelPulse 4s ease-in-out 0.6s infinite; }
.pulse-3 .callout-dot, .pulse-3 .callout-line { animation: labelPulse 4s ease-in-out 1.2s infinite; }
.pulse-4 .callout-dot, .pulse-4 .callout-line { animation: labelPulse 4s ease-in-out 1.8s infinite; }
.pulse-5 .callout-dot, .pulse-5 .callout-line { animation: labelPulse 4s ease-in-out 2.4s infinite; }
.pulse-6 .callout-dot, .pulse-6 .callout-line { animation: labelPulse 4s ease-in-out 3.0s infinite; }

/* State 1 — Phone */
.phone-body { fill: rgba(244, 239, 223, 0.02); stroke: rgba(232, 227, 211, 0.5); stroke-width: 0.8; }
.phone-screen-bg { fill: var(--ink-soft); stroke: rgba(232, 227, 211, 0.3); stroke-width: 0.5; }
.phone-detail { fill: none; stroke: rgba(232, 227, 211, 0.3); stroke-width: 0.5; }
.phone-notch { fill: rgba(232, 227, 211, 0.4); }
@keyframes scrollFeed { from { transform: translateY(0); } to { transform: translateY(-560px); } }
.feed-group { animation: scrollFeed 50s linear infinite; }
.feed-sys { font-family: var(--font-mono); font-size: 7px; fill: rgba(212, 168, 58, 0.85); letter-spacing: 0.06em; font-weight: 500; }
.feed-msg { font-family: var(--font-mono); font-size: 7px; fill: rgba(244, 239, 223, 0.78); letter-spacing: 0.02em; font-style: italic; }
.feed-gps { font-family: var(--font-mono); font-size: 7px; fill: rgba(180, 200, 230, 0.7); letter-spacing: 0.04em; }
.feed-wifi { font-family: var(--font-mono); font-size: 7px; fill: rgba(160, 200, 180, 0.7); letter-spacing: 0.04em; }
.feed-count { font-family: var(--font-mono); font-size: 7.5px; fill: rgba(244, 239, 223, 0.6); letter-spacing: 0.04em; }
.feed-divider { stroke: rgba(232, 227, 211, 0.12); stroke-width: 0.5; }
.feed-bar-bg { fill: rgba(232, 227, 211, 0.1); }
.feed-bar-fg { fill: rgba(212, 168, 58, 0.7); }
.feed-label { font-family: var(--font-mono); font-size: 6px; fill: rgba(232, 227, 211, 0.5); letter-spacing: 0.16em; }
@keyframes barPulse { 0%, 100% { width: 64px; } 50% { width: 88px; } }
.feed-status-bar { animation: barPulse 3s ease-in-out infinite; }

/* State 2 — AI Node Graph */
.ai-node { fill: rgba(20, 22, 32, 0.9); stroke: rgba(212, 168, 58, 0.6); stroke-width: 1; }
.ai-node-center { fill: rgba(20, 22, 32, 0.95); stroke: var(--amber); stroke-width: 1.4; }
.ai-connection { stroke: rgba(212, 168, 58, 0.3); stroke-width: 0.6; stroke-dasharray: 3,3; fill: none; }
.ai-connection-active { stroke: rgba(212, 168, 58, 0.6); stroke-width: 0.8; stroke-dasharray: none; }
.ai-checkpoint { fill: rgba(212, 168, 58, 0.15); stroke: var(--amber); stroke-width: 0.8; }
.ai-checkpoint-tick { stroke: var(--amber); stroke-width: 1.2; fill: none; stroke-linecap: round; }
.ai-warn { fill: var(--oxblood); }
.ai-warn-text { font-family: var(--font-mono); font-size: 8px; font-weight: 600; fill: var(--bone-bright); }
.ai-node-label { font-family: var(--font-mono); font-size: 7px; fill: rgba(244, 239, 223, 0.85); letter-spacing: 0.14em; text-anchor: middle; }
.ai-node-label-center { font-family: var(--font-mono); font-size: 9px; fill: var(--bone-bright); letter-spacing: 0.18em; text-anchor: middle; font-weight: 500; }
.ai-pulse-center { animation: aiPulse 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes aiPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.ai-data-flow { animation: dataFlow 4s linear infinite; }
@keyframes dataFlow { 0% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -12; } }

/* State 3 — eDiscovery Funnel */
.ed-source { fill: rgba(20, 22, 32, 0.8); stroke: rgba(232, 227, 211, 0.4); stroke-width: 0.8; }
.ed-source-icon { fill: none; stroke: rgba(212, 168, 58, 0.55); stroke-width: 0.7; }
.ed-layer { fill: rgba(20, 22, 32, 0.5); stroke: rgba(212, 168, 58, 0.4); stroke-width: 0.6; }
.ed-layer-label { font-family: var(--font-mono); font-size: 8px; fill: rgba(212, 168, 58, 0.85); letter-spacing: 0.16em; }
.ed-layer-count { font-family: var(--font-mono); font-size: 9px; fill: var(--bone-bright); }
.ed-flow-line { stroke: rgba(212, 168, 58, 0.35); stroke-width: 0.5; fill: none; stroke-dasharray: 2,3; }
.ed-divider { stroke: rgba(232, 227, 211, 0.12); stroke-width: 0.5; stroke-dasharray: 2,2; }
.ed-seal { fill: rgba(20, 22, 32, 0.95); stroke: var(--amber); stroke-width: 1; }
.ed-seal-text { font-family: var(--font-mono); font-size: 7px; fill: var(--amber); letter-spacing: 0.18em; text-anchor: middle; font-weight: 600; }
.ed-funnel-animate { animation: funnelDrop 5s ease-in-out infinite; }
@keyframes funnelDrop { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Rotator controls */
.rotator-controls {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 32px; z-index: 5;
}
.rotator-dots { display: flex; gap: 14px; align-items: center; }
.rotator-dot {
  width: 36px; height: 1.5px;
  background: rgba(232, 227, 211, 0.2);
  border: none; padding: 0;
  transition: all 0.3s; position: relative;
}
.rotator-dot::before { content: ''; position: absolute; inset: -10px 0; }
.rotator-dot:hover { background: rgba(232, 227, 211, 0.4); }
.rotator-dot.is-active { background: var(--amber); height: 2px; }
.rotator-dot.is-active::after {
  content: ''; position: absolute; left: 0; top: 0; height: 100%;
  background: rgba(212, 168, 58, 0.4); width: 0%;
  animation: progressFill 8s linear;
}
.rotator-paused .rotator-dot.is-active::after { animation-play-state: paused; }
@keyframes progressFill { from { width: 0%; } to { width: 100%; } }
.rotator-pause {
  background: transparent;
  border: 0.5px solid rgba(232, 227, 211, 0.25);
  color: rgba(232, 227, 211, 0.6);
  padding: 6px 10px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  transition: all 0.2s;
}
.rotator-pause:hover { border-color: var(--amber); color: var(--amber); }
.rotator-state-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em;
  color: rgba(232, 227, 211, 0.5);
}

/* ============================================================
   PAGE HERO (for non-homepage pages)
   ============================================================ */
.page-hero {
  position: relative; padding: 110px var(--container-pad) 80px;
  overflow: hidden;
  background: var(--ink); color: var(--bone);
}
.page-hero.is-light { background: var(--paper); color: var(--navy); }
.page-hero-inner { position: relative; max-width: var(--container-max); margin: 0 auto; }
.page-hero-eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em;
  color: var(--amber);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.page-hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: rgba(212, 168, 58, 0.5); }
.page-hero.is-light .page-hero-eyebrow { color: var(--gold); }
.page-hero.is-light .page-hero-eyebrow::before { background: rgba(184, 148, 77, 0.5); }
.page-hero h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.025em;
  color: var(--bone-bright); max-width: 900px;
}
.page-hero.is-light h1 { color: var(--navy); }
.page-hero h1 em { font-style: italic; color: var(--amber); }
.page-hero.is-light h1 em { color: var(--gold); }
.page-hero-dek {
  margin-top: 24px; font-size: 18px; line-height: 1.6;
  color: rgba(232, 227, 211, 0.7); max-width: 640px;
}
.page-hero.is-light .page-hero-dek { color: var(--slate); }

/* Breadcrumbs */
.crumbs {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  color: rgba(232, 227, 211, 0.5);
  margin-bottom: 16px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.page-hero.is-light .crumbs { color: var(--slate-soft); }
.crumbs a:hover { color: var(--amber); }
.page-hero.is-light .crumbs a:hover { color: var(--gold); }
.crumbs .sep { opacity: 0.5; }

/* ============================================================
   TILE CARDS (services, scenarios, etc.)
   ============================================================ */
.tile-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

@media (max-width: 1080px) {
  .tile-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tile-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tile-grid-4, .tile-grid-3, .tile-grid-2 { grid-template-columns: 1fr; }
}

.tile-light {
  background: var(--paper-bright); border: 0.5px solid rgba(7, 17, 31, 0.1);
  border-radius: 14px; padding: 30px 26px 24px;
  box-shadow: 0 16px 44px rgba(7, 17, 31, 0.06);
  min-height: 340px;
  display: flex; flex-direction: column;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tile-light:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(7, 17, 31, 0.16);
  border-color: rgba(184, 148, 77, 0.5);
}
.tile-light:hover .tile-illustration svg { transform: scale(1.04); }
.tile-light:hover .tile-arrow-light { transform: translateX(4px); opacity: 1; }

.tile-idx-row {
  display: flex; align-items: center; justify-content: space-between;
}
.tile-idx-light {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--gold); font-weight: 600;
}
.tile-illustration {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 10px 0 16px;
}
.tile-illustration svg {
  width: 100%; height: auto; max-width: 160px; max-height: 160px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.tile-icon-stroke { fill: none; stroke: var(--gold); stroke-width: 1; }
.tile-heading {
  font-family: var(--font-serif); font-size: 16px; line-height: 1.32;
  color: var(--navy); font-weight: 500; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.tile-divider-light {
  height: 0.5px; background: rgba(7, 17, 31, 0.1);
  margin: 14px 0 12px;
}
.tile-footer-light {
  display: flex; justify-content: space-between; align-items: center;
}
.tile-tag-light {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em;
  color: var(--slate-soft); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.tile-tag-light::before { content: ''; width: 4px; height: 4px; background: var(--gold); display: inline-block; }
.tile-arrow-light {
  color: var(--gold); opacity: 0.5;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  transition: all 0.3s; display: inline-block;
}

/* Dark tiles (for dark sections) */
.tile-dark {
  background: var(--ink-elev);
  border: 0.5px solid rgba(232, 227, 211, 0.1);
  border-radius: 14px; padding: 30px 26px 24px;
  min-height: 280px;
  display: flex; flex-direction: column;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tile-dark:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 58, 0.4);
  background: rgba(28, 30, 42, 0.7);
}
.tile-dark-num {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--amber); margin-bottom: 16px;
}
.tile-dark-heading {
  font-family: var(--font-serif); font-size: 20px; line-height: 1.22;
  color: var(--bone-bright); font-weight: 500;
  margin-bottom: 14px;
}
.tile-dark-body {
  font-size: 14px; line-height: 1.6;
  color: rgba(232, 227, 211, 0.7);
  flex: 1;
}
.tile-dark-link {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
}

/* ============================================================
   ABOUT — Portrait + Bio
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 44px; align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.portrait-box {
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(7, 17, 31, 0.18);
}
.portrait-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-bio { color: var(--slate); font-size: 16px; line-height: 1.7; }
.about-bio p { margin-bottom: 14px; }
.about-bio p:last-child { margin-bottom: 0; }

.credentials {
  margin-top: 28px; padding-top: 24px;
  border-top: 0.5px solid rgba(7, 17, 31, 0.1);
  display: flex; gap: 36px; flex-wrap: wrap;
}
.credential-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  color: var(--gold); font-weight: 600;
  margin-bottom: 4px;
}
.credential-value {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--navy);
}

/* ============================================================
   INSIGHTS / ARTICLE CARDS
   ============================================================ */
.insight-card {
  background: var(--paper-bright); border-radius: 12px;
  padding: 28px;
  border: 0.5px solid rgba(7, 17, 31, 0.08);
  min-height: 240px;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 24px rgba(7, 17, 31, 0.04);
  transition: all 0.3s;
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(7, 17, 31, 0.1);
  border-color: rgba(184, 148, 77, 0.4);
}
.insight-meta {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em;
  color: var(--gold); margin-bottom: 14px; font-weight: 600;
}
.insight-title {
  font-family: var(--font-serif); font-size: 18px; line-height: 1.28;
  color: var(--navy); font-weight: 500; letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.insight-dek {
  font-size: 13.5px; line-height: 1.55; color: var(--slate);
  flex: 1;
}
.insight-link {
  margin-top: 18px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--gold); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-row { margin-bottom: 22px; }
.form-label {
  display: block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--slate-soft); font-weight: 600;
  margin-bottom: 8px;
}
.form-input, .form-textarea {
  width: 100%; padding: 12px 14px;
  background: var(--paper-bright);
  border: 0.5px solid rgba(7, 17, 31, 0.2);
  border-radius: 4px;
  font-family: var(--font-sans); font-size: 14px;
  color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 148, 77, 0.15);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #06080e;
  padding: 56px var(--container-pad) 28px;
  color: rgba(232, 227, 211, 0.65);
  border-top: 0.5px solid rgba(232, 227, 211, 0.08);
}
.footer-grid {
  max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 38px;
  border-bottom: 0.5px solid rgba(232, 227, 211, 0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand {
  font-family: var(--font-serif); font-size: 22px;
  color: var(--bone-bright); margin-bottom: 16px;
}
.footer-brand-img {
  height: 52px; width: auto; display: block;
  margin-bottom: 18px;
}
.footer-tagline {
  font-size: 13.5px; line-height: 1.55;
  color: rgba(232, 227, 211, 0.55);
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 32px; height: 32px;
  border: 0.5px solid rgba(212, 168, 58, 0.4);
  display: flex; align-items: center; justify-content: center;
  color: rgba(212, 168, 58, 0.7);
  transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--amber); color: var(--amber); background: rgba(212, 168, 58, 0.08); }
.footer-social svg { width: 14px; height: 14px; }

.footer-col-heading {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  color: rgba(212, 168, 58, 0.85);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13.5px; color: rgba(232, 227, 211, 0.65);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  max-width: var(--container-max); margin: 0 auto;
  padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  color: rgba(232, 227, 211, 0.4);
}
.footer-bottom a:hover { color: var(--amber); }

.footer-disclaimer {
  max-width: var(--container-max); margin: 20px auto 0;
  padding-top: 18px;
  border-top: 0.5px solid rgba(232, 227, 211, 0.06);
  font-size: 11px; line-height: 1.6;
  color: rgba(232, 227, 211, 0.4);
  font-style: italic;
}

/* ============================================================
   SERVICE DETAIL: TWO-COL CONTENT, PROCESS, DELIVERABLES
   ============================================================ */
.svc-two-col {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start;
}
@media (max-width: 980px) { .svc-two-col { grid-template-columns: 1fr; gap: 40px; } }

.svc-prose { font-size: 15px; line-height: 1.72; }
.sec-dark .svc-prose { color: rgba(232, 227, 211, 0.78); }
.sec-light .svc-prose { color: var(--slate); }
.svc-prose p { margin-bottom: 16px; }
.svc-prose p:last-child { margin-bottom: 0; }
.svc-prose strong { font-weight: 600; }
.sec-dark .svc-prose strong { color: var(--bone-bright); }
.sec-light .svc-prose strong { color: var(--navy); }
.svc-prose em { font-style: italic; }
.sec-dark .svc-prose em { color: var(--amber); }
.sec-light .svc-prose em { color: var(--gold); }

.svc-aside {
  padding: 28px;
  border-radius: 10px;
  position: relative;
}
.sec-dark .svc-aside { background: rgba(232, 227, 211, 0.03); border: 0.5px solid rgba(232, 227, 211, 0.1); }
.sec-light .svc-aside { background: var(--paper-bright); border: 0.5px solid rgba(7, 17, 31, 0.08); box-shadow: 0 8px 24px rgba(7, 17, 31, 0.04); }
.svc-aside-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; font-weight: 600;
  margin-bottom: 16px;
}
.sec-dark .svc-aside-label { color: var(--amber-soft); }
.sec-light .svc-aside-label { color: var(--gold); }
.svc-aside-title {
  font-family: var(--font-serif); font-size: 22px; line-height: 1.25; letter-spacing: -0.01em;
  font-weight: 500; margin-bottom: 18px;
}
.sec-dark .svc-aside-title { color: var(--bone-bright); }
.sec-light .svc-aside-title { color: var(--navy); }
.svc-aside-list { list-style: none; }
.svc-aside-list li {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; font-weight: 500;
  padding: 11px 0; display: flex; gap: 12px; align-items: flex-start;
  border-top: 0.5px solid rgba(232, 227, 211, 0.08);
}
.sec-light .svc-aside-list li { border-top: 0.5px solid rgba(7, 17, 31, 0.08); }
.svc-aside-list li:first-child { border-top: none; }
.svc-aside-list li::before {
  content: '+'; flex-shrink: 0; line-height: 1;
}
.sec-dark .svc-aside-list li { color: rgba(232, 227, 211, 0.78); }
.sec-dark .svc-aside-list li::before { color: var(--amber); }
.sec-light .svc-aside-list li { color: var(--slate); }
.sec-light .svc-aside-list li::before { color: var(--gold); }

/* Process steps — numbered cards 4-up */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 1080px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  padding: 28px 22px;
  border-radius: 10px;
  position: relative;
  min-height: 220px;
  display: flex; flex-direction: column;
}
.sec-light .process-step { background: var(--paper-bright); border: 0.5px solid rgba(7, 17, 31, 0.08); box-shadow: 0 6px 18px rgba(7, 17, 31, 0.04); }
.sec-dark .process-step { background: rgba(232, 227, 211, 0.03); border: 0.5px solid rgba(232, 227, 211, 0.1); }

.process-num {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; font-weight: 600;
  margin-bottom: 18px;
}
.sec-light .process-num { color: var(--gold); }
.sec-dark .process-num { color: var(--amber); }
.process-num::before {
  content: ''; display: inline-block; width: 24px; height: 1px;
  background: currentColor; vertical-align: middle; margin-right: 10px; opacity: 0.5;
}
.process-step-title {
  font-family: var(--font-serif); font-size: 20px; line-height: 1.25; letter-spacing: -0.01em;
  font-weight: 500; margin-bottom: 12px;
}
.sec-light .process-step-title { color: var(--navy); }
.sec-dark .process-step-title { color: var(--bone-bright); }
.process-step-body {
  font-size: 13.5px; line-height: 1.6;
  flex: 1;
}
.sec-light .process-step-body { color: var(--slate); }
.sec-dark .process-step-body { color: rgba(232, 227, 211, 0.7); }

/* ============================================================
   ARTICLE / SINGLE INSIGHT PROSE
   ============================================================ */
.article-body {
  max-width: 720px; margin: 0 auto;
  font-family: var(--font-serif); font-size: 18px; line-height: 1.72;
  color: var(--navy);
}
.article-body p { margin-bottom: 22px; }
.article-body h2 {
  font-family: var(--font-sans); font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--navy);
  margin-top: 44px; margin-bottom: 18px;
}
.article-body h3 {
  font-family: var(--font-sans); font-size: 17px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--navy);
  margin-top: 32px; margin-bottom: 12px;
  text-transform: uppercase;
}
.article-body em { font-style: italic; color: var(--gold); }
.article-body strong { font-weight: 500; color: var(--navy); }
.article-body blockquote {
  margin: 28px 0; padding: 6px 0 6px 24px;
  border-left: 2px solid var(--gold);
  font-style: italic; color: var(--slate);
  font-size: 17px;
}
.article-body ul, .article-body ol { margin: 18px 0 22px 22px; }
.article-body li { margin-bottom: 8px; }

.article-back {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; font-weight: 600;
  color: var(--gold); margin-bottom: 28px;
  transition: gap 0.2s;
}
.article-back:hover { gap: 14px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-block { margin-bottom: 36px; }
.contact-block-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; font-weight: 600;
  color: var(--gold); margin-bottom: 10px;
}
.contact-block-value {
  font-family: var(--font-serif); font-size: 22px; color: var(--navy); letter-spacing: -0.01em;
  font-weight: 500;
}
.contact-block-value a { color: var(--navy); }
.contact-block-value a:hover { color: var(--gold); }
.contact-block-meta { margin-top: 6px; font-size: 13px; color: var(--slate-soft); }

/* ============================================================
   404
   ============================================================ */
.fof {
  min-height: calc(100vh - 200px);
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bone);
  padding: 80px var(--container-pad);
}
.fof-inner { text-align: center; max-width: 600px; }
.fof-code {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; font-weight: 600;
  color: var(--amber); margin-bottom: 20px;
}
.fof-headline {
  font-family: var(--font-serif); font-size: clamp(36px, 5vw, 52px); line-height: 1.1;
  color: var(--bone-bright); letter-spacing: -0.02em; font-weight: 400;
  margin-bottom: 18px;
}
.fof-headline em { font-style: italic; color: var(--amber); }
.fof-dek {
  font-size: 15px; line-height: 1.6;
  color: rgba(232, 227, 211, 0.65);
  margin-bottom: 30px;
}
.fof-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   INSIGHT GRID
   ============================================================ */
.insight-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 980px) { .insight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .insight-grid { grid-template-columns: 1fr; } }

.insight-card.featured {
  grid-column: span 3;
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  min-height: 280px;
  padding: 36px;
}
@media (max-width: 980px) { .insight-card.featured { grid-column: span 2; grid-template-columns: 1fr; } }
@media (max-width: 600px) { .insight-card.featured { grid-column: 1; } }

.insight-card.featured .insight-title { font-size: 26px; line-height: 1.2; }
.insight-card.featured .insight-dek { font-size: 15px; }
.insight-card.featured .featured-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--ink) 0%, #1a2332 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.insight-card.featured .featured-badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; font-weight: 600;
  color: var(--amber); padding: 4px 10px;
  border: 0.5px solid rgba(212, 168, 58, 0.4);
  background: rgba(10, 12, 20, 0.6);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-state.is-active { opacity: 1; visibility: visible; }
}

/* Responsive hero stack */
@media (max-width: 1100px) {
  .hero-state { grid-template-columns: 1fr; gap: 32px; }
  .v-stage { height: 460px; }
}
