/* Apex Automation — Ops Deck marketing site */
:root {
  --bg: #06090f;
  --bg-2: #0a1018;
  --panel: #0d1420;
  --panel-2: #121c2b;
  --line: #223049;
  --line-soft: rgba(120, 150, 190, 0.10);
  --ink: #eaf1fa;
  --ink-dim: #8ea0b8;
  --ink-faint: #56667e;
  --gold: #f5b942;
  --gold-hover: #ffc857;
  --gold-soft: rgba(245, 185, 66, 0.14);
  --cyan: #38d3ee;
  --cyan-soft: rgba(56, 211, 238, 0.12);
  --green: #35d6a4;
  --red: #ff6b6b;
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1120px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 12% -8%, rgba(245, 185, 66, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 8%, rgba(56, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 100%, rgba(245, 185, 66, 0.06), transparent 55%),
    repeating-linear-gradient(0deg, transparent, transparent 31px, var(--line-soft) 31px, var(--line-soft) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, var(--line-soft) 31px, var(--line-soft) 32px),
    radial-gradient(circle at center, rgba(120, 150, 190, 0.18) 1.2px, transparent 1.5px);
  background-size: auto, auto, auto, auto, auto, 32px 32px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 16px 16px;
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 1.0625rem;
  min-height: 100vh;
}

@media (prefers-reduced-motion: no-preference) {
  body { animation: auroraDrift 22s ease-in-out infinite alternate; }
  @keyframes auroraDrift {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to { background-position: 12px -8px, -10px 14px, 0 0, 0 0; }
  }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 18ch; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.lead { color: var(--ink-dim); font-size: 1.125rem; max-width: 42ch; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(6, 9, 15, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; color: var(--gold-hover); }
.logo span { color: var(--ink); font-weight: 500; }

.nav-desktop { display: none; align-items: center; gap: 1.25rem; }
.nav-desktop a {
  color: var(--ink-dim);
  font-size: 0.9rem;
  text-decoration: none;
}
.nav-desktop a:hover { color: var(--ink); }

.nav-dropdown { position: relative; }
.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown[open] summary { color: var(--ink); }
.nav-dropdown .dd-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.nav-dropdown .dd-panel a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--ink);
}
.nav-dropdown .dd-panel a:hover {
  background: var(--gold-soft);
  text-decoration: none;
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn-primary {
  background: var(--gold);
  color: #0b0f14 !important;
}
.btn-primary:hover {
  background: var(--gold-hover);
  box-shadow: 0 0 24px rgba(245, 185, 66, 0.35);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(245, 185, 66, 0.45);
  color: var(--gold) !important;
}
.btn-ghost:hover { background: var(--gold-soft); }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover { transform: translateY(-2px); }
}

.menu-toggle {
  display: flex;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  width: 100%;
  background: #06090f;
  padding: 1.5rem;
  z-index: 120;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile.open {
  display: flex;
}
@media (prefers-reduced-motion: no-preference) {
  .nav-mobile.open {
    animation: navSlideIn 0.22s ease;
  }
  @keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }
}
.nav-mobile a {
  color: var(--ink);
  font-size: 1.1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.nav-mobile .btn { margin-top: 1rem; width: 100%; }
body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* Sections */
.section { padding: clamp(4rem, 10vw, 6.5rem) 0; }
.section-alt { background: rgba(10, 16, 24, 0.55); }
.section-head { margin-bottom: 2.5rem; max-width: 52ch; }
.section-head .lead { margin-top: 0.75rem; }

/* Hero (shared / legacy page layouts) */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}
.hero-copy .lead { margin: 1.25rem 0 1.75rem; max-width: 38ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-visual {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 185, 66, 0.2);
  background:
    linear-gradient(145deg, rgba(245,185,66,0.12), transparent 42%),
    linear-gradient(320deg, rgba(56,211,238,0.14), transparent 48%),
    var(--panel);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.hero-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 70% 40%, rgba(245,185,66,0.18), transparent 45%);
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgba(6, 9, 15, 0.75);
  border: 1px solid rgba(245, 185, 66, 0.35);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.flow-svg { width: 100%; height: 100%; min-height: 280px; position: relative; z-index: 1; }
.flow-svg .node {
  fill: rgba(18, 28, 43, 0.9);
  stroke: var(--line);
  stroke-width: 2;
}
.flow-svg .node-accent { stroke: var(--cyan); }
.flow-svg .node-gold { stroke: var(--gold); }
.flow-svg text {
  fill: var(--ink-dim);
  font-family: var(--mono);
  font-size: 11px;
}
.flow-svg .line { stroke: var(--cyan); stroke-width: 2; opacity: 0.75; fill: none; }
@media (prefers-reduced-motion: no-preference) {
  .flow-svg .pulse {
    animation: pulseDot 2.4s ease-in-out infinite;
  }
  @keyframes pulseDot {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
  }
}

/* —— Homepage cinematic hero —— */
.hero-cinematic {
  min-height: calc(100vh - var(--header-h));
  padding: 0;
  align-items: stretch;
  isolation: isolate;
}
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}
.hero-wash-a {
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  left: -12%;
  top: -18%;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.22), transparent 68%);
}
.hero-wash-b {
  width: min(60vw, 560px);
  height: min(60vw, 560px);
  right: -8%;
  bottom: -10%;
  background: radial-gradient(circle, rgba(56, 211, 238, 0.18), transparent 68%);
}
.hero-grid-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 9, 15, 0.15) 0%, transparent 28%, rgba(6, 9, 15, 0.55) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(120, 150, 190, 0.07) 47px, rgba(120, 150, 190, 0.07) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(120, 150, 190, 0.07) 47px, rgba(120, 150, 190, 0.07) 48px);
  mask-image: radial-gradient(ellipse 85% 70% at 70% 45%, #000 20%, transparent 75%);
}

