/* ==========================================================================
   SmartHat — Safe Marine
   ========================================================================== */

:root {
  --ink: #0a0a0b;
  --coal: #111113;
  --panel: #151518;
  --panel-2: #1b1b1f;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --fg: #f4f2ee;
  --fg-2: #c9c7c2;
  --mute: #8c8b90;
  --red: #e3141b;
  --red-2: #ff3b3f;
  --red-glow: rgba(227, 20, 27, 0.45);
  --amber: #ffb020;
  --green: #36d399;
  --paper: #f0f0f0;
  --paper-ink: #0d0d0f;
  --paper-mute: #6b6b70;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
strong { color: var(--fg); font-weight: 600; }

::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 10000;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--mute); }
.red { color: var(--red); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-2); margin-bottom: 28px;
}
.eyebrow .idx {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 22px; padding: 0 8px; border-radius: 99px;
  border: 1px solid var(--line-2); color: var(--red-2); font-size: 11px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227, 20, 27, 0.2); }
.eyebrow--dark { color: var(--paper-mute); }
.eyebrow--dark .idx { border-color: rgba(0, 0, 0, 0.15); color: var(--red); }

.h2 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.lede { color: var(--fg-2); font-size: clamp(16px, 1.35vw, 19px); max-width: 46ch; }

.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-head--center { text-align: center; }

/* split-text helpers */
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: block; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; }

/* Buttons */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 99px;
  font-weight: 500; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 40px -10px var(--red-glow); }
.btn--red::before { background: #fff; }
.btn--red:hover { color: var(--ink); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--fg); }
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover { color: var(--ink); border-color: var(--fg); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ==========================================================================
   Preloader / cursor / progress
   ========================================================================== */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center;
  background: var(--ink);
  animation: preloader-failsafe 0.01s 7s forwards;
}
@keyframes preloader-failsafe { to { visibility: hidden; opacity: 0; } }
.preloader__inner { width: min(320px, 70vw); display: grid; gap: 18px; justify-items: center; }
.preloader__shield { width: 84px; clip-path: inset(100% 0 0 0); }
.preloader__shield img { width: 100%; filter: drop-shadow(0 10px 30px var(--red-glow)); }
.preloader__meta { width: 100%; display: flex; justify-content: space-between; color: var(--mute); }
.preloader__count b { color: var(--fg); font-weight: 500; }
.preloader__bar { width: 100%; height: 2px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

.cursor { display: none; }
@media (pointer: fine) {
  .anim .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 9600; }
  .cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--red-2); }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background-color 0.35s, border-color 0.35s;
  }
  .cursor.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(227, 20, 27, 0.12); border-color: var(--red-2); }
  .cursor.is-hidden { opacity: 0; }
}

.progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 9100; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-2)); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  transition: transform 0.6s var(--ease), background-color 0.4s, backdrop-filter 0.4s, padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 8px 14px; border-radius: 99px; font-size: 14px; color: var(--fg-2);
  transition: color 0.3s, background-color 0.3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--red-2);
}
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--fg); transition: transform 0.4s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 7900; background: rgba(10, 10, 11, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; align-content: center; padding: 100px var(--gutter) 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu a {
  font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: clamp(34px, 9vw, 54px);
  letter-spacing: -0.03em; line-height: 1.15; border-bottom: 1px solid var(--line); padding: 8px 0;
}
.mobile-menu__cta { color: var(--red-2); }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__logo img { height: 28px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.hero__bg { position: absolute; inset: -6% 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) contrast(1.1) saturate(0.6); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 48%, rgba(10, 10, 11, 0) 0%, rgba(10, 10, 11, 0.55) 70%, rgba(10, 10, 11, 0.95) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.6) 0%, rgba(10, 10, 11, 0) 25%, rgba(10, 10, 11, 0) 60%, var(--ink) 100%);
}
.hero__gridlines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 120px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 80%);
}
.hero__inner {
  position: relative; flex: 1; display: grid; grid-template-rows: auto 1fr auto;
  width: 100%; max-width: 1560px; margin: 0 auto;
  padding: clamp(96px, 12vh, 130px) var(--gutter) clamp(28px, 5vh, 56px);
}
.hero__eyebrow { justify-self: center; margin-bottom: 0; }

