/* ============================================================
   NOMADES AGENCY — 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,400;1,500&family=Space+Grotesk:wght@300;400;500;600;700;800&display=swap');

:root {
  --void:    #0B0B0E;
  --void-1:  #1C1C1C;
  --card:    #111115;
  --red:     #B01C2E;
  --amber:   #F0AA00;
  --white:   #FAFAF7;
  --grey:    #666;
  --border:  #18181C;
  --font:    'Space Grotesk', sans-serif;
  --serif:   'Cormorant Garamond', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (hover: hover) and (pointer: fine) {
  body, a, button, [data-agent-id], .ap-gallery-strip img, .drag-scroll { cursor: none; }
}


/* ═══════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════ */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.cursor-dot {
  width: 5px; height: 5px;
  background: var(--amber);
  transition: opacity 0.2s;
}

.cursor-ring {
  width: 28px; height: 28px;
  border: 1px solid rgba(240,170,0,0.3);
  transition: width 0.35s cubic-bezier(.22,1,.36,1),
              height 0.35s cubic-bezier(.22,1,.36,1),
              border-color 0.3s,
              opacity 0.3s;
}

.cursor-ring.is-hover {
  width: 52px; height: 52px;
  border-color: rgba(240,170,0,0.65);
}

.cursor-dot.is-hidden,
.cursor-ring.is-hidden { opacity: 0; }


/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 32px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .4s, background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 20px 64px;
  background: rgba(11,11,14,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
}

.nav-logo img {
  height: 44px;
  filter: invert(1);
  display: block;
  opacity: .85;
  transition: opacity .2s;
}
.nav-logo:hover img { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav-links a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #444;
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  color: var(--void) !important;
  background: var(--amber) !important;
  padding: 10px 22px !important;
  border-radius: 2px;
  transition: opacity .2s, transform .2s !important;
}
.nav-cta:hover { opacity: .88 !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
  position: relative;
  background: none;
  border: none;
}
.nav-hamburger span {
  width: 22px; height: 1.5px;
  background: var(--white);
  display: block;
  transition: all .3s;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--smoke);
  padding: 6px 4px;
  z-index: 1100;
  position: relative;
  transition: color .2s;
  text-transform: uppercase;
}
.lang-toggle:hover { color: var(--white); }
.lang-toggle .lang-en,
.lang-toggle .lang-tr {
  transition: color .2s;
  color: var(--smoke);
}
.lang-toggle .lang-en.is-active,
.lang-toggle .lang-tr.is-active {
  color: var(--amber);
}
.lang-toggle .lang-sep { color: var(--smoke); opacity: .45; }


/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */

.hero {
  height: 100svh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
}

/* Parallax container */
.hero-parallax {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-pax-img {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  will-change: transform;
  filter: brightness(0.55) saturate(1.1);
}

.hero-pax-fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 60%, rgba(11,11,14,0.7) 0%, transparent 70%),
    linear-gradient(to right, rgba(11,11,14,0.85) 0%, rgba(11,11,14,0.3) 55%, rgba(11,11,14,0.1) 100%),
    linear-gradient(to top, rgba(11,11,14,0.9) 0%, transparent 30%);
}

/* Signal canvas */
#spiral-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease .4s;
}
#spiral-canvas.is-ready { opacity: 1; }

/* Text content */
.hero-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 72px 48px;
  padding-top: calc(80px + 48px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0;
  animation: fade-up .9s ease .5s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--amber);
  flex-shrink: 0;
}

/* Line reveal animation */
.hero-h1 .line {
  display: block;
  overflow: hidden;
  line-height: .95;
  padding-top: 0.18em;
  padding-bottom: 0.14em;
}
.hero-h1 .line .line-inner {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: line-up 1s cubic-bezier(0.77,0,0.175,1) forwards;
}
.hero-h1 .line:nth-child(1) .line-inner { animation-delay: 0.55s; }
.hero-h1 .line:nth-child(2) .line-inner { animation-delay: 0.75s; }

@keyframes line-up {
  to { opacity: 1; transform: translateY(0); }
}

.hero-h1 {
  font-size: clamp(64px, 8.5vw, 128px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  max-width: 55vw;
}
.hero-h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: -.02em;
  font-size: 1.04em;
}

.hero-tagline {
  font-size: 14px;
  font-style: italic;
  color: var(--grey);
  margin-top: 32px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fade-up .9s ease .95s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  opacity: 0;
  animation: fade-up .9s ease 1.1s forwards;
}

.hero-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  opacity: 0;
  animation: fade-up .9s ease 1.25s forwards;
}

.hero-scroll-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #2A2A2E;
}
.scroll-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: .3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.hero-meta span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #252528;
}
.hero-meta span.lit { color: #333; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */

.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--amber);
  padding: 15px 36px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.btn-amber:hover { opacity: .88; transform: scale(1.035); }

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #252528;
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.btn-line:hover { color: var(--white); border-color: #555; }


/* ═══════════════════════════════════════
   MARQUEE
═══════════════════════════════════════ */

.marquee-band {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0C0C10;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 36px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #222226;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
}
.marquee-item.lit { color: var(--amber); }

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


/* ═══════════════════════════════════════
   CLIP REVEAL — Section headlines
═══════════════════════════════════════ */

.clip-reveal {
  clip-path: inset(0 100% 0 0);
}
.clip-reveal.is-visible {
  clip-path: inset(0 0% 0 0);
}


/* ═══════════════════════════════════════
   MANIFESTO
═══════════════════════════════════════ */

.manifesto {
  position: relative;
  padding: 120px 72px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.manifesto-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.05;
  filter: saturate(0.5);
  pointer-events: none;
  z-index: 0;
}

.manifesto-label,
.manifesto-display,
.manifesto-cols {
  position: relative;
  z-index: 1;
}

.manifesto-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.manifesto-label::after {
  content: '';
  width: 48px; height: 1px;
  background: #1E1E22;
}

.manifesto-display {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 80px;
  padding-bottom: 0.22em;
}
.manifesto-display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  letter-spacing: normal;
  font-size: 1.05em;
}

.manifesto-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}
.manifesto-col {
  background: var(--void);
  padding: 40px 36px;
  transition: background .4s;
}
.manifesto-col:hover { background: #0E0E12; }
.manifesto-col-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--red);
  margin-bottom: 16px;
}
.manifesto-col-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}
.manifesto-col-text {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.8;
}


/* ═══════════════════════════════════════
   SERVICES
═══════════════════════════════════════ */

.services {
  padding: 120px 72px;
  border-bottom: 1px solid var(--border);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--amber) 25%, rgba(240,170,0,0.5) 65%, transparent 100%);
  z-index: 2;
  animation: manifesto-beacon 5s ease-in-out infinite;
}

.services-header {
  margin-bottom: 72px;
}

.services-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.services-label::before {
  content: ''; width: 40px; height: 1px;
  background: var(--amber);
  flex-shrink: 0;
}