.hero-stage {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
  min-height: calc(100vh - var(--header-h));
}
@media (min-width: 960px) {
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2.5rem 0 3.5rem;
    align-content: center;
  }
}

.hero-cinematic .hero-copy {
  max-width: 34rem;
}
.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 0.65rem;
}
.hero-brand::after {
  content: '';
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-top: 0.85rem;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  border-radius: 2px;
}
.hero-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.35rem;
}
.hero-headline {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  max-width: 22ch;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-cinematic .hero-lead {
  margin: 1.1rem 0 1.6rem;
  max-width: 36ch;
}

/* Entrance states */
.hero-cinematic .hero-brand,
.hero-cinematic .hero-tag,
.hero-cinematic .hero-headline,
.hero-cinematic .hero-lead,
.hero-cinematic .hero-ctas {
  opacity: 0;
  transform: translateY(18px);
}
.hero-cinematic.is-ready .hero-brand,
.hero-cinematic.is-ready .hero-tag,
.hero-cinematic.is-ready .hero-headline,
.hero-cinematic.is-ready .hero-lead,
.hero-cinematic.is-ready .hero-ctas {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-cinematic.is-ready .hero-tag { transition-delay: 0.08s; }
.hero-cinematic.is-ready .hero-headline { transition-delay: 0.14s; }
.hero-cinematic.is-ready .hero-lead { transition-delay: 0.22s; }
.hero-cinematic.is-ready .hero-ctas { transition-delay: 0.3s; }

/* Ops field — full-bleed visual plane (no card chrome) */
.hero-field {
  position: relative;
  min-height: 220px;
  margin: 0 -1rem;
  width: calc(100% + 2rem);
}
@media (min-width: 960px) {
  .hero-field {
    position: absolute;
    right: max(0px, calc((100vw - var(--maxw)) / 2 - 1rem));
    top: 50%;
    transform: translateY(-50%);
    width: min(52vw, 640px);
    margin: 0;
    min-height: 0;
    pointer-events: none;
  }
  .hero-stage {
    position: relative;
  }
  .hero-cinematic .hero-copy {
    position: relative;
    z-index: 2;
    max-width: 34rem;
  }
}
.ops-field {
  width: 100%;
  height: auto;
  max-height: min(42vh, 400px);
  display: block;
  overflow: visible;
}
@media (min-width: 960px) {
  .ops-field {
    max-height: none;
    height: clamp(340px, 52vh, 460px);
  }
}
.field-label {
  fill: var(--ink-dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.chaos-label { fill: #ff8f8f; }
.calm-label {
  fill: var(--green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
}

.field-grid {
  opacity: 0.28;
  transition: opacity 0.8s ease;
}
.hero-cinematic.is-calm .field-grid { opacity: 0.48; }

.path-track {
  opacity: 0;
  fill: none;
}
.auto-path-layer {
  fill: none;
  stroke-dasharray: var(--path-len, 720);
  stroke-dashoffset: var(--path-len, 720);
  opacity: 0.15;
}
.path-glow { opacity: 0; }
.auto-path { opacity: 0.2; }

.path-node-wrap { opacity: 0; }
.path-node {
  transform-origin: center;
  transform-box: fill-box;
}
.node-ring {
  fill: none;
  stroke: rgba(56, 211, 238, 0.55);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.path-node-wrap.n4 .node-ring { stroke: rgba(53, 214, 164, 0.65); }
.path-node-wrap.n1 .node-ring { stroke: rgba(245, 185, 66, 0.65); }

.path-bead { opacity: 0; }
.path-bead-idle { opacity: 0; }

/* Scene choreography */
@media (prefers-reduced-motion: no-preference) {
  .hero-cinematic.is-ready .hero-wash-a {
    animation: washDriftA 18s ease-in-out infinite alternate;
  }
  .hero-cinematic.is-ready .hero-wash-b {
    animation: washDriftB 22s ease-in-out infinite alternate;
  }
  @keyframes washDriftA {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(24px, 16px) scale(1.06); }
  }
  @keyframes washDriftB {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-20px, -14px) scale(1.08); }
  }

  .hero-cinematic.is-ready .chaos {
    animation: chaosJitter 0.55s ease-in-out infinite alternate;
  }
  .hero-cinematic.is-ready .chaos-1 { animation-delay: 0s; }
  .hero-cinematic.is-ready .chaos-2 { animation-delay: 0.12s; }
  .hero-cinematic.is-ready .chaos-3 { animation-delay: 0.24s; }
  @keyframes chaosJitter {
    from { transform: translate(0, 0); }
    to { transform: translate(2px, -2px); }
  }

  .hero-cinematic.is-scene .chaos {
    animation: chaosFracture 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .hero-cinematic.is-scene .chaos-1 { animation-delay: 0.05s; }
  .hero-cinematic.is-scene .chaos-2 { animation-delay: 0.22s; }
  .hero-cinematic.is-scene .chaos-3 { animation-delay: 0.38s; }
  @keyframes chaosFracture {
    0% { opacity: 1; transform: scale(1); filter: blur(0); }
    100% { opacity: 0; transform: scale(0.72) translateY(-10px); filter: blur(2px); }
  }
  .hero-cinematic.is-calm .chaos {
    opacity: 0;
    visibility: hidden;
    animation: none;
  }

  .hero-cinematic.is-scene .path-track {
    animation: trackIn 0.6s ease 0.35s forwards;
  }
  @keyframes trackIn {
    to { opacity: 1; }
  }

  .hero-cinematic.is-scene .auto-path-layer {
    animation: pathDraw 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.55s forwards;
  }
  .hero-cinematic.is-scene .path-glow {
    animation:
      pathDraw 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.55s forwards,
      glowPulse 2.4s ease-in-out 2.1s infinite;
  }
  @keyframes pathDraw {
    to {
      stroke-dashoffset: 0;
      opacity: 1;
    }
  }
  @keyframes glowPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.7; }
  }

  .hero-cinematic.is-scene .path-bead:not(.path-bead-idle) {
    animation: beadFlash 1.4s ease 0.55s forwards;
  }
  @keyframes beadFlash {
    0%, 8% { opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { opacity: 0; }
  }

  .hero-cinematic.is-scene .path-node-wrap {
    animation: nodeBloom 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  }
  .hero-cinematic.is-scene .path-node-wrap.n1 { animation-delay: 0.7s; }
  .hero-cinematic.is-scene .path-node-wrap.n2 { animation-delay: 1.05s; }
  .hero-cinematic.is-scene .path-node-wrap.n3 { animation-delay: 1.4s; }
  .hero-cinematic.is-scene .path-node-wrap.n4 { animation-delay: 1.75s; }
  @keyframes nodeBloom {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }

  .hero-cinematic.is-scene .node-ring {
    animation: ringExpand 0.7s ease forwards;
  }
  .hero-cinematic.is-scene .n1 .node-ring { animation-delay: 0.7s; }
  .hero-cinematic.is-scene .n2 .node-ring { animation-delay: 1.05s; }
  .hero-cinematic.is-scene .n3 .node-ring { animation-delay: 1.4s; }
  .hero-cinematic.is-scene .n4 .node-ring { animation-delay: 1.75s; }
  @keyframes ringExpand {
    0% { opacity: 0.9; transform: scale(0.4); }
    100% { opacity: 0; transform: scale(1.65); }
  }

  .hero-cinematic.is-scene .calm-label {
    animation: calmIn 0.55s ease 2s forwards;
  }
  @keyframes calmIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }

  .hero-cinematic.is-calm .n4 .path-node {
    animation: nodeIdleGlow 2.8s ease-in-out infinite;
  }
  @keyframes nodeIdleGlow {
    0%, 100% { filter: drop-shadow(0 0 0 transparent); }
    50% { filter: drop-shadow(0 0 10px rgba(53, 214, 164, 0.85)); }
  }

  .hero-cinematic.is-calm .path-bead-idle.is-running {
    animation: idleBeadVisible 2.2s ease forwards;
  }
  @keyframes idleBeadVisible {
    0%, 100% { opacity: 0; }
    12%, 88% { opacity: 0.9; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cinematic .hero-brand,
  .hero-cinematic .hero-tag,
  .hero-cinematic .hero-headline,
  .hero-cinematic .hero-lead,
  .hero-cinematic .hero-ctas {
    opacity: 1;
    transform: none;
  }
  .hero-cinematic .chaos { opacity: 0; visibility: hidden; }
  .hero-cinematic .path-track { opacity: 1; }
  .hero-cinematic .auto-path-layer {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  .hero-cinematic .path-glow { opacity: 0.4; }
  .hero-cinematic .path-node-wrap,
  .hero-cinematic .calm-label { opacity: 1; }
  .hero-cinematic .path-bead { display: none; }
}

/* Platforms strip */
.platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: flex-start;
  align-items: center;
}
.platform-chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  background: var(--panel);
}

/* Cards / blocks */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-industries {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .grid-industries { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid-industries {
    grid-template-columns: repeat(6, 1fr);
  }
  .grid-industries .service-card:nth-child(1),
  .grid-industries .service-card:nth-child(2),
  .grid-industries .service-card:nth-child(3) {
    grid-column: span 2;
  }
  .grid-industries .service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .grid-industries .service-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.panel {
  background: linear-gradient(165deg, rgba(18, 28, 43, 0.95), rgba(13, 20, 32, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.panel:hover {
  border-color: rgba(245, 185, 66, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(245, 185, 66, 0.08);
}
@media (prefers-reduced-motion: no-preference) {
  .panel:hover { transform: translateY(-3px); }
}

.service-card {
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.service-card .icon-emoji {
  font-size: 2rem;
  margin-bottom: 0.85rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid rgba(245, 185, 66, 0.25);
}
.service-card p { color: var(--ink-dim); margin: 0.5rem 0 1rem; font-size: 0.95rem; flex: 1; }
.card-cta {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

.case-mini {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
}
.case-mini .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}
.case-steps { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 700px) {
  .case-steps { grid-template-columns: repeat(3, 1fr); }
}
.case-steps h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}
.case-steps p { color: var(--ink-dim); font-size: 0.95rem; }

.person-card { margin-top: 1rem; }
.person-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}
.person-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(245, 185, 66, 0.55);
  box-shadow: 0 0 24px rgba(245, 185, 66, 0.2);
  background: var(--panel-2);
}
.person-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin: 0.15rem 0 0.5rem;
}
.person-bio { color: var(--ink-dim); font-size: 0.95rem; }

.platform-chip:hover {
  border-color: rgba(245, 185, 66, 0.45);
  color: var(--gold);
}

.savings-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  display: flex;
  gap: 0.75rem;
}
.savings-list li strong { color: var(--gold); font-family: var(--font-display); min-width: 7ch; }

.opp-list { display: grid; gap: 1.25rem; }
.opp-item h3 { color: var(--ink); }
.opp-item p { color: var(--ink-dim); margin-top: 0.35rem; }

.cta-band {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  border: 1px solid rgba(245, 185, 66, 0.25);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(245,185,66,0.12), transparent 55%),
    var(--panel);
  box-shadow: 0 0 60px rgba(245, 185, 66, 0.08);
}
.cta-band .lead { margin: 0.75rem auto 1.5rem; }

/* Forms */
.form-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 860px) {
  .form-grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; }
}
.form-panel label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.4rem;
}
.form-panel .field { margin-bottom: 1rem; }
.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.form-panel textarea { min-height: 100px; resize: vertical; }
.checkbox-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1rem 0;
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.checkbox-row input { margin-top: 0.25rem; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 0.75rem;
}
@media (min-width: 500px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}
.tools-grid label {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--ink-dim);
  cursor: pointer;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.form-error {
  color: var(--red);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: none;
}
.form-error.show { display: block; }
.promise {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}
.privacy-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 1rem; }

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
}
.page-hero .lead { margin-top: 1rem; }
.page-hero .hero-ctas { margin-top: 1.5rem; }
.industry-emoji { font-size: 2rem; margin-bottom: 0.5rem; }

