/* ==========================================================================
   AliShiri FPV — design system
   Dark cinematic base · FPV/OSD HUD accents · one signal colour
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #050505;
  --surface: #0d0d0d;
  --surface-2: #141414;
  --surface-3: #1c1c1c;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.22);
  --fg: #f3f2ed;
  --fg-muted: #a6a6a1;
  --fg-dim: #8c8c88;
  --accent: #ff4d1f;
  --accent-hover: #ff6a42;
  --accent-ink: #0a0a0a;
  --accent-soft: rgb(255 77 31 / 0.14);
  --success: #3ddc84;
  --danger: #ff7a6b;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  --fs-xl: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(2.25rem, 1.2rem + 3.4vw, 4.25rem);
  --fs-display: clamp(3rem, 0.9rem + 7.6vw, 8.5rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section: clamp(88px, 11vw, 168px);
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1320px;
  --header-h: 76px;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 900ms;

  --z-base: 1;
  --z-header: 100;
  --z-menu: 200;
  --z-dialog: 1000;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.sr-only {
  position: absolute !important;
  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: calc(var(--z-dialog) + 1);
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* Film grain — fixed, cheap, decorative */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--surface { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

/* ---------- Typography ---------- */
.display,
.h2,
.h3 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}
.display { font-size: var(--fs-display); }
.h2 { font-size: var(--fs-h2); line-height: 1; }
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.lead {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 62ch;
  text-wrap: pretty;
}
.muted { color: var(--fg-muted); }
.accent { color: var(--accent); }
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--fg);
}
.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--fg-muted); max-width: 64ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-head {
  display: grid;
  gap: var(--space-5);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head--split {
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.3fr 1fr; gap: var(--space-8); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-line: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-line: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-hover); --btn-line: var(--accent-hover); }
.btn--ghost:hover { --btn-bg: rgb(255 255 255 / 0.06); --btn-line: var(--fg); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: var(--fs-sm); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header--solid {
  background: rgb(5 5 5 / 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.brand img { width: 52px; height: auto; }
.brand__name {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.brand__name span { display: block; font-family: var(--font-mono); font-stretch: 100%; font-weight: 500; font-size: 0.625rem; letter-spacing: 0.32em; color: var(--accent); margin-top: 5px; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color var(--dur) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 8px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--fg); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.lang-switch:hover { color: var(--fg); border-color: var(--fg); }
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (min-width: 960px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--gutter) var(--space-7);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s;
}
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; min-height: calc(var(--header-h) - var(--space-4)); }
.mobile-menu__list { list-style: none; padding: 0; margin: auto 0 var(--space-7); display: grid; gap: 4px; }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.25rem, 10vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__link small { font-family: var(--font-mono); font-stretch: 100%; font-size: var(--fs-xs); font-weight: 500; color: var(--accent); letter-spacing: 0.1em; }
.mobile-menu__link[aria-current="page"] { color: var(--accent); }
.mobile-menu__meta { display: grid; gap: 6px; color: var(--fg-muted); font-size: var(--fs-sm); }
.mobile-menu__meta a { min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- HUD (FPV goggles overlay) ---------- */
.hud {
  position: absolute;
  inset: calc(var(--header-h) + 8px) var(--gutter) 28px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgb(255 255 255 / 0.82);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.hud__corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: rgb(255 255 255 / 0.55);
  border-style: solid;
  border-width: 0;
}
.hud__corner--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.hud__corner--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.hud__corner--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud__corner--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hud__rec {
  position: absolute;
  top: 14px; left: 44px;
  display: flex; align-items: center; gap: 10px;
}
.hud__rec::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.2s steps(2, jump-none) infinite;
}
.hud__meta { position: absolute; top: 14px; right: 44px; text-align: right; display: grid; gap: 4px; }
.hud__telemetry {
  position: absolute;
  bottom: 14px; right: 44px;
  display: flex; gap: 22px;
}
.hud__telemetry span b { color: var(--fg); font-weight: 600; margin-left: 6px; }
.hero .hud__cross { display: none; }
.hud__cross {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  opacity: 0.45;
}
.hud__cross::before,
.hud__cross::after {
  content: "";
  position: absolute;
  background: #fff;
}
.hud__cross::before { left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%); }
.hud__cross::after { top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(#fff 0 35%, transparent 35% 65%, #fff 65%); }
.hud__horizon {
  position: absolute;
  top: 50%; left: 50%;
  width: min(36vw, 380px);
  height: 1px;
  transform: translate(-50%, -50%) rotate(var(--roll, -2deg));
  background: linear-gradient(90deg, rgb(255 255 255 / 0.5) 0 18%, transparent 18% 82%, rgb(255 255 255 / 0.5) 82%);
  transition: transform 1.2s var(--ease-out);
}
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 719px) {
  .hud__meta, .hud__horizon { display: none; }
  .hud__telemetry { left: 44px; right: auto; gap: 14px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: clamp(88px, 12vh, 140px);
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img,
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroDrift 18s var(--ease-out) forwards;
}
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero__media video.is-playing { opacity: 1; }
@keyframes heroDrift { to { transform: scale(1); } }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(5 5 5 / 0.55) 0%, rgb(5 5 5 / 0.15) 35%, rgb(5 5 5 / 0.65) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgb(5 5 5 / 0.7) 0%, transparent 60%);
}
.hero__content { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); max-width: 1240px; }
.hero .display { font-size: min(9.6vw, 8.5rem); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line > span { display: inline-block; }
.hero__sub { font-size: var(--fs-lg); color: rgb(243 242 237 / 0.82); max-width: 52ch; text-wrap: pretty; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: var(--fg-muted);
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 40px;
  background: linear-gradient(var(--fg), transparent);
  animation: cue 2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }
@media (min-width: 900px) { .scroll-cue { display: flex; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(64px, 10vw, 140px));
  padding-bottom: clamp(56px, 8vw, 110px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 0%, rgb(255 77 31 / 0.18), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 100%;
  mask-image: linear-gradient(180deg, #000 0%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 95%);
  opacity: 0.9;
}
.page-hero__inner { display: grid; gap: var(--space-5); }
.page-hero .display { font-size: clamp(2.75rem, 1rem + 6.4vw, 7rem); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--fg-muted); transition: color var(--dur); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--fg); }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 26px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.marquee__label { text-align: center; }
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(1.125rem, 0.8rem + 1.2vw, 1.75rem);
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee__track span::after { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / stats ---------- */
.intro { display: grid; gap: var(--space-8); }
@media (min-width: 1000px) { .intro { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: var(--space-7);
}
.stat {
  padding: var(--space-6) var(--space-5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.stat__value {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__value sup { font-size: 0.45em; color: var(--accent); vertical-align: top; margin-inline-start: 2px; }
.stat__label { font-size: var(--fs-sm); color: var(--fg-muted); }
.stat__value { order: -1; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Work grid & cards ---------- */
.work-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .work-grid--bento { grid-template-columns: repeat(12, 1fr); }
  .work-grid--bento > :nth-child(1) { grid-column: span 7; }
  .work-grid--bento > :nth-child(2) { grid-column: span 5; }
  .work-grid--bento > :nth-child(3) { grid-column: span 4; }
  .work-grid--bento > :nth-child(4) { grid-column: span 4; }
  .work-grid--bento > :nth-child(5) { grid-column: span 4; }
  .work-grid--bento > :nth-child(6) { grid-column: span 12; }
  .work-grid--bento > :nth-child(6) .work-card__media { aspect-ratio: 21 / 8; }
  .work-grid--bento > :nth-child(-n+2) .work-card__media { aspect-ratio: auto; height: clamp(340px, 30vw, 460px); }
  .work-grid--all { grid-template-columns: repeat(3, 1fr); }
}

.work-card { position: relative; display: grid; gap: 14px; }
.work-card[hidden] { display: none; }
.work-card__btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius);
  cursor: pointer;
}
.work-card__btn:focus-visible { outline-offset: 4px; }
.work-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  container-type: inline-size;
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter var(--dur) var(--ease-out);
  filter: saturate(0.92);
}
.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgb(0 0 0 / 0.55));
  pointer-events: none;
}
.work-card:hover .work-card__media img { transform: scale(1.05); filter: saturate(1.08); }
.work-card__play {
  position: absolute;
  z-index: 1;
  left: 18px; bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgb(5 5 5 / 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 0.18);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.work-card__play i {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  transition: background-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.work-card__play svg { width: 13px; height: 13px; margin-left: 2px; }
.work-card:hover .work-card__play { background: rgb(5 5 5 / 0.75); border-color: var(--accent); }
.work-card:hover .work-card__play i { background: var(--accent); transform: scale(1.08); }
.work-card__tag {
  position: absolute;
  z-index: 1;
  top: 16px; left: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(5 5 5 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.work-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.work-card__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.work-card__client { color: var(--fg-muted); font-size: var(--fs-sm); margin-top: 4px; }
.work-card__kind { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-dim); letter-spacing: 0.08em; white-space: nowrap; }

/* Generated poster for projects without a still */
.poster {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 52px 24px 76px;
  text-align: center;
  background:
    radial-gradient(70% 90% at 20% 15%, hsl(var(--h, 14) 90% 50% / 0.42), transparent 60%),
    radial-gradient(60% 70% at 90% 100%, hsl(calc(var(--h, 14) + 40) 80% 40% / 0.28), transparent 60%),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 4px),
    #0b0b0b;
  transition: transform 1.1s var(--ease-out);
}
.work-card:hover .poster { transform: scale(1.04); }
.poster__word {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: min(8.5cqi, 3.75rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.2px rgb(255 255 255 / 0.85);
  text-wrap: balance;
}
.poster__sub { margin-top: 12px; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.3em; color: rgb(255 255 255 / 0.7); text-transform: uppercase; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-7); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg-muted);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip__count { font-family: var(--font-mono); font-size: 0.6875rem; opacity: 0.7; }

.chips-static { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-static li {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.chips-static svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 300px;
  transition: background-color var(--dur) var(--ease-out);
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
.service:hover { background: var(--surface-2); }
.service:hover::before { transform: scaleX(1); }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); }
.service__num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-dim); letter-spacing: 0.14em; }
.service__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur);
}
.service__icon svg { width: 24px; height: 24px; }
.service:hover .service__icon { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.service p { color: var(--fg-muted); }
.service ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--fg-muted); }
.service li { display: flex; gap: 10px; align-items: flex-start; }
.service li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.6em; background: var(--accent); transform: rotate(45deg); }

