/* Hillwatch — dusk, stone and one ochre flag. Bricolage Grotesque + DM Mono. */
:root {
  --dusk: #2a2a35;
  --dusk-2: #23232d;
  --dusk-3: #33333f;
  --stone: #d6d0c4;
  --stone-2: #b4ada1;
  --stone-3: #8f8a82;
  --text: #ece6da;
  --mute: #a19b90;
  --ochre: #c9963f;
  --ochre-2: #a87b30;
  --line: rgba(214, 208, 196, .14);
  --line-2: rgba(214, 208, 196, .26);
  --ink: #24242e;
  --display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--dusk); }
body { margin: 0; background: var(--dusk); color: var(--text); font-family: var(--display); font-size: 16.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ochre); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap.narrow { max-width: 920px; }
.mini { font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: .02em; margin: 0; }
.tag { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ochre); border: 1px solid rgba(201, 150, 63, .45); padding: 1px 6px; border-radius: 3px; margin-left: 6px; white-space: nowrap; }
.empty { color: var(--mute); font-family: var(--mono); font-size: 13px; margin: 0; padding: 14px 0; list-style: none; }
.up { color: var(--ochre); }
.down { color: var(--stone-2); }
.r { text-align: right; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px var(--gut); background: linear-gradient(180deg, rgba(37, 37, 47, .92), rgba(37, 37, 47, 0)); transition: background-color .4s; }
.nav.solid { background: rgba(35, 35, 45, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--stone); }
.brand svg { width: 28px; height: 28px; }
.brand-flag { fill: var(--ochre); }
.brand span { font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--text); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--stone-2); padding: 6px 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.nav-x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--stone); }
.nav-x svg { width: 14px; height: 14px; }
.menu-btn { display: none; background: var(--dusk-3); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 14px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }

/* ---------- stage (hero) ---------- */
.stage { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; background: #25252f; }
.stage-canvas { position: absolute; inset: 0; }
#hill { width: 100%; height: 100%; }
#hill.pointing { cursor: pointer; }
.stage-copy { position: absolute; left: var(--gut); bottom: clamp(28px, 6vh, 64px); width: min(460px, 38vw); z-index: 2; }
.stage-title { font-weight: 800; font-size: clamp(44px, 5.6vw, 84px); line-height: .92; letter-spacing: -.035em; margin: 0 0 18px; font-variation-settings: 'opsz' 96; }
.stage-title .ln { display: block; overflow: hidden; padding: .04em 0 .1em; margin: -.04em 0 -.1em; }
.stage-title .ln > span { display: inline-block; }
.stage-title .ln:nth-child(3) > span { color: var(--ochre); }
.js .stage-title .ln > span { transform: translateY(108%); transition: transform 1.15s cubic-bezier(.2, .85, .2, 1); }
.js .ready .stage-title .ln > span { transform: none; }
.ready .stage-title .ln:nth-child(2) > span { transition-delay: .12s; }
.ready .stage-title .ln:nth-child(3) > span { transition-delay: .24s; }
.stage-lede { color: var(--stone-2); margin: 0 0 22px; max-width: 40ch; }
.ca-chip { display: flex; align-items: center; gap: 10px; background: rgba(35, 35, 45, .8); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 6px 6px 12px; margin-bottom: 14px; max-width: 100%; }
.ca-chip span { font-family: var(--mono); font-size: 11px; color: var(--ochre); }
.ca-chip code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.ca-chip button { background: var(--stone); color: var(--ink); border: 0; border-radius: 7px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.scout { display: flex; background: var(--stone); border-radius: 12px; padding: 5px; gap: 6px; box-shadow: 0 10px 30px rgba(10, 10, 16, .35); }
.scout input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); padding: 10px 12px; font-family: var(--mono); font-size: 14px; }
.scout input::placeholder { color: #6e685f; }
.scout input:focus { outline: none; }
.scout:focus-within { box-shadow: 0 0 0 2px var(--ochre), 0 10px 30px rgba(10, 10, 16, .35); }
.scout button { background: var(--ink); color: var(--text); border: 0; border-radius: 8px; padding: 0 20px; font-weight: 700; cursor: pointer; transition: background-color .25s; }
.scout button:hover { background: #33333f; }
.scout button:disabled { opacity: .6; cursor: progress; }
.scout-status { font-family: var(--mono); font-size: 12.5px; color: var(--stone-2); margin: 12px 0 12px; min-height: 2.6em; }
.scout-status.bad { color: var(--ochre); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(51, 51, 63, .85); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px 4px 4px; font-family: var(--mono); font-size: 12px; cursor: pointer; color: var(--text); max-width: 160px; transition: border-color .25s, transform .25s var(--ease); }
.chip:hover { border-color: var(--ochre); transform: translateY(-2px); }
.chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-chip { width: 92px; height: 30px; padding: 0; }

.token-card { position: absolute; top: 84px; right: var(--gut); width: 300px; z-index: 3; background: rgba(35, 35, 45, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; }
.tc-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.tc-top img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.tc-name { min-width: 0; flex: 1; }
.tc-name b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-name span { display: block; font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 7px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--stone-2); flex: none; }
.badge.live { border-color: var(--ochre); color: var(--ochre); }
.tc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.tc-stats div { background: rgba(255, 255, 255, .03); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.tc-stats dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.tc-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.tc-btn { background: none; border: 1px solid var(--line-2); border-radius: 7px; padding: 5px 9px; font-family: var(--mono); font-size: 11.5px; cursor: pointer; flex: none; }
.tc-btn:hover:not(:disabled) { border-color: var(--ochre); color: var(--ochre); }
.tc-btn:disabled { opacity: .45; cursor: not-allowed; }

.tip { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; background: var(--stone); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.4; max-width: 240px; box-shadow: 0 10px 28px rgba(10, 10, 16, .35); }
.tip b { display: block; font-size: 15px; }
.tip code { font-size: 11.5px; overflow-wrap: anywhere; }
.tip .t-k { font-family: var(--mono); font-size: 11px; color: #5c574f; }

/* ---------- sections ---------- */
.sec, .paper { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.sec.dark { background: var(--dusk-2); }
.paper { background: var(--stone); color: var(--ink); }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; color: var(--ochre); margin: 0 0 14px; text-transform: uppercase; }
.paper .kicker { color: var(--ochre-2); }
.sec-head h2 { font-weight: 800; font-size: clamp(36px, 5.2vw, 70px); line-height: .95; letter-spacing: -.035em; margin: 0; font-variation-settings: 'opsz' 96; }
.sec-dek { margin: 0; color: var(--stone-2); max-width: 52ch; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

.btn { background: var(--stone); color: var(--ink); border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer; transition: background-color .25s, transform .25s var(--ease); }
.btn:hover:not(:disabled) { background: #e4dfd5; transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--stone-2); border: 1px solid var(--line-2); margin-top: 20px; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* legend (paper) */
.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.legend li { padding: 22px 22px 6px 0; border-right: 1px solid rgba(36, 36, 46, .16); min-width: 0; }
.legend li + li { padding-left: 22px; }
.legend li:last-child { border-right: 0; }
.legend svg { width: 100%; max-width: 150px; height: 80px; margin-bottom: 16px; }
.lg-hill { fill: none; stroke: var(--ink); stroke-width: 2; }
.lg-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.lg-c { fill: var(--ink); }
.lg-o { fill: var(--ochre-2); }
.lg-lake { fill: rgba(36, 36, 46, .12); stroke: var(--ink); stroke-width: 1.5; }
.lg-ring { fill: none; stroke: var(--ochre-2); stroke-width: 2; }
.lg-ring.dim { opacity: .4; }
.legend h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.legend p { margin: 0; font-size: 15px; color: #4a463f; }

/* summit */
.summit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(24px, 4vw, 56px); }
.king { background: var(--dusk-3); border-radius: 18px; padding: clamp(22px, 3vw, 34px); position: relative; overflow: hidden; min-width: 0; }
.king .crown { width: 54px; height: 40px; margin-bottom: 18px; }
.crown path { fill: var(--ochre); }
.king h3 { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 0 0 6px; font-weight: 500; }
.king .addr { display: block; font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--line-2); padding-bottom: 12px; margin-bottom: 18px; }
.king .addr:hover { color: var(--ochre); }
.king-big { font-weight: 800; font-size: clamp(56px, 8vw, 104px); line-height: .9; letter-spacing: -.04em; margin: 0; font-variant-numeric: tabular-nums; }
.king-big small { display: block; font-size: 15px; letter-spacing: .04em; color: var(--mute); font-weight: 500; font-family: var(--mono); text-transform: uppercase; margin-top: 10px; }
.king dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 0; }
.king dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.king dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.king .margin-note { margin: 18px 0 0; font-size: 14px; color: var(--stone-2); }
.ladder { min-width: 0; }
.ladder-head, .ladder li { display: grid; grid-template-columns: 34px minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(70px, .7fr); gap: 12px; align-items: center; }
.ladder-head { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.ladder ol { list-style: none; margin: 0; padding: 0; }
.ladder li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ladder li.empty { display: block; }
.ladder .rk { font-family: var(--mono); color: var(--mute); }
.ladder li:first-child .rk { color: var(--ochre); }
.ladder .who { font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.ladder .who:hover { color: var(--ochre); }
.ladder .who small { color: var(--mute); }
.sharebar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sharebar .bar { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.sharebar .bar i { display: block; height: 100%; background: var(--stone); border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.ladder li:first-child .sharebar .bar i { background: var(--ochre); }
.sharebar span { font-family: var(--mono); font-size: 12.5px; width: 52px; text-align: right; flex: none; }
.ladder .val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.reigns { margin-top: 40px; }
.reigns ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.reigns li:not(.empty) { font-family: var(--mono); font-size: 12px; background: var(--dusk-3); border-radius: 8px; padding: 6px 10px; }

/* moves */
.moves-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 24px; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 12px; background: var(--dusk-3); border: 1px solid var(--line-2); position: relative; transition: background-color .3s; flex: none; }
.switch .track i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--stone-2); transition: transform .35s var(--ease), background-color .3s; }
.switch input:checked + .track { background: rgba(201, 150, 63, .25); border-color: var(--ochre); }
.switch input:checked + .track i { transform: translateX(18px); background: var(--ochre); }
.switch input:focus-visible + .track { outline: 2px solid var(--ochre); outline-offset: 2px; }
.moves-stamp { font-family: var(--mono); font-size: 12.5px; color: var(--mute); margin: 0; }
.moves-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.moves-sum div { background: var(--dusk-3); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.moves-sum dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.moves-sum dd { margin: 4px 0 0; font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diff { width: 100%; border-collapse: collapse; font-size: 14px; }
.diff th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); font-weight: 500; text-align: left; padding: 0 10px 10px 0; border-bottom: 1px solid var(--line-2); }
.diff th.r, .diff td.r { text-align: right; }
.diff td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.diff td.who { font-family: var(--mono); font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line-2); white-space: nowrap; }
.mv.add, .mv.new { border-color: var(--ochre); color: var(--ochre); }
.diff tr.flash { animation: rowin .9s var(--ease) both; }
@keyframes rowin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* pressure */
.press { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); }
.press-form { display: grid; gap: 22px; align-content: start; }
.press-form label { display: grid; gap: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); min-width: 0; }
.press-form label.check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--stone-2); cursor: pointer; }
.press-form output { color: var(--ochre); font-weight: 500; }
select { width: 100%; min-width: 0; background: var(--dusk-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; color: var(--text); font-family: var(--mono); font-size: 13.5px; text-transform: none; letter-spacing: 0; }
select:focus { outline: none; border-color: var(--ochre); }
input[type="range"] { width: 100%; accent-color: var(--ochre); }
input[type="checkbox"] { accent-color: var(--ochre); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.press-out { background: var(--dusk-3); border-radius: 18px; padding: clamp(20px, 3vw, 32px); min-width: 0; }
.press-big { font-weight: 800; font-size: clamp(54px, 8vw, 100px); line-height: .9; letter-spacing: -.04em; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.press-cap { margin: 0 0 22px; color: var(--stone-2); font-size: 15px; }
.impact { height: 12px; background: var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 22px; }
.impact i { display: block; height: 100%; background: var(--ochre); border-radius: 6px; transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease); }
.press-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.press-grid dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.press-grid dd { margin: 2px 0 0; font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.press-note { margin: 20px 0 0; font-size: 13px; color: var(--mute); }

/* footing */
.footing { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); }
.grade { background: var(--stone); color: var(--ink); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; min-width: 0; }
.grade .mini { color: #5c574f; }
.grade-letter { font-weight: 800; font-size: clamp(120px, 16vw, 200px); line-height: .8; letter-spacing: -.06em; margin: 10px 0; }
.grade p { margin: 0; font-size: 14px; color: #4a463f; }
.grade code { font-size: 12px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { background: var(--dusk-3); border-radius: 14px; padding: 18px; min-width: 0; }
.metric dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.metric dd { margin: 6px 0 4px; font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric p { margin: 0; font-size: 13px; color: var(--stone-2); }
.metric .bar { height: 4px; background: var(--line); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.metric .bar i { display: block; height: 100%; background: var(--stone-2); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }

/* trails */
.trail-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.sorts { display: flex; flex-wrap: wrap; gap: 6px; }
.sort { background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; font-family: var(--mono); font-size: 12px; cursor: pointer; color: var(--stone-2); transition: background-color .25s, color .25s; }
.sort.on { background: var(--stone); color: var(--ink); border-color: var(--stone); }
.trails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trail { background: var(--dusk-3); border-radius: 16px; padding: 16px; display: grid; gap: 12px; min-width: 0; border: 1px solid transparent; transition: border-color .3s, transform .35s var(--ease); }
.trail:hover { border-color: var(--line-2); transform: translateY(-3px); }
.trail-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.trail-top img, .trail-top .noimg { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--dusk-2); }
.trail-top div { min-width: 0; flex: 1; }
.trail-top b { display: block; font-size: 18px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trail-top span { display: block; font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trail dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.trail dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.trail dd { margin: 1px 0 0; font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trail-act { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.trail-act button { background: var(--stone); color: var(--ink); border: 0; border-radius: 8px; padding: 7px 12px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.trail-act a { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.trail-act .boost { font-family: var(--mono); font-size: 11.5px; color: var(--ochre); }
.sk-card { min-height: 168px; background: linear-gradient(100deg, var(--dusk-3) 30%, #3b3b48 50%, var(--dusk-3) 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-chip { background: linear-gradient(100deg, rgba(51, 51, 63, .85) 30%, #44444f 50%, rgba(51, 51, 63, .85) 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }

/* log */
.scoutlog { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.scoutlog li:not(.empty) { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.scoutlog b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scoutlog b small { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--mute); margin-left: 8px; }
.scoutlog .g { font-weight: 800; font-size: 20px; color: var(--ochre); width: 26px; text-align: center; }
.scoutlog .t { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.scoutlog button { background: none; border: 1px solid var(--line-2); border-radius: 7px; padding: 5px 10px; cursor: pointer; font-size: 13px; }
.scoutlog button:hover { border-color: var(--ochre); color: var(--ochre); }

/* notes */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.notes article { border-top: 2px solid var(--stone-3); padding-top: 18px; min-width: 0; }
.notes .n { font-family: var(--mono); color: var(--ochre); font-size: 13px; }
.notes h3 { margin: 6px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.notes p { margin: 0; color: var(--stone-2); font-size: 15px; }
.notes code { color: var(--text); overflow-wrap: anywhere; }

/* faq */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ochre); border-bottom: 2px solid var(--ochre); transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq p { margin: 0 0 22px; color: var(--stone-2); max-width: 70ch; }
.faq code { color: var(--text); }

/* footer */
.foot { background: var(--stone); color: var(--ink); padding: 64px 0 36px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; border-bottom: 2px solid var(--ink); padding-bottom: 22px; margin-bottom: 22px; }
.foot-mark { font-weight: 800; font-size: clamp(56px, 11vw, 150px); line-height: .8; letter-spacing: -.05em; margin: 0; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ochre-2); }
.honest { max-width: 82ch; font-size: 14px; color: #4a463f; margin: 0 0 14px; }
.copy { font-family: var(--mono); font-size: 12px; color: #6e685f; margin: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 16px); opacity: 0; background: var(--stone); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .legend li { border-right: 0; padding: 22px 18px 14px 0; }
  .legend li + li { padding-left: 0; }
  .trails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; gap: 0; background: var(--dusk-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px 16px; margin: 0; box-shadow: 0 18px 40px rgba(10, 10, 16, .4); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-end { margin-left: auto; }
  .menu-btn { display: block; }
  .stage { height: auto; min-height: 0; overflow: visible; }
  .stage-canvas { position: relative; }
  #hill { height: 58vh; height: 58svh; min-height: 380px; }
  .token-card { position: relative; top: auto; right: auto; margin: -18px var(--gut) 0; width: auto; padding: 10px 12px; }
  .tc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
  .tc-stats div { padding: 6px 7px; }
  .tc-stats dd { font-size: 13.5px; }
  .tc-top { margin-bottom: 8px; }
  .tc-top img { width: 32px; height: 32px; }
  .tc-name b { font-size: 16px; }
  .stage-copy { position: relative; left: auto; bottom: auto; width: auto; padding: 28px var(--gut) 48px; }
  .sec-head.split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .summit, .press, .footing { grid-template-columns: minmax(0, 1fr); }
  .notes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .moves-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .legend { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .legend li { padding-right: 12px; }
  .legend h3 { font-size: 18px; }
  .legend p { font-size: 14px; }
  .legend svg { height: 60px; }
  .tc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trails, .metrics, .notes { grid-template-columns: minmax(0, 1fr); }
  .ladder-head, .ladder li { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); }
  .ladder .val, .ladder-head .r { display: none; }
  .press-grid { grid-template-columns: minmax(0, 1fr); }
  .hide-s { display: none; }
  .scoutlog li:not(.empty) { grid-template-columns: minmax(0, 1fr) auto auto; }
  .scoutlog .t { display: none; }
  .king dl { grid-template-columns: minmax(0, 1fr); }
  .diff td.who { max-width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .stage-title .ln > span { opacity: 1; transform: none; }
}
.sample-tag { display: inline-block; margin: 0 0 14px; }

/* =====================================================================
   Polish v2 — depth, motion and drawn states
   ===================================================================== */
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes flagw { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-7deg) scaleX(.88); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.14); opacity: .45; } }
@keyframes ripple { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes flashv { 0% { color: var(--ochre); background-color: rgba(201, 150, 63, .2); } 100% { background-color: rgba(201, 150, 63, 0); } }
.flash-v { animation: flashv 1.3s var(--ease); border-radius: 4px; }

/* hero choreography */
.js .stage-copy > *:not(.stage-title) { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .ready .stage-copy > *:not(.stage-title) { opacity: 1; transform: none; }
.ready .stage-lede { transition-delay: .45s !important; }
.ready .ca-chip { transition-delay: .55s !important; }
.ready .scout { transition-delay: .62s !important; }
.ready .scout-status { transition-delay: .72s !important; }
.ready .chips { transition-delay: .8s !important; }
.js .token-card { opacity: 0; transform: translateY(-14px); transition: opacity .9s var(--ease) .9s, transform .9s var(--ease) .9s, border-color .4s; }
.js .ready .token-card { opacity: 1; transform: none; }
.token-card { box-shadow: 0 28px 60px -28px rgba(10, 10, 16, .75), inset 0 1px 0 rgba(255, 255, 255, .04); }
.token-card.is-live { border-color: rgba(201, 150, 63, .35); }
.badge.live::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); margin-right: 6px; vertical-align: 1px; animation: blink 1.6s ease-in-out infinite; }
.tc-stats dd { padding: 0 2px; margin-left: -2px; }
.stage-copy::before { content: ''; position: absolute; inset: -110px -140px -70px -90px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(30, 30, 38, .62), rgba(30, 30, 38, 0)); }
.scout { position: relative; overflow: hidden; }
.scout::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%; background: var(--ochre); transform: translateX(-110%); opacity: 0; }
.scout.busy::after { opacity: 1; animation: scan 1.1s var(--ease) infinite; }
@keyframes scan { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
.scout button { transition: background-color .25s, transform .2s var(--ease); }
.scout button:active:not(:disabled) { transform: scale(.95); }
.chip { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + .2s); }
.chip img { transition: transform .4s var(--ease); }
.chip:hover img { transform: rotate(-12deg) scale(1.1); }

/* living ticker of the trails */
.ticker { position: relative; overflow: hidden; background: var(--dusk-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker::before, .ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--dusk-2), rgba(35, 35, 45, 0)); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--dusk-2), rgba(35, 35, 45, 0)); }
.ticker-track { display: flex; width: max-content; padding: 13px 0; font-family: var(--mono); font-size: 12.5px; color: var(--stone-2); }
.ticker-track.live { animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tk-run { display: flex; }
.tk { display: inline-flex; gap: 10px; align-items: baseline; padding: 2px 26px; border-right: 1px solid var(--line); white-space: nowrap; }
.tk b { color: var(--text); font-weight: 500; }
.tk-sep { color: var(--stone-3); }
.tk-wait { padding: 0 var(--gut); }

/* headings: masked word rise, kicker rule */
.hw { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em 0 .12em; margin: -.04em 0 -.12em; }
.hw > span { display: inline-block; }
.js .reveal-h .hw > span { transform: translateY(110%); transition: transform 1s cubic-bezier(.2, .85, .2, 1); }
.js .reveal-h.in .hw > span { transform: none; }
.kicker::before { content: ''; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin: -2px 10px 0 0; transform-origin: left; }
.js .reveal-h .kicker { opacity: 0; transition: opacity .7s var(--ease); }
.js .reveal-h .kicker::before { transform: scaleX(0); transition: transform .9s var(--ease) .15s; }
.js .reveal-h.in .kicker { opacity: 1; }
.js .reveal-h.in .kicker::before { transform: scaleX(1); }
.js .reveal-h .sec-dek { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .3s, transform .9s var(--ease) .3s; }
.js .reveal-h.in .sec-dek { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .stagger.in > * { opacity: 1; transform: none; }

/* legend: drawn marks */
.legend .d { stroke-dasharray: 1; }
.js .legend .d { stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease) calc(var(--i, 0) * 90ms + .25s); }
.js .legend.in .d { stroke-dashoffset: 0; }
.legend .pop { transform-box: fill-box; transform-origin: center; }
.js .legend .pop { transform: scale(0); transition: transform .8s cubic-bezier(.34, 1.56, .64, 1); }
.js .legend.in .pop { transform: none; }
.js .legend.in .pop:nth-of-type(2) { transition-delay: .5s; }
.js .legend.in .pop:nth-of-type(3) { transition-delay: .65s; }
.js .legend.in .pop:nth-of-type(1) { transition-delay: .35s; }
.lg-flag { transform-box: fill-box; transform-origin: left center; animation: flagw 2.4s ease-in-out infinite; }
.lg-ripple { transform-box: fill-box; transform-origin: center; animation: ripple 3s ease-out infinite; }
.lg-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-in-out infinite; }
.lg-pulse.two { animation-delay: .5s; }
.legend svg { transition: transform .5s var(--ease); }
.legend li:hover svg { transform: translateY(-4px); }

/* summit */
.king { box-shadow: 0 34px 70px -34px rgba(10, 10, 16, .7), inset 0 1px 0 rgba(255, 255, 255, .04); }
.king > *:not(.king-deco) { position: relative; }
.king-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.king-row .king-big { flex: none; }
.king-deco { width: 46%; max-width: 220px; min-width: 0; height: auto; pointer-events: none; opacity: .75; margin-bottom: 6px; }
.kd-h { fill: none; stroke: rgba(214, 208, 196, .3); stroke-width: 1.5; stroke-dasharray: 1; }
.kd-s { fill: rgba(214, 208, 196, .035); }
.kd-p { stroke: rgba(214, 208, 196, .45); stroke-width: 1.5; }
.kd-f { fill: var(--ochre); transform-box: fill-box; transform-origin: left center; animation: flagw 2.2s ease-in-out infinite; }
.king-deco circle { fill: rgba(214, 208, 196, .35); }
.js .king .kd-h { stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .3s; }
.js .king.in .kd-h { stroke-dashoffset: 0; }
.crown .gem { fill: var(--dusk-3); }
.king .crown { transform-origin: 50% 100%; }
.js .king .crown { opacity: 0; }
.js .king.in .crown { animation: crownin 1s cubic-bezier(.34, 1.56, .64, 1) .15s both; }
@keyframes crownin { from { opacity: 0; transform: translateY(-26px) rotate(-14deg); } to { opacity: 1; transform: none; } }
.ladder li { transition: background-color .25s; }
.ladder li:hover { background: rgba(214, 208, 196, .035); }
.js .ladder li { opacity: 0; }
.js .ladder.in li { animation: rise .7s var(--ease) both; }
.js .ladder.in li:nth-child(2) { animation-delay: .05s; } .js .ladder.in li:nth-child(3) { animation-delay: .1s; }
.js .ladder.in li:nth-child(4) { animation-delay: .15s; } .js .ladder.in li:nth-child(5) { animation-delay: .2s; }
.js .ladder.in li:nth-child(6) { animation-delay: .25s; } .js .ladder.in li:nth-child(7) { animation-delay: .3s; }
.js .ladder.in li:nth-child(8) { animation-delay: .35s; } .js .ladder.in li:nth-child(9) { animation-delay: .4s; }
.js .ladder.in li:nth-child(10) { animation-delay: .45s; }
.sharebar .bar i { transition-delay: .25s; }
.reigns li:not(.empty) { animation: rise .5s var(--ease) both; }

/* moves */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -50%; width: 36%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); transform: skewX(-20deg); opacity: 0; pointer-events: none; }
.btn:hover:not(:disabled)::after { animation: shine .85s var(--ease); }
.btn.busy::after { animation: shine 1.1s linear infinite; }
@keyframes shine { from { opacity: 1; transform: skewX(-20deg) translateX(0); } to { opacity: 1; transform: skewX(-20deg) translateX(480%); } }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn.ghost::after { background: linear-gradient(100deg, rgba(214, 208, 196, 0), rgba(214, 208, 196, .18), rgba(214, 208, 196, 0)); }
.btn.ghost:hover:not(:disabled) { border-color: var(--ochre); color: var(--text); background: transparent; }
.switch .track i { transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), background-color .3s, width .2s; }
.switch:active .track i { width: 20px; }
.switch input:checked + .track { box-shadow: 0 0 0 4px rgba(201, 150, 63, .12); }
.switch input:checked ~ span:last-child::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); margin: 0 8px 2px 0; animation: blink 1.6s ease-in-out infinite; }
.moves-sum div { position: relative; overflow: hidden; animation: rise .6s var(--ease) both; }
.moves-sum div:nth-child(2) { animation-delay: .06s; } .moves-sum div:nth-child(3) { animation-delay: .12s; } .moves-sum div:nth-child(4) { animation-delay: .18s; }
.moves-sum div::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--ochre); transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease); }
.moves-sum div:hover::before { transform: scaleX(1); }
.empty-row td { border-bottom: 0; }
.empty-ill { display: flex; align-items: center; gap: 24px; padding: 18px 0; }
.empty-ill .empty { padding: 0; max-width: 46ch; }
.ill-moves { width: 230px; flex: none; height: auto; }
.ill-moves .h { fill: none; stroke: var(--stone-3); stroke-width: 1.5; }
.ill-moves circle { fill: var(--stone-2); }
.ill-moves .o { fill: var(--ochre); }
.ill-moves .ar { fill: none; stroke: var(--ochre); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ill-moves text, .press-ill text, .press-curve text { font-family: var(--mono); font-size: 9.5px; fill: var(--mute); }
.mv-climb { animation: climb 3.4s var(--ease) infinite; }
@keyframes climb { 0%, 12% { transform: translate(0, 0); } 55%, 88% { transform: translate(10px, -22px); } 100% { transform: translate(0, 0); } }
.mv-climb .ring { fill: none; stroke: var(--ochre); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 1.7s ease-in-out infinite; }

/* pressure */
.press-out { position: relative; box-shadow: 0 34px 70px -34px rgba(10, 10, 16, .6), inset 0 1px 0 rgba(255, 255, 255, .04); animation: rise .5s var(--ease) both; }
.press-ill { flex-direction: column; align-items: flex-start; gap: 14px; padding: 6px 0; }
.press-ill svg { width: min(100%, 360px); height: auto; }
.press-ill .ax, .press-curve .ax { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.press-ill .cv, .press-curve .cv { fill: none; stroke: var(--stone-2); stroke-width: 2; stroke-linecap: round; }
.press-ill .ball { fill: var(--ochre); offset-path: path('M24 12C52 70 110 98 244 104'); offset-rotate: 0deg; animation: slide 4.2s var(--ease) infinite; }
@keyframes slide { 0%, 12% { offset-distance: 0%; } 70%, 100% { offset-distance: 100%; } }
.press-curve { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 0 22px; overflow: visible; }
.press-curve .tr { fill: none; stroke: var(--ochre); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease) .1s forwards; }
.press-curve .p0 { fill: var(--stone-2); }
.press-curve .p1 { fill: var(--ochre); stroke: var(--dusk-3); stroke-width: 2; transition: transform 1s var(--ease) .1s; }
.press-big { animation: rise .6s var(--ease) both; }
.impact i { transition-delay: .15s; }
input[type="range"] { cursor: pointer; }
input[type="range"]:active { cursor: grabbing; }
select { transition: border-color .25s, box-shadow .25s; }
select:focus { box-shadow: 0 0 0 3px rgba(201, 150, 63, .15); }

/* footing */
.grade { box-shadow: 0 34px 70px -34px rgba(10, 10, 16, .7); overflow: hidden; }
.grade .grade-letter { font-weight: 800; font-size: clamp(110px, 12vw, 176px); line-height: .8; letter-spacing: -.06em; margin: 10px 0 0; color: var(--ink); flex: none; }
.grade-mid { display: flex; align-items: flex-end; gap: 10px; margin: 6px 0 14px; }
.grade-hill { flex: 1; min-width: 0; height: auto; max-height: 120px; overflow: visible; }
.gh-fill { fill: rgba(36, 36, 46, .1); }
.gh-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.gh-pole { stroke: var(--ink); stroke-width: 1.5; }
.gh-flag { fill: var(--ochre-2); transform-box: fill-box; transform-origin: left center; animation: flagw 2.4s ease-in-out infinite; }
.js .footing .grade-letter { opacity: 0; transform: translateY(24px) scale(.8); transform-origin: left bottom; transition: opacity .9s var(--ease) .15s, transform 1s cubic-bezier(.34, 1.4, .64, 1) .15s; }
.js .footing.in .grade-letter { opacity: 1; transform: none; }
.metric { position: relative; transition: transform .35s var(--ease), box-shadow .35s; }
.metric:hover { box-shadow: 0 20px 40px -24px rgba(10, 10, 16, .7); }
.js .footing .metric { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .footing.in .metric { opacity: 1; transform: none; }
.js .footing.in .metric:nth-child(2) { transition-delay: .08s; } .js .footing.in .metric:nth-child(3) { transition-delay: .16s; }
.js .footing.in .metric:nth-child(4) { transition-delay: .24s; } .js .footing.in .metric:nth-child(5) { transition-delay: .32s; }
.js .footing.in .metric:nth-child(6) { transition-delay: .4s; }
.metric .bar i { transition-delay: .4s; }

/* trails */
.sorts { position: relative; }
.sort { position: relative; z-index: 1; transition: background-color .25s, color .3s, border-color .3s, transform .2s var(--ease); }
.sort:active { transform: scale(.95); }
.sort-ind { position: absolute; left: 0; top: 0; width: 100px; height: 40px; border-radius: 20px; background: var(--stone); transform-origin: 0 0; opacity: 0; pointer-events: none; z-index: 0; transition: transform .55s cubic-bezier(.34, 1.25, .64, 1), opacity .3s; }
.sort-ind.ready { opacity: 1; }
.sort-ind.ready ~ .sort.on { background: transparent; border-color: transparent; color: var(--ink); }
.trail { position: relative; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(10, 10, 16, .7); }
.trail::after { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.trail:hover::after { transform: scaleX(1); }
.trail-top img { transition: transform .5s var(--ease); }
.trail:hover .trail-top img { transform: scale(1.08) rotate(-4deg); }
.trail-act button { transition: transform .2s var(--ease), background-color .25s; }
.trail-act button:hover { background: #e7e1d6; }
.trail-act button:active { transform: scale(.95); }

/* scouting log */
.log-ill { display: flex; align-items: center; gap: 22px; padding: 22px 0; }
.log-ill svg { width: 150px; flex: none; height: auto; }
.log-ill .pg { fill: rgba(214, 208, 196, .04); stroke: var(--line-2); }
.log-ill .fold { stroke: var(--line-2); }
.log-ill .tr { fill: none; stroke: var(--ochre); stroke-width: 1.6; stroke-dasharray: 4 5; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.log-ill .pole { stroke: var(--stone-2); stroke-width: 1.4; }
.log-ill .o { fill: var(--ochre); transform-box: fill-box; transform-origin: left center; animation: flagw 2.4s ease-in-out infinite; }
.log-ill .x { stroke: var(--stone-2); stroke-width: 1.6; stroke-linecap: round; }
.scoutlog li:not(.empty) { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }

/* field notes */
.n-ico { display: block; width: 64px; height: 40px; margin: 12px 0 6px; overflow: visible; }
.n-ico .d { fill: none; stroke: var(--stone-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.js .notes .n-ico .d { stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease) calc(var(--i, 0) * 90ms + .3s); }
.js .notes.in .n-ico .d { stroke-dashoffset: 0; }
.n-ico circle { fill: var(--stone-2); }
.n-ico .o { fill: var(--ochre); }
.n-ico .lake { fill: rgba(214, 208, 196, .08); stroke: var(--stone-3); }
.notes article { position: relative; }
.notes article::before { content: ''; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.notes article:hover::before { transform: scaleX(1); }
.notes article:hover .n-ico .o { animation: pulse 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* faq */
.faq summary { transition: color .25s, transform .35s var(--ease); }
.faq summary:hover { color: #fff; transform: translateX(6px); }
.faq details[open] p { animation: rise .5s var(--ease) both; }

/* footer */
.foot-brand { display: grid; gap: 6px; min-width: 0; }
.foot-hill { width: min(420px, 72vw); height: auto; overflow: visible; }
.foot-hill .d { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 1; }
.js .foot .foot-hill .d { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.js .foot.in .foot-hill .d { stroke-dashoffset: 0; }
.foot-hill circle { fill: var(--ink); }
.foot-flag { fill: var(--ochre-2); transform-box: fill-box; transform-origin: left center; animation: flagw 2.4s ease-in-out infinite; }
.foot-mark { overflow: hidden; padding: .14em .08em .02em 0; margin-top: -.14em; }
.fl { display: inline-block; }
.js .reveal-h .fl { transform: translateY(105%); transition: transform 1s cubic-bezier(.2, .85, .2, 1); }
.js .reveal-h.in .fl { transform: none; }
.foot-links a { transition: color .25s; }

/* interlude: one sell, pinned */
.storm { position: relative; height: 380vh; background: #24242e; }
.storm-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#stormCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.storm-copy { position: absolute; left: var(--gut); top: 50%; transform: translateY(-46%); width: min(410px, 34vw); z-index: 2; }
.storm-copy h2 { font-weight: 800; font-size: clamp(34px, 3.8vw, 56px); line-height: .95; letter-spacing: -.035em; margin: 0 0 26px; }
.storm-steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: st; }
.storm-steps li { position: relative; padding: 12px 0 12px 42px; border-top: 1px solid var(--line); counter-increment: st; opacity: .34; transition: opacity .5s var(--ease); }
.storm-steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 15px; font-family: var(--mono); font-size: 12px; color: var(--mute); transition: color .4s; }
.storm-steps li::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.storm-steps li.on { opacity: 1; }
.storm-steps li.past { opacity: .55; }
.storm-steps li.on::before { color: var(--ochre); }
.storm-steps li.on::after, .storm-steps li.past::after { transform: scaleX(1); }
.storm-steps b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.storm-steps p { margin: 3px 0 0; font-size: 14.5px; color: var(--stone-2); line-height: 1.5; }
.storm-note { margin: 18px 0 0; font-size: 13px; color: var(--mute); }
.storm-note .tag { margin: 0 6px 0 0; }
.storm-bar { height: 2px; background: var(--line); margin-top: 16px; overflow: hidden; border-radius: 1px; }
.storm-bar i { display: block; height: 100%; background: var(--ochre); transform-origin: left; transform: scaleX(0); }
.storm-price { position: absolute; right: var(--gut); top: 92px; width: 272px; margin: 0; z-index: 2; background: rgba(35, 35, 45, .84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px 10px; box-shadow: 0 28px 60px -28px rgba(10, 10, 16, .8); opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.storm-price.on { opacity: 1; transform: none; }
.storm-price figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.storm-price figcaption b { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--text); text-transform: none; font-variant-numeric: tabular-nums; }
.storm-price svg { display: block; width: 100%; height: auto; margin-top: 4px; }
.sp-axis { fill: none; stroke: var(--line-2); }
.sp-curve { fill: none; stroke: var(--stone-2); stroke-width: 1.6; }
.sp-trail { fill: none; stroke: var(--ochre); stroke-width: 3; stroke-linecap: round; }
.sp-dot { fill: var(--ochre); stroke: #24242e; stroke-width: 2; }
.storm-price text { font-family: var(--mono); font-size: 10px; fill: var(--mute); }
.storm-price p { margin: 2px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.storm-price p b { color: var(--text); font-weight: 500; }
.storm.still { height: auto; }
.storm.still .storm-pin { position: relative; height: auto; min-height: 100vh; }
.storm.still .storm-copy { position: relative; top: auto; transform: none; padding: 120px 0 90px; }
.storm.still .storm-price { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .stage-copy::before { display: none; }
  .storm { height: 330vh; }
  .storm-copy { top: auto; bottom: 22px; left: var(--gut); right: var(--gut); width: auto; transform: none; }
  .storm-copy h2 { font-size: 30px; margin-bottom: 14px; }
  .storm-copy .kicker { margin-bottom: 8px; }
  .storm-steps li { grid-area: 1 / 1; opacity: 0; padding-left: 36px; }
  .storm-steps li.on { opacity: 1; }
  .storm-steps li.past { opacity: 0; }
  .storm-steps p { font-size: 14px; }
  .storm-note { margin-top: 10px; font-size: 12px; }
  .storm-price { top: calc(50% + 12px); left: var(--gut); right: auto; width: 196px; padding: 8px 12px 7px; border-radius: 10px; }
  .storm-price figcaption span { white-space: nowrap; }
  .storm-price figcaption { font-size: 10px; }
  .storm-price figcaption b { font-size: 21px; }
  .storm-price svg { display: none; }
  .storm-price p { font-size: 10.5px; }
  .storm.still .storm-copy { padding: 54vh 0 50px; }
  .storm.still .storm-steps li { grid-area: auto; opacity: 1; }
  .empty-ill { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 600px) {
  .ill-moves { width: 200px; }
  .grade .grade-letter { font-size: 120px; }
  .foot-mark { font-size: clamp(56px, 18vw, 150px); }
}
@media (prefers-reduced-motion: reduce) {
  .js .stage-title .ln > span, .js .stage-copy > *, .js .token-card, .js .reveal-h .hw > span, .js .reveal-h .kicker, .js .reveal-h .sec-dek,
  .js .stagger > *, .js .reveal-h .fl, .js .ladder li, .js .footing .metric, .js .footing .grade-letter, .js .king .crown, .js .legend .pop { opacity: 1 !important; transform: none !important; animation: none !important; }
  .legend .d, .kd-h, .n-ico .d, .foot-hill .d, .press-curve .tr { stroke-dashoffset: 0 !important; animation: none !important; }
  .js .reveal-h .kicker::before { transform: none !important; }
  .ticker-track.live { animation: none !important; }
  .lg-flag, .lg-ripple, .lg-pulse, .kd-f, .gh-flag, .foot-flag, .log-ill .o, .mv-climb, .mv-climb .ring, .press-ill .ball { animation: none !important; }
}
@media (max-width: 600px) { .king-deco { width: 38%; } }
