/* ============================================
   TETRIS TALENT — Design System
   Visual DNA inherited from Tetris Labs
   ============================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* --- CSS VARIABLES --- */
:root {
  --color-main: #7c3aed;
  --color-secondary: #22d3ee;
  --color-tertiary: #1a0b2e;
  --color-white: #ffffff;
  --color-overlay: rgba(255, 255, 255, 0.06);
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-text-dim: rgba(255, 255, 255, 0.4);
  --color-border: rgba(255, 255, 255, 0.15);

  --font-heading: 'Inter', -apple-system, sans-serif;
  --font-mono: 'DM Mono', monospace;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --h1-size: clamp(3.5rem, 6vw, 7rem);
  --h2-size: clamp(2rem, 3vw, 2.75rem);
  --h3-size: clamp(1.75rem, 2.5vw, 2.25rem);
}

/* --- RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow: hidden;
  height: 100%;
}

body {
  font-family: var(--font-heading);
  background-color: var(--color-main);
  color: var(--color-white);
  overflow: hidden;
  height: 100%;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- PRELOADER --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

#preloader-canvas {
  /* sized dynamically by JS */
}

.preloader-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-white);
  margin-top: 20px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.preloader-text.visible {
  opacity: 1;
}

/* --- CUSTOM CURSOR --- */
.cursor {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--color-white);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s var(--ease-spring), opacity 0.15s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor.hover {
  transform: translate(-50%, -50%) scale(2.5);
  background: rgba(255, 255, 255, 0.1);
}

/* --- DIAGONAL GRID OVERLAY --- */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'%3E%3Cpath d='M0 40L40 0M-10 10L10 -10M30 50L50 30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
}

/* --- SCROLL CONTAINER --- */
.scroll-container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: relative;
  z-index: 2;
}

/* --- SECTION BASE --- */
.section {
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 8rem;
  overflow: hidden;
}

/* Ghost section watermark */
.section::before {
  content: attr(data-section-number);
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(15rem, 25vw, 30rem);
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

/* --- FIXED HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  pointer-events: none;
}

.header > * {
  pointer-events: auto;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

/* --- BUTTONS --- */
.button {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: lowercase;
  padding: 0.75rem 1.75rem;
  border-radius: 0;
  cursor: none;
  transition: all 0.3s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.button-primary {
  background: var(--color-secondary);
  color: var(--color-tertiary);
  border: 1.5px solid var(--color-tertiary);
}

.button-primary:hover {
  background: #06b6d4;
  transform: translateY(-1px);
}

.button-outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.button-outline:hover {
  border-color: var(--color-white);
  transform: translateY(-1px);
}

/* --- RIGHT-SIDE VERTICAL NAV --- */
.section-nav {
  position: fixed;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
  cursor: none;
  transition: all 0.3s var(--ease-spring);
  opacity: 0.4;
}

.section-nav-item:hover {
  opacity: 0.7;
}

.section-nav-item.active {
  opacity: 1;
}

.section-nav-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  min-width: 1.25rem;
  text-align: right;
  color: var(--color-white);
}

.section-nav-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--color-white);
  white-space: nowrap;
}

.section-nav-item.active .section-nav-label {
  border-bottom: 1px solid var(--color-secondary);
  padding-bottom: 1px;
}

/* --- BOTTOM-RIGHT SECTION BADGE --- */
.section-badge {
  position: fixed;
  bottom: 1.5rem;
  right: 2.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: lowercase;
  color: var(--color-white);
  transition: all 0.4s var(--ease-spring);
}

.section-badge-number {
  opacity: 0.5;
}

.section-badge-name {
  opacity: 0.8;
}

/* --- HERO SECTION --- */
.hero {
  padding-top: 8rem;
  padding-bottom: 2rem;
  padding-right: 12rem; /* clear right-side nav */
}

.hero::before {
  content: none;
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.75rem, 4.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 1.25rem;
}

.hero-headline .highlight {
  color: var(--color-secondary);
}

.hero-subhead {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 680px;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* Product signal line below CTAs */
.product-signal {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: lowercase;
  color: var(--color-text-dim);
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
}

/* Nav dimmed on hero section — still readable */
.section-nav.hero-active .section-nav-item {
  opacity: 0.35;
}
.section-nav.hero-active .section-nav-item:hover {
  opacity: 0.6;
}

.scroll-prompt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: lowercase;
  color: var(--color-text-dim);
  text-align: center;
  margin-top: auto;
  letter-spacing: 0.05em;
}