/* ---------- Feature split ---------- */
.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1000px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-9); }
  .split--reverse > :first-child { order: 2; }
}
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media .hud { inset: 18px; }
.split__media .hud__rec { top: 10px; left: 38px; }
.split__media .hud__telemetry { bottom: 10px; left: 38px; right: auto; }

.feature-list { display: grid; gap: 0; margin-top: var(--space-6); border-top: 1px solid var(--line); }
.feature-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}
.feature-list svg { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.feature-list h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 4px; }
.feature-list p { color: var(--fg-muted); font-size: 0.9875rem; }

/* ---------- Fleet ---------- */
.fleet { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .fleet { grid-template-columns: repeat(3, 1fr); } }
.rig {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.rig:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.rig__media { aspect-ratio: 4 / 3; overflow: hidden; }
.rig__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.rig:hover .rig__media img { transform: scale(1.05); }
.rig__body { padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.rig__class { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.rig__body p { color: var(--fg-muted); font-size: 0.9875rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: var(--space-3); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.specs div { background: var(--surface); padding: 12px 14px; }
.specs dt { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
.specs dd { font-weight: 600; font-size: var(--fs-sm); margin-top: 2px; }

/* ---------- Process ---------- */
.process { display: grid; gap: var(--space-5); counter-reset: step; }
@media (min-width: 720px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
.step__num {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--line-strong);
  margin-bottom: var(--space-4);
  transition: -webkit-text-stroke-color var(--dur) var(--ease-out);
}
.step:hover .step__num { -webkit-text-stroke-color: var(--accent); }
.step p { color: var(--fg-muted); font-size: 0.9875rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-8); }
@media (min-width: 1000px) { .faq { grid-template-columns: 1fr 1.6fr; } }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  min-height: 72px;
  padding: var(--space-4) 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--dur) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary svg { flex: none; width: 22px; height: 22px; transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq__answer { padding: 0 0 var(--space-6); color: var(--fg-muted); max-width: 68ch; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 112px) clamp(24px, 6vw, 96px);
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  gap: var(--space-6);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 120% at 100% 0%, rgb(255 255 255 / 0.28), transparent 60%),
    repeating-linear-gradient(90deg, rgb(0 0 0 / 0.06) 0 1px, transparent 1px 64px);
}
.cta-band .h2 { max-width: 16ch; }
.cta-band p { font-size: var(--fs-lg); max-width: 50ch; color: rgb(10 10 10 / 0.8); }
.cta-band .btn--dark { --btn-bg: var(--accent-ink); --btn-fg: var(--fg); --btn-line: var(--accent-ink); }
.cta-band .btn--dark:hover { --btn-bg: #222; }
.cta-band .btn--outline-dark { --btn-fg: var(--accent-ink); --btn-line: rgb(10 10 10 / 0.4); }
.cta-band .btn--outline-dark:hover { --btn-bg: rgb(10 10 10 / 0.08); --btn-line: var(--accent-ink); }
.cta-band :focus-visible { outline-color: var(--accent-ink); }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: var(--space-7) var(--space-5); }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.member { display: grid; gap: var(--space-4); align-content: start; }
.member__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 30% 10%, hsl(var(--h, 14) 85% 50% / 0.32), transparent 65%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  display: grid;
  place-items: center;
}
.member__initials {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(4rem, 3rem + 4vw, 6.5rem);
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(255 255 255 / 0.5);
  letter-spacing: -0.02em;
}
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35); transition: filter var(--dur) var(--ease-out), transform 1.1s var(--ease-out); }
.member:hover .member__photo img { filter: grayscale(0); transform: scale(1.03); }
.member__role {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(5 5 5 / 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 0.14);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.member__name { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: 1.375rem; text-transform: uppercase; line-height: 1.1; }
.member p { color: var(--fg-muted); font-size: 0.9875rem; }
.member__social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--fs-sm); color: var(--fg-muted); transition: color var(--dur); }
.member__social:hover { color: var(--accent); }
.member__social svg { width: 18px; height: 18px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line); }
.timeline li {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) { .timeline li { grid-template-columns: 220px 1fr 1.4fr; gap: var(--space-7); align-items: baseline; } }
.timeline__year { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 2.25rem; line-height: 1; color: var(--accent); }
.timeline h3 { font-size: 1.1875rem; font-weight: 600; }
.timeline p { color: var(--fg-muted); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: var(--space-8); }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 1.4fr 1fr; gap: var(--space-9); align-items: start; } }

