/* ---------- hero ---------- */
.hero { position: relative; padding-top: 88px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, #D9D9D4 1px, transparent 0); background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; left: 50%; top: 520px; width: 1100px; height: 520px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 91, 31, .20), rgba(255, 91, 31, 0) 65%); filter: blur(10px); }
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 26px; }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 640px; text-align: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font-size: 0.88rem; font-weight: 500; text-decoration: none; color: var(--ink-2); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: border-color var(--motion-duration-sm) var(--motion-ease-move); }
.chip:hover { border-color: var(--signal); }
.chip-new { background: var(--signal); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 0.78rem; font-weight: 600; }
.chip .arr { width: 14px; height: 14px; transition: transform var(--motion-duration-sm) var(--motion-ease-move); }
.chip:hover .arr { transform: translateX(3px); }
.typed { white-space: nowrap; }
.caret { display: inline-block; width: 0.07em; height: 0.82em; background: var(--signal); margin-left: 0.04em; vertical-align: -0.04em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .install { margin-top: -6px; }
@media (max-width: 640px) { .hero { padding-top: 48px; } .hero .install { width: 100%; } }

/* console: the product window */
.console { margin-top: 64px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); padding: 10px;
  box-shadow: 0 30px 80px -40px rgba(14, 14, 14, .35), 0 2px 6px rgba(0,0,0,.04); }
.console-bar { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; padding: 6px 8px 12px; }
.cb-left { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.01em; min-width: 0; }
.cb-sub { color: var(--slate); font-weight: 400; font-size: 0.9rem; }
.live-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.74rem; font-weight: 600; color: var(--signal-ink);
  background: var(--signal-soft); border-radius: 999px; padding: 3px 10px 3px 9px; letter-spacing: .04em; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--slate); font: inherit; font-size: 0.86rem; font-weight: 500; padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: background-color var(--motion-duration-sm) var(--motion-ease-move), color var(--motion-duration-sm) var(--motion-ease-move); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.frame-wrap { position: relative; }