.scroll-prompt::after {
  content: '↓';
  display: block;
  margin-top: 0.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- LOGO MARQUEE --- */
.marquee-section {
  margin-top: 0; /* gap from product-signal handles spacing */
}

.marquee-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: lowercase;
  color: var(--color-text-dim);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.marquee-track {
  overflow: hidden;
  position: relative;
  width: calc(100vw - 12rem); /* leave space for right-side nav */
  max-width: 100%;
  border-top: 1.5px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
}

.marquee-track::before,
.marquee-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-track::before {
  left: 0;
  background: linear-gradient(to right, var(--color-main), transparent);
}

.marquee-track::after {
  right: 0;
  background: linear-gradient(to left, var(--color-main), transparent);
}

.marquee-inner {
  display: flex;
  align-items: center;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
  padding: 0.75rem 0;
}

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

.marquee-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: lowercase;
  color: var(--color-white);
  opacity: 0.55;
  white-space: nowrap;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.marquee-sep {
  color: var(--color-white);
  opacity: 0.3;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0 0.75rem;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- WHITE TEXT BOX --- */
.white-text-box {
  background: var(--color-white);
  color: var(--color-tertiary);
  padding: 2.5rem 3rem;
  max-width: 680px;
  margin-bottom: 2rem;
}

.white-text-box .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.white-text-box h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--h2-size);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.white-text-box h2 .highlight {
  color: var(--color-secondary);
}

.white-text-box .paragraph {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(26, 11, 46, 0.7);
  margin-top: 1rem;
}

/* --- TWO-PANEL LAYOUT --- */
.two-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
}

.panel-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  padding: 2.25rem;
}

.panel-box .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.panel-box h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--h3-size);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.panel-box .paragraph {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* --- STATION CARDS (Service Category Tabs) --- */
.station-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
  max-width: 900px;
}

.station-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: none;
  transition: all 0.3s var(--ease-spring);
}

.station-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.station-card.active {
  border-color: var(--color-secondary);
  background: rgba(34, 211, 238, 0.08);
}

.station-card-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.4rem;
  border-radius: 2px;
  min-width: 1.5rem;
  text-align: center;
}

.station-card.active .station-card-number {
  background: var(--color-secondary);
  color: var(--color-tertiary);
}

.station-card-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-white);
}

/* --- STATION DETAIL (Expanded service content) --- */
.station-detail {
  border: 1px dashed var(--color-border);
  padding: 2rem 2.5rem;
  max-width: 900px;
}

.station-detail-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.station-detail-desc {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.station-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.station-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.station-list-item::before {
  content: '→';
  color: var(--color-secondary);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* --- APPROACH SECTION --- */
.approach-content {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.approach-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin: 0.5rem 0 1rem;
}

.approach-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 580px;
  line-height: 1.7;
  margin: 0;
}

/* Phases accordion list */
.phases-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.phase-step {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.phase-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  cursor: pointer;
  gap: 1.5rem;
  user-select: none;
}

.phase-step-header:hover .phase-step-title {
  color: var(--color-secondary);
}

.phase-step-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.phase-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.25);
  border-radius: 3px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phase-step-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.phase-step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  transition: color 0.2s;
}

.phase-step-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}

.phase-step-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.phase-step-days {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

.phase-chevron {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.3);
  transition: transform 0.25s ease, color 0.2s;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.phase-step.open .phase-chevron {
  transform: rotate(45deg);
  color: var(--color-secondary);
}

/* Expandable body */
.phase-step-body {
  display: none;
  padding-bottom: 1.4rem;
}

.phase-step.open .phase-step-body {
  display: block;
}

/* Two-track layout */
.phase-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.track-col ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.track-col ul li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.45;
  padding-left: 1rem;
  position: relative;
}

.track-col ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.track-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  display: inline-block;
}

.track-label--agent {
  background: rgba(34,211,238,0.12);
  color: var(--color-secondary);
  border: 1px solid rgba(34,211,238,0.2);
}

.track-label--human {
  background: rgba(124,58,237,0.12);
  color: var(--color-main);
  border: 1px solid rgba(124,58,237,0.3);
}

.track-col:first-child ul li::before { background: var(--color-secondary); }
.track-col:last-child ul li::before  { background: var(--color-main); }

/* Bottom callout */
.approach-callout {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  padding-top: 0.25rem;
}

.callout-stat {
  color: var(--color-secondary);
  font-weight: 600;
}

@media (max-width: 640px) {
  .phase-track { grid-template-columns: 1fr; }
  .phase-step-desc { display: none; }
}

/* --- PLACEHOLDER SECTION --- */
.placeholder-content {
  max-width: 680px;
}

/* Generic section label (used in placeholders, contact, etc.) */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: lowercase;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.placeholder-content h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--h2-size);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.placeholder-content .paragraph {
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.placeholder-box {
  border: 1px dashed var(--color-border);
  padding: 3rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-dim);
  text-transform: lowercase;
}

