:root {
  --midnight: #0b111c;
  --midnight-deep: #070c14;
  --graphite: #1b1f24;
  --graphite-medium: #2c3340;
  --blue: #1565ff;
  --blue-light: #3d8eff;
  --cyan: #00bbd4;
  --ice: #f0f4f8;
  --white: #ffffff;
  --muted: #aeb9c8;
  --line: rgba(174, 185, 200, 0.2);
  --surface: rgba(27, 31, 36, 0.78);
  --danger: #ff6b6b;
  --radius: 12px;
  --container: 1240px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  max-width: 100%;
  margin: 0;
  color: var(--ice);
  background: var(--midnight);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 8%, rgba(21, 101, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 10% 72%, rgba(0, 187, 212, 0.05), transparent 24rem),
    var(--midnight);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.68; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1;
  text-wrap: balance;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(3.5rem, 7vw, 6rem); max-width: 12ch; margin-bottom: 1.4rem; }
h2 { font-size: clamp(2.7rem, 5vw, 4.5rem); max-width: 14ch; margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.55rem, 2.5vw, 2rem); margin-bottom: 0.7rem; }
p { color: var(--muted); text-wrap: pretty; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: clamp(5rem, 9vw, 9rem) 0; position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999; transform: translateY(-160%); background: var(--white); color: var(--midnight); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 30; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(11, 17, 28, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: background-color 180ms ease, border-color 180ms ease;
}
.site-header.is-scrolled { background: rgba(7, 12, 20, 0.94); border-color: var(--line); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand img, .footer-brand img { width: 190px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 1.7rem; }
.primary-nav > a:not(.button) { text-decoration: none; color: var(--ice); font-size: 0.92rem; }
.primary-nav > a:not(.button):hover, .primary-nav > a:not(.button):focus-visible { color: var(--cyan); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.menu-toggle span:not(.sr-only) { height: 2px; background: var(--white); display: block; margin: 5px 0; }

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--blue);
  border-radius: 9px;
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 180ms var(--ease-out-quart), border-color 180ms var(--ease-out-quart), transform 180ms var(--ease-out-quart);
}
.button:hover { background: var(--blue-light); border-color: var(--blue-light); transform: translateY(-1px); }
.button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.22), transparent 65%); transform: translateX(-130%); transition: transform 420ms var(--ease-out-quart); pointer-events: none; }
.button:hover::after { transform: translateX(130%); }
.button:active { transform: translateY(0) scale(0.97); }
.button-small { min-height: 42px; padding: 0.65rem 1rem; font-size: 0.88rem; }
.button-secondary { background: transparent; color: var(--ice); border-color: var(--graphite-medium); }
.button-secondary:hover { background: var(--graphite-medium); border-color: var(--graphite-medium); }
.text-link { color: var(--white); text-decoration: none; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.text-link span { color: var(--cyan); transition: transform 180ms var(--ease-out-quart); }
.text-link:hover span { transform: translateX(4px); }

.hero { min-height: 100svh; display: grid; align-items: center; padding: 9.5rem 0 6rem; position: relative; overflow: hidden; }
.hero-video, .hero-video-shade { position: absolute; inset: 0; pointer-events: none; }
.hero-video { z-index: 0; background: var(--midnight-deep) url("../assets/video/meraxis-operations-poster.jpg") center / cover no-repeat; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; opacity: 0.56; filter: contrast(1.08) saturate(0.72); }
.hero-video-shade {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 20, 0.97) 0%, rgba(7, 12, 20, 0.88) 42%, rgba(7, 12, 20, 0.64) 70%, rgba(7, 12, 20, 0.82) 100%),
    linear-gradient(180deg, rgba(7, 12, 20, 0.55), rgba(7, 12, 20, 0.34) 48%, var(--midnight) 100%);
}
.hero-video-toggle {
  position: absolute;
  z-index: 4;
  right: max(20px, calc((100vw - var(--container)) / 2));
  bottom: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(174, 185, 200, 0.28);
  border-radius: 8px;
  color: var(--ice);
  background: rgba(7, 12, 20, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  transition: border-color 180ms var(--ease-out-quart), background-color 180ms var(--ease-out-quart);
}
.hero-video-toggle:hover { border-color: rgba(0, 187, 212, 0.65); background: rgba(7, 12, 20, 0.9); }
.video-toggle-icon { width: 8px; height: 10px; border-inline: 2px solid var(--cyan); }
.hero-video-toggle[aria-pressed="true"] .video-toggle-icon { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid var(--cyan); border-right: 0; }
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(61, 142, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 142, 255, 0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  transform: perspective(600px) rotateX(58deg) scale(1.5) translateY(8%);
  transform-origin: center top;
}
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr); align-items: center; gap: clamp(3rem, 8vw, 7rem); }
.hero-copy, .ops-panel { min-width: 0; max-width: 100%; }
.context-line, .section-tag { color: var(--cyan); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; }
.context-line { display: flex; align-items: center; gap: 10px; }
.context-line span { width: 36px; height: 1px; background: var(--cyan); }
.hero-lead { max-width: 61ch; color: var(--ice); font-size: clamp(1.08rem, 1.7vw, 1.28rem); }
.hero-soul { max-width: 62ch; color: var(--blue-light); font-size: 0.88rem; font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; margin: 2rem 0 1.25rem; flex-wrap: wrap; }
.hero-note { font-size: 0.88rem; max-width: 58ch; }
.hero-capabilities { display: flex; flex-wrap: wrap; gap: 0.65rem 1.1rem; padding-top: 1.15rem; margin-top: 1.15rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-capabilities span { display: inline-flex; align-items: center; gap: 7px; }
.hero-capabilities i { width: 5px; height: 5px; background: var(--cyan); border-radius: 50%; }

.ops-panel { position: relative; background: rgba(7, 12, 20, 0.9); border: 1px solid rgba(61, 142, 255, 0.4); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 187, 212, 0.05), 0 28px 70px -55px rgba(21, 101, 255, 0.9); transform-origin: center; transition: border-color 300ms var(--ease-out-quart), box-shadow 300ms var(--ease-out-quart), transform 300ms var(--ease-out-quart); }
.ops-panel:hover { border-color: rgba(0, 187, 212, 0.55); box-shadow: 0 0 0 1px rgba(0, 187, 212, 0.08), 0 35px 80px -50px rgba(21, 101, 255, 0.95); transform: translateY(-3px); }
.ops-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(21, 101, 255, 0.08), transparent 40%); pointer-events: none; }
.panel-scan { position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(0, 187, 212, 0.16), transparent); transform: translateY(-110%); opacity: 0; }
.panel-top, .panel-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.panel-top strong { display: block; color: var(--white); font-size: 0.95rem; }
.panel-label { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.status-pill { color: var(--ice); font-size: 0.72rem; display: flex; align-items: center; gap: 7px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(0, 187, 212, 0.1); }
.signal-strip { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.signal-strip div { padding: 0.75rem 1.2rem; border-right: 1px solid var(--line); }
.signal-strip div:last-child { border-right: 0; }
.signal-strip span { color: var(--muted); display: block; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.08em; }
.signal-strip strong { color: var(--ice); display: block; font-size: 0.74rem; }
.panel-body { position: relative; padding: 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.axis-map { position: relative; min-height: 230px; background: radial-gradient(circle at center, rgba(21, 101, 255, 0.12), transparent 60%); }
.axis-core { position: absolute; z-index: 2; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; display: grid; place-items: center; border: 1px solid rgba(61, 142, 255, 0.34); border-radius: 50%; background: radial-gradient(circle, rgba(21, 101, 255, 0.2), rgba(3, 13, 29, 0.92) 68%); box-shadow: 0 0 0 8px rgba(21, 101, 255, 0.04), 0 0 32px rgba(0, 187, 212, 0.14); }
.axis-core::before { content: ""; position: absolute; inset: -9px; border: 1px solid rgba(0, 187, 212, 0.2); border-radius: inherit; animation: core-pulse 3.6s ease-out infinite; }
.axis-core img { position: relative; z-index: 1; width: 66px; height: 66px; object-fit: cover; border-radius: 50%; }
@keyframes core-pulse {
  0%, 25% { transform: scale(0.9); opacity: 0; }
  45% { opacity: 0.65; }
  80%, 100% { transform: scale(1.22); opacity: 0; }
}
.axis-ring { position: absolute; inset: 50% auto auto 50%; border: 1px solid rgba(61, 142, 255, 0.18); border-radius: 50%; transform: translate(-50%, -50%); }
.ring-a { width: 120px; height: 120px; }
.ring-b { width: 190px; height: 190px; border-style: dashed; opacity: 0.7; }
.axis-node { position: absolute; width: 10px; height: 10px; border: 2px solid var(--cyan); border-radius: 50%; background: var(--midnight-deep); }
.node-a { top: 17%; left: 15%; }.node-b { top: 17%; right: 15%; }.node-c { bottom: 17%; left: 15%; }.node-d { bottom: 17%; right: 15%; }
.axis-line { position: absolute; height: 1px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left center; opacity: 0.8; }
.line-a { width: 36%; left: 18%; top: 20%; transform: rotate(28deg); }.line-b { width: 36%; left: 50%; top: 50%; transform: rotate(-28deg); }.line-c { width: 63%; left: 19%; bottom: 19%; }
.axis-caption { position: absolute; color: var(--muted); font-size: 0.54rem; text-transform: uppercase; letter-spacing: 0.08em; }
.caption-a { top: 7%; left: 8%; }.caption-b { top: 7%; right: 6%; }.caption-c { bottom: 6%; left: 5%; }.caption-d { bottom: 6%; right: 7%; }
.ops-list { margin: 0; display: grid; align-content: center; }
.ops-list div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); transition: transform 200ms var(--ease-out-quart), border-color 200ms var(--ease-out-quart); }
.ops-list div:hover { transform: translateX(4px); border-color: rgba(0, 187, 212, 0.45); }
.ops-list dt { color: var(--muted); font-size: 0.72rem; }
.ops-list dd { margin: 2px 0 0; color: var(--ice); font-size: 0.82rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ops-list em { color: var(--blue-light); font-size: 0.55rem; font-style: normal; text-transform: uppercase; letter-spacing: 0.06em; margin-left: auto; }
.ok-dot, .warn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.warn-dot { background: var(--blue-light); }
.activity-line { display: grid; grid-template-columns: auto 8px 1fr; align-items: center; gap: 0.7rem; padding: 0.75rem 1.2rem; border-top: 1px solid var(--line); }
.activity-time { color: var(--cyan); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.08em; }
.activity-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.activity-line p { font-size: 0.65rem; margin: 0; }
.activity-line strong { color: var(--ice); }
.panel-foot { border: 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; }

.motion-ready .hero-copy > *, .motion-ready .ops-panel { opacity: 0; }
.motion-ready .hero-copy > * { transform: translateY(14px); filter: blur(4px); }
.motion-ready .ops-panel { transform: translateY(18px) scale(0.985); filter: blur(5px); }
.motion-ready.is-loaded .hero-copy > * { animation: hero-enter 680ms var(--ease-out-expo) both; animation-delay: calc(var(--hero-i, 0) * 75ms + 120ms); }
.motion-ready.is-loaded .hero-copy > :nth-child(1) { --hero-i: 0; }.motion-ready.is-loaded .hero-copy > :nth-child(2) { --hero-i: 1; }.motion-ready.is-loaded .hero-copy > :nth-child(3) { --hero-i: 2; }.motion-ready.is-loaded .hero-copy > :nth-child(4) { --hero-i: 3; }.motion-ready.is-loaded .hero-copy > :nth-child(5) { --hero-i: 4; }.motion-ready.is-loaded .hero-copy > :nth-child(6) { --hero-i: 5; }
.motion-ready.is-loaded .hero-copy > :nth-child(7) { --hero-i: 6; }
.motion-ready.is-loaded .ops-panel { animation: panel-enter 820ms var(--ease-out-expo) 260ms both; }
.motion-ready.is-loaded .panel-scan { animation: panel-scan 1100ms var(--ease-out-quart) 900ms both; }
@keyframes hero-enter { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes panel-enter { to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes panel-scan { 0% { opacity: 0; transform: translateY(-110%); } 18% { opacity: 1; } 78% { opacity: 0.55; } 100% { opacity: 0; transform: translateY(110%); } }

.section-heading { max-width: 760px; margin-bottom: 3.5rem; }
.section-heading > p:not(.section-tag) { max-width: 64ch; font-size: 1.05rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.15fr 0.7fr; gap: 4rem; align-items: end; }
.split-heading > p { padding-bottom: 0.5rem; }
.problem-section { border-top: 1px solid var(--line); }
.problem-ledger { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); }
.problem-ledger article { display: grid; grid-template-columns: 50px 0.7fr 1fr; gap: 1rem; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: background-color 200ms var(--ease-out-quart), transform 200ms var(--ease-out-quart); }
.problem-ledger article:hover { background: rgba(21, 101, 255, 0.04); transform: translateX(3px); }
.problem-ledger article:nth-child(odd) { padding-right: 2rem; }
.problem-ledger article:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); }
.problem-ledger span { color: var(--cyan); font-family: var(--font-display); font-weight: 700; }
.problem-ledger h3 { font-size: 1.6rem; margin: 0; }
.problem-ledger p { margin: 0; font-size: 0.92rem; }
.section-conclusion { margin: 2rem 0 0 auto; padding-left: 1rem; border-left: 1px solid var(--cyan); color: var(--ice); max-width: 54ch; }
.conversion-prompt { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid rgba(61, 142, 255, 0.35); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.conversion-prompt p { max-width: 58ch; margin: 0; color: var(--ice); font-size: clamp(1rem, 1.6vw, 1.18rem); font-weight: 600; }
.conversion-prompt .button { flex-shrink: 0; }
.conversion-prompt-wide { margin-top: clamp(3rem, 6vw, 5rem); }

.services { background: var(--midnight-deep); border-block: 1px solid var(--line); }
.services-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.services-intro { position: sticky; top: 120px; }
.services-intro p { max-width: 48ch; }
.service-rows { border-top: 1px solid var(--line); }
.service-rows article { display: grid; grid-template-columns: 46px 1fr auto; gap: 1.2rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: transform 220ms var(--ease-out-quart), border-color 220ms var(--ease-out-quart), background-color 220ms var(--ease-out-quart); }
.service-rows article:hover { transform: translateX(6px); border-color: rgba(0, 187, 212, 0.4); background: linear-gradient(90deg, rgba(21, 101, 255, 0.05), transparent); }
.service-rows h3 { margin-bottom: 0.35rem; font-size: 1.75rem; }
.service-rows p { margin: 0; font-size: 0.9rem; max-width: 56ch; }
.service-index { color: var(--cyan); font-family: var(--font-display); font-weight: 700; }
.service-state { color: var(--blue-light); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 0.45rem; }

.open-source { background: linear-gradient(180deg, var(--midnight), var(--midnight-deep)); overflow: hidden; }
.open-source::before { content: ""; position: absolute; inset: 0; opacity: 0.22; pointer-events: none; background-image: linear-gradient(rgba(61, 142, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(61, 142, 255, 0.08) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, transparent, black 45%, transparent); }
.open-source-heading { position: relative; display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(3rem, 8vw, 8rem); align-items: end; margin-bottom: 4rem; }
.open-source-heading h2 { max-width: 13ch; }
.open-source-thesis { padding-left: 1.5rem; border-left: 1px solid var(--cyan); }
.open-source-thesis strong { color: var(--ice); font-size: 0.9rem; }
.technology-rails { position: relative; border-top: 1px solid var(--line); }
.technology-rail { display: grid; grid-template-columns: 190px 1fr 0.65fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: 1.8rem 0; border-bottom: 1px solid var(--line); transition: background-color 240ms var(--ease-out-quart), transform 240ms var(--ease-out-quart); }
.technology-rail:hover { background: linear-gradient(90deg, rgba(21, 101, 255, 0.06), transparent); transform: translateX(5px); }
.technology-logo { height: 92px; display: grid; place-items: center; padding: 1rem; border-radius: 10px; background: var(--white); overflow: hidden; }
.technology-logo img { width: 100%; max-height: 62px; object-fit: contain; }
.logo-wazuh img { width: 88px; height: 88px; max-height: none; object-fit: cover; }
.technology-copy span, .client-copy > span { display: block; color: var(--cyan); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.technology-copy h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.55rem; }
.technology-copy p { max-width: 62ch; margin: 0; font-size: 0.88rem; }
.technology-rail ul { list-style: none; padding: 0; margin: 0; }
.technology-rail li { color: var(--ice); font-size: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.technology-rail li::before { content: "↳"; color: var(--cyan); margin-right: 0.5rem; }
.technology-note { position: relative; max-width: 90ch; margin: 1.4rem 0 0 auto; font-size: 0.68rem; text-align: right; }

.method { overflow: hidden; }
.method::before { content: ""; position: absolute; width: 50%; height: 1px; right: 0; top: 7rem; background: linear-gradient(90deg, transparent, var(--cyan)); opacity: 0.5; }
.method-track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.method-track::before { content: ""; position: absolute; top: 39px; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.method-track::after { content: ""; position: absolute; top: 37px; left: 6%; right: 6%; height: 5px; background: linear-gradient(90deg, var(--blue), var(--cyan)); opacity: 0.18; transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-out-expo); }
.method-track.is-visible::after { transform: scaleX(1); }
.method-track li { position: relative; padding: 0 1rem; }
.method-number { position: relative; z-index: 1; display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 1.6rem; border-radius: 50%; background: var(--midnight); border: 1px solid var(--blue); color: var(--white); font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; transition: color 220ms var(--ease-out-quart), background-color 220ms var(--ease-out-quart), transform 220ms var(--ease-out-quart); }
.method-track li:hover .method-number { background: var(--blue); transform: translateY(-3px); }
.method-track li:nth-child(even) .method-number { border-color: var(--cyan); }
.method-track h3 { font-size: 1.75rem; }
.method-track p { font-size: 0.86rem; }

.plans { background: var(--midnight-deep); border-block: 1px solid var(--line); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(27, 31, 36, 0.42); transition: transform 260ms var(--ease-out-quart), border-color 260ms var(--ease-out-quart), background-color 260ms var(--ease-out-quart); }
.plan-card:hover { transform: translateY(-5px); border-color: rgba(61, 142, 255, 0.48); background: rgba(27, 31, 36, 0.72); }
.plan-card h3 { font-size: 2.2rem; max-width: 9ch; }
.plan-card p { font-size: 0.92rem; }
.plan-card ul { list-style: none; padding: 1.4rem 0; margin: auto 0 1rem; border-top: 1px solid var(--line); }
.plan-card li { padding: 0.45rem 0 0.45rem 1.15rem; position: relative; color: var(--ice); font-size: 0.9rem; }
.plan-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-light); position: absolute; left: 0; top: 0.9rem; }
.plan-label { color: var(--cyan); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 1rem; }
.plan-featured { background: var(--graphite); border-color: rgba(0, 187, 212, 0.55); translate: 0 -12px; }
.plan-featured:hover { transform: translateY(-5px); border-color: var(--cyan); }
.plans-note { max-width: 70ch; margin: 2rem auto 0; text-align: center; font-size: 0.85rem; }

.clients { background: var(--midnight); border-bottom: 1px solid var(--line); }
.clients-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.clients-heading { position: sticky; top: 120px; }
.clients-heading p { max-width: 48ch; }
.client-feature { display: grid; grid-template-columns: 0.68fr 1.32fr; min-height: 390px; overflow: hidden; border: 1px solid rgba(61, 142, 255, 0.35); border-radius: var(--radius); background: var(--graphite); transition: border-color 280ms var(--ease-out-quart), transform 280ms var(--ease-out-quart); }
.client-feature:hover { border-color: rgba(0, 187, 212, 0.55); transform: translateY(-4px); }
.client-logo { position: relative; display: grid; place-items: center; padding: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(145deg, var(--white), #e8eef3); }
.client-logo::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(21, 101, 255, 0.18); border-radius: 8px; pointer-events: none; }
.client-logo img { position: relative; z-index: 1; width: min(100%, 340px); }
.client-copy { padding: clamp(1.7rem, 4vw, 3.5rem); }
.client-copy h3 { max-width: 12ch; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.client-type { color: var(--cyan); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.client-context { margin: 1.5rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.client-context strong { color: var(--ice); font-size: 0.78rem; }
.client-context p { margin: 0.35rem 0 0; font-size: 0.82rem; }

.diagnostic { position: relative; }
.diagnostic::before { content: ""; position: absolute; inset: 15% 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 187, 212, 0.45), transparent); }
.diagnostic-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.diagnostic-copy { position: sticky; top: 120px; }
.diagnostic-copy > p { max-width: 50ch; }
.diagnostic-reassurance { padding: 1rem; border: 1px solid rgba(61, 142, 255, 0.34); border-radius: 10px; color: var(--ice); background: rgba(21, 101, 255, 0.07); font-size: 0.86rem; }
.diagnostic-reassurance strong { color: var(--cyan); }
.diagnostic-facts { margin-top: 2rem; }
.diagnostic-facts div { display: grid; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.diagnostic-facts strong { color: var(--ice); font-size: 0.9rem; }
.diagnostic-facts span { color: var(--muted); font-size: 0.8rem; }
.wizard { background: var(--graphite); border: 1px solid rgba(61, 142, 255, 0.35); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); min-height: 560px; display: flex; flex-direction: column; }
.form-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.wizard-head { display: grid; grid-template-columns: 1fr 160px; align-items: end; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.wizard-head strong { color: var(--white); display: block; }
.wizard-step-label { color: var(--cyan); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.progress-track { height: 4px; background: var(--graphite-medium); overflow: hidden; border-radius: 4px; }
.progress-track span { display: block; height: 100%; width: 25%; background: var(--cyan); transition: width 240ms ease; }
.wizard-step { display: none; border: 0; padding: 2rem 0; margin: 0; animation: step-in 240ms ease-out; }
.wizard-step.is-active { display: block; }
.wizard-step legend { color: var(--white); font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; padding: 0; margin-bottom: 1.4rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.field-grid.one-column { grid-template-columns: 1fr; }
label { color: var(--ice); font-size: 0.82rem; font-weight: 600; display: grid; gap: 0.45rem; }
.optional-label { color: var(--muted); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; }
input, textarea, select {
  width: 100%;
  color: var(--white);
  background: var(--midnight);
  border: 1px solid var(--graphite-medium);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  min-height: 48px;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #8d9aad; opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); outline: 2px solid rgba(0, 187, 212, 0.25); outline-offset: 1px; }
.is-invalid { border-color: var(--danger) !important; outline: 1px solid rgba(255, 107, 107, 0.42); }
.is-invalid:focus { animation: invalid-nudge 180ms var(--ease-out-quart); }
.form-message { min-height: 1.6rem; padding-top: 0.6rem; color: var(--danger); font-size: 0.82rem; }
.form-message.is-success { color: #78e6b0; }
.wizard-actions { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 0.8rem; }
.wizard-actions [data-prev] { margin-right: auto; }
.review-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.review-item { padding: 0.9rem; background: var(--midnight); border-radius: 8px; }
.review-item span { color: var(--muted); display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; }
.review-item strong { color: var(--ice); display: block; margin-top: 0.2rem; font-size: 0.86rem; overflow-wrap: anywhere; }
.review-item-wide { grid-column: 1 / -1; }
.privacy-note { font-size: 0.75rem; margin: 1.25rem 0 0; }
@keyframes step-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes invalid-nudge { 0%, 100% { transform: translateX(0); } 35% { transform: translateX(3px); } 70% { transform: translateX(-2px); } }

.motion-ready [data-reveal-list] > * { opacity: 0; transform: translateY(12px); filter: blur(3px); }
.motion-ready [data-reveal-list].is-visible > * { animation: list-enter 480ms var(--ease-out-quart) both; animation-delay: calc(var(--i, 0) * 55ms); }
[data-reveal-list] > :nth-child(1) { --i: 0; }
[data-reveal-list] > :nth-child(2) { --i: 1; }
[data-reveal-list] > :nth-child(3) { --i: 2; }
[data-reveal-list] > :nth-child(4) { --i: 3; }
[data-reveal-list] > :nth-child(5) { --i: 4; }
[data-reveal-list] > :nth-child(6) { --i: 5; }
@keyframes list-enter { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

.final-cta { padding-top: 3rem; }
.final-cta-inner { position: relative; overflow: hidden; border: 1px solid rgba(0, 187, 212, 0.4); border-radius: var(--radius); padding: clamp(2rem, 5vw, 4.5rem); display: flex; justify-content: space-between; align-items: center; gap: 3rem; background: var(--graphite); }
.final-cta-inner::after { content: ""; position: absolute; right: 14%; top: 50%; width: clamp(8rem, 18vw, 15rem); aspect-ratio: 1; transform: translateY(-50%); background: url("../assets/logo/favicon-192.png") center / contain no-repeat; opacity: 0.055; pointer-events: none; }
.final-cta h2 { max-width: 13ch; margin-bottom: 1rem; }
.final-cta p { max-width: 60ch; margin-bottom: 0; }
.final-cta .button { position: relative; z-index: 1; flex-shrink: 0; }
.site-footer { padding: 4rem 0 1.5rem; background: var(--midnight-deep); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.7fr; gap: 3rem; }
.footer-grid > div { display: grid; align-content: start; gap: 0.55rem; }
.footer-grid strong { color: var(--white); margin-bottom: 0.5rem; }
.footer-grid a { text-decoration: none; color: var(--muted); }
.footer-grid a:hover { color: var(--cyan); }
.footer-grid span, .footer-grid p { color: var(--muted); font-size: 0.85rem; margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 3rem; color: var(--muted); font-size: 0.75rem; }
.legal-page { min-height: 100svh; padding: 8rem 0 5rem; }
.legal-page .container { max-width: 860px; }
.legal-page h1 { max-width: 14ch; }
.legal-page h2 { max-width: none; margin-top: 2.5rem; font-size: clamp(2rem, 4vw, 3rem); }
.legal-page p, .legal-page li { max-width: 75ch; }
.legal-page a { color: var(--blue-light); }
.legal-back { margin-bottom: 2.5rem; }

@media (max-width: 1050px) {
  .primary-nav { gap: 1rem; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .ops-panel { max-width: 680px; }
  .services-layout, .diagnostic-layout, .clients-layout { grid-template-columns: 1fr; }
  .services-intro, .diagnostic-copy, .clients-heading { position: static; max-width: 760px; }
  .open-source-heading { grid-template-columns: 1fr; }
  .method-track { grid-template-columns: 1fr; gap: 0; }
  .method-track::before { top: 2.5rem; bottom: 2.5rem; left: 38px; right: auto; width: 1px; height: auto; background: linear-gradient(var(--blue), var(--cyan)); }
  .method-track li { display: grid; grid-template-columns: 78px 1fr; gap: 1.5rem; padding: 0 0 2rem; }
  .method-number { margin: 0; }
}

@media (min-width: 1051px) and (max-height: 850px) {
  .hero { min-height: 100vh; padding: 6.5rem 0 2.25rem; }
  .hero-layout { gap: clamp(2rem, 5vw, 4rem); }
  .hero-copy h1 { font-size: clamp(3.5rem, 5.4vw, 4.7rem); margin-bottom: 0.9rem; }
  .hero-lead { font-size: 1rem; margin-bottom: 0.7rem; }
  .hero-soul { margin-bottom: 0.7rem; }
  .hero-actions { margin: 1rem 0 0.75rem; }
  .hero-note, .hero-capabilities { display: none; }
  .ops-panel { transform: scale(0.9); transform-origin: center right; }
  .ops-panel:hover { transform: translateY(-2px) scale(0.9); }
  .motion-ready.is-loaded .ops-panel { animation-name: panel-enter-compact; }
  .hero-video-toggle { bottom: 0.75rem; }
}

@media (max-width: 1180px) {
  .menu-toggle { display: block; position: relative; z-index: 22; }
  .primary-nav { position: fixed; inset: 0 0 auto; width: 100%; max-width: 100vw; min-height: 100svh; padding: 7rem 1.5rem 2rem; background: rgba(7, 12, 20, 0.98); display: grid; align-content: start; gap: 0; transform: translateX(100%); visibility: hidden; transition: transform 240ms var(--ease-out-quart), visibility 240ms var(--ease-out-quart); }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; }
  .primary-nav > a:not(.button) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .primary-nav .button { min-height: 48px; margin-top: 1.5rem; }
}

@media (max-width: 820px) {
  .split-heading { grid-template-columns: 1fr; gap: 0.5rem; }
  .problem-ledger { grid-template-columns: 1fr; }
  .problem-ledger article { grid-template-columns: 42px 0.8fr 1fr; }
  .problem-ledger article:nth-child(odd), .problem-ledger article:nth-child(even) { padding: 1.25rem 0; border-left: 0; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-featured { transform: none; order: -1; }
  .plan-featured { translate: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
  .technology-rail { grid-template-columns: 140px 1fr; }
  .technology-rail ul { grid-column: 2; }
  .client-feature { grid-template-columns: 1fr; }
  .client-logo { min-height: 220px; }
  .conversion-prompt { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 4.5rem 0; }
  .hero-video video, .hero-video-toggle { display: none; }
  .header-inner { min-height: 70px; }
  .brand img { width: 160px; }
  .hero { min-height: auto; padding: 7.5rem 0 4rem; }
  h1 { max-width: 100%; font-size: clamp(3rem, 13.5vw, 3.55rem); text-wrap: wrap; overflow-wrap: anywhere; }
  h2 { font-size: clamp(2.45rem, 12vw, 3.35rem); }
  .hero-lead, .hero-soul { max-width: 100%; text-wrap: wrap; overflow-wrap: anywhere; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { justify-content: center; min-height: 44px; }
  .panel-body { grid-template-columns: 1fr; }
  .axis-map { min-height: 190px; }
  .panel-foot { display: none; }
  .signal-strip { grid-template-columns: 1fr; }
  .signal-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-strip div:last-child { border-bottom: 0; }
  .activity-line { display: none; }
  .open-source-thesis { padding-left: 1rem; }
  .technology-rail { grid-template-columns: 1fr; gap: 1rem; }
  .technology-rail ul { grid-column: auto; }
  .technology-logo { width: 180px; }
  .technology-note { text-align: left; }
  .status-pill { display: none; }
  .problem-ledger article { grid-template-columns: 34px 1fr; gap: 0.6rem; }
  .problem-ledger article p { grid-column: 2; }
  .service-rows article { grid-template-columns: 36px 1fr; }
  .service-state { grid-column: 2; padding: 0; }
  .method-track li { grid-template-columns: 60px 1fr; gap: 1rem; }
  .method-track::before { left: 29px; }
  .method-number { width: 60px; height: 60px; font-size: 1.45rem; }
  .field-grid, .review-list { grid-template-columns: 1fr; }
  .review-item-wide { grid-column: auto; }
  .wizard { min-height: 0; padding: 1rem; }
  .wizard-head { grid-template-columns: 1fr; }
  .wizard-step { padding: 1.4rem 0; }
  .wizard-step legend { font-size: 1.8rem; }
  .wizard-actions { flex-wrap: wrap; }
  .wizard-actions .button { flex: 1 1 auto; }
  .conversion-prompt .button { width: 100%; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; flex-direction: column; }
}

@keyframes panel-enter-compact { to { opacity: 1; transform: scale(0.9); filter: blur(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .motion-ready .hero-copy > *, .motion-ready .ops-panel, .motion-ready [data-reveal-list] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .panel-scan, .scroll-progress, .hero-video video, .hero-video-toggle { display: none; }
}