/* Timeline */
.timeline {
  display: grid;
  gap: 0.75rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.timeline-item .when {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}
@media (max-width: 560px) {
  .timeline-item { grid-template-columns: 1fr; }
}

/* FAQ accordion */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 0.65rem;
  padding: 1rem 1.15rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--gold); margin-bottom: 0.6rem; }
.faq details p { color: var(--ink-dim); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 9, 15, 0.9);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr repeat(3, 1fr); }
}
.site-footer h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.85rem;
}
.site-footer a {
  display: block;
  color: var(--ink-dim);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  text-decoration: none;
}
.site-footer a:hover { color: var(--gold); }
.footer-brand { color: var(--ink-dim); font-size: 0.9rem; margin-top: 0.5rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* Floating CTA */
.float-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s;
}
.float-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
body.no-floating-cta .float-cta { display: none !important; }

/* Fade-up */
.fade-up {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .fade-up.in { opacity: 1; transform: none; }
}

.compliance-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  border: 1px dashed var(--line);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.tier-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.tier-confirmed { color: var(--green); }
.tier-canddo { color: var(--gold); }

.steps-big { display: grid; gap: 1.25rem; }
@media (min-width: 800px) {
  .steps-big { grid-template-columns: repeat(3, 1fr); }
}
.step-num {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.kb-list a {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  margin-bottom: 0.65rem;
  text-decoration: none;
}
.kb-list a:hover { border-color: var(--gold); color: var(--gold); }
.kb-list .meta { color: var(--ink-faint); font-size: 0.85rem; margin-top: 0.25rem; }

.map-placeholder {
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  background: var(--panel);
  text-align: center;
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

/* -- Workflow / automation enrichment -- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.trust-chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  background: rgba(13, 20, 32, 0.8);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.trust-chip strong { color: var(--gold); font-weight: 600; }

.page-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.flow-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 1.5rem 0;
}
@media (min-width: 760px) {
  .flow-rail { flex-direction: row; align-items: center; }
}
.node-card {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.node-card .node-io {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.node-card h3 { margin: 0; font-size: 1.05rem; }
.connector {
  position: relative;
  flex: 0 0 48px;
  height: 2px;
  align-self: center;
  opacity: 0.7;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 12px);
  background-size: 24px 2px;
}
@media (max-width: 759px) {
  .connector {
    width: 2px;
    height: 28px;
    flex: 0 0 28px;
    background: repeating-linear-gradient(180deg, var(--cyan) 0 6px, transparent 6px 12px);
    background-size: 2px 24px;
  }
}
.pulse-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  pointer-events: none;
}
@media (max-width: 759px) {
  .pulse-dot { left: 50%; top: 0; margin-left: -4px; margin-top: 0; }
}

.cta-mid {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid rgba(245, 185, 66, 0.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(245,185,66,0.08), rgba(56,211,238,0.06));
  margin-top: 2rem;
}
.cta-mid p { color: var(--ink-dim); margin-bottom: 0.85rem; }

.savings-footnote {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 1rem;
  font-style: italic;
}

.related-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.related-industries a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
}
.related-industries a:hover {
  color: var(--gold);
  border-color: rgba(245, 185, 66, 0.45);
}

.opp-list .panel.opp-item { border-left: 3px solid var(--cyan); }

.proof-row {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
}
@media (min-width: 700px) {
  .proof-row { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .connector { animation: dashFlow 3s linear infinite; }
  @keyframes dashFlow { to { background-position: 24px 0; } }
  @media (max-width: 759px) {
    .connector { animation-name: dashFlowY; }
    @keyframes dashFlowY { to { background-position: 0 24px; } }
  }
  .pulse-dot { animation: pulseTravel 2.8s ease-in-out infinite; }
  @keyframes pulseTravel {
    0% { left: 0; opacity: 0.4; }
    50% { opacity: 1; }
    100% { left: calc(100% - 8px); opacity: 0.4; }
  }
  @media (max-width: 759px) {
    @keyframes pulseTravel {
      0% { top: 0; left: 50%; opacity: 0.4; }
      50% { opacity: 1; }
      100% { top: calc(100% - 8px); left: 50%; opacity: 0.4; }
    }
  }
  .flow-rail .node-card {
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .flow-rail.in .node-card { opacity: 1; transform: none; }
  .flow-svg .line.draw {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
  }
  .hero-visual.in .flow-svg .line.draw {
    animation: railLineDraw 1.2s ease forwards;
  }
  @keyframes railLineDraw { to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-dot { display: none; }
  .connector { animation: none; }
  .flow-rail .node-card { opacity: 1; transform: none; }
  .flow-svg .line.draw { stroke-dashoffset: 0; }
}

/* -- Hero console (animated workflow) -- */
.hero-console {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 0;
  isolation: isolate;
}
.console-chrome {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 15, 0.55);
  position: relative;
  z-index: 2;
}
.console-traffic { display: flex; gap: 5px; }
.console-traffic i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  display: block;
}
.console-traffic i:nth-child(1) { background: #ff6b6b; }
.console-traffic i:nth-child(2) { background: #f5b942; }
.console-traffic i:nth-child(3) { background: #35d6a4; }
.console-path {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  flex: 1;
}
.console-ping {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--green);
  border: 1px solid rgba(53, 214, 164, 0.35);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}
.console-stage {
  position: relative;
  flex: 1;
  min-height: 240px;
  margin: 0.5rem 0.75rem 0;
}
.console-rails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.rail-track {
  stroke: rgba(56, 211, 238, 0.15);
  stroke-width: 10;
  stroke-linecap: round;
}
.rail-dash {
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  opacity: 0.85;
}
.cnode {
  position: absolute;
  z-index: 2;
  min-width: 96px;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(13, 20, 32, 0.92);
  border: 1.5px solid var(--line);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}
.cnode-io {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.15rem;
}
.cnode strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.cnode em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}
.cnode-1 { left: 2%; bottom: 18%; border-color: rgba(245,185,66,0.55); }
.cnode-2 { left: 36%; top: 6%; border-color: rgba(56,211,238,0.55); }
.cnode-3 { right: 18%; bottom: 20%; border-color: rgba(56,211,238,0.45); }
.cnode-4 {
  right: 2%;
  bottom: 12%;
  min-width: 72px;
  text-align: center;
  border-color: rgba(53,214,164,0.5);
  background: rgba(13, 40, 32, 0.85);
}
.cnode-4 .cnode-ring {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(245,185,66,0.6);
}
.console-log {
  position: relative;
  z-index: 2;
  margin: 0.35rem 0.9rem 2.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(6, 9, 15, 0.65);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  min-height: 1.6rem;
  overflow: hidden;
}
.log-line {
  display: none;
  white-space: nowrap;
  overflow: hidden;
}
.log-line.active {
  display: block;
  color: var(--cyan);
}

@media (prefers-reduced-motion: no-preference) {
  .rail-dash { animation: dashMarch 1.1s linear infinite; }
  @keyframes dashMarch { to { stroke-dashoffset: -36; } }

  .console-ping { animation: pingBlink 1.6s ease-in-out infinite; }
  @keyframes pingBlink {
    0%, 100% { opacity: 0.55; box-shadow: none; }
    50% { opacity: 1; box-shadow: 0 0 12px rgba(53,214,164,0.35); }
  }

  .cnode { animation: nodeIdle 4s ease-in-out infinite; }
  .cnode-1 { animation-delay: 0s; }
  .cnode-2 { animation-delay: 0.7s; }
  .cnode-3 { animation-delay: 1.4s; }
  .cnode-4 { animation-delay: 2.1s; }
  @keyframes nodeIdle {
    0%, 100% { transform: translateY(0); filter: brightness(1); }
    40% { transform: translateY(-3px); filter: brightness(1.12); }
    55% { box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 18px rgba(56,211,238,0.2); }
  }

  .cnode-4 .cnode-ring { animation: ringPulse 1.8s ease-out infinite; }
  @keyframes ringPulse {
    0% { box-shadow: 0 0 0 0 rgba(245,185,66,0.55); }
    70% { box-shadow: 0 0 0 12px rgba(245,185,66,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,185,66,0); }
  }

  .hero-console .hero-badge-dot { animation: liveDot 1.4s ease-in-out infinite; }
  @keyframes liveDot {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.25); }
  }

  .log-line.active { animation: logType 0.45s steps(24, end); }
  @keyframes logType {
    from { max-width: 0; opacity: 0.4; }
    to { max-width: 100%; opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .rail-dash { animation: none; stroke-dasharray: none; }
  .packet { display: none; }
  .cnode, .console-ping, .cnode-4 .cnode-ring, .hero-console .hero-badge-dot { animation: none; }
  .log-line { display: block; margin-bottom: 0.2rem; }
  .log-line.active { color: var(--ink-dim); }
}

@media (max-width: 560px) {
  .cnode { min-width: 78px; padding: 0.45rem 0.5rem; }
  .cnode strong { font-size: 0.8rem; }
  .cnode em { display: none; }
  .console-stage { min-height: 200px; }
}

/* -- Hero story (inviting before/after) -- */
.hero-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  min-height: 360px;
  padding: 1.35rem 1.25rem 1.4rem;
  overflow: hidden;
  border-color: rgba(245, 185, 66, 0.28) !important;
  background:
    linear-gradient(160deg, rgba(245,185,66,0.14), transparent 42%),
    linear-gradient(320deg, rgba(56,211,238,0.1), transparent 50%),
    rgba(13, 20, 32, 0.92) !important;
}
.story-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}
.story-orb-a {
  width: 160px; height: 160px;
  left: -40px; top: -50px;
  background: radial-gradient(circle, rgba(245,185,66,0.28), transparent 70%);
}
.story-orb-b {
  width: 180px; height: 180px;
  right: -50px; bottom: -60px;
  background: radial-gradient(circle, rgba(56,211,238,0.22), transparent 70%);
}
.story-kicker {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}
.story-scene {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}
.story-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.story-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.15rem;
}
.task-chip,
.win-chip {
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(6, 9, 15, 0.55);
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-chip {
  border-color: rgba(255, 107, 107, 0.25);
  background: rgba(255, 107, 107, 0.08);
}
.win-chip {
  border-color: rgba(53, 214, 164, 0.35);
  background: rgba(53, 214, 164, 0.1);
  color: var(--ink);
  font-weight: 500;
}
.story-after .story-label { color: var(--green); }
.story-before .story-label { color: #ff8f8f; }

.story-bridge {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bridge-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(245, 185, 66, 0.35);
  background: radial-gradient(circle, rgba(245,185,66,0.2), transparent 65%);
}
.bridge-core {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, #f5b942, #e0a52f);
  color: #0b0f14;
  box-shadow: 0 8px 28px rgba(245, 185, 66, 0.35);
}
.bridge-core strong {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  padding: 0 0.2rem;
}
.bridge-spark {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.8;
  top: 10px; right: 12px;
}
.bridge-arrow {
  display: none;
}

.story-footer {
  position: relative;
  z-index: 1;
  text-align: center;
}
.story-meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 0.55rem;
}
.story-meter-fill {
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}
.story-caption {
  font-size: 0.85rem;
  color: var(--ink-dim);
}

@media (prefers-reduced-motion: no-preference) {
  .story-orb-a { animation: orbDrift 10s ease-in-out infinite alternate; }
  .story-orb-b { animation: orbDrift 12s ease-in-out infinite alternate-reverse; }
  @keyframes orbDrift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(18px, 12px) scale(1.08); }
  }

  .task-chip {
    animation: taskSway 5s ease-in-out infinite;
  }
  .task-chip.delay-1 { animation-delay: 0s; }
  .task-chip.delay-2 { animation-delay: 0.35s; }
  .task-chip.delay-3 { animation-delay: 0.7s; }
  .task-chip.delay-4 { animation-delay: 1.05s; }
  @keyframes taskSway {
    0%, 100% { transform: translateX(0); opacity: 0.85; }
    50% { transform: translateX(-4px); opacity: 1; }
  }

  .win-chip {
    animation: winRise 5.5s ease-in-out infinite;
  }
  .win-chip.delay-1 { animation-delay: 0.2s; }
  .win-chip.delay-2 { animation-delay: 0.55s; }
  .win-chip.delay-3 { animation-delay: 0.9s; }
  .win-chip.delay-4 { animation-delay: 1.25s; }
  @keyframes winRise {
    0%, 100% { transform: translateY(0); box-shadow: none; }
    50% {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(53, 214, 164, 0.15);
      border-color: rgba(53, 214, 164, 0.55);
    }
  }

  .bridge-halo {
    animation: haloPulse 3.2s ease-in-out infinite;
  }
  @keyframes haloPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.12); opacity: 1; }
  }
  .bridge-core {
    animation: coreFloat 3.2s ease-in-out infinite;
  }
  @keyframes coreFloat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
  .bridge-spark {
    animation: sparkTwinkle 2s ease-in-out infinite;
  }
  @keyframes sparkTwinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
  }

  .story-meter-fill {
    animation: meterSweep 4.5s ease-in-out infinite;
  }
  @keyframes meterSweep {
    0% { width: 18%; margin-left: 0; }
    50% { width: 72%; }
    100% { width: 28%; margin-left: 55%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-orb-a, .story-orb-b, .task-chip, .win-chip,
  .bridge-halo, .bridge-core, .bridge-spark, .story-meter-fill {
    animation: none;
  }
  .story-meter-fill { width: 65%; }
}

@media (max-width: 700px) {
  .story-scene {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .story-bridge {
    width: 100%;
    height: auto;
    padding: 0.5rem 0;
  }
  .bridge-halo { display: none; }
  .bridge-core {
    width: auto;
    height: auto;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
  }
  .bridge-core strong { font-size: 0.85rem; }
  .story-col { align-items: stretch; }
}

/* —— Homepage below-fold polish —— */
.platform-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.platform-track {
  display: flex;
  gap: 0.65rem;
  width: max-content;
  padding: 0.25rem 0;
}
@media (prefers-reduced-motion: no-preference) {
  .platform-track {
    animation: marqueeSlide 36s linear infinite;
  }
  @keyframes marqueeSlide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}
.page-home .platform-chip {
  background: transparent;
  border-color: rgba(120, 150, 190, 0.22);
  color: var(--ink-dim);
  white-space: nowrap;
}

.flow-rail-home .node-card {
  background: transparent;
  border-color: rgba(120, 150, 190, 0.22);
  box-shadow: none;
}
.flow-rail-home.in .node-card {
  transition: border-color 0.4s ease, background 0.4s ease;
}
.flow-rail-home.in .node-card:nth-child(1),
.flow-rail-home.in .node-card:nth-child(3),
.flow-rail-home.in .node-card:nth-child(5) {
  border-color: rgba(245, 185, 66, 0.35);
  background: rgba(245, 185, 66, 0.05);
}

.case-editorial {
  max-width: 52rem;
  padding: 0;
  border: none;
  background: none;
}
.case-editorial-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.case-editorial h3 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  max-width: 28ch;
  margin-bottom: 2rem;
  line-height: 1.25;
}
.case-editorial-cols {
  display: grid;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .case-editorial-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
.case-editorial-cols h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.55rem;
  font-weight: 500;
}
.case-editorial-cols p {
  color: var(--ink-dim);
  font-size: 0.98rem;
  line-height: 1.55;
}
.case-editorial-cta { margin-top: 2rem; }

.grid-industries-home {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) {
  .grid-industries-home {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .grid-industries-home {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-industries-home .industry-link:nth-child(4),
  .grid-industries-home .industry-link:nth-child(5) {
    grid-column: span 1;
  }
}
.industry-link {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 1.35rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: background 0.25s ease;
  min-height: 11rem;
}
.industry-link:hover {
  background: rgba(245, 185, 66, 0.05);
  text-decoration: none;
}
.industry-link:hover h3 { color: var(--gold); }
.industry-mark {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}
.industry-link h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  transition: color 0.2s ease;
}
.industry-link p {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  flex: 1;
  line-height: 1.5;
}
.industry-link .card-cta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.industries-all {
  margin-top: 1.75rem;
  text-align: center;
}

.cta-band-home {
  border: none;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(245, 185, 66, 0.1), transparent 60%),
    transparent;
  box-shadow: none;
  padding: clamp(3.5rem, 9vw, 5.5rem) 0.5rem;
  position: relative;
}
.cta-band-home::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(100%, 12rem);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-band-home h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}
.cta-band-home .btn-primary {
  min-width: 14rem;
  box-shadow: 0 12px 40px rgba(245, 185, 66, 0.25);
}

.page-home .fade-up {
  transition-duration: 0.65s;
}