.hero__stage { position: relative; display: grid; place-items: center; min-height: clamp(320px, 54vh, 640px); }
.hero__title {
  position: absolute; left: -25%; right: -25%; top: 50%; margin-top: -0.4756em; text-align: center;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(48px, 12.2vw, 250px); line-height: 0.82; letter-spacing: -0.04em;
  white-space: nowrap; user-select: none;
}
.hero__title,
.hero__title .char {
  background: linear-gradient(180deg, #fff 18%, rgba(255, 255, 255, 0.55) 52%, rgba(255, 255, 255, 0.04) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title .char { padding-right: 0.01em; }

.hero__glow {
  position: absolute; width: min(56vw, 640px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 20, 27, 0.55) 0%, rgba(227, 20, 27, 0.12) 40%, transparent 68%);
  filter: blur(20px); z-index: 1; pointer-events: none;
}
.hero__ring { position: absolute; width: min(70vw, 680px); aspect-ratio: 1; z-index: 1; pointer-events: none; overflow: visible; }
.hero__ring circle { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; transform-origin: 300px 300px; }
.hero__ring .ring-a { stroke-dasharray: 2 10; animation: spin 60s linear infinite; }
.hero__ring .ring-b { stroke-dasharray: 120 30 4 30; stroke: rgba(227, 20, 27, 0.5); animation: spin 28s linear infinite reverse; }
.hero__ring .ring-c { stroke-dasharray: 1 6; stroke: rgba(255, 255, 255, 0.22); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__helmet-wrap { position: relative; z-index: 2; width: min(44vw, 540px); transform-style: preserve-3d; will-change: transform; }
.hero__helmet { width: 100%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.4)); }
.hero__scan {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../img/helmet-front.webp") center / contain no-repeat;
  mask: url("../img/helmet-front.webp") center / contain no-repeat;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 59, 63, 0) 45%, rgba(255, 90, 90, 0.32) 50%, rgba(255, 59, 63, 0) 55%, transparent 100%);
  background-size: 100% 300%;
  animation: scan 4.5s var(--ease) infinite;
  mix-blend-mode: screen;
}
@keyframes scan { 0% { background-position: 0 100%; } 60%, 100% { background-position: 0 0%; } }

.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 99px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg);
  background: rgba(20, 20, 24, 0.55); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}
