/* ==========================================================================
   Intelli Living — Studio Design System
   assets/css/styles.css
   Dark editorial tech studio. Shared across every page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surface */
  --ink: #03050a;
  --ink-deep: #010205;
  --ink-soft: #070a12;
  --surface: rgba(13, 18, 29, 0.66);
  --surface-solid: #0a0f1a;
  --surface-high: rgba(22, 30, 46, 0.72);

  /* Line */
  --line: rgba(160, 178, 205, 0.14);
  --line-strong: rgba(160, 178, 205, 0.26);
  --line-accent: rgba(94, 226, 255, 0.34);

  /* Type */
  --bone: #eef1ee;
  --bone-dim: #c8cfd6;
  --muted: #93a0b4;
  --dim: #63708a;

  /* Accent */
  --accent: #6ce9ff;
  --accent-strong: #2f7dff;
  --accent-glow: rgba(70, 190, 255, 0.28);
  --accent-soft: rgba(108, 233, 255, 0.1);

  /* Type families */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Pretendard Variable', Pretendard, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, 'D2Coding', monospace;

  /* Metrics */
  --gutter: clamp(20px, 4vw, 48px);
  --shell: 1240px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --section-y: clamp(72px, 9vw, 132px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Atmosphere: deep radial light + fine grid + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(47, 125, 255, 0.18), transparent 62%),
    radial-gradient(900px 520px at 8% 8%, rgba(60, 226, 255, 0.07), transparent 58%),
    radial-gradient(1200px 800px at 50% 118%, rgba(24, 60, 140, 0.16), transparent 60%),
    linear-gradient(180deg, #03050a 0%, #04070e 55%, #03050a 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(140, 170, 210, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 210, 0.045) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: rgba(108, 233, 255, 0.24); color: #fff; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 500;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

main { position: relative; z-index: 1; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--flush-top { padding-top: 0; }

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  flex: none;
}
.eyebrow--plain::before { display: none; }
.eyebrow--dim { color: var(--dim); }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.18; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.page-title em {
  font-style: normal;
  color: var(--accent);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.22;
  text-wrap: balance;
}

.lead {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--muted);
  line-height: 1.85;
  max-width: 62ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.text-accent { color: var(--accent); }

/* Section header pattern */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 60px);
}
.sec-head > div > .section-title { margin-top: 18px; }
.sec-head .lead { justify-self: end; }
.sec-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.sec-label .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
}
.sec-label .bar {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--bone);
  --btn-fg: #05070d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.btn .arw { font-size: 12px; transition: transform 0.35s var(--ease); }
.btn:hover .arw { transform: translate(3px, -3px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--bone); background: rgba(255, 255, 255, 0.04); }

.btn--accent {
  --btn-bg: var(--accent);
  --btn-fg: #031016;
}
.btn--accent:hover { box-shadow: 0 0 34px var(--accent-glow); }

.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link .arw { font-size: 12px; }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav-wrap {
  position: fixed;
  inset-inline: 0;
  top: 18px;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  width: 100%;
  max-width: 1180px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 10px 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(6, 9, 16, 0.62);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease,
    height 0.35s var(--ease);
}

.nav.is-scrolled {
  height: 60px;
  background: rgba(4, 7, 12, 0.86);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.nav__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(120, 200, 255, 0.22);
  object-fit: cover;
  box-shadow: 0 0 18px rgba(47, 125, 255, 0.28);
}
.nav__brandtext { display: flex; flex-direction: column; line-height: 1; }
.nav__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
}
.nav__sub {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.nav__links a {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__links a:hover { color: var(--bone); }
.nav__links a.is-active { color: #061018; background: var(--bone); font-weight: 600; }

.nav__right { display: flex; align-items: center; gap: 10px; flex: none; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(3, 5, 10, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 104px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease), visibility 0.3s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer a.drawer__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.drawer a.drawer__link span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--dim);
}
.drawer a.drawer__link.is-active { color: var(--accent); }
.drawer__foot {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  gap: 14px;
}
.drawer__mail {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
body.is-locked { overflow: hidden; }

/* Read progress bar (article pages) */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 300;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  box-shadow: 0 0 12px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 64px;
  overflow: hidden;
  isolation: isolate;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.85;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 5, 10, 0.2) 0%, rgba(3, 5, 10, 0.05) 40%, rgba(3, 5, 10, 0.88) 100%);
}

.hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--bone-dim);
  text-transform: uppercase;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.hero__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ef0a8;
  box-shadow: 0 0 10px #4ef0a8;
  animation: blink 2.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 8.4vw, 116px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin-bottom: clamp(22px, 2.6vw, 34px);
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero h1 .line--indent { padding-left: 0.14em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #ffffff 4%, #e2f3fb 38%, #a9e3f5 74%, #7fd0e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(15px, 1.35vw, 18px);
  color: var(--bone-dim);
  line-height: 1.85;
  max-width: 52ch;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__meta {
  display: grid;
  gap: 18px;
  padding-bottom: 8px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  min-width: 210px;
}
.hero__meta div { display: grid; gap: 5px; }
.hero__meta dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
}
.hero__meta dd { font-size: 13px; color: var(--bone-dim); letter-spacing: -0.01em; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--dim);
  text-transform: uppercase;
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* Hero background film (30s studio film) */
.hero--film { background: var(--ink); }
.hero__film {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #02040a url("../intelli_stealth_hero_30s_poster_21x9.png") center 52% / cover no-repeat;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
  border: 0;
}
.hero__film.is-ready .hero__video { opacity: 1; }
.hero__film-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(140% 115% at 26% 44%, rgba(2, 4, 10, 0) 28%, rgba(2, 4, 10, 0.3) 64%, rgba(2, 4, 10, 0.72) 100%),
    linear-gradient(90deg, rgba(2, 4, 10, 0.9) 0%, rgba(2, 4, 10, 0.72) 30%, rgba(2, 4, 10, 0.26) 60%, rgba(2, 4, 10, 0.04) 100%);
}

.hero__film-ui {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  z-index: 3;
}
.film-sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 8, 16, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--bone-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.film-sound:hover { color: #fff; border-color: rgba(108, 233, 255, 0.46); background: rgba(8, 16, 28, 0.78); }
.film-sound:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.film-sound__icon { display: inline-flex; }
.film-sound[data-muted="true"] .i-on { display: none; }
.film-sound:not([data-muted="true"]) .i-off { display: none; }

/* --------------------------------------------------------------------------
   8. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 15px;
  background: rgba(255, 255, 255, 0.014);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__group span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   9. Cards / grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 64px); align-items: center; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 46%, rgba(255, 255, 255, 0.006));
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s ease, background 0.35s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }

.card__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.card__title {
  font-size: clamp(19px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.card__text { font-size: 14px; color: var(--muted); line-height: 1.8; }
.card__foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

/* Feature panel (image + copy) */
.panel {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008));
  overflow: hidden;
}
.panel__media {
  position: relative;
  overflow: hidden;
  background: #05070d;
}
.panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.panel:hover .panel__media img { transform: scale(1.03); }
.panel__body { padding: clamp(24px, 3vw, 44px); display: grid; gap: 18px; align-content: center; }

.media-frame {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 40px 20px 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  background: linear-gradient(0deg, rgba(3, 5, 10, 0.94), transparent);
}

