/* SecureProLabs. Built from docs/PROMPT.md. Colours and type come from tokens.css. */

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--white);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}

html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.menu-open { overflow: hidden; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
[tabindex="-1"]:focus { outline: none; }

.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;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  background: var(--cyan);
  color: var(--on-cyan);
  font-weight: 600;
  transition: top 250ms ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Global layers ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Pause looping animations while off screen */
.is-paused,
.is-paused * { animation-play-state: paused !important; }

/* ---------- Layout ---------- */
.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-inline: 8vw;
}
.wrap > * { max-width: var(--container); margin-inline: auto; }
.hero-inner > * { margin-inline: 0; }

.section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 75vh;
  min-height: 75svh;
  padding-block: clamp(92px, 11vh, 132px);
  overflow: hidden;
  isolation: isolate;
}
/* Soft dark crossfade at every section boundary (static) */
.section::before,
.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: clamp(90px, 20vh, 210px);
  pointer-events: none;
}
.section::before { top: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 15, 20, 0.72) 34%, rgba(11, 15, 20, 0) 100%); }
.section::after { bottom: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 20, 0.72) 34%, rgba(11, 15, 20, 0) 100%); }
.hero::before { content: none; }
.section > .wrap { align-self: center; }

/* Plates: full bleed, taller than the section, drift with scroll */
.plate {
  position: absolute;
  inset: -24px;
  z-index: 0;
  pointer-events: none;
}
.plate picture {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.plate img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  filter: hue-rotate(var(--plate-hue, -10deg)) saturate(0.92);
  will-change: auto;
}

/* Colour script: cooler to warmer teal down the page, 6 degrees in total. Hero keeps its approved grade. */
.about { --plate-hue: -7deg; }
.product { --plate-hue: -8.5deg; }
.capabilities { --plate-hue: -10deg; }
.approach { --plate-hue: -11.5deg; }
.early { --plate-hue: -13deg; }

/* Light streak: one sweep per section entry, driven by main.js. Invisible by default. */
.streak-track {
  position: absolute;
  left: -10%;
  top: var(--streak-top, 60%);
  z-index: 1;
  width: 120%;
  height: 0;
  transform: rotate(var(--streak-angle, -30deg));
  pointer-events: none;
}
.streak {
  width: 40vw;
  height: 2px;
  margin-top: -1px;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 42%, var(--cyan) 74%, rgba(0, 229, 242, 0) 100%);
  pointer-events: none;
}
.about { --streak-angle: -33deg; --streak-top: 62%; }
.product { --streak-angle: -22deg; --streak-top: 68%; }
.capabilities { --streak-angle: -52deg; --streak-top: 50%; }
.approach { --streak-angle: -38deg; --streak-top: 56%; }
.early { --streak-angle: -5deg; --streak-top: 80%; }

.shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.shade-hero {
  background: linear-gradient(90deg, rgba(11, 15, 20, 0.8) 0%, rgba(11, 15, 20, 0.4) 42%, rgba(11, 15, 20, 0.05) 75%);
}
.shade-left {
  background: linear-gradient(90deg, rgba(11, 15, 20, 0.84) 0%, rgba(11, 15, 20, 0.5) 46%, rgba(11, 15, 20, 0.12) 100%);
}
.shade-approach {
  background: linear-gradient(90deg, rgba(7, 18, 26, 0.92), rgba(7, 18, 26, 0.61));
}
.shade-early {
  background: linear-gradient(90deg, rgba(8, 18, 27, 0.9), rgba(8, 18, 27, 0.4));
}
.shade-capabilities {
  background: linear-gradient(90deg, rgba(11, 15, 20, 0.94) 0%, rgba(11, 15, 20, 0.8) 50%, rgba(11, 15, 20, 0.5) 100%);
}

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 20px;
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.display {
  margin: 0 0 28px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(28px, 3.7vw, 66px);
  line-height: 1.12;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
}
.display .line,
.mask-line {
  display: block;
  overflow: hidden;
  padding-block: 0.08em;
  margin-block: -0.08em;
}
.line-inner,
.mask-inner { display: block; }
@media (min-width: 900px) {
  /* Hero headline: exactly two lines. main.js fits the size to the column once the font has loaded. */
  .display { font-size: clamp(22px, 2.45vw, 50px); }
  .display.is-fit .line { white-space: nowrap; }
}
@media (max-width: 899px) {
  /* Natural wrapping on phones and tablets */
  .display .line,
  .display .line-inner { display: inline; overflow: visible; padding: 0; margin: 0; }
}

