:root {
  --bg: #0a0a0a;
  --text: #f4f2ee;
  --accent: #c8ff00;
  --card: #1a1a1a;
  --border: #222222;
  --muted: #888888;
  --soft: #c7c2b7;
  --danger: #ff4d4d;
  --black: #050505;
  --focus: #e6ff66;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: "DM Mono", Consolas, monospace;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  z-index: -2;
}

body::before {
  background:
    linear-gradient(rgba(244, 242, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 242, 238, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 92%);
}

body::after {
  opacity: 0.035;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.65'/%3E%3C/svg%3E");
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--bg);
  background: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--accent);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  color: var(--text);
  background: #050505;
  animation: loaderExit 0.7s ease 0.9s forwards;
}

.loader.is-hidden {
  display: none;
}

.loader-word {
  font-family: "Syne", Arial, sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.loader-word span {
  color: var(--accent);
  animation: periodPulse 0.78s ease-in-out infinite;
}

.loader-track {
  width: 210px;
  height: 1px;
  overflow: hidden;
  background: rgba(244, 242, 238, 0.15);
}

.loader-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: loaderLine 1s ease forwards;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(200, 255, 0, 0.8);
}

.cursor {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 998;
  display: none;
  pointer-events: none;
}

.has-cursor {
  cursor: none;
}

.has-cursor a,
.has-cursor button,
.has-cursor input,
.has-cursor select,
.has-cursor textarea {
  cursor: none;
}

.has-cursor .cursor {
  display: block;
}

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

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(200, 255, 0, 0.8);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(200, 255, 0, 0.45);
  transition: transform 0.08s ease-out, width 0.18s ease, height 0.18s ease, border-color 0.18s ease;
}

