/* ============================================================
   OpenTrend — Hallmark "Dusk" theme
   Tokens verbatim from Nutlope/hallmark themes/dusk.md
   (fog / periwinkle-apricot / glass), plus this site's layout.
   ============================================================ */

:root {
  --color-paper: oklch(17.5% 0.014 268); --color-paper-2: oklch(21% 0.016 268); --color-paper-3: oklch(25% 0.017 268);
  --color-ink: oklch(96% 0.006 75); --color-ink-2: oklch(85% 0.010 262); --color-muted: oklch(70% 0.016 262);
  --color-rule: oklch(30% 0.016 266); --color-light: oklch(100% 0 0); --color-shade: oklch(10% 0.022 268);
  --color-accent: oklch(77% 0.10 274); --color-accent-ink: oklch(19% 0.035 274); --color-accent-hi: oklch(84% 0.085 274);
  --color-accent-deep: oklch(44% 0.13 274); --color-accent-soft: oklch(91% 0.038 274); --color-focus: oklch(80% 0.10 274);
  --color-accent-2: oklch(83% 0.095 62); --color-dusk: oklch(70% 0.12 330);
  /* derived apricot for light surfaces — same signal hue 62, darker */
  --color-accent-2-deep: oklch(52% 0.115 62); --color-accent-2-soft: oklch(93% 0.045 62);
  --color-day-ink: oklch(22% 0.022 268); --color-day-muted: oklch(38% 0.022 266); --color-fog: oklch(94% 0.012 70);
  --color-well: oklch(95.5% 0.008 75); --color-well-2: oklch(92% 0.010 75); --color-well-ink: oklch(21% 0.016 268); --color-well-muted: oklch(47% 0.016 265); --color-well-rule: oklch(87.5% 0.009 75); --color-card: oklch(99.5% 0.003 75);
  --glass: oklch(22% 0.018 268 / 0.58); --glass-blur: 22px;
  --glass-hi: inset 0 1px 0 oklch(100% 0 0 / 0.10), inset 0 0 0 1px oklch(100% 0 0 / 0.06);
  --shadow-card: 0 1px 0 oklch(100% 0 0 / 0.06) inset, 0 40px 80px -32px oklch(8% 0.02 268 / 0.7);
  --font-display: "Wix Madefor Display", ui-sans-serif, system-ui, sans-serif; --font-body: "Wix Madefor Text", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 18px; --radius-inner: 10px; --radius-pill: 999px; --rule-hair: 1px;
  --tracking-display: -0.022em; --display-weight: 500;
  --space-xs: 8px; --space-sm: 12px; --space-md: 18px; --space-lg: 28px; --space-xl: 44px; --space-2xl: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  background: var(--color-paper);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); }
a { color: inherit; }
img { display: block; }
button { font-family: inherit; }
.num { font-variant-numeric: tabular-nums; }
::selection { background: color-mix(in oklab, var(--color-accent) 40%, transparent); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .28s ease, box-shadow .28s ease;
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-day-ink); }
.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent) 25%, transparent); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }

.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a {
  text-decoration: none; color: var(--color-day-ink);
  font: 500 15px/1 var(--font-body); padding: 10px 13px; border-radius: var(--radius-pill);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: color-mix(in oklab, var(--color-day-ink) 8%, transparent); }

.lang-switch {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius-pill);
  font: 500 14px/1 var(--font-body); color: var(--color-day-ink); cursor: pointer;
  background: color-mix(in oklab, var(--color-light) 20%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-day-ink) 20%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.lang-globe { position: relative; width: 14px; height: 14px; border: 1.6px solid currentColor; border-radius: 50%; flex: none; }
.lang-globe::after { content: ""; position: absolute; left: -1px; right: -1px; top: 50%; border-top: 1.6px solid currentColor; }
.lang-caret { font-size: 10px; opacity: .7; }

