/* =============================================================================
   Oglasna-Deska.Cloud — stylesheet of the public site (landing + information pages)
   ADR-004 (plain CSS, no framework) · ADR-006 (identity: consistent with CGP-07 of
   Oglasna-Deska.SI, not equal — same ink, frame and pin; cobalt instead of cinnabar).
   Lines instead of shadows; one accent; light and dark scheme (system or explicit choice).
   Motion: loops run only with JavaScript (so the pause control exists) and never with
   prefers-reduced-motion. Baseline: browsers released since 2025-01-01.
   ============================================================================= */

@layer reset, tokens, base, layout, components, pages, motion, print;

/* ---------------------------------------------------------------- fonts ----- */
/* Subsets for sl, hr, sr-Latn, de, en, it, hu (files/brand, ADR-006). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-4.001-od.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/playfair-display-1.203-700-od.woff2) format('woff2'); }

/* ---------------------------------------------------------------- reset ----- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; hanging-punctuation: first last; }
  body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
  ul[class], ol[class], nav ul, nav ol { list-style: none; padding: 0; margin: 0; }
  img, svg { display: block; max-width: 100%; }
  button, input, textarea, select { font: inherit; color: inherit; }
  table { border-collapse: collapse; }
  [hidden] { display: none !important; }
}

/* ---------------------------------------------------------------- tokens ---- */
@layer tokens {
  :root {
    color-scheme: light;
    --ink: #1A1714;          /* shared with .SI */
    --muted: #4B4F56;        /* 7.6:1 on paper */
    --soft: #6A6E75;         /* meta text, 4.7:1 on paper, 5.1:1 on surface */
    --paper: #F7F6F3;
    --surface: #FFFFFF;
    --surface-2: #EFEEEA;
    --line: #DAD8D1;
    --line-strong: #1A1714;
    --cobalt: #0075C4;       /* brand accent (logo, large marks) */
    --cobalt-ink: #005A9C;   /* text and buttons, 6.6:1 on paper, 7.1:1 with white */
    --cobalt-soft: #E3EEF8;
    --on-cobalt: #FFFFFF;
    --cinnabar: #C1440E;     /* only for Oglasna-Deska.SI references */
    --ok: #1C7A47;  --ok-soft: #E2F2E8;
    --wait: #8A5A00; --wait-soft: #FBEFD6;
    --plan: #5B4BB0; --plan-soft: #ECE8FA;
    --focus: #005A9C;
    --header-bg: color-mix(in oklab, var(--paper) 86%, transparent);
    --band: #1A1714; --on-band: #F2EFE8; --band-muted: #B9B4AA;
    --dots: color-mix(in oklab, var(--ink) 11%, transparent);

    --app-mail: #0075C4; --app-calendar: #0E7C72; --app-contacts: #6247B5;
    --app-notes: #A86A00; --app-ink: #1A1714; --app-market: #C1440E;
    --app-photos: #B3306A; --app-drive: #3B6385;

    --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-pill: 999px;
    --gutter: clamp(16px, 4vw, 32px);
    --max: 1200px;
    --text-max: 72ch;
    --ease: cubic-bezier(.2, .7, .2, 1);
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #ECE9E2; --muted: #BDB9B0; --soft: #9D998F;
    --paper: #111316; --surface: #181B20; --surface-2: #20242A;
    --line: #30343B; --line-strong: #ECE9E2;
    --cobalt: #4AA3E6; --cobalt-ink: #7CBDF0; --cobalt-soft: #16283A; --on-cobalt: #0B1622;
    --ok: #6BD39A; --ok-soft: #133022; --wait: #F2C063; --wait-soft: #33270E; --plan: #B4A7F5; --plan-soft: #251F42;
    --focus: #7CBDF0;
    --band: #0B0D10; --on-band: #ECE9E2; --band-muted: #9D998F;
    --app-mail: #2E8FDB; --app-calendar: #1E9C8F; --app-contacts: #7C63D1; --app-notes: #C08A1E; --app-ink: #3A3F47; --app-market: #D8561D;
    --app-photos: #D1467F; --app-drive: #4F82AC;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --ink: #ECE9E2; --muted: #BDB9B0; --soft: #9D998F;
      --paper: #111316; --surface: #181B20; --surface-2: #20242A;
      --line: #30343B; --line-strong: #ECE9E2;
      --cobalt: #4AA3E6; --cobalt-ink: #7CBDF0; --cobalt-soft: #16283A; --on-cobalt: #0B1622;
      --ok: #6BD39A; --ok-soft: #133022; --wait: #F2C063; --wait-soft: #33270E; --plan: #B4A7F5; --plan-soft: #251F42;
      --focus: #7CBDF0;
      --band: #0B0D10; --on-band: #ECE9E2; --band-muted: #9D998F;
      --app-mail: #2E8FDB; --app-calendar: #1E9C8F; --app-contacts: #7C63D1; --app-notes: #C08A1E; --app-ink: #3A3F47; --app-market: #D8561D;
      --app-photos: #D1467F; --app-drive: #4F82AC;
    }
  }
}

