/* ==========================================================================
   Advance/OF-DFT product site
   Light gray + silver base with a restrained indigo accent (logo colours).
   No external fonts, no third-party CSS.
   ========================================================================== */

:root {
  /* accent: logo indigo, used sparingly */
  --indigo-800: #2f1c52;
  --indigo-700: #40266e;
  --indigo-600: #4d2f80;
  --indigo-500: #664598;
  --indigo-300: #a99bc8;
  --indigo-100: #e8e5f0;
  --indigo-50:  #f2f0f7;

  /* silver / graphite scale */
  --silver-25:  #fafbfb;
  --silver-50:  #f6f7f8;
  --silver-100: #eff0f2;
  --silver-150: #e8eaed;
  --silver-200: #dfe1e5;
  --silver-300: #cdd0d6;
  --silver-400: #adb2bb;
  --silver-500: #868c97;
  --silver-600: #626772;
  --silver-700: #454a54;
  --silver-800: #2c3038;
  --silver-900: #1d2026;
  --silver-950: #14161a;

  --bg: var(--silver-100);          /* page background */
  --bg-soft: var(--silver-50);      /* "white" sections: a very light gray, never pure white */
  --surface: #fbfbfc;               /* cards */
  --ink: var(--silver-950);
  --ink-2: #3c4049;
  --muted: #646a75;
  --line: var(--silver-200);
  --metal: linear-gradient(180deg, #fdfdfe 0%, #eceef1 100%);
  --metal-line: linear-gradient(90deg, rgba(173, 178, 187, 0) 0%, #adb2bb 18%, #f4f5f6 50%, #adb2bb 82%, rgba(173, 178, 187, 0) 100%);

  --font-sans: "Helvetica Neue", "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
               "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Cascadia Code", Consolas, Menlo,
               "Liberation Mono", monospace;

  --radius: 6px;
  --radius-sm: 3px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(20, 22, 26, .06), 0 6px 16px -10px rgba(20, 22, 26, .18);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 4px rgba(20, 22, 26, .06), 0 22px 40px -22px rgba(20, 22, 26, .38);
  --header-h: 68px;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
}
:lang(en) body, body:lang(en) { line-height: 1.7; font-feature-settings: normal; }

img, svg, video, canvas { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--indigo-600); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--indigo-500); }
:focus-visible { outline: 2px solid var(--indigo-500); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--silver-300); color: var(--silver-950); }