/* slate glass once the nav leaves the photograph */
.site-header.is-slate { background: var(--glass); backdrop-filter: blur(var(--glass-blur)) saturate(1.35); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35); box-shadow: 0 1px 0 color-mix(in oklab, var(--color-light) 7%, transparent); }
.site-header.is-slate .brand,
.site-header.is-slate .main-nav a { color: var(--color-ink); }
.site-header.is-slate .main-nav a:hover { background: color-mix(in oklab, var(--color-light) 6%, transparent); }
.site-header.is-slate .lang-switch {
  color: var(--color-ink);
  background: color-mix(in oklab, var(--color-light) 5%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-light) 16%, transparent);
}

.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 216px;
  list-style: none; padding: 8px; border-radius: 14px;
  background: var(--glass); backdrop-filter: blur(var(--glass-blur)) saturate(1.35); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  box-shadow: var(--glass-hi), var(--shadow-card); z-index: 90;
}
.lang-menu li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 9px; color: var(--color-ink-2); font-size: 14.5px; cursor: pointer;
}
.lang-menu li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: transparent; flex: none; }
.lang-menu li:hover { background: color-mix(in oklab, var(--color-light) 6%, transparent); color: var(--color-ink); }
.lang-menu li[aria-selected="true"] { color: var(--color-ink); }
.lang-menu li[aria-selected="true"]::before { background: var(--color-accent); }
.lang-menu .flag { font-size: 16px; line-height: 1; }
.lang-menu .code { margin-left: auto; color: var(--color-muted); font-size: 12px; }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 110px;
  background: var(--color-paper);
}
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  animation: heroDrift 48s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroDrift {
  from { transform: scale(1.08) translate3d(-3%, 0, 0); }
  to   { transform: scale(1.08) translate3d(3%, 0, 0); }
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, color-mix(in oklab, var(--color-fog) 58%, transparent) 0%, transparent 24%),
    radial-gradient(ellipse 52% 58% at 22% 56%, color-mix(in oklab, var(--color-fog) 78%, transparent), transparent 78%),
    linear-gradient(to bottom, transparent 56%, color-mix(in oklab, var(--color-paper) 55%, transparent) 84%, var(--color-paper) 99%);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 52px; align-items: center;
  flex: 1; padding-top: 40px; padding-bottom: 30px;
}

.hero-copy { max-width: 640px; }
.hero-kicker { font: 500 14.5px/1.4 var(--font-body); color: var(--color-day-muted); margin-bottom: 18px; }
.hero-title { font-size: clamp(40px, 5vw, 62px); line-height: 1.05; color: var(--color-day-ink); }
.hero-title span { display: block; }
.hero-title span:last-child { color: var(--color-accent-deep); }
.hero-sub { margin-top: 20px; max-width: 34em; color: var(--color-day-muted); font-size: 17.5px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ── Controls ───────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-accent-ink);
  font: 600 0.9375rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-light) 35%, transparent);
  transition: background .15s ease, box-shadow .15s ease;
}
.btn:hover {
  background: var(--color-accent-hi);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--color-accent) 22%, transparent), inset 0 1px 0 color-mix(in oklab, var(--color-light) 35%, transparent);
}
.btn-ghost-light {
  background: color-mix(in oklab, var(--color-day-ink) 7%, transparent);
  color: var(--color-day-ink);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-day-ink) 22%, transparent);
}
.btn-ghost-light:hover { background: color-mix(in oklab, var(--color-day-ink) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-day-ink) 30%, transparent); }
.btn-ghost {
  background: color-mix(in oklab, var(--color-light) 5%, transparent);
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-light) 12%, transparent);
}
.btn-ghost:hover { background: color-mix(in oklab, var(--color-light) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-light) 18%, transparent); }

/* ── Glass ──────────────────────────────────────────────── */

.glass {
  background: var(--glass);
  border-radius: var(--radius-card);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  box-shadow: var(--glass-hi), var(--shadow-card);
}

.hero-product { position: relative; z-index: 1; padding: 22px 26px 18px; width: 100%; max-width: 540px; justify-self: end; }

.panel-caption { display: flex; align-items: center; gap: 10px; color: var(--color-muted); font: 500 14px/1.3 var(--font-body); padding-bottom: 15px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); flex: none; animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.78); } }