/* ---------------------------------------------------------------- base ------ */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: 88px; }
  body {
    min-height: 100dvh; display: flex; flex-direction: column;
    background: var(--paper); color: var(--ink);
    font: 400 1rem/1.6 var(--font-text); font-feature-settings: 'calt', 'kern';
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  }
  main { flex: 1; }
  h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
  h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
  p, li, dd { text-wrap: pretty; }
  a { color: var(--cobalt-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
  ::selection { background: var(--cobalt-soft); color: var(--ink); }
  strong { font-weight: 650; }
  abbr[title] { text-decoration: underline dotted; cursor: help; }
  .icon { width: 1.25em; height: 1.25em; flex: none; }
  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
  }
  .skip {
    position: absolute; inset-inline-start: 12px; inset-block-start: -100px; z-index: 100;
    padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r-1);
  }
  .skip:focus { inset-block-start: 12px; }
}

/* ---------------------------------------------------------------- layout ---- */
@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
  .section { padding-block: clamp(56px, 8vw, 104px); }
  .section + .section { border-top: 1px solid var(--line); }
  .section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
  .section-head h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.75rem); margin-block: 12px 14px; }
  .section-head p { color: var(--muted); font-size: 1.125rem; }
}

/* ---------------------------------------------------------------- components  */
@layer components {
  /* ---- header ---- */
  .site-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
  .brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-inline-end: auto; }
  .brand__emblem { width: 38px; height: 38px; flex: none; }
  .brand__name { font: 700 1.3rem/1 var(--font-display); letter-spacing: -.005em; white-space: nowrap; }
  .brand__suffix { color: var(--cobalt); }
  .emblem__accent { fill: var(--cobalt); }
  .footer-tagline {
    position: relative; margin-top: 14px; padding-top: 12px; max-width: 34ch;
    border-top: 2.5px solid var(--line-strong);
    font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft);
  }
  .footer-tagline::before { content: ''; position: absolute; inset: 3px 0 auto; border-top: 1px solid var(--line-strong); }
  .nav { display: none; }
  .nav ul { display: flex; gap: 4px; }
  .nav a, .menu-panel a.menu-link {
    display: block; padding: 8px 12px; border-radius: var(--r-1);
    color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
  }
  .nav a:hover { background: var(--surface-2); }
  .tools { display: flex; align-items: center; gap: 6px; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px; border-radius: var(--r-2);
    font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease);
  }
  .btn--primary { background: var(--cobalt-ink); color: var(--on-cobalt); }
  .btn--primary:hover { background: color-mix(in oklab, var(--cobalt-ink) 86%, black); }
  .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
  .btn--ghost:hover { background: var(--surface-2); }
  .btn--small { min-height: 38px; padding: 7px 14px; font-size: .92rem; }
  .btn--light { background: var(--on-band); color: var(--band); }
  .btn--light:hover { background: color-mix(in oklab, var(--on-band) 88%, var(--cobalt)); }
  .btn .icon { width: 1.1em; height: 1.1em; }

  .icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border-radius: var(--r-2); border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer;
  }
  .icon-btn:hover { background: var(--surface-2); }
  .icon-btn .icon { width: 20px; height: 20px; }

  /* language menu (details) */
  .lang { position: relative; }
  .lang > summary {
    list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding-inline: 10px;
    border-radius: var(--r-2); cursor: pointer; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em;
  }
  .lang > summary::-webkit-details-marker { display: none; }
  .lang > summary:hover { background: var(--surface-2); }
  .lang[open] > summary { background: var(--surface-2); }
  .lang__list {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2);
    box-shadow: 0 12px 32px -12px color-mix(in oklab, var(--ink) 35%, transparent);
  }
  .lang__list a {
    display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: var(--r-1);
    color: var(--ink); text-decoration: none; font-size: .95rem;
  }
  .lang__list a:hover { background: var(--surface-2); }
  .lang__list a[aria-current="true"] { font-weight: 650; color: var(--cobalt-ink); }
  .lang__code { color: var(--soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }

  .theme-toggle .icon--light, .theme-toggle .icon--dark { display: none; }
  :root[data-theme="light"] .theme-toggle .icon--auto, :root[data-theme="dark"] .theme-toggle .icon--auto { display: none; }
  :root[data-theme="light"] .theme-toggle .icon--light { display: block; }
  :root[data-theme="dark"] .theme-toggle .icon--dark { display: block; }
  .theme-toggle { display: none; }
  :root.js .theme-toggle { display: inline-grid; }

  /* mobile menu (popover) */
  .menu-btn { display: inline-grid; }
  .menu-panel {
    inset: 76px var(--gutter) auto auto; margin: 0; width: min(320px, calc(100vw - 2 * var(--gutter)));
    padding: 10px; border: 1px solid var(--line); border-radius: var(--r-3);
    background: var(--surface); color: var(--ink);
    box-shadow: 0 24px 48px -16px color-mix(in oklab, var(--ink) 40%, transparent);
  }
  .menu-panel ul { display: grid; gap: 2px; }
  .menu-panel a.menu-link { font-size: 1.05rem; padding: 12px 14px; }
  .menu-panel a.menu-link:hover { background: var(--surface-2); }
  .menu-panel .btn { width: 100%; margin-top: 8px; }
  @media (min-width: 1000px) {
    .nav { display: block; }
    .menu-btn { display: none; }
  }
  @media (max-width: 999px) {
    .tools .btn--login span { display: none; }
    .tools .btn--login { padding-inline: 10px; }
  }
  @media (max-width: 520px) {
    .site-header .wrap { gap: 8px; }
    .brand { gap: 8px; }
    .brand__name { font-size: 1.02rem; }
    .brand__emblem { width: 30px; height: 30px; }
    .tools { gap: 2px; }
    .tools .btn--login { display: none; }  /* the menu panel carries the sign-in button */
    .lang > summary { padding-inline: 8px; }
  }

  /* ---- eyebrow with the double rule of the family (CGP-07) ---- */
  .eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt-ink);
  }
  .eyebrow::before {
    content: ''; width: 28px; height: 6px; flex: none;
    border-top: 2.5px solid currentColor; border-bottom: 1px solid currentColor;
  }

  /* ---- chips ---- */
  .chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill);
    font-size: .78rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
    background: var(--surface-2); color: var(--muted);
  }
  .chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .chip--done { background: var(--ok-soft); color: var(--ok); }
  .chip--prep { background: var(--wait-soft); color: var(--wait); }
  .chip--dev { background: var(--cobalt-soft); color: var(--cobalt-ink); }
  .chip--design { background: var(--plan-soft); color: var(--plan); }
  .chip--plan { background: var(--surface-2); color: var(--muted); }

  /* ---- cards ---- */
  .card {
    position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface);
    transition: border-color .2s, transform .2s var(--ease);
  }
  .badge {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px;
    background: var(--app, var(--cobalt)); color: #fff;
  }
  .badge .icon { width: 24px; height: 24px; }
  .app--mail { --app: var(--app-mail); } .app--calendar { --app: var(--app-calendar); }
  .app--contacts { --app: var(--app-contacts); } .app--notes { --app: var(--app-notes); }
  .app--ink { --app: var(--app-ink); } .app--market { --app: var(--app-market); }
  .app--photos { --app: var(--app-photos); } .app--drive { --app: var(--app-drive); }

  /* ---- footer ---- */
  .site-footer { margin-top: auto; border-top: 3px double var(--line-strong); background: var(--surface); }
  .footer-top { display: grid; gap: 40px; padding-block: 56px 40px; }
  .footer-brand p { color: var(--muted); max-width: 34ch; margin-top: 16px; }
  .footer-logo { width: min(100%, 340px); height: auto; color: var(--ink); }
  .footer-logo .suffix { fill: var(--cobalt); }
  .footer-logo .rule { stroke: var(--ink); }
  .footer-logo .tag { fill: var(--soft); }
  .footer-col h2 {
    font: 650 .78rem/1.2 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px;
  }
  .footer-col ul { display: grid; gap: 8px; }
  .footer-col a { color: var(--ink); text-decoration: none; }
  .footer-col a:hover { color: var(--cobalt-ink); text-decoration: underline; }
  .footer-col .icon { display: inline; width: .9em; height: .9em; vertical-align: -1px; margin-inline-start: 4px; color: var(--soft); }
  .publisher { font-size: .92rem; color: var(--muted); font-style: normal; margin-top: 16px; }
  .footer-bottom {
    display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
    padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--soft);
  }
  .footer-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .footer-langs a { color: var(--muted); text-decoration: none; }
  .footer-langs a[aria-current="true"] { color: var(--ink); font-weight: 650; }
  .footer-langs a:hover { color: var(--cobalt-ink); text-decoration: underline; }
  @media (min-width: 720px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1000px) { .footer-top { grid-template-columns: 1.5fr repeat(4, 1fr); } }
}

