/* SeeingTouch project page. Base styles reused from the original project page; additions at the end. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("fonts/jbmono-latin.woff2") format("woff2"); }
[hidden] { display: none !important; }
:root {
  --bg: #fbfbf9;
  --bg-alt: #f2f3f1;
  --ink: #0f1419;
  --ink-2: #2b333c;
  --muted: #5d6772;
  --line: #e3e5e6;
  --card: #ffffff;
  --dark: #07090b;
  --dark-2: #11151a;
  --dark-line: #232a31;
  --teal: #087f8c;      /* SeeingTouch-WAM */
  --teal-2: #4fb3aa;    /* SeeingTouch */
  --base: #9aa3ad;      /* baselines */
  --orange: #d9772b;    /* tactile / training-only */
  --fail: #c8443b;
  --led: linear-gradient(90deg, #2f5bff, #1fc3d6 30%, #3ad17a 55%, #f2c230 75%, #f0483e);
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1240px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(900px, 100% - 32px); }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: #e9eef2; }
.section.dark .sec-head p, .section.dark .fine { color: #a6b0ba; }
.sec-head { max-width: 860px; margin-bottom: 40px; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px var(--mono); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 6px; border-radius: 3px; background: var(--led); }
.dark .eyebrow { color: #5fd0c5; }
.fine { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.sub { margin: 56px 0 20px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: var(--dark); color: #fff; display: flex; flex-direction: column;
  overflow: hidden; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 3vw, 40px); position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand-led { width: 26px; height: 18px; border-radius: 3px; background:
  radial-gradient(circle, currentColor 1.1px, transparent 1.6px) 0 0 / 2px 2px; color: #222; position: relative; overflow: hidden; }
.brand-led { background: #161a1f; box-shadow: inset 0 0 0 1px #2b323a; }
.brand-led::after { content: ""; position: absolute; inset: 3px; border-radius: 2px;
  background: radial-gradient(circle at 30% 70%, #f0483e 0 2px, #f2c230 3px, #3ad17a 4.5px, #1fc3d6 6px, transparent 7.5px),
              radial-gradient(circle at 70% 35%, #2f5bff 0 2px, transparent 3.5px);
  -webkit-mask: radial-gradient(circle, #000 0.9px, transparent 1.1px) 0 0 / 2.6px 2.6px;
  mask: radial-gradient(circle, #000 0.9px, transparent 1.1px) 0 0 / 2.6px 2.6px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { color: #b9c2cb; text-decoration: none; }
.nav-links a:hover { color: #fff; }
.hero-stage { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 clamp(16px, 3vw, 40px);
  align-items: center; min-height: 0; padding-top: 8px; }
.hero-slot { position: relative; aspect-ratio: 1024 / 480; border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.hero-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity 0.9s ease; }
.hero-slot video.on { opacity: 1; }
.hero-label { position: absolute; left: 12px; top: 12px; z-index: 2; font: 500 12.5px var(--mono); letter-spacing: 0.02em;
  background: rgba(7,9,11,0.72); color: #fff; padding: 6px 10px; border-radius: 7px; backdrop-filter: blur(6px); }
.hero-label i { font-style: normal; color: #7fe0d4; }
.hero-text { padding: 28px clamp(16px, 3vw, 40px) 40px; display: grid; grid-template-columns: auto 1fr; column-gap: 40px;
  align-items: end; }
.hero h1 { font-size: clamp(48px, 7.2vw, 104px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; grid-row: span 2;
  background: linear-gradient(180deg, #fff 55%, #b9c4cc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { font-size: clamp(18px, 2vw, 26px); font-weight: 600; margin: 0; color: #fff; letter-spacing: -0.01em; }
.tagline { margin: 4px 0 0; color: #9fb0bd; font-size: 17px; }
.hero-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.hero-note { color: #7f8b96; font-size: 13px; font-family: var(--mono); margin-left: 6px; }
.hero-legend { grid-column: 1 / -1; color: #7f8b96; font-size: 13px; margin: 14px 0 0; }
.hero-legend b { color: #b9c2cb; font-weight: 500; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; color: #0b0e11;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { background: #dff5f2; }
.dark-btn { background: var(--ink); color: #fff; margin-top: 8px; }
.dark-btn:hover { background: var(--teal); }
.hero-pause { position: absolute; right: clamp(16px, 3vw, 40px); bottom: 24px; background: transparent; color: #8c98a3;
  border: 1px solid #2b333b; border-radius: 999px; font: 500 12px var(--mono); padding: 6px 12px; cursor: pointer; z-index: 3; }
.hero-pause:hover { color: #fff; border-color: #56616b; }

/* ---------------------------------------------------------------- intro + stats */
.intro { padding-top: 80px; }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.55; color: var(--ink-2); margin: 0 0 56px; }
.lead b { color: var(--ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 24px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--led); opacity: 0.85; }
.stat-num { font-size: 64px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num span { color: var(--ink); }
.stat-label { font-weight: 600; margin-top: 10px; }
.stat p { color: var(--muted); font-size: 15px; margin: 10px 0 0; }

/* ---------------------------------------------------------------- tabs, filters */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); padding: 9px 14px; border-radius: 10px; cursor: pointer;
  font: 500 15px var(--font); display: inline-flex; gap: 10px; align-items: baseline; }
.tab .n { font: 500 12px var(--mono); color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab[aria-selected="true"] .n { color: #7fe0d4; }
.dark .tab { background: var(--dark-2); border-color: var(--dark-line); color: #c6cfd7; }
.dark .tab[aria-selected="true"] { background: #e9eef2; color: var(--dark); }
.dark .tab[aria-selected="true"] .n { color: var(--teal); }
.tabs.small .tab { padding: 6px 11px; font-size: 14px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; font: 500 13px var(--font);
  cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 7px; align-items: center; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.wam { background: var(--teal); } .dot.st { background: var(--teal-2); } .dot.base { background: var(--base); }

/* ---------------------------------------------------------------- players */
.player { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 1024 / 480; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vlabel { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; z-index: 2; }
/* Digital LED control: overlay spans ~1-17% of the width (front) and 63-73% (wrist); place the tags between them */
.vlabel.ov { left: calc(17.5% + 6px); max-width: calc(45% - 12px); flex-direction: column; align-items: flex-start; }
.tag { font: 500 11.5px var(--mono); padding: 4px 8px; border-radius: 6px; background: rgba(7,9,11,0.74); color: #fff; backdrop-filter: blur(4px); }
.tag.ok { color: #8ff0c9; } .tag.fail { color: #ffb4ad; } .tag.speed { color: #c9d2da; }
.view-legend { position: absolute; right: 8px; bottom: 8px; font: 500 10.5px var(--mono); color: #d0d7de; background: rgba(7,9,11,0.6);
  padding: 3px 7px; border-radius: 5px; pointer-events: none; }
.g-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.g-meta b { color: var(--ink); font-weight: 600; }
.dark .g-meta b { color: #fff; }

/* ---------------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thumbs.wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.thumb { position: relative; border: 0; padding: 0; background: #000; border-radius: 9px; overflow: hidden; cursor: pointer;
  aspect-ratio: 1024 / 480; outline-offset: 2px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.3s; opacity: 0.92; }
.thumb:hover img { transform: scale(1.03); opacity: 1; }
.thumb[aria-current="true"] { outline: 2px solid var(--teal); }
.thumb .cap { position: absolute; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 6px; font: 500 10.5px var(--mono);
  background: rgba(7,9,11,0.74); color: #fff; padding: 3px 7px; border-radius: 5px; }
.thumb .cap .dot { width: 7px; height: 7px; }

/* ---------------------------------------------------------------- method */
.m-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: 500 14.5px var(--font); cursor: pointer; color: var(--ink-2); }
.seg button[aria-selected="true"], .seg button.on { background: var(--ink); color: #fff; }
.seg.small button { font-size: 13.5px; padding: 6px 12px; }
.seg.small button.on[data-mode="train"] { background: var(--orange); }
.ghost { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 14px; font: 500 13px var(--mono); cursor: pointer; color: var(--muted); }
.m-canvas { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; overflow: hidden; }
.m-canvas svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.m-caption { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.m-caption .pt { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--ink-2); }
.m-caption .pt b { display: block; color: var(--ink); margin-bottom: 2px; }
.m-caption .pt.k-orange { border-left: 3px solid var(--orange); }
.m-caption .pt.k-teal { border-left: 3px solid var(--teal); }
.figure-detail { margin-top: 18px; }
.figure-detail summary { cursor: pointer; color: var(--muted); font-size: 14.5px; }
.figure-detail img { margin-top: 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
/* svg classes */
.n-box { fill: #fff; stroke: #c9cfd5; stroke-width: 1.4; }
.n-enc { fill: #eaf0f7; stroke: #6d8bb0; }
.n-tac { fill: #fbeee2; stroke: var(--orange); }
.n-fuse { fill: #eef0f2; stroke: #8b949e; }
.n-pol { fill: #e4f4f2; stroke: var(--teal); stroke-width: 2; }
.n-led { fill: #0c1014; stroke: #2a3038; }
.n-train { fill: #fff; stroke: var(--teal); stroke-width: 1.8; }
.n-frozen { fill: #f8e4d2; stroke: var(--orange); stroke-width: 1.6; }
.t-main { font-size: 17px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.t-sub { font-size: 13px; fill: var(--muted); text-anchor: middle; }
.t-lbl { font-size: 14px; fill: var(--muted); }
.t-math { font-family: "Times New Roman", "STIX Two Math", serif; font-style: italic; font-size: 19px; fill: var(--ink); }
.t-teal { fill: var(--teal); font-weight: 600; }
.t-orange { fill: var(--orange); font-weight: 600; }
.edge { fill: none; stroke: #55606b; stroke-width: 1.8; }
.edge.tac { stroke: var(--orange); }
.edge.flow { stroke-dasharray: 7 7; animation: flow 1.1s linear infinite; }
.edge.light { stroke: #1fc3d6; stroke-width: 2; stroke-dasharray: 2 6; animation: flow 0.8s linear infinite; }
.edge.aux { stroke: var(--orange); stroke-dasharray: 5 5; }
.edge.align { stroke: var(--teal); stroke-dasharray: 5 5; }
.paused .edge { animation-play-state: paused; }
.paused .led-cell { animation-play-state: paused !important; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.train-zone { fill: #fdf3e8; stroke: #f1d3b3; }
.layer { transition: opacity 0.7s ease; }
.layer.gone { opacity: 0.08; }
.layer.hide { opacity: 0; }
.badge-teal { fill: #e1f3f1; stroke: var(--teal); }
.led-cell { transition: fill 0.25s; }
@media (prefers-reduced-motion: reduce) { .edge.flow, .edge.light { animation: none; } .layer { transition: none; } .hero-slot video, .thumb img { transition: none; } }

/* ---------------------------------------------------------------- why */
.why { display: grid; gap: 18px; }
.why-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-col h4 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.why-col p.desc { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }
.why-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.why-list { display: flex; gap: 8px; flex-wrap: wrap; }
.pairing { font: 500 12px var(--mono); padding: 4px 9px; border-radius: 6px; background: #e7f2f1; color: var(--teal); }
.pairing.rep { background: #eef0f2; color: var(--muted); }

/* ---------------------------------------------------------------- cross */
.x-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.x-col { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.x-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.x-head h3 { font-size: 20px; color: #fff; }
.x-kind { font: 500 11.5px var(--mono); padding: 3px 8px; border-radius: 6px; }
.x-kind.src { background: #19343a; color: #7fe0d4; } .x-kind.new { background: #3a2a19; color: #f3b47b; }
.x-sig { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; align-items: center; }
.x-sig figure { margin: 0; }
.x-sig img { border-radius: 7px; background: #000; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.x-sig figcaption { font: 500 10.5px var(--mono); color: #8d99a4; margin-top: 4px; text-align: center; }
.x-rate { font-size: 14px; color: #a6b0ba; }
.x-rate b { color: #fff; font-size: 22px; font-weight: 700; }
.x-table-wrap { margin-top: 48px; }
.x-table-wrap h3 { color: #fff; margin-bottom: 14px; }
.x-more { margin-top: 48px; }
.x-more h3 { color: #fff; margin-bottom: 14px; }

/* ---------------------------------------------------------------- results */
.res-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-bottom: 20px; }
.res-grid.figs { margin-top: 20px; grid-template-columns: 1fr 1fr; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0; }
.card h3 { margin-bottom: 16px; }
figure.card img { border-radius: 8px; }
figcaption { font-size: 14.5px; color: var(--muted); margin-top: 12px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl th, .tbl td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.tbl th { font-weight: 600; font-size: 13px; color: var(--muted); vertical-align: bottom; white-space: normal; min-width: 70px; }
.tbl td:first-child, .tbl th:first-child { text-align: left; }
.tbl tr.ours td { background: #f1f8f7; }
.tbl tr.ours td:first-child { font-weight: 700; }
.tbl tr.sep td { border-top: 2px solid #cfd5da; }
.tbl .best { font-weight: 800; }
.tbl .second { text-decoration: underline; text-underline-offset: 3px; }
.tbl .ci { color: var(--muted); font-size: 12.5px; }
.dark-tbl th, .dark-tbl td { border-color: var(--dark-line); }
.dark-tbl th { color: #8d99a4; }
.dark-tbl tr.ours td { background: #0e2224; }
.chart svg { width: 100%; height: auto; display: block; font-family: var(--font); }

/* ---------------------------------------------------------------- hardware */
.hw-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hw-frame { margin: 0; }
.hw-frame img { border-radius: 12px; width: 100%; }
.pipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pipe-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.pipe-col h4 { margin: 0 0 4px; font-size: 17px; }
.pipe-col .k { font: 500 12px var(--mono); color: var(--muted); }
.pipe-photo { border-radius: 10px; margin: 12px 0; background: #e9ebec; }
.pipe-flow { display: grid; grid-template-columns: 1fr 14px 1fr 14px 1fr; gap: 6px; align-items: center; }
.pipe-flow img { border-radius: 6px; background: #000; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.pipe-flow .ar { color: var(--muted); font-size: 13px; text-align: center; }
.pipe-flow figcaption { font: 500 10.5px var(--mono); text-align: center; margin-top: 4px; color: var(--muted); }
.pipe-flow figure { margin: 0; }
.tasks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.task-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.task-card .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #000; }
.task-card .imgs img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.task-card .body { padding: 12px 14px 14px; }
.task-card h4 { margin: 0; font-size: 16px; }
.task-card p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------------- paper */
.paper-card { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.paper-thumb img { border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.abstract { margin-top: 0; color: var(--ink-2); font-size: 16px; }
.footer { background: var(--dark); color: #8d99a4; font-size: 14px; padding: 36px 0; }

/* ---------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; background: rgba(5,7,9,0.86); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { width: min(1100px, 100%); position: relative; }
.modal-box .g-meta { color: #a6b0ba; } .modal-box .g-meta b { color: #fff; }
.modal-close { position: absolute; right: -6px; top: -44px; background: transparent; border: 0; color: #fff; font-size: 34px; cursor: pointer; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .gallery { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .res-grid, .res-grid.figs { grid-template-columns: 1fr; }
  .x-grid { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; }
  .hero-stage { grid-template-columns: 1fr; padding-top: 4px; }
  .hero-slot-2 { display: none; }
  .hero-text { grid-template-columns: 1fr; }
  .hero h1 { grid-row: auto; margin-bottom: 8px; }
  .hero-pause { position: static; margin: 0 16px 24px; align-self: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .stat-num { font-size: 52px; }
  .why-pair { grid-template-columns: 1fr; }
  .hw-hero { grid-template-columns: 1fr; }
  .tasks-grid { grid-template-columns: 1fr; }
  .paper-card { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: 1fr 1fr; }
  .tab { font-size: 14px; padding: 7px 11px; }
  .view-legend { display: none; }
}
@media (min-width: 761px) and (max-width: 1080px) { .tasks-grid { grid-template-columns: 1fr 1fr; } }

/* ================================================================ additions (project page) */
.hero { min-height: min(100vh, 980px); }
.nav-links a.on { color: #fff; }
.qual { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--mono); color: var(--muted); }
.qual::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.tag.q { color: #c9d2da; } .tag.ok { color: #8ff0c9; } .tag.fail { color: #ffb4ad; }
.ctl { display: inline-flex; gap: 6px; position: absolute; right: 8px; top: 8px; z-index: 3; }
.ctl button { font: 500 11.5px var(--mono); background: rgba(7,9,11,0.74); color: #fff; border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px; padding: 4px 9px; cursor: pointer; }
.ctl button:hover { border-color: rgba(255,255,255,0.5); }
.player .start { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; z-index: 2; }
.player .start span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.92); display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
.player .start svg { width: 26px; height: 26px; margin-left: 4px; }
.player img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare h4 { margin: 0 0 8px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.idea { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.idea h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.idea .num { font: 600 13px var(--mono); color: #fff; background: var(--ink); border-radius: 6px; padding: 2px 7px; }
.idea p { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; }
.when { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.when span { font: 500 12px var(--mono); padding: 4px 9px; border-radius: 6px; }
.when .tr { background: #fbeee2; color: #9a4f12; } .when .inf { background: #e1f3f1; color: var(--teal); } .when .off { background: #eef0f2; color: var(--muted); text-decoration: line-through; }
.x-video { display: flex; flex-direction: column; gap: 8px; }
.x-pick { display: flex; gap: 6px; }
.x-pick button { font: 500 12px var(--mono); background: transparent; color: #a6b0ba; border: 1px solid var(--dark-line); border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.x-pick button[aria-pressed="true"] { background: #e9eef2; color: var(--dark); border-color: #e9eef2; }
.x-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 4px 0 18px; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.outline { background: transparent; color: #e9eef2; border: 1px solid #3a444e; }
.btn.outline:hover { background: #1a2027; }
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 190px 1fr 150px; gap: 12px; align-items: center; font-size: 14.5px; }
.bar .lbl { color: var(--ink-2); }
.bar .track { position: relative; height: 18px; background: #eef0f2; border-radius: 5px; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--base); }
.bar .fill.st { background: var(--teal-2); } .bar .fill.wam { background: var(--teal); } .bar .fill.ctl { background: #b98aa8; }
.bar .whisk { position: absolute; top: 50%; height: 2px; background: rgba(15,20,25,0.55); }
.bar .whisk::before, .bar .whisk::after { content: ""; position: absolute; top: -4px; width: 2px; height: 10px; background: rgba(15,20,25,0.55); }
.bar .whisk::before { left: 0; } .bar .whisk::after { right: 0; }
.bar .v { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.bar .v small { font-weight: 400; color: var(--muted); }
.bar.ours .lbl { font-weight: 700; color: var(--ink); }
.src-chip { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 5px; margin-left: 6px; background: #eef0f2; color: var(--muted); white-space: nowrap; }
.src-chip.new { background: #f3e6ef; color: #8a4a72; }
.note { border-left: 3px solid var(--line); padding: 2px 0 2px 14px; color: var(--muted); font-size: 15px; margin: 16px 0 0; }
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vcard { display: flex; flex-direction: column; gap: 6px; }
.vcard .m { font-size: 13.5px; color: var(--muted); }
.vcard .m b { color: var(--ink); }
details.more { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
details.more summary { cursor: pointer; font-weight: 600; }
details.more[open] summary { margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.kv div { background: var(--bg-alt); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.kv b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
@media (max-width: 1080px) { .split, .compare { grid-template-columns: 1fr; } .vgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .bar { grid-template-columns: 104px 1fr 92px; font-size: 13px; } .vgrid { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } .ctl { top: auto; bottom: 8px; } }
.res-grid > *, .split > *, .compare > *, .x-grid > * { min-width: 0; }
@media (max-width: 760px) {
  .bar { grid-template-columns: 96px minmax(0, 1fr) 64px; gap: 8px; }
  .bar .v { line-height: 1.2; } .bar .v small { display: block; font-size: 11px; }
  .card { padding: 18px; }
}
.x-col .player .ctl, .vcard .player .ctl { top: auto; bottom: 8px; }
@media (max-width: 760px) { .bar .v { white-space: normal; } }
@media (max-width: 760px) { .bar .lbl .src-chip { display: block; margin: 2px 0 0; width: max-content; } }
/* curated version */
.gallery.solo { grid-template-columns: minmax(0, 1fr); max-width: 1040px; }
.legend-ev { margin-top: 18px; line-height: 2; }
.tag-l { font: 500 11.5px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #8ff0c9; white-space: nowrap; }
.tag-l.q { color: #c9d2da; }
.compare h4 .src-chip { margin-left: auto; }
.compare h4 { justify-content: flex-start; }
#c-pair > div, #ctl-videos > div { min-width: 0; }
#ctl-videos h4 { margin: 0 0 8px; font-size: 15px; }
/* final revision: rotating hero pairs, example selectors */
.hero-stage { position: relative; }
.hero-start { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7,9,11,0.25); border: 0; cursor: pointer; z-index: 4; }
.hero-start[hidden] { display: none; }
.hero-start span { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.92); display: grid; place-items: center; }
.hero-start svg { width: 28px; height: 28px; margin-left: 4px; }
.hero-dots { display: flex; justify-content: center; gap: 8px; padding: 14px clamp(16px, 3vw, 40px) 0; flex-wrap: wrap; }
.hero-dot { background: transparent; border: 1px solid #2b333b; color: #8c98a3; border-radius: 999px; font: 500 12px var(--mono);
  padding: 5px 12px; cursor: pointer; }
.hero-dot:hover { color: #fff; border-color: #56616b; }
.hero-dot[aria-current="true"] { color: #0b0e11; background: #7fe0d4; border-color: #7fe0d4; }
.examples { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.ex { position: relative; border: 0; padding: 0; background: #000; border-radius: 9px; overflow: hidden; cursor: pointer;
  aspect-ratio: 1024 / 480; outline-offset: 2px; }
.ex img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.8; transition: opacity 0.25s; }
.ex:hover img, .ex[aria-current="true"] img { opacity: 1; }
.ex[aria-current="true"] { outline: 2px solid var(--teal); }
.ex span { position: absolute; left: 6px; bottom: 6px; font: 500 11px var(--mono); background: rgba(7,9,11,0.74); color: #fff;
  padding: 3px 7px; border-radius: 5px; }
@media (max-width: 760px) {
  .hero-stage { gap: 8px; }
  .hero-slot-2, .hero-slot { display: block; }
  .hero-label { font-size: 11px; padding: 4px 8px; left: 8px; top: 8px; }
  .examples { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .ex span { font-size: 9.5px; left: 3px; bottom: 3px; padding: 2px 4px; }
}
@media (prefers-reduced-motion: reduce) { .ex img { transition: none; } }
@media (max-width: 600px) { .vlabel.ov { max-width: none; gap: 3px; } .vlabel.ov .tag { font-size: 9.5px; padding: 2px 6px; white-space: nowrap; } }

/* ================================================================ official release: authors + resource links */
.authors { grid-column: 1 / -1; margin-top: 22px; max-width: 1180px; }
.author-list { margin: 0; color: #e9eef2; font-size: 16.5px; line-height: 1.65; }
.author { white-space: nowrap; }
.authors sup, .paper-authors sup, .paper-affil sup { font-size: 0.68em; margin-left: 1px; color: #7fe0d4; }
.paper-authors sup, .paper-affil sup { color: var(--teal); }
.author-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(127,224,212,0.55); }
.author-link:hover { color: #7fe0d4; }
.affil { margin: 6px 0 0; color: #9fb0bd; font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.contact { margin: 4px 0 0; color: #7f8b96; font-size: 13px; font-family: var(--mono); }
.contact a { color: #9fb0bd; }
.contact a:hover { color: #7fe0d4; }
.btn.soon { background: transparent; color: #8c98a3; border: 1px dashed #3a444e; cursor: default; }
.btn.soon:hover { background: transparent; }
.btn.soon small { font: 500 11px var(--mono); color: #7f8b96; margin-left: 2px; }
.sec-head .paper-authors { font-size: 16px; line-height: 1.6; color: var(--ink); }
.sec-head .paper-authors .author-link { color: var(--ink); text-decoration-color: var(--teal); }
.sec-head .paper-affil { font-size: 14px; margin-top: 6px; }
@media (max-width: 760px) { .author-list { font-size: 15px; } .author { white-space: normal; } }