.chip--a { left: 6%; top: 22%; }
.chip--b { right: 5%; top: 40%; }
.chip--c { left: 14%; bottom: 10%; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(54, 211, 153, 0.6); animation: ping 2s infinite; }
.live--amber { background: var(--amber); animation-delay: 0.6s; }
.live--red { background: var(--red-2); animation-delay: 1.1s; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.live { color: rgba(54, 211, 153, 0.5); }
.live--amber { color: rgba(255, 176, 32, 0.5); }
.live--red { color: rgba(255, 59, 63, 0.55); }

.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero__copy { max-width: 540px; }
.hero__sub {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 300;
  font-size: clamp(26px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 14px;
}
.hero__copy p { color: var(--fg-2); font-size: clamp(15px, 1.15vw, 17px); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__awards { position: absolute; right: var(--gutter); top: clamp(96px, 13vh, 130px); z-index: 3; display: flex; align-items: center; gap: 14px; }
.hero__awards-label { color: var(--mute); font-size: 10px; writing-mode: vertical-rl; transform: rotate(180deg); }
.hero__awards ul { display: flex; gap: 8px; }
.hero__awards li {
  padding: 6px; border-radius: 10px; background: #fff; display: grid; place-items: center;
  transition: transform 0.4s var(--ease);
}
.hero__awards li:hover { transform: translateY(-4px); }
.hero__awards li img { height: 46px; width: auto; max-width: none; }
.hero__awards li.wide img { height: 42px; }
.hero__awards li.wide { padding: 8px 10px; }
@media (min-width: 1101px) and (max-height: 820px) { .hero__awards li img { height: 38px; } .hero__awards li.wide img { height: 34px; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3;
  display: grid; justify-items: center; gap: 10px; color: var(--mute);
}
.hero__scroll .mono { font-size: 10px; }
.hero__scroll i { width: 1px; height: 44px; background: linear-gradient(var(--line-2), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--red-2); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

@media (max-width: 1100px) {
  .hero__awards { position: static; order: 3; justify-content: center; margin: 28px auto 0; padding: 0 var(--gutter) 70px; }
  .hero__awards-label { writing-mode: horizontal-tb; transform: none; }
}
@media (max-width: 760px) {
  .hero__stage { min-height: 380px; }
  .hero__helmet-wrap { width: min(78vw, 420px); }
  .hero__title { font-size: 13.4vw; margin-top: -1.15em; }
  .hero__ring { width: 110vw; }
  .hero__glow { width: 100vw; }
  .chip { font-size: 9.5px; padding: 7px 10px; }
  .chip--a { left: 0; top: 8%; }
  .chip--b { right: 0; top: auto; bottom: 22%; }
  .chip--c { left: 2%; bottom: 2%; }
  .hero__bottom { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { flex: 1; }
  .hero__awards { flex-direction: column; gap: 10px; }
  .hero__awards li img { height: 40px; }
  .hero__awards li.wide img { height: 36px; }
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { padding: clamp(28px, 4vw, 48px) 0; border-block: 1px solid var(--line); overflow: hidden; background: var(--ink); }
.marquee__row { display: flex; white-space: nowrap; }
.marquee__row + .marquee__row { margin-top: 6px; }
.marquee__inner {
  display: flex; align-items: center; flex-shrink: 0; padding-right: 0;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 6.2vw, 96px); line-height: 1.05; letter-spacing: -0.03em;
}
.marquee__inner span { padding: 0 0.32em; }
.marquee__inner .o { color: transparent; -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.45); }
.marquee__inner b { width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.marquee__row--rev .marquee__inner { font-stretch: 100%; font-weight: 300; font-size: clamp(26px, 4vw, 60px); color: var(--fg-2); }
.marquee__row--rev .marquee__inner .o { -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35); }
.marquee__row--rev b { background: var(--fg-2); width: 0.14em; height: 0.14em; }

/* ==========================================================================
   Overview
   ========================================================================== */
.manifesto {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 500;
  font-size: clamp(28px, 4.3vw, 64px); line-height: 1.1; letter-spacing: -0.025em;
  max-width: 22ch;
}
.anim .manifesto .word { color: rgba(244, 242, 238, 0.13); }
.stats {
  margin-top: clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stats li { padding: 28px 24px 0 0; border-right: 1px solid var(--line); padding-left: 24px; }
.stats li:first-child { padding-left: 0; }
.stats li:last-child { border-right: 0; }
.stats__num {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--f-display); font-stretch: 110%; font-weight: 800;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em;
}
.stats__num em { font-style: normal; color: var(--red-2); font-weight: 400; }
.stats__label { display: block; margin-top: 12px; color: var(--mute); font-size: 14px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); }
  .stats li:nth-child(2n) { border-right: 0; padding-left: 16px; }
  .stats li:nth-child(2n+1) { padding-left: 0; }
}

/* ==========================================================================
   Anatomy
   ========================================================================== */
.anatomy { position: relative; background: radial-gradient(80% 60% at 50% 60%, #17171b 0%, var(--ink) 70%); }
.anatomy__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 92px 0 28px; overflow: hidden; }
.anatomy .h2 { font-size: clamp(36px, 4.6vw, 72px); }
.anatomy__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.anatomy__head .eyebrow { margin-bottom: 0; order: 2; }

.anatomy__stage {
  position: relative; container-type: inline-size;
  width: min(100% - 2 * var(--gutter), 1440px, (100vh - 270px) * 16 / 9);
  aspect-ratio: 16 / 9; margin: 0 auto;
}
.anatomy__imgwrap { position: absolute; left: 19%; top: 14.889%; width: 62%; }
.anatomy__img { width: 100%; filter: drop-shadow(0 50px 60px rgba(0, 0, 0, 0.75)); }
.anatomy__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.anatomy__lines path { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.2; }

.adot {
  position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 4px rgba(255, 59, 63, 0.25), 0 0 20px var(--red-glow);
}
.adot::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 59, 63, 0.6);
  animation: halo 2.4s var(--ease) infinite;
}
.adot span { display: none; }
@keyframes halo { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hotspot { position: absolute; top: var(--ly); transform: translateY(-50%); width: 17%; display: grid; gap: 2px; font-size: clamp(11px, 1.05cqi, 16px); }
.hotspot[data-side="l"] { right: 83.2%; text-align: right; }
.hotspot[data-side="r"] { left: 83.2%; }
.hotspot__n { font-family: var(--f-mono); font-size: 0.72em; color: var(--red-2); letter-spacing: 0.1em; }
.hotspot strong { font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: 1.22em; line-height: 1.15; letter-spacing: -0.01em; }
.hotspot em { font-style: normal; color: var(--mute); font-size: 0.86em; }

.anatomy__badge {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 99px; border: 1px solid rgba(255, 59, 63, 0.5);
  background: rgba(227, 20, 27, 0.1); color: var(--fg); white-space: nowrap;
}

@media (max-width: 900px) {
  .anatomy__pin { min-height: 0; padding: 96px 0 72px; }
  .anatomy__stage { width: 100%; aspect-ratio: auto; padding: 32px var(--gutter) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .anatomy__imgwrap { position: relative; left: auto; top: auto; width: 100%; grid-column: 1 / -1; margin-bottom: 10px; }
  .anatomy__lines { display: none; }
  .adot { width: 22px; height: 22px; margin: -11px 0 0 -11px; display: grid; place-items: center; }
  .adot span { display: block; font-family: var(--f-mono); font-size: 9px; color: #fff; line-height: 1; }
  .hotspot { position: static; transform: none; width: auto; text-align: left !important; font-size: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
  .anatomy__badge { position: static; transform: none; grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
}

/* ==========================================================================
   Build (horizontal)
   ========================================================================== */
.build { background: var(--paper); color: var(--paper-ink); position: relative; }
.build__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 48px); overflow: hidden; padding: 90px 0 40px; }
.build__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.build__head .eyebrow { margin-bottom: 20px; }
.build__progress { display: grid; gap: 10px; width: 220px; color: var(--paper-mute); }
.build__progress div { height: 2px; background: rgba(0, 0, 0, 0.1); overflow: hidden; }
.build__progress i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

.build__track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.bcard {
  flex: 0 0 auto; width: clamp(300px, 40vw, min(620px, (100vh - 400px) * 1.6));
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 30px 60px -30px rgba(0, 0, 0, 0.18);
}
.bcard__fig { aspect-ratio: 16 / 9; background: var(--bg, #f0f0f0); overflow: hidden; position: relative; }
.bcard__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.bcard__body { padding: 24px 28px 28px; display: grid; gap: 8px; }
.bcard__num { color: var(--red); font-size: 11px; }
.bcard h3 { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: clamp(22px, 2vw, 30px); line-height: 1.05; letter-spacing: -0.03em; }
.bcard p { color: var(--paper-mute); font-size: 15px; max-width: 46ch; }

.bcard--intro { background: transparent; box-shadow: none; width: clamp(300px, 34vw, 500px); justify-content: space-between; gap: 28px; padding: 6px 0; }
.bcard__lead { font-family: var(--f-display); font-stretch: 100%; font-weight: 500; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
.bcard__specs { border-top: 1px solid rgba(0, 0, 0, 0.12); }
.bcard__specs li { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.12); font-size: 14px; }
.bcard__specs span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-mute); }

@media (max-width: 900px) {
  .build__pin { height: auto; padding: 96px 0 72px; }
  .build__head { flex-direction: column; align-items: flex-start; }
  .build__progress { display: none; }
  .build__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .build__track::-webkit-scrollbar { display: none; }
  .bcard { width: 84vw; scroll-snap-align: center; }
  .bcard--intro { width: 84vw; height: auto; gap: 24px; }
}

/* ==========================================================================
   Cameras
   ========================================================================== */
.cams__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.cam { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.cam__media { position: relative; background: #080808; aspect-ratio: 16 / 10.5; display: grid; place-items: center; overflow: hidden; }
.cam__media img { width: 84%; height: 100%; object-fit: contain; transition: filter 0.8s var(--ease), transform 1.2s var(--ease); }
.cam:hover .cam__media img { transform: scale(1.04); }
.cam__scan {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s;
  background: repeating-linear-gradient(180deg, rgba(120, 255, 160, 0.08) 0 2px, transparent 2px 4px);
}
.cam__rec {
  position: absolute; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px;
  color: #9dffb5; font-size: 11px; opacity: 0; transition: opacity 0.6s;
}
.cam__rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--red-2); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cam--front.is-ir .cam__media img { filter: grayscale(1) brightness(1.15) contrast(1.35) sepia(1) hue-rotate(68deg) saturate(3.2); }
.cam--front.is-ir .cam__scan, .cam--front.is-ir .cam__rec { opacity: 1; }
.cam__body { padding: 28px clamp(22px, 2.4vw, 34px) 32px; display: grid; gap: 12px; align-content: start; flex: 1; }
.cam h3 { font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.03em; line-height: 1.05; }
.cam p { color: var(--fg-2); max-width: 44ch; }

.toggle { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; justify-self: start; color: var(--fg-2); }
.toggle__track { width: 46px; height: 26px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); position: relative; transition: background-color 0.4s; }
.toggle__track i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--fg); transition: transform 0.45s var(--ease); }
.toggle[aria-pressed="true"] .toggle__track { background: #1f7a43; border-color: #2fb866; }
.toggle[aria-pressed="true"] .toggle__track i { transform: translateX(20px); }

.fov { position: relative; width: min(100%, 320px); margin-top: 8px; }
.fov svg { width: 100%; overflow: visible; }
.fov__track { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 6; }
.fov__arc { fill: none; stroke: var(--red-2); stroke-width: 2.5; stroke-linecap: round; }
.fov__val {
  position: absolute; left: 50%; bottom: 26%; transform: translateX(-50%);
  font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: 40px; letter-spacing: -0.04em; line-height: 1;
}
@media (max-width: 860px) { .cams__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Controls
   ========================================================================== */
.controls__grid {
  display: grid; gap: clamp(16px, 2vw, 24px);
  grid-template-columns: 5fr 7fr;
  grid-template-areas: "left list" "left right";
}
.controls__fig { position: relative; border-radius: var(--radius); overflow: hidden; background: #f1f1f1; }
.controls__fig img { width: 100%; height: 100%; object-fit: cover; }
.controls__fig--left { grid-area: left; }
.controls__fig--left img { object-position: 30% 78%; }
.controls__fig--right { grid-area: right; align-self: end; }
.controls__list { grid-area: list; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ctrl {
  text-align: left; display: grid; align-content: start; gap: 6px;
  padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel);
  transition: border-color 0.4s, background-color 0.4s, transform 0.4s var(--ease);
}
.ctrl__n { color: var(--mute); font-size: 11px; transition: color 0.4s; }
.ctrl__t { font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.ctrl__d { color: var(--mute); font-size: 14px; line-height: 1.5; transition: color 0.4s; }
.ctrl:hover { border-color: var(--line-2); }
.ctrl.is-active { border-color: rgba(255, 59, 63, 0.6); background: linear-gradient(160deg, rgba(227, 20, 27, 0.16), rgba(227, 20, 27, 0.02) 60%), var(--panel); }
.ctrl.is-active .ctrl__n { color: var(--red-2); }
.ctrl.is-active .ctrl__d { color: var(--fg-2); }

.pin {
  position: absolute; left: var(--x); top: var(--y); width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; border: 2px solid rgba(227, 20, 27, 0); pointer-events: none;
  transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.4s;
  transform: scale(0.6);
}
.pin.is-active { border-color: var(--red); transform: scale(1); box-shadow: 0 0 0 6px rgba(227, 20, 27, 0.18), 0 0 30px rgba(227, 20, 27, 0.5); }
.pin.is-active::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(227, 20, 27, 0.7);
  animation: halo 1.8s var(--ease) infinite;
}
.controls__fig--right .pin { width: 46px; height: 46px; margin: -23px 0 0 -23px; }

@media (max-width: 960px) {
  .controls__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "list list" "left right"; }
  .controls__fig--right { align-self: stretch; }
  .controls__fig--right img { object-position: 80% center; }
}
@media (max-width: 620px) {
  .controls__grid { grid-template-columns: 1fr; grid-template-areas: "left" "list" "right"; }
  .controls__list { grid-template-columns: 1fr; }
  .controls__fig--left { aspect-ratio: 4 / 3.4; }
  .controls__fig--left img { object-position: center 85%; }
}

/* ==========================================================================
   Sensors bento
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.tile {
  --tile-bg: #f0f0f0;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 28px; background: var(--tile-bg); color: var(--paper-ink);
  transform-style: preserve-3d; will-change: transform;
}
.tile > img, .tile__media { margin-top: auto; }
.tile > img { width: 100%; }
.tile__body { position: relative; z-index: 2; padding: clamp(22px, 2.4vw, 34px); display: grid; gap: 8px; align-content: start; }
.tile__tag {
  justify-self: start; padding: 5px 10px; border-radius: 99px; font-size: 10.5px;
  background: rgba(0, 0, 0, 0.06); color: var(--paper-mute);
}
.tile__tag--red { background: rgba(227, 20, 27, 0.1); color: var(--red); }
.tile h3 { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: clamp(24px, 2.4vw, 36px); line-height: 1; letter-spacing: -0.035em; }
.tile p { color: var(--paper-mute); font-size: 15px; max-width: 40ch; }
.tile p strong { color: var(--paper-ink); }

.tile--gas { grid-column: span 7; grid-row: span 2; }
.tile--gas .tile__body { order: -1; }
.tile--gas h3 { font-size: clamp(30px, 3.6vw, 56px); }
.gas-stats { display: flex; gap: clamp(24px, 4vw, 56px); margin-top: 14px; }
.gas-stats div { display: grid; }
.gas-stats b { font-family: var(--f-display); font-stretch: 112%; font-weight: 900; font-size: clamp(56px, 7vw, 108px); line-height: 0.9; letter-spacing: -0.05em; color: var(--red); }
.gas-stats span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-mute); }

.tile--sos { --tile-bg: #d7d7d7; grid-column: span 5; }
.tile--sos .tile__body { order: -1; }
.tile__media { position: relative; }
.tile__media img { width: 100%; }
.sos-pulse { position: absolute; left: 69%; top: 63%; width: 0; height: 0; }
.sos-pulse i { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: sos 2.4s var(--ease) infinite; }
.sos-pulse i:nth-child(2) { animation-delay: 0.8s; }
.sos-pulse i:nth-child(3) { animation-delay: 1.6s; }
@keyframes sos { 0% { transform: scale(0.3); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }

.tile--prox { --tile-bg: #f3f3f3; grid-column: span 5; }
.tile--prox .tile__body { order: -1; }
.tile--prox > img { aspect-ratio: 16 / 8.6; object-fit: cover; object-position: center 60%; }

.tile--battery { --tile-bg: #000; color: var(--fg); grid-column: span 5; }
.tile--battery .tile__body { order: 2; }
.tile--battery p { color: var(--mute); }
.tile--battery p strong { color: var(--fg); }
.tile--battery .tile__tag { background: rgba(255, 255, 255, 0.08); color: var(--fg-2); }
.battery { position: relative; width: 52%; margin: 28px auto 0; }
.battery img { width: 100%; position: relative; z-index: 1; }
.battery__fill {
  position: absolute; z-index: 2; left: 28.5%; right: 24.5%; top: 29%; bottom: 11.5%;
  background: linear-gradient(0deg, rgba(54, 211, 153, 0.85), rgba(54, 211, 153, 0.25));
  mix-blend-mode: screen; transform-origin: bottom; transform: scaleY(0.15);
  animation: charge 3.6s var(--ease) infinite;
}
@keyframes charge { 0% { transform: scaleY(0.12); } 70%, 100% { transform: scaleY(1); } }

.tile--charge { --tile-bg: #d5d5d5; grid-column: span 7; min-height: 340px; }
.tile--charge > img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: left center; margin: 0; }
.tile--charge .tile__body { position: absolute; left: 34%; top: 50%; transform: translateY(-50%); padding-right: 24px; }

@media (max-width: 1000px) {
  .tile--gas, .tile--sos, .tile--prox, .tile--battery, .tile--charge { grid-column: span 6; grid-row: auto; }
  .tile--gas { grid-column: span 12; }
}
@media (max-width: 680px) {
  .tile--gas, .tile--sos, .tile--prox, .tile--battery, .tile--charge { grid-column: span 12; }
  .tile--charge { min-height: 300px; }
  .tile--charge .tile__body { left: 28%; }
}

/* ==========================================================================
   HUD
   ========================================================================== */
.hud { position: relative; padding: clamp(96px, 12vw, 160px) 0; overflow: hidden; }
.hud__bg { display: none; }
.hud__inner { display: grid; gap: clamp(36px, 5vw, 64px); }
.hud__copy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; align-items: end; }
.hud__copy .eyebrow, .hud__copy .h2 { grid-column: 1; }
.hud__tabs { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hud__tabs button {
  padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--fg-2); font-size: 14px;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.hud__tabs button:hover { border-color: var(--fg-2); color: var(--fg); }
.hud__tabs button[aria-selected="true"] { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.hud__panels { grid-column: 2; grid-row: 3; position: relative; min-height: 90px; }
.hud__panels ul { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.hud__panels ul:not(.is-active) { display: none; }
.hud__panels li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--fg-2);
}
.hud__panels li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-2); }

.hud__screen {
  position: relative; aspect-ratio: 1666 / 925; border-radius: calc(var(--radius) + 8px); overflow: hidden;
  background: url("../img/worker-mine.jpg") center / cover no-repeat;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8);
}
.hud__screen::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.2), rgba(10, 10, 11, 0.05) 40%, rgba(10, 10, 11, 0.55)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
}
.reticle { position: absolute; left: 50.6%; top: 28%; width: 17%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.reticle i { position: absolute; width: 22%; height: 22%; border: 2px solid var(--red-2); }
.reticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.reticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.reticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.reticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.reticle span {
  position: absolute; left: 100%; top: 0; margin-left: 10px; white-space: nowrap; font-size: 10px;
  background: var(--red); color: #fff; padding: 3px 7px; border-radius: 4px;
}
.reticle::after { content: ""; position: absolute; inset: 0; border: 1px dashed rgba(255, 59, 63, 0.5); border-radius: 50%; animation: spin 14s linear infinite; }

.gcard {
  position: absolute; padding: 14px 16px; border-radius: 16px;
  background: rgba(14, 14, 17, 0.55); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  font-size: 13px;
}
.gcard .mono { font-size: 10px; color: var(--mute); }
.gcard--ecg { right: 4%; top: 7%; width: min(32%, 300px); }
.gcard__top { display: flex; justify-content: space-between; align-items: center; }
.gcard__live { display: inline-flex; align-items: center; gap: 6px; color: var(--green) !important; }
.gcard__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 1.2s steps(2) infinite; }
.gcard__val { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 4px; }
.gcard__val b { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: clamp(28px, 3vw, 42px); line-height: 1; letter-spacing: -0.04em; }
.gcard__val small { color: var(--mute); }
.ecg { width: 100%; height: 44px; overflow: hidden; }
.ecg path { fill: none; stroke: var(--red-2); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 520 520; animation: ecg 2.6s linear infinite; }
@keyframes ecg { from { stroke-dashoffset: 1040; } to { stroke-dashoffset: 0; } }
.gcard--vitals { left: 4%; bottom: 8%; width: min(30%, 260px); display: grid; gap: 8px; }
.gcard--vitals .row { display: flex; justify-content: space-between; align-items: baseline; }
.gcard--vitals b { font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: 18px; }
.gcard--status { right: 4%; bottom: 8%; display: grid; gap: 8px; }
.gcard--status .row { display: flex; align-items: center; gap: 10px; }
.gcard--status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.gcard--status .warn i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.hud__note { position: absolute; left: 4%; top: 6%; font-size: 10px !important; color: rgba(255, 255, 255, 0.6); }

