/* ==========================================================================
   BatMedia web brand: tokens and shared components
   Used by index.html and BatMedia Brand Guidelines.html. Edit here, not in the pages.
   ========================================================================== */

/* Self-hosted Google fonts (SIL Open Font License): League Spartan, Instrument Serif, IBM Plex Mono. Latin subset. */
@font-face { font-family: "League Spartan"; src: url("fonts/league-spartan-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sauce One"; src: url("fonts/open-sauce-one-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sauce One"; src: url("fonts/open-sauce-one-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sauce One"; src: url("fonts/open-sauce-one-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Color: monochrome only. Brightness carries emphasis. */
  --black: #000000;
  --surface: #0A0A0B;
  --surface-2: #111113;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.07);
  --glass-line: rgba(255, 255, 255, 0.10);
  --glass-hi: rgba(255, 255, 255, 0.18);
  --white: #FFFFFF;
  --grey-1: #C7C7CC;
  --grey-2: #8E8E93;
  --grey-3: #48484A;
  --grid: rgba(255, 255, 255, 0.04);
  --glow: rgba(255, 255, 255, 0.12);
  --chrome: linear-gradient(180deg, #FFFFFF 0%, #ECECEF 35%, #B9B9BF 62%, #6E6E73 100%);
  --chart-1: #FFFFFF;
  --chart-2: #B4B4BA;
  --chart-3: #85858C;
  --chart-4: #5C5C62;
  --chart-5: #3A3A3F;
  --paper: #EDECE8;
  --paper-ink: #2A2A2C;

  /* Type */
  --font-mark: "League Spartan", "Arial Black", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Open Sauce One", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shape and space */
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 26px;
  --max: 1180px;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-y: auto; }
body { margin: 0; background: var(--black); color: var(--grey-1); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--white); font-family: var(--font-sans); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); position: relative; z-index: 1; }

/* ---------- Type styles ---------- */
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; }
.statement { font-family: var(--font-serif); font-weight: 400; color: var(--white); font-size: clamp(2.4rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
.statement em { font-style: italic; color: var(--grey-1); }
.h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); }
.h2 { font-size: clamp(1.8rem, 4.2vw, 3rem); }
.h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.02em; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--grey-1); max-width: 60ch; }
.small { font-size: 0.88rem; color: var(--grey-2); }
.label { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-2); }

/* Chrome fill for big numbers and the wordmark */
.chrome { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.16)); }
.bignum { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; font-size: clamp(3.4rem, 11vw, 8.6rem); }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-grid; grid-template-columns: max-content; justify-items: start; text-decoration: none; color: var(--white); line-height: 1; }
.wordmark .w { font-family: var(--font-mark); font-weight: 700; letter-spacing: -0.055em; line-height: 0.9; padding-right: 0.04em; }
.wordmark .sw { display: block; width: 0; min-width: 106%; height: 0.2em; margin-top: 0.08em; }
.wordmark .sw.long { min-width: 114%; }
.wordmark .tag { justify-self: end; font-family: var(--font-sans); font-size: 0.17em; letter-spacing: 0; color: var(--grey-1); margin-top: 0.35em; }
.wordmark.chrome-mark .w { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(255,255,255,.18)); }

/* ---------- Surfaces ---------- */
.glass {
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 20px 50px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.grid-bg { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 64px 64px; background-position: center; }
.spotlight { position: relative; }
.spotlight::before { content: ""; position: absolute; inset: -10% 0 auto; height: 80%; background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 70%); pointer-events: none; z-index: 0; }
.hairline { height: 1px; border: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); margin: 0; }

/* ---------- Buttons and chips ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; text-decoration: none;
  background: linear-gradient(180deg, #FFFFFF, #DADADF); color: #000;
  font-family: var(--font-sans); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em;
  box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 8px 30px rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.08);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.9) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 12px 40px rgba(255,255,255,.28); }
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }
.btn.lg { min-height: 62px; padding: 0 34px; font-size: 1.12rem; }
.btn.ghost { background: var(--glass); color: var(--white); box-shadow: inset 0 0 0 1px var(--glass-line); }
.btn.ghost::after { display: none; }

.chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-hi); color: var(--grey-1); font-size: 0.92rem; }
.chip .ic { width: 18px; height: 18px; color: var(--white); opacity: .85; flex: none; }

.slots { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-hi); font-size: 0.92rem; color: var(--grey-1); }
.slots .dots { display: inline-flex; gap: 6px; }
.slots .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--grey-3); display: block; }
.slots .dots i.on { background: var(--white); box-shadow: 0 0 10px rgba(255,255,255,.8); }
.slots .left { color: var(--white); font-weight: 700; }
@media (max-width: 520px) { .slots { border-radius: 16px; justify-content: center; text-align: center; } }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-orb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.85); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.16), rgba(255,255,255,.03) 70%); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-hi); flex: none; }
.icon-orb .icon { width: 20px; height: 20px; }

/* ---------- Orbs and rings ---------- */
.orb {
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.42) 18%, rgba(255,255,255,.10) 52%, rgba(255,255,255,.04) 72%);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 0 24px rgba(255,255,255,.22), inset 0 0 18px rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.orb.dim { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55) 0%, rgba(255,255,255,.16) 22%, rgba(255,255,255,.04) 60%); border-color: rgba(255,255,255,.25); box-shadow: 0 0 14px rgba(255,255,255,.10), inset 0 0 12px rgba(255,255,255,.10); }
.ring { border-radius: 50%; border: 1.5px solid rgba(255,255,255,.75); box-shadow: 0 0 16px rgba(255,255,255,.25), inset 0 0 16px rgba(255,255,255,.12); }
.ring.faint { border-color: rgba(255,255,255,.12); box-shadow: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Pictograms (assets/pictos.js) ---------- */
/* Solid white figures with a soft glow. --picto-cut must match the surface behind the figure. */
.picto { width: 120px; height: 120px; display: block; color: var(--white); --picto-cut: var(--black);
  filter: url(#picto-glow); overflow: visible; }
.picto.sm { width: 72px; height: 72px; }
.picto.lg { width: 180px; height: 180px; }
.picto.xl { width: 240px; height: 240px; }
.glass .picto { --picto-cut: #0d0d0e; }