.cursor.is-active .cursor-ring {
  width: 54px;
  height: 54px;
  border-color: rgba(200, 255, 0, 0.8);
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 118px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(34, 34, 34, 0.9);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(1280px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
}

.brand,
.footer-logo {
  color: var(--text);
  font-family: "Syne", Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.brand span,
.footer-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nav-links a,
.footer-links a {
  position: relative;
  color: rgba(244, 242, 238, 0.74);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-links a::after,
.footer-links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  content: "";
}

.nav-links a:hover,
.nav-links a.is-active,
.footer-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.is-active::after,
.footer-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  color: var(--bg);
  background: var(--accent);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-cta {
  min-height: 38px;
  padding: 0 14px;
}

.button:hover,
.nav-cta:hover {
  box-shadow: 0 0 28px rgba(200, 255, 0, 0.28);
}

.button-secondary {
  color: var(--text);
  background: transparent;
  border-color: rgba(244, 242, 238, 0.22);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-dark {
  color: var(--accent);
  background: var(--bg);
  border-color: var(--bg);
}

.button-lime-outline {
  color: var(--bg);
  background: transparent;
  border-color: rgba(10, 10, 10, 0.38);
}

.button-lime-outline:hover {
  color: var(--accent);
  background: var(--bg);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: var(--text);
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  min-height: calc(100vh - 74px);
  padding: 70px 0 96px;
  display: grid;
  align-items: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0) 0%, rgba(200, 255, 0, 0.05) 52%, rgba(10, 10, 10, 0) 100%),
    linear-gradient(to bottom, rgba(244, 242, 238, 0.04), transparent 34%);
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-copy,
.hero-visual,
.visual-frame,
.sticky-console,
.metric-lab,
.contact-form {
  min-width: 0;
}

.eyebrow,
.section-label,
.frame-label,
.console-label,
.output-label,
.signal-readout span,
.contact-details dt,
.card-index,
.service-number {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.hero-title,
h2,
h3 {
  margin: 0;
  font-family: "Syne", Arial, sans-serif;
  font-weight: 800;
  line-height: 0.98;
  overflow-wrap: break-word;
}

.hero-title {
  max-width: 760px;
  margin-top: 24px;
  font-size: 66px;
  overflow-wrap: normal;
}

.title-line {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  animation: titleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.title-line-payoff {
  animation-delay: 0.12s;
}

.title-line-sharp {
  color: rgba(244, 242, 238, 0.72);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 77, 77, 0.7);
  text-decoration-thickness: 3px;
}

.hero-title em {
  color: var(--accent);
  font-style: normal;
  text-shadow: 0 0 26px rgba(200, 255, 0, 0.18);
}

.hero-body {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(244, 242, 238, 0.76);
  font-size: 17px;
  overflow-wrap: break-word;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.microcopy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  width: 100%;
  perspective: 1100px;
}

.visual-frame,
.sticky-console,
.metric-lab,
.diagnosis-panel,
.contact-form {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(26, 26, 26, 0.78);
  box-shadow: var(--shadow);
}

.visual-frame {
  min-height: 620px;
  padding: 24px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

.visual-frame::before,
.sticky-console::before,
.service-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(244, 242, 238, 0.05), rgba(244, 242, 238, 0.05) 1px, transparent 1px, transparent 7px);
  opacity: 0.16;
  content: "";
}

.frame-label {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 1;
  color: rgba(200, 255, 0, 0.85);
}

.system-map {
  width: 100%;
  height: 100%;
  min-height: 560px;
}

.system-grid path {
  fill: none;
  stroke: rgba(244, 242, 238, 0.055);
  stroke-width: 1;
}

.system-line,
.process-line {
  fill: none;
  stroke: rgba(244, 242, 238, 0.18);
  stroke-width: 2;
  stroke-dasharray: 8 14;
  transition: stroke 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}

.system-line.broken {
  stroke: rgba(255, 77, 77, 0.32);
}

.system-line.is-active,
.process-line.is-active {
  stroke: var(--accent);
  filter: url("#limeGlow");
  animation: signalFlow 1.8s linear infinite;
}

.system-node {
  color: var(--muted);
  outline: none;
}

.system-node circle,
.process-node circle {
  fill: #101010;
  stroke: rgba(244, 242, 238, 0.22);
  stroke-width: 1.5;
  transition: fill 0.25s ease, stroke 0.25s ease, filter 0.25s ease;
}

.system-node text,
.process-node text,
.process-core-text {
  fill: currentColor;
  font-family: "DM Mono", Consolas, monospace;
  font-size: 18px;
  text-anchor: middle;
  transition: fill 0.25s ease;
}

.node-broken circle {
  stroke: rgba(255, 77, 77, 0.58);
}

.system-node.is-active {
  color: var(--accent);
}

.system-node.is-active circle,
.process-node.is-active circle {
  fill: rgba(200, 255, 0, 0.08);
  stroke: var(--accent);
  filter: url("#limeGlow");
}

.signal-readout {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 4px;
  min-width: 210px;
  padding: 14px;
  border: 1px solid rgba(200, 255, 0, 0.28);
  background: rgba(10, 10, 10, 0.76);
}

.signal-readout strong {
  color: var(--text);
  font-family: "Syne", Arial, sans-serif;
  font-size: 22px;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0f0f0f;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 28px;
  color: rgba(244, 242, 238, 0.72);
  font-family: "Syne", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.marquee span::after {
  width: 6px;
  height: 6px;
  margin-left: 28px;
  background: var(--accent);
  content: "";
}

.section-label {
  margin-bottom: 20px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: start;
  margin-bottom: 44px;
}

.section-heading.compact {
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
}

.section-heading h2,
.about-grid h2,
.cta-grid h2,
.contact-intro h2 {
  font-size: 56px;
}

.section-heading p,
.about-copy p,
.cta-grid p,
.contact-intro p {
  margin: 0;
  color: rgba(244, 242, 238, 0.72);
}

.problem-grid,
.services-grid,
.audience-grid {
  display: grid;
  gap: 2px;
}

.problem-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.spotlight-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(200, 255, 0, 0.12), transparent 220px),
    var(--card);
}

.spotlight-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
  content: "";
}

.spotlight-card:hover::after,
.spotlight-card:focus-within::after {
  border-color: rgba(200, 255, 0, 0.42);
}

.diagnostic-card {
  min-height: 320px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(0);
  opacity: 1;
}

.animations-ready .diagnostic-card {
  transform: translateY(24px);
  opacity: 0;
}

.animations-ready .diagnostic-card.is-visible {
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.diagnostic-card h3,
.audience-card h3 {
  font-size: 25px;
  line-height: 1.08;
}

.diagnostic-card p,
.audience-card p,
.service-card p,
.service-card li,
.metric-group li,
.process-step p {
  color: rgba(244, 242, 238, 0.68);
}

.diagnosis-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 2px;
  padding: 2px;
}

.diagnosis-options {
  display: grid;
  gap: 2px;
}

.bottleneck-option {
  min-height: 72px;
  padding: 18px;
  border: 0;
  color: rgba(244, 242, 238, 0.68);
  background: #111;
  text-align: left;
  transition: color 0.18s ease, background 0.18s ease, padding 0.18s ease;
}