h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: .01em; }
:lang(en) h1, :lang(en) h2, :lang(en) h3 { letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
code, pre, kbd { font-family: var(--font-mono); }
address { font-style: normal; }
hr { border: 0; height: 1px; background: var(--metal-line); margin: 3rem 0; }
figure { margin: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: calc(860px + var(--gutter) * 2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-2); }
.skip:focus { top: 16px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--font-mono); font-size: .76rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--silver-600);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--indigo-600); }
.center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: var(--ink-2); }
.i-ext { vertical-align: -1px; margin-left: 2px; opacity: .75; }
.i-dl { vertical-align: -2px; margin-left: 2px; opacity: .8; }
.i-arrow { vertical-align: -2px; margin-left: 6px; transition: transform .2s; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 46px; padding: 10px 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .94rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover .i-arrow { transform: translateX(3px); }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: .84rem; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1rem; }
.btn-primary { background: var(--silver-900); color: #fff; border-color: var(--silver-900); box-shadow: inset 0 -2px 0 var(--indigo-500); }
.btn-primary:hover { background: var(--indigo-700); border-color: var(--indigo-700); color: #fff; transform: translateY(-1px); }
.btn-ghost, .btn-light { background: var(--metal); color: var(--ink); border-color: var(--silver-300); box-shadow: var(--shadow-1); }
.btn-ghost:hover, .btn-light:hover { border-color: var(--silver-500); color: var(--ink); transform: translateY(-1px); }
.btn-outline-light { border-color: var(--silver-400); color: var(--ink); background: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { border-color: var(--silver-600); color: var(--ink); background: rgba(255, 255, 255, .7); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.section-more { margin-top: clamp(28px, 4vw, 48px); margin-bottom: 0; }
.hero .btn-light { background: var(--silver-900); color: #fff; border-color: var(--silver-900); box-shadow: inset 0 -2px 0 var(--indigo-500); }
.hero .btn-light:hover { background: var(--indigo-700); border-color: var(--indigo-700); color: #fff; }

/* on dark (graphite) blocks */
.section-dark .btn-light, .cta-band .btn-light { background: var(--metal); color: var(--ink); border-color: transparent; }
.section-dark .btn-outline-light, .cta-band .btn-outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .04); }
.section-dark .btn-outline-light:hover, .cta-band .btn-outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .7); }

.tag {
  display: inline-block; padding: 2px 9px; border-radius: 2px; font-size: .7rem; font-weight: 600;
  line-height: 1.6; letter-spacing: .05em; background: var(--silver-150); color: var(--silver-700); border: 1px solid var(--silver-300); white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.news-meta { display: flex; align-items: center; gap: 12px; margin: 0 0 1em; }
.news-meta time { font-family: var(--font-mono); font-size: .86rem; color: var(--muted); }
.prose .note { margin-top: -.8em; font-size: .84rem; color: var(--muted); }
.tag-todo { background: #b3261e; border-color: #b3261e; color: #fff; letter-spacing: .12em; }
.tag-dev { background: var(--indigo-700); border-color: var(--indigo-700); color: #fff; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); color: var(--ink);
  transition: background-color .25s, box-shadow .25s;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; letter-spacing: -.01em; line-height: 1; white-space: nowrap; color: var(--silver-950); }
.brand-name b { font-weight: 900; }
.brand .logo-on-dark { display: none; }

.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none;
  font-size: .9rem; font-weight: 500; white-space: nowrap; transition: color .2s, background-color .2s;
}
.site-nav li a:hover { color: var(--ink); background: rgba(20, 22, 26, .06); }
.site-nav li a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--indigo-600); border-radius: 0; }
.nav-tools { display: flex; align-items: center; gap: 14px; flex: none; }
.nav-tools .btn, .lang a { white-space: nowrap; }
/* medium widths: tighter menu so that it stays on one line until the menu button takes over */
@media (min-width: 1061px) and (max-width: 1260px) {
  .header-inner { gap: 16px; }
  .site-nav { gap: 14px; }
  .site-nav li a { padding: 8px 8px; font-size: .86rem; }
  .nav-tools { gap: 10px; }
}

.lang { display: inline-flex; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--silver-400); font-size: .74rem; font-weight: 700; line-height: 1; }
.lang a { padding: 7px 9px; color: var(--silver-600); text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--silver-800); color: #fff; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; margin: 0 auto; background: currentColor; border-radius: 1px;
  transition: transform .25s, opacity .2s; content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-header.is-scrolled {
  background: rgba(246, 247, 248, .88);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--silver-300), 0 10px 24px -18px rgba(20, 22, 26, .5);
}

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch;
    gap: 16px; margin: 0; padding: 12px var(--gutter) 24px; background: var(--silver-50); border-top: 1px solid var(--silver-300);
    box-shadow: 0 24px 40px -20px rgba(20, 22, 26, .45); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a { padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--silver-200); border-radius: 0; }
  .site-nav li a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--indigo-600); padding-left: 14px; }
  .nav-tools { justify-content: space-between; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-height: min(100vh, 960px); min-height: min(100svh, 960px);
  padding: calc(var(--header-h) + 48px) 0 clamp(40px, 7vh, 76px); overflow: hidden;
  background: var(--silver-150) url("../img/hero-bg.svg?v=89811ea589") center / cover no-repeat;
  border-bottom: 1px solid var(--silver-300);
}
.hero-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(246, 247, 248, .9) 0%, rgba(246, 247, 248, .62) 34%, rgba(246, 247, 248, 0) 66%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 5.2rem); line-height: 1.12; font-weight: 800; letter-spacing: .005em; margin-bottom: 24px; color: var(--silver-950);
}
:lang(en) .hero h1 { font-size: clamp(1.95rem, 4.5vw, 4rem); letter-spacing: -.03em; line-height: 1.08; }
@media (min-width: 480px) { :lang(en) .hero h1 { white-space: nowrap; } }
.hero h1 em { font-style: normal; color: var(--indigo-700); }
.hero .lead { max-width: 38em; color: var(--ink-2); margin-bottom: 32px; }
.hero-news {
  padding: 20px 22px 14px; border: 1px solid var(--silver-300); border-top: 2px solid var(--silver-900); border-radius: var(--radius-sm);
  background: rgba(251, 251, 252, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-2);
}
.hero-news h2 { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.hero-news h2 a { font-family: var(--font-sans); letter-spacing: 0; text-transform: none; font-size: .8rem; font-weight: 500; color: var(--silver-600); text-decoration: none; }
.hero-news h2 a:hover { color: var(--indigo-600); }

.news-compact { list-style: none; margin: 0; padding: 0; }
.news-compact li + li { border-top: 1px solid var(--silver-200); }
.news-compact a { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 10px; align-items: center; padding: 11px 0; color: inherit; text-decoration: none; }
.news-compact time { font-family: var(--font-mono); font-size: .76rem; color: var(--silver-600); }
.news-compact .news-title { grid-column: 1 / -1; font-size: .92rem; font-weight: 600; line-height: 1.5; transition: color .2s; }
.news-compact a:hover .news-title { color: var(--indigo-600); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-veil { background: linear-gradient(0deg, rgba(246, 247, 248, .94) 0%, rgba(246, 247, 248, .8) 60%, rgba(246, 247, 248, .45) 100%); }
}

/* -------------------------------------------------------------- page hero */
.page-hero {
  position: relative; isolation: isolate; padding: calc(var(--header-h) + clamp(44px, 7vw, 84px)) 0 clamp(44px, 6vw, 76px); overflow: hidden;
  background: var(--silver-150) url("../img/hero-bg.svg?v=89811ea589") right center / cover no-repeat; border-bottom: 1px solid var(--silver-300);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(246, 247, 248, .96) 0%, rgba(246, 247, 248, .84) 45%, rgba(246, 247, 248, .2) 100%);
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; margin-bottom: 16px; }
.page-hero .lead { max-width: 46em; margin: 0; }
.page-hero code { background: rgba(255, 255, 255, .7); }