.glass-rows { list-style: none; }
.grow-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 0; border-top: 1px solid color-mix(in oklab, var(--color-light) 7%, transparent);
  opacity: 0; transform: translateY(8px);
  animation: rise .5s cubic-bezier(.2, .7, .3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 150ms);
}
.g-rank { color: var(--color-muted); font-size: 13.5px; width: 15px; flex: none; }
.g-main { min-width: 0; flex: 1; }
.g-name { display: block; color: var(--color-ink); font-weight: 500; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-gain { color: var(--color-accent-2); font-weight: 500; font-size: 14px; flex: none; }

.panel-foot {
  display: flex; align-items: center; gap: 9px; margin-top: 15px; padding-top: 15px;
  border-top: 1px solid color-mix(in oklab, var(--color-light) 7%, transparent);
  color: var(--color-ink-2); font: 500 14.5px/1 var(--font-body); text-decoration: none;
}
.panel-foot:hover { color: var(--color-ink); }
.panel-foot .arrow { transition: transform .2s ease; }
.panel-foot:hover .arrow { transform: translateX(3px); }

/* ── Tally ──────────────────────────────────────────────── */

.tally-wrap { position: relative; z-index: 1; }
.tally { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--color-rule); }
.tally-cell {
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px 0 32px 26px; border-left: 1px solid var(--color-rule);
}
.tally-cell:first-child { border-left: 0; padding-left: 0; }
.tally dt { order: 2; color: var(--color-muted); font: 500 14.5px/1.35 var(--font-body); }
.tally dd {
  order: 1; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.02em; color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

/* ── Bands ──────────────────────────────────────────────── */

.band { position: relative; background: var(--color-paper); padding: var(--space-2xl) 0; scroll-margin-top: 76px; }
.band-2 { background: var(--color-paper-2); }

.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 34px; flex-wrap: wrap; }
.band-titles h2 { font-size: clamp(26px, 2.6vw, 34px); color: var(--color-ink); }
.band-sub { margin-top: 10px; color: var(--color-muted); font-size: 16.5px; line-height: 1.55; max-width: 54ch; }