@media (max-width: 900px) {
  .hud__copy { grid-template-columns: 1fr; }
  .hud__tabs, .hud__panels { grid-column: 1; grid-row: auto; }
  .hud__screen { aspect-ratio: 4 / 5.6; background-position: 50% center; }
  .reticle { left: 51.5%; top: 29%; width: 30%; }
  .gcard { padding: 10px 12px; border-radius: 12px; }
  .gcard--ecg { width: auto; left: 4%; right: 4%; top: auto; bottom: calc(4% + 118px); }
  .gcard--vitals { width: 50%; left: 4%; bottom: 4%; gap: 4px; }
  .gcard--vitals b { font-size: 15px; }
  .gcard--status { width: 40%; right: 4%; bottom: 4%; font-size: 11.5px; gap: 6px; }
  .hud__note { top: 4%; }
}

/* ==========================================================================
   Platform
   ========================================================================== */
.platform__intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-bottom: clamp(96px, 12vw, 160px); }
.wordmark {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 800;
  font-size: clamp(56px, 8vw, 128px); line-height: 0.9; letter-spacing: -0.05em; margin-bottom: 16px;
}
.wordmark span { color: var(--red); }
.platform__tag { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; margin-bottom: 18px; }
.platform__devices { perspective: 1400px; }
.platform__devices img { width: 100%; transform-origin: center bottom; filter: drop-shadow(0 50px 70px rgba(0, 0, 0, 0.6)); }