/* -------------------------------------------------------------- sections */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.section-white { background: var(--bg-soft); }
.section-tint { background: linear-gradient(180deg, var(--silver-150), var(--silver-100)); border-top: 1px solid var(--silver-200); border-bottom: 1px solid var(--silver-200); }
.section-dark {
  position: relative; isolation: isolate; color: #fff;
  background: linear-gradient(160deg, var(--silver-950) 0%, var(--silver-900) 55%, #262a32 100%);
}
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: linear-gradient(120deg, transparent 10%, #000 100%); mask-image: linear-gradient(120deg, transparent 10%, #000 100%);
}
.section-dark .eyebrow { color: var(--silver-400); }
.section-dark .eyebrow::before { background: var(--silver-400); }
.section-dark .lead, .section-dark p { color: rgba(255, 255, 255, .78); }
.section-dark a:not(.btn) { color: #fff; }
.section-head { max-width: 46em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.section-head p:last-child { margin-bottom: 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--silver-300); border: 1px solid var(--silver-300); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-1); }
.stat { background: var(--metal); padding: 28px 24px; }
.stat-value { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; color: var(--silver-900); }
.stat-value small { font-size: .5em; font-weight: 900; margin-left: 2px; }
.stat-label { margin: 12px 0 4px; font-weight: 700; padding-top: 10px; border-top: 2px solid var(--indigo-600); display: inline-block; }
.stat-note { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* feature rows */
.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 112px); }
.feature--flip .feature-media, .feature--flip .feature-code { order: -1; }
.feature-text, .feature-code, .doc-body, .article > * { min-width: 0; }
.feature-num { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--silver-500); margin-bottom: 12px; }
.feature h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 800; margin-bottom: 16px; }
.feature p { color: var(--ink-2); }
.feature ul { color: var(--ink-2); padding-left: 1.2em; }
.feature li { margin-bottom: .3em; }
.feature-media { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--silver-300); box-shadow: var(--shadow-2); padding: clamp(14px, 2.2vw, 24px); }
.feature-media.is-dark { background: linear-gradient(160deg, var(--silver-950), var(--silver-800)); border-color: var(--silver-800); }
.feature-media img, .feature-media svg { display: block; width: 100%; height: auto; border-radius: 2px; }
.feature-media figcaption, .media-cap { margin: 12px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.6; }
.feature-media.is-dark .media-cap { color: rgba(255, 255, 255, .62); }
.feature-code .code { margin: 0; }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature--flip .feature-media, .feature--flip .feature-code { order: 0; } }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--silver-300); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--silver-500); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--silver-200); overflow: hidden; }
.card-media img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.card-media.is-dark { background: #696969; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card-body h3 { font-size: 1.04rem; line-height: 1.5; margin-bottom: 8px; }
.card-body p { font-size: .88rem; color: var(--ink-2); line-height: 1.75; margin-bottom: 16px; }
.card-more { margin-top: auto; font-size: .84rem; font-weight: 700; color: var(--indigo-600); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--silver-300); border-radius: var(--radius); padding: 24px 22px; }
a.tile { text-decoration: none; color: inherit; }
.tile h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tile p { font-size: .9rem; color: var(--ink-2); margin: 0; line-height: 1.75; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.5em; border: 1px solid var(--silver-300); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-1); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.6; }
th, td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--silver-200); }
thead th { background: linear-gradient(180deg, var(--silver-100), var(--silver-150)); color: var(--silver-800); font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--silver-300); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; white-space: nowrap; color: var(--ink); }
@media (max-width: 700px) { .table-wrap table { min-width: 600px; } .table-wrap table.compare { min-width: 520px; } }
td code, th code, p code, li code, dd code { font-size: .88em; padding: .12em .42em; border-radius: 2px; background: var(--silver-100); color: var(--silver-800); border: 1px solid var(--silver-300); overflow-wrap: anywhere; }
table .is-us { background: var(--indigo-50); font-weight: 700; color: var(--indigo-800); }
thead th.is-us { background: var(--silver-900); color: #fff; box-shadow: inset 0 -2px 0 var(--indigo-500); }
table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { font-size: .82rem; color: var(--muted); margin-top: -.6em; }
.section-dark .table-note { color: rgba(255, 255, 255, .6); margin-top: 1.2em; }

.spec { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; margin: 0; border: 1px solid var(--silver-300); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1); }
.spec dt, .spec dd { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--silver-200); }
.spec dt { font-weight: 700; background: var(--silver-100); color: var(--silver-800); border-right: 1px solid var(--silver-200); }
.spec dt:last-of-type, .spec dd:last-of-type { border-bottom: 0; }
@media (max-width: 640px) { .spec { grid-template-columns: minmax(0, 1fr); } .spec dt { border-bottom: 0; border-right: 0; padding-bottom: 4px; } .spec dd { padding-top: 4px; } }