/* --- STAT CARDS (Results section) --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin-top: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  padding: 2rem;
  text-align: center;
}

.stat-card-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: lowercase;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

/* --- TESTIMONIAL CARD --- */
.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  max-width: 680px;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-secondary);
  text-transform: lowercase;
}

.testimonial-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-dim);
  margin-top: 0.25rem;
}

/* --- EDGE ITEMS --- */
.edge-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 680px;
}

.edge-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s var(--ease-spring);
}

.edge-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.edge-item-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  background: rgba(34, 211, 238, 0.15);
  color: var(--color-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.edge-item-content h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.edge-item-content p {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- CONTACT SECTION --- */
.contact-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-content h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--h2-size);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.contact-content .paragraph {
  font-weight: 300;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.7;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.social-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: lowercase;
  color: var(--color-text-dim);
  transition: color 0.3s;
  letter-spacing: 0.02em;
}

.social-links a:hover {
  color: var(--color-secondary);
}

/* --- FOOTER --- */
.footer {
  border-top: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 3rem 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  scroll-snap-align: end;
}

.footer-brand .footer-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: lowercase;
  margin-bottom: 0.35rem;
}

.footer-brand .footer-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-dim);
  text-transform: lowercase;
}

.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: lowercase;
  color: var(--color-text-dim);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.2rem 0;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-contact {
  text-align: right;
}

.footer-contact a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--color-secondary);
}

.footer-copyright {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-text-dim);
  opacity: 0.6;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-in {
  opacity: 0;
}

.animate-in.visible {
  animation-duration: 0.8s;
  animation-timing-function: var(--ease-spring);
  animation-fill-mode: forwards;
}

.animate-in.visible.fade-up { animation-name: fadeInUp; }
.animate-in.visible.slide-left { animation-name: slideInLeft; }
.animate-in.visible.slide-right { animation-name: slideInRight; }

.animate-in.visible.delay-1 { animation-delay: 0.1s; }
.animate-in.visible.delay-2 { animation-delay: 0.2s; }
.animate-in.visible.delay-3 { animation-delay: 0.3s; }
.animate-in.visible.delay-4 { animation-delay: 0.4s; }
.animate-in.visible.delay-5 { animation-delay: 0.5s; }

/* --- MEET NEIL (Section 07) --- */
#neil::before {
  color: rgba(255, 255, 255, 0.05);
}

/* Single-column layout (photo removed) */
.neil-layout {
  display: block;
  max-width: 760px;
  width: 100%;
}

/* --- CREATIVE PHOTO TREATMENT --- */
.neil-photo-col {
  position: sticky;
  top: 8rem;
}

.neil-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  /* Diagonal clip — cut corner, visual DNA */
  clip-path: polygon(0 0, 100% 0, 100% 92%, 88% 100%, 0 100%);
}

/* The actual photo — duotone purple/cyan filter */
.neil-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* Duotone: desaturate then tint with purple/cyan */
  filter: grayscale(100%) contrast(1.1) brightness(0.9);
  mix-blend-mode: luminosity;
}

/* Purple tint overlay */
.neil-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(124, 58, 237, 0.65) 0%,
    rgba(26, 11, 46, 0.8) 100%
  );
  z-index: 1;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Scanline overlay — CRT / retro-tech feel */
.neil-photo-scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

/* Diagonal grid overlay — matches site grid */
.neil-photo-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'%3E%3Cpath d='M0 40L40 0M-10 10L10 -10M30 50L50 30'/%3E%3C/g%3E%3C/svg%3E");
}

/* Cyan accent bar at bottom-left */
.neil-photo-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  height: 3px;
  background: var(--color-secondary);
  z-index: 4;
}

/* Caption tag below photo */
.neil-photo-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-dim);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  padding-left: 0.25rem;
}

/* --- NEIL CONTENT (right column) --- */
.neil-content {
  max-width: 680px;
}

.neil-subtitle {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--h3-size);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.neil-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
}

.neil-clients {
  margin-bottom: 2.5rem;
}

.neil-clients-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-dim);
  text-transform: lowercase;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.neil-clients-grid {
  max-width: 480px;
}

.neil-client-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0;
}

.neil-client-row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.neil-client-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.neil-stats {
  grid-template-columns: repeat(3, 1fr);
}