.services-headline {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  margin-top: 16px;
  padding-bottom: 0.22em;
}
.services-headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  font-size: 1.05em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.svc-card {
  background: #0A0A0E;
  padding: 56px 44px 52px;
  position: relative;
  overflow: hidden;
  transition: background .35s, transform .45s cubic-bezier(.22,1,.36,1);
}
.svc-card:hover { transform: translateY(-3px); }
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--red) 0%, var(--amber) 45%, rgba(240,170,0,0.12) 100%);
  opacity: 0;
  transition: opacity .45s;
}
.svc-card:hover { background: #0C0C12; }
.svc-card:hover::before { opacity: 1; }

.svc-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(176,28,46,0.55);
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color .35s;
}
.svc-num::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(176,28,46,0.12);
  max-width: 40px;
}
.svc-card:hover .svc-num { color: rgba(176,28,46,0.85); }

.svc-title {
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.0;
  margin-bottom: 10px;
}

.svc-descriptor {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
  opacity: .75;
  transition: opacity .3s, letter-spacing .35s;
}
.svc-card:hover .svc-descriptor {
  opacity: 1;
  letter-spacing: .36em;
}

.svc-body {
  font-size: 13px;
  color: rgba(250,250,247,0.40);
  line-height: 1.9;
  margin-bottom: 36px;
}

.svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 28px;
}
.svc-list li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(250,250,247,0.25);
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color .25s;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.svc-list li::before {
  content: '';
  width: 16px; height: 1px;
  background: rgba(240,170,0,0.25);
  flex-shrink: 0;
  transition: background .25s, width .25s;
}
.svc-card:hover .svc-list li {
  color: rgba(250,250,247,0.50);
}
.svc-card:hover .svc-list li::before {
  background: rgba(240,170,0,0.55);
  width: 24px;
}


/* ═══════════════════════════════════════
   STATS BAND
═══════════════════════════════════════ */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0A0A0D;
}

.stat-item {
  padding: 56px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-right: 1px solid var(--border);
  transition: background .4s;
  cursor: default;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: #0E0E12; }

.stat-num {
  font-size: clamp(40px, 4.5vw, 68px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--white);
  transition: color .3s;
  min-width: 2ch;
  text-align: center;
}
.stat-item:hover .stat-num { color: var(--amber); }

.stat-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: #252530;
}


/* ═══════════════════════════════════════
   LAVA ACCENT DIVIDER
═══════════════════════════════════════ */

.lava-accent {
  width: 100%;
  height: 60px;
  overflow: hidden;
  position: relative;
  border-top: 1px solid #0D0D10;
}

.lava-accent img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: 50% 48%;
  margin-top: -120px;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}


/* ═══════════════════════════════════════
   THE SOVEREIGN — Victor
═══════════════════════════════════════ */

.sovereign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  background: #0C0C10;
}

.sovereign-info {
  padding: 120px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}

.sovereign-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  color: var(--red);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sovereign-num::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--red);
  opacity: .4;
}

.sovereign-name {
  font-size: clamp(56px, 6.5vw, 100px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 16px;
}

.sovereign-title-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 48px;
}

.sovereign-desc {
  font-size: 17px;
  font-style: italic;
  color: var(--grey);
  line-height: 1.85;
  max-width: 440px;
  border-left: 2px solid var(--red);
  padding-left: 24px;
}

.sovereign-visual {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #0A0A0D;
}
.sovereign-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: brightness(.85) contrast(1.05);
  transition: transform 6s ease-in-out;
}
.sovereign-visual:hover img {
  transform: scale(1.025);
}
.sovereign-visual-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #141418 0%, #0B0B0E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sovereign-visual-placeholder span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #1E1E22;
}
.sovereign-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(12,12,16,.5) 0%, transparent 35%);
  z-index: 1;
  pointer-events: none;
}
.sovereign-visual::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to top, #0C0C10 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.sovereign-story-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.32);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(250,250,247,0.08);
  padding: 0 0 4px;
  margin-top: 40px;
  transition: color .2s, border-color .2s;
}
.sovereign-story-btn:hover {
  color: var(--amber);
  border-color: rgba(240,170,0,0.3);
}


/* ═══════════════════════════════════════
   THE SIGNAL — New section
═══════════════════════════════════════ */

.signal-section {
  border-bottom: 1px solid var(--border);
  background: #0A0A0D;
  overflow: hidden;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}

.signal-visual {
  position: relative;
  overflow: hidden;
}

.signal-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.signal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  transition: transform 0.15s linear;
  filter: brightness(0.7) saturate(1.05);
}

.signal-img-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 60%, rgba(10,10,13,0.95) 100%),
    linear-gradient(to top, rgba(10,10,13,0.3) 0%, transparent 50%);
}

.signal-content {
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.signal-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.signal-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--amber);
  flex-shrink: 0;
}

.signal-h2 {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 36px;
  padding-bottom: 0.22em;
}

.signal-body {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.85;
  max-width: 420px;
  margin-bottom: 0;
}

/* Frequency spectrum */
.freq-spectrum {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 80px;
  margin-top: 52px;
  margin-bottom: 20px;
}

.freq-bar {
  flex: 1;
  height: 0;
  max-height: 80px;
  background: #1C1C24;
  border-radius: 2px 2px 0 0;
  transition: height 0.9s cubic-bezier(0.22,1,0.36,1);
  transition-delay: var(--fd, 0s);
  align-self: flex-end;
}

[data-freq].is-visible .freq-bar {
  height: var(--fh, 20%);
}

.freq-bar.freq-amber {
  background: rgba(240,130,0,0.4);
}
.freq-bar.freq-bright {
  background: var(--amber);
  box-shadow: 0 0 16px rgba(240,170,0,0.5), 0 0 40px rgba(240,170,0,0.2);
}

.freq-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.freq-label-low {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #2A2A32;
}
.freq-label-high {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--amber);
}


/* ═══════════════════════════════════════
   DUAL FEATURE — Citadel + Realm
═══════════════════════════════════════ */

.dual-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 90vh;
  min-height: 560px;
  border-bottom: 1px solid var(--border);
}

.df-col {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.df-col--realm {
  border-left: 1px solid var(--border);
}

.df-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  filter: brightness(0.5) saturate(1.05);
}

.df-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(11,11,14,0.97) 0%, rgba(11,11,14,0.65) 35%, rgba(11,11,14,0.15) 70%, transparent 100%),
    linear-gradient(to right, rgba(11,11,14,0.45) 0%, transparent 55%);
}

.df-vignette--left {
  background:
    linear-gradient(to top, rgba(11,11,14,0.97) 0%, rgba(11,11,14,0.65) 35%, rgba(11,11,14,0.15) 70%, transparent 100%),
    linear-gradient(to left, rgba(11,11,14,0.45) 0%, transparent 55%);
}

