@charset "UTF-8";

:root {
  /* Palette sampled from generated art: deep violet navy + luminous purple */
  --ui-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --num-font: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ink: #12102a;
  --ink-2: #4a4568;
  --muted: #736d8a;
  --faint: #9b95ad;
  --paper: #ffffff;
  --bg: #f5f3fb;
  --bg-2: #faf8fd;
  --line: #e4e0f0;
  --line-2: #ece8f5;
  --rail: #0e0b22;
  --rail-2: #161232;
  --accent: #7c5cff;
  --accent-dk: #5b3fd4;
  --accent-soft: #efe9ff;
  --accent-glow: #b8a0ff;
  --seal: #9b7dff;
  --seal-soft: #f3effe;
  --danger: #c2352b;
  --warn: #b7791f;
  --ok: #197a4b;
  --shadow-1: 0 1px 2px rgba(18, 16, 42, .06);
  --shadow-2: 0 8px 28px rgba(18, 16, 42, .12);
  --shadow-3: 0 24px 64px rgba(14, 11, 34, .32);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --max-wide: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ui-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.u-sr {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.u-num { font-family: var(--num-font); font-variant-numeric: tabular-nums; }
.u-muted { color: var(--muted); }
.u-en { font-family: var(--num-font); font-size: .86em; letter-spacing: .02em; }

.skip-link {
  position: fixed; top: -60px; left: 14px; z-index: 100;
  padding: 9px 15px; border: 1px solid var(--accent); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--accent-dk); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-2); transition: top .16s;
}
.skip-link:focus { top: 14px; text-decoration: none; }