.bottleneck-option:hover,
.bottleneck-option.is-active {
  padding-left: 26px;
  color: var(--accent);
  background: #181818;
}

.diagnosis-output {
  min-height: 100%;
  padding: 34px;
  background: #0d0d0d;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.diagnosis-output.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.diagnosis-output h3 {
  max-width: 720px;
  margin-top: 12px;
  font-size: 32px;
  line-height: 1.12;
}

.output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 34px;
}

.output-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
}

.output-grid p {
  margin: 0;
  color: rgba(244, 242, 238, 0.7);
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  position: relative;
  min-height: 264px;
  padding: 0;
  overflow: hidden;
  transition: min-height 0.28s ease, border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover,
.service-card.is-open {
  min-height: 410px;
  border-color: rgba(200, 255, 0, 0.48);
}

.service-toggle {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  width: 100%;
  padding: 26px;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.service-name {
  font-family: "Syne", Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.08;
}

.service-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(244, 242, 238, 0.22);
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover .service-arrow,
.service-card.is-open .service-arrow {
  border-color: var(--accent);
  transform: rotate(45deg);
}

.service-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 26px 26px;
}

.service-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 26px 28px 44px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.service-card:hover ul,
.service-card.is-open ul {
  opacity: 1;
  transform: translateY(0);
}

.service-card li::marker {
  color: var(--accent);
}

.system-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.system-sticky {
  position: sticky;
  top: 104px;
}

.sticky-console {
  min-height: 620px;
  padding: 28px;
}

.sticky-console strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-family: "Syne", Arial, sans-serif;
  font-size: 42px;
}

.process-map {
  display: block;
  width: min(100%, 520px);
  margin: 34px auto 0;
}

.process-node {
  color: rgba(244, 242, 238, 0.56);
}

.process-node.is-active {
  color: var(--accent);
}

.process-core {
  fill: rgba(200, 255, 0, 0.035);
  stroke: rgba(200, 255, 0, 0.26);
}

.process-core-text {
  fill: rgba(244, 242, 238, 0.7);
  font-size: 17px;
}

.process-steps {
  display: grid;
  gap: 18px;
}

.process-step {
  min-height: 290px;
  padding: 34px;
  border: 1px solid var(--border);
  background: rgba(26, 26, 26, 0.52);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.process-step.is-active {
  border-color: rgba(200, 255, 0, 0.58);
  background: rgba(26, 26, 26, 0.9);
  transform: translateX(8px);
}

.process-step span {
  color: var(--accent);
  font-size: 13px;
}

.process-step h3 {
  margin-top: 18px;
  font-size: 40px;
}

.process-step p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 16px;
}

.metric-lab {
  padding: 30px;
}

.metric-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
}

.metric-stage {
  min-height: 76px;
  border: 1px solid var(--border);
  color: rgba(244, 242, 238, 0.68);
  background: #101010;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.metric-stage:hover,
.metric-stage.is-active {
  color: var(--accent);
  border-color: rgba(200, 255, 0, 0.58);
  background: #171717;
}

.metric-connector {
  position: relative;
  height: 48px;
}

.metric-connector::before {
  position: absolute;
  top: 23px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(244, 242, 238, 0.12);
  content: "";
}

.metric-connector span {
  position: absolute;
  top: 18px;
  left: 12.5%;
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(200, 255, 0, 0.8);
  transform: translateX(-50%) rotate(45deg);
  transition: left 0.24s ease;
}

.metric-lab[data-active-stage="consideration"] .metric-connector span {
  left: 37.5%;
}

.metric-lab[data-active-stage="conversion"] .metric-connector span {
  left: 62.5%;
}

.metric-lab[data-active-stage="operations"] .metric-connector span {
  left: 87.5%;
}

.metric-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
}

.metric-group {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(34, 34, 34, 0.9);
  background: #101010;
  opacity: 0.42;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.metric-group.is-active {
  opacity: 1;
  border-color: rgba(200, 255, 0, 0.58);
  transform: translateY(-4px);
}

.metric-group h3 {
  font-size: 24px;
}

.metric-group ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 20px;
}

.metric-group li::marker {
  color: var(--accent);
}

.audience-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audience-card {
  min-height: 300px;
  padding: 28px;
  transition: transform 0.16s ease, border-color 0.18s ease;
}