.h2 {
  margin: 0 0 24px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(22px, 2.3vw, 40px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-transform: uppercase;
  color: var(--white);
}

.lead,
.body {
  margin: 0 0 36px;
  max-width: 540px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
  color: var(--muted);
}

.text-col { max-width: 600px; }
.text-col.text-560 { max-width: 560px; }
.section-head { margin-bottom: 48px; }
.section-head .body { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}
.btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--on-cyan);
}
.btn-primary:hover { box-shadow: 0 0 28px var(--cyan-glow); }
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  background: rgba(0, 229, 242, 0.16);
  border-color: rgba(0, 229, 242, 0.28);
  color: rgba(244, 247, 250, 0.5);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-primary:disabled:hover { box-shadow: none; }
.btn-primary[aria-busy="true"] { cursor: progress; }
.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-secondary:hover { background: rgba(244, 247, 250, 0.08); }
.btn-outline {
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-outline:hover { background: rgba(0, 229, 242, 0.1); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding-inline: 8vw;
  border-bottom: 1px solid transparent;
  transition: background-color 400ms ease, border-color 400ms ease;
}
.site-header.scrolled {
  background: rgba(11, 15, 20, 0.9);
  border-bottom-color: rgba(36, 83, 101, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark {
  width: 32px;
  height: 36px;
  flex-shrink: 0;
}
.brand-word .cy { color: var(--cyan); }

.nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 250ms ease;
}
.nav-link:hover { color: var(--white); }
.nav .btn {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 13px;
}

.menu-btn {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--white);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), top 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 28px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

/* Full screen menu overlay (mobile and tablet) */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), visibility 600ms;
}
.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
.menu-nav a:not(.btn) {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.menu-nav .btn { margin-top: 12px; }
@media (min-width: 900px) {
  .menu-overlay { display: none; }
}

/* ---------- Side counter (hidden on mobile) ---------- */
.side-counter {
  display: none;
  position: fixed;
  left: 16px;
  top: 50%;
  z-index: 80;
  transform: translateY(-50%);
}
.side-counter ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 0 4px 16px;
  border-left: 1px solid rgba(94, 184, 206, 0.6);
}
.side-counter a {
  position: relative;
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  color: rgba(244, 247, 250, 0.82);
  text-shadow: 0 1px 6px rgba(4, 7, 10, 0.9);
  transition: color 300ms ease;
}
.side-counter a span { font-weight: 700; }
.side-counter a::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transform: translateY(-50%);
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.side-counter a:hover,
.side-counter a.active { color: var(--white); }
.side-counter a.active { color: var(--cyan); }
.side-counter a.active { font-weight: 600; }
.side-counter a.active::before { width: 12px; height: 2px; }
@media (min-width: 1024px) {
  .side-counter { display: block; }
}

/* ---------- 01 Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 0;
}
.hero .plate img { object-position: 50% center; }
.vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
}
.hero-inner {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: 120px 96px;
}
.hero-text { width: 44vw; max-width: 44vw; }
.hero .lead { max-width: 480px; }

/* Hex: master symbol. Position (CSS) > stage (mouse + entrance) > hex (scroll) > breath (CSS) */
.hex-pos {
  position: absolute;
  left: 60%;
  top: 49%;
  z-index: 1;
  width: 12vw;
  aspect-ratio: 510 / 535;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hex-pointer,
.hex-stage,
.hex {
  position: absolute;
  inset: 0;
}
.hex-glow {
  position: absolute;
  inset: -45%;
  pointer-events: none;
}
.hex-glow-inner {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 229, 242, 0.42) 0%, rgba(0, 229, 242, 0.14) 32%, rgba(0, 229, 242, 0) 62%);
  animation: glow-breathe 5s ease-in-out infinite;
}
.hex-breath {
  width: 100%;
  height: 100%;
  animation: hex-breathe 5s ease-in-out infinite;
}
.hex-breath svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(0, 229, 242, 0.35));
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes hex-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  transform: translateX(-50%);
  color: var(--muted);
  transition: color 250ms ease;
}
.scroll-cue:hover { color: var(--cyan); }
/* The cue is static: nothing loops on screen except the cube's slow breathing */
@keyframes cue-drop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Hero ignition (first visit of the session, desktop). Every hidden state has a CSS failsafe
   so nothing can stay hidden if the script never runs. */