.story { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0.28; transition: opacity 0.6s var(--ease); }
.step.is-active { opacity: 1; }
.step__n { color: var(--red-2); }
.step h3 { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: clamp(30px, 3.6vw, 54px); line-height: 1; letter-spacing: -0.04em; }
.step h3 em { font-style: normal; color: var(--red-2); }
.step p { color: var(--fg-2); font-size: clamp(16px, 1.25vw, 18px); max-width: 42ch; }
.step__img { display: none; }

.story__frame { position: sticky; top: calc(50vh - min(30vw, 34vh)); height: min(60vw, 68vh); align-self: start; }
.story__media { position: relative; height: 100%; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.story__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0); transform: scale(1.12); z-index: 0;
  transition: clip-path 1.1s var(--ease), transform 1.6s var(--ease);
}
.story__media img.is-active { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 2; }
.story__media img.was-active { clip-path: inset(0 0 0 0); z-index: 1; }
.story__dots { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; z-index: 3; }
.story__dots i { width: 6px; height: 22px; border-radius: 99px; background: rgba(255, 255, 255, 0.35); transition: background-color 0.4s, height 0.4s var(--ease); }
.story__dots i.is-active { background: var(--red-2); height: 40px; }

@media (max-width: 900px) {
  .platform__intro { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .story__frame { display: none; }
  .step { min-height: 0; opacity: 1; padding: 36px 0; border-top: 1px solid var(--line); }
  .step__img { display: block; border-radius: 18px; margin-top: 10px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
}

/* ==========================================================================
   Use cases
   ========================================================================== */
.cases__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case {
  --mx: 50%; --my: 50%;
  position: relative; padding: clamp(24px, 2.4vw, 34px); min-height: 280px; background: var(--ink);
  display: flex; flex-direction: column; gap: 12px; overflow: hidden; isolation: isolate;
}
.case::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(227, 20, 27, 0.18), transparent 60%);
}
.case::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.case:hover::before { opacity: 1; }
.case:hover::after { transform: scaleX(1); }
.case__n { color: var(--mute); margin-bottom: auto; }
.case h3 { font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.1; letter-spacing: -0.02em; margin-top: 36px; }
.case p { color: var(--mute); font-size: 14.5px; line-height: 1.55; }
.case--ai { background: linear-gradient(160deg, rgba(227, 20, 27, 0.22), rgba(227, 20, 27, 0.02) 70%), var(--ink); }
.case--ai .case__n { color: var(--red-2); }
@media (max-width: 1080px) { .cases__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cases__grid { grid-template-columns: 1fr; } .case { min-height: 0; } }