/* code */
.code { margin: 0 0 1.6em; border-radius: var(--radius); overflow: hidden; background: #191b20; border: 1px solid #2e323a; box-shadow: var(--shadow-2); }
.code figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 18px; background: #22252b; border-bottom: 1px solid #2e323a; color: #aab0bb; font-family: var(--font-mono); font-size: .78rem; }
.code-lang { text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.code-actions { display: inline-flex; gap: 6px; }
.code-btn { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; border-radius: 2px; border: 1px solid #454a54; background: transparent; color: #cdd0d6; font: 600 .74rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.code-btn:hover { background: #454a54; color: #fff; }
.code-btn.is-done { background: #2f6f5a; border-color: #2f6f5a; color: #fff; }
.code pre { margin: 0; padding: 18px 20px 20px; overflow-x: auto; color: #e4e6ea; font-size: .84rem; line-height: 1.7; tab-size: 4; -webkit-overflow-scrolling: touch; }
.code pre:focus-visible { outline-offset: -3px; }
.code code { font-family: inherit; white-space: pre; overflow-wrap: normal; }
.code .c { color: #7f8794; font-style: italic; }
.code .s { color: #a9d6bd; }
.code .n, .code .k2 { color: #e6c491; }
.code .k { color: #bcaaf0; font-weight: 600; }
.code .f { color: #9cc7ee; font-weight: 600; }
.code .b, .code .call { color: #a9c9ea; }
.code[data-lang="text"] pre, .code[data-lang="console"] pre { color: #cdd0d6; }

/* video */
/* two videos side by side (stacked on narrow screens) */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.video-grid-single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899px) { .video-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.video-item { margin: 0; min-width: 0; }
.video-item figcaption { margin-top: 20px; }
.video-kicker { margin: 0 0 6px; font-family: var(--font-mono); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--silver-400); }
.video-kicker span { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .3); letter-spacing: .08em; text-transform: none; }
.video-item h3 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.4; color: #fff; }
.video-item figcaption p:last-child { margin: 0; color: rgba(255, 255, 255, .75); font-size: .95rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0c0d10; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14); }
.video-frame video, .video-frame iframe, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-empty { display: flex; align-items: center; justify-content: center; text-align: center; background: radial-gradient(70% 90% at 50% 40%, #30343d 0%, #121317 72%); }
.video-empty::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 75%); }
.video-empty-inner { position: relative; padding: 24px; max-width: 30em; }
.video-empty-inner p { margin: 0; color: rgba(255, 255, 255, .75); font-size: .95rem; }
.video-badge { display: inline-block; margin-bottom: 14px; padding: 6px 16px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .45); color: #fff; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.video-play { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: #fff; transition: transform .2s; }
.video-play:hover { transform: scale(1.06); }
.video-play svg circle { fill: rgba(29, 32, 38, .82); stroke: rgba(255, 255, 255, .7); }
.video-play svg path { fill: #fff; }

/* compare (KS vs AOF vs MLIP) */
.compare th:first-child, .compare td:first-child { width: 22%; }
.compare thead th { text-align: center; }
.compare td { text-align: center; }
.compare tbody th { text-align: left; }

/* CTA band */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); padding: clamp(36px, 6vw, 68px); color: #fff;
  background: linear-gradient(135deg, var(--silver-950) 0%, var(--silver-800) 62%, #3a3550 100%);
  border-left: 4px solid var(--indigo-500); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; box-shadow: var(--shadow-2);
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, .05) 58% 74%, transparent 74%); }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 40em; }
@media (max-width: 800px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* news page */
.news-year { margin-bottom: 48px; }
.news-year-label { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--silver-400); letter-spacing: -.01em; margin-bottom: 16px; }
.news-item { background: var(--surface); border: 1px solid var(--silver-300); border-left: 3px solid var(--silver-700); border-radius: var(--radius-sm); padding: 24px 28px; margin-bottom: 14px; box-shadow: var(--shadow-1); }
.news-item:target { border-left-color: var(--indigo-600); box-shadow: 0 0 0 3px var(--indigo-100), var(--shadow-1); }
.news-item header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.news-item time { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.news-item h3 { font-size: 1.14rem; line-height: 1.55; margin-bottom: 10px; }
.news-item .prose p { color: var(--ink-2); font-size: .94rem; }
.news-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; padding: 0; font-size: .88rem; font-weight: 600; }

/* prose */
.prose { max-width: 50em; }
.prose h2 { font-size: clamp(1.35rem, 2.3vw, 1.7rem); font-weight: 800; margin: 2.6em 0 .8em; padding-top: .9em; border-top: 1px solid var(--silver-300); }
.prose h3 { font-size: 1.14rem; margin: 2em 0 .6em; }
.prose h4 { font-size: 1rem; margin: 1.6em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose > h2:first-child { border-top: 0; padding-top: 0; }
.prose li { margin-bottom: .35em; }
.fig { margin: 0 0 1.6em; padding: 16px; background: #fff; border: 1px solid var(--silver-300); border-radius: var(--radius-sm); box-shadow: var(--shadow-1); }
.fig img { margin: 0 auto; }
.fig figcaption { margin-top: 10px; font-size: .82rem; color: var(--muted); text-align: center; line-height: 1.6; }
.callout { margin: 0 0 1.5em; padding: 14px 20px; border-radius: var(--radius-sm); border: 1px solid var(--silver-300); border-left: 3px solid var(--silver-600); background: var(--silver-50); font-size: .92rem; }
.callout p { margin: 0; }
.callout-tip { border-left-color: #3f9d7c; }
.callout-warning { border-color: #e6cf9f; border-left-color: #c8891c; background: #fbf6ea; }
.callout-dev { border-color: var(--indigo-300); border-left: 4px solid var(--indigo-700); background: var(--indigo-50); }
.callout-dev p::before { content: "DEVELOPMENT VERSION"; display: inline-block; margin-right: 10px; padding: 1px 8px; border-radius: 2px; background: var(--indigo-700); color: #fff; font: 700 .7rem/1.7 var(--font-mono); letter-spacing: .1em; vertical-align: 1px; }
/* unresolved items: deliberately loud so that they are not overlooked before publishing */
.callout-todo { border: 2px solid #b3261e; border-left-width: 10px; background: #fdecea; color: #5c110c; font-weight: 600; box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.callout-todo p::before { content: "TODO"; display: inline-block; margin-right: 10px; padding: 1px 10px; border-radius: 2px; background: #b3261e; color: #fff; font: 800 .78rem/1.7 var(--font-mono); letter-spacing: .14em; vertical-align: 1px; }
.callout-todo code { background: #fff; border-color: #e3a6a1; color: #5c110c; }

/* math */
math { font-size: 1.12em; }
mi[mathvariant="bold"] { font-weight: 700; font-style: normal; }
.eq { display: block; margin: 0 0 1.4em; padding: 18px 20px; overflow-x: auto; text-align: center; background: var(--surface); border: 1px solid var(--silver-300); border-radius: var(--radius-sm); }
.eq math { font-size: 1.2em; }

/* two-column article with local TOC */
.article { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .88rem; }
.toc h2 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--silver-300); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.5; }
.toc a:hover { color: var(--ink); border-left-color: var(--indigo-600); }
@media (max-width: 900px) { .article { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }

/* examples: index */
.ex-filter { margin-bottom: 40px; }
.ex-filter input { width: 100%; max-width: 560px; min-height: 48px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--silver-400); background: var(--surface); font: inherit; color: inherit; box-shadow: var(--shadow-1); }
.ex-filter input:focus { outline: 2px solid var(--indigo-500); outline-offset: 2px; border-color: var(--indigo-500); }
.ex-empty { margin: 20px 0 0; color: var(--muted); }
.ex-cat { margin-bottom: 56px; }
.ex-cat header { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--silver-300); }
.ex-cat h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.ex-cat header p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.ex-card { position: relative; display: flex; flex-direction: column; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--silver-300); color: inherit; text-decoration: none; box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s, border-color .2s; }
.ex-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--silver-600); color: inherit; }
.ex-card h3 { font-size: 1rem; line-height: 1.5; margin-bottom: 6px; color: var(--ink); }
.ex-card p { font-size: .86rem; line-height: 1.7; color: var(--ink-2); margin-bottom: 14px; }
.ex-flags { display: flex; gap: 6px; margin-bottom: 8px; }
.ex-apis { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ex-apis code { font-size: .72rem; padding: 2px 8px; border-radius: 2px; background: var(--silver-100); border: 1px solid var(--silver-300); color: var(--silver-700); }
.ex-howto { max-width: none; margin-bottom: 28px; }

/* examples: page */
.doc { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-top: calc(var(--header-h) + 40px); padding-bottom: var(--section); }
.doc-nav { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-right: 8px; font-size: .86rem; }
.doc-nav-home { display: inline-block; margin-bottom: 16px; font-weight: 700; text-decoration: none; }
.doc-nav-toggle > summary { display: none; }
.doc-nav-group { margin-bottom: 20px; }
.doc-nav-group h2 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.doc-nav-group ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--silver-300); }
.doc-nav-group a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.5; }
.doc-nav-group a:hover { color: var(--ink); border-left-color: var(--silver-500); }
.doc-nav-group a[aria-current="page"] { color: var(--ink); font-weight: 700; border-left-color: var(--indigo-600); background: linear-gradient(90deg, var(--silver-200), transparent); }
.doc-body h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.doc-body .lead { margin-bottom: 24px; }
.doc-body .prose { max-width: none; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0 0 32px; padding: 16px 20px; border: 1px solid var(--silver-300); border-radius: var(--radius-sm); background: var(--metal); font-size: .86rem; box-shadow: var(--shadow-1); }
.ex-meta dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ex-meta dd { margin: 2px 0 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { display: block; padding: 16px 20px; border: 1px solid var(--silver-300); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; line-height: 1.5; box-shadow: var(--shadow-1); transition: border-color .2s, box-shadow .2s; }
.pager a:hover { border-color: var(--silver-600); box-shadow: var(--shadow-2); }
.pager a span { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pager-next { text-align: right; }
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-nav { position: static; max-height: none; padding: 0; }
  .doc-nav-toggle { border: 1px solid var(--silver-300); border-radius: var(--radius-sm); background: var(--surface); padding: 0 16px; }
  .doc-nav-toggle > summary { display: block; padding: 12px 0; font-weight: 700; cursor: pointer; }
  .doc-nav-toggle[open] { padding-bottom: 8px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
}

/* periodic table */
.periodic { margin: 0; }
.pt-grid { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: clamp(2px, .4vw, 4px); }
.pt-el, .pt-gap { aspect-ratio: 1; }
/* both kinds of supported elements are purple (pale / deep), never grey or white: only unsupported ones are left empty */
.pt-el { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 3px; background: linear-gradient(150deg, #efebf8, #d5cbeb); border: 1px solid #a898cb; color: var(--indigo-800); font-size: clamp(.5rem, 1.25vw, .9rem); font-weight: 700; line-height: 1; }
.pt-el b { display: none; position: absolute; left: 4px; top: 3px; font-family: var(--font-mono); font-size: .56rem; font-weight: 400; color: #664598; }
@media (min-width: 900px) { .pt-el { padding-top: 7px; } .pt-el b { display: block; } .pt-el.pt-range { padding-top: 0; } }
.pt-el.pt-as { background: linear-gradient(150deg, #5a3a8f, #35205d); border-color: var(--indigo-800); color: #fff; }
.pt-el.pt-as b { color: rgba(255,255,255,.72); }
.pt-el.pt-off { background: transparent; border: 1px dashed var(--silver-300); color: var(--silver-400); font-weight: 500; }
.pt-el.pt-off b { color: var(--silver-400); }
.pt-el.pt-range { font-size: clamp(.36rem, .85vw, .66rem); }
.pt-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 8px; padding: 0; font-size: .84rem; color: var(--ink-2); }
.pt-legend li { display: inline-flex; align-items: center; gap: 8px; }
.pt-key { width: 16px; height: 16px; border-radius: 2px; background: linear-gradient(150deg, #efebf8, #d5cbeb); border: 1px solid #a898cb; flex: none; }
.pt-key.pt-as { background: linear-gradient(150deg, #5a3a8f, #35205d); border-color: var(--indigo-800); }
.pt-key.pt-off { background: transparent; border: 1px dashed var(--silver-300); }
.periodic figcaption { font-size: .82rem; color: var(--muted); }

/* roadmap / timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--silver-400), rgba(173, 178, 187, .15)); }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 8px; width: 13px; height: 13px; background: var(--silver-900); border: 2px solid var(--silver-300); transform: rotate(45deg); }
.timeline h3 { font-size: 1.02rem; margin-bottom: 4px; }
.timeline p { margin: 0; font-size: .9rem; }

/* pricing / contact */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.price-card { background: var(--metal); border: 1px solid var(--silver-300); border-top: 3px solid var(--silver-800); border-radius: var(--radius-sm); padding: 28px 26px; box-shadow: var(--shadow-1); }
.price-card h3 { font-size: 1rem; color: var(--ink-2); font-weight: 600; margin-bottom: 14px; }
.price { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.1; color: var(--silver-950); letter-spacing: -.02em; margin: 0; }
.price small { font-family: var(--font-sans); font-size: .9rem; font-weight: 600; color: var(--ink-2); margin-left: 6px; letter-spacing: 0; }
.price-card p:not(.price) { margin: 12px 0 0; font-size: .88rem; color: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.contact-card { border-radius: var(--radius-sm); padding: 26px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); border-top: 2px solid var(--silver-400); }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.contact-card p { font-size: .9rem; margin-bottom: 14px; }
.contact-card a { color: #fff; }
.contact-card .contact-value { font-family: var(--font-mono); font-size: 1rem; font-weight: 600; color: #fff; word-break: break-all; }
.contact-links { font-family: var(--font-sans) !important; font-size: .95rem !important; }
.contact-card .contact-form { margin-bottom: 6px; }
.contact-card .contact-form .btn { color: var(--ink); }
.contact-card .contact-note { font-size: .8rem; color: rgba(255, 255, 255, .6); }

/* footer */
.site-footer { background: var(--silver-950); color: rgba(255, 255, 255, .68); font-size: .88rem; padding: 68px 0 28px; border-top: 3px solid var(--silver-700); }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.4fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand img { width: 40px; height: 40px; display: block; }
.footer-brand .brand-name, .footer-brand .brand-name b { color: #fff; }
.footer-brand p { max-width: 24em; line-height: 1.8; }
.site-footer h2 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--silver-400); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; line-height: 1.6; }
.site-footer address { line-height: 1.9; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; }
.footer-bottom p { margin: 0; }
.to-top { margin-left: 24px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 16px; }

/* reveal on scroll (only applied by JS to elements below the fold) */
.reveal-pending { opacity: 0; transform: translateY(16px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }

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

@media print {
  .site-header, .site-footer, .hero-canvas, .nav-toggle, .code-actions, .doc-nav, .pager { display: none !important; }
  .hero, .page-hero, .section-dark { color: #000; background: none; min-height: 0; }
  body { background: #fff; }
}