/* ruled tabs — a list with a dot, never boxed segments */
.ruled-tabs { display: flex; align-items: center; flex-wrap: wrap; }
.rtab {
  appearance: none; background: none; border: 0; border-left: 1px solid var(--color-rule);
  padding: 8px 18px; color: var(--color-muted);
  font: 500 15px/1.3 var(--font-body); cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  transition: color .15s ease;
}
.rtab:first-child { border-left: 0; padding-left: 0; }
.rtab:last-child { padding-right: 0; }
.rtab:hover { color: var(--color-ink-2); }
.rtab[aria-selected="true"] { color: var(--color-ink); }
.rtab[aria-selected="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); flex: none; }

/* ── Run list (account-list pattern) ────────────────────── */

.run { border-top: 1px solid var(--color-rule); }
.run-row {
  display: grid; grid-template-columns: 26px 38px minmax(0, 1fr) auto;
  gap: 18px; align-items: center;
  padding: 15px 10px; margin: 0 -10px; border-radius: 12px;
  border-bottom: 1px solid var(--color-rule);
  color: inherit; text-decoration: none;
  transition: background .15s ease;
  opacity: 0; transform: translateY(8px);
  animation: rise .45s cubic-bezier(.2, .7, .3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.run-row:hover { background: color-mix(in oklab, var(--color-light) 4%, transparent); }
@keyframes rise { to { opacity: 1; transform: none; } }

.run-rank { color: var(--color-muted); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.run-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--color-paper-3); }
.run-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.run-name-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.run-name-line .row-note { flex: none; }
.run-name { color: var(--color-ink); font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.run-name .owner { color: var(--color-muted); font-weight: 400; }
.run-desc { color: var(--color-muted); font-size: 14.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.run-meta { display: flex; align-items: center; gap: 20px; font-size: 14.5px; white-space: nowrap; }
.run-meta .m { display: inline-flex; align-items: center; gap: 7px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.run-meta .m.num { color: var(--color-ink-2); }
.run-meta .m-hot { color: var(--color-accent-2); font-weight: 500; }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, #4f8cff); flex: none; }

.row-note {
  display: inline-block; margin-left: 10px; padding: 2px 11px; border-radius: var(--radius-pill);
  background: var(--color-accent-2-soft); color: var(--color-accent-2-deep);
  font: 500 12.5px/1.7 var(--font-body); vertical-align: middle;
  white-space: nowrap; max-width: 300px; overflow: hidden; text-overflow: ellipsis;
}

.empty { padding: 30px 4px; color: var(--color-muted); font-size: 15.5px; border-bottom: 1px solid var(--color-rule); }

/* ── HF tour: a list beside one pane ────────────────────── */

.tour { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.tour-list { list-style: none; border-top: 1px solid var(--color-rule); }
.tour-row {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 10px; margin: 0 -10px; border-radius: 12px;
  border-bottom: 1px solid var(--color-rule);
  cursor: pointer; color: var(--color-muted);
  transition: background .15s ease;
  opacity: 0; transform: translateY(8px);
  animation: rise .45s cubic-bezier(.2, .7, .3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.tour-row:hover { background: color-mix(in oklab, var(--color-light) 4%, transparent); }
.tour-row.is-active { background: color-mix(in oklab, var(--color-light) 5%, transparent); }
.t-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1px var(--color-rule); flex: none; justify-self: center; }
.tour-row.is-active .t-dot { background: var(--color-accent); box-shadow: none; }
.t-main { min-width: 0; }
.t-name { display: block; font-weight: 500; font-size: 15.5px; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-row.is-active .t-name { color: var(--color-ink); }
.t-desc { display: none; margin-top: 5px; font-size: 14px; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-row.is-active .t-desc { display: block; }
.t-score { color: var(--color-accent-2); font-weight: 500; font-size: 14.5px; font-variant-numeric: tabular-nums; }

.tour-pane { padding: 26px 28px; position: sticky; top: 92px; min-height: 300px; }
.pane-badge { color: var(--color-muted); font: 500 13.5px/1 var(--font-body); }
.pane-id { margin-top: 13px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 24px; letter-spacing: -0.02em; color: var(--color-ink); word-break: break-all; line-height: 1.18; }
.pane-line { margin-top: 9px; color: var(--color-ink-2); font-size: 15px; line-height: 1.5; }
.pane-statement { margin-top: 22px; }
.pane-statement .num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 40px; letter-spacing: -0.02em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.pane-statement .lbl { display: block; margin-top: 4px; color: var(--color-muted); font-size: 14px; }
.pane-figures { margin-top: 20px; border-top: 1px solid color-mix(in oklab, var(--color-light) 7%, transparent); }
.pane-figrow { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid color-mix(in oklab, var(--color-light) 7%, transparent); }
.pane-figrow .pf-label { color: var(--color-muted); font-size: 14px; }
.pane-figrow .pf-val { color: var(--color-ink); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.pane-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pane-tag { padding: 4px 12px; border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-light) 6%, transparent); color: var(--color-ink-2); font-size: 13px; }
.pane-open { margin-top: 22px; }

/* ── Bone well (collections) ────────────────────────────── */

.well {
  background: var(--color-well); border-radius: var(--radius-card);
  padding: clamp(14px, 2.4vw, 26px);
  box-shadow: 0 30px 60px -40px oklch(8% 0.02 268 / 0.6);
}
.well-card { background: var(--color-card); border-radius: var(--radius-inner); padding: 2px 24px 14px; }
.well-desc { display: block; padding: 17px 0 15px; border-bottom: 1px solid var(--color-well-rule); color: var(--color-well-muted); font-size: 14.5px; }

.run-well { border-top: 0; }
.run-well .run-row { border-bottom-color: var(--color-well-rule); }
.run-well .run-row:hover { background: color-mix(in oklab, var(--color-well-2) 70%, transparent); }
.run-well .run-name { color: var(--color-well-ink); }
.run-well .run-name .owner, .run-well .run-desc, .run-well .run-rank { color: var(--color-well-muted); }
.run-well .run-meta .m { color: var(--color-well-muted); }
.run-well .run-meta .m.num { color: var(--color-well-ink); }
.run-well .run-meta .m-hot { color: var(--color-accent-2-deep); }
.run-well .run-avatar { background: var(--color-well-2); }
.row-note { background: var(--color-accent-2-soft); color: var(--color-accent-2-deep); }

/* ── About ──────────────────────────────────────────────── */

.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-copy h2 { font-size: clamp(26px, 2.6vw, 34px); color: var(--color-ink); }
.about-copy p { margin-top: 18px; color: var(--color-ink-2); font-size: 17px; line-height: 1.6; max-width: 62ch; }

.about-card { background: var(--color-well); border-radius: var(--radius-card); padding: 26px 28px; }
.about-card h3 { font-size: 18px; color: var(--color-well-ink); }
.source-list { list-style: none; margin-top: 16px; border-top: 1px solid var(--color-well-rule); }
.source-list li { padding: 12px 0; border-bottom: 1px solid var(--color-well-rule); font-size: 15px; color: var(--color-well-muted); line-height: 1.5; }
.source-list a { color: var(--color-well-ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--color-well-ink) 30%, transparent); }
.source-list a:hover { border-bottom-color: var(--color-well-ink); }

/* ── Footer ─────────────────────────────────────────────── */

.site-footer { background: var(--color-paper); border-top: 1px solid var(--color-rule); padding: 38px 0 46px; }
.footer-line { color: var(--color-ink-2); font-size: 15px; }
.footer-note { margin-top: 9px; color: var(--color-muted); font-size: 13.5px; }
.footer-credit { margin-top: 9px; color: var(--color-muted); font-size: 13px; }
.footer-credit a { color: var(--color-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--color-ink-2); }

/* ── Toast, skeletons ───────────────────────────────────── */

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 80;
  background: var(--glass); backdrop-filter: blur(var(--glass-blur)) saturate(1.35); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  color: var(--color-ink); padding: 13px 22px; border-radius: var(--radius-pill);
  box-shadow: var(--glass-hi), var(--shadow-card); font-size: 14.5px; max-width: calc(100vw - 40px);
}
.toast[hidden] { display: none; }

.skeleton {
  border-radius: 10px;
  background: linear-gradient(100deg, var(--color-paper-2) 40%, var(--color-paper-3) 50%, var(--color-paper-2) 60%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite linear;
}
.band-2 .skeleton { background: linear-gradient(100deg, var(--color-paper-3) 40%, oklch(28% 0.017 268) 50%, var(--color-paper-3) 60%); background-size: 200% 100%; }
.skeleton-row { height: 66px; margin: 13px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 88px; }
  .hero-product { justify-self: stretch; max-width: none; }
  .tour { grid-template-columns: 1fr; }
  .tour-pane { position: static; min-height: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .lang-switch { margin-left: auto; }
  .band { padding: 56px 0; }
  .band-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-title { font-size: clamp(34px, 8.5vw, 46px); }
  .hero { padding-top: 92px; }
  .tally { grid-template-columns: repeat(2, 1fr); }
  .tally-cell { padding: 20px 0 22px 20px; }
  .tally-cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .tally-cell:nth-child(n+3) { border-top: 1px solid var(--color-rule); }
  .run-row { grid-template-columns: 24px 34px minmax(0, 1fr); row-gap: 7px; gap: 14px; }
  .run-meta { grid-column: 2 / -1; gap: 15px; flex-wrap: wrap; }
  .m-lang, .m-fork { display: none; }
  .tour-pane { padding: 22px 22px; }
  .about-card, .well-card { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 480px) {
  .run-row { grid-template-columns: 34px minmax(0, 1fr); }
  .run-rank { display: none; }
  .run-meta { grid-column: 1 / -1; }
  .row-note { max-width: 180px; }
  .pane-statement .num { font-size: 32px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ── Reduced motion: all still ──────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo { animation: none; transform: scale(1.08); }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .run-row, .tour-row, .grow-row { opacity: 1; transform: none; }
}