/* ============================== Top nav ============================== */
.site-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 11, 34, .9);
  backdrop-filter: blur(14px) saturate(1.25);
  border-bottom: 1px solid rgba(183, 160, 255, .1);
}
.site-top-inner {
  max-width: var(--max-wide); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; min-height: 60px;
}
.site-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; flex-shrink: 0;
}
.site-brand:hover { text-decoration: none; opacity: .92; }
.site-brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-brand b { display: block; font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.site-brand small { display: block; font-size: 11px; color: rgba(255, 255, 255, .55); font-weight: 500; margin-top: 1px; }

.site-nav {
  display: flex; align-items: center; gap: 4px; list-style: none; margin-left: 12px;
}
.site-nav a {
  display: block; padding: 7px 12px; border-radius: 8px;
  color: rgba(255, 255, 255, .72); font-size: 13.5px; font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.site-nav a.is-active { color: #fff; background: rgba(124, 92, 255, .32); }

.site-top-actions {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
}
.site-menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  color: #fff; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .12);
}
.site-menu-btn:hover { background: rgba(255, 255, 255, .08); }
.site-menu-btn svg { width: 20px; height: 20px; }

.site-drawer {
  display: none; flex-direction: column; gap: 2px;
  padding: 8px 16px 16px; border-top: 1px solid rgba(183, 160, 255, .1);
  background: rgba(14, 11, 34, .98);
}
.site-drawer:not([hidden]) { display: flex; }
.site-drawer a {
  padding: 12px 14px; border-radius: 10px;
  color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 500;
  text-decoration: none;
}
.site-drawer a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.site-drawer a.is-active { background: rgba(124, 92, 255, .32); color: #fff; }

/* ============================== Buttons ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  line-height: 1.2; border: 1px solid transparent; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(91, 63, 212, .28);
}
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }
.btn-ghost {
  background: transparent; color: rgba(255, 255, 255, .88);
  border-color: rgba(255, 255, 255, .18);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn-light {
  background: rgba(255, 255, 255, .12); color: #fff;
  border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(8px);
}
.btn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-outline {
  background: var(--paper); color: var(--ink); border-color: var(--line);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dk); background: var(--accent-soft); }
.btn-seal {
  background: var(--seal); color: #fff; border-color: var(--seal);
}
.btn-seal:hover { background: #8566f0; color: #fff; }
.btn-lg { padding: 13px 20px; font-size: 14.5px; border-radius: 12px; }
.btn-lg svg { width: 18px; height: 18px; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }

/* ============================== Layout ============================== */
.section {
  max-width: var(--max); margin: 0 auto; padding: 64px 20px;
}
.section-wide { max-width: var(--max-wide); }
.section-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-hd > div { max-width: 720px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 255, .22);
}
.section h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.25; letter-spacing: -.02em; margin-bottom: 10px;
}
.section-lede { color: var(--ink-2); font-size: 15.5px; max-width: 640px; }

/* ============================== Hero ============================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--rail); color: #fff;
  min-height: min(78vh, 720px);
  display: flex; align-items: center;
}
.hero-media {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-media picture,
.hero-media img {
  width: 100%; height: 100%;
}
.hero-media img {
  object-fit: cover; opacity: .55;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(14, 11, 34, .92) 0%, rgba(14, 11, 34, .45) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-wide); margin: 0 auto;
  padding: 72px 20px 64px; width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .82);
  margin-bottom: 18px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-glow); box-shadow: 0 0 0 3px rgba(184, 160, 255, .28);
}
.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.18; letter-spacing: -.03em;
  max-width: 20ch; margin-bottom: 16px; font-weight: 750;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-glow);
}
.hero-lede {
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7;
  color: rgba(255, 255, 255, .72); max-width: 52ch; margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; max-width: 720px;
}
.hero-meta div {
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.hero-meta b {
  display: block; font-family: var(--num-font); font-size: 14px;
  color: #fff; margin-bottom: 2px;
}
.hero-meta span { font-size: 12px; color: rgba(255, 255, 255, .5); }

/* ============================== Stats strip ============================== */
.stats {
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.stats-grid {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 22px 18px; border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.stat-val {
  font-size: 1.35rem; font-weight: 750; letter-spacing: -.02em;
  font-family: var(--num-font); color: var(--ink);
}
.stat-why { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.stat.tone-accent .stat-val { color: var(--accent); }
.stat.tone-seal .stat-val { color: var(--seal); }
.stat.tone-ok .stat-val { color: var(--ok); }

/* ============================== Cards grids ============================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
  box-shadow: var(--shadow-1);
}
.card h3 {
  font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -.01em;
}
.card p { color: var(--ink-2); font-size: 14px; }
.card .card-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent);
}
.card .card-icon svg { width: 20px; height: 20px; }
.card .card-icon.seal { background: var(--seal-soft); color: var(--seal); }
.card-link {
  display: block; color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card-link:hover {
  text-decoration: none; border-color: #cfc6e8;
  box-shadow: var(--shadow-2); transform: translateY(-2px);
}

.quote {
  background: var(--rail);
  color: #fff; border-radius: calc(var(--radius) + 4px);
  padding: 36px 32px; position: relative; overflow: hidden;
  border: 1px solid rgba(183, 160, 255, .12);
}
.quote p {
  font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55;
  font-weight: 600; letter-spacing: -.015em; max-width: 36ch;
}
.quote cite {
  display: block; margin-top: 16px; font-style: normal;
  font-size: 13px; color: rgba(212, 196, 255, .55);
}

/* ============================== Media blocks ============================== */
.media-block {
  border-radius: calc(var(--radius) + 2px); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
  background: var(--rail);
}
.media-block picture { display: block; width: 100%; }
.media-block img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center;
}
.split-copy h2 { margin-bottom: 12px; }
.split-copy p { color: var(--ink-2); margin-bottom: 14px; }
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink-2);
}
.checklist li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  margin-top: 7px; flex-shrink: 0; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============================== Mode cards ============================== */
.mode-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.mode-card-hd {
  padding: 18px 18px 0;
}
.mode-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; margin-bottom: 10px;
}
.mode-badge.file { background: #e8f5ee; color: var(--ok); }
.mode-badge.live { background: var(--accent-soft); color: var(--accent-dk); }
.mode-badge.action { background: var(--seal-soft); color: #6b4fd4; }
.mode-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.mode-card p { color: var(--ink-2); font-size: 13.5px; padding: 0 18px 18px; }
.mode-card ul {
  list-style: none; border-top: 1px solid var(--line-2);
  padding: 14px 18px; margin-top: auto; background: var(--bg-2);
}
.mode-card li {
  font-size: 12.5px; color: var(--muted); padding: 4px 0;
  font-family: var(--num-font);
}

/* ============================== Steps / flow ============================== */
.flow {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.flow-step {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 12px; text-align: center;
  position: relative;
}
.flow-step .n {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dk);
  font-size: 12px; font-weight: 700; margin-bottom: 8px;
  font-family: var(--num-font);
}
.flow-step b { display: block; font-size: 13px; margin-bottom: 2px; }
.flow-step span { font-size: 11.5px; color: var(--muted); }

/* ============================== Spec page ============================== */
.spec-hero {
  background: var(--rail);
  color: #fff; padding: 56px 20px 48px;
}
.spec-hero-inner { max-width: var(--max); margin: 0 auto; }
.spec-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -.02em; margin: 10px 0 12px;
}
.spec-hero p { color: rgba(255, 255, 255, .7); max-width: 60ch; font-size: 15.5px; }
.spec-toc {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
}
.spec-toc a {
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .1); text-decoration: none;
}
.spec-toc a:hover { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }

.spec-body { max-width: var(--max); margin: 0 auto; padding: 40px 20px 80px; }
.spec-section {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px; margin-bottom: 18px;
  box-shadow: var(--shadow-1); scroll-margin-top: 80px;
}
.spec-section h2 {
  font-size: 1.25rem; margin-bottom: 8px; letter-spacing: -.015em;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px;
}
.spec-section h3 {
  font-size: .98rem; margin: 18px 0 8px; color: var(--ink);
}
.spec-section p, .spec-section li { color: var(--ink-2); font-size: 14.5px; }
.spec-section p + p { margin-top: 10px; }
.spec-section ul, .spec-section ol { padding-left: 1.2em; margin: 8px 0; }
.spec-section li { margin: 4px 0; }
.spec-section .lead { font-size: 15.5px; color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 12px 0; border-radius: 10px; border: 1px solid var(--line); }
table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
  background: var(--paper);
}
th, td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
th {
  background: var(--bg-2); font-size: 12px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
}
tr:last-child td { border-bottom: 0; }
td code, .spec-section code, p code {
  font-family: var(--num-font); font-size: .9em;
  background: var(--bg); padding: 1px 6px; border-radius: 4px;
  color: var(--accent-dk);
}
.term-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.term {
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 14px 14px 12px; background: var(--bg-2);
}
.term dt {
  font-weight: 700; font-size: 13.5px; margin-bottom: 4px;
  color: var(--ink);
}
.term dt span {
  display: inline-block; margin-left: 6px; font-weight: 600;
  font-size: 11.5px; color: var(--accent); font-family: var(--num-font);
}
.term dd { font-size: 13px; color: var(--ink-2); margin: 0; }

.callout {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 12px 14px; border-radius: 0 10px 10px 0; margin: 14px 0;
  font-size: 14px; color: var(--ink-2);
}
.callout.seal { border-left-color: var(--seal); background: var(--seal-soft); }
.callout.warn { border-left-color: var(--warn); background: #fdf6e8; }

/* ============================== Gallery ============================== */
.gallery-hero {
  background: var(--rail);
  color: #fff; padding: 52px 20px 40px;
}
.gallery-hero-inner { max-width: var(--max-wide); margin: 0 auto; }
.gallery-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -.02em; margin: 10px 0 12px;
}
.gallery-hero p { color: rgba(255, 255, 255, .7); max-width: 58ch; }