.df-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 56px 72px;
}

.df-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.df-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.df-eyebrow--amber { color: var(--amber); }
.df-eyebrow--amber::before { background: var(--amber); }
.df-eyebrow--red { color: var(--red); }
.df-eyebrow--red::before { background: var(--red); }

.df-display {
  font-size: clamp(32px, 3.5vw, 60px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .92;
  margin-bottom: 22px;
}
.df-display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: -.02em;
  font-size: 1.04em;
}

.df-body {
  font-size: 13px;
  color: rgba(250,250,247,0.5);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 28px;
}

.df-coords {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.df-coords span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #303038;
  padding: 7px 14px;
  border: 1px solid #1E1E24;
  border-radius: 1px;
}


/* ═══════════════════════════════════════
   HQ SPACES — Horizontal Drag
═══════════════════════════════════════ */

.hq-section {
  border-bottom: 1px solid var(--border);
  background: #0C0C10;
}

.hq-header {
  padding: 80px 72px 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.hq-header-left { }

.hq-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hq-label::after {
  content: '';
  width: 40px; height: 1px;
  background: #1E1E22;
}

.hq-title {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 16px;
}
.hq-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: -.02em;
  font-size: 1.05em;
}

.hq-sub {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.7;
}

.hq-hint {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #2A2A2E;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  align-self: flex-end;
}

.hq-scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  gap: 4px;
  background: var(--border);
}
.hq-scroll::-webkit-scrollbar { display: none; }
.hq-scroll.is-dragging { }

.hq-card {
  flex-shrink: 0;
  width: 360px;
  background: #0E0E14;
  display: flex;
  flex-direction: column;
}

.hq-visual {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
}
.hq-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(.72) saturate(1.05);
  transition: filter .5s, transform .7s ease;
}
.hq-card:hover .hq-visual img {
  filter: brightness(.9);
  transform: scale(1.04);
}

.hq-info {
  padding: 20px 24px 26px;
  flex: 1;
}

.hq-code {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 8px;
  opacity: .6;
}

.hq-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.hq-desc {
  font-size: 11px;
  color: var(--grey);
  line-height: 1.7;
}


/* ═══════════════════════════════════════
   THE ARMY — Unit Sections
═══════════════════════════════════════ */

.army-section {
  border-bottom: 1px solid var(--border);
}

.army-section-header {
  padding: 80px 72px 72px;
  border-bottom: 1px solid var(--border);
  background: #0A0A0D;
}

.army-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.army-section-label::after {
  content: '';
  width: 40px; height: 1px;
  background: #1E1E22;
}

.army-section-title {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 24px;
}
.army-section-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  letter-spacing: -.02em;
  font-size: 1.05em;
}

.army-section-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2A2A2E;
}

/* Unit row */
.unit {
  border-bottom: 1px solid var(--border);
}

.unit-header {
  position: relative;
  overflow: hidden;
  background: #08080C;
  border-bottom: 1px solid var(--border);
  padding: 48px 72px;
}

.unit-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.07;
  filter: saturate(0.4);
  pointer-events: none;
}

.unit-num-ghost {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 180px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--amber);
  opacity: 0.035;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.unit-header-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.unit-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.unit-range {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red);
}

.unit-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .28em;
  color: rgba(240,170,0,0.4);
  padding: 4px 10px;
  border: 1px solid rgba(240,170,0,0.12);
  border-radius: 1px;
}

.unit-name {
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .95;
  margin-bottom: 12px;
}

.unit-tagline {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.6;
}

/* Unit Conductor — Maestro featured display within Crucible */
/* ── Maestro: horizontal card (portrait left, info right) ── */
.agent-card--maestro {
  width: 560px;
  display: flex;
  flex-direction: row;
  cursor: pointer;
}
.agent-card--maestro .agent-visual {
  position: relative;
  inset: auto;
  flex-shrink: 0;
  width: 240px;
  height: 100%;
}
.agent-card--maestro .agent-info {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  flex: 1;
  padding: 32px 24px 28px;
  background: #09090E;
  border-left: 1px solid rgba(240,170,0,0.10);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.maestro-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.maestro-badge {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--amber);
  background: rgba(240,170,0,0.06);
  border: 1px solid rgba(240,170,0,0.18);
  padding: 3px 8px;
}
.maestro-cta {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240,170,0,0.40);
  margin-top: 20px;
  display: block;
  transition: color .3s;
}
.agent-card--maestro:hover .maestro-cta {
  color: var(--amber);
}

/* ── Crucible: Maestro hero row ── */
.crucible-maestro {
  background: var(--border);
  padding: 0 2px 2px;
}

.agent-card--maestro-hero {
  width: 100%;
  height: 460px;
}
.agent-card--maestro-hero .agent-visual img {
  object-position: center 22%;
  filter: brightness(.55) saturate(1.1);
}
.agent-card--maestro-hero:hover .agent-visual img {
  filter: brightness(.72) saturate(1.1);
}
.agent-card--maestro-hero .agent-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  align-items: end;
  padding: 100px 60px 44px;
  background: linear-gradient(to top,
    rgba(6,6,10,0.98) 0%,
    rgba(6,6,10,0.88) 40%,
    rgba(6,6,10,0.55) 68%,
    transparent 100%);
}
.maestro-info-left,
.maestro-info-right { min-width: 0; }

.agent-card--maestro-hero .agent-desc {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

/* ── Crucible: 3×2 grid for agents 15-20 ── */
.crucible-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  padding: 0 2px 2px;
}
.crucible-grid .agent-card {
  width: 100%;
  flex-shrink: 1;
}

.unit-scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  background: var(--border);
  gap: 4px;
}
.unit-scroll::-webkit-scrollbar { display: none; }
.unit-scroll.is-dragging { }

.agent-card {
  flex-shrink: 0;
  width: 380px;
  height: 600px;
  position: relative;
  overflow: hidden;
  background: #0E0E14;
}
.agent-card:hover .agent-bar { transform: scaleX(1); }
.agent-card:hover .agent-visual img {
  filter: brightness(.88);
  transform: scale(1.04);
}

.agent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(to right, var(--red), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}

.agent-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.agent-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: brightness(.62);
  transition: filter .5s, transform .7s ease;
}

.agent-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 88px 28px 28px;
  background: linear-gradient(to top, rgba(8,8,12,0.99) 0%, rgba(8,8,12,0.88) 40%, transparent 100%);
}

.agent-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  display: block;
}

.agent-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.0;
  margin-bottom: 7px;
}

.agent-role {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.agent-desc {
  font-size: 11px;
  font-style: italic;
  color: rgba(250,250,247,0.38);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ═══════════════════════════════════════
   PROCESS
═══════════════════════════════════════ */

.process {
  padding: 160px 72px;
  border-bottom: 1px solid var(--border);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.process-cosmic-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0.5) brightness(0.4);
}

.process-label,
.process-headline,
.process-list {
  position: relative;
  z-index: 1;
}

.process-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.process-label::after {
  content: ''; width: 40px; height: 1px;
  background: #1E1E22;
}

.process-headline {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .90;
  margin-bottom: 80px;
  padding-bottom: 0.22em;
}
.process-headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  font-size: 1.05em;
}

