@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:ital,wght@1,600&display=swap');

:root {
  --ink: #090d10;
  --ink-2: #151b20;
  --ink-soft: #39464e;
  --paper: #f1efe9;
  --paper-2: #e6e2da;
  --white: #fffefa;
  --clinical: #31538c;
  --clinical-soft: #dce6f6;
  --red: #e6524b;
  --pink: #e72f7d;
  --cyan: #3c9dcc;
  --gold: #e5a31c;
  --purple: #9664bd;
  --green: #3f9870;
  --line: rgba(9,13,16,.15);
  --shadow: 0 28px 80px rgba(9,13,16,.14);
  --radius: 24px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--white); }
.skip-link:focus { top: 12px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; color: var(--white); background: rgba(9,13,16,.9); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(18px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 40px; height: 38px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; color: var(--white); font-family: "DM Mono", monospace; font-size: 11px; }
.brand-mark::after { content: ""; position: absolute; inset: auto 0 0; height: 8px; background: var(--red); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,.7); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus { color: var(--white); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: none; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--white); }

.hero { position: relative; overflow: hidden; padding: 148px 0 0; color: var(--white); background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 72px 0 auto; height: 610px; opacity: .16; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent 2%, black 72%, transparent); }
.hero::after { content: ""; position: absolute; right: -130px; top: 90px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(49,83,140,.36), transparent 67%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 72px; padding-bottom: 88px; }
.venue { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: #f1b4b0; font-family: "DM Mono", monospace; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .145em; }
.venue span { width: 9px; height: 9px; border-radius: 2px; background: var(--red); box-shadow: 0 0 0 6px rgba(230,82,75,.14); }
.hero h1 { margin-bottom: 15px; font-size: clamp(58px, 7vw, 94px); line-height: .96; letter-spacing: -.065em; }
.hero h1 em { color: var(--white); font-family: "Source Serif 4", serif; font-weight: 600; }
.hero h1 span { display: inline-block; padding: .02em .12em .09em; color: var(--ink); background: var(--white); transform: rotate(-1.5deg); }
.subtitle { max-width: 680px; margin-bottom: 24px; color: var(--white); font-size: clamp(19px,2vw,24px); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.lede { max-width: 650px; margin-bottom: 22px; color: rgba(255,255,255,.7); font-size: 18px; line-height: 1.65; }
.authors { display: flex; flex-wrap: wrap; gap: 3px 15px; max-width: 720px; margin-bottom: 8px; }
.authors a { color: var(--white); font-size: 14px; text-decoration-color: rgba(255,255,255,.26); text-underline-offset: 4px; }
.authors sup, .author-affiliations sup { color: #f1aaa6; font-family: "DM Mono", monospace; font-size: .7em; }
.author-affiliations { display: grid; gap: 3px; margin-bottom: 14px; color: rgba(255,255,255,.5); font-size: 12px; line-height: 1.5; }
.collaboration-lockup { max-width: 650px; margin-bottom: 25px; padding: 12px 14px 13px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.055); }
.collaboration-eyebrow { display: block; margin-bottom: 9px; color: #f1aaa6; font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .11em; }
.collaboration-partners { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 10px; }
.collaboration-partner { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 5px; border-radius: 10px; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.collaboration-partner:hover, .collaboration-partner:focus-visible { background: rgba(255,255,255,.07); outline: 0; transform: translateY(-1px); }
.collaboration-partner > span:last-child { display: grid; min-width: 0; }
.collaboration-partner strong { overflow: hidden; color: var(--white); font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.collaboration-partner small { margin-top: 2px; color: rgba(255,255,255,.44); font-family: "DM Mono", monospace; font-size: 8px; line-height: 1.3; text-transform: uppercase; letter-spacing: .055em; }
.partner-mark { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-family: "DM Mono", monospace; font-size: 13px; font-weight: 500; }
.unibo-mark { color: var(--ink); background: var(--white); }
.hospital-mark { color: var(--white); background: var(--red); }
.collaboration-times { color: rgba(255,255,255,.3); font-family: "Source Serif 4", serif; font-size: 19px; font-style: italic; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 50px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--white); background: var(--red); }
.button.secondary { color: var(--white); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.045); }
.button.disabled { color: rgba(255,255,255,.44); border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.055); cursor: not-allowed; user-select: none; }
.button.disabled:hover { transform: none; }

.redaction-stage { position: relative; padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; background: rgba(255,255,255,.07); box-shadow: 0 34px 100px rgba(0,0,0,.44); backdrop-filter: blur(14px); transform: rotate(1.1deg); }
.redaction-stage::after { content: ""; position: absolute; z-index: -1; inset: 25px -22px -25px 28px; border-radius: 28px; background: rgba(230,82,75,.13); }
.stage-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 2px 14px; }
.synthetic-badge { color: rgba(255,255,255,.58); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.synthetic-badge::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); }
.mode-switch { display: flex; padding: 3px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(0,0,0,.2); }
.mode-switch button { padding: 6px 11px; border: 0; border-radius: 999px; color: rgba(255,255,255,.48); background: transparent; cursor: pointer; font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }
.mode-switch button.active { color: var(--ink); background: var(--white); }
.clinical-page { padding: 20px; border-radius: 14px; color: #23282c; background: #fafafa; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); font-family: Arial, Helvetica, sans-serif; }
.record-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: -20px -20px 17px; padding: 18px 20px; color: #f7f7f7; background: #26292c; }
.record-head div { display: grid; }
.record-head strong { font-size: 17px; letter-spacing: .06em; }
.record-head span { font-size: 9px; letter-spacing: .14em; }
.record-head b { color: #dce6f6; font-size: 10px; line-height: 1.3; text-align: right; }
.record-meta { display: grid; grid-template-columns: 1.15fr .9fr 1fr; border: 1px solid #d0d4d8; }
.record-meta > div { min-width: 0; padding: 9px; border-right: 1px solid #d0d4d8; }
.record-meta > div:last-child { border-right: 0; }
.record-meta small { display: block; margin-bottom: 4px; color: #69747c; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.record-meta strong { position: relative; display: inline-block; font-size: 10px; white-space: nowrap; }
.record-section { margin-top: 16px; padding: 7px 9px; border-left: 4px solid var(--clinical); color: var(--clinical); background: #eef1f4; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.record-table { border: 1px solid #d0d4d8; border-top: 0; }
.record-table > div { display: grid; grid-template-columns: 1.6fr .6fr .8fr; gap: 8px; padding: 6px 8px; border-top: 1px solid #e1e3e5; font-size: 8px; }
.record-table > div:first-child { border-top: 0; color: #56616a; }
.record-foot { margin-top: 16px; padding-top: 10px; border-top: 1px solid #ccd0d3; color: #69747c; font-size: 8px; }
.record-foot strong { position: relative; display: inline-block; }
.phi { z-index: 0; }
.redaction-stage[data-mode="detect"] .phi::before { content: attr(data-label); position: absolute; left: -1px; bottom: calc(100% + 1px); z-index: 2; padding: 2px 4px; color: var(--white); font-family: "DM Mono", monospace; font-size: 6px; line-height: 1; white-space: nowrap; }
.redaction-stage[data-mode="detect"] .phi::after { content: ""; position: absolute; z-index: -1; inset: -3px -4px; border: 2px solid; background: rgba(230,82,75,.08); }
.redaction-stage[data-mode="detect"] .phi.name::before, .redaction-stage[data-mode="detect"] .phi.name::after { background-color: var(--red); border-color: var(--red); }
.redaction-stage[data-mode="detect"] .phi.date::before, .redaction-stage[data-mode="detect"] .phi.date::after { background-color: var(--gold); border-color: var(--gold); }
.redaction-stage[data-mode="detect"] .phi.id::before, .redaction-stage[data-mode="detect"] .phi.id::after { background-color: var(--purple); border-color: var(--purple); }
.redaction-stage[data-mode="detect"] .phi.datetime::before, .redaction-stage[data-mode="detect"] .phi.datetime::after { background-color: var(--gold); border-color: var(--gold); }
.redaction-stage[data-mode="redact"] .phi { color: transparent; background: var(--ink); box-shadow: 0 0 0 3px var(--ink); transition: color .18s ease, background .18s ease; }
.stage-caption { margin: 15px 3px 1px; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.55; }
.stage-caption strong { color: var(--white); }

.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.13); }
.stats div { padding: 29px 27px 33px; border-right: 1px solid rgba(255,255,255,.13); }
.stats div:first-child { padding-left: 0; }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-size: 39px; line-height: 1.12; letter-spacing: -.055em; }
.stats span { display: block; margin-top: 5px; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.35; }

.section { padding: 112px 0; }
.section-kicker { margin-bottom: 17px; color: #b73530; font-family: "DM Mono", monospace; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .145em; }
.statement { max-width: 970px; margin: 0 auto 62px; text-align: center; }
.statement h2, .section-heading h2, .safety-copy h2, .citation-grid h2 { margin-bottom: 22px; font-size: clamp(38px,5vw,62px); line-height: 1.06; letter-spacing: -.052em; }
.statement h2 em { color: #b73530; font-family: "Source Serif 4", serif; font-weight: 600; }
.statement p { max-width: 750px; margin-inline: auto; color: var(--ink-soft); font-size: 18px; }

.capability-flow { display: grid; grid-template-columns: 1fr 46px 1fr 46px 1fr; align-items: stretch; }
.capability { min-height: 305px; padding: 31px; border: 1px solid var(--line); background: rgba(255,254,250,.72); }
.capability:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.capability:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.capability > span { font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; }
.text-cap > span { color: var(--clinical); }
.spatial-cap > span { color: #08765f; }
.joint-cap { color: var(--white); background: var(--ink); }
.joint-cap > span { color: #f2aaa6; }
.capability h3 { margin: 70px 0 9px; font-size: 25px; letter-spacing: -.03em; }
.capability p { color: var(--ink-soft); font-size: 15px; }
.joint-cap p { color: rgba(255,255,255,.6); }
.capability code { display: block; margin-top: 24px; padding: 11px; overflow: hidden; border-radius: 7px; color: var(--ink); background: var(--clinical-soft); font-family: "DM Mono", monospace; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.spatial-cap code { background: #d9eee8; }
.joint-cap code { color: var(--white); background: rgba(230,82,75,.22); }
.flow-plus, .flow-equals { display: grid; place-items: center; border-block: 1px solid var(--line); color: #b73530; background: var(--paper-2); font-family: "DM Mono", monospace; font-size: 20px; font-weight: 500; }
.core-insight { display: grid; grid-template-columns: 230px 1fr; gap: 42px; align-items: center; margin-top: 24px; padding: 37px 40px; border: 2px solid var(--red); border-radius: var(--radius); background: #f7d8d5; box-shadow: 0 18px 50px rgba(183,53,48,.13); }
.insight-label { padding: 11px 14px; border-radius: 9px; color: var(--white); background: #b73530; font-family: "DM Mono", monospace; font-size: 12px; text-align: center; text-transform: uppercase; letter-spacing: .09em; }
.core-insight p { margin: 0; font-size: 22px; line-height: 1.48; }

.benchmark-band { color: var(--white); background: var(--ink-2); }
.benchmark-band .section-kicker, .results-band .section-kicker, .citation-band .section-kicker { color: #f0726c; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; margin-bottom: 58px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 8px; color: var(--ink-soft); font-size: 17px; line-height: 1.72; }
.benchmark-band .section-heading > p, .results-band .section-heading > p { color: rgba(255,255,255,.58); }
.benchmark-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; gap: 25px; }
.figure-card { padding: 20px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.05); }
.figure-card img { width: 100%; height: 100%; max-height: 620px; object-fit: contain; border-radius: 12px; background: #fff; }
.benchmark-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 25px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.045); }
.fact > span { color: #f0726c; font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.fact h3 { margin-bottom: 7px; font-size: 18px; }
.fact p { margin: 0; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.55; }
.taxonomy-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.taxonomy-strip span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }
.tax-name { color: #ff928d; }.tax-date { color: #ffc860; }.tax-dob { color: #ef915d; }.tax-age { color: #ffd346; }.tax-address { color: #72c5e9; }.tax-contact { color: #ff70aa; }.tax-id { color: #c895e8; }

.difficulty-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.difficulty { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 20px 55px rgba(9,13,16,.08); }
.document-preview { height: 420px; border-radius: 0; background: #d9d9d7; }
.document-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.document-preview:hover img { transform: scale(1.025); }
.difficulty-copy { display: grid; grid-template-columns: 45px 1fr; gap: 5px 16px; padding: 24px; }
.difficulty-copy > span { grid-row: span 2; color: #b73530; font-family: "DM Mono", monospace; font-size: 12px; }
.difficulty-copy h3 { margin-bottom: 0; font-size: 24px; }
.difficulty-copy p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.difficulty.hard { color: var(--white); background: var(--ink); }
.difficulty.hard .difficulty-copy p { color: rgba(255,255,255,.55); }
.synthetic-note { max-width: 820px; margin: 27px auto 0; color: var(--ink-soft); text-align: center; font-size: 14px; }

.results-band { color: var(--white); background: #10171c; }
.results-explorer { padding: 34px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.045); }
.metric-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.metric-tabs button { padding: 9px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: rgba(255,255,255,.6); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; transition: all .2s ease; }
.metric-tabs button:hover, .metric-tabs button:focus, .metric-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--white); background: var(--white); }
.metric-description { margin: 18px 0 28px; color: rgba(255,255,255,.56); font-size: 14px; }
.model-chart { display: grid; gap: 12px; }
.model-row { display: grid; grid-template-columns: 195px 1fr 50px; align-items: center; gap: 15px; }
.model-name { color: rgba(255,255,255,.8); font-family: "DM Mono", monospace; font-size: 11px; }
.model-track { position: relative; height: 28px; overflow: hidden; border-radius: 6px; background: rgba(255,255,255,.07); }
.model-bar { height: 100%; width: var(--value); min-width: 2px; border-radius: inherit; background: var(--clinical); transform-origin: left; animation: grow-bar .55s ease both; }
.model-row:nth-child(1) .model-bar { background: var(--red); }
.model-value { font-family: "DM Mono", monospace; font-size: 12px; text-align: right; }
@keyframes grow-bar { from { transform: scaleX(0); } }
.chart-foot { display: flex; justify-content: space-between; gap: 20px; margin: 24px 0 0 210px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.finding-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 22px; }
.finding { min-height: 255px; padding: 28px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.035); }
.finding strong { display: block; color: #f0726c; font-size: 48px; line-height: 1; letter-spacing: -.055em; }
.finding h3 { margin: 58px 0 8px; font-size: 20px; }
.finding p { margin: 0; color: rgba(255,255,255,.56); font-size: 14px; line-height: 1.55; }
.quote-result { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 22px; align-items: center; margin-top: 22px; padding: 34px 40px; overflow: hidden; border-radius: var(--radius); color: var(--ink); background: #f1b8b4; }
.quote-result > span { font-family: Georgia, serif; font-size: 92px; line-height: .7; }
.quote-result p { margin: 0; font-family: "Source Serif 4", serif; font-size: 23px; font-style: italic; font-weight: 600; line-height: 1.45; }
.quote-result code { padding: 2px 5px; border-radius: 4px; color: var(--white); background: var(--ink); font-family: "DM Mono", monospace; font-size: .72em; font-style: normal; }

.safety-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 70px; }
.safety-copy h2 { font-size: clamp(36px,4vw,54px); }
.safety-copy > p { color: var(--ink-soft); font-size: 17px; line-height: 1.75; }
.safety-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.safety-pills span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.48); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }
.clinical-collaboration { margin-top: 26px; padding: 19px 20px; border-left: 4px solid var(--red); border-radius: 0 14px 14px 0; background: rgba(255,255,255,.58); }
.clinical-collaboration > span { display: block; margin-bottom: 7px; color: #b73530; font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; }
.clinical-collaboration p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.clinical-collaboration strong { color: var(--ink); }
.annotation-figure { padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.annotation-figure img { width: 100%; border-radius: 12px; }

.citation-band { color: var(--white); background: var(--ink); }
.citation-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; }
.citation-grid h2 { font-size: clamp(35px,4vw,52px); }
.citation-grid p { color: rgba(255,255,255,.56); font-size: 16px; line-height: 1.7; }
.bibtex { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.045); }
.bibtex pre { margin: 0; padding: 34px; overflow-x: auto; color: #dce6f6; font-family: "DM Mono", monospace; font-size: 12px; line-height: 1.75; }
.copy-button { position: absolute; top: 14px; right: 14px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: var(--white); background: rgba(255,255,255,.08); cursor: pointer; font-size: 10px; }
.copy-button:hover, .copy-button:focus-visible { color: var(--ink); background: var(--white); outline: 0; }

.zoom-trigger { position: relative; display: block; width: 100%; overflow: hidden; border: 0; cursor: zoom-in; }
.zoom-trigger > span { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 8px 11px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; color: var(--white); background: rgba(9,13,16,.84); box-shadow: 0 8px 24px rgba(0,0,0,.2); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; opacity: 0; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease; }
.zoom-trigger:hover > span, .zoom-trigger:focus-visible > span { opacity: 1; transform: none; }
.zoom-trigger:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.lightbox { width: min(96vw,1440px); max-width: none; max-height: 94vh; padding: 0; overflow: visible; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; color: var(--white); background: #070a0c; box-shadow: 0 30px 100px rgba(0,0,0,.56); }
.lightbox::backdrop { background: rgba(2,5,7,.86); backdrop-filter: blur(9px); }
.lightbox-content { max-height: 94vh; padding: 28px; overflow: auto; }
.lightbox-content img { width: 100%; max-height: calc(94vh - 92px); object-fit: contain; border-radius: 12px; background: var(--white); }
.lightbox-content p { margin: 14px 42px 0 0; color: rgba(255,255,255,.68); font-size: 13px; }
.lightbox-close { position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: var(--white); background: rgba(9,13,16,.9); cursor: pointer; font-size: 25px; line-height: 1; }
.lightbox-close:hover, .lightbox-close:focus-visible { color: var(--white); background: var(--red); outline: 0; }

.soundtrack { position: fixed; right: 20px; bottom: 20px; z-index: 24; width: min(360px,calc(100vw - 28px)); overflow: hidden; border: 1px solid rgba(255,255,255,.17); border-radius: 18px; color: var(--white); background: rgba(9,13,16,.94); box-shadow: 0 22px 70px rgba(0,0,0,.34); backdrop-filter: blur(18px); }
.soundtrack-trigger { display: grid; grid-template-columns: 46px 1fr 34px; align-items: center; gap: 12px; width: 100%; padding: 11px 13px; border: 0; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.soundtrack-trigger:hover, .soundtrack-trigger:focus-visible { background: rgba(255,255,255,.055); outline: 0; }
.soundtrack-trigger:focus-visible { box-shadow: inset 0 0 0 2px var(--red); }
.soundtrack-vinyl { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: repeating-radial-gradient(circle, #1f2529 0 2px, #090d10 3px 5px); box-shadow: inset 0 0 0 8px #11171b; }
.soundtrack-vinyl::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--red); }
.soundtrack-vinyl span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--paper); }
.soundtrack[data-playing="true"] .soundtrack-vinyl { animation: spin-vinyl 3.2s linear infinite; }
@keyframes spin-vinyl { to { transform: rotate(360deg); } }
.soundtrack-copy { display: grid; min-width: 0; }
.soundtrack-copy small { color: #f1aaa6; font-family: "DM Mono", monospace; font-size: 8px; font-style: normal; text-transform: uppercase; letter-spacing: .09em; }
.soundtrack-copy strong { margin-top: 2px; overflow: hidden; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.soundtrack-copy em { color: rgba(255,255,255,.48); font-size: 10px; font-style: normal; }
.soundtrack-action { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--white); background: var(--red); font-size: 11px; }
.soundtrack-player { max-height: 0; padding: 0 12px; overflow: hidden; opacity: 0; transition: max-height .35s ease, padding .35s ease, opacity .25s ease; }
.soundtrack.expanded .soundtrack-player { max-height: 118px; padding: 0 12px 10px; opacity: 1; }
#spotify-embed { min-height: 80px; overflow: hidden; border-radius: 12px; }
#spotify-embed iframe { display: block; border-radius: 12px; }
.soundtrack-player > a { display: block; margin-top: 4px; color: rgba(255,255,255,.48); font-family: "DM Mono", monospace; font-size: 8px; text-align: right; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
.soundtrack-player > a:hover, .soundtrack-player > a:focus-visible { color: var(--white); }

footer { padding: 34px 0; color: rgba(255,255,255,.55); background: #050708; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-inner div { display: flex; align-items: baseline; gap: 16px; }
.footer-inner strong { color: var(--white); }
.footer-inner span, .footer-inner a { font-size: 12px; }
.footer-inner a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero-grid, .section-heading, .benchmark-grid, .safety-grid, .citation-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 55px; }
  .redaction-stage { max-width: 670px; }
  .section-heading { gap: 18px; }
  .benchmark-grid, .safety-grid { gap: 35px; }
  .figure-card img { max-height: 720px; }
}

@media (max-width: 780px) {
  :root { --shell: min(100% - 28px,1180px); --radius: 19px; }
  .nav { min-height: 64px; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 64px 0 auto; display: none; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(9,13,16,.98); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 8px 0; }
  .hero { padding-top: 112px; }
  .hero-grid { padding-bottom: 60px; }
  .hero h1 { font-size: 57px; }
  .redaction-stage { padding: 13px; transform: none; }
  .clinical-page { padding: 14px; }
  .record-head { margin: -14px -14px 14px; padding: 14px; }
  .record-meta strong { font-size: 8px; }
  .record-table > div { font-size: 7px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { padding: 22px 12px; border-bottom: 1px solid rgba(255,255,255,.13); }
  .stats div:first-child { padding-left: 12px; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats strong { font-size: 32px; }
  .stats span { font-size: 11px; }
  .section { padding: 78px 0; }
  .capability-flow { grid-template-columns: 1fr; }
  .capability { min-height: 0; border-radius: 0 !important; }
  .capability:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
  .capability:last-child { border-radius: 0 0 var(--radius) var(--radius) !important; }
  .capability h3 { margin-top: 38px; }
  .flow-plus, .flow-equals { min-height: 42px; border-inline: 1px solid var(--line); }
  .core-insight { grid-template-columns: 1fr; gap: 15px; padding: 27px; }
  .benchmark-facts, .difficulty-grid, .finding-grid { grid-template-columns: 1fr; }
  .difficulty-grid { gap: 15px; }
  .document-preview { height: 380px; }
  .results-explorer { padding: 24px 16px; }
  .model-row { grid-template-columns: 115px 1fr 38px; gap: 9px; }
  .model-name { font-size: 9px; }
  .chart-foot { margin-left: 124px; }
  .quote-result { grid-template-columns: 1fr; gap: 0; padding: 28px; }
  .quote-result > span { font-size: 68px; }
  .quote-result p { font-size: 19px; }
  .lightbox { width: calc(100vw - 20px); max-height: 96vh; border-radius: 16px; }
  .lightbox-content { max-height: 96vh; padding: 12px; }
  .lightbox-content img { max-height: calc(96vh - 72px); }
  .soundtrack { right: 14px; bottom: 14px; }
  .footer-inner, .footer-inner div { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 49px; }
  .subtitle { font-size: 18px; }
  .stage-toolbar { align-items: flex-start; flex-direction: column; }
  .record-meta { grid-template-columns: 1fr; }
  .record-meta > div { border-right: 0; border-bottom: 1px solid #d0d4d8; }
  .record-meta > div:last-child { border-bottom: 0; }
  .record-head strong { font-size: 13px; }
  .record-head b { font-size: 8px; }
  .authors { gap: 4px 12px; }
  .author-affiliations { font-size: 10px; }
  .collaboration-lockup { padding: 12px; }
  .collaboration-partners { grid-template-columns: 1fr; gap: 3px; }
  .collaboration-times { display: none; }
  .collaboration-partner strong { white-space: normal; }
  .bibtex pre { padding: 34px 20px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