/* ---------------------------------------------------------------- pages ----- */
@layer pages {
  /* ================= landing: hero with the construction notice ================= */
  .hero { padding-block: clamp(36px, 6vw, 88px) clamp(48px, 7vw, 96px); overflow: clip; }
  .hero .wrap { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
  @media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1.08fr 1fr; } }
  .status {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px;
    border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
    font-size: .88rem; font-weight: 650; letter-spacing: .01em;
  }
  .status__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--cobalt); }
  .status__dot::after {
    content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--cobalt); opacity: 0;
  }
  .hero h1 { font-size: clamp(2.6rem, 4.6vw + 1rem, 4.6rem); line-height: 1.02; margin-block: 22px 22px; }
  .hero h1 .accent { color: var(--cobalt); }
  .hero .lead { font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); color: var(--muted); max-width: 36rem; }
  .hero .notice {
    display: flex; gap: 12px; margin-top: 22px; padding: 14px 16px; max-width: 36rem;
    border-inline-start: 3px solid var(--cobalt); background: var(--cobalt-soft); border-radius: 0 var(--r-2) var(--r-2) 0;
    color: var(--ink); font-size: .96rem;
  }
  .hero .notice .icon { color: var(--cobalt-ink); margin-top: 2px; }
  .hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

  /* ---- the board: the emblem at full size, applications being pinned ---- */
  .board-wrap { position: relative; width: min(100%, 520px); justify-self: center; }
  .board {
    position: relative; aspect-ratio: 1 / 1.02; padding: clamp(22px, 5%, 34px);
    border: 3px solid var(--line-strong); background:
      radial-gradient(circle at 1px 1px, var(--dots) 1px, transparent 1.5px) 0 0 / 18px 18px,
      var(--surface);
    display: grid; grid-template-rows: 1fr auto;
  }
  .board::before {
    content: ''; position: absolute; inset: clamp(8px, 2.2%, 12px); border: 1px solid var(--line-strong); pointer-events: none;
  }
  .board__tiles {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 1fr); gap: clamp(9px, 2.4%, 13px);
  }
  .tile {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: center; column-gap: 10px; row-gap: 6px;
    padding: clamp(9px, 2.4%, 13px) clamp(10px, 2.6%, 14px);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2);
  }
  .tile .badge { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 9px; }
  .tile .badge .icon { width: 19px; height: 19px; }
  .tile__name { font-weight: 650; font-size: clamp(.82rem, 1.3vw, .98rem); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: end; }
  .tile__bar { align-self: start; }
  .tile__bar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
  .tile__bar::after { content: ''; display: block; height: 100%; width: var(--fill, 60%); background: var(--app); border-radius: 3px; opacity: .85; }
  /* --fill: progress bar of the tile; --d: its start in the 14 s cycle (motion layer) */
  .tile:nth-child(1) { --fill: 72%; --d: 0s; }    .tile:nth-child(2) { --fill: 58%; --d: .4s; }
  .tile:nth-child(3) { --fill: 64%; --d: .8s; }   .tile:nth-child(4) { --fill: 46%; --d: 1.2s; }
  .tile:nth-child(5) { --fill: 38%; --d: 1.6s; }  .tile:nth-child(6) { --fill: 52%; --d: 2s; }
  .tile:nth-child(7) { --fill: 44%; --d: 2.4s; }  .tile:nth-child(8) { --fill: 81%; --d: 2.8s; }
  .tile__pin {
    position: absolute; top: -6px; left: 50%; width: 11px; height: 11px; translate: -50% 0; rotate: 45deg;
    background: var(--cobalt); border: 1.5px solid var(--surface);
  }
  .tile.app--market .tile__pin { background: var(--cinnabar); }
  .board__foot { display: grid; gap: 10px; padding-top: clamp(14px, 3.4%, 20px); }
  .ticker { display: flex; align-items: center; gap: 10px; min-height: 1.5em; font-size: .92rem; font-weight: 600; }
  .ticker__label { color: var(--soft); font-weight: 500; white-space: nowrap; }
  .ticker__steps { position: relative; flex: 1; height: 1.5em; overflow: hidden; }
  .ticker__steps span { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; }
  .ticker__steps span:first-child { opacity: 1; }
  .ticker__steps span:nth-child(1) { --d: 0s; }      .ticker__steps span:nth-child(2) { --d: 1.75s; }
  .ticker__steps span:nth-child(3) { --d: 3.5s; }    .ticker__steps span:nth-child(4) { --d: 5.25s; }
  .ticker__steps span:nth-child(5) { --d: 7s; }      .ticker__steps span:nth-child(6) { --d: 8.75s; }
  .ticker__steps span:nth-child(7) { --d: 10.5s; }   .ticker__steps span:nth-child(8) { --d: 12.25s; }
  .meter { position: relative; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
  .meter::after {
    content: ''; position: absolute; inset: 0; width: 38%;
    background: linear-gradient(90deg, transparent, var(--cobalt), transparent); border-radius: 3px; translate: 0 0;
  }
  .board-pause {
    position: absolute; top: clamp(14px, 3.4%, 20px); right: clamp(14px, 3.4%, 20px); z-index: 2;
    width: 34px; height: 34px; background: var(--surface); border: 1px solid var(--line);
  }
  .board-pause .icon { width: 16px; height: 16px; }
  .board-pause .icon--play { display: none; }
  .board-wrap[data-paused] .board-pause .icon--play { display: block; }
  .board-wrap[data-paused] .board-pause .icon--pause { display: none; }
  .board-caption { margin-top: 12px; text-align: center; font-size: .85rem; color: var(--soft); }

  /* ---- construction progress ---- */
  .progress { padding-block: 0 clamp(8px, 2vw, 24px); }
  .progress__box { border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); padding: 20px clamp(16px, 3vw, 28px); }
  .progress__box h2 { font: 650 .8rem/1.2 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px; }
  .steps { display: grid; gap: 0; counter-reset: step; }
  .steps li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .steps .label { display: flex; align-items: center; gap: 10px; font-weight: 550; }
  .steps .label .icon { color: var(--soft); }
  @media (min-width: 900px) {
    .steps { grid-template-columns: repeat(4, 1fr); gap: 16px 16px; }
    .steps li { flex-direction: column; align-items: flex-start; border-top: 0; border-inline-start: 1px solid var(--line); padding: 4px 0 4px 16px; }
    .steps li:nth-child(4n + 1) { border-inline-start: 0; padding-inline-start: 0; }
  }

  /* ================= landing: sections ================= */
  .apps { display: grid; gap: 16px; }
  @media (min-width: 640px) { .apps { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1000px) { .apps { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 1200px) { .apps { grid-template-columns: repeat(4, 1fr); } }
  .apps .card { display: grid; gap: 14px; align-content: start; }
  .apps .card h3 { font-size: 1.15rem; }
  .apps .card p { color: var(--muted); }
  .apps .card .chip { position: absolute; top: 24px; right: 24px; }
  .apps .card:hover { border-color: var(--app); }
  .apps .app--market a { font-weight: 600; }

  .connect { display: grid; gap: 32px; align-items: center; }
  @media (min-width: 1000px) { .connect { grid-template-columns: 1fr 1fr; gap: 64px; } }
  .desks { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; }
  .desk {
    border: 3px solid var(--line-strong); padding: 10px; background: var(--surface); aspect-ratio: 1; display: grid;
  }
  .desk__inner { border: 1px solid var(--line-strong); display: grid; place-items: center; align-content: center; gap: 10px; padding: 12px; text-align: center; }
  .desk__inner .badge { width: 52px; height: 52px; }
  .desk__inner .badge-emblem { width: 52px; height: 52px; color: var(--ink); }
  .desk__name { font: 700 clamp(1rem, 1.6vw, 1.25rem)/1.1 var(--font-display); }
  .desk__name span { color: var(--cobalt); }
  .desk--si .desk__name span { color: var(--cinnabar); }
  .desk__role { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
  .link-line { position: relative; width: clamp(40px, 8vw, 96px); height: 2px; background: var(--line-strong); }
  .link-line::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; translate: -50% -50%; rotate: 45deg; background: var(--cobalt);
  }
  .points { display: grid; gap: 16px; margin-block: 24px 28px; }
  .points li { display: flex; gap: 14px; align-items: flex-start; }
  .points .badge { width: 36px; height: 36px; border-radius: 8px; }
  .points .badge .icon { width: 18px; height: 18px; }

  .devices { display: grid; gap: 16px; }
  @media (min-width: 720px) { .devices { grid-template-columns: repeat(2, 1fr); } .device:first-child { grid-column: span 2; } }
  @media (min-width: 1000px) {
    .devices { grid-template-columns: repeat(6, 1fr); }
    .device { grid-column: span 2; } .device:first-child { grid-column: span 2; } .device--wide { grid-column: span 3; }
  }
  .device h3 .chip { margin-inline-start: auto; }
  .device__models { font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-top: -10px; }
  .mini.mini--watches { display: flex; justify-content: center; align-items: center; gap: 36px; isolation: isolate; overflow: hidden; }
  .mini__watch { position: relative; display: grid; align-content: center; justify-items: center; gap: 5px; width: 92px; height: 92px; background: #111316; color: #F2EFE8; border: 5px solid #3A3F47; }
  .mini__watch::before, .mini__watch::after { content: ''; position: absolute; left: 22%; right: 22%; height: 26px; background: var(--line); z-index: -1; }
  .mini__watch::before { top: -30px; border-radius: 8px 8px 0 0; } .mini__watch::after { bottom: -30px; border-radius: 0 0 8px 8px; }
  .mini__watch--square { border-radius: 26px; width: 84px; height: 100px; }
  .mini__watch--round { border-radius: 50%; }
  .mini__watch--sport { border-radius: 50%; width: 104px; height: 104px; border-width: 8px; border-color: #5A5F66; background: #1B1E22; }
  .w-time { font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
  .w-line { width: 46px; height: 5px; border-radius: 3px; background: var(--cobalt); }
  .w-line--short { width: 30px; background: #6BD39A; }
  .w-dot { position: absolute; top: 12px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--cinnabar); }
  .w-btn { position: absolute; width: 6px; height: 14px; border-radius: 2px; background: #5A5F66; }
  .w-btn--1 { right: -14px; top: 22px; } .w-btn--2 { right: -14px; bottom: 22px; } .w-btn--3 { left: -14px; top: 40px; }
  .device { display: grid; gap: 18px; align-content: start; }
  .device h3 { font-size: 1.15rem; display: flex; gap: 10px; align-items: center; }
  .device h3 .icon { color: var(--cobalt-ink); }
  .device p { color: var(--muted); }
  /* miniature screens drawn in CSS */
  .mini { height: 180px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-2); padding: 12px; display: grid; place-items: center; }
  .mini__desk { width: 100%; height: 100%; display: grid; grid-template-columns: 22% 32% 1fr; gap: 6px; padding: 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
  .mini__desk > * { border-radius: 4px; background: var(--surface-2); }
  .mini__desk > :first-child { background: color-mix(in oklab, var(--cobalt) 16%, var(--surface)); }
  .mini__desk > :last-child { background: repeating-linear-gradient(var(--surface-2) 0 8px, transparent 8px 16px); }
  .mini__phone { width: 92px; height: 100%; border-radius: 16px; border: 2px solid var(--ink); background: var(--surface); padding: 8px 6px; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; position: relative; }
  .mini__phone .bar { height: 10px; border-radius: 3px; background: var(--surface-2); }
  .mini__phone .list { background: repeating-linear-gradient(var(--surface-2) 0 7px, transparent 7px 13px); border-radius: 3px; }
  .mini__phone .tabs { height: 16px; border-radius: 6px; background: var(--surface-2); display: flex; justify-content: space-around; align-items: center; }
  .mini__phone .tabs i { width: 8px; height: 8px; border-radius: 50%; background: var(--soft); }
  .mini__phone .tabs i:first-child { background: var(--cobalt); }
  .mini__phone--android .fab { position: absolute; right: 10px; bottom: 30px; width: 20px; height: 20px; border-radius: 6px; background: var(--cobalt); }
  .mini__phone--apple .bar { height: 16px; width: 70%; background: var(--ink); opacity: .85; }
  .mini__phone--apple { border-radius: 20px; }

  .trust { display: grid; gap: 16px; }
  @media (min-width: 720px) { .trust { grid-template-columns: repeat(2, 1fr); } }
  .trust li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
  .trust .icon-wrap { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--cobalt-ink); flex: none; }
  .trust h3 { font-size: 1.05rem; margin-bottom: 4px; }
  .trust p { color: var(--muted); }

  .faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 52rem; }
  .faq-list details, .prose details { border-bottom: 1px solid var(--line); }
  .faq-list summary, .prose summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
    padding: 18px 2px; font-weight: 600; font-size: 1.05rem;
  }
  .faq-list summary::-webkit-details-marker, .prose summary::-webkit-details-marker { display: none; }
  .faq-list summary::after, .prose summary::after {
    content: ''; width: 10px; height: 10px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    rotate: 45deg; translate: 0 -3px; transition: rotate .2s var(--ease);
  }
  .faq-list details[open] summary::after, .prose details[open] summary::after { rotate: 225deg; translate: 0 3px; }
  .faq-list details > p, .prose details > :not(summary) { padding: 0 2px 18px; color: var(--muted); max-width: 44rem; }
  .more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; }

  .band { background: var(--band); color: var(--on-band); }
  .band .wrap { display: grid; gap: 24px; align-items: center; padding-block: clamp(48px, 6vw, 80px); }
  @media (min-width: 900px) { .band .wrap { grid-template-columns: 1fr auto; } }
  .band h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem); }
  .band p { color: var(--band-muted); margin-top: 10px; max-width: 40rem; }

  /* ================= information pages ================= */
  .page-head { padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); background: var(--surface); }
  .crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--soft); }
  .crumbs li + li::before { content: '/'; margin-inline-end: 6px; color: var(--line); }
  .crumbs a { color: var(--soft); }
  .page-head h1 { font-size: clamp(2.1rem, 3vw + 1rem, 3.3rem); margin-block: 18px 14px; }
  .page-head .lead { font-size: 1.15rem; color: var(--muted); max-width: 48rem; }
  .page-head .meta { margin-top: 16px; font-size: .9rem; color: var(--soft); }
  .page-body { display: grid; gap: 48px; padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); }
  @media (min-width: 1000px) { .page-body { grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; } }
  .aside { display: grid; gap: 20px; align-content: start; }
  @media (min-width: 1000px) { .aside { position: sticky; top: 96px; } }
  .aside nav, .aside .box { border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); padding: 18px; }
  .aside h2 { font: 650 .78rem/1.2 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }
  .aside ul { display: grid; gap: 2px; }
  .aside ul a { display: block; padding: 7px 10px; border-radius: var(--r-1); color: var(--ink); text-decoration: none; }
  .aside ul a:hover { background: var(--surface-2); }
  .aside ul a[aria-current="page"] { background: var(--cobalt-soft); color: var(--cobalt-ink); font-weight: 600; }
  .aside .box p { font-size: .95rem; color: var(--muted); }
  .aside .box a { font-weight: 600; }

  .prose { max-width: var(--text-max); font-size: 1.04rem; }
  .prose > * + * { margin-top: 1em; }
  .prose h2 { font-size: clamp(1.45rem, 1vw + 1rem, 1.8rem); margin-top: 2.2em; padding-top: .8em; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
  .prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .prose h3 { font-size: 1.12rem; margin-top: 1.6em; }
  .prose ul, .prose ol { padding-inline-start: 1.3em; }
  .prose li + li { margin-top: .4em; }
  .prose dl { display: grid; gap: 4px 20px; }
  @media (min-width: 640px) { .prose dl { grid-template-columns: max-content 1fr; } }
  .prose dt { font-weight: 650; }
  .prose dd { color: var(--muted); }
  .prose address { font-style: normal; }
  .prose code { font: .9em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
  .prose .lead { font-size: 1.15rem; color: var(--muted); }
  .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
  .prose table { width: 100%; font-size: .96rem; }
  .prose th, .prose td { text-align: start; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .prose tr:last-child > * { border-bottom: 0; }
  .prose thead th { background: var(--surface-2); font-weight: 650; }
  .prose tbody th { font-weight: 600; width: 38%; }
  .callout { padding: 16px 18px; border-inline-start: 3px solid var(--cobalt); background: var(--cobalt-soft); border-radius: 0 var(--r-2) var(--r-2) 0; }
  .callout > * + * { margin-top: .6em; }
  .prose details summary { font-size: 1.05rem; }
  .prose details:first-of-type { border-top: 1px solid var(--line); }

  /* ================= 404 ================= */
  .lost { display: grid; place-items: center; text-align: center; gap: 18px; padding-block: clamp(64px, 12vw, 140px); }
  .lost svg { width: 96px; height: 96px; }
  .lost h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
  .lost p { color: var(--muted); max-width: 32rem; }
}

/* ---------------------------------------------------------------- motion ---- */
/* Loops run only with JavaScript (:root.js), so the pause control exists (WCAG 2.2.2),
   and only while the board is on screen (data-running, set by site.js). */
@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    :root.js .status__dot::after { animation: od-ring 2.4s var(--ease) infinite; }

    :root.js .board-wrap[data-running] .tile { animation: od-tile 14s var(--ease) var(--d) infinite both; }
    :root.js .board-wrap[data-running] .tile__pin { animation: od-pin 14s var(--ease) var(--d) infinite both; }
    :root.js .board-wrap[data-running] .tile__bar::after { animation: od-fill 14s var(--ease) var(--d) infinite both; }
    :root.js .board-wrap[data-running] .ticker__steps span { animation: od-step 14s linear var(--d) infinite both; }
    :root.js .board-wrap[data-running] .meter::after { animation: od-sweep 2.2s ease-in-out infinite; }

    .board-wrap[data-paused] *, .board-wrap[data-paused] *::before, .board-wrap[data-paused] *::after { animation-play-state: paused !important; }

    .apps .card:hover { transform: translateY(-2px); }
  }

  @keyframes od-ring { 0% { opacity: .7; scale: .6; } 70%, 100% { opacity: 0; scale: 1.5; } }
  @keyframes od-tile {
    0% { opacity: 0; transform: translateY(-22px) rotate(-3deg) scale(.96); }
    5% { opacity: 1; transform: translateY(2px) rotate(.4deg) scale(1); }
    7% { transform: none; }
    84% { opacity: 1; transform: none; }
    91% { opacity: 0; transform: translateY(8px) scale(.97); }
    100% { opacity: 0; transform: translateY(8px) scale(.97); }
  }
  @keyframes od-pin {
    0%, 4% { opacity: 0; translate: -50% -26px; }
    8% { opacity: 1; translate: -50% 1px; }
    10%, 84% { opacity: 1; translate: -50% 0; }
    91%, 100% { opacity: 0; translate: -50% 0; }
  }
  @keyframes od-fill {
    0%, 8% { width: 0; }
    40% { width: var(--fill, 60%); }
    70%, 100% { width: calc(var(--fill, 60%) + 14%); }
  }
  @keyframes od-step {
    0% { opacity: 0; transform: translateY(70%); }
    1.5%, 11% { opacity: 1; transform: none; }
    12.5%, 100% { opacity: 0; transform: translateY(-70%); }
  }
  @keyframes od-sweep { 0% { translate: -110% 0; } 100% { translate: 290% 0; } }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
  }
}

/* ---------------------------------------------------------------- print ----- */
@layer print {
  @media print {
    .site-header, .site-footer .footer-bottom, .aside, .board-wrap, .band, .skip { display: none !important; }
    body { background: #fff; color: #000; }
    a { color: #000; }
    .prose a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: .85em; }
  }
}