.process-item {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 48px 88px;
  padding: 56px 0 56px 32px;
  border-top: 1px solid rgba(240,170,0,0.06);
  align-items: start;
  transition: background .3s;
  cursor: default;
  position: relative;
  z-index: 1;
}
.process-item:last-child { border-bottom: 1px solid rgba(240,170,0,0.06); }

/* Red left-edge accent that slides in on hover */
.process-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity .4s;
}
.process-item:hover::before { opacity: 0.7; }

.p-num {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  color: rgba(240,170,0,0.07);
  font-variant-numeric: lining-nums;
  transition: color .5s, text-shadow .5s;
  padding-left: 0;
}
.process-item:hover .p-num {
  color: rgba(176,28,46,0.32);
  text-shadow: 0 0 80px rgba(176,28,46,0.18);
}

.p-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
  padding-top: 8px;
  line-height: 1.1;
}
.p-step {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red);
  opacity: .9;
  margin-bottom: 10px;
  display: block;
}
.p-step::before {
  content: '// ';
  opacity: 0.5;
  letter-spacing: .05em;
}

.p-desc {
  font-size: 14px;
  color: rgba(250,250,247,0.38);
  line-height: 1.9;
  padding-top: 8px;
}


/* ═══════════════════════════════════════
   CTA
═══════════════════════════════════════ */

.cta-section {
  padding: 160px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #0C0C10;
}

.cta-light-leak {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  mix-blend-mode: screen;
  pointer-events: none;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1200px; height: 600px;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(176,28,46,.1) 0%, transparent 55%);
  pointer-events: none;
}
.cta-bloom {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(240,170,0,0.05) 0%, transparent 65%);
  pointer-events: none;
  animation: bloom-pulse 6s ease-in-out infinite;
}
@keyframes bloom-pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: .6; transform: translateX(-50%) scale(1.08); }
}

.cta-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.cta-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 40px;
}

.cta-headline {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 32px;
}

.cta-sub {
  font-size: 15px;
  font-style: italic;
  color: var(--grey);
  margin-bottom: 60px;
  line-height: 1.7;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--amber);
  padding: 20px 56px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.cta-btn:hover { opacity: .88; transform: scale(1.035); }

.cta-note {
  margin-top: 24px;
  font-size: 11px;
  color: #252528;
}
.cta-note a { color: #333; text-decoration: underline; text-underline-offset: 3px; }
.cta-note a:hover { color: var(--grey); }

/* Contact Form */
.cta-inner { max-width: 760px; }
.cta-sub { margin-bottom: 0; }

.contact-form {
  text-align: left;
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 56px;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}
.cf-field {
  position: relative;
  margin-bottom: 48px;
}
.cf-field--full { margin-bottom: 48px; }
.cf-field label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.cf-field input,
.cf-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0 0 18px 0;
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  font-family: var(--font);
  transition: border-color .3s;
  outline: none;
  resize: none;
  box-sizing: border-box;
  letter-spacing: .01em;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: rgba(255,255,255,0.2);
  font-weight: 300;
}
.cf-field::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width .45s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.cf-field:focus-within::after { width: 100%; }

.cf-actions { text-align: center; }

.cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--amber);
  padding: 20px 56px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  font-family: var(--font);
}
.cf-submit:hover { opacity: .88; transform: scale(1.035); }
.cf-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.cf-success {
  padding: 64px 0;
  text-align: center;
}
.cf-success-icon {
  font-size: 28px;
  color: var(--amber);
  margin-bottom: 20px;
  line-height: 1;
}
.cf-success-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.cf-success-sub { font-size: 14px; color: var(--grey); }

@media (max-width: 640px) {
  .cf-row { grid-template-columns: 1fr; }
  .cf-submit { width: 100%; justify-content: center; }
}


/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */

footer {
  padding: 44px 72px;
  border-top: 1px solid rgba(240,170,0,0.12);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-logo img {
  height: 38px; filter: invert(1);
  opacity: .45; transition: opacity .2s;
}
.footer-logo:hover img { opacity: .72; }

.footer-tagline {
  font-size: 11px;
  color: rgba(240,170,0,0.28);
  font-style: italic;
}

.footer-links {
  display: flex; gap: 36px;
  justify-self: end;
}
.footer-links a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240,170,0,0.35);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--amber); }


/* ═══════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1),
              transform .8s cubic-bezier(.22,1,.36,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal][data-d="1"] { transition-delay: .12s; }
[data-reveal][data-d="2"] { transition-delay: .24s; }
[data-reveal][data-d="3"] { transition-delay: .36s; }
[data-reveal][data-d="4"] { transition-delay: .5s; }

/* Clip-reveal elements also need data-reveal transition for opacity */
.clip-reveal[data-reveal] {
  opacity: 1; /* clip-path handles the reveal, not opacity */
  transform: none;
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}



/* ═══════════════════════════════════════
   THE SIGNAL CHRONICLE — Horizontal Drag
═══════════════════════════════════════ */

.chronicle {
  border-bottom: 1px solid var(--border);
  background: #0A0A0D;
}

.chronicle-header {
  padding: 80px 72px 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.chronicle-header-left { }

.chronicle-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.chronicle-label::after {
  content: '';
  width: 40px; height: 1px;
  background: #1E1E22;
}

.chronicle-title {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 16px;
}
.chronicle-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: -.02em;
  font-size: 1.05em;
}

.chronicle-sub {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.7;
}

.chronicle-hint {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #2A2A2E;
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: flex-end;
  padding-bottom: 4px;
}

.chronicle-scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  gap: 4px;
  background: var(--border);
}
.chronicle-scroll::-webkit-scrollbar { display: none; }
.chronicle-scroll.is-dragging { }

.chronicle-card {
  flex-shrink: 0;
  width: 420px;
  background: #0E0E14;
  display: flex;
  flex-direction: column;
}

.chronicle-card-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}
.chronicle-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(.68) saturate(1.05);
  transition: filter .5s, transform .7s ease;
}
.chronicle-card:hover .chronicle-card-img img {
  filter: brightness(.88);
  transform: scale(1.04);
}

.chronicle-card-text {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cc-year {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-year::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--red);
  opacity: .5;
  flex-shrink: 0;
}

