/* HoliLight project page */
:root {
  --bg: #07080c;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #eef0f5;
  --muted: #a2a9ba;
  --dim: #6f778a;
  --amber: #ffb547;
  --grad: linear-gradient(100deg, #ffe7ae 0%, #ffb547 32%, #ff7a3d 68%, #ff5d73 100%);
  --radius: 20px;
  --maxw: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
img:not([src]) { visibility: hidden; }
a { color: inherit; }
p { margin: 0; }
b, strong { font-weight: 600; color: #fff; }
figure { margin: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 181, 71, .35); }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- nav ---------------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 60px; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 8, 12, .75); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav .wrap { height: 60px; display: flex; align-items: center; gap: 24px; max-width: 1320px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-size: 16px; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 10px 3px rgba(255, 181, 71, .7), 0 0 28px 8px rgba(255, 122, 61, .35); }
.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 7px 11px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-links a.active { color: var(--text); }
.nav-links a.nav-cta { color: #1a1208; background: var(--grad); font-weight: 600; margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 40px; height: 36px; font-size: 18px; cursor: pointer; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 104px 0 40px; isolation: isolate; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -10% -20% auto; height: 900px; z-index: -1;
  background: radial-gradient(40% 40% at 50% 18%, rgba(255, 150, 60, .16), transparent 70%), radial-gradient(30% 30% at 15% 70%, rgba(90, 140, 255, .08), transparent 70%); }
.hero .wrap { max-width: 1320px; }
.hero-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); border: 1px solid var(--line-2); background: var(--panel); padding: 4px 12px 4px 5px; border-radius: 999px; text-decoration: none; }
.pill .tag { background: rgba(255, 181, 71, .14); color: var(--amber); font-weight: 600; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.hero h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 1; letter-spacing: -.045em; font-weight: 800; margin: 14px 0 6px; }
.subtitle { font-size: clamp(19px, 2.1vw, 26px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; color: #dfe3ec; margin: 0 0 20px; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; max-width: 52em; font-size: 15.5px; margin: 0 0 6px; }
.authors .au { white-space: nowrap; }
.authors a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .18); transition: border-color .2s, color .2s; }
.authors a:hover { color: #ffd27a; border-color: #ffd27a; }
.authors sup { color: var(--amber); font-size: .68em; margin-left: 1px; }
.affils { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.affils span + span { margin-left: 18px; }
.affils sup { color: var(--amber); }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px/1 var(--font); color: var(--text); text-decoration: none; padding: 11px 17px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; transition: transform .15s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary { background: var(--grad); color: #1d1206; border-color: transparent; box-shadow: 0 8px 30px -8px rgba(255, 122, 61, .6); }
.btn.disabled { opacity: .5; cursor: default; pointer-events: none; }
.btn small { font-weight: 500; color: var(--muted); font-size: 12px; }

/* teaser stage */
.teaser { margin-top: 44px; background: #0f1117; border: 1px solid var(--line); border-radius: 26px; padding: 18px 22px 20px; }
.ts-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ts-steps { display: flex; gap: 6px; }
.ts-steps button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--font); color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.ts-steps button b { color: inherit; font-weight: 650; letter-spacing: -.01em; }
.ts-steps button::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 600 11px/1 var(--mono); background: rgba(255, 255, 255, .1); color: var(--muted); }
.ts-steps { counter-reset: step; }
.ts-steps button.on { color: #fff; border-color: var(--amber); background: rgba(255, 181, 71, .12); }
.ts-steps button.on::before { background: var(--amber); color: #1d1206; }
.ts-steps button.done::before { background: rgba(255, 181, 71, .35); color: #fff; }
.ts-steps button i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--amber); }
.tick .ts-steps button.on i { animation: fill 3.6s linear forwards; }
@keyframes fill { to { width: 100%; } }
.ts-stage { display: grid; grid-template-columns: 1fr 30px .72fr 30px 1fr; gap: 10px; align-items: center; }
.ts-stage figure { position: relative; }
.ts-img { border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.ts-globe .ts-img { background: none; border: 0; overflow: visible; }
.ts-img img { width: 100%; transition: opacity .35s ease; }
.ts-img img.out { opacity: 0; }
.ts-stage figcaption { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 8px; letter-spacing: -.005em; }
.ts-stage figcaption em { display: block; font-weight: 500; font-style: italic; color: var(--amber); font-size: 12.5px; margin-top: 2px; text-transform: none; }
.ts-arrow { width: 30px; height: 30px; color: rgba(255, 255, 255, .55); transition: opacity .4s; }
.ts-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; transition: opacity .45s; }
.ts-env { grid-column: 1 / -1; }
.ts-env img { aspect-ratio: 2 / 1; object-fit: cover; }
.ts-globe .ts-img { position: relative; }
.ts-globe .ts-img::before { content: ""; position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 170, 70, .28), transparent); opacity: 0; transition: opacity .5s; }
.ts-globe img { position: relative; }
.ts-stage[data-step="0"] .ts-out, .ts-stage[data-step="0"] .ts-arrow.out { opacity: .14; }
.ts-stage[data-step="0"] .ts-globe .ts-img::before, .ts-stage[data-step="2"] .ts-globe .ts-img::before { opacity: 1; }
.ts-say { text-align: center; color: var(--muted); font-size: 15.5px; margin-top: 16px; min-height: 1.6em; }
.ts-say b { color: var(--text); }

/* ---------------- sections ---------------- */
section.section { padding: 80px 0; position: relative; }
section.section.tight { padding-top: 32px; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.04em; font-weight: 750; margin: 0 0 22px; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; letter-spacing: -.025em; font-weight: 700; margin: 0; }
.sec-head { margin-bottom: 26px; }
.sec-head h2 { margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: clamp(16px, 1.4vw, 18.5px); max-width: 48em; }
.sec-head p b { color: var(--text); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .ts-img img { transition: none; } }

.video-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 50px 140px -50px rgba(255, 140, 60, .35); aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.figure-card { background: #fff; border-radius: var(--radius); padding: clamp(10px, 2vw, 22px); box-shadow: 0 0 0 1px var(--line); }
.figure-card img { width: 100%; }

/* demo panels */
.demo { background: #0d0f15; border: 1px solid var(--line); border-radius: 24px; padding: clamp(16px, 2.6vw, 28px); }
.frame { position: relative; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.frame img { width: 100%; }
.label { position: absolute; left: 9px; top: 9px; font: 600 11.5px/1 var(--font); color: #fff; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 6px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); pointer-events: none; }
.label.ours { color: #1d1206; background: var(--amber); border-color: transparent; }
figure > figcaption { text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-btn, .seg button, .tbtn { font: 600 13px/1 var(--font); color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-2); padding: 9px 13px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.chip-btn:hover, .seg button:hover, .tbtn:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.chip-btn.on, .seg button.on, .tbtn.on { color: #1d1206; background: var(--amber); border-color: var(--amber); }
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 9px; background: linear-gradient(90deg, var(--amber) 0 var(--p), rgba(255, 255, 255, .12) var(--p) 100%); }
input[type=range]::-moz-range-track { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .12); }
input[type=range]::-moz-range-progress { height: 5px; border-radius: 9px; background: var(--amber); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 181, 71, .35), 0 2px 8px rgba(0, 0, 0, .5); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 181, 71, .35), 0 2px 8px rgba(0, 0, 0, .5); }
.slider-label { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.slider-label .name { display: flex; justify-content: space-between; gap: 10px; }
.slider-val { color: var(--text); font: 600 13px/1 var(--mono); }

/* off-screen light switches */
.ol-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.ol-tab { display: flex; align-items: center; gap: 9px; padding: 4px 13px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); font: 600 13px/1 var(--font); cursor: pointer; transition: all .2s; }
.ol-tab img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ol-tab:hover { color: var(--text); }
.ol-tab.on { color: var(--text); border-color: var(--amber); background: rgba(255, 181, 71, .1); }
.ol-grid { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.ol-panel { display: grid; gap: 8px; }
.ol-switches { display: grid; gap: 7px; }
.ol-switch { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; text-align: left; font: 500 14px/1.2 var(--font); transition: all .2s; }
.ol-switch .lbl { text-transform: capitalize; }
.ol-switch .knob { width: 32px; height: 19px; border-radius: 999px; background: rgba(255, 255, 255, .12); position: relative; transition: background .2s; }
.ol-switch .knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #9aa2b4; transition: transform .2s, background .2s, box-shadow .2s; }
.ol-switch.on { color: var(--text); border-color: rgba(255, 181, 71, .45); background: rgba(255, 181, 71, .07); }
.ol-switch.on .knob { background: rgba(255, 181, 71, .35); }
.ol-switch.on .knob::after { transform: translateX(13px); background: #ffe2a8; box-shadow: 0 0 10px 2px rgba(255, 181, 71, .8); }
.badge { font: 600 10.5px/1 var(--font); padding: 4px 7px; border-radius: 999px; white-space: nowrap; }
.badge.vis { color: #9fe0b0; background: rgba(80, 200, 120, .12); }
.badge.occ { color: #b8c4ff; background: rgba(120, 140, 255, .14); }
.badge.off { color: #ffcf7a; background: rgba(255, 181, 71, .16); }
.ol-note { font-size: 12.5px; color: var(--amber); min-height: 1.2em; }
.ol-globe { width: 82%; margin: 0 auto; }
.ol-main { display: grid; gap: 10px; }
.ol-pair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ol-env img { aspect-ratio: 2 / 1; object-fit: cover; }

/* sun */
.sp-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.sp-scenes { margin-bottom: 16px; }
.sp-left, .sp-side { display: grid; gap: 12px; }
.sp-env { position: relative; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.sp-env img { width: 100%; border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 2 / 1; object-fit: cover; }
.sp-fov { position: absolute; border: 1.5px dashed rgba(255, 255, 255, .85); pointer-events: none; }
.sp-env:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sp-dot { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: rgba(255, 255, 255, .45); pointer-events: none; }
.sp-sun { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none; --sun: #fff4ea;
  background: radial-gradient(circle, #fff 0 22%, var(--sun) 40%, transparent 72%); box-shadow: 0 0 18px 6px rgba(255, 220, 160, .6), 0 0 0 2px rgba(255, 255, 255, .9); transition: left .18s ease, top .18s ease; }
.sp-readout { font-size: 14px; color: var(--muted); }
.sp-readout b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.sp-row { display: grid; grid-template-columns: .5fr 1fr; gap: 14px; align-items: center; }
.sp-spheres img { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #000; }

/* strip */
.strip-grid { display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: start; }
.strip-controls { display: grid; gap: 14px; }
.strip-out { display: grid; gap: 10px; }

/* 360 viewer */
.v-grid { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
.v-list { display: flex; flex-direction: column; gap: 4px; max-height: 600px; overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.v-group { font: 600 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 12px 0 4px; }
.v-group:first-child { margin-top: 0; }
.v-item { display: flex; align-items: center; gap: 10px; padding: 5px; border-radius: 11px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; text-align: left; font: 500 13.5px/1.25 var(--font); transition: all .2s; }
.v-item img { width: 60px; height: 30px; object-fit: cover; border-radius: 6px; flex: none; }
.v-item:hover { background: var(--panel-2); color: var(--text); }
.v-item.on { background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .45); color: var(--text); }
.v-stage { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #000; aspect-ratio: 16 / 9; }
.pano .v-stage { aspect-ratio: 2 / 1; }
.v-stage canvas { width: 100%; height: 100%; cursor: grab; touch-action: none; }
.v-stage canvas.grabbing { cursor: grabbing; }
.v-fallback { display: none; width: 100%; height: 100%; object-fit: cover; }
.no-gl .v-fallback { display: block; }
.no-gl canvas, .no-gl .v-probe-cap { display: none; }
.v-input { position: absolute; left: 12px; top: 12px; width: 19%; max-width: 180px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); pointer-events: none; }
.v-input span { position: absolute; left: 6px; bottom: 6px; font: 600 10.5px/1 var(--font); background: rgba(0, 0, 0, .6); padding: 4px 6px; border-radius: 999px; }
.pano .v-input { display: none; }
.v-probe-cap { position: absolute; right: 14px; bottom: 6px; width: min(34%, 300px); display: flex; justify-content: space-around; font: 600 10.5px/1 var(--font); color: rgba(255, 255, 255, .7); pointer-events: none; }
.v-status { position: absolute; left: 14px; bottom: 14px; font-size: 12.5px; background: rgba(0, 0, 0, .65); padding: 6px 10px; border-radius: 999px; }
.v-hint { position: absolute; right: 14px; top: 12px; font-size: 12px; color: rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .45); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.v-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 12px; }
.v-ev { display: flex; align-items: center; gap: 10px; min-width: 220px; flex: 1; max-width: 380px; font: 600 13px/1 var(--font); color: var(--muted); }

/* method */
.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.idea { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.idea p { color: var(--muted); margin: 6px 0 14px; font-size: 15px; }
.rope-imgs { position: relative; margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 912 / 624; background: #0d1016; }
.rope-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.rope-imgs img.on { opacity: 1; }
.rope .seg button { font-size: 12px; padding: 7px 11px; }
.asg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 50px; }
.asg-grid img { width: 100%; border-radius: 8px; cursor: zoom-in; }

/* results */
.res { margin-bottom: 56px; }
.res-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 14px; }
.kpi { font: 500 13.5px/1.4 var(--mono); color: var(--muted); }
.kpi s { color: var(--dim); }
.kpi b { color: var(--amber); font-weight: 600; margin-right: 2px; }
.kpi span { color: var(--dim); font-family: var(--font); margin-right: 12px; }
.cmp-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cmp-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.cmp-chips button { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.cmp-chips button img { width: 56px; height: 42px; object-fit: cover; }
.cmp-chips button:hover { opacity: .9; }
.cmp-chips button.on { opacity: 1; border-color: var(--amber); }
.cmp-chips button i { position: absolute; right: 3px; top: 3px; width: 7px; height: 7px; border-radius: 50%; }
.cmp-chips button i.vis { background: #6fdc8c; }
.cmp-chips button i.off { background: var(--amber); }
.arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; font-size: 16px; flex: none; }
.arrow:hover { background: rgba(255, 255, 255, .12); }
.scroll-x { overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cmp-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(112px, 1fr)); gap: 6px; min-width: 760px; }
.cmp-head { font: 600 12.5px/1.2 var(--font); color: var(--muted); text-align: center; padding: 2px 0 4px; }
.cmp-head.ours { color: var(--amber); }
.cmp-cell { border-radius: 8px; overflow: hidden; background: #000; }
.cmp-cell img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.cmp-cell.input img { object-fit: contain; background: #0a0b10; }
.cmp-cell.ours { box-shadow: 0 0 0 2px var(--amber); }
.cmp-cell.globe { background: none; display: grid; place-items: center; }
.cmp-cell.globe img { object-fit: contain; }
.cmp-cap { font-size: 13px; color: var(--dim); margin-top: 8px; }
.cmp-cap b { color: var(--muted); }
.real-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.real-card figcaption { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.mini-globe { width: 40px; height: 40px; }
.ba { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #000; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; aspect-ratio: 1; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .6); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
.ba-handle span::before, .ba-handle span::after { content: ''; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px; border: 5px solid transparent; }
.ba-handle span::before { left: 4px; border-right-color: #222; }
.ba-handle span::after { right: 4px; border-left-color: #222; }
.ba-tag { position: absolute; top: 8px; font: 600 11px/1 var(--font); background: rgba(0, 0, 0, .6); padding: 5px 8px; border-radius: 999px; pointer-events: none; }
.ba-tag.left { left: 8px; }
.ba-tag.right { right: 8px; color: #1d1206; background: var(--amber); }
.ba:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* bibtex, footer, lightbox */
.bib { position: relative; background: #0d1017; border: 1px solid var(--line-2); border-radius: 18px; padding: 22px 24px; overflow-x: auto; }
.bib pre { margin: 0; font: 400 13.5px/1.7 var(--mono); color: #d6dbe7; white-space: pre; }
.bib .copy-bib { position: absolute; top: 14px; right: 14px; }
footer { border-top: 1px solid var(--line); padding: 32px 0 calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--dim); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; }
footer p { max-width: 62em; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4, 5, 8, .92); backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lb-cap { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .ol-grid { grid-template-columns: 1fr; }
  .ol-panel { grid-template-columns: 1fr 160px; align-items: start; }
  .ol-globe { width: 100%; grid-row: span 2; grid-column: 2; }
  .v-grid { grid-template-columns: 1fr; }
  .v-list { flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 6px; }
  .v-group { display: none; }
  .v-item { flex-direction: column; flex: none; width: 104px; font-size: 12px; text-align: center; }
  .v-item img { width: 96px; height: 48px; }
  .real-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px 16px 18px; background: rgba(7, 8, 12, .95); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links { display: flex; }
  .nav-links a.nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .ts-stage { grid-template-columns: 1fr .8fr; }
  .ts-arrow { display: none; }
  .ts-out { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .sp-grid, .strip-grid, .ideas { grid-template-columns: 1fr; }
  .asg-grid { margin-top: 14px; }
  section.section { padding: 60px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .teaser { padding: 14px 12px 16px; border-radius: 20px; }
  .ts-steps button { padding: 9px 12px; font-size: 13.5px; }
  .ts-steps button::before { display: none; }
  .ol-panel { grid-template-columns: 1fr; }
  .ol-globe { grid-column: auto; width: 60%; }
  .ol-pair { grid-template-columns: 1fr 1fr; }
  .ol-input { display: none; }
  .ol-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ol-tab { flex: none; }
  .real-grid { grid-template-columns: 1fr 1fr; }
  .v-input { width: 28%; }
}

/* key ideas: one row each, short text left, media right */
.ideas { grid-template-columns: 1fr; }
.idea { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.5fr); gap: 8px 32px; align-items: center; }
.idea > h3, .idea > p { grid-column: 1; }
.idea > h3 { align-self: end; }
.idea > p { align-self: start; margin: 0; }
.idea > .rope, .idea > .asg-grid { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.rope { display: grid; gap: 10px; justify-items: start; }
.rope .rope-imgs { width: 100%; margin: 0; }
.asg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.asg-grid span { text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); }
@media (max-width: 900px) {
  .idea { grid-template-columns: 1fr; }
  .idea > .rope, .idea > .asg-grid { grid-column: 1; grid-row: auto; }
}

/* grid items may shrink below their images' intrinsic width (prevents horizontal overflow on phones) */
.ts-stage > *, .ts-out > *, .ol-grid > *, .ol-panel > *, .ol-pair > *, .sp-grid > *, .sp-row > *, .strip-grid > *, .v-grid > *, .idea > *, .real-grid > * { min-width: 0; }