.audience-card-wide {
  grid-column: span 2;
}

.audience-card:hover {
  border-color: rgba(200, 255, 0, 0.62);
}

.audience-card p {
  margin: 28px 0 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 20px;
}

.about-copy blockquote {
  margin: 20px 0;
  padding: 34px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  background: var(--card);
  font-family: "Syne", Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}

.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.values-list li {
  padding: 20px;
  border: 1px solid var(--border);
  color: rgba(244, 242, 238, 0.78);
  background: #101010;
}

.values-list li::before {
  color: var(--accent);
  content: "+ ";
}

.cta-section {
  padding: 76px 0;
  color: var(--bg);
  background: var(--accent);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.dark-label,
.dark-copy {
  color: rgba(10, 10, 10, 0.64);
}

.cta-grid p {
  color: rgba(10, 10, 10, 0.78);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 54px;
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: 114px;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin: 42px 0 0;
}

.contact-details div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.contact-details dd {
  margin: 5px 0 0;
  color: var(--text);
  font-family: "Syne", Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
}

.contact-details a {
  text-decoration-color: rgba(200, 255, 0, 0.62);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.contact-form {
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.full-field {
  grid-column: 1 / -1;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: rgba(244, 242, 238, 0.74);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  color: var(--text);
  background: #0f0f0f;
  border-radius: 0;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input,
select {
  height: 50px;
  padding: 0 14px;
}

textarea {
  min-height: 126px;
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.08);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.contact-form .button {
  width: 100%;
  margin-top: 22px;
}

.form-success {
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid rgba(200, 255, 0, 0.52);
  color: var(--accent);
  background: rgba(200, 255, 0, 0.06);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 38px 0;
  background: #070707;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.reveal-section {
  opacity: 1;
  transform: translateY(0);
}

.animations-ready .reveal-section {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animations-ready .reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes loaderLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes periodPulse {
  0%, 100% { opacity: 0.42; text-shadow: none; }
  50% { opacity: 1; text-shadow: 0 0 18px rgba(200, 255, 0, 0.95); }
}

@keyframes loaderExit {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signalFlow {
  to { stroke-dashoffset: -44; }
}

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

@media (max-width: 1120px) {
  .hero-title {
    font-size: 58px;
  }

  .hero-grid,
  .system-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 760px;
  }

  .system-sticky,
  .contact-intro {
    position: relative;
    top: auto;
  }

  .problem-grid,
  .services-grid,
  .audience-grid,
  .metric-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .section-heading.compact,
  .about-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.98);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-title,
  .section-heading h2,
  .about-grid h2,
  .cta-grid h2,
  .contact-intro h2 {
    font-size: 46px;
  }

  .visual-frame,
  .sticky-console {
    min-height: auto;
  }

  .system-map {
    min-height: 430px;
  }

  .diagnosis-panel,
  .output-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .metric-stages {
    grid-template-columns: 1fr 1fr;
  }

  .metric-connector {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

  .section-inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .nav {
    width: min(1280px, calc(100% - 24px));
  }

  .section {
    padding: 82px 0;
  }

  .hero-title {
    font-size: 34px;
  }

  .eyebrow,
  .section-label {
    overflow-wrap: anywhere;
  }

  .hero-body {
    font-size: 15px;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
  }

  .visual-frame,
  .contact-form,
  .metric-lab,
  .sticky-console {
    padding: 20px;
  }

  .system-map {
    min-height: 350px;
  }

  .button {
    width: 100%;
  }

  .problem-grid,
  .services-grid,
  .audience-grid,
  .metric-groups,
  .values-list {
    grid-template-columns: 1fr;
  }

  .audience-card-wide {
    grid-column: auto;
  }

  .diagnostic-card,
  .audience-card {
    min-height: 230px;
  }

  .service-card,
  .service-card:hover,
  .service-card.is-open {
    min-height: auto;
  }

  .service-card ul {
    opacity: 1;
    transform: none;
  }

  .process-step {
    min-height: 230px;
    padding: 26px;
  }

  .process-step.is-active {
    transform: none;
  }

  .process-step h3 {
    font-size: 32px;
  }

  .section-heading h2,
  .about-grid h2,
  .cta-grid h2,
  .contact-intro h2 {
    font-size: 36px;
  }

  .about-copy blockquote {
    padding: 24px;
    font-size: 25px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .loader {
    display: none;
  }

  .reveal-section,
  .diagnostic-card,
  .title-line {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }
}
