/* =========================================================
   NC Crew — design system
   Noir & blanc, minimal, animé
   ========================================================= */

:root {
  --bg: #050505;
  --bg-soft: #0a0a0b;
  --panel: #0d0d0f;
  --panel-2: #111114;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f2f2f3;
  --muted: #9b9ba2;
  --muted-2: #6a6a71;
  --white: #ffffff;
  --black: #000000;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
  --header-h: 84px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  opacity: 0.028;
  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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
em { font-style: italic; }
::selection { background: #fff; color: #000; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 9000;
  transform: translateY(-160%);
  background: #fff;
  color: #000;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.06);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 150;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { height: 68px; border-bottom-color: var(--line); }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.brand:hover img { transform: rotate(-8deg) scale(1.04); box-shadow: 0 0 0 6px rgba(255,255,255,0.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 14px; letter-spacing: 0.18em; font-weight: 600; }
.brand-text small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a:hover::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 25px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bg: var(--white);
  --btn-fg: var(--black);
  border-color: var(--white);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(0, 0, 0, 0.14) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.18);
}

.btn-outline { background: rgba(255, 255, 255, 0.02); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

.btn-ghost {
  border-color: transparent;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }

.btn-sm { padding: 10px 18px; font-size: 12.5px; }
.btn-lg { padding: 17px 32px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Eyebrow / section titles ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: pulse-dot 2.6s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

html { scroll-padding-top: 92px; }
section[id], main[id] { scroll-margin-top: 92px; }

.section { position: relative; padding: clamp(80px, 11vw, 152px) 0; }
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.section-title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: #fff;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.06rem);
  line-height: 1.75;
  max-width: 52ch;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 80px);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .section-lead { max-width: 40ch; }
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head--center .section-lead { margin: 0 auto; }

/* ---------- Reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0.6;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
}
.hero-glow {
  position: absolute;
  z-index: -1;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  top: -22%;
  right: -12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  animation: float-glow 16s ease-in-out infinite alternate;
}
@keyframes float-glow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 6%, 0) scale(1.08); }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.7rem, 5.9vw, 5.2rem);
  line-height: 0.97;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: 30px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span,
.hero-title .line > em {
  display: inline-block;
  transform: translateY(110%);
  animation: rise-in 1.15s var(--ease) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) > em { animation-delay: 0.42s; }
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #fff;
  padding-right: 4px;
}
@keyframes rise-in {
  to { transform: translateY(0); }
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.75;
  max-width: 50ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.9s var(--ease), border-color 0.6s var(--ease);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65);
}
.hero-frame:hover { transform: perspective(1200px) rotateY(0) rotateX(0); border-color: var(--line-strong); }
.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.78);
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
}
.hero-frame:hover img { transform: scale(1.04); filter: grayscale(1) contrast(1.12) brightness(0.9); }
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.25) 45%, transparent 70%);
  pointer-events: none;
}
.hero-frame figcaption {
  position: absolute;
  z-index: 2;
  left: 24px; right: 24px; bottom: 22px;
  display: grid;
  gap: 4px;
}
.frame-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--muted);
}
.frame-title { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.frame-meta { font-size: 12.5px; color: var(--muted); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  animation: float-card 7s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.float-card small { display: block; font-size: 11px; color: var(--muted); }
.float-card--top { top: 22px; left: -22px; }
.float-card--bottom { bottom: 58px; right: -20px; animation-delay: -3.5s; }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  animation: pulse-dot 2.4s infinite;
}
.meter {
  width: 46px; height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  width: 82%;
  background: #fff;
  animation: meter 3.6s var(--ease) infinite alternate;
}
@keyframes meter {
  from { width: 55%; }
  to { width: 96%; }
}

.scroll-hint {
  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: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -46px; left: 0;
  width: 1px; height: 46px;
  background: #fff;
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(0); }
  100% { transform: translateY(92px); }
}

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-soft);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  animation: ticker 46s linear infinite;
}
.ticker-track span:nth-child(even) { color: var(--muted-2); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.split--top { align-items: start; }
.split-copy { max-width: 560px; }

.media-stack { position: relative; }
.media-main {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.06) brightness(0.7);
}
.media-inset {
  position: absolute;
  right: -18px;
  bottom: -30px;
  width: 46%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  filter: grayscale(1) brightness(0.62) contrast(1.05);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.7);
}
.media-badge {
  position: absolute;
  left: -16px;
  top: 26px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fff;
  color: #000;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}
.media-badge strong { display: block; font-size: 28px; line-height: 1; letter-spacing: -0.05em; }
.media-badge span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }

.principle-list { margin-top: 40px; display: grid; gap: 4px; }
.principle-list li {
  display: flex;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.principle-list li:last-child { border-bottom: 1px solid var(--line); }
.principle-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  padding-top: 4px;
}
.principle-list h3 { font-size: 17px; margin-bottom: 6px; }
.principle-list p { color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 44ch; }

/* ---------- Metrics ---------- */
.metrics-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.metric {
  padding: clamp(30px, 4vw, 52px) clamp(14px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.metric + .metric::before {
  content: "";
  position: absolute;
  left: 0; top: 26%; bottom: 26%;
  width: 1px;
  background: var(--line);
}
.metric strong {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric strong small { font-size: 0.42em; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.metric > span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- Modules ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.filter-btn:hover { color: #fff; border-color: var(--line-strong); transform: translateY(-1px); }
.filter-btn.is-active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.module-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.6s var(--ease);
}
.module-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  background: var(--panel-2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}
.module-card.is-hidden { display: none; }
.module-open {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  color: inherit;
}
.module-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.module-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(1) brightness(0.62) contrast(1.05);
  transition: transform 1s var(--ease), filter 0.7s var(--ease);
}
.module-card:hover .module-media img {
  transform: scale(1.06);
  filter: grayscale(1) brightness(0.82) contrast(1.02);
}
.module-index {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.3);
}
.module-body { padding: 24px 24px 26px; }
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 14px;
}
.module-body h3 { font-size: 21px; margin-bottom: 10px; }
.module-body p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 20px;
}
.module-tags li {
  font-size: 10.5px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
}
.module-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: gap 0.35s var(--ease), border-color 0.35s var(--ease);
}
.module-card:hover .module-link { gap: 14px; border-bottom-color: #fff; }

/* ---------- Security ---------- */
.security { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(48px, 7vw, 82px);
}
.layer {
  position: relative;
  padding: 32px 28px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008));
  overflow: hidden;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.layer:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at 80% 0%, rgba(255,255,255,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.layer:hover::after { opacity: 1; }
.layer-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}
.layer h3 { font-size: 20px; margin: 26px 0 10px; }
.layer p { color: var(--muted); font-size: 14.5px; line-height: 1.68; }
.layer-tag {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  width: 100%;
}