/* Product highlight */
.flagship {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.flagship__visual { position: relative; }
.flagship__visual .glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(closest-side, rgba(60, 180, 255, 0.32), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.flagship__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.chip--accent { border-color: var(--line-accent); color: var(--accent); background: var(--accent-soft); }

/* Spec list */
.spec {
  display: grid;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.spec > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.spec dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 3px;
}
.spec dd { color: var(--bone-dim); }

/* Product mock (flagship showcase) */
.mock {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(18, 26, 43, 0.92), rgba(6, 10, 17, 0.95));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  gap: 16px;
}
.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.mock__head .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.mock__pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pillar {
  padding: 12px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  display: grid;
  gap: 6px;
}
.pillar small {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.pillar .hz {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bone);
}
.pillar .hz--earth { color: #e8c27a; }
.pillar .hz--water { color: #7fb6ff; }
.pillar .hz--wood { color: #7fe3b0; }
.pillar .hz--fire { color: #ff9a8b; }
.pillar .hz--metal { color: #cfd9e6; }
.pillar .el {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.mock__bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 26px 1fr 22px; align-items: center; gap: 8px; }
.bar-row .k { font-family: var(--font-mono); font-size: 8.5px; color: var(--dim); }
.bar-row .track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar-row .fill { display: block; height: 100%; border-radius: 4px; }
.bar-row .v { font-family: var(--font-mono); font-size: 8.5px; color: var(--muted); text-align: right; }
.mock__note {
  display: flex; justify-content: space-between; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em;
  color: var(--dim); text-transform: uppercase;
}
.mock-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(560px 320px at 50% 40%, rgba(47, 125, 255, 0.22), transparent 68%),
    radial-gradient(400px 260px at 80% 90%, rgba(60, 226, 255, 0.1), transparent 70%),
    rgba(255, 255, 255, 0.012);
  overflow: hidden;
}
.mock-stage::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 60%;
  background: linear-gradient(0deg, rgba(3, 5, 10, 0.7), transparent);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   10. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.stat {
  padding: clamp(26px, 3vw, 40px) clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 8px;
  align-content: start;
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 62px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.stat__num .unit {
  font-size: 0.4em;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-left: 4px;
  vertical-align: super;
}
.stat__label { font-size: 14px; font-weight: 600; color: var(--bone-dim); }
.stat__note { font-size: 12.5px; color: var(--dim); line-height: 1.7; }

/* --------------------------------------------------------------------------
   11. Quote / vision band
   -------------------------------------------------------------------------- */
.quote {
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(900px 300px at 10% 0%, rgba(47, 125, 255, 0.14), transparent 65%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
}
.quote blockquote {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.quote blockquote span { color: var(--accent); }
.quote figcaption {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.quote figcaption::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--line-strong);
}

/* --------------------------------------------------------------------------
   12. Steps / pipeline
   -------------------------------------------------------------------------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.012);
}
.pipe {
  position: relative;
  padding: 26px 22px 30px;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 10px;
  align-content: start;
  transition: background 0.3s ease;
}
.pipe:last-child { border-right: 0; }
.pipe::after {
  content: "";
  position: absolute;
  top: 26px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  z-index: 1;
}
.pipe:last-child::after { display: none; }
.pipe:hover { background: rgba(255, 255, 255, 0.03); }
.pipe__step {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.pipe__title { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.pipe__text { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.pipe__tag {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 8px;
}

/* Numbered steps (vertical) */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.3s ease;
}
.step:hover { background: rgba(255, 255, 255, 0.014); }
.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--dim);
  padding-top: 4px;
}
.step__title { font-size: clamp(18px, 1.7vw, 23px); font-weight: 700; letter-spacing: -0.03em; }
.step__text { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* --------------------------------------------------------------------------
   13. Table
   -------------------------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.012);
  overflow-x: auto;
}
table.stack {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 13.5px;
}
table.stack th, table.stack td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.stack thead th {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
}
table.stack tbody tr:last-child td { border-bottom: 0; }
table.stack tbody tr:hover { background: rgba(255, 255, 255, 0.022); }
table.stack td:first-child { color: var(--bone-dim); font-weight: 600; width: 24%; }
table.stack td:last-child { color: var(--muted); }

/* --------------------------------------------------------------------------
   14. Tabs / insights
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: clamp(26px, 3vw, 38px);
}
.tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.22s ease;
}
.tab:hover { color: var(--bone); border-color: var(--line-strong); }
.tab.is-active { background: var(--bone); color: #05070d; border-color: var(--bone); font-weight: 600; }

.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article-card {
  text-align: left;
  cursor: pointer;
  align-items: stretch;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.article-card__meta .tag {
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--line-accent);
  color: var(--accent);
}
.article-card__title {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.article-card__excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.article-card__open {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.article-card:hover .article-card__open { color: var(--accent); }
.article-card.is-hidden { display: none; }

.empty-state {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-l);
  color: var(--dim);
  font-size: 14px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(82vh, 900px);
  overflow-y: auto;
  border-radius: var(--radius-l);
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, #0a0f1a, #06090f);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  padding: clamp(26px, 4vw, 48px);
  transform: translateY(14px) scale(0.99);
  transition: transform 0.35s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--muted);
  transition: all 0.2s ease;
}
.modal__close:hover { color: var(--bone); border-color: var(--bone); background: rgba(255, 255, 255, 0.05); }
.modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}
.modal__meta .tag { color: var(--accent); padding: 3px 8px; border: 1px solid var(--line-accent); border-radius: 5px; }
.modal__title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.28;
  margin-bottom: 22px;
  padding-right: 40px;
}
.article-body { display: grid; gap: 16px; }
.article-body p { font-size: 14.5px; color: var(--bone-dim); line-height: 1.9; }
.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 10px;
  letter-spacing: -0.02em;
}
.article-body ul { display: grid; gap: 9px; }
.article-body li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.article-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 1px;
  background: var(--accent);
}
.article-body ol { counter-reset: abody; }
.article-body ol li { padding-left: 24px; counter-increment: abody; }
.article-body ol li::before {
  content: counter(abody, decimal-leading-zero);
  top: 1px;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
}
.article-body strong { color: var(--bone); font-weight: 600; }
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--accent);
}
.article-body .note {
  padding: 14px 18px;
  border-left: 2px solid var(--line-accent);
  background: rgba(108, 233, 255, 0.045);
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bone-dim);
  letter-spacing: -0.01em;
}
.field .req { color: var(--accent); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(5, 8, 14, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 13px 15px;
  color: var(--bone);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #4d586e; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--line-accent);
  background: rgba(8, 13, 22, 0.9);
  box-shadow: 0 0 0 3px rgba(108, 233, 255, 0.08);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.consent input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex: none;
}
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.form-status {
  min-height: 20px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--accent);
}
.form-status.is-error { color: #ff8f8f; }
.form-note {
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.7;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.form-note .lock { color: var(--accent); font-size: 11px; }

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
  display: grid;
  gap: 20px;
}
.info-row { display: grid; gap: 5px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.info-row dd { font-size: 14px; color: var(--bone-dim); }
.info-row a:hover { color: var(--accent); }
.copy-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 5px;
  transition: all 0.2s ease;
}
.copy-btn:hover { color: var(--accent); border-color: var(--line-accent); }

/* --------------------------------------------------------------------------
   16. FAQ accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bone);
  display: flex;
  gap: 18px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.14em;
  flex: none;
  padding-top: 4px;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a {
  padding: 0 44px 24px 42px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 78ch;
}

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  padding: clamp(34px, 6vw, 76px);
  overflow: hidden;
  background:
    radial-gradient(720px 320px at 82% 12%, rgba(47, 125, 255, 0.24), transparent 62%),
    radial-gradient(520px 300px at 8% 96%, rgba(60, 226, 255, 0.1), transparent 62%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.006));
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(160, 190, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 190, 230, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 75% 30%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 75% 30%, #000, transparent 72%);
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: 22px; max-width: 720px; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.cta-band p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 68px);
  padding-bottom: 32px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.62fr));
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 52px);
}
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__brand .mark { display: flex; align-items: center; gap: 11px; }
.footer__brand .mark img { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-strong); }
.footer__brand .wordmark {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.footer__brand p { font-size: 13px; color: var(--dim); line-height: 1.8; max-width: 34ch; }
.footer__col h3 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: 13.5px; color: var(--muted); transition: color 0.2s ease; }
.footer__col a:hover { color: var(--bone); }

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.newsletter > label {
  flex: 1 1 100%;
  margin-bottom: 2px;
}
.newsletter input {
  flex: 1 1 170px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--bone);
  outline: none;
  transition: border-color 0.2s ease;
}
.newsletter input::placeholder { color: #4d586e; }
.newsletter input:focus { border-color: var(--line-accent); }
.newsletter button {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bone);
  color: #05070d;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.newsletter button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }

.footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.9;
}
.footer__legal .biz { display: grid; gap: 2px; }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer__legal nav a { color: var(--muted); }
.footer__legal nav a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   19. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(130px, 15vw, 190px);
  padding-bottom: clamp(40px, 5vw, 72px);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(600px 320px at 20% 20%, rgba(47, 125, 255, 0.18), transparent 65%);
  pointer-events: none;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 26px;
}
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: 0.5; }
.crumbs .here { color: var(--bone-dim); }

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.page-hero .lead { margin-top: 22px; }
.page-hero__aside {
  display: grid;
  gap: 14px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.page-hero__aside div { display: grid; gap: 4px; }
.page-hero__aside dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.page-hero__aside dd { font-size: 12.5px; color: var(--bone-dim); }

/* --------------------------------------------------------------------------
   20. Legal / long-form documents
   -------------------------------------------------------------------------- */
.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding-bottom: clamp(40px, 6vw, 80px);
}
.doc-toc {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 9px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}
.doc-toc h2 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin-bottom: 6px;
}
.doc-toc a { font-size: 12.5px; color: var(--muted); line-height: 1.5; transition: color 0.2s ease; }
.doc-toc a:hover { color: var(--accent); }
.doc-body { display: grid; gap: 34px; max-width: 76ch; }
.doc-body section { scroll-margin-top: 120px; }
.doc-body h2 {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.doc-body h2 .n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 400;
}
.doc-body p, .doc-body li { font-size: 14px; color: var(--muted); line-height: 1.95; }
.doc-body p + p { margin-top: 10px; }
.doc-body ul, .doc-body ol { display: grid; gap: 7px; margin-top: 10px; }
.doc-body ul li { position: relative; padding-left: 16px; }
.doc-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dim);
}
.doc-body ol { counter-reset: li; }
.doc-body ol li { position: relative; padding-left: 24px; counter-increment: li; }
.doc-body ol li::before {
  content: counter(li, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 16px 20px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.doc-meta strong { color: var(--bone-dim); font-weight: 600; }
.doc-box {
  padding: 18px 20px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line-accent);
  background: rgba(108, 233, 255, 0.045);
  font-size: 13.5px;
  color: var(--bone-dim);
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   21. Reveal animation
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav { padding-right: 10px; }
  .nav__right .btn { display: none; }
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__meta {
    grid-template-columns: repeat(3, auto);
    gap: 26px;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    justify-content: start;
  }
  .hero { min-height: auto; padding-top: 140px; }
  .hero__film-scrim {
    background: linear-gradient(180deg, rgba(2, 4, 10, 0.72) 0%, rgba(2, 4, 10, 0.42) 22%, rgba(2, 4, 10, 0.68) 60%, rgba(2, 4, 10, 0.94) 100%);
  }
  .hero__video { object-position: 48% 46%; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe { border-bottom: 1px solid var(--line); }
  .pipe:nth-child(2n) { border-right: 0; }
  .pipe:nth-last-child(1) { border-bottom: 0; grid-column: span 2; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-toc h2 { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .sec-head .lead { justify-self: start; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--split, .flagship, .page-hero__grid, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .step { grid-template-columns: 46px minmax(0, 1fr); }
  .step__text { grid-column: 2; }
  .articles { grid-template-columns: 1fr; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero__scroll { display: none; }
  .footer__top { grid-template-columns: 1fr; }
  .page-hero__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .quote { padding: 28px 22px; }
  .cta-band { padding: 32px 24px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe { border-right: 0; border-bottom: 1px solid var(--line); }
  .pipe:last-child { grid-column: auto; }
  .pipe::after { display: none; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .doc-toc { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .hero { padding-top: 120px; }
  .hero__film-ui { right: 16px; bottom: 16px; }
  .film-sound { padding: 8px 12px 8px 10px; }
  .nav { height: 60px; }
  .nav__sub { display: none; }
  .nav__name { font-size: 13.5px; }
  .hero h1 { font-size: clamp(42px, 12.5vw, 60px); }
  .hero__cta .btn { width: 100%; }
  .hero__meta { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .modal { padding: 0; }
  .modal__panel { max-height: 100vh; border-radius: 0; }
  .page-hero__aside { grid-template-columns: 1fr; }
  .doc-toc { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
}

/* Print (legal pages) */
@media print {
  body { background: #fff; color: #111; }
  body::before, body::after, .nav-wrap, .footer, .page-hero::before { display: none; }
  .doc-body p, .doc-body li, .doc-body h2 { color: #111; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { display: none; }
}