.ignite-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #04070a;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
html.ignite .ignite-veil {
  opacity: 0.96;
  visibility: visible;
  animation: ignite-veil-out 0.5s ease 2.6s forwards;
}
html.ignite-pre .hero-text,
html.ignite-pre .hex-pos {
  visibility: hidden;
  animation: ignite-show 0.01s linear 2.6s forwards;
}
.site-header,
.side-counter,
.scroll-cue { transition: opacity 600ms ease, background-color 400ms ease, border-color 400ms ease, color 250ms ease; }
html.ignite-chrome .site-header,
html.ignite-chrome .side-counter,
html.ignite-chrome .scroll-cue {
  opacity: 0;
  animation: ignite-fade-in 0.5s ease 2.6s forwards;
}
@keyframes ignite-veil-out { to { opacity: 0; visibility: hidden; } }
@keyframes ignite-show { to { visibility: visible; } }
@keyframes ignite-fade-in { to { opacity: 1; } }
/* Phones and tablets: a simple fade */
html.ignite-lite .hero .cube-white { animation: lite-in 0.4s ease 0.1s both; }
html.ignite-lite .hero .cube-cyan,
html.ignite-lite .hero .hex-glow { animation: lite-in 0.45s ease 0.4s both; }
html.ignite-lite .hero .eyebrow { animation: lite-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }
html.ignite-lite .hero .display { animation: lite-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both; }
html.ignite-lite .hero .lead,
html.ignite-lite .hero .btn-row { animation: lite-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both; }
@keyframes lite-in { from { opacity: 0; } }
@keyframes lite-rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } }

/* ---------- Phone lite reveals (class set by main.js on narrow touch screens only) ---------- */
html.lite [data-lite] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
  transition-delay: var(--d, 0ms);
}
html.lite [data-lite="text"] { filter: blur(6px); }
html.lite [data-lite].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
html.lite .bookend .cube-white,
html.lite .bookend .cube-cyan,
html.lite .bookend .bookend-glow { opacity: 0; transition: opacity 0.5s ease; }
html.lite .bookend.is-formed .cube-white { opacity: 1; }
html.lite .bookend.is-formed .cube-cyan,
html.lite .bookend.is-formed .bookend-glow { opacity: 1; transition-delay: 0.35s; }

/* ---------- 02 About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  column-gap: clamp(30px, 4vw, 64px);
  align-items: center;
}
.about .text-col { max-width: none; }
.about .h2 { font-size: clamp(21px, 2.05vw, 36px); }
.about .body { max-width: 53ch; margin-bottom: 0; }
.about-figure { margin: 0; min-width: 0; }
.about-figure img,
.about-figure svg { display: block; width: 100%; height: auto; overflow: visible; }
.shade-about {
  background:
    radial-gradient(ellipse 46% 60% at 70% 50%, rgba(7, 18, 26, 0.5), rgba(7, 18, 26, 0) 75%),
    linear-gradient(90deg, rgba(7, 18, 26, 0.94) 0%, rgba(7, 18, 26, 0.74) 46%, rgba(7, 18, 26, 0.46) 100%);
}
.shade-product {
  background: linear-gradient(90deg, rgba(7, 16, 24, 0.92) 0%, rgba(7, 16, 24, 0.68) 56%, rgba(7, 16, 24, 0.47) 100%);
}

/* ---------- 03 Product ---------- */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.product-grid {
  grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
  gap: clamp(30px, 4vw, 64px);
}
.product .text-col { max-width: none; }
.product .h2 { font-size: clamp(24px, 2.6vw, 44px); }
.visual-col { position: relative; margin: 0; min-width: 0; }
@media (min-width: 900px) {
  .stat-figure { justify-self: end; width: 100%; }
}
.device-perspective { perspective: 1400px; }
.device {
  position: relative;
  overflow: hidden;
  padding: 5px;
  border: 1px solid rgba(94, 184, 206, 0.46);
  border-radius: 14px;
  background: linear-gradient(160deg, #133240, #0a1722 60%);
  box-shadow: 0 24px 70px rgba(2, 6, 12, 0.66), 0 0 42px rgba(7, 146, 188, 0.21);
  transform-origin: 50% 50%;
}
.device-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 2px;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.device-sheen i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 45%, var(--cyan) 72%, rgba(0, 229, 242, 0));
}
.device-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #bfdae1;
}
.device-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #79e9f5;
  box-shadow: 0 0 10px rgba(97, 205, 230, 0.63);
}
.device-slash { color: #64818e; }
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 0 9px 9px;
}
.stat-figure figcaption {
  margin-top: 13px;
  text-align: right;
  font-size: 13px;
  color: #d0e4ed;
}
.stat-figure figcaption a {
  display: inline-block;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 250ms ease;
}
.stat-figure figcaption a:hover { color: var(--cyan); }