.cc-event {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.cc-desc {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.8;
  flex: 1;
}

.chronicle-card--amber {
  border: 1px solid rgba(240,170,0,0.22);
  box-shadow: 0 0 32px rgba(240,170,0,0.04), inset 0 0 0 1px rgba(240,170,0,0.06);
}
.chronicle-card--amber .cc-year {
  color: var(--amber);
}
.chronicle-card--amber .cc-year::before {
  background: var(--amber);
}


/* ═══════════════════════════════════════
   AGENT POPUP
═══════════════════════════════════════ */

.agent-popup {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.agent-popup.is-open {
  opacity: 1;
  pointer-events: all;
}

.ap-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ap-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 95vw);
  max-height: 88vh;
  background: #0F0F15;
  border: 1px solid rgba(240,170,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(28px) scale(0.97);
  transition: transform .42s cubic-bezier(.22,1,.36,1);
}
.agent-popup.is-open .ap-panel {
  transform: translateY(0) scale(1);
}

.ap-close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 10;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(240,170,0,0.14);
  background: rgba(10,10,14,0.7);
  color: rgba(250,250,247,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s, background .2s;
}
.ap-close:hover {
  border-color: rgba(240,170,0,0.4);
  color: var(--white);
  background: rgba(20,20,28,0.9);
}

.ap-content {
  display: grid;
  grid-template-columns: 360px 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.ap-portrait {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.ap-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(.78);
  display: block;
}
.ap-portrait-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 50%, rgba(15,15,21,0.96) 100%),
    linear-gradient(to top, rgba(15,15,21,0.45) 0%, transparent 35%);
  pointer-events: none;
}

.ap-details {
  padding: 48px 48px 36px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(240,170,0,0.1) transparent;
}

.ap-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(240,170,0,0.08);
}

.ap-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
}

.ap-name {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.0;
  margin-bottom: 10px;
}

.ap-role {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber);
}

.ap-story {
  font-size: 14px;
  color: rgba(250,250,247,0.58);
  line-height: 1.9;
  flex: 1;
}
.ap-story p { margin-bottom: 16px; }
.ap-story p:last-child { margin-bottom: 0; }

.ap-gallery {
  border-top: 1px solid rgba(240,170,0,0.07);
  padding: 18px 20px 16px;
  flex-shrink: 0;
}
.ap-gallery-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: #282834;
  margin-bottom: 12px;
}

.ap-gallery-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ap-gallery-strip::-webkit-scrollbar { display: none; }

.ap-gallery-strip img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
  filter: brightness(.65) saturate(0.9);
  border: 1px solid rgba(240,170,0,0.05);
  cursor: pointer;
  transition: filter .3s, transform .25s;
}
.ap-gallery-strip img:hover {
  filter: brightness(1) saturate(1.05);
  transform: scale(1.03);
}

/* In-popup lightbox */
.ap-lightbox {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(5,5,8,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.ap-lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}
.ap-lightbox-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 21;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(240,170,0,0.2);
  background: rgba(10,10,14,0.8);
  color: rgba(250,250,247,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.ap-lightbox-close:hover {
  border-color: rgba(240,170,0,0.5);
  color: var(--white);
}
#ap-lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  display: block;
}


/* ═══════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════ */

@media (max-width: 768px) {
  .nav-links {
    position: fixed; inset: 0;
    background: var(--void);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    display: none;
    z-index: 1000;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 18px; }
  .nav-hamburger { display: flex; }
}


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

@media (max-width: 860px) {
  .dual-feature {
    grid-template-columns: 1fr;
    height: auto;
  }
  .df-col {
    height: 70vh;
    min-height: 420px;
  }
  .df-col--realm {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 1280px) {
  .manifesto-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .process-item { grid-template-columns: 100px 1fr; gap: 36px 56px; padding: 44px 0 44px 24px; }
  .p-desc { grid-column: 2; }
  .p-num { font-size: 56px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-visual { height: 420px; position: relative; }
  .signal-img-wrap { position: absolute; inset: 0; }
  .signal-img-overlay {
    background:
      linear-gradient(to bottom, transparent 50%, rgba(10,10,13,0.98) 100%),
      linear-gradient(to right, transparent 50%, rgba(10,10,13,0.5) 100%);
  }
  .signal-content { padding: 80px 72px; }
}

@media (max-width: 900px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 40px 0; }
  .nav { padding: 24px 32px; }
  .nav.is-scrolled { padding: 16px 32px; }

  .hero-body { padding: 0 32px 40px; padding-top: calc(72px + 40px); }
  .hero-h1 { max-width: 80vw; font-size: clamp(52px, 10vw, 80px); }

  .manifesto { padding: 100px 32px; }
  .manifesto-cols { grid-template-columns: 1fr; }

  .services { padding: 80px 32px; }
  .services-grid { grid-template-columns: 1fr; gap: 2px; }

  .crucible-maestro { padding: 0 2px 2px; }
  .agent-card--maestro-hero { height: 380px; }
  .agent-card--maestro-hero .agent-info { grid-template-columns: 1fr; gap: 20px; padding: 60px 32px 32px; }
  .crucible-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; padding: 0 2px 2px; }

  .sovereign { grid-template-columns: 1fr; }
  .sovereign-info { padding: 80px 32px; border-right: none; border-bottom: 1px solid var(--border); }
  .sovereign-visual { min-height: 480px; }

  .signal-content { padding: 80px 32px; }

  .df-content { padding: 0 32px 56px; }

  .army-section-header { padding: 60px 32px 48px; }
  .unit-header { padding: 36px 32px; }
  .hq-header { padding: 60px 32px 40px; }
  .hq-hint { display: none; }

  .process { padding: 100px 32px; }
  .process-item { grid-template-columns: 60px 1fr; gap: 24px 32px; padding: 40px 0 40px 16px; }
  .p-num { font-size: 44px; }

  .cta-section { padding: 100px 32px; }
  footer { padding: 36px 32px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-links { justify-self: center; flex-wrap: wrap; justify-content: center; gap: 20px; }
}

@media (max-width: 640px) {
  .nav { padding: 20px 24px; }
  .nav.is-scrolled { padding: 14px 24px; }
  .hero-body { padding: 0 24px 32px; padding-top: calc(64px + 32px); }
  .manifesto { padding: 80px 24px; }
  .sovereign-info { padding: 60px 24px; }
  .army-section-header { padding: 48px 24px 40px; }
  .unit-header { padding: 28px 24px; }
  .hq-header { padding: 48px 24px 32px; }
  .signal-content { padding: 60px 24px; }
  .df-content { padding: 0 24px 48px; }
  .process { padding: 80px 24px; }
  .cta-section { padding: 80px 24px; }
  footer { padding: 28px 24px; }
  .p-desc { display: none; }
  .services { padding: 60px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 40px 28px; }
  .crucible-grid { grid-template-columns: 1fr; }
  .agent-card--maestro-hero { height: 340px; }
}

@media (max-width: 1100px) {
  .ap-content { grid-template-columns: 280px 1fr; }
  .chronicle-card { width: 340px; }
  .chronicle-card-img { height: 230px; }
  .hq-card { width: 300px; }
  .hq-visual { height: 220px; }
}

@media (max-width: 900px) {
  .chronicle-header { padding: 60px 32px 40px; }
  .ap-content { grid-template-columns: 1fr; }
  .ap-portrait { height: 320px; }
  .ap-portrait-overlay { background: linear-gradient(to bottom, transparent 40%, rgba(15,15,21,0.96) 100%); }
  .ap-details { padding: 36px 32px 28px; }
}

@media (max-width: 640px) {
  .chronicle-header { padding: 48px 24px 32px; }
  .chronicle-card { width: 280px; }
  .chronicle-card-img { height: 200px; }
  .ap-details { padding: 28px 24px 20px; }
  .ap-gallery { padding: 14px 16px 12px; }
}


/* ============================================================
   MOTION UPGRADE — Premium UX Layer
   ============================================================ */

/* ═══════════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════════ */

#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--red) 0%, var(--amber) 55%);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 10000;
  pointer-events: none;
  will-change: transform;
}


/* ═══════════════════════════════════════
   HERO — Film grain overlay
═══════════════════════════════════════ */

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.045;
  animation: grain-anim 0.9s steps(4) infinite;
}