.neil-stats .stat-card-number {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.neil-cta {
  margin-top: 2.5rem;
}

.neil-cta h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--h3-size);
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.neil-cta-sub {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* --- CONTACT BACK-REFERENCE --- */
.contact-backref {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: lowercase;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
  .section-nav { display: none; }
  .section { padding: 4rem 4rem; }
  .hero { padding-right: 4rem; }
  .marquee-track { width: 100%; }
  .neil-layout { max-width: 100%; }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 1.5rem;
  }

  .header {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding-top: 6rem;
    padding-right: 1.5rem;
  }

  .two-panel {
    grid-template-columns: 1fr;
  }

  .station-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-contact {
    text-align: left;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .neil-layout {
    max-width: 100%;
  }

  .neil-clients-grid {
    max-width: 100%;
  }

  .neil-stats {
    grid-template-columns: 1fr;
  }

  .section::before {
    font-size: 8rem;
    right: -5%;
  }

  .section-badge {
    display: none;
  }
}

/* --- MOBILE: hide custom cursor, fix scroll snap --- */
@media (hover: none), (max-width: 768px) {
  /* Hide the dot cursor — it gets stuck on touch devices */
  .cursor {
    display: none !important;
  }

  /* Restore native pointer for the whole page */
  body {
    cursor: auto;
  }

  /* Buttons and interactive elements get a proper tap cursor */
  a, button, .station-card, .phase-step-header {
    cursor: pointer;
  }

  /* Soften snap on mobile so it doesn't jump mid-scroll */
  .scroll-container {
    scroll-snap-type: y proximity;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================
   AGENT DASHBOARD
   ============================================ */
.agent-dashboard-wrap {
  margin-top: 3rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(124,58,237,0.06) 0%, rgba(10,4,20,0.8) 100%);
  backdrop-filter: blur(10px);
}

.dash-inner {
  padding: 2rem 2rem 1.5rem;
}

/* header */
.dash-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.dash-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.dash-title h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.dash-title h3 span { color: var(--color-main); }

.dash-title p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.4rem;
  font-family: var(--font-mono);
}

/* stat cards */
.dash-stats {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.dash-stat {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.22);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  text-align: center;
  min-width: 72px;
}

.dash-stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1.2;
}

.dash-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-top: 0.2rem;
}

/* divider */
.dash-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0 2rem;
}

/* body grid */
.dash-body {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2rem;
  padding: 1.25rem 2rem;
}

/* schedule */
.dash-schedule { display: flex; flex-direction: column; gap: 0; }

.dash-group-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 0.65rem;
}

.dash-group + .dash-group { padding-top: 1rem; }
.dash-group + .dash-group .dash-group-label { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1rem; }

.dash-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.dash-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  min-width: 72px;
  padding-top: 0.35rem;
  flex-shrink: 0;
}

.dash-pills { display: flex; flex-wrap: wrap; }

/* pills */
.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
  margin: 2px 3px 2px 0;
  cursor: default;
  user-select: none;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.45);
  background: transparent;
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.dash-pill:hover {
  color: rgba(255,255,255,0.85);
}

.dash-pill.firing {
  color: #fff;
  box-shadow: 0 0 12px var(--pill-color, #7c3aed);
}

.dash-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: box-shadow 0.3s;
}

/* live feed */
.dash-feed {
  border-left: 1px solid rgba(255,255,255,0.06);
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-feed-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 0.4rem;
}

.dash-feed-item {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 0.5rem;
  transition: opacity 0.4s;
}

.dash-feed-item.dim { color: rgba(255,255,255,0.2); border-left-color: rgba(255,255,255,0.05); }

/* footer */
.dash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 2rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.dash-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
}

.dash-legend-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-live {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dash-live-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.dash-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
}

.dash-live-url {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.15);
}

/* tooltip */
.dash-tooltip {
  position: fixed;
  background: #0d0618;
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  max-width: 260px;
  line-height: 1.6;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  display: none;
}

/* responsive */
@media (max-width: 768px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-feed { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); padding-left: 0; padding-top: 1rem; }
  .dash-title-row { flex-direction: column; }
  .dash-stats { gap: 0.4rem; }
  .dash-stat { min-width: 60px; padding: 0.45rem 0.75rem; }
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.results-header {
  margin-bottom: 2.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
}

.results-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.results-group-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.results-col-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  min-width: 0;
}

.result-metric {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.highlight-cyan   { color: var(--color-secondary); }
.highlight-purple { color: #ffffff; }

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

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

/* ============================================
   EDGE SECTION OVERRIDE (dashboard host)
   ============================================ */
.section--edge {
  overflow-y: auto;
  justify-content: flex-start;
  padding-top: 4rem;
  padding-bottom: 4rem;
  gap: 2rem;
}

.edge-lead {
  max-width: 780px;
}

.edge-lead h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}

.edge-lead-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 640px;
}

.edge-lead-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.6rem;
}

/* Push edge section content clear of the fixed right-side nav */
.section--edge {
  padding-right: 13rem;
}

/* Results accordion list */
.result-list {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  padding-top: 0.5rem;
}

/* Results section — allow full content to show */
#results {
  overflow-x: hidden;
  overflow-y: auto;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
