/* ATLIS FPV v2 - shared design system (docs/WEBSITE_V2_CONCEPT.md section 4).
   Black and white is the frame; colour comes only from the media. Page-specific CSS goes in <page>.css. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-700-normal.woff2) format("woff2"); }

:root {
  --black: #000; --white: #fff;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(16px, 4vw, 48px);             /* side gutter: 16 px on phones */
  --gap: 24px;
  --max: 1440px;
  --header-h: 56px;
  --sec: clamp(88px, 13vw, 184px);           /* section padding */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 104px; --s8: 168px;
  --ease: cubic-bezier(.2, .7, 0, 1);
  --t: 200ms;
  /* surface tokens (overridden by .s-dark / .s-light) */
  --bg: var(--white); --fg: var(--black); --fg-2: #555; --line: #e3e3e3; --line-strong: #000;
}
.s-dark  { --bg: var(--black); --fg: var(--white); --fg-2: #9a9a9a; --line: #262626; --line-strong: #fff; background: var(--bg); color: var(--fg); }
.s-light { --bg: var(--white); --fg: var(--black); --fg-2: #555;    --line: #e3e3e3; --line-strong: #000; background: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--black); }
body { margin: 0; background: var(--white); color: var(--black); font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "kern"; }
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--fg, #000); color: var(--bg, #fff); }
:focus-visible { outline: 2px solid var(--fg, #000); outline-offset: 3px; }
.s-dark :focus-visible { outline-color: #fff; }

.visually-hidden { 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 { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 12px 16px; background: #fff; color: #000; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.skip:focus { top: 8px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s5); }
.section { padding-top: var(--sec); padding-bottom: var(--sec); }
.section--tight { padding-top: var(--s7); padding-bottom: var(--s7); }
.section--flush { padding-top: 0; padding-bottom: 0; }
/* column helpers: .c-<start>-<end> on desktop, full width below 760 px */
.c-1-7 { grid-column: 1 / 7; } .c-1-8 { grid-column: 1 / 8; } .c-1-9 { grid-column: 1 / 9; } .c-1-13 { grid-column: 1 / 13; }
.c-1-5 { grid-column: 1 / 5; } .c-5-13 { grid-column: 5 / 13; } .c-7-13 { grid-column: 7 / 13; } .c-8-13 { grid-column: 8 / 13; }
.c-9-13 { grid-column: 9 / 13; } .c-2-12 { grid-column: 2 / 12; } .c-1-4 { grid-column: 1 / 4; } .c-4-13 { grid-column: 4 / 13; }
.c-1-6 { grid-column: 1 / 6; } .c-6-13 { grid-column: 6 / 13; } .c-3-11 { grid-column: 3 / 11; }
@media (max-width: 759px) {
  :root { --gap: 16px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--s5); }
  .grid > [class*="c-"] { grid-column: 1 / -1; }
}
.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s5); }

/* ---------- section rule: "02 — THE DRONE ........ HOME" ---------- */
.rule { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline;
  border-top: 1px solid var(--line-strong); padding-top: var(--s2); margin-bottom: var(--s6);
  font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--fg); }
.rule span:last-child { color: var(--fg-2); text-align: right; }

/* ---------- type ---------- */
.kicker, .label { font: 500 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .09em; font-variant-numeric: tabular-nums; }
.kicker { color: var(--fg-2); display: block; margin-bottom: var(--s4); }
.display { font: 600 clamp(48px, 9vw, 148px)/.92 var(--sans); letter-spacing: -.035em; }
.h2 { font: 600 clamp(34px, 5vw, 76px)/1 var(--sans); letter-spacing: -.025em; }
.h3 { font: 600 clamp(22px, 2vw, 28px)/1.15 var(--sans); letter-spacing: -.01em; }
.lead { font: 400 clamp(19px, 1.6vw, 24px)/1.45 var(--sans); max-width: 34em; }
.body { max-width: 62ch; }
.body p + p { margin-top: 1em; }
.muted { color: var(--fg-2); }
.readout { font: 500 clamp(40px, 6vw, 88px)/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.readout small { font-size: .32em; letter-spacing: .09em; margin-left: .4em; color: var(--fg-2); }
.balance { text-wrap: balance; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 22px;
  font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .09em; text-decoration: none; cursor: pointer;
  border: 1px solid var(--fg); background: transparent; color: var(--fg); border-radius: 0;
  transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.btn:hover { background: var(--fg); color: var(--bg); text-decoration: none; }
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: transparent; color: var(--fg); }
.btn--small { min-height: 36px; padding: 10px 14px; font-size: 12px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { font: 500 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .09em; text-decoration: none; }
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { text-decoration: underline; }

/* ---------- media ---------- */
.media { position: relative; overflow: hidden; background: #111; }
.media > img, .media > video, .media > picture, .media > picture > img, .media > canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r-16x9 { aspect-ratio: 16 / 9; } .r-4x5 { aspect-ratio: 4 / 5; } .r-1x1 { aspect-ratio: 1; } .r-21x9 { aspect-ratio: 21 / 9; } .r-3x2 { aspect-ratio: 3 / 2; } .r-4x3 { aspect-ratio: 4 / 3; }
.bleed { width: 100%; }
.caption { margin-top: var(--s2); font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--fg-2); }
.caption b { color: var(--fg); font-weight: 500; margin-right: .6em; }
.bw { filter: grayscale(1); }   /* people and hardware photos only, never the world */

/* film = poster + muted looping video + pause button (site.js) */
.film { position: relative; overflow: hidden; background: #000; }
.film__poster, .film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__poster img { width: 100%; height: 100%; object-fit: cover; }
.film__video { opacity: 0; transition: opacity 400ms var(--ease); }
.film.is-playing .film__video { opacity: 1; }
.film__toggle { position: absolute; right: max(var(--pad), env(safe-area-inset-right)); bottom: var(--s3); z-index: 3;
  min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(255,255,255,.55); background: rgba(0,0,0,.35);
  color: #fff; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .09em; cursor: pointer; }
.film__toggle:hover { background: #fff; color: #000; }
html:not(.js) .film__toggle { display: none; }

/* ---------- spec sheet ---------- */
.spec { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; border-top: 1px solid var(--line-strong); }
.spec dt, .spec dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 500 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--fg-2); padding-right: var(--s3); }
.spec dd { font: 400 16px/1.5 var(--sans); }

/* ---------- cards ---------- */
.card { display: block; text-decoration: none; }
.card:hover { text-decoration: none; }
.card .media img { transition: transform 600ms var(--ease); }
.card:hover .media img { transform: scale(1.03); }
.card__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line-strong); }
.card__title { font: 600 clamp(24px, 2.4vw, 34px)/1.1 var(--sans); letter-spacing: -.015em; margin-top: var(--s2); }
.tag { display: inline-block; padding: 3px 7px; border: 1px solid currentColor; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }

/* ---------- pinned scroll sections (modules set progress) ---------- */
.pin { position: relative; height: var(--pin-h, 260vh); }
.pin__stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); overflow: hidden; }
html:not(.js) .pin, .reduced .pin, .no-gl .pin, .pin.is-flat, .pin.module-failed { height: auto; }
html:not(.js) .pin__stage, .reduced .pin__stage, .no-gl .pin__stage, .is-flat .pin__stage, .module-failed .pin__stage { position: relative; top: 0; height: auto; min-height: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: #000; color: #fff; border-bottom: 1px solid #1c1c1c; }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: var(--s4); }
.wordmark { display: inline-flex; align-items: baseline; gap: .55em; text-decoration: none; color: #fff; font: 700 15px/1 var(--mono); letter-spacing: .22em; }
.wordmark span { font-weight: 500; color: #9a9a9a; letter-spacing: .14em; }
.wordmark:hover { text-decoration: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--s5); }
.site-nav .nav-link { color: #fff; text-decoration: none; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .09em; padding: 10px 0; }
.site-nav .nav-link:hover, .site-nav .nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: .5em; }
.site-header .btn { --fg: #fff; --bg: #000; }
.menu-btn { display: none; min-height: 40px; padding: 0 12px; background: none; border: 1px solid #444; color: #fff; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .09em; cursor: pointer; }
.site-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: #000; color: #fff; padding: var(--s5) var(--pad); overflow-y: auto; }
.site-menu[hidden] { display: none; }
.site-menu a { display: block; padding: 14px 0; border-bottom: 1px solid #262626; color: #fff; text-decoration: none; font: 600 34px/1.1 var(--sans); letter-spacing: -.02em; }
.site-menu .btn { margin-top: var(--s5); width: 100%; font-size: 13px; }
@media (max-width: 859px) {
  .site-nav .nav-link { display: none; }
  .site-nav { gap: 10px; }
  .menu-btn { display: inline-flex; align-items: center; }
  .site-header .btn { min-height: 40px; padding: 0 14px; font-size: 12px; }
}
@media (min-width: 860px) { .site-menu { display: none !important; } }
.menu-open { overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: #000; color: #fff; padding: var(--s7) 0 var(--s5); border-top: 1px solid #1c1c1c; }
.site-footer .grid { row-gap: var(--s5); }
.site-footer h2 { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: #9a9a9a; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer a, .site-footer .linkbtn { color: #fff; text-decoration: none; font-size: 15px; }
.site-footer a:hover, .site-footer .linkbtn:hover { text-decoration: underline; }
.footer-claim { font: 600 clamp(28px, 3.4vw, 44px)/1.05 var(--sans); letter-spacing: -.02em; margin-top: var(--s4); }
.footer-base { margin-top: var(--s7); padding-top: var(--s3); border-top: 1px solid #262626; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font: 500 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: #9a9a9a; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.f-brand { grid-column: 1 / 6; } .f-col { grid-column: span 2; }
@media (max-width: 759px) { .f-brand { grid-column: 1 / -1; } .f-col { grid-column: span 2 !important; } }

/* ---------- consent banner (logic in consent.js, unchanged) ---------- */
#consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto;
  background: #fff; color: #000; border: 1px solid #000; padding: 18px 20px; font-size: 15px; line-height: 1.5; }
#consent[hidden] { display: none; }
#consent p { margin: 0 0 14px; }
#consent .btns { display: flex; gap: 10px; flex-wrap: wrap; }
#consent button { flex: 1 1 140px; min-height: 44px; padding: .7em 1em; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .09em;
  cursor: pointer; border: 1px solid #000; background: #fff; color: #000; }
#consent button:hover { background: #000; color: #fff; }   /* accept and reject equally prominent */

/* ---------- legal / long text pages ---------- */
.prose { max-width: 70ch; }
.prose h1 { font: 600 clamp(36px, 5vw, 64px)/1 var(--sans); letter-spacing: -.025em; margin-bottom: var(--s5); }
.prose h2 { font: 600 24px/1.2 var(--sans); margin: var(--s5) 0 var(--s2); }
.prose h3 { font: 600 19px/1.3 var(--sans); margin: var(--s4) 0 var(--s2); }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
}
