/* ==========================================================================
   ATLAS NEOMÓRFICO — folha única
   Motor de sombra: JS escreve --sx/--sy/--blur; tudo abaixo só consome.
   ========================================================================== */

@layer reset, base, layout, components, sections, motion;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  img, svg { display: block; max-width: 100%; }
  button, input, select { font: inherit; color: inherit; }
  ul, ol { list-style: none; padding: 0; }
  a { color: inherit; }
}

@layer base {
  :root {
    /* matéria */
    --ground: #e8e9ee;
    --ground-deep: #dfe1e7;
    --card-top: #f4f5f8;
    --card-bottom: #e2e3e9;
    --ink: #1b1e24;
    --ink-mid: #4a4f59;
    --ink-muted: #6b717c;
    --ink-faint: #969ca7;
    --accent: #f5b301;
    --accent-deep: #d99c00;
    --accent-ink: #241c00;

    /* sombra (valores escritos pelo motor) */
    --sx: 12px;
    --sy: 12px;
    --blur: 28px;
    --sh-dark: #c3c6d0;
    --sh-light: #ffffff;
    --sx-in: 8px;
    --sy-in: 8px;
    --spec-top: #f4f5f8;
    --spec-bottom: #e2e3e9;
    --spec-dark: #c3c6d0;
    --spec-light: #ffffff;

    /* escala */
    --panel: 26px;
    --well: 22px;
    --input: 16px;
    --frame: 12px;
    --pill: 999px;

    --max: 1240px;
    --gutter: 32px;

    --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
    --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --state: 180ms ease;
    --press: 120ms ease;
    --ease: cubic-bezier(.4, .8, .2, 1);
  }

  @media (max-width: 720px) {
    :root { --gutter: 18px; }
  }

  body {
    background: var(--ground);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  /* o grão: o material nunca é digitalmente liso */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: .5;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  }

  h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: .98;
    text-wrap: balance;
  }
  h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
  h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.02em; line-height: 1.15; }
  h4 { font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.3; }
  p { text-wrap: pretty; }

  ::selection { background: var(--accent); color: var(--accent-ink); }

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

  .mono {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
  }
  .lead {
    font-size: clamp(1.1rem, 1.6vw, 1.32rem);
    line-height: 1.55;
    color: var(--ink-mid);
    max-width: 62ch;
  }
}

/* ---------------------------------------------------------------- layout */
@layer layout {
  .shell {
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  section {
    position: relative;
    scroll-margin-top: 84px;
    padding-block: clamp(76px, 9vw, 132px);
    border-top: 1px solid rgba(27, 30, 36, .07);
  }
  section:first-of-type { border-top: 0; }

  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: end;
    margin-bottom: clamp(32px, 4vw, 60px);
  }
  .section-head .kicker {
    display: flex;
    gap: 14px;
    align-items: baseline;
    margin-bottom: 18px;
  }
  .section-head .num {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .16em;
    color: var(--ink-faint);
  }
  .section-head .rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(27,30,36,.18), transparent);
  }
  @media (max-width: 860px) {
    .section-head { grid-template-columns: 1fr; align-items: start; }
  }

  .split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
  }
  .split.wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
  @media (max-width: 900px) {
    .split, .split.wide-left { grid-template-columns: 1fr; }
  }

  .split > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .stack > * { min-width: 0; }
  .prose { max-width: 64ch; display: grid; gap: 18px; min-width: 0; }
  .prose p { color: var(--ink-mid); }
  .prose strong { color: var(--ink); font-weight: 700; }
  .prose em { font-style: italic; color: var(--ink); }

  .stack { display: grid; gap: 22px; }
  .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
  .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  @media (max-width: 860px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 560px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  }
}