@keyframes grain-anim {
  0%   { background-position:   0%    0%; }
  25%  { background-position:  40%   20%; }
  50%  { background-position: -10%   40%; }
  75%  { background-position:  30%  -15%; }
  100% { background-position:   0%    0%; }
}


/* ═══════════════════════════════════════
   HERO EM — Gold shimmer sweep
═══════════════════════════════════════ */

.hero-h1 em {
  background: linear-gradient(90deg, var(--amber) 20%, #FFDB58 50%, var(--amber) 80%);
  background-size: 200% auto;
  background-position: 200% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hero-shimmer 6s linear 2.8s infinite;
  animation-fill-mode: backwards;
}

@keyframes hero-shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}


/* ═══════════════════════════════════════
   AGENT CARD — 3D tilt + shadow
═══════════════════════════════════════ */

.agent-card { will-change: transform; }

.agent-card:hover {
  box-shadow: 0 28px 72px rgba(0,0,0,0.65), 0 0 0 1px rgba(240,170,0,0.1);
  z-index: 2;
}


/* ═══════════════════════════════════════
   MAGNETIC BUTTONS
═══════════════════════════════════════ */

.btn-amber,
.cta-btn { will-change: transform; }

.btn-amber:hover,
.cta-btn:hover {
  box-shadow: 0 8px 32px rgba(240,170,0,0.22);
}




/* ═══════════════════════════════════════
   STAT ITEM — Number glow on hover
═══════════════════════════════════════ */

.stat-item:hover .stat-num {
  color: var(--amber);
  text-shadow: 0 0 48px rgba(240,170,0,0.4), 0 0 80px rgba(240,170,0,0.15);
  transition: color .3s, text-shadow .3s;
}


/* ═══════════════════════════════════════
   HQ CARD — Vertical lift
═══════════════════════════════════════ */

.hq-card {
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s;
}
.hq-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}


/* ═══════════════════════════════════════
   MANIFESTO COL — Lift on hover
═══════════════════════════════════════ */

.manifesto-col {
  transition: background .4s, transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.manifesto-col:hover {
  background: #0E0E12;
  transform: translateY(-5px);
  transition-delay: 0s;
}


/* ═══════════════════════════════════════
   CHRONICLE CARD — Vertical lift
═══════════════════════════════════════ */

.chronicle-card {
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s;
}
.chronicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}


/* ═══════════════════════════════════════
   UNIT HEADER BG — Parallax ready
═══════════════════════════════════════ */

.unit-header-bg { will-change: transform; }


/* ═══════════════════════════════════════
   FREQUENCY BARS — Live oscillation
═══════════════════════════════════════ */

@keyframes freq-live {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(var(--freq-scale, 0.55)); }
}
.freq-bar.is-live {
  transform-origin: bottom;
  animation: freq-live ease-in-out infinite;
  animation-duration: calc(0.5s + var(--fd, 0s) * 1.8);
  animation-delay: calc(var(--fd, 0s) * 0.5);
}


/* ═══════════════════════════════════════
   NAV — Active section indicator
═══════════════════════════════════════ */

.nav-links a.is-active {
  color: rgba(250,250,247,0.75) !important;
}


/* ============================================================
   DESIGN SYSTEM — Batch 3
   ============================================================ */


/* ═══════════════════════════════════════
   LIGHTBOX — Prev / Next arrows
═══════════════════════════════════════ */

.ap-lightbox-prev,
.ap-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11,11,14,0.65);
  border: 1px solid rgba(240,170,0,0.18);
  color: rgba(250,250,247,0.6);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, opacity 0.25s;
  z-index: 2;
  flex-shrink: 0;
}
.ap-lightbox-prev { left: 18px; }
.ap-lightbox-next { right: 18px; }
.ap-lightbox-prev:hover,
.ap-lightbox-next:hover {
  background: rgba(240,170,0,0.12);
  border-color: rgba(240,170,0,0.45);
  color: var(--amber);
}


/* ═══════════════════════════════════════
   AGENT NUMBERS — Hidden everywhere
═══════════════════════════════════════ */

.agent-num,
#ap-num { display: none; }


/* ═══════════════════════════════════════
   SECTION LABELS — Long line BEFORE
═══════════════════════════════════════ */

/* Remove all trailing lines */
.manifesto-label::after,
.army-section-label::after,
.chronicle-label::after,
.hq-label::after,
.process-label::after { content: none; }

/* Add amber line BEFORE all section labels */
.manifesto-label::before,
.army-section-label::before,
.chronicle-label::before,
.hq-label::before,
.process-label::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--amber);
  flex-shrink: 0;
}

/* Extend existing ::before lines */
.signal-eyebrow::before { width: 40px; }
.df-eyebrow::before { width: 40px; }

/* CTA label — add line */
.cta-label {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cta-label::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--red);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════
   MANIFESTO — Mehr Energie
═══════════════════════════════════════ */

/* Brighter background */
.manifesto-bg {
  opacity: 0.14;
  filter: saturate(0.65);
}

/* Amber top accent — animated pulse */
.manifesto::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--amber) 25%, rgba(240,170,0,0.5) 65%, transparent 100%);
  z-index: 2;
  transform-origin: left;
  animation: manifesto-beacon 5s ease-in-out infinite;
}
@keyframes manifesto-beacon {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.9; }
}

/* Ambient volcanic glow — bottom corner */
.manifesto::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 520px; height: 520px;
  background: radial-gradient(ellipse at center, rgba(176,28,46,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Columns: animated left border on hover (mirrors svc-card top border) */
.manifesto-col {
  position: relative;
  overflow: hidden;
}
.manifesto-col::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--red) 0%, var(--amber) 45%, rgba(240,170,0,0.12) 100%);
  opacity: 0;
  transition: opacity .45s;
}
.manifesto-col:hover::before { opacity: 1; }