.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 600; }
.field .req { color: var(--accent); margin-left: 2px; }
.field__hint { font-size: 0.8125rem; color: var(--fg-dim); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
.input::placeholder { color: #6f6f6c; }
.input:hover { border-color: rgb(255 255 255 / 0.4); }
.input:focus { outline: none; border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { min-height: 160px; resize: vertical; line-height: 1.6; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a6a6a1' stroke-width='1.6' viewBox='0 0 24 24'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: 0.8125rem; color: var(--danger); display: flex; gap: 6px; align-items: center; }
.field__error:empty { display: none; }
.field__error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: var(--bg); font-size: 0.6875rem; font-weight: 700; }

.choice-group { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice-group legend { margin-bottom: 10px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.choice span:hover { border-color: var(--fg); color: var(--fg); }
.choice input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); justify-content: space-between; }
.form__note { font-size: 0.8125rem; color: var(--fg-dim); max-width: 42ch; }
.form-status {
  display: none;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
}
.form-status.is-visible { display: flex; }
.form-status svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.form-status--success { border-color: rgb(61 220 132 / 0.5); }
.form-status--success svg { color: var(--success); }
.form-status--error { border-color: rgb(255 122 107 / 0.5); }
.form-status--error svg { color: var(--danger); }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn__icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.channels { display: grid; gap: var(--space-3); }
.channel {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur);
}
a.channel:hover { border-color: var(--accent); background: var(--surface-2); }
.channel__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.channel__icon svg { width: 22px; height: 22px; }
.channel__label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
.channel__value { font-weight: 600; overflow-wrap: anywhere; }
.channel__go { width: 20px; height: 20px; color: var(--fg-dim); transition: transform var(--dur) var(--ease-out), color var(--dur); }
a.channel:hover .channel__go { color: var(--accent); transform: translate(2px, -2px); }

.coords {
  margin-top: var(--space-5);
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: var(--space-6);
  min-height: 220px;
  display: grid;
  align-content: end;
  gap: 6px;
  background:
    radial-gradient(circle at 86% 28%, rgb(255 77 31 / 0.35) 0 6px, rgb(255 77 31 / 0.12) 7px 40px, transparent 41px),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--surface);
}
.coords strong { font-size: 1.0625rem; }
.coords span { color: var(--fg-muted); font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-footer { overflow: hidden; border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 112px); padding-bottom: var(--space-6); }
.footer-grid { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-title { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: var(--space-4); }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-list a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--fg-muted); transition: color var(--dur); }
.footer-list a:hover { color: var(--fg); }
.footer-list svg { width: 16px; height: 16px; }
.footer-about p { color: var(--fg-muted); max-width: 36ch; margin-top: var(--space-4); font-size: 0.9875rem; }
.footer-big {
  margin-top: clamp(56px, 8vw, 112px);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: min(10.4vw, 10rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.18);
  white-space: nowrap;
  text-align: center;
  user-select: none;
}
.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.8125rem;
  color: var(--fg-dim);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--fg-muted); }