.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-head,
.compare-list li {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px clamp(16px, 3vw, 30px);
}
.compare-head {
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.compare-col { color: #fff; }
.compare-col--muted { color: var(--muted-2); }
.compare-list li {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: background 0.3s var(--ease);
}
.compare-list li:last-child { border-bottom: 0; }
.compare-list li:hover { background: rgba(255, 255, 255, 0.025); }
.compare-list span:first-child { color: var(--muted); }
.yes { color: #fff; font-weight: 500; }
.yes::before { content: "— "; color: var(--muted-2); }
.no { color: var(--muted-2); }
.no::before { content: "× "; }

/* ---------- Install ---------- */
.os-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 28px;
  scrollbar-width: none;
}
.os-tabs::-webkit-scrollbar { display: none; }
.os-tab {
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.os-tab:hover { color: #fff; }
.os-tab.is-active { background: #fff; color: #000; }

.os-panel { display: none; }
.os-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.006));
  animation: panel-in 0.6s var(--ease);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.os-panel-head h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 8px 0 6px; }
.os-panel-head p { color: var(--muted); font-size: 13.5px; }

.steps { margin-top: 30px; display: grid; gap: 2px; }
.steps li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.steps li > span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  padding-top: 3px;
}
.steps strong { display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 3px; }
.steps p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.terminal {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #070708;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.terminal-bar span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.terminal-bar p {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
.terminal pre {
  margin: 0;
  padding: 22px 18px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: #e8e8ea;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 74px;
}
.terminal pre::before { content: "$ "; color: var(--muted-2); }
.caret {
  display: inline-block;
  width: 7px; height: 14px;
  background: #fff;
  margin: 0 0 14px 18px;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.terminal-note {
  padding: 0 18px 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.fine-print { font-size: 11.5px; color: var(--muted-2); margin-top: 12px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.accordion details {
  border-bottom: 1px solid var(--line);
}
.accordion details:first-child { border-top: 1px solid var(--line); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-size: 15.5px;
  font-weight: 500;
  transition: color 0.3s var(--ease), padding 0.4s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: #fff; padding-left: 10px; }
.accordion details[open] summary { color: #fff; }
.plus {
  position: relative;
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.plus::before { left: 0; right: 0; top: 6px; height: 1px; }
.plus::after { top: 0; bottom: 0; left: 6px; width: 1px; }
details[open] .plus::after { transform: rotate(90deg); opacity: 0; }
.accordion details p {
  padding: 0 40px 26px 4px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  max-width: 62ch;
  animation: fade-in 0.5s var(--ease);
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); background: var(--bg-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact-card {
  margin: 34px 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 6px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 10px;
}
.contact-label:first-child { margin-top: 0; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-row a { font-size: clamp(1rem, 1.6vw, 1.2rem); letter-spacing: -0.02em; }
.copy-row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy-btn {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.copy-btn:hover { color: #000; background: #fff; border-color: #fff; }
.contact-value { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 36px);
  background: var(--panel);
  display: grid;
  gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label,
.checkbox span { font-size: 12px; color: var(--muted); letter-spacing: 0.01em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #08080a;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  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% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #4e4e55; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  background: #0b0b0d;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.field-hint { font-family: var(--font-mono); font-size: 9.5px; color: var(--muted-2); text-align: right; }

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.55;
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #08080a;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.checkbox input:checked {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  border-color: #fff;
}
.checkbox span { color: var(--muted); font-size: 12.5px; }

.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  font-size: 12.5px;
  min-height: 18px;
  color: var(--muted);
  line-height: 1.5;
}
.form-status.is-error { color: #ffb4b4; }
.form-status.is-success { color: #c6ffd9; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 7vw, 84px);
  background: var(--bg);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer-brand p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 20px 0 14px; max-width: 30ch; }
.footer-mail { font-size: 13px; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.footer-mail:hover { border-color: #fff; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.footer-col a,
.footer-col button {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  text-align: left;
}
.footer-col a:hover,
.footer-col button:hover { color: #fff; transform: translateX(3px); }
.footer-news p { color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 32ch; }
.news-row { display: flex; gap: 8px; width: 100%; margin-top: 4px; }
.news-row input {
  flex: 1;
  min-width: 0;
  background: #08080a;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
}
.news-row input:focus { outline: none; border-color: var(--line-strong); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  padding-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted-2);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-legal li { display: inline-flex; align-items: center; gap: 7px; }
.footer-legal button { font-size: 11.5px; color: var(--muted-2); }
.footer-legal button:hover { color: #fff; }
.status-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

/* ---------- Bot ---------- */
.bot {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.bot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.bot-toggle:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.7); }
.bot-toggle-icon { display: inline-flex; }
.bot[data-open="true"] .bot-toggle-label { display: none; }

.bot-panel[hidden] { display: none !important; }
.bot-panel {
  width: min(384px, calc(100vw - 32px));
  max-height: min(560px, calc(100svh - 140px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #0b0b0d;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  animation: bot-in 0.45s var(--ease);
}
@keyframes bot-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.bot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.bot-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.bot-header strong { display: block; font-size: 13.5px; font-weight: 500; }
.bot-header small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.bot-close { margin-left: auto; font-size: 22px; color: var(--muted); line-height: 1; padding: 4px 6px; }
.bot-close:hover { color: #fff; }

.bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 150px;
}
.bot-msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
  animation: msg-in 0.35s var(--ease);
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.bot-msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: #e6e6e9;
}
.bot-msg--user {
  align-self: flex-end;
  background: #fff;
  color: #000;
  border-bottom-right-radius: 4px;
}
.bot-msg--typing { color: var(--muted-2); letter-spacing: 0.2em; }

.bot-suggestions {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
  flex-wrap: wrap;
}
.bot-suggestions button {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  text-align: left;
}
.bot-suggestions button:hover { color: #000; background: #fff; border-color: #fff; }

.bot-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.bot-form input {
  flex: 1;
  min-width: 0;
  background: #070708;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
}
.bot-form input:focus { outline: none; border-color: var(--line-strong); }
.bot-form button {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease);
}
.bot-form button:hover { transform: scale(1.06); }
.bot-note {
  padding: 0 16px 12px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  text-align: center;
}

/* ---------- Modals ---------- */
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: min(620px, calc(100vw - 32px));
  width: 100%;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal[open] .modal-inner { animation: modal-in 0.45s var(--ease); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-inner {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #0b0b0d;
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}
.modal-inner h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.modal-intro { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.modal-list { display: grid; gap: 10px; margin: 22px 0 26px; }
.modal-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}
.modal-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 1px;
  background: #fff;
}
.modal-text { color: var(--muted); font-size: 13.5px; line-height: 1.75; display: grid; gap: 12px; }
.modal-text strong { color: #fff; font-weight: 500; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 420px;
}
.toast {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #101013;
  color: var(--text);
  font-size: 13px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.35s var(--ease);
}
.toast--success { border-color: rgba(180, 255, 205, 0.4); }
.toast--error { border-color: rgba(255, 170, 170, 0.4); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.noscript {
  position: relative;
  z-index: 500;
  padding: 14px 22px;
  background: #fff;
  color: #000;
  font-size: 13px;
  text-align: center;
}
.noscript a { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-top: 12px; }
  .hero-frame img { aspect-ratio: 4 / 3.4; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 72px); }
  .scroll-hint { display: none; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-copy { max-width: 100%; }
  .manifesto .split-media { order: 2; }
  .manifesto .media-main { aspect-ratio: 16 / 10; }
  .media-inset { width: 32%; right: -6px; bottom: -22px; }
  .os-panel.is-active { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .primary-nav {
    position: fixed;
    inset: 0 0 auto 0;
    padding: calc(var(--header-h) + 24px) 24px 32px;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.55s var(--ease);
    max-height: 100svh;
    overflow-y: auto;
  }
  body.nav-open .primary-nav { transform: translateY(0); }
  .primary-nav a { font-size: 20px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .primary-nav a::after { display: none; }
  .nav-cta-mobile { display: block; margin-top: 22px; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-primary { display: none; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head .section-lead { max-width: 100%; }
  .section-head--center { align-items: center; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3)::before { display: none; }
  .metric:nth-child(3),
  .metric:nth-child(4) { border-top: 1px solid var(--line); }
  .layers { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .compare-head,
  .compare-list li { grid-template-columns: 1.4fr 0.9fr 0.9fr; font-size: 12.5px; padding: 14px 16px; }
  .compare-head { font-size: 8.5px; }
  .field-row { grid-template-columns: 1fr; }
  .float-card--top { left: -8px; }
  .float-card--bottom { right: -8px; }
  .modal-inner { padding: 26px 22px; }
}

@media (max-width: 600px) {
  .module-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-badges { gap: 8px 16px; font-size: 9px; }
  .float-card { padding: 10px 14px; }
  .float-card small { display: none; }
  .media-badge { left: 8px; top: 12px; padding: 12px 16px; }
  .media-inset { display: none; }
  .metric strong { font-size: 2.1rem; }
  .footer-top { gap: 32px; }
  .bot-toggle { padding: 12px 16px; }
  .bot-toggle-label { display: none; }
  .bot-panel { max-height: calc(100svh - 120px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .hero-title .line > span,
  .hero-title .line > em { transform: none; }
  .hero-canvas { display: none; }
}