/* ---------- 04 Capabilities ---------- */
.card-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card-wrap { height: 100%; }
.card {
  height: 100%;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 25, 37, 0.7);
  transition: transform 250ms ease, border-color 250ms ease;
}
.card { position: relative; }
.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  transition: transform 250ms ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 0%), rgba(140, 246, 255, 0.95), rgba(0, 229, 242, 0.35) 45%, rgba(0, 229, 242, 0) 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 242, 0.4);
  }
  .card:hover::after { opacity: 1; }
  .card:hover .card-icon { transform: translateY(-3px); }
}
.card-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}
.card-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 05 Approach ---------- */
.approach .section-head { margin-bottom: clamp(26px, 5vh, 50px); }
.approach .section-head .body { max-width: 64ch; }
.panels {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 2vw, 28px);
}
/* Desktop: packaged glass surface (360 x 360 design box, glyph embedded, text area starts after y=195) */
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 292px;
  aspect-ratio: 1;
  padding: 63% 8% 8%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.panel-harden { background-image: url("../img/refinement/approach/panel-harden.svg"); }
.panel-monitor { background-image: url("../img/refinement/approach/panel-monitor.svg"); }
.panel-control { background-image: url("../img/refinement/approach/panel-control.svg"); }
/* Border highlight, driven by --lit (0 to 1) during the entry sequence */
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(150, 245, 255, 0.55);
  border-radius: 20px;
  opacity: calc(var(--lit, 0) * 0.5);
  pointer-events: none;
}
.panel-icon { display: none; }
.panel-title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--white);
}
.panel-text {
  margin-top: 8px;
  font-size: clamp(13px, 1.16vw, 16px);
  line-height: 1.45;
  color: var(--muted);
}
@media (max-width: 1100px) {
  /* Narrow desktop: let the track set the width so panels never overlap */
  .panel { aspect-ratio: auto; padding-top: 190px; }
}

/* ---------- 06 Early access ---------- */
.early .plate img { object-position: center; }
.form-col {
  justify-self: end;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 25, 37, 0.74);
}
.signup .field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 16px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: rgba(11, 15, 20, 0.6);
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
.signup .field:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 242, 0.28);
}
.field-icon {
  flex-shrink: 0;
  color: var(--cyan);
}
.field input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font: 400 16px/1.4 var(--font-body);
  outline: none;
}
.field input::placeholder { color: rgba(170, 184, 197, 0.7); }
.field input:focus-visible { outline: none; }
.field:focus-within .field-icon { color: var(--cyan); }