.to-top svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.to-top:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(100% - 32px, 1280px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  overflow: visible;
}
.lightbox::backdrop { background: rgb(0 0 0 / 0.9); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lbIn 380ms var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(0.96); } }
.lightbox__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  margin-inline: auto;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.lightbox video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.lightbox__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: var(--fs-lg); text-transform: uppercase; }
.lightbox__close { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; transition: background-color var(--dur), border-color var(--dur); }
.lightbox__close:hover { background: var(--fg); color: var(--bg); }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__error {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  text-align: center;
  background: var(--surface);
}
.lightbox__error.is-visible { display: grid; }
.lightbox__error p { color: var(--fg-muted); max-width: 44ch; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; position: relative; overflow: hidden; }
.notfound .display { font-size: clamp(6rem, 3rem + 18vw, 18rem); color: transparent; -webkit-text-stroke: 1.5px var(--fg); }

/* ---------- Reveal motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 150ms); }
.js .is-loaded .hero__title .line > span { transform: none; }

/* ---------- RTL (Persian) ---------- */
[dir="rtl"] .skip-link { left: auto; right: 12px; }
[dir="rtl"] .hud,
[dir="rtl"] .marquee__track { direction: ltr; }
[dir="rtl"] .marquee__track span { direction: rtl; }
[dir="rtl"] .hero::before {
  background:
    linear-gradient(180deg, rgb(5 5 5 / 0.55) 0%, rgb(5 5 5 / 0.15) 35%, rgb(5 5 5 / 0.65) 72%, var(--bg) 100%),
    linear-gradient(270deg, rgb(5 5 5 / 0.7) 0%, transparent 60%);
}
[dir="rtl"] .nav__link::after,
[dir="rtl"] .service::before { transform-origin: right; }
[dir="rtl"] .work-card__play { left: auto; right: 18px; padding: 8px 8px 8px 16px; }