.gallery-toolbar {
  max-width: var(--max-wide); margin: 0 auto;
  padding: 20px 20px 8px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { border-color: #cfc6e8; color: var(--ink); }
.chip.is-active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.gallery-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; min-width: min(280px, 100%);
}
.gallery-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.gallery-search input {
  border: 0; outline: none; width: 100%; font: inherit; font-size: 13.5px;
  background: transparent; color: var(--ink);
}
.gallery-search input::placeholder { color: var(--faint); }

.gallery-meta {
  max-width: var(--max-wide); margin: 0 auto; padding: 4px 20px 12px;
  font-size: 13px; color: var(--muted);
}
.gallery-meta b { color: var(--ink); font-weight: 700; }

.gallery-grid {
  max-width: var(--max-wide); margin: 0 auto;
  padding: 8px 20px 72px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.g-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: box-shadow .15s, transform .15s, border-color .15s;
  color: inherit; text-decoration: none; cursor: pointer;
}
.g-card:hover {
  box-shadow: var(--shadow-2); transform: translateY(-2px);
  border-color: #cfc6e8;
  text-decoration: none; color: inherit;
}
.g-card:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.g-card[hidden] { display: none; }
.g-cover {
  position: relative; aspect-ratio: 4/3; background: var(--rail); overflow: hidden;
}
.g-cover picture {
  display: block; width: 100%; height: 100%;
}
.g-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.g-card:hover .g-cover img { transform: scale(1.04); }
.g-cover-shade {
  position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, rgba(14, 11, 34, .5), transparent);
  pointer-events: none;
}
.g-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.g-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line-2);
}
.tag.domain { background: var(--accent-soft); color: var(--accent-dk); border-color: transparent; }
.tag.mode { background: var(--seal-soft); color: #6b4fd4; border-color: transparent; }
.g-body h3 {
  font-size: 1.05rem; letter-spacing: -.015em; margin-bottom: 4px; line-height: 1.3;
}
.g-slug {
  font-family: var(--num-font); font-size: 11.5px; color: var(--faint);
  margin-bottom: 8px;
}
.g-body p {
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px;
}
.g-meta-row {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: 12px; color: var(--muted); margin-top: auto;
  font-family: var(--num-font);
}

/* ============================== Demo teaser ============================== */
.teaser-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.teaser {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: inherit; transition: box-shadow .15s, transform .15s;
}
.teaser:hover { text-decoration: none; box-shadow: var(--shadow-2); transform: translateY(-2px); }
.teaser-cover { aspect-ratio: 16/10; background: var(--rail); overflow: hidden; }
.teaser-cover picture { display: block; width: 100%; height: 100%; }
.teaser-cover img { width: 100%; height: 100%; object-fit: cover; }
.teaser-body { padding: 14px; }
.teaser-body h3 { font-size: 14px; margin-bottom: 4px; }
.teaser-body p { font-size: 12.5px; color: var(--muted); }

/* ============================== CTA band ============================== */
.cta-band {
  background: var(--rail);
  color: #fff; padding: 56px 20px;
}
.cta-band-inner {
  max-width: var(--max); margin: 0 auto; text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -.02em; margin-bottom: 10px;
}
.cta-band p {
  color: rgba(255, 255, 255, .65); max-width: 48ch; margin: 0 auto 22px;
}
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* ============================== Footer ============================== */
.site-footer {
  background: var(--rail); color: rgba(255, 255, 255, .55);
  padding: 22px 20px; border-top: 1px solid rgba(255, 255, 255, .06);
}
.site-footer-inner {
  max-width: var(--max-wide); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 24px; flex-wrap: wrap;
}
.site-footer-brand {
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .78);
}
.site-footer-links {
  display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap;
}
.site-footer-links a {
  color: rgba(255, 255, 255, .62); font-size: 13px; text-decoration: none;
}
.site-footer-links a:hover { color: #fff; text-decoration: none; }

/* ============================== Responsive ============================== */
@media (max-width: 960px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .grid-4, .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .term-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav, .site-top-actions .btn { display: none; }
  .site-menu-btn { display: inline-flex; }
  .hero h1 { max-width: none; }
  .hero-inner { padding: 48px 18px 44px; }
  .section { padding: 48px 18px; }
  .grid-2, .grid-3, .grid-4, .teaser-grid, .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .gallery-toolbar { flex-direction: column; align-items: stretch; }
  .gallery-search { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-card, .teaser, .card-link, .g-cover img { transition: none; }
  .g-card:hover, .teaser:hover, .card-link:hover { transform: none; }
}