.ticks {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 22px;
  font-size: 15px;
  color: var(--muted);
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ticks svg { color: var(--cyan); flex-shrink: 0; }

.form-notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(36, 83, 101, 0.9);
  border-left: 2px solid var(--cyan);
  border-radius: var(--radius-btn);
  background: rgba(11, 15, 20, 0.55);
  font-size: 15px;
  line-height: 1.5;
  color: var(--white);
}
.signup[data-state="ready"] .form-notice,
.signup[data-state="pending"] .form-notice,
.signup[data-state="error"] .form-notice,
.signup[data-state="success"] .form-notice { display: none; }
.signup .field:has(input:disabled) { opacity: 0.55; }
.field input:disabled { cursor: not-allowed; }
.form-status {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--white);
}
.form-status[hidden] { display: none; }
.signup[data-state="error"] .form-status { color: #ffb4a8; }
.signup[data-state="success"] .form-body { display: none; }
.signup[data-state="success"] .form-status {
  margin-top: 0;
  font-size: 18px;
}

/* Signup extras: honeypot (off screen, never display:none so bots still fill it), Turnstile, privacy line */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-turnstile { margin: 0; }
.cf-turnstile:not(:empty) { margin-bottom: 12px; }
.form-privacy {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.signup[data-state="success"] .form-privacy { display: none; }

/* Static architectural fade and seam into the footer (replaces the wave) */
.early::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: clamp(76px, 12vw, 132px);
  background: url("../img/refinement/footer/architectural-seam.svg") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.bookend {
  position: relative;
  width: clamp(56px, 5.6vw, 88px);
  aspect-ratio: 510 / 535;
  margin: 34px 0 0 6px;
}
.bookend-glow {
  position: absolute;
  inset: -35%;
  pointer-events: none;
}
.bookend-glow-inner {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 229, 242, 0.36) 0%, rgba(0, 229, 242, 0.1) 34%, rgba(0, 229, 242, 0) 62%);
  animation: glow-breathe 5s ease-in-out infinite;
}
.bookend-breath {
  width: 100%;
  height: 100%;
  animation: hex-breathe 5s ease-in-out infinite;
}
.bookend svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.early-grid { grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); }
.early .form-col { max-width: 460px; }
.early .body { margin-bottom: 0; }

/* ---------- 07 Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 72px 0 40px;
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.tagline {
  max-width: 340px;
  margin-top: 18px;
  color: var(--muted);
}
.footer-head {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: 12px;
}
.footer-col a,
.legal {
  color: var(--muted);
  transition: color 250ms ease;
}
.footer-col a:hover { color: var(--white); }
.legal {
  grid-column: 1 / -1;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(36, 83, 101, 0.35);
  font-size: 13px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .split-grid,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .about-figure,
  .stat-figure { width: min(100%, 620px); justify-self: center; }
  .form-col {
    justify-self: stretch;
    max-width: none;
  }
  /* Stacked: responsive CSS surface with the standalone glyph above the text */
  .panels { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .panel {
    min-height: 0;
    aspect-ratio: auto;
    padding: 28px 24px;
    border: 1px solid rgba(94, 184, 206, 0.34);
    border-radius: 14px;
  }
  .panel-harden, .panel-monitor, .panel-control { background-image: linear-gradient(160deg, rgba(19, 50, 64, 0.82), rgba(10, 23, 34, 0.82) 60%); }
  .panel::after { border-radius: 14px; }
  .panel-icon { display: block; width: 56px; height: 56px; margin: 0 0 14px -6px; }
  .panel-title { font-size: 22px; }
  .panel-text { font-size: 15px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Mobile (390 design width) ---------- */
@media (max-width: 767px) {
  .wrap { padding-inline: 16px; }
  .section {
    padding-block: 104px 88px;
  }

  /* Hero: hex in the upper middle, text stacked below it */
  .hero-inner {
    align-items: flex-start;
    padding-top: calc(28svh + 21vw + 40px);
    padding-bottom: 96px;
  }
  .hex-pos {
    left: 50%;
    top: 28%;
    width: 40vw;
  }
  .hero-text { width: auto; max-width: 100%; }
  .hero .plate img { object-position: 72% center; }
  .shade-hero {
    background: linear-gradient(180deg, rgba(11, 15, 20, 0.25) 0%, rgba(11, 15, 20, 0.6) 40%, rgba(11, 15, 20, 0.88) 100%);
  }
  .display { font-size: clamp(26px, 8.4vw, 40px); }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }

  .about .plate img,
  .capabilities .plate img { object-position: 75% center; }
  .product .plate img,
  .approach .plate img,
  .early .plate img { object-position: center bottom; }

  .shade-left,
  .shade-about,
  .shade-product,
  .shade-approach,
  .shade-early {
    background: linear-gradient(180deg, rgba(11, 15, 20, 0.72) 0%, rgba(11, 15, 20, 0.88) 100%);
  }
  .shade-capabilities {
    background: linear-gradient(180deg, rgba(11, 15, 20, 0.84) 0%, rgba(11, 15, 20, 0.92) 100%);
  }

  .h2 { font-size: 26px; }
  .lead, .body { margin-bottom: 28px; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 26px 24px; }
  .form-col { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { gap: 32px; }
  .scroll-cue { bottom: 16px; }
}

/* ---------- Reduced motion: simple fades only, nothing looping ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .plate img { transform: none !important; }
  .device { transform: none !important; }
}
