/* gitluke.dev — home. Light/dark tokens, Geist, soft-gray tiles, floating pill nav. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { background: var(--page); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5;
  letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 8px; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- announcement bar ---------- */
.topbar { position: relative; z-index: 50; height: 36px; background: #050505; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; letter-spacing: -0.015em; padding: 0 44px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; transition: color .15s var(--ease); }
.topbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar a svg { flex: none; }
.topbar a:hover { color: rgba(255,255,255,.75); }
.topbar .x { position: absolute; right: 8px; top: 4px; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; color: rgba(255,255,255,.75); }
.topbar .x:hover { color: #fff; background: rgba(255,255,255,.1); }
.topbar.gone { display: none; }

/* ---------- header (pills appear on scroll) ---------- */
.hdr { position: sticky; top: 0; z-index: 40; height: 72px; pointer-events: none; }
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 28px 0 35px; position: relative; }
.pill { pointer-events: auto; display: flex; align-items: center; border-radius: 999px; border: 1px solid transparent;
  background: transparent; transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease); }
.scrolled .pill { background: var(--pill-bg); border-color: var(--pill-border); box-shadow: var(--pill-shadow); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); }
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 6px 2px; font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: -0.02em; }
.scrolled .brand { padding: 6px 14px 6px 10px; }
.brand-mark { width: 22px; height: 22px; }
.nav { position: absolute; left: 50%; transform: translateX(-50%); padding: 4px 6px; gap: 0; }
.nav a { padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--text-2); border-radius: 999px; transition: color .15s var(--ease), background-color .15s var(--ease); white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a.on { background: var(--surface-hover); color: var(--text); }
.tools { gap: 2px; padding: 3px; }
.ib { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; color: var(--text-2); transition: color .15s var(--ease), background-color .15s var(--ease); }
.ib:hover { color: var(--text); background: var(--surface-hover); }
.ib svg { width: 15px; height: 15px; }
.ib.lang { width: auto; padding: 0 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.sun { display: none; } .dark .sun { display: block; } .dark .moon { display: none; }

/* ---------- hero ---------- */
.hero { padding: 80px 24px 40px; text-align: center; }
.hero h1 { font-size: 72px; line-height: 1.02; font-weight: 500; letter-spacing: -0.035em; max-width: 960px; margin: 0 auto; text-wrap: balance; }
.hero p { margin: 16px auto 0; max-width: 470px; font-size: 15px; line-height: 1.625; color: var(--text-2); letter-spacing: -0.011em; text-wrap: balance; }
.cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 10px 24px; border-radius: 999px; background: var(--invert-bg); color: var(--invert-text);
  font-size: 14px; font-weight: 500; transition: transform .2s var(--spring), opacity .2s var(--ease); }
.cta:hover { opacity: .88; } .cta:active { transform: scale(.97); }
.findme { padding: 0 24px 40px; text-align: center; }
.findme-label { font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.findme-row { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.sq { width: 40px; height: 40px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--text);
  transition: border-color .15s var(--ease), transform .2s var(--spring); }
.sq:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.sq svg { width: 18px; height: 18px; }
.sq.dashed { border-style: dashed; background: transparent; color: var(--muted); }

/* ---------- tile grid ---------- */
.grid-wrap { padding: 32px 52px 96px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1336px; margin: 0 auto; }
.tile { position: relative; display: flex; flex-direction: column; border-radius: 26px; background: var(--tile); padding: 10px; transition: transform .25s var(--spring); color: var(--text); }
.tile-stage { position: relative; border-radius: 22px; min-height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 24px 20px; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 8px 8px; }
.tile-foot h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 28px; }
.tile-foot .go { width: 16px; height: 16px; color: var(--text); transition: transform .2s var(--spring); flex: none; }
.tile:hover .tile-foot .go { transform: translate(2px,-2px); }
.tile-desc { padding: 0 8px 8px; font-size: 14px; line-height: 1.55; color: var(--text-2); letter-spacing: -0.01em; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 10px; }
.chip { font-size: 11.5px; font-weight: 500; color: var(--text-2); background: var(--surface); border-radius: 999px; padding: 3px 9px; box-shadow: var(--widget-shadow); }
.chip.k { color: var(--muted); background: transparent; box-shadow: none; padding-left: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 11px; font-size: 11px; font-weight: 500; color: var(--muted);
  background: color-mix(in oklab, var(--surface) 80%, transparent); border: 1px solid var(--border); backdrop-filter: blur(8px); }