/* ==========================================================================
   Benefits
   ========================================================================== */
.benefits { position: relative; padding: clamp(110px, 14vw, 200px) 0; overflow: hidden; isolation: isolate; }
.benefits__bg { position: absolute; inset: -15% 0; z-index: -1; }
.benefits__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.38) saturate(0.5); }
.benefits__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, transparent 25%, transparent 75%, var(--ink) 100%); }
.benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); text-align: center; }
.benefit { display: grid; justify-items: center; gap: 10px; }
.benefit__ring { position: relative; width: clamp(140px, 14vw, 190px); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 18px; }
.benefit__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.benefit__ring circle { fill: rgba(10, 10, 11, 0.35); stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 352; stroke-dashoffset: 0; }
.anim .benefit__ring circle { stroke-dashoffset: 352; }
.benefit__ring img { width: 50%; height: auto; position: relative; }
.benefit h3 { font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.02em; }
.benefit p { color: var(--fg-2); max-width: 24ch; }
@media (max-width: 900px) { .benefits__grid { grid-template-columns: repeat(2, 1fr); row-gap: 56px; } }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.cta__title {
  font-family: var(--f-display); font-stretch: 115%; font-weight: 900;
  font-size: clamp(44px, 6vw, 100px); line-height: 0.92; letter-spacing: -0.05em; margin-bottom: 18px;
}
.cta__sub { font-size: clamp(18px, 1.8vw, 26px); color: var(--fg-2); font-weight: 300; max-width: 30ch; }
.cta__sub strong { font-weight: 600; }
.cta__visual { position: relative; margin-top: clamp(32px, 4vw, 56px); height: clamp(240px, 26vw, 380px); }
.cta__laptop { position: absolute; left: 0; bottom: 0; width: 78%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.6)); }
.cta__helmet { position: absolute; right: 2%; bottom: -4%; width: 40%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7)); }

