/*
  base.css · shared layer for the four stobox.io homepage concepts (19.11.2026).
  Where it sits: дизайн/сайт-концепты-2026-11-19/, read by a-*.html … d-*.html and index.html.
  What it holds: the RP client-deck tokens (colours, Avenir Next + Geist Mono),
  the header and footer every concept shares, buttons, and the motion rules.
  Why one file: the concepts must differ in layout and idea, not in brand basics,
  so Gene compares directions and not four slightly different blues.
  Motion follows Emil Kowalski's rules: transform and opacity only, strong
  ease-out, under 300 ms for UI, nothing for keyboard actions, reduced motion respected.
*/
/* Fonts (V18 final QA, 22.11.2026, item 23). Geist Mono comes as a 13 KB subset (Latin, digits and the
   site's signs · – → ©), preloaded by shell(); any other character pulls the full file through the second
   face's unicode-range. Avenir Next is a system font of Apple devices and is not bought (decision of
   22.11.2026), so Windows and Android fall back to Arial, scaled by size-adjust so the approved line lengths
   hold: measured in Chrome, Arial runs 97.5% of Avenir Next's width at 400 and 102% of it at 600 (bold). */
@font-face{font-family:"Geist Mono";src:url(assets/geist-mono-latin.woff2) format("woff2");font-weight:100 900;font-display:swap;
  unicode-range:U+0020-007E,U+00A0,U+00A3,U+00A9,U+00B7,U+00D7,U+2013,U+2019,U+201C,U+201D,U+2022,U+2026,U+20AC,U+2190-2193,U+2197}
@font-face{font-family:"Geist Mono";src:url(assets/geist-mono.woff2) format("woff2");font-weight:100 900;font-display:swap;
  unicode-range:U+0000-001F,U+007F-00A2,U+00A4-00A8,U+00AA-00B6,U+00B8-00D6,U+00D8-2012,U+2014-2018,U+201A-201B,U+201E-2021,U+2023-2025,U+2027-20AB,U+20AD-218F,U+2194-2196,U+2198-FFFF}
