:root {
  --ink: #17211d;
  --muted: #637069;
  --paper: #f5f3ed;
  --surface: #fffefa;
  --line: #d9ddd6;
  --accent: #147b62;
  --accent-dark: #0d5d49;
  --accent-soft: #d9eee6;
  --warm: #efb45f;
  --shadow: 0 18px 55px rgba(24, 49, 39, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px max(24px, calc((100vw - 1180px) / 2)); background: rgba(245,243,237,.88); border-bottom: 1px solid rgba(23,33,29,.08); backdrop-filter: blur(18px); }
.brand { text-decoration: none; font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; letter-spacing: .06em; }
.brand span { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 36px; color: white; background: var(--ink); border-radius: 8px; }
nav { display: flex; gap: 26px; }
nav a { color: #46504b; text-decoration: none; font-size: 14px; font-weight: 600; }
nav a:hover { color: var(--accent); }

.section-shell { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }
.hero { padding: 102px 0 80px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
h1, h2, h3 { font-family: Manrope, sans-serif; }
h1 { margin: 0 auto; max-width: 1080px; font-size: clamp(42px, 6vw, 76px); line-height: 1.08; letter-spacing: -.045em; }
h1 em { color: var(--accent); background: linear-gradient(100deg, #0b6b52 0%, #16a079 52%, #0b6b52 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-style: normal; animation: title-shift 7s ease-in-out infinite; }
@keyframes title-shift { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }
.authors { margin: 30px auto 24px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 54px; }
.button { display: inline-flex; min-width: 104px; height: 46px; align-items: center; justify-content: center; padding: 0 21px; border: 1px solid var(--ink); border-radius: 9px; font: 700 14px "DM Sans"; text-decoration: none; transition: .2s ease; }
.button.primary { color: white; background: var(--ink); }
.button.secondary { color: var(--ink); background: transparent; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,33,29,.12); }

.hero-statement { position: relative; overflow: hidden; max-width: 990px; margin: 0 auto; padding: 60px 70px; border-radius: 24px; color: white; background: var(--ink); box-shadow: var(--shadow); text-align: left; }
.hero-statement::after { content: ""; position: absolute; width: 360px; height: 360px; right: -130px; top: -170px; border: 80px solid rgba(78,197,157,.17); border-radius: 50%; }
.hero-statement span { display: block; color: #9bd6c2; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-statement strong { position: relative; z-index: 1; display: block; max-width: 780px; margin: 14px 0 16px; font: 700 clamp(26px, 4vw, 46px)/1.2 Manrope, sans-serif; letter-spacing: -.03em; }
.hero-statement p { position: relative; z-index: 1; max-width: 690px; margin: 0; color: #bdc9c3; font-size: 16px; }

.hero-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 auto 20px; }
.hero-metrics article { position: relative; display: flex; overflow: hidden; min-height: 178px; flex-direction: column; padding: 21px 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; color: white; background: #0d6b54; box-shadow: 0 16px 35px rgba(18,99,77,.18); text-align: left; transition: transform .3s ease, box-shadow .3s ease; isolation: isolate; }
.hero-metrics article::before { content: ""; position: absolute; z-index: -1; width: 170px; height: 170px; right: -65px; bottom: -100px; border: 30px solid rgba(255,255,255,.10); border-radius: 50%; transition: transform .45s ease; }
.hero-metrics article::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 48%); }
.hero-metrics article:nth-child(2) { background: linear-gradient(145deg, #106f66, #084e4a); }
.hero-metrics article:nth-child(3) { background: linear-gradient(145deg, #263b4a, #172631); }
.hero-metrics article:nth-child(4) { background: linear-gradient(145deg, #40375b, #28243e); }
.hero-metrics article:hover { transform: translateY(-6px); box-shadow: 0 24px 45px rgba(18,61,49,.24); }
.hero-metrics article:hover::before { transform: scale(1.16) rotate(18deg); }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-top span { color: rgba(255,255,255,.72); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.metric-top i { display: grid; min-width: 31px; height: 31px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: white; background: rgba(255,255,255,.1); font: normal 800 12px Manrope, sans-serif; }
.hero-metrics strong { margin-top: 20px; font: 800 35px/1 Manrope, sans-serif; letter-spacing: -.05em; }
.hero-metrics p { margin: 9px 0 0; color: white; font-size: 12px; font-weight: 600; line-height: 1.35; }
.hero-metrics small { margin-top: auto; padding-top: 10px; color: rgba(255,255,255,.62); font-size: 10px; }
.teaser-montage { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; padding: 5px; border-radius: 24px; background: linear-gradient(135deg, #7ad8b7, #ffffff 35%, #67bca1 70%, #ffffff); box-shadow: 0 28px 70px rgba(21,62,49,.22); }
.montage-media { display: block; width: 100%; min-width: 0; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.9) brightness(.8); transition: filter .4s ease, transform .5s ease; }
.teaser-montage:hover .montage-media { filter: saturate(1) brightness(.9); }
.montage-media:hover { z-index: 2; filter: saturate(1.15) brightness(1) !important; transform: scale(1.045); }
.montage-title { position: absolute; top: 50%; left: 50%; display: flex; width: min(570px, 58%); min-height: 218px; align-items: center; justify-content: center; flex-direction: column; padding: 26px 38px; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; color: var(--ink); background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(239,251,247,.88)); box-shadow: 0 22px 60px rgba(10,39,31,.30), inset 0 1px 0 white; transform: translate(-50%, -50%); backdrop-filter: blur(16px) saturate(1.2); }
.montage-title::before { content: ""; position: absolute; inset: 7px; pointer-events: none; border: 1px solid rgba(20,123,98,.13); border-radius: 18px; }
.montage-kicker { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.montage-title b { margin-top: 5px; color: var(--accent); font: italic 800 32px/1 Manrope, sans-serif; letter-spacing: -.06em; }
.montage-title strong { margin: 5px 0 8px; font: 800 clamp(18px, 2.2vw, 29px)/1.12 Manrope, sans-serif; letter-spacing: -.035em; }
.montage-title p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.montage-title a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; color: var(--accent-dark); font-size: 11px; font-weight: 800; text-decoration: none; }
.montage-title a span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: white; background: var(--accent); }

.paper-section { display: grid; grid-template-columns: 1fr; padding: 98px 0; border-top: 1px solid var(--line); }
.section-content { min-width: 0; }
.section-number { padding-top: 8px; color: #9aa49f; font: 700 14px Manrope; }
.section-content h2 { margin: 0 0 24px; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -.035em; }
.title-mark { display: inline-block; margin-left: .08em; color: var(--accent); transform: rotate(5deg); transform-origin: bottom center; animation: title-mark-float 2.4s ease-in-out infinite; }
@keyframes title-mark-float { 0%, 100% { transform: translateY(0) rotate(5deg); } 50% { transform: translateY(-3px) rotate(8deg); } }
.contribution-statement { display: flex; flex-wrap: wrap; gap: .22em; margin: -10px 0 34px; color: #77827c; font: 700 clamp(25px, 3.2vw, 42px)/1.15 Manrope, sans-serif; letter-spacing: -.035em; }
.contribution-statement > span:nth-child(3) { color: var(--accent); }
.section-lead { max-width: 850px; margin: -8px 0 34px; color: var(--muted); font-size: 17px; }
.abstract-copy { max-width: 960px; padding: 30px 34px; border-left: 4px solid var(--accent); background: rgba(255,255,255,.6); font-size: 17px; }
.abstract-copy p { margin: 0; }
.abstract-copy p + p { margin-top: 14px; }

.overview-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: stretch; }
.overview-layout .abstract-copy { max-width: none; padding: 32px 34px; font-size: 17px; line-height: 1.78; }
.bias-diagram { position: relative; display: flex; overflow: hidden; min-height: 100%; flex-direction: column; padding: 20px 14px 14px; border: 1px solid rgba(126,222,190,.20); border-radius: 20px; color: white; background: radial-gradient(circle at 84% 12%, rgba(37,195,147,.19), transparent 30%), linear-gradient(155deg, #172a25, #101916 70%); box-shadow: 0 18px 40px rgba(18,46,37,.18); }
.bias-diagram::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 25px 25px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.diagram-head { position: relative; z-index: 1; }
.diagram-head span { display: block; color: #67d3af; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.diagram-head strong { display: block; color: #75ddba; font: 750 12px/1.25 Manrope, sans-serif; letter-spacing: -.01em; }
.task-count-chart { position: relative; z-index: 1; margin: 12px 0 4px; opacity: .78; }
.count-bars { display: grid; height: 108px; grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: end; gap: 4px; margin-top: 5px; padding-bottom: 17px; border-bottom: 1px solid rgba(255,255,255,.10); }
.count-bars > div { display: flex; height: 100%; min-width: 0; align-items: center; justify-content: flex-end; flex-direction: column; }
.count-bars b { margin-bottom: 4px; color: #e1aa77; font: 700 8px/1 Manrope, sans-serif; }
.count-bars i { position: relative; display: block; width: 100%; height: var(--count); min-height: 5px; overflow: hidden; border-radius: 2px 2px 0 0; background: linear-gradient(to top, #9c6034, #e5a060); }
.count-bars i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent 48%); }
.count-bars span { position: absolute; margin-top: 16px; color: #84988f; font-size: 6.5px; font-weight: 750; }
.count-bars .head-count b { color: #7ae1be; }
.count-bars .head-count i { background: linear-gradient(to top, #159a73, #66dbb4); box-shadow: 0 0 8px rgba(66,213,165,.12); }
.count-groups { display: flex; justify-content: space-between; margin-top: 7px; }
.count-groups span { color: #72dbb8; font-size: 6.5px; font-weight: 750; letter-spacing: .03em; }
.count-groups span:last-child { color: #d99a63; }
.weight-inputs { position: relative; z-index: 1; display: grid; gap: 0; margin: 14px 0 8px; border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
.weight-input { display: grid; grid-template-columns: 1fr auto; gap: 1px 6px; padding: 8px 0; background: transparent; }
.weight-input + .weight-input { border-top: 1px solid rgba(255,255,255,.07); }
.weight-input span { grid-column: 1; color: #758880; font-size: 6px; font-weight: 800; letter-spacing: .1em; }
.weight-input b { grid-column: 1; font: 700 9px Manrope, sans-serif; }
.weight-input i { grid-column: 2; grid-row: 1 / 3; align-self: center; font: normal 800 6px Manrope, sans-serif; letter-spacing: .07em; }
.head-prior { border-left: 0; }
.head-prior i { color: #71e3be; }
.tail-query { border-left: 0; }
.tail-query i { color: #efa867; }
.weight-network { position: relative; z-index: 1; flex: 1; min-height: 244px; overflow: hidden; border: 0; border-radius: 0; background: radial-gradient(circle at 70% 28%, rgba(54,206,156,.08), transparent 37%); }
.network-labels { position: absolute; top: 9px; right: 7px; left: 7px; z-index: 2; display: flex; justify-content: space-between; color: #82968e; font-size: 6.5px; font-weight: 700; letter-spacing: .02em; }
.weight-network svg { display: block; width: 100%; height: 238px; margin-top: 9px; }
.base-weights path { fill: none; stroke: rgba(170,198,187,.16); stroke-width: 1; }
.tail-weight-path { fill: none; stroke: #e49a5b; stroke-width: 2; stroke-dasharray: 4 7; opacity: .48; }
.bias-weight-path { fill: none; stroke: #67dfb7; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 7; filter: url(#nodeGlow); animation: weight-flow 1.15s linear infinite; }
.bias-spill-path { fill: none; stroke: #5dd4ac; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 7 7; opacity: .72; animation: weight-flow 1.4s linear infinite; }
@keyframes weight-flow { to { stroke-dashoffset: -34; } }
.network-nodes circle { fill: #203d34; stroke: #668177; stroke-width: 1.2; }
.network-nodes .head-node-svg, .network-nodes .hot-node { fill: #2bb487; stroke: #8af0cf; filter: url(#nodeGlow); }
.network-nodes .tail-node-svg { fill: #9d6438; stroke: #efac70; }
.network-nodes .warm-node { fill: #32745f; stroke: #7ccbb1; }
.weight-network text { font-family: Manrope, sans-serif; font-size: 7.5px; font-weight: 750; letter-spacing: .02em; }
.svg-head-label, .svg-output-label { fill: #7ae4c1; }
.svg-tail-label { fill: #d99961; }
.weight-legend { position: absolute; right: 8px; bottom: 8px; left: 8px; display: flex; justify-content: space-between; }
.weight-legend span { display: flex; align-items: center; gap: 4px; color: #91a49d; font-size: 6.5px; line-height: 1.2; }
.weight-legend i { width: 6px; height: 6px; border-radius: 50%; background: #57d6ac; box-shadow: 0 0 7px rgba(87,214,172,.45); }
.weight-legend span:last-child i { background: #dd9255; box-shadow: none; }
.weight-activation { position: relative; z-index: 1; margin-top: 4px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); background: transparent; }
.weight-activation > span { display: block; margin-bottom: 7px; color: #91a49d; font-size: 6.5px; font-weight: 700; letter-spacing: .03em; }
.activation-cells { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.activation-cells i { height: 13px; border-radius: 1px; background: rgba(104,220,183,.12); }
.activation-cells i:nth-child(1), .activation-cells i:nth-child(2), .activation-cells i:nth-child(3), .activation-cells i:nth-child(5), .activation-cells i:nth-child(6), .activation-cells i:nth-child(9) { background: #38bd91; box-shadow: 0 0 8px rgba(56,189,145,.25); }
.activation-cells i:nth-child(4), .activation-cells i:nth-child(8), .activation-cells i:nth-child(12) { background: rgba(231,151,87,.42); }
.weight-outcome { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; margin-top: 7px; padding: 8px 0 2px; border: 0; border-radius: 0; background: transparent; }
.weight-outcome span { color: #778a82; font-size: 5px; font-weight: 800; letter-spacing: .09em; }
.weight-outcome b { grid-column: 1; color: #eab17d; font: 700 9px Manrope, sans-serif; }
.weight-outcome i { grid-column: 2; grid-row: 1 / 3; align-self: center; padding: 0; color: #f3ba84; background: transparent; font: normal 800 6px Manrope, sans-serif; letter-spacing: .12em; }
.vertical-distribution { position: relative; z-index: 1; display: grid; flex: 1; align-content: center; gap: 8px; margin: 18px 0 0; padding: 23px 47px 43px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: linear-gradient(180deg, rgba(3,17,13,.18), rgba(3,17,13,.42)); }
.task-row { position: relative; display: grid; height: 24px; grid-template-columns: 19px 1fr; align-items: center; gap: 5px; }
.task-row span { color: #64766f; font-size: 7px; font-weight: 800; }
.task-row i { position: relative; display: block; width: var(--width); height: 13px; overflow: hidden; border-radius: 2px 7px 7px 2px; background: linear-gradient(90deg, #1faa7e, #71dfbb); box-shadow: 0 0 12px rgba(67,217,167,.12); }
.task-row i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-100%); animation: bar-sheen 2.8s ease-in-out infinite; }
.task-row:nth-child(n+4) i { background: linear-gradient(90deg, #b06a36, #eda25f); box-shadow: 0 0 12px rgba(237,162,95,.10); }
.task-row:nth-child(2) i::after { animation-delay: .15s; }
.task-row:nth-child(3) i::after { animation-delay: .3s; }
.task-row:nth-child(4) i::after { animation-delay: .45s; }
.task-row:nth-child(5) i::after { animation-delay: .6s; }
.task-row:nth-child(6) i::after { animation-delay: .75s; }
@keyframes bar-sheen { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.task-row b { position: absolute; right: calc(100% + 5px); color: #6ee0ba; font: 800 6px Manrope, sans-serif; letter-spacing: .1em; opacity: 0; }
.head-row::before, .tail-row::before { position: absolute; left: 0; color: #6ee0ba; font-size: 6px; font-weight: 800; letter-spacing: .1em; transform: translateY(-13px); }
.head-row::before { content: "HEAD / FREQUENT"; }
.tail-row::before { content: "TAIL / RARE"; color: #efa464; }
.prior-arrow { position: absolute; top: 18px; right: 11px; bottom: 43px; display: flex; width: 27px; align-items: center; justify-content: center; }
.prior-arrow i { position: absolute; top: 1px; bottom: 10px; left: 50%; width: 4px; border-radius: 99px; background: repeating-linear-gradient(to bottom, #65ddba 0 9px, rgba(101,221,186,.12) 9px 17px); background-size: 100% 34px; box-shadow: 0 0 14px rgba(61,224,174,.38); animation: prior-flow .9s linear infinite; transform: translateX(-50%); }
.prior-arrow i::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 0; height: 0; border-top: 10px solid #ee9e58; border-right: 7px solid transparent; border-left: 7px solid transparent; filter: drop-shadow(0 0 5px rgba(238,158,88,.55)); transform: translateX(-50%); }
.prior-arrow span { z-index: 1; padding: 5px 3px; color: #b8f2df; background: #12261f; font-size: 6px; font-weight: 800; letter-spacing: .1em; line-height: 1.2; text-align: center; writing-mode: vertical-rl; }
@keyframes prior-flow { to { background-position: 0 34px; } }
.distribution-axis { position: absolute; right: 9px; bottom: 11px; left: 9px; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.09); }
.distribution-axis span { color: #6e8179; font-size: 6px; }
.distribution-axis b { color: #c5d3ce; font: 800 6px Manrope, sans-serif; letter-spacing: .09em; }
.tail-conflict { position: relative; z-index: 1; display: grid; gap: 7px; padding: 12px 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.035); }
.conflict-label { display: flex; align-items: end; justify-content: space-between; margin-bottom: 2px; }
.conflict-label span { color: #efa464; font-size: 6px; font-weight: 800; letter-spacing: .1em; }
.conflict-label b { color: #d5dfdb; font: 700 9px Manrope, sans-serif; }
.signal-row { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 6px; padding: 6px 7px; border-radius: 8px; background: rgba(255,255,255,.045); }
.signal-row > i { width: 6px; height: 6px; border-radius: 50%; }
.signal-row span { display: flex; min-width: 0; flex-direction: column; }
.signal-row b { font: 700 8px Manrope, sans-serif; }
.signal-row small { overflow: hidden; color: #778a82; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.signal-row em { font: normal 800 6px Manrope, sans-serif; letter-spacing: .08em; }
.strong-signal { border-left: 2px solid #51d5a9; }
.strong-signal > i { background: #51d5a9; box-shadow: 0 0 8px #51d5a9; }
.strong-signal em { color: #71dfbb; }
.weak-signal { border-left: 2px solid rgba(238,158,88,.46); opacity: .66; }
.weak-signal > i { background: #ee9e58; }
.weak-signal em { color: #eead72; }
.biased-output { display: grid; grid-template-columns: 1fr auto; padding: 8px 9px; border: 1px solid rgba(238,158,88,.36); border-radius: 9px; background: linear-gradient(100deg, rgba(151,89,45,.18), rgba(238,158,88,.08)); }
.biased-output span { color: #a88b73; font-size: 6px; font-weight: 800; letter-spacing: .09em; }
.biased-output b { grid-column: 1; color: #f3b77f; font: 700 9px Manrope, sans-serif; }
.biased-output i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #f0a25d; font: normal 800 16px Manrope, sans-serif; }
.frequency-bars { position: relative; z-index: 1; display: flex; height: 98px; align-items: end; gap: 4px; margin: 21px 0 28px; padding: 0 2px 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.frequency-bars i { position: relative; flex: 1; height: var(--height); min-width: 13px; border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, #159a74, #6bd6b3); box-shadow: 0 0 20px rgba(43,197,150,.12); }
.frequency-bars i:nth-of-type(n+4) { background: linear-gradient(to top, #9a6339, #f0ae68); }
.frequency-bars i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to bottom, rgba(255,255,255,.28), transparent 45%); }
.frequency-bars span { position: absolute; bottom: -2px; color: #82928b; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.frequency-bars .head-label { left: 4px; color: #67d3af; }
.frequency-bars .tail-label { right: 4px; color: #f0ae68; }
.bias-flow { position: relative; z-index: 1; height: 230px; }
.flow-node { position: absolute; z-index: 3; display: flex; width: 72px; min-height: 61px; justify-content: center; flex-direction: column; padding: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.flow-node b { font: 700 10px Manrope, sans-serif; }
.flow-node span { color: #8fa099; font-size: 8px; }
.flow-node em { margin-top: 6px; color: #62d0ac; font: normal 700 8px Manrope, sans-serif; letter-spacing: 2px; }
.head-node { left: 0; top: 4px; }
.tail-node { left: 0; bottom: 4px; }
.tail-node em { color: #efa866; }
.policy-node { position: absolute; z-index: 4; top: 50%; left: 50%; display: grid; width: 56px; height: 56px; place-content: center; border: 1px solid rgba(119,232,194,.65); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #247e65, #102d25 70%); box-shadow: 0 0 0 7px rgba(54,196,151,.06), 0 0 28px rgba(48,212,161,.18); text-align: center; transform: translate(-50%, -50%); }
.policy-node span { color: #8bd8bf; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.policy-node b { font: 800 13px Manrope, sans-serif; }
.decision-node { position: absolute; z-index: 3; top: 50%; right: 0; display: flex; width: 76px; min-height: 82px; justify-content: center; flex-direction: column; padding: 8px; border: 1px solid rgba(240,174,104,.45); border-radius: 11px; background: linear-gradient(145deg, rgba(151,89,45,.28), rgba(54,38,29,.48)); box-shadow: 0 0 26px rgba(224,139,73,.10); transform: translateY(-50%); }
.decision-node span { color: #f0ae68; font-size: 7px; font-weight: 800; letter-spacing: .11em; }
.decision-node b { margin-top: 4px; font: 700 9px/1.25 Manrope, sans-serif; }
.decision-node small { margin-top: 4px; color: #9e8d80; font-size: 8px; }
.flow-line { position: absolute; z-index: 2; height: 3px; border-radius: 99px; background: repeating-linear-gradient(90deg, #54d0a7 0 7px, rgba(84,208,167,.12) 7px 14px); background-size: 28px 100%; transform-origin: left center; animation: signal-flow 1.15s linear infinite; }
.head-line { top: 35px; left: 35%; width: 17%; transform: rotate(35deg); box-shadow: 0 0 10px rgba(72,216,169,.38); }
.tail-line { bottom: 35px; left: 35%; width: 17%; background-image: repeating-linear-gradient(90deg, #eaa15e 0 4px, rgba(234,161,94,.10) 4px 15px); transform: rotate(-35deg); opacity: .62; }
.output-line { top: calc(50% - 1px); left: 61%; width: 10%; background-image: repeating-linear-gradient(90deg, #75d8b8 0 7px, rgba(117,216,184,.12) 7px 14px); }
@keyframes signal-flow { to { background-position: 28px 0; } }
.diagram-alert { position: relative; z-index: 1; display: grid; grid-template-columns: 12px 1fr; gap: 1px 8px; padding: 12px 13px; border: 1px solid rgba(239,167,98,.18); border-radius: 11px; background: rgba(223,137,72,.08); }
.diagram-alert i { grid-row: 1 / 3; align-self: center; width: 9px; height: 9px; border-radius: 50%; background: #ef9f57; box-shadow: 0 0 0 0 rgba(239,159,87,.55); animation: alert-pulse 1.8s infinite; }
.diagram-alert span { color: #a6b3ae; font-size: 9px; }
.diagram-alert b { color: #f1b778; font: 700 10px Manrope, sans-serif; }
@keyframes alert-pulse { 60% { box-shadow: 0 0 0 8px rgba(239,159,87,0); } 100% { box-shadow: 0 0 0 0 rgba(239,159,87,0); } }

.advantage-marquee { overflow: hidden; margin-top: 24px; padding: 2px 0 18px; mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent); }
.advantage-track { display: flex; width: max-content; gap: 12px; animation: advantage-scroll 32s linear infinite; }
.advantage-marquee:hover .advantage-track { animation-play-state: paused; }
.advantage-item { position: relative; display: grid; width: 270px; min-height: 104px; align-content: center; padding: 15px 24px 15px 56px; overflow: hidden; border: 0; border-right: 1px solid rgba(23,33,29,.12); border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.advantage-item::after { display: none; }
.advantage-item i { position: absolute; top: 21px; left: 18px; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: white; background: var(--accent); font: normal 800 9px Manrope, sans-serif; }
.advantage-item strong { position: relative; z-index: 1; color: var(--accent-dark); font: 700 14px/1.35 Manrope, sans-serif; }
.advantage-item span { position: relative; z-index: 1; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.4; }
@keyframes advantage-scroll { to { transform: translateX(calc(-50% - 6px)); } }

.advantage-strip { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.advantage-strip div { min-height: 145px; padding: 24px 20px; border-right: 1px solid var(--line); }
.advantage-strip div:last-child { border-right: 0; }
.advantage-strip strong { display: block; color: var(--accent-dark); font: 700 15px Manrope; }
.advantage-strip span { display: block; margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.method-flow article > span { color: var(--accent); font: 800 12px Manrope; }
.performance-panel { margin-top: 22px; padding: 30px 32px 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.68); box-shadow: 0 18px 50px rgba(24,49,39,.08); }
.performance-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.performance-head > div:first-child > span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.performance-head h3 { margin: 5px 0 4px; font-size: 24px; line-height: 1.2; }
.performance-head p { margin: 0; color: var(--muted); font-size: 13px; }
.performance-legend { display: flex; justify-content: flex-end; gap: 20px; margin: 23px 3px 12px; }
.performance-legend span { display: inline-flex; align-items: center; gap: 7px; color: #52615a; font-size: 12px; font-weight: 700; }
.performance-legend i { width: 13px; height: 13px; border: 1px solid rgba(73,91,83,.74); border-radius: 3px; background: rgba(91,112,102,.62); }
.performance-legend .legend-apa i { border-color: rgba(184,119,45,.78); background: rgba(224,157,82,.62); }
.performance-legend .legend-ecl i { border-color: rgba(8,91,69,.82); background: rgba(20,123,98,.62); }
.performance-chart { display: grid; height: 330px; grid-template-columns: 38px minmax(0, 1fr); }
.chart-y-axis { position: relative; height: 300px; color: #819087; font-size: 10px; }
.chart-y-axis span { position: absolute; top: var(--y); right: 9px; line-height: 1; transform: translateY(-50%); }
.performance-plot { position: relative; height: 300px; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid rgba(23,33,29,.25); border-left: 1px solid rgba(23,33,29,.14); background: repeating-linear-gradient(to bottom, rgba(23,33,29,.09) 0 1px, transparent 1px 60px); }
.performance-groups { display: grid; height: 100%; min-width: 720px; grid-template-columns: repeat(10, minmax(50px, 1fr)); align-items: end; gap: 9px; padding: 0 14px; }
.performance-group { display: grid; height: 100%; grid-template-rows: 1fr 30px; min-width: 0; }
.performance-bars { display: flex; min-height: 0; align-items: flex-end; justify-content: center; gap: 6px; }
.performance-bar { position: relative; width: min(23px, 29%); height: calc(var(--value) * 1%); min-height: 2px; border: 1px solid rgba(73,91,83,.74); border-bottom: 0; border-radius: 5px 5px 0 0; background: rgba(91,112,102,.62); transition: opacity .2s ease, transform .2s ease; }
.performance-bar.apa { border-color: rgba(184,119,45,.78); background: rgba(224,157,82,.62); }
.performance-bar.ecl { border-color: rgba(8,91,69,.82); background: rgba(20,123,98,.62); }
.performance-bar:hover { z-index: 3; opacity: 1; transform: translateY(-3px); }
.performance-bar::after { content: attr(data-value); position: absolute; bottom: calc(100% + 7px); left: 50%; z-index: 5; padding: 3px 5px; border-radius: 5px; color: white; background: var(--ink); font-size: 9px; font-style: normal; line-height: 1; opacity: 0; pointer-events: none; transform: translate(-50%, 3px); transition: .18s ease; }
.performance-bar:hover::after { opacity: 1; transform: translate(-50%, 0); }
.performance-task-label { align-self: end; padding-top: 9px; color: #5f6e67; font-size: 11px; font-weight: 700; text-align: center; }
.performance-group:nth-child(-n+3) .performance-task-label { color: var(--accent); }
.performance-axis-label { margin: -10px 0 0 38px; color: #819087; font-size: 10px; }
.finding-card { max-width: none; margin-top: 22px; padding: 28px 30px; border-radius: 15px; color: white; background: var(--ink); }
.finding-card > span { color: #81d3b7; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.finding-card h3 { margin: 16px 0 8px; font-size: 20px; }
.finding-card p { max-width: 820px; margin: 0; color: #bdc9c3; font-size: 14px; }

.method-flow { display: grid; grid-template-columns: 1fr 38px 1fr 38px 1fr; align-items: stretch; }
.method-flow article { padding: 30px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.method-flow h3 { margin: 28px 0 10px; font-size: 18px; line-height: 1.35; }
.method-flow p { margin: 0; color: var(--muted); font-size: 14px; }
.math { white-space: nowrap; color: var(--ink); font-family: Georgia, serif; font-style: italic; }
.flow-arrow { display: grid; place-items: center; color: var(--accent); font-size: 24px; }
.deployment-note { display: flex; align-items: center; gap: 22px; margin-top: 22px; padding: 18px 22px; border-radius: 12px; background: var(--accent-soft); }
.deployment-note span { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; color: white; background: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.deployment-note p { margin: 0; color: var(--accent-dark); font-size: 14px; }

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.metric-grid article { position: relative; overflow: hidden; min-height: 200px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.metric-grid article::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 160px; height: 160px; border-radius: 50%; background: var(--accent-soft); }
.metric-model { color: var(--muted); font-size: 14px; font-weight: 600; }
.metric-grid strong { position: relative; z-index: 1; display: block; margin: 25px 0 4px; font: 700 clamp(32px, 5vw, 48px)/1 Manrope; letter-spacing: -.04em; }
.metric-grid strong i { color: var(--accent); font-style: normal; }
.metric-grid p { position: relative; z-index: 1; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.metric-grid b { color: var(--accent-dark); }
.figure-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.result-figure { margin: 34px 0 0; }
.result-figure img { width: 100%; }
.result-figure figcaption { padding: 14px 20px 17px; color: var(--muted); font-size: 13px; text-align: center; }

.video-tabs { display: flex; gap: 8px; margin: -4px 0 25px; }
.tab { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font: 700 13px "DM Sans"; cursor: pointer; }
.tab.active { color: white; border-color: var(--accent); background: var(--accent); }
.model-content[hidden], .model-panel[hidden] { display: none; }
.task-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.task-demo-card { min-width: 0; overflow: hidden; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.58); transition: transform .25s ease, box-shadow .25s ease; }
.task-demo-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(23,33,29,.10); }
.task-card-head { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 9px; margin: 1px 1px 12px; }
.task-card-head > span { margin-top: 1px; padding: 4px 7px; border-radius: 999px; color: white; background: var(--accent); font-size: 9px; font-weight: 800; white-space: nowrap; }
.task-card-head h3 { min-height: 42px; margin: 0; font: 700 13px/1.4 Manrope, sans-serif; }
.task-pair-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.task-demo-card:hover .task-pair-media img, .task-demo-card:hover .task-pair-media video { transform: scale(1.025); }
.task-meta { padding: 10px 2px 0; }
.task-meta p { margin: 0; color: var(--accent-dark); font-size: 10px; font-weight: 700; }
.robot-showcase { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.robot-showcase:first-of-type { margin-top: 22px; }
.robot-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.robot-heading > span { flex: 0 0 auto; padding: 7px 10px; border-radius: 8px; color: white; background: var(--ink); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.robot-heading h3 { margin: 0; font-size: 25px; }
.robot-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.demo-heading { display: grid; grid-template-columns: 110px 1fr auto; align-items: end; gap: 18px; margin: 36px 0 18px; }
.demo-heading > span { align-self: center; padding: 6px 10px; border-radius: 999px; color: var(--accent-dark); background: var(--accent-soft); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.demo-heading h3 { margin: 0; font-size: 24px; }
.demo-heading p { margin: 0 0 2px; color: var(--muted); font-size: 13px; }
.real-heading { margin-top: 54px; padding-top: 42px; border-top: 1px solid var(--line); }
.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.comparison-pair { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.56); }
.comparison-pair h3, .comparison-pair h4 { min-height: 48px; margin: 2px 4px 12px; font: 700 14px/1.45 Manrope, sans-serif; }
.pair-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-tile { position: relative; overflow: hidden; margin: 0; border-radius: 10px; background: #e4e6e1; }
.demo-tile span { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 4px 8px; border-radius: 999px; color: white; background: rgba(23,33,29,.82); font-size: 10px; font-weight: 800; backdrop-filter: blur(6px); }
.demo-tile.ours span { background: rgba(20,123,98,.9); }
.demo-tile img, .demo-tile video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

footer { display: flex; justify-content: space-between; padding: 26px max(22px, calc((100vw - 1180px)/2)); color: #a9b4ae; background: var(--ink); font-size: 12px; }

@media (max-width: 980px) {
  .advantage-strip { grid-template-columns: repeat(2, 1fr); }
  .advantage-strip div { border-bottom: 1px solid var(--line); }
  .method-flow { grid-template-columns: 1fr; gap: 12px; }
  .flow-arrow { height: 24px; transform: rotate(90deg); }
  .hero-metrics, .teaser-montage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teaser-montage > .montage-media:nth-child(n+9) { display: none; }
  .comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-layout { grid-template-columns: 1fr; }
  .bias-diagram { min-height: 520px; }
}

@media (max-width: 820px) {
  nav { display: none; }
  .hero { padding-top: 66px; }
  .hero-statement { padding: 42px 34px; }
  .paper-section { grid-template-columns: 1fr; gap: 8px; padding: 72px 0; }
  .section-number { display: none; }
  .metric-grid, .comparison-grid { grid-template-columns: 1fr; }
  .performance-head { align-items: flex-start; flex-direction: column; }
  .performance-legend { justify-content: flex-start; }
  .task-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-heading { grid-template-columns: 100px 1fr; }
  .demo-heading p { grid-column: 2; }
}

@media (max-width: 520px) {
  .section-shell { width: min(100% - 28px, 1180px); }
  .topbar { padding-inline: 14px; }
  h1 { font-size: 38px; }
  .authors { font-size: 14px; }
  .hero-statement { padding: 34px 24px; }
  .hero-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-metrics article { min-height: 150px; padding: 16px; }
  .hero-metrics strong { font-size: 27px; }
  .hero-metrics p { font-size: 11px; }
  .hero-metrics small { display: none; }
  .montage-title { width: 84%; min-height: 170px; padding: 18px; }
  .montage-title p { display: none; }
  .montage-kicker { display: block; }
  .abstract-copy { padding: 23px; font-size: 16px; }
  .overview-layout .abstract-copy { font-size: 13px; }
  .performance-panel { padding: 23px 18px 20px; }
  .performance-head h3 { font-size: 20px; }
  .performance-legend { gap: 12px; }
  .bias-diagram { min-height: 505px; padding-inline: 16px; }
  .flow-node, .decision-node { width: 94px; }
  .head-line, .tail-line { left: 28%; width: 24%; }
  .policy-node { left: 51%; width: 68px; height: 68px; }
  .output-line { left: 60%; width: 13%; }
  .advantage-strip { grid-template-columns: 1fr; }
  .advantage-strip div { min-height: 110px; border-right: 0; }
  .deployment-note { align-items: flex-start; flex-direction: column; gap: 10px; }
  .demo-heading { grid-template-columns: 1fr; align-items: start; }
  .demo-heading > span { justify-self: start; }
  .demo-heading p { grid-column: 1; }
  .pair-media { grid-template-columns: 1fr; }
  .task-gallery { grid-template-columns: 1fr; }
  .task-card-head h3 { min-height: 0; }
  .robot-heading { align-items: flex-start; }
  footer { gap: 12px; flex-direction: column; }
}