/* ------------------------------------------------------------ components */
@layer components {
  /* ---- a matéria ---- */
  .panel {
    background: linear-gradient(var(--grad, 145deg), var(--card-top), var(--card-bottom));
    border-radius: var(--panel);
    box-shadow:
      var(--sx) var(--sy) var(--blur) var(--sh-dark),
      calc(-1 * var(--sx)) calc(-1 * var(--sy)) var(--blur) var(--sh-light);
  }
  .panel.sm { border-radius: 18px; }
  .well {
    background: var(--ground-deep);
    border-radius: var(--well);
    box-shadow:
      inset var(--sx-in) var(--sy-in) calc(var(--blur) * .6) var(--sh-dark),
      inset calc(-1 * var(--sx-in)) calc(-1 * var(--sy-in)) calc(var(--blur) * .6) var(--sh-light);
  }
  .pill {
    border-radius: var(--pill);
    background: linear-gradient(145deg, var(--card-top), var(--card-bottom));
    box-shadow:
      4px 4px 9px #c9ccd5,
      -4px -4px 9px #ffffff;
  }
  .seam {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.9) 20%, rgba(0,0,0,.06) 55%, transparent);
  }

  /* ---- botões ---- */
  .btn {
    --local: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border: 0;
    border-radius: var(--pill);
    background: linear-gradient(145deg, var(--card-top), var(--card-bottom));
    box-shadow:
      5px 5px 12px #c7cad3,
      -5px -5px 12px #ffffff;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
    cursor: pointer;
    transition: box-shadow var(--state), transform var(--press);
  }
  .btn:hover {
    box-shadow: 3px 3px 10px #c7cad3, -3px -3px 10px #ffffff;
  }
  .btn:active, .btn[aria-pressed="true"] {
    box-shadow: inset 4px 4px 9px #c3c6d0, inset -4px -4px 9px #ffffff;
    transform: translateY(.5px);
  }
  .btn.accent {
    background: linear-gradient(145deg, #ffc31f, var(--accent-deep));
    color: var(--accent-ink);
    box-shadow: 5px 5px 12px #c9c4b4, -5px -5px 12px #fffdf2;
  }
  .btn.ghost {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(27,30,36,.14);
    color: var(--ink-mid);
  }
  .btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(27,30,36,.3); }

  /* ---- controle segmentado ---- */
  .seg {
    display: inline-flex;
    padding: 4px;
    gap: 2px;
    border-radius: var(--pill);
    background: var(--ground-deep);
    box-shadow: inset 3px 3px 8px #c6c9d2, inset -3px -3px 8px #ffffff;
  }
  .seg button {
    border: 0;
    background: transparent;
    padding: 9px 15px;
    border-radius: var(--pill);
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    cursor: pointer;
    transition: all var(--state);
  }
  .seg button[aria-pressed="true"] {
    background: linear-gradient(145deg, var(--card-top), var(--card-bottom));
    color: var(--ink);
    box-shadow: 3px 3px 7px #c6c9d2, -3px -3px 7px #ffffff;
  }

  /* ---- slider ---- */
  input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 14px;
    border-radius: var(--pill);
    background: var(--ground-deep);
    box-shadow: inset 3px 3px 7px #c6c9d2, inset -3px -3px 7px #fff;
    cursor: ew-resize;
  }
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fbfbfd, #dfe1e7);
    box-shadow: 3px 3px 7px #c3c6d0, -3px -3px 7px #ffffff;
    border: 1px solid rgba(255,255,255,.7);
  }
  input[type="range"]::-moz-range-thumb {
    width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: linear-gradient(145deg, #fbfbfd, #dfe1e7);
    box-shadow: 3px 3px 7px #c3c6d0, -3px -3px 7px #ffffff;
  }

  /* ---- cartões ---- */
  .card {
    padding: clamp(20px, 2.4vw, 30px);
    border-radius: var(--panel);
    background: linear-gradient(var(--grad, 145deg), var(--card-top), var(--card-bottom));
    box-shadow:
      var(--sx) var(--sy) var(--blur) var(--sh-dark),
      calc(-1 * var(--sx)) calc(-1 * var(--sy)) var(--blur) var(--sh-light);
  }
  .card h4 { margin-bottom: 10px; }
  .card p { font-size: .93rem; line-height: 1.6; color: var(--ink-mid); }
  .card .tag {
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    display: block;
    margin-bottom: 14px;
  }

  /* ---- código ---- */
  pre, code { font-family: var(--mono); }
  pre {
    min-width: 0;
    max-width: 100%;
    font-size: .74rem;
    line-height: 1.75;
    padding: 18px 20px;
    border-radius: 16px;
    background: #1b1e24;
    color: #e7e9ef;
    overflow-x: auto;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 6px 6px 18px rgba(27,30,36,.12);
  }
  pre .c { color: #7d8494; }
  pre .k { color: #f5b301; }
  pre .v { color: #9fd4c0; }
  code.inline {
    font-size: .82em;
    background: var(--ground-deep);
    border-radius: 6px;
    padding: .12em .38em;
    box-shadow: inset 1px 1px 2px #c6c9d2, inset -1px -1px 2px #fff;
  }

  /* ---- medidor de contraste ---- */
  .meter { display: grid; gap: 10px; }
  .meter-bar {
    position: relative;
    height: 12px;
    border-radius: var(--pill);
    background: var(--ground-deep);
    box-shadow: inset 2px 2px 5px #c6c9d2, inset -2px -2px 5px #fff;
  }
  .meter-bar::before, .meter-bar::after {
    content: "";
    position: absolute;
    top: -3px; bottom: -3px;
    width: 1px;
    background: rgba(27,30,36,.28);
    z-index: 2;
  }
  .meter-bar::before { left: 30%; }   /* 3:1 */
  .meter-bar::after  { left: 45%; }   /* 4,5:1 */
  .meter-fill {
    height: 100%;
    width: 0%;
    border-radius: var(--pill);
    background: #b9bec9;
    transition: width var(--ease) 400ms, background 200ms;
  }
  .meter-fill.pass { background: linear-gradient(90deg, #8fd2a5, #2fa84f); }
  .meter-fill.warn { background: linear-gradient(90deg, #ffe08a, #f5b301); }
  .meter-fill.fail { background: linear-gradient(90deg, #f0a3a6, #e5484d); }
  .meter-scale {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .08em;
    color: var(--ink-faint);
    margin-top: -4px;
  }
  .meter-legend { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; color: var(--ink-faint); }
  .verdict {
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: var(--pill);
    display: inline-block;
  }
  .verdict.pass { background: rgba(47,168,79,.14); color: #1d7a39; }
  .verdict.fail { background: rgba(229,72,77,.14); color: #b3282d; }
  .verdict.warn { background: rgba(245,179,1,.18); color: #7d5c00; }

  /* ---- nota lateral ---- */
  .note {
    border-left: 2px solid var(--accent);
    padding: 4px 0 4px 18px;
    font-size: .92rem;
    color: var(--ink-mid);
    max-width: 56ch;
  }
  .note b { color: var(--ink); }

  /* ---- citação / fonte ---- */
  .source {
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .04em;
    color: var(--ink-faint);
    line-height: 1.7;
  }
  .source a { text-decoration: underline; text-decoration-color: rgba(27,30,36,.25); text-underline-offset: 3px; }
  .source a:hover { color: var(--ink); }

  /* ---- tabela ---- */
  .tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
  .tbl th, .tbl td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(27,30,36,.09);
    vertical-align: top;
  }
  .tbl th {
    font-family: var(--mono);
    font-size: .63rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 500;
  }
  .tbl td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
  .tbl tr:last-child td { border-bottom: 0; }
  .tbl-wrap { overflow-x: auto; width: 100%; max-width: 100%; -webkit-overflow-scrolling: touch; }
  @media (max-width: 700px) { .tbl { min-width: 520px; } }

  /* ---- barra de topo ---- */
  .topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px var(--gutter);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    background: color-mix(in srgb, var(--ground) 74%, transparent);
    border-bottom: 1px solid rgba(27,30,36,.06);
  }
  .brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
  .brand b { font-family: var(--display); font-size: .95rem; letter-spacing: -.01em; }
  .brand span { font-family: var(--mono); font-size: .58rem; letter-spacing: .18em; color: var(--ink-faint); text-transform: uppercase; }
  .target-nav { display: flex; gap: 2px; }
  .target-nav a {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-muted);
    padding: 8px 10px;
    border-radius: var(--pill);
    transition: color var(--state), background var(--state);
  }
  .target-nav a:hover { color: var(--ink); background: rgba(27,30,36,.05); }
  @media (max-width: 1080px) { .target-nav { display: none; } }

  .light-dial {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    border-radius: var(--pill);
    background: linear-gradient(145deg, var(--card-top), var(--card-bottom));
    box-shadow: 4px 4px 10px #c7cad3, -4px -4px 10px #fff;
  }
  .light-dial .dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #fff, #cfd2db 62%, #b9bdc8);
    box-shadow: inset 0 1px 2px rgba(255,255,255,.9), 1px 2px 4px rgba(27,30,36,.2);
    position: relative;
    flex: 0 0 auto;
  }
  .light-dial .dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px solid rgba(27,30,36,.12);
  }
  .light-dial output { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--ink-mid); min-width: 54px; }
  .light-dial input[type="range"] { width: 74px; height: 10px; }
  .light-dial input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; }
  @media (max-width: 560px) { .light-dial input[type="range"] { width: 52px; } }

  .skip {
    position: absolute; left: -9999px; top: 8px;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200;
  }
  .skip:focus { left: 12px; }
}

/* -------------------------------------------------------------- sections */
@layer sections {
  /* ---------- 00 capa ---------- */
  .cover {
    min-height: 100svh;
    display: grid;
    align-content: center;
    padding-top: 96px;
    padding-bottom: 56px;
    border-top: 0;
  }
  .cover .eyebrow { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 26px; }
  .cover .badge {
    font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
    padding: 7px 12px; border-radius: var(--pill);
    box-shadow: inset 0 0 0 1px rgba(27,30,36,.14); color: var(--ink-muted);
  }
  .cover h1 {
    font-size: clamp(3.1rem, 11.4vw, 10.4rem);
    letter-spacing: -.045em;
    line-height: .84;
    margin-bottom: 8px;
  }
  .cover h1 .thin { font-weight: 300; color: var(--ink-muted); }
  .cover .sub {
    max-width: 56ch;
    font-size: clamp(1.02rem, 1.5vw, 1.24rem);
    color: var(--ink-mid);
    margin-top: 22px;
  }
  .cover-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    gap: clamp(24px, 4vw, 60px);
    align-items: center;
  }
  @media (max-width: 900px) { .cover-grid { grid-template-columns: 1fr; } }

  /* o objeto da capa */
  .object-stage {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    position: relative;
    width: 100%;
  }
  .object-stage > div { width: 100%; display: grid; justify-items: center; }
  .object {
    border: 0;
    padding: 0;
    cursor: pointer;
    width: min(78%, 360px);
    aspect-ratio: 1;
    border-radius: 34%;
    background: linear-gradient(var(--grad, 145deg), var(--card-top), var(--card-bottom));
    box-shadow:
      var(--sx) var(--sy) var(--blur) var(--sh-dark),
      calc(-1 * var(--sx)) calc(-1 * var(--sy)) var(--blur) var(--sh-light),
      inset 0 1px 1px rgba(255,255,255,.9);
    transition: border-radius 600ms var(--ease), transform 700ms var(--ease);
    position: relative;
    display: grid;
    place-items: center;
  }
  .object::after {
    content: "";
    width: 26%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--ground-deep);
    box-shadow: inset 4px 4px 10px #c3c6d0, inset -4px -4px 10px #fff;
    transition: all 600ms var(--ease);
  }
  .object.down { border-radius: 26%; transform: scale(.985); }
  .object.down::after { width: 40%; border-radius: 26%; }
  .cover .hint {
    font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-faint); text-align: center; margin-top: 16px;
  }

  .scroll-cue {
    display: flex; align-items: center; gap: 12px;
    margin-top: clamp(40px, 6vw, 72px);
    font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
  }
  .scroll-cue::before {
    content: ""; width: 46px; height: 1px; background: rgba(27,30,36,.25);
  }

  /* ---------- 01 definição ---------- */
  .law {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid rgba(27,30,36,.09);
  }
  .law:last-child { border-bottom: 1px solid rgba(27,30,36,.09); }
  .law .n {
    font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--ink-faint); padding-top: 4px;
  }
  .law h4 { margin-bottom: 6px; }
  .law p { font-size: .93rem; color: var(--ink-mid); }

  /* ---------- 02 motor ---------- */
  .motor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: clamp(20px, 3vw, 40px);
    align-items: stretch;
  }
  .motor > * { min-width: 0; }
  @media (max-width: 940px) { .motor { grid-template-columns: 1fr; } }
  .motor-stage {
    min-width: 0;
    border-radius: var(--panel);
    background: var(--ground);
    box-shadow: inset 0 0 0 1px rgba(27,30,36,.06), inset 8px 8px 24px rgba(195,198,208,.55), inset -8px -8px 24px #fff;
    display: grid;
    place-items: center;
    padding: clamp(28px, 4vw, 56px);
    min-height: 380px;
    position: relative;
    overflow: hidden;
  }
  .motor-stage .stage-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(27,30,36,.14) 1px, transparent 0);
    background-size: 22px 22px;
    opacity: .5;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
  }
  .specimen {
    width: min(100%, 300px);
    aspect-ratio: 1;
    border-radius: 34%;
    background: linear-gradient(var(--grad, 145deg), var(--spec-top), var(--spec-bottom));
    box-shadow:
      var(--sx) var(--sy) var(--blur) var(--spec-dark),
      calc(-1 * var(--sx)) calc(-1 * var(--sy)) var(--blur) var(--spec-light);
    position: relative;
    display: grid;
    place-items: center;
    transition: border-radius 400ms var(--ease);
  }
  .specimen .core {
    width: 42%; aspect-ratio: 1; border-radius: 50%;
    background: inherit;
    box-shadow:
      inset calc(var(--sx-in) * .8) calc(var(--sy-in) * .8) calc(var(--blur) * .45) var(--spec-dark),
      inset calc(-1 * var(--sx-in) * .8) calc(-1 * var(--sy-in) * .8) calc(var(--blur) * .45) var(--spec-light);
  }
  .controls { display: grid; gap: 20px; align-content: start; min-width: 0; }
  .controls > *, .motor-code { min-width: 0; }
  .control label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 9px; }
  .control label b { color: var(--ink); font-weight: 500; }
  .motor-code pre { font-size: .68rem; max-height: 210px; }

  /* ---------- 03 história ---------- */
  .timeline { display: grid; gap: 0; }
  .trow {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(16px, 3vw, 40px);
    padding: 26px 0;
    border-top: 1px solid rgba(27,30,36,.1);
    align-items: start;
  }
  .trow:last-child { border-bottom: 1px solid rgba(27,30,36,.1); }
  .trow .yr { font-family: var(--mono); font-size: .82rem; color: var(--ink); letter-spacing: .02em; }
  .trow .ev b { display: block; font-family: var(--display); font-size: 1.18rem; letter-spacing: -.02em; margin-bottom: 4px; }
  .trow .ev span { font-size: .8rem; color: var(--ink-faint); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
  .trow p { font-size: .93rem; color: var(--ink-mid); }
  @media (max-width: 780px) {
    .trow { grid-template-columns: 72px minmax(0, 1fr); }
    .trow p { grid-column: 2; }
  }

  /* ---------- 04 interfaces ---------- */
  .ui-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
    padding: clamp(20px, 2.6vw, 32px);
    border-radius: 32px;
    background: var(--ground-deep);
    box-shadow: inset 10px 10px 26px rgba(195,198,208,.7), inset -10px -10px 26px #ffffff;
  }
  .ui-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px 6px;
  }
  .ui-dots { display: inline-flex; gap: 5px; }
  .ui-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c2c7d2; box-shadow: inset 0 1px 1px rgba(0,0,0,.15); }
  .ui-dots i:first-child { background: #e5b3b5; }
  .ui-dots i:nth-child(2) { background: #f0d6a0; }
  .ui-dots i:last-child { background: #b5d8c0; }
  .ui-live {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
  }
  .ui-live i { width: 6px; height: 6px; border-radius: 50%; background: #2fa84f; box-shadow: 0 0 6px rgba(47,168,79,.6); }
  .ui-card .val { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
  @media (max-width: 640px) { .ui-board { grid-template-columns: 1fr; } }
  .ui-card, .ui-panel {
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--card-top), var(--card-bottom));
    box-shadow: 6px 6px 15px #c6c9d2, -6px -6px 15px #ffffff;
  }
  .ui-card .tiny { font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
  .ui-card .val { font-family: var(--display); font-size: 1.85rem; letter-spacing: -.03em; margin-top: 6px; }
  .toggle {
    width: 50px; height: 29px; flex: 0 0 auto; border-radius: var(--pill); border: 0; cursor: pointer;
    background: var(--ground-deep); position: relative;
    box-shadow: inset 4px 4px 9px #c3c6d0, inset -4px -4px 9px #fff;
    transition: background var(--state);
  }
  .toggle::after {
    content: ""; position: absolute; top: 4px; left: 4px;
    width: 21px; height: 21px; border-radius: 50%;
    background: linear-gradient(145deg, #fff, #dfe1e7);
    box-shadow: 2px 2px 5px #c3c6d0, -1px -1px 3px #fff;
    transition: transform var(--state) var(--ease), background var(--state);
  }
  .toggle[aria-checked="true"] { background: #2a2d34; }
  .toggle[aria-checked="true"]::after { transform: translateX(21px); background: linear-gradient(145deg, #ffd35c, var(--accent-deep)); }

  /* ---------- 05/06 VR & AR (faixa escura) ---------- */
  .band-dark {
    background: #1b1e24;
    color: #e7e9ef;
    --ground: #1b1e24;
    --ground-deep: #16181e;
    --card-top: #22262e;
    --card-bottom: #1a1d23;
    --ink: #f2f4f8;
    --ink-mid: #b9bec9;
    --ink-muted: #8d94a1;
    --ink-faint: #6d7480;
    --sh-dark: #0e1014;
    --sh-light: #2b3038;
    --accent: #ffc42e;
    --accent-ink: #241c00;
    border-top-color: rgba(255,255,255,.07);
  }
  .band-dark .panel, .band-dark .card, .band-dark .ui-card {
    background: linear-gradient(145deg, #262b33, #191c22);
  }
  .band-dark .note { border-left-color: var(--accent); }
  .band-dark pre { background: #101216; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
  .band-dark ::selection { background: var(--accent); color: #241c00; }
  .band-dark .seg { background: #14161b; box-shadow: inset 3px 3px 8px #0b0d10, inset -3px -3px 8px #22262d; }

  .vr-stage {
    position: relative;
    min-height: 460px;
    border-radius: 30px;
    overflow: hidden;
    background:
      radial-gradient(120% 90% at 50% 8%, #2b3038 0%, #16181d 58%, #101216 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 30px 70px -30px rgba(0,0,0,.6);
    perspective: 1200px;
  }
  .vr-floor {
    position: absolute;
    left: 50%; bottom: 0;
    width: 190%; aspect-ratio: 1;
    transform: translateX(-50%) rotateX(74deg);
    transform-origin: bottom center;
    background-image:
      linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at 50% 100%, #000 8%, transparent 62%);
  }
  .vr-window {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
  }
  .vr-panel {
    width: min(78%, 420px);
    border-radius: 24px;
    padding: 22px;
    background: linear-gradient(160deg, rgba(46,52,62,.92), rgba(24,27,33,.94));
    box-shadow:
      0 26px 60px -18px rgba(0,0,0,.85),
      inset 0 1px 0 rgba(255,255,255,.14),
      inset 0 -18px 40px -20px rgba(0,0,0,.7);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 220ms ease-out;
  }
  .vr-glow {
    position: absolute;
    left: 50%; width: 70%; height: 26px;
    bottom: 26%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(255,196,46,.18), transparent 70%);
    filter: blur(14px);
    opacity: var(--imm, .6);
    transition: opacity 240ms;
  }
  .vr-rows { display: grid; gap: 11px; margin-top: 16px; }
  .vr-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px; border-radius: 14px;
    background: linear-gradient(145deg, #2c323b, #1e2228);
    box-shadow: 4px 4px 10px #0d0f13, -3px -3px 8px #2b313a;
    font-size: .84rem; color: #c4cad4;
  }
  .vr-row .led { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

  .ar-stage {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background:
      radial-gradient(80% 60% at 30% 20%, #cfd4dd 0%, #a8afbb 44%, #8b929e 100%);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
  }
  .ar-stage::after {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.16) 1px, transparent 0);
    background-size: 18px 18px;
    opacity: .45;
    mix-blend-mode: multiply;
  }
  .ar-table {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 34%;
    background: linear-gradient(180deg, #cdd2da, #a9b0bc);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 12px 24px -12px rgba(60,66,78,.35);
  }
  .ar-shadow {
    position: absolute;
    left: 12%; top: 62%;
    width: 46%; height: 30px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(24,28,34,.62), rgba(24,28,34,0) 72%);
    filter: blur(4px);
    transition: opacity 240ms ease, transform 240ms ease, filter 240ms ease;
  }
  .ar-card {
    position: absolute;
    left: 14%; top: 34%;
    width: 46%;
    padding: 16px;
    border-radius: 18px;
    background: rgba(240,242,246,.92);
    backdrop-filter: blur(6px);
    box-shadow: var(--ar-shadow);
    transition: box-shadow 260ms ease, transform 260ms ease;
  }
  .ar-card b { display: block; font-family: var(--display); font-size: 1.1rem; letter-spacing: -.02em; color: #1b1e24; }
  .ar-card span { font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: #6b717c; }

  /* ---------- 07 virtuais ---------- */
  .clay-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px;
  }
  @media (max-width: 860px) { .clay-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .clay-grid { grid-template-columns: 1fr; } }
  .clay-cell {
    border-radius: 28px;
    background: linear-gradient(150deg, #eceef3, #d9dce4);
    box-shadow:
      var(--sx) var(--sy) var(--blur) var(--sh-dark),
      calc(-1 * var(--sx)) calc(-1 * var(--sy)) var(--blur) #ffffff,
      inset 0 1px 2px rgba(255,255,255,.8);
    min-height: 210px;
    display: grid;
    place-items: center;
    padding: 22px;
    position: relative;
    overflow: hidden;
  }
  .clay-blob {
    width: 108px; aspect-ratio: 1;
    border-radius: 62% 38% 46% 54% / 55% 46% 54% 45%;
    background: radial-gradient(circle at 32% 26%, #ffffff 0%, #e6e9f0 38%, #c9cedb 78%, #b9bfcd 100%);
    box-shadow:
      inset -10px -14px 26px rgba(140,148,168,.5),
      inset 10px 12px 22px rgba(255,255,255,.95),
      14px 18px 30px rgba(160,167,183,.55);
  }
  .clay-blob.b { border-radius: 46% 54% 62% 38% / 46% 55% 45% 54%; }
  .clay-blob.c { border-radius: 50%; }

  /* ---------- 08 2D ---------- */
  .icon-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
    border-radius: 26px;
    background: var(--ground-deep);
    box-shadow: inset 8px 8px 20px rgba(195,198,208,.65), inset -8px -8px 20px #fff;
  }
  @media (max-width: 720px) { .icon-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .icon-cell {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--ground);
    position: relative;
    transition: box-shadow 260ms, background 260ms, filter 260ms;
  }
  .icon-cell .glyph {
    width: 46%; aspect-ratio: 1;
    display: grid; place-items: center;
    border-radius: 26%;
    font-family: var(--display); font-size: 1.5rem; color: var(--ink);
  }
  /* quatro tratamentos, mesma silhueta */
  .icon-board[data-render="flat"] .glyph { background: #cfd3dc; border-radius: 12px; }
  .icon-board[data-render="flat"] .glyph { box-shadow: none; }
  .icon-board[data-render="neo"] .glyph {
    background: linear-gradient(145deg, #f6f7fa, #e0e2e9);
    box-shadow: 6px 6px 14px #c4c8d2, -6px -6px 14px #fff;
  }
  .icon-board[data-render="clay"] .glyph {
    border-radius: 40%;
    background: radial-gradient(circle at 32% 26%, #fff, #e9ecf3 46%, #cdd2de 86%);
    box-shadow: inset -8px -10px 18px rgba(150,158,178,.55), inset 8px 8px 16px #fff, 8px 12px 20px rgba(160,167,183,.5);
  }
  .icon-board[data-render="print"] .glyph {
    background: #e9ebf0; color: #6a6f7a; border-radius: 14px;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 rgba(140,146,160,.55), 0 0 0 .5px rgba(140,146,160,.3);
    text-shadow: 0 1px 0 #fff, 0 -1px 0 rgba(120,126,140,.55);
  }
  .icon-board[data-render="print"] .glyph { transform: translateZ(0); }

  /* ---------- 09 impressão ---------- */
  .paper {
    position: relative;
    border-radius: 8px;
    padding: clamp(26px, 4vw, 44px);
    color: #2a2d34;
    background:
      radial-gradient(120% 120% at 20% 10%, #fdfcf8 0%, #f4f2ec 52%, #e9e6df 100%);
    box-shadow: 0 24px 50px -22px rgba(80,70,50,.45), inset 0 0 0 1px rgba(120,110,90,.14);
    overflow: hidden;
  }
  .paper::before {
    content: "";
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='4'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23p)' opacity='.22'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
    opacity: .5;
    pointer-events: none;
  }
  .paper h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); color: #23262c; }
  .paper .finish-title {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: clamp(1.9rem, 4.4vw, 3.2rem);
    transition: all 400ms ease;
  }
  .paper[data-finish="emboss"] .finish-title { color: #e6e2d8; text-shadow: 0 2px 0 #fffdf7, 0 -1px 1px rgba(96,88,70,.9), 0 3px 4px rgba(110,102,84,.45), 0 0 1px rgba(120,112,94,.6); }
  .paper[data-finish="deboss"] .finish-title { color: #ddd9d0; text-shadow: 0 -1px 0 #fff, 0 1px 0 rgba(110,104,92,.8), 0 1px 2px rgba(110,104,92,.25); }
  .paper[data-finish="spot"] .finish-title { color: #2a2d34; text-shadow: 0 0 1px rgba(255,255,255,1); background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.85) 48%, rgba(255,255,255,0) 62%); -webkit-background-clip: text; background-clip: text; }
  .paper[data-finish="foil"] .finish-title { background: linear-gradient(96deg, #b59049, #f2e2b6 24%, #a67c33 42%, #f7ecc9 58%, #b59049 78%, #e8d4a2); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .paper[data-finish="matte"] .finish-title { color: #33363c; text-shadow: none; }
  .paper .finish-meta { font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: #8b8878; }

  /* ---------- 10 arquitetura ---------- */
  .arch-svg { width: 100%; height: auto; }
  .arch-fig {
    border-radius: 24px;
    background: linear-gradient(160deg, #eef0f4, #dde0e8);
    box-shadow: inset 0 0 0 1px rgba(27,30,36,.06), var(--sx) var(--sy) var(--blur) var(--sh-dark), calc(-1 * var(--sx)) calc(-1 * var(--sy)) var(--blur) #fff;
    padding: clamp(14px, 2vw, 24px);
  }

  /* ---------- 11 carro ---------- */
  .car-stage {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: radial-gradient(90% 70% at 50% 20%, #f2f3f7, #dfe2e9 62%, #d2d6df 100%);
    box-shadow: inset 0 0 0 1px rgba(27,30,36,.07), inset 0 -40px 80px -40px rgba(27,30,36,.18);
    padding: clamp(16px, 3vw, 34px);
  }
  .car-stage svg { width: 100%; height: auto; }
  .hmi {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(160deg, #23272e, #14171b);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 14px 20px 40px -18px rgba(20,22,27,.6);
  }
  .hmi .hmi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .hmi button {
    border: 0; cursor: pointer;
    border-radius: 14px;
    padding: 14px 6px;
    background: linear-gradient(160deg, #2b3038, #1a1d22);
    box-shadow: 4px 4px 9px #0c0e11, -3px -3px 8px #2a2f37;
    color: #c3c9d3;
    font-family: var(--mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase;
    transition: box-shadow var(--press), color var(--state);
  }
  .hmi button[aria-pressed="true"] {
    color: #ffc42e;
    box-shadow: inset 3px 3px 8px #0a0c0f, inset -2px -2px 6px #272c34;
  }

  /* ---------- 12 produto ---------- */
  .obj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  @media (max-width: 900px) { .obj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 480px) { .obj-grid { grid-template-columns: 1fr; } }
  .obj {
    border-radius: 24px;
    padding: 20px;
    background: linear-gradient(150deg, #eef0f4, #dde0e8);
    box-shadow: 8px 10px 24px rgba(190,195,206,.75), -8px -10px 24px #fff;
    display: grid; gap: 14px; justify-items: center;
  }
  .obj .shape { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
  .obj .cap { font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); text-align: center; }
  .grille {
    width: 62%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #fbfcfe, #dfe3ea 46%, #c3c9d4 88%);
    box-shadow: inset -8px -10px 22px rgba(150,158,178,.6), inset 8px 8px 20px rgba(255,255,255,.9), 10px 14px 26px rgba(170,177,190,.55);
    display: grid; place-items: center;
  }
  .grille .hole {
    width: 46%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 40% 34%, #3a3f48, #14171b 70%);
    box-shadow: inset 0 2px 6px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.5);
  }
  .slab {
    width: 54%; aspect-ratio: 2/1; border-radius: 18px;
    background: linear-gradient(150deg, #f0f2f6, #cfd4de);
    box-shadow: inset 0 1px 2px #fff, 8px 12px 24px rgba(160,168,184,.6);
    display: grid; place-items: center;
  }
  .slab .slot { width: 62%; height: 6px; border-radius: 3px; background: #b6bcc9; box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
  .grip { width: 58%; aspect-ratio: .8; border-radius: 48% 48% 42% 42%; background: radial-gradient(circle at 34% 26%, #fff, #e4e8f0 44%, #c6ccda 92%); box-shadow: inset -10px -12px 24px rgba(150,158,178,.55), inset 8px 8px 18px #fff, 10px 14px 26px rgba(170,177,190,.5); }

  /* ---------- 13 crítica ---------- */
  .aside-warn {
    border-radius: 24px;
    padding: 24px 26px;
    background: linear-gradient(150deg, #fbf3dd, #f4e6c2);
    box-shadow: 8px 10px 24px rgba(199,188,160,.6), -8px -10px 24px #fffdf6, inset 0 0 0 1px rgba(180,150,60,.15);
  }
  .aside-warn h4 { color: #5a4500; }
  .aside-warn p { color: #6b5306; font-size: .92rem; }
  .aside-warn .mono { color: #96700a; }

  .checklist { display: grid; gap: 0; }
  .checklist li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(27,30,36,.09);
    font-size: .93rem;
    color: var(--ink-mid);
  }
  .checklist li:last-child { border-bottom: 1px solid rgba(27,30,36,.09); }
  .checklist li::before {
    content: "•";
    font-size: 1.1rem;
    line-height: 1.2;
    font-family: var(--mono);
    color: var(--accent-deep);
  }

  /* ---------- 14 sistema ---------- */
  .swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px; }
  .sw {
    border-radius: 18px; padding: 12px; display: grid; gap: 10px;
    background: linear-gradient(145deg, var(--card-top), var(--card-bottom));
    box-shadow: 5px 6px 14px rgba(195,198,208,.8), -5px -6px 14px #fff;
    cursor: pointer; border: 0; text-align: left;
  }
  .sw .chip { height: 46px; border-radius: 12px; box-shadow: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -1px 2px rgba(0,0,0,.15); }
  .sw .name { font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
  .sw .hex { font-family: var(--mono); font-size: .72rem; color: var(--ink); }

  /* ---------- 15 fontes ---------- */
  .refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 4vw, 60px); }
  @media (max-width: 760px) { .refs { grid-template-columns: 1fr; } }
  .ref {
    display: grid; gap: 3px;
    padding: 13px 0;
    border-top: 1px solid rgba(27,30,36,.08);
    font-size: .82rem;
  }
  .ref b { font-weight: 600; color: var(--ink); }
  .ref span { color: var(--ink-faint); font-size: .78rem; }
  .ref a { color: var(--ink-muted); text-decoration: none; font-family: var(--mono); font-size: .68rem; word-break: break-all; }
  .ref a:hover { color: var(--accent-deep); }

  .footer {
    padding-block: 56px 40px;
    border-top: 1px solid rgba(27,30,36,.1);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    font-size: .84rem;
    color: var(--ink-muted);
  }
  @media (max-width: 720px) { .footer { grid-template-columns: 1fr; } }

  .download {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
    text-decoration: none; padding: 12px 18px; border-radius: var(--pill);
    background: linear-gradient(145deg, var(--card-top), var(--card-bottom));
    box-shadow: 4px 4px 10px #c7cad3, -4px -4px 10px #fff;
    color: var(--ink);
  }
  .download:hover { box-shadow: 2px 2px 8px #c7cad3, -2px -2px 8px #fff; }
}

/* ---------------------------------------------------------------- motion */
@layer motion {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
  .reveal.in { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  }
}