[dir="rtl"] .work-card__tag { left: auto; right: 16px; }
[dir="rtl"] .member__role { left: auto; right: 14px; }
[dir="rtl"] select.input { background-position: left 16px center; padding-right: 16px; padding-left: 44px; }
[dir="rtl"] .btn__icon,
[dir="rtl"] .link-arrow svg,
[dir="rtl"] .channel__go { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn__icon { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .link-arrow:hover svg,
[dir="rtl"] a.channel:hover .channel__go { transform: scaleX(-1) translate(2px, -2px); }
[dir="rtl"] .btn:hover svg:not(.btn__icon) { transform: none; }
[dir="rtl"] [dir="ltr"] { unicode-bidi: isolate; }

html[lang="fa"] {
  --font-body: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --font-display: "Archivo", "Vazirmatn", Tahoma, sans-serif;
  --font-mono: "Vazirmatn", Tahoma, sans-serif;
}
html[lang="fa"] .hud,
html[lang="fa"] .brand__name span,
html[lang="fa"] .scroll-cue { font-family: "JetBrains Mono", ui-monospace, monospace; }
html[lang="fa"] .hero .display { font-size: min(16vw, 9rem); }
html[lang="fa"] body { line-height: 1.9; }
html[lang="fa"] body *:not(.hud, .hud *) { letter-spacing: 0; }
html[lang="fa"] .display { line-height: 1.25; font-weight: 900; }
html[lang="fa"] .h2 { line-height: 1.35; font-weight: 900; }
html[lang="fa"] .h3 { line-height: 1.6; }
html[lang="fa"] .hero__title .line { padding-bottom: 0.12em; }
html[lang="fa"] .eyebrow { font-size: 0.875rem; font-weight: 500; }
html[lang="fa"] .lead { line-height: 1.9; }
html[lang="fa"] .work-card__title,
html[lang="fa"] .member__name,
html[lang="fa"] .mobile-menu__link { line-height: 1.5; }
html[lang="fa"] .mobile-menu__link { font-weight: 900; }
html[lang="fa"] .outline-text,
html[lang="fa"] .poster__word {
  -webkit-text-stroke: 0;
  color: transparent;
  background: linear-gradient(100deg, var(--fg) 10%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
}
html[lang="fa"] .poster__word { line-height: 1.35; font-weight: 900; padding-bottom: 0.1em; }
html[lang="fa"] .work-card__play,
html[lang="fa"] .work-card__tag,
html[lang="fa"] .member__role,
html[lang="fa"] .channel__label,
html[lang="fa"] .rig__class,
html[lang="fa"] .footer-title,
html[lang="fa"] .poster__sub,
html[lang="fa"] .breadcrumb ol,
html[lang="fa"] .specs dt { font-size: 0.8125rem; }
html[lang="fa"] .faq summary { font-size: 1.125rem; line-height: 1.7; }

/* ---------- Utilities ---------- */
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.center { text-align: center; }
.flex-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-5); }
.no-scroll { overflow: hidden; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 12px; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .hero__media img { transform: none; }
}

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

@media print {
  .site-header, .mobile-menu, .hud, .scroll-cue, body::after, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