@font-face{font-family:"Geist Mono Fallback";src:local("Menlo"),local("Consolas"),local("Courier New");size-adjust:100%}
@font-face{font-family:"Avenir Fallback";src:local("Arial"),local("ArialMT"),local("Roboto");font-weight:100 550;size-adjust:102.5%}
@font-face{font-family:"Avenir Fallback";src:local("Arial Bold"),local("Arial-BoldMT"),local("Roboto Bold");font-weight:551 900;size-adjust:97.8%}
:root{
  /* Deck RP palette, values copied from 01-cover-a.html so the site and the deck match */
  --navy:#0a2b6d; --ink:#0a2150; --blue:#0f4aa6; --prod:#1f63d6; --sky:#8fb4ea; --acc-dark:#6fb0f5;
  --ice:#e4edfa; --sheet:#f5f8fc; --page:#eef2f8; --hair:#d6dfed; --body:#3b4a68; --mute:#566683; --pencil:#5d6673;
  --sans:"Avenir Next","Avenir","Avenir Fallback",Arial,sans-serif;
  --mono:"Geist Mono","Geist Mono Fallback",SFMono-Regular,Menlo,monospace;
  --ease-out:cubic-bezier(.23,1,.32,1); --ease-io:cubic-bezier(.77,0,.175,1);
  --gut:clamp(16px,4vw,56px); --max:1320px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{font-family:var(--sans);color:var(--ink);background:var(--sheet);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden}
img,svg{display:block;max-width:100%}
img{height:auto} /* an img with width/height attributes keeps its ratio when CSS narrows it (item 24) */
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gut)}
.mono{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.acc{color:var(--prod)}
.on-navy .acc{color:var(--acc-dark)}

/* Header: one line, wordmark left, five links, two actions. Same in every concept. */
.hd{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--sheet) 88%,transparent);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid transparent;transition:border-color .2s ease}
.hd.scrolled{border-bottom-color:var(--hair)}
.hd .wrap{display:flex;align-items:center;gap:32px;height:68px}
.hd .logo img{height:22px;width:auto}
.hd nav{display:flex;gap:26px;font-size:15px;font-weight:500;color:var(--body)}
.hd nav a{transition:color .15s ease}
.hd .act{margin-left:auto;display:flex;gap:10px}
.hd.dark{background:color-mix(in srgb,var(--navy) 86%,transparent);color:#fff}
.hd.dark nav{color:#c7d6f0}
@media (hover:hover) and (pointer:fine){.hd nav a:hover{color:var(--prod)}.hd.dark nav a:hover{color:#fff}}
@media (max-width:900px){.hd nav{display:none}.hd .act .ghost{display:none}}

/* Buttons: pill like the deck's stobox.io chip, press feedback scale(.97) */
.btn{display:inline-flex;align-items:center;gap:10px;height:46px;padding:0 22px;border-radius:999px;font:600 15px/1 var(--sans);border:1px solid transparent;transition:transform .16s var(--ease-out),background-color .2s ease,border-color .2s ease;white-space:nowrap}
.btn:active{transform:scale(.97)}
.btn.solid{background:var(--navy);color:#fff}
.btn.blue{background:var(--prod);color:#fff}
.btn.ghost{border-color:var(--hair);color:var(--ink);background:#fff}
.btn.line{border-color:rgba(255,255,255,.35);color:#fff}
.btn.white{background:#fff;color:var(--navy)}
.btn .ar{width:22px;height:1px;background:currentColor;position:relative;transition:transform .2s var(--ease-out)}
.btn .ar:after{content:"";position:absolute;right:0;top:-3px;width:7px;height:7px;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg)}
@media (hover:hover) and (pointer:fine){.btn.solid:hover{background:var(--blue)}.btn.ghost:hover{border-color:var(--sky)}.btn:hover .ar{transform:translateX(3px)}}
.btn:focus-visible,a:focus-visible{outline:2px solid var(--prod);outline-offset:3px}
.hd .btn{height:40px;padding:0 18px;font-size:14px}

/* Chip like "• Why proof" on the deck */
.chip{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 14px;border-radius:999px;background:var(--navy);color:#fff;font:600 14px/1 var(--sans)}
.chip:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--acc-dark)}

/* Isometric dashed grid behind drawings, the same texture the deck slides carry */
.iso{background-image:
  repeating-linear-gradient(30deg,transparent 0 27px,rgba(31,99,214,.07) 27px 28px),
  repeating-linear-gradient(150deg,transparent 0 27px,rgba(31,99,214,.07) 27px 28px)}

/* Reveal on scroll: opacity + 12 px rise, 60 ms stagger, runs once */
.js .rv{opacity:0;transform:translateY(12px);transition:opacity .6s var(--ease-out),transform .6s var(--ease-out);transition-delay:calc(var(--i,0) * 60ms)}
.js .rv.in{opacity:1;transform:none}
/* Reveal waits for the class "js" that shell() sets in the head: without a script nothing stays hidden (item 22). */
@media (prefers-reduced-motion:reduce){.js .rv{transform:none;transition:opacity .3s ease}html{scroll-behavior:auto}}

/* Footer shared by all concepts */
.ft{background:var(--ink);color:#c7d6f0;padding:64px 0 40px;font-size:14px}
.ft .cols{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:32px}
.ft b{display:block;color:#fff;font-weight:600;margin-bottom:14px}
.ft a{display:block;padding:4px 0;color:#9fb3d6}
.ft .base{margin-top:48px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#7f93b8}
@media (max-width:900px){.ft .cols{grid-template-columns:1fr 1fr}}

/* Concept switcher pinned bottom-left: lets Gene jump between directions */
.cx{position:fixed;left:16px;bottom:16px;z-index:50;display:flex;gap:4px;padding:4px;background:#fff;border:1px solid var(--hair);border-radius:999px;box-shadow:0 8px 24px rgba(10,33,80,.12);font:500 13px/1 var(--sans)}
.cx a{padding:8px 12px;border-radius:999px;color:var(--body);transition:background-color .15s ease}
.cx a[aria-current]{background:var(--navy);color:#fff}