/* Display em: subtle volcanic glow */
.manifesto-display em { text-shadow: 0 0 40px rgba(176,28,46,0.25); }
.manifesto:hover .manifesto-display em {
  text-shadow: 0 0 60px rgba(176,28,46,0.45), 0 0 110px rgba(240,170,0,0.1);
  transition: text-shadow 0.6s;
}


/* ═══════════════════════════════════════
   ARMY SECTION — More Impressive
═══════════════════════════════════════ */

.army-section-header {
  position: relative;
  overflow: hidden;
}

/* Amber nebula pulse behind title */
.army-section-header::before {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 460px; height: 460px;
  background: radial-gradient(ellipse at center, rgba(240,170,0,0.055) 0%, transparent 65%);
  pointer-events: none;
  animation: army-pulse 6s ease-in-out infinite;
}
@keyframes army-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.88); }
  50%       { opacity: 1;    transform: scale(1.12); }
}

/* Unit: left signal line — reveals on hover */
.unit {
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: border-left-color 0.5s;
}
.unit:hover { border-left-color: rgba(240,170,0,0.18); }

/* Unit header bg: more visible */
.unit-header-bg {
  opacity: 0.13;
  filter: saturate(0.55);
  will-change: transform;
}
.unit:hover .unit-header-bg { opacity: 0.2; filter: saturate(0.7); transition: opacity 0.5s, filter 0.5s; }

/* Unit header: amber top-line on container hover */
.unit-header { transition: border-top-color 0.4s; }
.unit:hover .unit-header { border-top: 1px solid rgba(240,170,0,0.2); }

/* Ghost unit numbers: breathing glow */
.unit-num-ghost {
  animation: ghost-breathe 7s ease-in-out infinite;
}
@keyframes ghost-breathe {
  0%, 100% { opacity: 0.028; }
  50%       { opacity: 0.050; }
}

/* Unit name: amber glow on hover */
.unit-name { transition: text-shadow 0.5s; }
.unit:hover .unit-name { text-shadow: 0 0 48px rgba(240,170,0,0.18); }

/* Victor sovereign: ambient amber right-side haze */
.unit--orchestration .sovereign { position: relative; overflow: hidden; }
.unit--orchestration .sovereign::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  background: radial-gradient(ellipse 80% 60% at 80% 50%, rgba(240,170,0,0.04) 0%, transparent 65%);
  pointer-events: none;
}

/* Sovereign name hover */
.sovereign-name { transition: text-shadow 0.5s; }
.sovereign-visual:hover ~ .sovereign-info .sovereign-name,
.sovereign-name:hover { text-shadow: 0 0 56px rgba(240,170,0,0.28); }

/* Sovereign visual: hover glow frame */
.sovereign-visual {
  transition: box-shadow 0.5s;
}
.sovereign-visual:hover {
  box-shadow: 0 0 0 1px rgba(240,170,0,0.18), 0 24px 80px rgba(0,0,0,0.6);
}


/* ═══════════════════════════════════════
   REALM SECTION — Full-width header
═══════════════════════════════════════ */

.realm-section { border-bottom: 1px solid var(--border); }

.realm-section-header {
  padding: 80px 72px 72px;
  background: #07070A;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Top amber accent */
.realm-section-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(240,170,0,0.35) 40%, rgba(240,170,0,0.35) 60%, transparent 100%);
}

/* Volcanic glow — bottom right */
.realm-section-header::after {
  content: '';
  position: absolute;
  bottom: -140px; right: -100px;
  width: 560px; height: 560px;
  background: radial-gradient(ellipse at center, rgba(176,28,46,0.055) 0%, transparent 58%);
  pointer-events: none;
}

.realm-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.realm-section-label::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--amber);
  flex-shrink: 0;
}

.realm-section-title {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.realm-section-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: -.02em;
  font-size: 1.05em;
}

.realm-section-sub {
  font-size: 14px;
  color: rgba(250,250,247,0.32);
  max-width: 560px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
  font-style: italic;
}

/* Dual-feature vertical divider (between cols) */
.dual-feature {
  position: relative;
}
.dual-feature::after {
  content: '';
  position: absolute;
  top: 8%; bottom: 8%; left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(240,170,0,0.2) 40%, rgba(240,170,0,0.2) 60%, transparent);
  pointer-events: none;
}


/* ═══════════════════════════════════════
   PROCESS — Left padding + cosmic bg
═══════════════════════════════════════ */

.process-cosmic-bg { opacity: 0.3; }


/* ═══════════════════════════════════════
   FOOTER — Tagline page-centered
═══════════════════════════════════════ */

.footer-tagline {
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .footer-tagline { white-space: normal; }
}


/* ═══════════════════════════════════════
   AMBIENT ANIMATIONS — Realm Universe
═══════════════════════════════════════ */

/* Stats band: amber top glow */
.stat-band { position: relative; }
.stat-band::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(240,170,0,0.2) 50%, transparent);
}

/* Chronicle top accent */
.chronicle { position: relative; }
.chronicle::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(240,170,0,0.12) 30%, rgba(240,170,0,0.12) 70%, transparent 100%);
}

/* Chronicle card: subtle floating on hover */
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
.chronicle-card:hover {
  animation: card-float 3s ease-in-out infinite;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}

/* Freq spectrum ambient glow */
.freq-spectrum { position: relative; }
.freq-spectrum::before {
  content: '';
  position: absolute;
  bottom: -16px; right: -8px;
  width: 180px; height: 100px;
  background: radial-gradient(ellipse at center, rgba(240,170,0,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* CTA bloom: deeper amber center */
.cta-bloom {
  background: radial-gradient(ellipse 55% 50% at 50% 60%, rgba(240,170,0,0.055) 0%, transparent 70%);
}

/* HQ cards: lift already in motion upgrade */

/* Scroll progress bar: smoother amber-red */
#scroll-progress {
  background: linear-gradient(to right, var(--red) 0%, var(--amber) 60%, rgba(240,170,0,0.8) 100%);
}

/* Army section title: em color stays red (already set), add subtle glow */
.army-section-title em { text-shadow: 0 0 32px rgba(176,28,46,0.3); }

@media (max-width: 900px) {
  .realm-section-header { padding: 60px 32px 56px; }
  .dual-feature::after { display: none; }
}
@media (max-width: 640px) {
  .realm-section-header { padding: 48px 24px 44px; }
}


/* ============================================================
   DESIGN SYSTEM — Batch 4
   Marquee · Stats · Process · Army · Calendar
   ============================================================ */


/* ─── Marquee: all amber, slower, draggable ─── */

.marquee-item { color: var(--amber); }
.marquee-track { animation-duration: 85s; }
.marquee-band.is-dragging .marquee-track { animation-play-state: paused; }
.marquee-band { cursor: default; }


/* ─── Stats band: label white + hover amber ─── */

.stat-label {
  color: var(--white);
  transition: color .3s;
}
.stat-item:hover .stat-label { color: var(--amber); }


/* ─── Process: agent attribution tag ─── */

.p-agent {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .3em;
  color: rgba(240,170,0,0.48);
  border: 1px solid rgba(240,170,0,0.1);
  padding: 4px 12px 4px 10px;
  border-radius: 2px;
  margin-top: 14px;
  background: rgba(240,170,0,0.02);
  transition: border-color 0.3s, color 0.3s;
}
.p-agent::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.6;
  flex-shrink: 0;
}
.process-item:hover .p-agent {
  border-color: rgba(240,170,0,0.25);
  color: rgba(240,170,0,0.75);
}


/* ─── Process: p-num position context ─── */
.p-num { position: relative; z-index: 1; }




/* ─── Army: taller unit headers ─── */

.unit-header {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}


/* ─── Army: responsive grid instead of horizontal scroll ─── */

.unit-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--border);
  gap: 2px;
  padding-top: 2px;
  overflow: visible;
}