.form {
  position: relative; padding: clamp(26px, 3vw, 42px); border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), var(--panel);
  border: 1px solid var(--line-2); display: grid; gap: 14px;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8);
}
.form::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 59, 63, 0.7), transparent 35%, transparent 70%, rgba(255, 255, 255, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.form h3 { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: 30px; letter-spacing: -0.03em; }
.form__hint { color: var(--mute); font-size: 14px; margin-bottom: 8px; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 22px 0 10px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  color: var(--fg); font: inherit; font-size: 16px; outline: none; border-radius: 0; resize: vertical;
  transition: border-color 0.3s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--panel); color: var(--fg); }
.field--select::after { content: ""; position: absolute; right: 4px; top: 28px; width: 8px; height: 8px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: rotate(45deg); pointer-events: none; }
.field label {
  position: absolute; left: 0; top: 22px; color: var(--mute); pointer-events: none; transform-origin: left top;
  transition: transform 0.35s var(--ease), color 0.35s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red-2); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-20px) scale(0.78); color: var(--fg-2); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--amber); }
.form .btn { margin-top: 12px; }
.form__status { min-height: 1.4em; font-size: 14px; color: var(--green); }
.form__status.is-error { color: var(--amber); }

@media (max-width: 960px) {
  .cta__grid { grid-template-columns: 1fr; }
  .cta__visual { height: 62vw; max-height: 380px; margin-bottom: 32px; }
  .cta__helmet { bottom: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 72px 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__logo { height: 44px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 26px; color: var(--fg-2); font-size: 14px; }
.footer__nav a:hover { color: var(--fg); }
.footer__mega {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(44px, 11.4vw, 210px); line-height: 0.85; letter-spacing: -0.05em; text-align: center;
  margin: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap; user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mute); font-size: 13px; border-top: 1px solid var(--line); padding-top: 24px; }
.footer__top-link:hover { color: var(--fg); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .anim .manifesto .word { color: var(--fg); }
  .anim .benefit__ring circle { stroke-dashoffset: 0; }
  .js .preloader { display: none; }
}
