/* EAGLE project page. Layout from Bulma (as the Nerfies template); everything EAGLE-specific lives here. */
:root {
  --e1: #204E56; --e2: #1D6067; --e3: #1C7180; --e4: #276B93; --e5: #345D9F;
  --brand: #1C7180; --brand-deep: #204E56; --brand-blue: #345D9F;
  --grad: linear-gradient(90deg, #204E56 0%, #1C7180 40%, #276B93 70%, #345D9F 100%);
  --ink: #1d2a2e; --ink-2: #3d4d52; --muted: #66777c; --faint: #94a3a7;
  --surface: #ffffff; --surface-2: #f4f8f8; --surface-3: #eaf2f3; --line: #e1e9ea; --line-2: #cfdcde;
  --good: #1a7f4b; --bad: #b0412e;
  /* chart series (validated: lightness, chroma, CVD and contrast) */
  --s-eagle: #00899B; --s-copgen: #8E5BD6; --s-tm: #C9741F;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 40, 46, .06), 0 8px 28px rgba(16, 40, 46, .08);
  --shadow-lg: 0 2px 6px rgba(16, 40, 46, .06), 0 24px 60px rgba(16, 40, 46, .14);
  --sans: "Google Sans", "Google Sans Text", "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--surface); color: var(--ink); font-family: var(--body); overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; }
/* overflow-x 'clip', not 'hidden', on body. Bulma sets html
   overflow-x: hidden, so body's 'hidden' made body a scroll container and the sticky navbar scrolled away with it. */
a { color: var(--e4); }
a:hover { color: var(--e5); text-decoration: underline; text-underline-offset: 3px; }
.title, .subtitle, h1, h2, h3, h4 { font-family: var(--sans); }
.title { color: var(--ink); letter-spacing: -0.01em; }
::selection { background: rgba(28, 113, 128, .18); }
img { image-rendering: auto; }

/* ---------- navbar ---------- */
.navbar.eagle-nav {
  position: sticky; top: 0; z-index: 50; min-height: 3.6rem;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.navbar.eagle-nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(16, 40, 46, .06); }
.eagle-nav .navbar-brand .brand { display: flex; align-items: center; gap: .55rem; font-family: var(--sans); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.eagle-nav .brand img { max-height: 2rem; }
.eagle-nav .brand .wordmark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .04em; }
.eagle-nav .navbar-item, .eagle-nav .navbar-link { font-family: var(--sans); color: var(--ink-2); font-size: .95rem; position: relative; }
.eagle-nav a.navbar-item:hover { background: transparent; color: var(--brand); text-decoration: none; }
.eagle-nav a.navbar-item.is-active { background: transparent; color: var(--ink); font-weight: 600; }
.eagle-nav a.navbar-item.is-active::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .35rem; height: 2px; border-radius: 2px; background: var(--grad);
}
.eagle-nav .nav-gh { font-size: 1.15rem; }
.eagle-nav .navbar-burger { color: var(--ink); }
@media screen and (max-width: 1023px) {
  .eagle-nav .navbar-menu { background: rgba(255, 255, 255, .97); box-shadow: var(--shadow); }
  .eagle-nav a.navbar-item.is-active::after { left: .75rem; right: auto; width: 1.5rem; bottom: .2rem; }
}

/* ---------- hero ---------- */
.eagle-hero { position: relative; overflow: hidden; isolation: isolate; }
.eagle-hero .hero-body { padding: 3.25rem 1.5rem 1.75rem; }
#latent-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .85;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, transparent 25%, #000 85%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, transparent 25%, #000 85%);
}
.eagle-hero::after {                     /* soft fade into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}
.hero-logo { width: 104px; height: auto; margin: 0 auto .6rem; display: block; filter: drop-shadow(0 8px 18px rgba(28, 113, 128, .18)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.has-text-centered .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.wordmark-xl {
  font-family: var(--sans); font-weight: 700; font-size: clamp(3.4rem, 9vw, 6.2rem); line-height: 1; letter-spacing: .06em;
  margin-bottom: .6rem; display: inline-block;
}
.wordmark-xl span:nth-child(1) { color: var(--e1); } .wordmark-xl span:nth-child(2) { color: var(--e2); }
.wordmark-xl span:nth-child(3) { color: var(--e3); } .wordmark-xl span:nth-child(4) { color: var(--e4); }
.wordmark-xl span:nth-child(5) { color: var(--e5); }
.publication-title { font-family: var(--sans); font-weight: 500; color: var(--ink); font-size: clamp(1.45rem, 3.1vw, 2.25rem); line-height: 1.25; margin: 0 auto 1.35rem !important; max-width: 920px; }
.publication-title .acr { font-weight: 700; }
.publication-title .acr.c1 { color: var(--e1); } .publication-title .acr.c2 { color: var(--e2); } .publication-title .acr.c3 { color: var(--e3); }
.publication-title .acr.c4 { color: var(--e4); } .publication-title .acr.c5 { color: var(--e5); }
.publication-authors { font-family: var(--sans); font-size: 1.12rem; color: var(--ink-2); }
.publication-authors a { color: var(--e4) !important; }
.author-block { display: inline-block; margin: 0 .45rem .25rem; }
.author-block sup { color: var(--muted); font-size: .7em; margin-left: 1px; }
.affiliation { color: var(--muted); font-family: var(--sans); margin: .35rem 0 0; font-size: .98rem; }
.affiliation span { display: inline-block; margin: 0 .5rem; }
/* darker, slightly bolder text */
.author-card { display: block; }
.author-card .publication-authors { color: var(--ink); font-weight: 500; }
.author-card .publication-authors a { font-weight: 600; }
.author-card .publication-authors a:hover { text-decoration: underline; }
.author-card .author-block sup { color: var(--ink-2); }
.author-card .affiliation { color: var(--ink-2); margin-top: .2rem; font-weight: 600; }
.publication-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.publication-links .button { font-family: var(--sans); font-weight: 500; height: 2.6em; padding-left: 1.25em; padding-right: 1.25em; transition: transform .15s, box-shadow .15s, background .15s; }
.publication-links .button.is-dark { background: #1d2a2e; }
.publication-links .button.is-dark:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(29, 42, 46, .22); background: #12191c; }
.publication-links .button.is-soon { background: #fff; color: var(--muted); border: 1px dashed var(--line-2); cursor: default; }
.publication-links .button.is-soon .soon { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; margin-left: .45rem; color: var(--brand); font-weight: 600; }

/* hero media */
.hero-media { max-width: 1080px; margin: 2.4rem auto 0; position: relative; }
.media-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.media-frame::before {                    /* thin brand line on top */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); z-index: 2;
}
.media-frame video, .media-frame img { display: block; width: 100%; height: auto; }
.media-caption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: .85rem; }
.media-caption strong { color: var(--ink-2); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 3.25rem 1.5rem; }
.section.is-tight { padding-top: 2.25rem; padding-bottom: 2.25rem; }
.muted-section { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 1.5rem; }
.section-head.has-text-centered { max-width: 820px; margin-left: auto; margin-right: auto; }
.section-head .title { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 700; margin-bottom: .7rem !important; }
.section-head .lead, .lead { color: var(--ink-2); font-size: 1.08rem; line-height: 1.65; }
.prose { color: var(--ink-2); font-size: 1.03rem; line-height: 1.75; }
.prose p + p { margin-top: .9rem; }
.prose strong { color: var(--ink); }
.abstract { max-width: 860px; margin: 0 auto; }
.abstract p { text-align: justify; hyphens: auto; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.stats.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.1rem 1rem; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); opacity: .85; }
.stat .num { font-family: var(--sans); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .num small { font-size: .55em; font-weight: 600; color: var(--muted); margin-left: .15rem; }
.stat .lbl { color: var(--ink-2); font-size: .9rem; line-height: 1.4; margin-top: .4rem; }
.stat .ctx { color: var(--faint); font-size: .78rem; margin-top: .3rem; }

/* ---------- idea / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.3rem; position: relative; transition: transform .2s, box-shadow .2s, border-color .2s; }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.step-card .k { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--surface-3); color: var(--brand); font-family: var(--sans); font-weight: 700; margin-bottom: .8rem; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .45rem; color: var(--ink); }
.step-card p { color: var(--ink-2); font-size: .96rem; line-height: 1.6; }
.step-card .tag { display: inline-block; margin-top: .75rem; font-size: .78rem; font-family: var(--mono); color: var(--brand-deep); background: var(--surface-3); border-radius: 6px; padding: .15rem .45rem; }
.equation { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-top: 1.25rem; overflow-x: auto; text-align: center; }
.equation .note { color: var(--muted); font-size: .88rem; margin-top: .35rem; }

/* ---------- figures ---------- */
.figure-panel { margin: 0; text-align: center; }
.figure-panel .fig-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; box-shadow: 0 1px 2px rgba(16, 40, 46, .04); position: relative; }
.figure-panel img { display: block; width: 100%; height: auto; border-radius: 6px; cursor: zoom-in; }
.figure-panel figcaption { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: .8rem auto 0; max-width: 900px; text-align: left; }
.figure-panel figcaption strong { color: var(--ink-2); }
.fig-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fig-scroll img { min-width: 1100px; }
.zoom-hint { position: absolute; right: 1.3rem; top: 1.3rem; background: rgba(29, 42, 46, .72); color: #fff; border-radius: 999px; font-size: .72rem; padding: .2rem .55rem; opacity: 0; transition: opacity .2s; pointer-events: none; font-family: var(--sans); }
.fig-wrap:hover .zoom-hint { opacity: 1; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 20, 23, .9); display: none; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out; }
.lightbox.is-open { display: flex; animation: fade .18s ease-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox .close { position: absolute; top: 1rem; right: 1.2rem; color: #fff; font-size: 1.8rem; line-height: 1; background: none; border: 0; cursor: pointer; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- tabs / segmented ---------- */
.seg { display: inline-flex; background: var(--surface-3); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font-family: var(--sans); font-size: .9rem; color: var(--ink-2); padding: .42rem .95rem; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.seg button:hover { color: var(--ink); }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 40, 46, .14); font-weight: 600; }
.seg-row { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-bottom: 1.1rem; }
.seg-row .seg-label { font-family: var(--sans); font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tab-pane { display: none; } .tab-pane.is-active { display: block; animation: fade .25s ease-out; }

/* ---------- tables ---------- */
.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-card .table-scroll { overflow-x: auto; }
.table.res { width: 100%; font-size: .93rem; margin: 0; font-variant-numeric: tabular-nums; }
.table.res thead th { font-family: var(--sans); font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line) !important; font-size: .84rem; white-space: nowrap; vertical-align: bottom; }
.table.res td, .table.res th { border-color: var(--line); padding: .6em .85em; vertical-align: middle; }
.table.res td.n, .table.res th.n { text-align: center; }
.table.res tbody tr { transition: background .15s; }
.table.res tbody tr:hover { background: #f7fbfb; }
.table.res .best { font-weight: 700; color: var(--ink); }
.table.res tr.is-eagle td { background: rgba(28, 113, 128, .055); }
.table.res tr.is-eagle td:first-child { box-shadow: inset 3px 0 0 var(--brand); font-weight: 600; }
.table.res td.group { font-family: var(--sans); font-weight: 600; color: var(--ink); white-space: nowrap; }
.table.res tr.sep td { border-top: 2px solid var(--line-2); }
.table.res .ci { display: block; font-size: .74rem; color: var(--faint); font-weight: 400; }
.table-note { color: var(--muted); font-size: .85rem; padding: .7rem 1rem .8rem; border-top: 1px solid var(--line); background: #fcfdfd; }
.delta { display: inline-block; font-size: .74rem; font-weight: 600; padding: .05rem .4rem; border-radius: 999px; margin-left: .35rem; font-family: var(--sans); white-space: nowrap; }
.delta.up { color: var(--good); background: rgba(26, 127, 75, .1); }
.delta.down { color: var(--bad); background: rgba(176, 65, 46, .1); }
.ratio { font-family: var(--sans); font-weight: 700; color: var(--brand); }
.check { color: var(--brand); }

/* inline bar inside table cells */
.cellbar { position: relative; display: flex; align-items: center; gap: .5rem; min-width: 150px; }
.cellbar .bar { height: 8px; border-radius: 4px; background: var(--line-2); flex: 0 0 auto; }
.cellbar .bar.is-eagle { background: var(--grad); }
.cellbar span { font-variant-numeric: tabular-nums; }

/* ---------- cards (task grid) ---------- */
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.task-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; transition: transform .22s, box-shadow .22s, border-color .22s; }
.task-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); text-decoration: none; color: inherit; }
.task-card .thumb { aspect-ratio: 16 / 9; background: var(--surface-3) center / cover no-repeat; position: relative; overflow: hidden; }
.task-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.task-card:hover .thumb img { transform: scale(1.04); }
.task-card .body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.task-card .kicker { font-family: var(--sans); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.task-card h3 { font-size: 1.18rem; font-weight: 700; margin: .25rem 0 .4rem; color: var(--ink); }
.task-card p { color: var(--ink-2); font-size: .93rem; line-height: 1.55; flex: 1; }
.task-card .kpi { margin-top: .85rem; display: flex; align-items: baseline; gap: .45rem; border-top: 1px dashed var(--line); padding-top: .75rem; }
.task-card .kpi b { font-family: var(--sans); font-size: 1.35rem; color: var(--ink); white-space: nowrap; }
.task-card .kpi span { color: var(--muted); font-size: .85rem; }
.task-card .go { margin-top: .7rem; font-family: var(--sans); font-weight: 600; color: var(--e4); font-size: .9rem; }
.task-card .go i { transition: transform .2s; margin-left: .3rem; }
.task-card:hover .go i { transform: translateX(4px); }

/* ---------- callouts / honest notes ---------- */
.callout { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.callout.is-honest { border-left: 4px solid #c9a227; background: #fffdf6; }
.callout.is-brand { border-left: 4px solid var(--brand); }
.callout h4 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; color: var(--ink); }
.callout p, .callout li { color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.callout ul { margin: .3rem 0 0 1.1rem; list-style: disc; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }

/* ---------- code ---------- */
.code-card { position: relative; background: #0f1b1e; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.code-card .bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .9rem; background: #16262a; color: #8fb3b9; font-family: var(--sans); font-size: .8rem; }
.code-card .bar i.dot { width: 10px; height: 10px; border-radius: 50%; background: #2f4a50; display: inline-block; }
.code-card .bar .ttl { margin-left: .4rem; }
.code-card pre { background: transparent; color: #dbe8ea; font-family: var(--mono); font-size: .86rem; line-height: 1.7; padding: 1rem 1.15rem 1.1rem; margin: 0; white-space: pre; overflow-x: auto; }
.code-card pre .c { color: #6f9098; } .code-card pre .k { color: #7fd1dc; } .code-card pre .s { color: #f0c68a; } .code-card pre .f { color: #b8a6f0; }
.copy-btn { position: absolute; top: .38rem; right: .5rem; background: rgba(255, 255, 255, .08); color: #cfe3e6; border: 1px solid rgba(255, 255, 255, .12); border-radius: 7px; font-size: .76rem; font-family: var(--sans); padding: .22rem .6rem; cursor: pointer; transition: background .15s; }
.copy-btn:hover { background: rgba(255, 255, 255, .16); }
.copy-btn.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.bibtex-card pre { color: #dbe8ea; }

/* ---------- fusion toy ---------- */
.fusion-demo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.fusion-demo svg { width: 100%; height: auto; display: block; background: radial-gradient(circle at 50% 50%, #fbfdfd, #f3f8f8); border-radius: 10px; border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); border-radius: 999px; padding: .38rem .85rem .38rem .55rem; cursor: pointer; font-family: var(--sans); font-size: .9rem; transition: all .15s; user-select: none; }
.chip:hover { border-color: var(--brand); }
.chip .sw { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; transition: all .15s; }
.chip.is-on { background: var(--surface-3); border-color: var(--brand); color: var(--ink); }
.chip.is-on .sw { opacity: 1; background: currentColor; }
.chip[disabled] { opacity: .45; cursor: not-allowed; }
.meter { margin-top: 1rem; }
.meter .row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ink-2); margin-bottom: .3rem; }
.meter .track { height: 10px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.meter .fill { height: 100%; background: var(--grad); border-radius: 6px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.weights { margin-top: 1rem; display: grid; gap: .35rem; }
.weights .w { display: grid; grid-template-columns: 6.5rem 1fr 3rem; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-2); }
.weights .w .t { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.weights .w .t i { display: block; height: 100%; border-radius: 4px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.weights .w b { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; color: var(--ink); }
.toy-note { color: var(--faint); font-size: .8rem; margin-top: .9rem; }

/* ---------- generation demo ---------- */
.demo { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lg); padding: 1.1rem 1.2rem; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.6rem; align-items: start; }
.demo h4 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .6rem; font-weight: 600; }
.inputs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.in-tile { position: relative; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; background: var(--surface-2); transition: border-color .2s, transform .2s, box-shadow .2s; aspect-ratio: 1 / 1; padding: 0; }
.in-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .3s, opacity .3s; }
.in-tile:not(.is-on) img { filter: grayscale(1) contrast(.7) brightness(1.15); opacity: .38; }
.in-tile.is-on { border-color: var(--brand); box-shadow: 0 6px 18px rgba(28, 113, 128, .18); }
.in-tile:hover { transform: translateY(-2px); }
.in-tile .lab { position: absolute; left: 0; right: 0; top: 0; padding: .45rem .55rem .9rem; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(to bottom, rgba(10, 20, 23, .72), rgba(10, 20, 23, 0)); color: #fff; font-family: var(--sans); font-size: .82rem; font-weight: 600; text-align: left; }
.in-tile .lab .st { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: .1rem .45rem; background: rgba(255, 255, 255, .2); }
.in-tile.is-on .lab .st { background: var(--brand); }
.demo-out { position: relative; }
.compare { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: #0d1416; user-select: none; touch-action: none; cursor: ew-resize; box-shadow: 0 10px 30px rgba(16, 40, 46, .18); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.compare img.pix { image-rendering: pixelated; }
.compare .top { clip-path: inset(0 0 0 var(--cut, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
.compare .handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.compare .tagl, .compare .tagr { position: absolute; top: .7rem; font-family: var(--sans); font-size: .75rem; font-weight: 600; color: #fff; background: rgba(10, 20, 23, .6); padding: .2rem .55rem; border-radius: 999px; pointer-events: none; backdrop-filter: blur(4px); }
.compare .tagl { left: .7rem; } .compare .tagr { right: .7rem; }
.compare .tagl.is-gen { background: rgba(28, 113, 128, .9); }
.readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .9rem; }
.readout .r { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; }
.readout .r .v { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.readout .r .l { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.demo-foot { margin-top: 1rem; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.legend-lulc { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .6rem; font-size: .78rem; color: var(--ink-2); }
.legend-lulc span { display: inline-flex; align-items: center; gap: .3rem; }
.legend-lulc i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0, 0, 0, .1); }
.ladder { display: flex; gap: 10px; margin-top: .7rem; align-items: stretch; }
.ladder .lg { display: flex; flex-direction: column; min-width: 46px; }
.ladder .lg .bars { display: flex; gap: 3px; align-items: flex-end; height: 54px; border-bottom: 1px solid var(--line-2); }
.ladder .lg .cap { font-size: .72rem; color: var(--faint); margin-top: .3rem; text-align: center; white-space: nowrap; }
.ladder .lb { flex: 1; border: 0; padding: 0; background: #c9d6d8; border-radius: 3px 3px 0 0; position: relative; cursor: pointer; transition: background .15s; min-width: 6px; }
.ladder .lb:hover { background: #9fb3b7; }
.ladder .lb.is-cur { background: var(--brand); }

/* ---------- chart ---------- */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem .9rem; position: relative; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; color: var(--ink-2); margin-bottom: .6rem; font-family: var(--sans); }
.chart-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.chart-legend svg { width: 26px; height: 10px; }
.multiples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.multiples svg { width: 100%; height: auto; overflow: visible; display: block; }
.multiples .ttl { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--ink); text-align: center; margin-bottom: .2rem; }
.ax text { fill: var(--muted); font-size: 10px; font-family: var(--body); }
.ax line { stroke: var(--line); }
.ax .base { stroke: var(--line-2); }
.chart-tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: .45rem .6rem; font-size: .8rem; color: var(--ink); box-shadow: var(--shadow); opacity: 0; transition: opacity .12s; z-index: 5; min-width: 150px; }
.chart-tip .h { font-family: var(--sans); font-weight: 600; margin-bottom: .2rem; }
.chart-tip .rw { display: flex; justify-content: space-between; gap: .9rem; }
.chart-tip .rw i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .35rem; }
.hbar { display: grid; gap: .45rem; }
.hbar .row { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr 3.4rem; align-items: center; gap: .7rem; font-size: .9rem; }
.hbar .row .nm { color: var(--ink-2); text-align: right; line-height: 1.25; }
.hbar .row .nm small { display: block; color: var(--faint); font-size: .74rem; }
.hbar .row .tr { height: 18px; position: relative; }
.hbar .row .tr i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: #c5d1d3; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.hbar .row.is-eagle .tr i { background: var(--s-eagle); }
.hbar .row.is-ref .tr i { background: repeating-linear-gradient(135deg, #dfe6e7 0 5px, #eef2f3 5px 10px); border: 1px solid #cdd8da; }
.hbar .row .v { font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.hbar .row.is-eagle .nm { color: var(--ink); font-weight: 600; }
.hbar .axis { grid-column: 2; display: flex; justify-content: space-between; color: var(--faint); font-size: .72rem; }

/* ---------- QA demo ---------- */
.qa-demo { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr); gap: 1.6rem; }
.qa-imgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.qa-imgs figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); transition: border-color .2s, opacity .2s; }
.qa-imgs figure.is-off { opacity: .35; filter: grayscale(1); }
.qa-imgs figure.is-on { border-color: var(--brand); }
.qa-imgs img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.qa-imgs figcaption { position: absolute; left: .35rem; bottom: .35rem; font-size: .7rem; font-family: var(--sans); font-weight: 600; color: #fff; background: rgba(10, 20, 23, .65); border-radius: 999px; padding: .08rem .45rem; }
.q-list { display: grid; gap: .4rem; max-height: 330px; overflow-y: auto; padding-right: .3rem; margin-top: .9rem; }
.q-item { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .5rem .7rem; cursor: pointer; font-size: .87rem; color: var(--ink-2); line-height: 1.4; transition: all .15s; display: flex; gap: .55rem; align-items: flex-start; font-family: var(--body); }
.q-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.q-item.is-active { border-color: var(--brand); background: var(--surface-3); color: var(--ink); }
.q-item .cat { flex: 0 0 auto; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--brand); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .08rem .45rem; margin-top: .1rem; font-family: var(--sans); }
.q-item .ok { margin-left: auto; flex: 0 0 auto; font-size: .8rem; }
.q-item .ok.y { color: var(--good); } .q-item .ok.n { color: var(--bad); }
/* EAGLE and Qwen3-VL side by side (logo + tick per model) */
.who-logo { width: 16px; height: 16px; object-fit: contain; flex: 0 0 auto; }
.q-item .marks { margin-left: auto; flex: 0 0 auto; display: flex; gap: .5rem; margin-top: .05rem; }
.q-item .marks .who { display: inline-flex; align-items: center; gap: .18rem; }
.q-item .marks .ok { margin-left: 0; width: .7rem; text-align: center; }
#qa-score { display: inline-flex; gap: .9rem; }
#qa-score .sc { display: inline-flex; align-items: center; gap: .3rem; }
#qa-score .sc b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ans .opt { display: flex; align-items: center; justify-content: space-between; gap: .7rem; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem; background: #fff; }
.ans .opt.is-truth { border-color: rgba(26, 127, 75, .45); background: rgba(26, 127, 75, .04); }
.ans .opt .txt { font-size: .92rem; color: var(--ink-2); }
.ans .opt.is-truth .txt { color: var(--ink); font-weight: 600; }
.ans .opt .tags { display: inline-flex; align-items: center; gap: .35rem; flex: 0 0 auto; }
.ans .opt .gt { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--good); background: rgba(26, 127, 75, .1); border-radius: 999px; padding: .05rem .45rem; font-family: var(--sans); }
.ans .opt .pk { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 700; letter-spacing: .03em; border-radius: 999px; padding: .08rem .5rem .08rem .3rem; font-family: var(--sans); }
.ans .opt .pk.eg { color: var(--ink); background: var(--surface-3); }
.ans .opt .pk.qw { color: #1f3fd9; background: rgba(31, 63, 217, .08); }
.ans .opt .pk .who-logo { width: 14px; height: 14px; }
.verdicts { margin-top: 1rem; display: grid; gap: .45rem; }
.verdicts .verdict { margin-top: 0; }
.verdict .who-logo { width: 20px; height: 20px; }
.verdict .inp { color: var(--ink-2); font-weight: 400; opacity: .85; }
.qa-question { font-family: var(--sans); font-size: 1.12rem; font-weight: 600; color: var(--ink); line-height: 1.45; margin-bottom: 1rem; min-height: 3.2rem; }
.ans { display: grid; gap: .55rem; }
.ans .a { display: grid; grid-template-columns: minmax(0, 1fr) 3.6rem; gap: .7rem; align-items: center; }
.ans .a .txt { font-size: .92rem; color: var(--ink-2); margin-bottom: .2rem; display: flex; align-items: center; gap: .45rem; }
.ans .a .txt .gt { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--good); background: rgba(26, 127, 75, .1); border-radius: 999px; padding: .05rem .45rem; font-family: var(--sans); }
.ans .a .trk { height: 12px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.ans .a .trk i { display: block; height: 100%; border-radius: 6px; background: #b9c6c9; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.ans .a.is-pick .trk i { background: var(--s-eagle); }
.ans .a.is-pick .txt { color: var(--ink); font-weight: 600; }
.ans .a .pv { font-family: var(--sans); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.verdict { margin-top: 1rem; font-size: .92rem; padding: .55rem .8rem; border-radius: 10px; display: flex; align-items: center; gap: .5rem; }
.verdict.y { background: rgba(26, 127, 75, .08); color: var(--good); }
.verdict.n { background: rgba(176, 65, 46, .08); color: var(--bad); }

/* ---------- pairing matrix (flood) ---------- */
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.pair { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; transition: transform .2s, box-shadow .2s; }
.pair:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pair .route { display: flex; align-items: center; gap: .45rem; font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: .95rem; flex-wrap: wrap; }
.pair .route .s { border-radius: 999px; padding: .12rem .55rem; font-size: .8rem; background: var(--surface-3); color: var(--brand-deep); }
.pair .route .when { color: var(--faint); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.pair .f1 { display: flex; align-items: baseline; gap: .5rem; margin: .6rem 0 .5rem; }
.pair .f1 b { font-family: var(--sans); font-size: 1.8rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.pair .f1 span { color: var(--muted); font-size: .85rem; }
.pair .mini { display: grid; gap: .25rem; }
.pair .mini .m { display: grid; grid-template-columns: 6.6rem 1fr 2.4rem; gap: .45rem; align-items: center; font-size: .78rem; color: var(--muted); }
.pair .mini .m .t { height: 7px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.pair .mini .m .t i { display: block; height: 100%; background: #c5d1d3; border-radius: 4px; }
.pair .mini .m.is-eagle { color: var(--ink); font-weight: 600; }
.pair .mini .m.is-eagle .t i { background: var(--s-eagle); }
.pair .mini .m b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.pair.is-lead { border-color: rgba(28, 113, 128, .45); box-shadow: inset 0 3px 0 var(--brand); }
.pair.is-trail { box-shadow: inset 0 3px 0 #c9a227; }

/* ---------- page header (task pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #f3f8f8 0%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.page-hero .hero-body { padding: 2.6rem 1.5rem 2.2rem; }
.page-hero .title { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; margin-bottom: .8rem !important; }
.page-hero .title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { max-width: 760px; font-size: 1.12rem; }
.page-hero .crumbs { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-bottom: .9rem; }
.page-hero .crumbs a { color: var(--muted); }
.page-hero .crumbs a:hover { color: var(--brand); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.kchip { display: inline-flex; align-items: baseline; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .88rem; color: var(--ink-2); }
.kchip b { font-family: var(--sans); color: var(--ink); font-size: 1rem; }

/* page nav (prev / next) */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pager a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--ink); transition: all .2s; }
.pager a:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }
.pager a small { display: block; font-family: var(--sans); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.pager a span { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; }
.pager a.next { text-align: right; }

/* ---------- footer ---------- */
.footer { background: #0f1b1e; color: #9fb7bb; padding: 3rem 1.5rem 2.5rem; }
.footer a { color: #d6e7ea; }
.footer a:hover { color: #fff; }
.footer .brand-f { display: flex; align-items: center; gap: .6rem; font-family: var(--sans); font-weight: 700; color: #fff; font-size: 1.1rem; }
.footer .brand-f img { height: 30px; filter: brightness(0) invert(1); opacity: .9; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer h5 { color: #fff; font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .7rem; }
.footer ul li { margin-bottom: .35rem; font-size: .93rem; }
.footer .fine { border-top: 1px solid #22363b; margin-top: 2rem; padding-top: 1.2rem; font-size: .84rem; color: #7f9a9f; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* back to top */
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .92); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 40; }
.to-top.is-shown { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); }

/* ---------- responsive ---------- */
@media screen and (max-width: 1215px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 1023px) {
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .fusion-demo, .demo-grid, .qa-demo { grid-template-columns: minmax(0, 1fr); }
  .multiples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 768px) {
  .section { padding: 2.4rem 1rem; }
  .eagle-hero .hero-body, .page-hero .hero-body { padding-left: 1rem; padding-right: 1rem; }
  .stats, .stats.is-4, .stats.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-grid, .two-col, .pairs, .pager { grid-template-columns: minmax(0, 1fr); }
  .multiples { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .abstract p { text-align: left; }
  .hbar .row { grid-template-columns: 7.5rem 1fr 3rem; font-size: .82rem; }
  .readout { grid-template-columns: 1fr 1fr 1fr; }
  .footer .cols { grid-template-columns: minmax(0, 1fr); }

  .publication-links .button { flex: 1 1 40%; }
}
@media screen and (max-width: 480px) {
  .multiples { grid-template-columns: 1fr; }
  .inputs-grid { gap: .5rem; }
}

/* ---------- fixes after the first render ---------- */
.columns > .column { min-width: 0; }
code { color: var(--brand-deep); background: var(--surface-3); font-size: .84em; padding: .1em .38em; border-radius: 5px; white-space: nowrap; font-family: var(--mono); }
.table-note code { font-size: .8em; }
.figure-panel.is-tall .fig-wrap { max-width: 980px; margin: 0 auto; }
.figure-panel.is-tall figcaption { max-width: 980px; }
.fig-wide .fig-wrap img { max-height: none; }
.two-col > *, .steps > *, .task-grid > *, .pairs > * { min-width: 0; }

/* ---------- case viewers (generation, missing bands, flood) ---------- */
.case-strip { display: flex; gap: .6rem; overflow-x: auto; padding: .2rem .1rem .7rem; scrollbar-width: thin; }
.case-strip button { flex: 0 0 auto; width: 132px; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 0; cursor: pointer; overflow: hidden; text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; }
.case-strip button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.case-strip button.is-active { border-color: var(--brand); box-shadow: 0 6px 18px rgba(28, 113, 128, .18); }
.case-strip img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; image-rendering: auto; }
.case-strip span { display: block; padding: .35rem .5rem .45rem; font-family: var(--sans); font-size: .72rem; line-height: 1.25; color: var(--ink-2); }
.case-strip button.is-active span { color: var(--ink); font-weight: 600; }
.viewer { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.viewer.no-side { grid-template-columns: minmax(0, 1fr); }
.given { display: grid; gap: .55rem; }
.given figure, .cmp4 figure { margin: 0; position: relative; }
.given img, .cmp4 img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.cmp4 img.pix, .given img.pix { image-rendering: pixelated; }
.given figcaption { position: absolute; left: .4rem; top: .4rem; font-family: var(--sans); font-size: .7rem; font-weight: 600; color: #fff; background: rgba(10, 20, 23, .62); border-radius: 999px; padding: .1rem .5rem; }
.given .lab { font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cmp4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.cmp4.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cmp4.is-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cmp4 .ttl { font-family: var(--sans); font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; display: flex; align-items: center; gap: .35rem; min-height: 1.3rem; }
.cmp4 .is-eagle .ttl { color: var(--brand); }
.cmp4 .is-eagle img { border: 2px solid var(--brand); box-shadow: 0 8px 22px rgba(28, 113, 128, .2); }
.cmp4 .is-truth .ttl { color: var(--ink); }
.cmp4 .m { margin-top: .4rem; font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cmp4 .m b { color: var(--ink-2); font-weight: 600; }
.cmp4 .is-eagle .m b { color: var(--brand); }
.cmp4 .m .win { color: var(--good); font-weight: 700; margin-left: .25rem; }
.viewer-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; }
.viewer-head .t { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.viewer-head .s { font-size: .86rem; color: var(--muted); }
.viewer-note { margin-top: 1rem; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.band-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.band-chips button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: .25rem .7rem; font-family: var(--sans); font-size: .84rem; color: var(--ink-2); cursor: pointer; }
.band-chips button.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- spectrum explorer (hyperspectral) ---------- */
.spec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.5rem; align-items: start; }
.spec-imgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.spec-imgs figure { margin: 0; position: relative; cursor: crosshair; }
.spec-imgs img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.spec-imgs figcaption { font-family: var(--sans); font-size: .76rem; color: var(--ink-2); margin-top: .3rem; text-align: center; }
.spec-imgs .cell { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 1.5px rgba(10, 20, 23, .7); border-radius: 3px; pointer-events: none; width: 6.25%; aspect-ratio: 1 / 1; }
#spec-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.spec-rmse { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.spec-rmse span { font-size: .82rem; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; color: var(--ink-2); background: #fff; }
.spec-rmse span b { color: var(--ink); }
.spec-rmse span.is-eagle { border-color: var(--brand); color: var(--brand); }
@media screen and (max-width: 1023px) {
  .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .viewer { grid-template-columns: minmax(0, 1fr); }
  .given-imgs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #mb-cases .given figure { max-width: 220px; }
  .cmp4.is-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 768px) {
  .cmp4, .cmp4.is-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp4.is-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.spec-imgs .pic { position: relative; }
.given-imgs { display: grid; gap: .55rem; }

/* ---------- generation viewer (inputs left, comparison slider right) ---------- */
.gv { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr); gap: 1.3rem; align-items: start; }
.gv-thumbs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .35rem; }
.gv-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--surface-2); line-height: 0; transition: border-color .15s, transform .15s; }
.gv-thumbs button:hover { transform: translateY(-1px); }
.gv-thumbs button.is-active { border-color: var(--brand); }
.gv-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gv-title { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; color: var(--ink); margin-top: .65rem; line-height: 1.3; }
.gv-sub { font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.gv-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.gv-inputs figure { margin: 0; position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; border: 2px solid var(--brand); }
.gv-inputs figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gv-inputs figure.off { border: 2px dashed var(--line-2); background: repeating-linear-gradient(135deg, #f6f9f9 0 8px, #eef3f4 8px 16px); }
.gv-inputs figcaption { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: .4rem .5rem .8rem; font-family: var(--sans); font-size: .78rem; font-weight: 600; color: #fff; background: linear-gradient(to bottom, rgba(10, 20, 23, .7), rgba(10, 20, 23, 0)); }
.gv-inputs figure.off figcaption { background: none; color: var(--faint); }
.gv-inputs figcaption .st { font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: .08rem .45rem; background: var(--brand); color: #fff; }
.gv-inputs figure.off figcaption .st { background: transparent; color: var(--faint); border: 1px solid var(--line-2); }
.gv-ctrl { display: flex; flex-wrap: wrap; gap: .45rem .6rem; align-items: center; margin-top: .75rem; }
.gv-ctrl .seg-label { font-family: var(--sans); font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; min-width: 4.6rem; }
.gv-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .65rem; }
.gv-models button { text-align: left; border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: .45rem .65rem; cursor: pointer; font-family: var(--body); transition: border-color .15s, background .15s; }
.gv-models button:hover { border-color: var(--line-2); }
.gv-models button.is-active { border-color: var(--brand); background: #fff; box-shadow: 0 4px 14px rgba(28, 113, 128, .14); }
.gv-models .nm { font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; }
.gv-models .nm .win { color: var(--good); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.gv-models .v { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.gv-models button.is-eagle .nm { color: var(--brand); }
.gv-note { margin-top: .7rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }

/* ---------- one-row comparisons (flood, missing bands) ---------- */
.row-cmp { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: .6rem; }
.row-cmp figure { margin: 0; }
.row-cmp .ttl { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-cmp img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.row-cmp img.pix { image-rendering: pixelated; }
.row-cmp .in .ttl { color: var(--muted); font-weight: 500; }
.row-cmp .is-eagle .ttl { color: var(--brand); }
.row-cmp .is-eagle img { border: 2px solid var(--brand); }
.row-cmp .m { margin-top: .3rem; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.row-cmp .m b { color: var(--ink-2); }
.row-cmp .is-eagle .m b { color: var(--brand); }
.row-cmp .m .win { color: var(--good); font-weight: 700; margin-left: .2rem; }
.row-cmp .sep { border-left: 1px dashed var(--line-2); margin: 1.4rem .1rem 1.6rem; }

/* ---------- lists in place of boxes ---------- */
.key-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 2rem; margin: 0; padding: 0; list-style: none; }
.key-list li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .5rem; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.key-list li i { color: var(--brand); margin-top: .25rem; }
.key-list.is-honest li i { color: #c9a227; }
.key-list li b { color: var(--ink); }
.stepper { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1.2rem; position: relative; margin: .4rem 0 0; padding: 0; list-style: none; }
.stepper::before { content: ""; position: absolute; left: 1.05rem; right: 1.05rem; top: 1.05rem; height: 2px; background: linear-gradient(90deg, var(--e1), var(--e5)); opacity: .35; }
.stepper li { position: relative; }
.stepper .n { position: relative; z-index: 1; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #fff; border: 2px solid var(--brand); color: var(--brand); font-family: var(--sans); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: .6rem; }
.stepper h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: .25rem; }
.stepper p { color: var(--ink-2); font-size: .92rem; line-height: 1.55; }
.inline-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 0; margin-top: 1.4rem; }
.inline-stats > div { padding: 0 1.6rem; border-left: 1px solid var(--line-2); text-align: center; }
.inline-stats > div:first-child { border-left: 0; }
.inline-stats b { display: block; font-family: var(--sans); font-size: 1.7rem; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.inline-stats span { font-size: .85rem; color: var(--muted); }

/* ---------- calibration dot chart ---------- */
#calib > svg { width: 100%; height: auto; display: block; overflow: visible; }
.calib .cap { color: var(--muted); font-size: .84rem; line-height: 1.5; margin-top: .4rem; }
@media screen and (max-width: 1023px) {
  .gv { grid-template-columns: minmax(0, 1fr); }
  .stepper { grid-template-columns: minmax(0, 1fr); }
  .stepper::before { display: none; }
  .row-cmp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-cmp .sep { display: none; }
}
@media screen and (max-width: 768px) {
  .key-list { grid-template-columns: minmax(0, 1fr); }
  .gv-thumbs { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .25rem; }
  .gv-inputs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
  .gv-inputs figcaption { font-size: .62rem; padding: .25rem .3rem .5rem; }
  .gv-inputs figcaption .st { display: none; }
  .inline-stats > div { padding: 0 .9rem; }
}
.inline-stats b span { font-size: inherit; color: inherit; }
.gv-inputs figure.off { border: 2px dashed var(--line-2); background: var(--surface-2); }
.gv-inputs figure.off img { filter: grayscale(1) contrast(.7) brightness(1.15); opacity: .35; }

/* ---------- generation viewer, one row: four inputs -> output slider -> model errors ---------- */
.gv-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; }
.gv-top .gv-thumbs { display: flex; flex-wrap: wrap; gap: .3rem; }
.gv-top .gv-thumbs button { width: 44px; flex: 0 0 44px; }
.gv-toggles { display: flex; flex-wrap: wrap; gap: .5rem; }
.gv-title { margin: .75rem 0 .55rem; font-family: var(--sans); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.gv-title .gv-sub { font-family: var(--body); font-weight: 400; font-size: .84rem; color: var(--muted); margin: 0 0 0 .4rem; }
.gv-row { display: grid; grid-template-columns: minmax(0, 4fr) 28px minmax(0, 1fr) 150px; gap: .55rem; align-items: stretch; }
.gv-row .gv-inputs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.gv-arrow { display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 1.1rem; }
.gv-out .compare { border-radius: 10px; border: 2px solid var(--brand); box-shadow: 0 6px 18px rgba(28, 113, 128, .18); }
.gv-out .compare .handle::after { width: 26px; height: 26px; font-size: 13px; }
.gv-out .compare .tagl, .gv-out .compare .tagr { top: .4rem; font-size: .66rem; padding: .12rem .45rem; }
.gv-out .compare .tagl { left: .4rem; } .gv-out .compare .tagr { right: .4rem; }
.gv-row .gv-models { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: .4rem; align-content: stretch; }
.gv-row .gv-models button { padding: .35rem .6rem; display: flex; flex-direction: column; justify-content: center; }
.gv-row .gv-models .v { font-size: .98rem; }
@media screen and (max-width: 1023px) {
  .gv-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gv-row .gv-inputs { grid-column: 1 / -1; }
  .gv-arrow { display: none; }
}
.gv-group { align-self: center; font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 .15rem 0 .45rem; white-space: nowrap; }
.gv-group:first-child { margin-left: 0; }
.gv-top { align-items: flex-start; }
.gv-top .gv-thumbs button { width: 38px; flex: 0 0 38px; border-radius: 7px; }
/* label + thumbnails grouped; on phones one group per row */
.gv-top .gv-thumbs { align-items: center; gap: .45rem 1rem; }
.gv-grp { display: inline-flex; align-items: center; gap: .35rem; }
.gv-grp .gv-group { margin: 0; }
.gv-grp-t { display: flex; flex-wrap: wrap; gap: .3rem; }
@media screen and (max-width: 768px) {
  .gv-top { display: block; }
  .gv-top .gv-thumbs { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .gv-grp { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: .5rem; align-items: center; }
  .gv-grp .gv-group { white-space: normal; line-height: 1.25; }
  .gv-top .gv-thumbs button { width: 40px; flex: 0 0 40px; }
}
.gv-headrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin: .65rem 0 .6rem; }
.gv-headrow .gv-title { margin: 0; }
/* generation viewer: four inputs -> real and three models, one row */
.gv-row { grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); gap: .5rem; align-items: start; }
.gv-outs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.gv-outs figure { margin: 0; position: relative; }
.gv-outs img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.gv-outs img.pix { image-rendering: pixelated; }
.gv-outs figcaption { position: absolute; left: .35rem; top: .35rem; font-family: var(--sans); font-size: .72rem; font-weight: 600; color: #fff; background: rgba(10, 20, 23, .62); border-radius: 999px; padding: .08rem .5rem; }
.gv-outs .is-eagle img { border: 2px solid var(--brand); box-shadow: 0 6px 16px rgba(28, 113, 128, .2); }
.gv-outs .is-eagle figcaption { background: var(--brand); }
.gv-outs .is-truth figcaption { background: #1d2a2e; }
.gv-outs .m { margin-top: .3rem; font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gv-outs .is-truth .m { color: var(--muted); }
.gv-outs .is-eagle .m { color: var(--brand); font-weight: 600; }
.gv-outs .m .win { color: var(--good); font-weight: 700; margin-left: .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.gv-row .gv-inputs figure { aspect-ratio: 1 / 1; }
@media screen and (max-width: 1023px) {
  .gv-row { grid-template-columns: minmax(0, 1fr); }
  .gv-row .gv-inputs { grid-column: auto; }
  .gv-outs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gv-outs .m { font-size: .68rem; white-space: normal; }
}
.gv-row .gv-inputs figcaption { font-size: .72rem; padding: .35rem .4rem .7rem; }
.gv-row .gv-inputs figcaption .st { font-size: .58rem; padding: .05rem .35rem; }
.gv-row .gv-inputs figure.off figcaption .st { display: none; }
.gv-row .gv-inputs figure.off::after { content: "not given"; position: absolute; left: .4rem; bottom: .35rem; font-family: var(--sans); font-size: .6rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.gv-row .gv-arrow { align-self: stretch; padding-bottom: 1.35rem; }
.gv-outs figcaption { white-space: nowrap; }
@media screen and (max-width: 768px) {
  .gv-outs figcaption { font-size: .6rem; padding: .05rem .38rem; left: .25rem; top: .25rem; }
  .gv-row .gv-inputs figcaption { font-size: .6rem; }
}

/* ---------- header figure under the page title (as COP-GEN's Figure 1) ---------- */
.hero-figure { margin: 1.4rem 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem .7rem; box-shadow: var(--shadow); }
.hero-figure img { display: block; width: 100%; height: auto; border-radius: 6px; cursor: zoom-in; }
.hero-figure figcaption { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: .45rem; }
.hero-figure figcaption strong { color: var(--ink-2); }


.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.hero-links a { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--sans); font-size: .92rem; color: #fff; background: rgba(15, 27, 30, .75);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .42rem 1rem; transition: background .15s, transform .15s; }
.hero-links a:hover { background: rgba(28, 113, 128, .9); color: #fff; text-decoration: none; transform: translateY(-1px); }
#cd-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
#cd-chart .bar { transition: opacity .15s; }
@media screen and (max-width: 768px) { #cd-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; } #cd-chart svg { min-width: 720px; } }
/* uncertainty numbers beside the CRPS table: a plain list, not boxes */
.side-stats { display: grid; gap: 1.2rem; padding-top: .3rem; }
.side-stats > div { border-left: 3px solid var(--brand); padding: .05rem 0 .05rem .9rem; }
.side-stats b { display: block; font-family: var(--sans); font-size: 1.65rem; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.side-stats span { color: var(--ink-2); font-size: .93rem; line-height: 1.5; }

/* ---------- task-page header: light, with the overview's cell grid filled by the page's modality images ---------- */
.page-hero.has-cells { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #f5f9f9 0%, #ffffff 100%); }
.page-hero.has-cells .cell-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 58% 78% at 50% 48%, transparent 34%, #000 82%);
  mask-image: radial-gradient(ellipse 58% 78% at 50% 48%, transparent 34%, #000 82%); }
.page-hero.has-cells .hero-body { padding: 3rem 1.5rem 2.8rem; text-align: center; }
.page-hero.has-cells .lead { max-width: 820px; margin: 0 auto; }
.page-hero.has-cells .chip-row { justify-content: center; }
.page-hero.has-cells .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.page-hero.has-cells .kchip { background: rgba(255, 255, 255, .88); }
.page-hero.has-cells .hero-links a { background: #1d2a2e; border-color: #1d2a2e; }
.page-hero.has-cells .hero-links a:hover { background: var(--brand); border-color: var(--brand); }

/* image cells behind the whole header, softer (not removed) behind the text, which gets a light halo */
#latent-canvas.cell-canvas { opacity: 1;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, rgba(0, 0, 0, .55) 30%, #000 85%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, rgba(0, 0, 0, .55) 30%, #000 85%); }
.page-hero.has-cells .cell-canvas {
  -webkit-mask-image: radial-gradient(ellipse 62% 80% at 50% 48%, rgba(0, 0, 0, .55) 30%, #000 85%);
  mask-image: radial-gradient(ellipse 62% 80% at 50% 48%, rgba(0, 0, 0, .55) 30%, #000 85%); }
.page-hero.has-cells .title, .page-hero.has-cells .lead, .page-hero.has-cells .eyebrow, .page-hero.has-cells .crumbs,
.eagle-hero .publication-title, .eagle-hero .publication-authors, .eagle-hero .affiliation, .eagle-hero .wordmark-xl {
  text-shadow: 0 0 2px #fff, 0 0 10px rgba(255, 255, 255, .95), 0 0 22px rgba(255, 255, 255, .9); }
.eagle-hero .publication-links .button.is-soon { background: rgba(255, 255, 255, .92); }
.eagle-hero::after { height: 60px; }
.page-hero.has-cells .title .grad { text-shadow: none; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .95)) drop-shadow(0 0 14px rgba(255, 255, 255, .8)); }

/* ---------- header cells extend behind the navigation bar ---------- */
:root { --nav-h: 3.6rem; }
.navbar.eagle-nav { background: rgba(255, 255, 255, .5); border-bottom: 1px solid rgba(255, 255, 255, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: background .25s, border-color .25s, box-shadow .25s; }
/* the same frosted glass at the top and while scrolling; scrolling
   only adds a hairline and a soft shadow to separate the bar from the page */
.navbar.eagle-nav, .navbar.eagle-nav.is-scrolled { background: rgba(255, 255, 255, .55); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.navbar.eagle-nav.is-scrolled { border-bottom-color: rgba(207, 220, 222, .7); box-shadow: 0 6px 24px rgba(16, 40, 46, .06); }
.eagle-nav .navbar-item { text-shadow: 0 0 2px #fff, 0 0 8px rgba(255, 255, 255, .95), 0 0 16px rgba(255, 255, 255, .9); }
.eagle-nav .brand .wordmark { text-shadow: none; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .95)); }
main > .eagle-hero, main > .page-hero.has-cells { margin-top: calc(-1 * var(--nav-h) - 1px); }
main > .eagle-hero .hero-body { padding-top: calc(3.25rem + var(--nav-h)); }
main > .page-hero.has-cells .hero-body { padding-top: calc(3rem + var(--nav-h)); }

/* links that are not public yet */
.publication-links .button.is-soon .soon { text-transform: none; letter-spacing: 0; font-size: .74rem; }
.hero-links .soon-link { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--sans); font-size: .92rem; color: var(--ink-2);
  background: rgba(255, 255, 255, .9); border: 1px dashed var(--line-2); border-radius: 999px; padding: .42rem 1rem; cursor: default; }
.hero-links .soon-link em { font-style: normal; font-size: .74rem; font-weight: 600; color: var(--brand); }
.footer .soon-note { font-size: .78rem; color: #6f8a8f; margin-left: .3rem; }
.footer .brand-f .ver { font-size: .78rem; font-weight: 600; color: #8fe0ea; margin-left: -.35rem; align-self: flex-end; padding-bottom: .12rem; }

/* generation cases pager */
.gv-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: .6rem; }
.gv-bar-bottom { justify-content: center; margin: .9rem 0 0; }
.gv-pager { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--sans); font-size: .86rem; color: var(--ink-2); }
.gv-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
#gen-cases button.pg { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; transition: border-color .15s, color .15s, box-shadow .15s; }
#gen-cases button.pg:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 4px 12px rgba(28, 113, 128, .15); }
.gv-dots { display: inline-flex; align-items: center; gap: .3rem; }
.gv-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--line-2); cursor: pointer; transition: width .2s, background .2s; }
.gv-dots button.is-active { width: 20px; background: var(--brand); }
.gv-stage { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: .8rem; }
.gv-side { position: relative; }
.gv-side button.pg { position: sticky; top: calc(50vh - 21px); width: 42px !important; height: 42px !important; font-size: 1rem !important; }
.gv-case + .gv-case { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.gv-case .gv-headrow { margin: 0 0 .5rem; }
.gv-prod { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.gv-tg button { font-size: .8rem; padding: .28rem .75rem; }
@media screen and (max-width: 768px) {
  .gv-stage { grid-template-columns: minmax(0, 1fr); }
  .gv-side { display: none; }
  .gv-bar { justify-content: center; }
}