.agent-card { width: 100%; height: 500px; }


/* ─── Army grid responsive ─── */

@media (max-width: 1100px) {
  .unit-header { min-height: 240px; }
  .unit-scroll { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .unit-header { min-height: 190px; }
  .unit-scroll { grid-template-columns: 1fr; }
  .agent-card { height: 440px; }
}


/* ============================================================
   DESIGN SYSTEM — Batch 5
   Footer · Army · CTA · Process · Lightbox · i18n
   ============================================================ */


/* ─── Footer logo: bigger ─── */
.footer-logo img { height: 72px; }


/* ─── Unit headers: hide range numbers ─── */
.unit-range { display: none; }


/* ─── CTA: tighten gap between sub and button ─── */
.cta-sub { margin-bottom: 32px; }


/* ─── Process: p-agents chip container ─── */
.p-agents {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.p-agent[data-agent-id] {
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.p-agent[data-agent-id]:hover {
  border-color: rgba(240,170,0,0.4);
  color: rgba(240,170,0,0.9);
  background: rgba(240,170,0,0.06);
}


/* ─── Lightbox: image click = advance ─── */
#ap-lightbox-img { cursor: pointer; }




/* ─── Chronicle origin block ─── */
/* Chronicle Origin — Premium */
.chronicle-origin {
  margin: 0 72px 80px;
  position: relative;
}
.co-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240,170,0,0.10);
  background: #07070A;
  padding: 72px 72px 64px;
}
.co-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(240,170,0,0.35), rgba(240,170,0,0.08) 60%, transparent);
}
.co-bg-zero {
  position: absolute;
  bottom: -0.18em; right: -0.06em;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 30vw;
  color: rgba(240,170,0,0.032);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.co-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.co-eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--amber);
  flex-shrink: 0;
}
.co-headline {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  color: var(--off-white);
  line-height: 1.15;
  margin: 0 0 56px;
  max-width: 22ch;
  position: relative;
  z-index: 1;
}
.co-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(240,170,0,0.09);
  position: relative;
  z-index: 1;
}
.co-p {
  font-size: clamp(12px, 0.9vw, 14px);
  color: rgba(250,250,247,0.48);
  line-height: 1.9;
  margin: 0;
}
.co-right {
  padding-left: 40px;
  border-left: 2px solid rgba(240,170,0,0.28);
}
.co-truth {
  font-size: clamp(14px, 1.25vw, 17px);
  color: rgba(250,250,247,0.86);
  line-height: 1.55;
  margin-bottom: 24px;
  font-weight: 300;
  letter-spacing: .01em;
}
.co-truth em {
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--amber);
  font-weight: 400;
}
.co-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 1;
}
.co-fact {
  padding: 20px 32px 0 0;
  border-top: 1px solid rgba(240,170,0,0.10);
}
.co-fact:not(:first-child) {
  padding-left: 32px;
  border-left: 1px solid rgba(240,170,0,0.07);
}
.co-fact--founded {
  padding-right: 0;
  border-top-color: rgba(240,170,0,0.28);
}
.co-fact-text {
  font-size: clamp(11px, 0.85vw, 13px);
  color: rgba(250,250,247,0.43);
  line-height: 1.72;
  margin: 0;
}
.co-fact--founded .co-fact-text strong {
  color: rgba(250,250,247,0.82);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .chronicle-origin { margin: 0 40px 64px; }
  .co-inner { padding: 56px 48px 52px; }
  .co-body { grid-template-columns: 1fr; gap: 40px; }
  .co-right { padding-left: 28px; }
}
@media (max-width: 768px) {
  .chronicle-origin { margin: 0 24px 56px; }
  .co-inner { padding: 48px 32px 44px; }
  .co-facts { grid-template-columns: 1fr; gap: 0; }
  .co-fact { padding: 18px 0 0; }
  .co-fact:not(:first-child) { padding-left: 0; border-left: none; }
  .co-fact--founded { padding-right: 0; }
  .co-bg-zero { font-size: 60vw; }
}
@media (max-width: 640px) {
  .co-inner { padding: 40px 24px 36px; }
  .co-headline { font-size: 1.75rem; }
}


/* ============================================================
   DESIGN SYSTEM — Batch 6
   Accessibility · Global Grain · Typography Refinements
   ============================================================ */


/* ─── Focus rings — all interactive elements ─── */

:focus-visible {
  outline: 1px solid rgba(240,170,0,0.55);
  outline-offset: 3px;
  border-radius: 1px;
}

.btn-amber:focus-visible,
.cta-btn:focus-visible {
  outline-offset: 4px;
  border-radius: 2px;
}

.agent-card:focus-visible {
  outline-offset: 0;
}

.ap-close:focus-visible,
.ap-lightbox-close:focus-visible,
.ap-lightbox-prev:focus-visible,
.ap-lightbox-next:focus-visible {
  outline-offset: 2px;
}


/* ─── Active / press states ─── */

.btn-amber:active  { transform: translateY(1px) scale(0.99) !important; opacity: .80; }
.btn-line:active   { transform: translateY(1px); }
.cta-btn:active    { transform: translateY(1px) scale(0.99) !important; }
.nav-cta:active    { transform: translateY(1px) scale(0.99) !important; opacity: .80; }
.sovereign-story-btn:active { transform: translateY(1px); color: var(--amber); }
.p-agent[data-agent-id]:active { background: rgba(240,170,0,0.1); transform: scale(0.98); }


/* ─── Global grain overlay — extends hero texture to full page ─── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.02;
}


/* ─── text-wrap: balance — no orphaned words on display text ─── */

.hero-h1,
.manifesto-display,
.services-headline,
.army-section-title,
.sovereign-name,
.signal-h2,
.process-headline,
.cta-headline,
.df-display,
.hq-title,
.chronicle-title,
.realm-section-title {
  text-wrap: balance;
}