.dot { width: 6px; height: 6px; border-radius: 99px; background: var(--live); box-shadow: 0 0 0 3px color-mix(in oklab, var(--live) 22%, transparent); }
.more { display: flex; justify-content: center; margin-top: 40px; }
.more a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: color .15s var(--ease); }
.more a:hover { color: var(--text); } .more a svg { width: 14px; height: 14px; transition: transform .2s var(--spring); } .more a:hover svg { transform: translateX(3px); }

/* ---------- widgets inside tiles ---------- */
.w { background: var(--surface); border-radius: 14px; box-shadow: var(--widget-shadow); }
.w-pad { padding: 14px 16px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in oklab, var(--surface) 55%, transparent); }
.seg span, .seg button { padding: 3px 10px; font-size: 11px; font-weight: 500; color: var(--muted); border-radius: 999px; transition: all .2s var(--ease); }
.seg .on { background: var(--surface); color: var(--text); box-shadow: var(--widget-shadow); }
.label-sm { font-size: 12px; font-weight: 500; color: var(--text); }
.hint { font-size: 10.5px; color: var(--muted); }
.up { color: var(--up); } .num { font-variant-numeric: tabular-nums; }

/* PearlBridge */
.bridge { width: 230px; }
.bridge .row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.bridge .row + .row { border-top: 1px solid var(--border-subtle); }
.bridge .amt { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.tok { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 9px 4px 5px; border-radius: 999px; background: var(--surface-hover); }
.tok i { width: 16px; height: 16px; border-radius: 99px; background: linear-gradient(135deg,#d4d4d8,#71717a); }
.tok.w i { background: linear-gradient(135deg,#0a0a0a,#52525b); }
.dark .tok.w i { background: linear-gradient(135deg,#f2f2f3,#71717a); }
.swap { position: relative; height: 0; } .swap b { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 8px; background: var(--surface); box-shadow: var(--widget-shadow); display: grid; place-items: center; }
.swap svg { width: 12px; height: 12px; color: var(--muted); }
.btn-dark { display: flex; align-items: center; justify-content: center; gap: 7px; height: 34px; border-radius: 10px; background: var(--invert-bg); color: var(--invert-text); font-size: 12px; font-weight: 500; margin-top: 10px; position: relative; overflow: hidden; }
.btn-dark .ok { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--invert-bg); transform: translateY(100%); transition: transform .4s var(--spring); }
.tile:hover .btn-dark .ok { transform: none; }
.tx-hint { margin-top: 8px; text-align: center; }

/* KOL list */
.kol { width: 250px; padding: 6px; }
.kol li { list-style: none; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; font-size: 12.5px; transition: background-color .2s var(--ease); }
.kol li:hover { background: var(--surface-hover); }
.kol .medal { font-size: 14px; } .kol .n { font-weight: 500; } .kol .v { font-variant-numeric: tabular-nums; font-weight: 500; }
.kol .foot { display: flex; justify-content: space-between; padding: 8px 8px 4px; border-top: 1px solid var(--border-subtle); margin-top: 4px; font-size: 11px; color: var(--muted); }

/* Portfolio chart */
.chart { width: 100%; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 6px 6px 0; }
.chart-top { display: flex; justify-content: space-between; align-items: flex-start; }
.chart-val { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.chart-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.chart svg { width: 100%; height: 120px; margin-top: 14px; overflow: visible; }
.chart .ax { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); padding: 4px 0 0 26px; }
.chart .line { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linejoin: round; }
.chart .area { fill: url(#cg); }
.chart .gl { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .yl { font-size: 9px; fill: var(--muted); font-family: var(--font); }
.plot { position: relative; z-index: 2; }
.chart .pt { fill: var(--page); stroke: currentColor; stroke-width: 1.6; transition: cx .12s linear, cy .12s linear; }
.chart .guide { stroke: var(--border-hover); stroke-width: 1; stroke-dasharray: 2 2; opacity: 0; transition: opacity .15s; }
.plot:hover .guide, .plot:hover .tip { opacity: 1; }
.tip { position: absolute; top: -6px; left: 0; transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity .15s var(--ease);
  background: var(--surface); border-radius: 10px; padding: 5px 9px; box-shadow: var(--widget-shadow), 0 8px 20px -10px rgba(0,0,0,.25); white-space: nowrap; }
.tip b { display: block; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; } .tip i { display: block; font-style: normal; font-size: 10px; color: var(--muted); }

/* Scraper */
.chains { display: flex; flex-direction: column; gap: 8px; width: 240px; }
.chainrow { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; }
.chainrow .c { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text); }
.bar { height: 4px; border-radius: 99px; background: var(--surface-hover); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--text); width: var(--p); transition: width 1.2s var(--spring); }
.chainrow .v { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.chains .hint { text-align: center; margin-top: 2px; }

/* Follow tracker */
.toast { width: 276px; padding: 12px 14px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.av { width: 30px; height: 30px; border-radius: 99px; background: linear-gradient(135deg,#e4e4e7,#a1a1aa); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #0a0a0a; }
.toast .t1 { font-size: 12.5px; font-weight: 600; } .toast .t2 { font-size: 11.5px; color: var(--text-2); margin-top: 2px; line-height: 1.45; }
.toast .t2 b { color: var(--up); font-weight: 500; } .toast .t2 s { color: var(--down); text-decoration: none; }
.stack2 { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tgl { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.sw { width: 44px; height: 26px; border-radius: 99px; background: var(--invert-bg); position: relative; transition: background-color .25s var(--ease); }
.sw::after { content: ""; position: absolute; top: 3px; left: 21px; width: 20px; height: 20px; border-radius: 99px; background: var(--invert-text); transition: left .35s var(--spring); }
.sw.off { background: var(--border-hover); } .sw.off::after { left: 3px; background: #fff; }

/* Mining */
.mine { width: 250px; padding: 14px 16px; }
.mine .hr { display: flex; align-items: baseline; gap: 6px; } .mine .hr b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; } .mine .hr span { font-size: 12px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 54px; margin: 12px 0 10px; }
.bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--text); opacity: .85; height: var(--h); transform-origin: bottom; animation: rise 2.4s var(--spring) infinite alternate; animation-delay: var(--d); }
@keyframes rise { from { transform: scaleY(.72); } to { transform: scaleY(1); } }
.kv { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); padding: 3px 0; }
.kv b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Live ops terminal */
.term { width: 100%; max-width: 330px; border-radius: 14px; background: #0a0a0a; color: #e4e4e7; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 40px -20px rgba(0,0,0,.45); overflow: hidden; }
.dark .term { background: #050505; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.term-bar i { width: 9px; height: 9px; border-radius: 99px; background: #3f3f46; }
.term-bar span { margin-left: 6px; font-family: var(--mono); font-size: 10.5px; color: #71717a; }
.term-body { padding: 12px 14px 14px; font-family: var(--mono); font-size: 11px; line-height: 1.7; min-height: 150px; }
.term-body .p { color: #71717a; } .term-body .cmd { color: #fafafa; }
.log-line { opacity: 0; transform: translateY(3px); animation: ln .35s var(--spring) forwards; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-line.indent { padding-left: 14px; } .log-line .label { color: #a1a1aa; } .log-line .val { color: #4ade80; } .log-line .val-dim { color: #52525b; }
.log-line .val-blue { color: #93c5fd; } .log-line .val-yellow { color: #fde68a; }
@keyframes ln { to { opacity: 1; transform: none; } }
.caret { display: inline-block; width: 6px; height: 12px; background: #fafafa; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Manual pagination */
.pager { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pages { display: flex; align-items: center; gap: 4px; position: relative; }
.pages button { width: 28px; height: 28px; border-radius: 99px; font-size: 12px; font-weight: 500; color: var(--text-2); position: relative; z-index: 1; transition: color .25s var(--ease); font-variant-numeric: tabular-nums; }
.pages button.on { color: var(--invert-text); }
.pages .knob { position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 99px; background: var(--invert-bg); transition: transform .45s var(--spring); }
.chapter { font-size: 13px; font-weight: 500; color: var(--text); padding: 7px 14px; min-width: 210px; text-align: center; }
.chapter span { color: var(--muted); margin-right: 6px; font-family: var(--mono); font-size: 11px; }

/* Tutorials pill nav */
.pnav-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.pnav { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: #0a0a0a; position: relative; }
.dark .pnav { background: #050505; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.pnav button { position: relative; z-index: 1; padding: 6px 13px; font-family: var(--mono); font-size: 11px; font-weight: 500; color: #a1a1aa; border-radius: 99px; transition: color .25s var(--ease); }
.pnav button.on { color: #0a0a0a; }
.pnav .knob { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 99px; background: #fff; transition: transform .45s var(--spring), width .45s var(--spring); }
.pnav-card { width: 260px; padding: 12px 14px; min-height: 76px; }
.pnav-card .t { font-size: 12.5px; font-weight: 600; line-height: 1.35; } .pnav-card .m { font-size: 11px; color: var(--muted); margin-top: 4px; }
.start { display: inline-block; font-size: 10px; font-weight: 500; color: var(--up); margin-left: 6px; }

/* ---------- sections below the grid ---------- */
.sec { padding: 96px 52px; border-top: 1px solid var(--border-subtle); }
.sec-in { max-width: 1336px; margin: 0 auto; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.sec-head h2 { font-size: 48px; line-height: 1.05; font-weight: 500; letter-spacing: -0.035em; margin-top: 14px; text-wrap: balance; }
.sec-head p { margin-top: 14px; font-size: 15px; line-height: 1.625; color: var(--text-2); text-wrap: balance; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-radius: 26px; background: var(--tile); padding: 28px 28px 24px; }
.stat b { display: block; font-size: 44px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 24px; }
.fact { border-radius: 26px; background: var(--tile); padding: 28px; }
.fact h4 { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: -0.005em; margin-bottom: 10px; }
.fact p { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.fact p.lead { font-size: 22px; line-height: 1.35; font-weight: 500; letter-spacing: -0.02em; color: var(--text); text-wrap: pretty; }
.fact ul { list-style: none; display: grid; gap: 8px; }
.fact li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-2); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.fact li:last-child { border-bottom: 0; padding-bottom: 0; } .fact li b { color: var(--text); font-weight: 500; }
.fact .big { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.fact-col { display: grid; gap: 24px; }

.notes { border-radius: 26px; background: var(--tile); padding: 10px; }
.note { display: grid; grid-template-columns: 110px 1fr auto 20px; align-items: center; gap: 20px; padding: 20px 22px; border-radius: 18px; transition: background-color .2s var(--ease); }
.note + .note { margin-top: 2px; }
.note:hover { background: var(--surface); box-shadow: var(--widget-shadow); }
.note time { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.note h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }
.note .tags { font-size: 12px; color: var(--muted); white-space: nowrap; }
.note svg { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--spring), color .2s; }
.note:hover svg { color: var(--text); transform: translate(2px,-2px); }

.manual { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.manual-main { border-radius: 26px; background: var(--tile); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; }
.manual-main h3 { font-size: 36px; line-height: 1.08; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
.manual-main p { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 52ch; }
.manual-main .cta { align-self: flex-start; }
.toc { border-radius: 26px; background: var(--tile); padding: 10px; display: grid; }
.toc a { display: grid; grid-template-columns: 40px 1fr 16px; align-items: center; padding: 13px 18px; border-radius: 16px; font-size: 15px; font-weight: 500; letter-spacing: -0.015em; transition: background-color .2s var(--ease); }
.toc a:hover { background: var(--surface); box-shadow: var(--widget-shadow); }
.toc a span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.toc a svg { width: 14px; height: 14px; color: var(--subtle); }

.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact { border-radius: 26px; background: var(--tile); padding: 10px; display: flex; flex-direction: column; }
.contact .stage { border-radius: 18px; background: var(--surface); box-shadow: var(--widget-shadow); height: 140px; display: grid; place-items: center; }
.contact .stage svg { width: 34px; height: 34px; transition: transform .35s var(--spring); }
.contact:hover .stage svg { transform: scale(1.08) rotate(-4deg); }
.contact .foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 10px 8px; }
.contact h4 { font-size: 13px; font-weight: 500; color: var(--muted); } .contact b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.contact .go { width: 16px; height: 16px; transition: transform .2s var(--spring); } .contact:hover .go { transform: translate(2px,-2px); }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--border-subtle); padding: 32px 52px 28px; color: var(--muted); }
.ftr-in { max-width: 1336px; margin: 0 auto; }
.ftr-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--border-subtle); }
.ftr .brand { color: var(--muted); padding: 0; font-size: 14px; } .ftr .brand:hover { color: var(--text); }
.ftr-top p { margin-top: 10px; max-width: 320px; font-size: 14px; line-height: 20px; }
.ftr nav { display: flex; gap: 22px; flex-wrap: wrap; } .ftr nav a { font-size: 14px; color: var(--text-2); transition: color .15s; } .ftr nav a:hover { color: var(--text); }
.ftr-bot { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; font-size: 12px; line-height: 16px; }
.ftr-bot a { color: var(--text-2); } .ftr-bot a:hover { color: var(--text); }

/* ---------- mobile dock + sheet ---------- */
.dock { display: none; }
.sheet { position: fixed; inset: auto 12px 88px 12px; z-index: 60; border-radius: 22px; background: var(--pill-bg); border: 1px solid var(--pill-border); box-shadow: var(--pill-shadow);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); padding: 8px; display: grid; gap: 2px;
  opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none; transition: opacity .25s var(--ease), transform .35s var(--spring); }
.sheet.open { opacity: 1; transform: none; pointer-events: auto; }
.sheet a { padding: 12px 14px; border-radius: 14px; font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; }
.sheet a:hover, .sheet a.on { background: var(--surface-hover); }
.sheet a span { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--spring); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 6px 9px; font-size: 12.5px; }
}
@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .facts, .manual { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 767px) {
  .topbar { font-size: 12px; justify-content: flex-start; padding: 0 44px 0 16px; }
  .hdr { position: relative; height: 64px; } .hdr-in { padding: 0 20px; }
  .tools { display: none; }
  .hero { padding: 56px 20px 32px; }
  .hero h1 { font-size: 44px; line-height: 1.04; letter-spacing: -0.035em; }
  .hero p { font-size: 15px; max-width: 360px; }
  .cta { padding: 12px 26px; font-size: 15px; }
  .grid-wrap { padding: 24px 10px 72px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .tile-stage { min-height: 260px; }
  .sec { padding: 72px 16px; }
  .sec-head h2 { font-size: 34px; }
  .stats { gap: 12px; } .stat { padding: 22px 20px 18px; border-radius: 22px; } .stat b { font-size: 34px; }
  .facts { gap: 12px; margin-top: 12px; } .fact { padding: 22px; border-radius: 22px; } .fact p.lead { font-size: 19px; }
  .note { grid-template-columns: 1fr 16px; gap: 6px 12px; padding: 16px; }
  .note time { grid-column: 1; } .note h3 { grid-column: 1; font-size: 16px; } .note .tags { grid-column: 1; } .note svg { grid-column: 2; grid-row: 1 / span 3; }
  .manual-main { padding: 26px; min-height: 0; border-radius: 22px; } .manual-main h3 { font-size: 28px; } .manual-main .cta { margin-top: 24px; }
  .toc { border-radius: 22px; } .toc a { padding: 12px 12px; font-size: 14px; }
  .contacts { grid-template-columns: 1fr; gap: 12px; }
  .ftr { padding: 28px 20px 120px; } .ftr-top { flex-direction: column; align-items: flex-start; } .ftr-bot { flex-direction: column; gap: 6px; }
  .dock { display: flex; position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 61; gap: 2px; padding: 5px 8px; border-radius: 999px;
    background: var(--pill-bg); border: 1px solid var(--pill-border); box-shadow: var(--pill-shadow); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); }
  .dock .ib { width: 46px; height: 38px; } .dock .ib svg { width: 18px; height: 18px; }
  .dock .sep { width: 1px; margin: 9px 2px; background: var(--border); }
  .dock .ib.lang { width: 46px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* stretched title link: whole tile is clickable, demo controls stay on top */
.tile .stretch::after { content: ""; position: absolute; inset: 0; border-radius: 26px; z-index: 1; }
.tile .stretch:focus-visible { outline: none; } .tile .stretch:focus-visible::after { outline: 2px solid var(--text); outline-offset: 3px; }
.tile [data-pager] .pages, .tile [data-pnav] .pnav, .tile .tgl, .tile .seg { position: relative; z-index: 2; }
.tile .tile.linked:hover .tile-foot .go { transform: translate(2px,-2px); }
.tile:not(.linked) .tile-foot .go { display: none; }