.frame { position: relative; aspect-ratio: 16 / 8.2; background: #0B0D0E; border-radius: 12px; overflow: hidden; touch-action: pan-y; cursor: crosshair; }
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; display: block; transition: opacity var(--motion-duration-md) var(--motion-ease-move); }
.frame canvas, .frame > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame > svg { pointer-events: none; overflow: visible; }
.sk-det { fill: none; stroke: var(--signal); stroke-width: 3.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(255, 91, 31, .65)); }
.sk-dem { fill: none; stroke: #FFFFFF; stroke-width: 1.5; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; opacity: .9; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -12; } }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.8s cubic-bezier(.3,.1,.2,1) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fadein { opacity: 0; animation: fade var(--motion-duration-lg) var(--motion-ease-enter) 1.6s forwards; }
@keyframes fade { to { opacity: 1; } }
.ruler line { stroke: #FFFFFF; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .85; }
.ruler text, .contour-label { fill: #FFFFFF; font-family: var(--mono); font-size: 21px; font-weight: 500; paint-order: stroke; stroke: rgba(10, 12, 14, .55); stroke-width: 4px; }
.scan { stroke: var(--signal); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .0; }
.xhair { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; transition: transform var(--motion-duration-lg) var(--motion-ease-move), opacity var(--motion-duration-md) var(--motion-ease-move); opacity: 0; }
.xhair i { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border: 2px solid var(--signal); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 91, 31, .25); }
.xhair i::before, .xhair i::after { content: ""; position: absolute; background: var(--signal); }
.xhair i::before { left: 12px; top: -10px; width: 2px; height: 46px; }
.xhair i::after { top: 12px; left: -10px; height: 2px; width: 46px; }
.xhair.on { opacity: 1; }
.pip { position: absolute; right: 14px; top: 14px; width: 210px; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255,255,255,.9);
  padding: 0; background: #000; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform var(--motion-duration-sm) var(--motion-ease-move); }
.pip:hover { transform: scale(1.03); }
.pip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pip-tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.7rem; color: #fff;
  background: rgba(0,0,0,.6); border-radius: 999px; padding: 3px 9px 3px 8px; }
.readout { position: absolute; left: 14px; bottom: 14px; width: 280px; background: rgba(255, 255, 255, .94); color: var(--ink); border-radius: 12px;
  padding: 14px 16px; font-size: 0.86rem; line-height: 1.45; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.readout .big { font-size: 1.7rem; font-weight: 650; letter-spacing: -0.04em; line-height: 1.05; }
.readout .big small { font-size: 0.9rem; color: var(--slate); font-weight: 500; letter-spacing: 0; }
.readout dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 10px 0 0; }
.readout dt { color: var(--slate); }
.readout dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 0.8rem; }
.readout .hint { color: var(--signal-ink); margin-top: 8px; font-size: 0.8rem; font-weight: 500; }
@media (max-width: 700px) { .readout { position: static; width: auto; margin-top: 10px; background: var(--bg-2); box-shadow: none; } .pip { width: 120px; right: 8px; top: 8px; } }
.telemetry { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 10px; }
.telemetry div { padding: 10px 14px; display: grid; gap: 1px; }
.telemetry div + div { border-left: 1px solid var(--line); }
.telemetry span { font-size: 0.78rem; color: var(--slate); }
.telemetry b { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.telemetry .hi b { color: var(--signal-ink); }
@media (max-width: 700px) { .telemetry { grid-template-columns: repeat(3, minmax(0, 1fr)); } .telemetry div:nth-child(4) { border-left: 0; } }
.console-cap { margin: 14px auto 0; text-align: center; color: var(--slate); font-size: 0.88rem; max-width: 820px; }

/* marquee */
.marquee { margin-top: 88px; display: grid; gap: 18px; justify-items: center; }
.marquee p { color: var(--slate); font-size: 0.88rem; }
.mq { width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; gap: 56px; width: max-content; animation: scroll 38s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-track span { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em; color: #9A9A95; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(calc(-50% - 28px)); } }

/* problem -> pixel demo */
.pixel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.pixel-copy { display: grid; gap: 18px; }
.pixel-copy .lede + .lede { color: var(--ink); font-weight: 550; }
.pixel-demo { display: grid; grid-template-columns: minmax(0, 0.8fr) 56px minmax(0, 1.3fr); align-items: center; gap: 10px; padding: 26px; border-radius: 20px;
  background: var(--bg-2); border: 1px solid var(--line); }
.pd-before, .pd-after { display: grid; gap: 10px; align-content: start; }
.pd-label { font-size: 0.8rem; color: var(--slate); font-weight: 500; }
.pd-swatch { aspect-ratio: 1; border-radius: 12px; background: #7A6A55; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: background-color var(--motion-duration-lg) var(--motion-ease-move); position: relative; overflow: hidden; }
.pd-swatch::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 25% 25%; }
.pd-before code { font-size: 0.8rem; background: var(--bg); }
.pd-arrow { color: var(--signal); }
.pd-arrow svg { width: 56px; height: 24px; display: block; }
.pd-arrow path { stroke-dasharray: 6 6; animation: march 0.8s linear infinite; }
.pd-json { margin: 0; overflow-x: auto; background: var(--ink); color: #EDEDED; border-radius: 12px; padding: 16px 18px; font-size: 0.8rem; line-height: 1.75; min-height: 232px; white-space: pre; }
.pd-json .k { color: #A8A8A8; }
.pd-json .v { color: var(--signal-2); }
@media (max-width: 960px) { .pixel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pixel-demo { grid-template-columns: minmax(0, 1fr); } .pd-arrow { transform: rotate(90deg); justify-self: center; } .pd-swatch { aspect-ratio: 3 / 1; } }

/* numbers band */
.numbers { margin-top: 120px; background: var(--ink); color: #fff; padding-block: 64px; }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.nums div { display: grid; gap: 8px; align-content: start; }
.nums b { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--signal); font-variant-numeric: tabular-nums; }
.nums span { color: #B8B8B4; font-size: 0.95rem; line-height: 1.45; max-width: 26ch; }
@media (max-width: 860px) { .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* tour */
.tour { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: start; }
.rail { position: sticky; top: 104px; display: grid; grid-template-columns: 3px 1fr; gap: 18px; min-width: 0; }
.tour > *, .step > *, .steps > * { min-width: 0; }
.rail-bar { background: var(--line); border-radius: 3px; position: relative; overflow: hidden; }
.rail-bar i { position: absolute; inset: 0; background: var(--signal); border-radius: 3px; transform: scaleY(0); transform-origin: top; transition: transform var(--motion-duration-sm) var(--motion-ease-move); }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rail a { display: flex; gap: 12px; align-items: center; padding: 9px 0; text-decoration: none; color: var(--slate); font-weight: 550; font-size: 1rem; transition: color var(--motion-duration-sm) var(--motion-ease-move); }
.rail a span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.8rem; font-family: var(--mono); transition: background-color var(--motion-duration-sm) var(--motion-ease-move), color var(--motion-duration-sm) var(--motion-ease-move), border-color var(--motion-duration-sm) var(--motion-ease-move), box-shadow var(--motion-duration-sm) var(--motion-ease-move); background: var(--bg); }
.rail a:hover { color: var(--ink); }
.rail a.done span { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail a.active { color: var(--ink); }
.rail a.active span { background: var(--signal); color: #fff; border-color: var(--signal); box-shadow: 0 0 0 5px var(--signal-soft); }
.steps { display: grid; gap: 140px; min-width: 0; }
.step { display: grid; gap: 22px; min-width: 0; }
.step-pill { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 0.8rem; color: var(--slate); }
.step-pill span { color: var(--signal-ink); background: var(--signal-soft); padding: 2px 10px; border-radius: 999px; font-family: var(--font); font-weight: 600; font-size: 0.82rem; }
.step-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.045em; }
.step-lede { font-size: 1.1rem; color: var(--ink-2); max-width: 64ch; }
.cap { font-size: 0.88rem; color: var(--slate); line-height: 1.5; }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stat-row div { flex: 1 1 180px; display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.stat-row b { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.stat-row span { font-size: 0.86rem; color: var(--slate); line-height: 1.4; }
.hood { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; background: var(--bg); }
.hood summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.hood summary::-webkit-details-marker { display: none; }
.hood summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--slate); transition: transform var(--motion-duration-sm) var(--motion-ease-move); }
.hood[open] summary::after { transform: rotate(45deg); }
.hood ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.hood li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; display: grid; gap: 3px; }
.hood li b { color: var(--ink); font-weight: 600; font-size: 0.93rem; }
.hood pre.code { margin-bottom: 16px; }
@media (max-width: 760px) { .hood ul { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rail { position: sticky; top: 64px; z-index: 5; background: var(--bg); grid-template-columns: 1fr; gap: 0; padding: 8px 0; margin-inline: -16px; padding-inline: 16px; border-bottom: 1px solid var(--line); }
  .rail-bar { display: none; }
  .rail ol { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .rail a { padding: 4px 10px 4px 4px; font-size: 0.88rem; white-space: nowrap; border-radius: 999px; }
  .rail a span { width: 24px; height: 24px; }
  .steps { gap: 96px; }
}

/* align */
.compare { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare .after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; background: #FFFFFF; transform: translateX(-1px); }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 6px 18px rgba(0,0,0,.35); }
.compare .tag { position: absolute; top: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 0.8rem; font-weight: 550; }
.compare .tag.l { left: 14px; } .compare .tag.r { right: 14px; background: var(--signal); color: #fff; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.track { display: grid; gap: 6px; }
.track .row { position: relative; height: 26px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.track .row i { position: absolute; top: 5px; bottom: 5px; border-radius: 3px; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform var(--motion-duration-lg) var(--motion-ease-enter); }
.track.in .row i { transform: scaleX(1); }
.track .moves { position: relative; height: 16px; }
.track .moves i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--signal); border-radius: 1px; opacity: 0; transition: opacity var(--motion-duration-md) var(--motion-ease-move); }
.track.in .moves i { opacity: 1; }
.track .axis { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--slate); font-family: var(--mono); }

/* calibrate */
.card-vis { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; }
.chart { width: 100%; display: block; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 11px; fill: var(--slate); }
.chart .grid line { stroke: var(--line); }
.errs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.errs div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.errs span { font-size: 0.82rem; color: var(--slate); }
.errs b { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; }
.errs i { display: block; height: 4px; border-radius: 2px; background: var(--bg-3); position: relative; overflow: hidden; }
.errs i::after { content: ""; position: absolute; inset: 0; width: var(--w, 50%); background: var(--signal); transform-origin: left; transform: scaleX(0); transition: transform var(--motion-duration-lg) var(--motion-ease-enter); }
.errs.in i::after { transform: scaleX(1); }
@media (max-width: 700px) { .errs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* map */
.geo-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sel { font: inherit; font-size: 0.88rem; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: var(--bg); color: var(--ink); }
.geo { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.geo .photo, .geo .map { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.geo .photo { aspect-ratio: 3 / 2; }
.geo .photo img, .geo .photo canvas, .geo .map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.geo .photo img { object-fit: cover; }
.map-tag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; font-family: var(--mono); background: rgba(255,255,255,.9); border-radius: 999px; padding: 3px 9px; }
@media (max-width: 640px) { .geo { grid-template-columns: minmax(0, 1fr); } .geo .map { aspect-ratio: 1; } }
.swatches { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.84rem; color: var(--slate); }
.swatches span { display: inline-flex; align-items: center; gap: 7px; }
.swatches i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* measure */
.measure-vis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.roi { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.roi img, .roi canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.roi img { object-fit: cover; }
.cal-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; align-content: space-between; }
#green-chart { width: 100%; display: block; }
@media (max-width: 760px) { .measure-vis { grid-template-columns: minmax(0, 1fr); } }

/* scale */
.cov { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cov-in { position: relative; width: min(100%, 640px); margin-inline: auto; }
.cov img { width: 100%; height: auto; display: block; }
#cov-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cov-ring { fill: none; stroke: var(--signal); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.cov-dot { fill: var(--signal); stroke: #fff; stroke-width: 1.5; }
.cov-dia { fill: var(--ink); stroke: #fff; stroke-width: 1.5; }
.cov-lab { font-family: var(--font); font-size: 30px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.cov-key { position: absolute; right: 22px; bottom: 22px; display: grid; gap: 6px; font-size: 0.8rem; color: var(--ink-2); background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cov-key span { display: inline-flex; align-items: center; gap: 8px; }
.cov-key i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.cov-key i.ring { border-radius: 50%; border: 2px solid var(--signal); }
.cov-key i.dia { background: var(--ink); transform: rotate(45deg) scale(.8); border-radius: 1px; }
@media (max-width: 640px) { .cov-key { position: static; margin-top: 10px; } }

/* results bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; display: grid; background: var(--bg);
  transition: transform var(--motion-duration-sm) var(--motion-ease-move), box-shadow var(--motion-duration-sm) var(--motion-ease-move), border-color var(--motion-duration-sm) var(--motion-ease-move); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(14,14,14,.45); border-color: #D6D6D0; }
.t-media { background: var(--bg-2); overflow: hidden; }
.t-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--motion-duration-lg) var(--motion-ease-enter); }
.tile:hover .t-media img { transform: scale(1.03); }
.t-body { padding: 24px; display: grid; gap: 10px; align-content: start; }
.t-tag { font-size: 0.8rem; color: var(--slate); font-weight: 500; }
.t-num { font-size: clamp(3rem, 6vw, 4.8rem); font-weight: 600; letter-spacing: -0.06em; line-height: .95; color: var(--signal); }
.tile h3 { font-size: 1.3rem; }
.tile p { color: var(--ink-2); font-size: 0.94rem; }
.t-link { font-weight: 600; font-size: 0.92rem; display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.t-link::after { content: ""; width: 14px; height: 14px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8 3l5 5-5 5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform var(--motion-duration-sm) var(--motion-ease-move); }
.tile:hover .t-link::after { transform: translateX(4px); }
.t-cov { grid-column: span 4; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.t-cov .t-media { padding: 18px; background: var(--bg); }
.t-cov .t-media img { object-fit: contain; }
.t-hill { grid-column: span 2; grid-template-rows: auto 1fr; }
.t-hill .t-media { aspect-ratio: 600 / 370; }
.t-site { grid-column: span 3; background: var(--signal-soft); border-color: #FFD9C6; }
.t-bench { grid-column: span 3; }
.mini-bars { display: grid; gap: 7px; margin-top: 6px; }
.mini-bars div { display: grid; grid-template-columns: 150px minmax(0, 1fr) 42px; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--ink-2); }
.mini-bars i { height: 8px; border-radius: 4px; background: var(--bg-3); position: relative; overflow: hidden; display: block; }
.mini-bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--c, var(--ink)); border-radius: 4px; transform-origin: left; transform: scaleX(0); transition: transform var(--motion-duration-lg) var(--motion-ease-enter); }
.mini-bars.in i::after { transform: scaleX(1); }
.mini-bars b { font-family: var(--mono); font-weight: 500; text-align: right; }
@media (max-width: 960px) { .bento { grid-template-columns: minmax(0, 1fr); } .t-cov, .t-hill, .t-site, .t-bench { grid-column: auto; } .t-cov { grid-template-columns: minmax(0, 1fr); } }

/* live */
.live-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 36px; }
.live-clock { display: grid; justify-items: end; gap: 2px; }
.live-clock b { font-family: var(--mono); font-size: 2.2rem; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .live-head { grid-template-columns: minmax(0, 1fr); } .live-clock { justify-items: start; } }
.live-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cam { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; background: var(--bg); text-decoration: none; transition: transform var(--motion-duration-sm) var(--motion-ease-move), box-shadow var(--motion-duration-sm) var(--motion-ease-move); }
.cam:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(14,14,14,.5); }
.cam-media { position: relative; aspect-ratio: 3 / 2; background: #0B0D0E; overflow: hidden; }
.cam-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--motion-duration-lg) var(--motion-ease-move); }
.cam-media .live-tag { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.6); color: #fff; }
.cam-media .age { position: absolute; right: 8px; top: 8px; font-family: var(--mono); font-size: 0.7rem; color: #fff; background: rgba(0,0,0,.6); border-radius: 999px; padding: 3px 8px; }
.cam-body { padding: 12px 14px; display: grid; gap: 2px; }
.cam-body b { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }
.cam-body span { font-size: 0.8rem; color: var(--slate); }
.cam-body em { font-style: normal; font-family: var(--mono); font-size: 0.76rem; color: var(--signal-ink); }
@media (max-width: 960px) { .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* start */
.start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.start-links { display: grid; gap: 10px; margin-top: 10px; }
.link-card { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color var(--motion-duration-sm) var(--motion-ease-move), transform var(--motion-duration-sm) var(--motion-ease-move); }
.link-card:hover { border-color: var(--signal); transform: translateX(4px); }
.link-card b { font-weight: 600; }
.link-card span { font-size: 0.88rem; color: var(--slate); }
.term { background: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -40px rgba(14,14,14,.6); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #262626; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3A3A3A; }
.term-bar i:first-child { background: var(--signal); }
.term-bar span { margin-left: 10px; font-family: var(--mono); font-size: 0.76rem; color: #8A8A8A; }
.term pre { margin: 0; padding: 18px 20px 22px; color: #EDEDED; font-size: 0.8rem; line-height: 1.75; min-height: 380px; white-space: pre-wrap; word-break: break-word; }
.term .pr { color: var(--signal-2); }
.term .o { color: #9C9C9C; }
.term .ok { color: #7FD6A4; }
.term .cur { display: inline-block; width: 8px; height: 1.1em; background: var(--signal); vertical-align: -0.2em; animation: blink 1s steps(1) infinite; }
@media (max-width: 960px) { .start { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.cta-band { margin-top: 140px; background: var(--signal); color: var(--ink); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.35) 1px, transparent 0); background-size: 22px 22px; }
.cta-inner { position: relative; padding-block: 96px; display: grid; justify-items: center; text-align: center; gap: 28px; }
.cta-inner h2 { max-width: 18ch; color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); }
.cta-band .btn:not(.dark) { background: #fff; border-color: #fff; }

.night-note { margin: -14px 0 18px; font-size: 0.9rem; color: var(--slate); }
@media (max-width: 560px) { .wide-only { display: none; } }

/* phones: every control is at least 44 px to the thumb */
@media (max-width: 760px) {
  .seg button { min-height: 44px; }
  .rail a { min-height: 44px; }
}
