:root {
  --ink: #263642;
  --muted: #596d7a;
  --blue: #21668b;
  --teal: #127c77;
  --line: #dfe8ed;
  --sky-soft: #edf6fb;
  --teal-soft: #eaf7f4;
  --peach-soft: #fff1e7;
  --pink-soft: #f6edf4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse at 25% 0%, #e8f2fa, transparent 65%) 0 0 / 100% 950px no-repeat, radial-gradient(ellipse at 80% 0%, #e9f6f3, transparent 60%) 0 0 / 100% 850px no-repeat, #fff; font: 16px/1.75 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 6px; }
img { display: block; width: 100%; height: auto; }
img[src="assets/pipeline.webp"] { aspect-ratio: 2400 / 1143; }
img[src="assets/dataset.webp"] { aspect-ratio: 2400 / 969; }
img[src="assets/geometry.webp"] { aspect-ratio: 2400 / 1065; }
img[src="assets/adaptation.webp"] { aspect-ratio: 2400 / 680; }
img[src="assets/appearance.webp"] { aspect-ratio: 2400 / 2078; }
figure { margin: 0; }
figcaption { margin-top: 16px; color: var(--muted); font-size: 13px; text-align: center; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 20px; padding: 12px; background: white; z-index: 2; }
.skip:focus { top: 10px; }
.hero { position: relative; padding-top: 54px; text-align: center; }
.eyebrow { margin: 0 0 20px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.hero-kicker { display: inline-block; margin-bottom: 20px; padding: 6px 15px; border: 1px solid #d4e8e8; border-radius: 30px; background: #ffffffb3; color: var(--teal); font-size: 10px; }
h1 { margin: 0 0 17px; color: var(--blue); font-size: clamp(60px, 7vw, 94px); line-height: 1.06; font-weight: 800; letter-spacing: -5px; }
h1 span { color: var(--teal); }
h2 { margin: 0 0 24px; font-size: clamp(29px, 3.3vw, 42px); font-weight: 650; line-height: 1.2; letter-spacing: -1.4px; }
.hero h2 { font-size: clamp(25px, 2.9vw, 37px); font-weight: 550; letter-spacing: -1px; }
.lead { margin: 20px 0 25px; font-size: 16px; color: var(--muted); }
.author-block { margin: 26px auto 20px; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 0; margin: 0; list-style: none; color: var(--blue); font-size: 16px; font-weight: 500; }
.authors li { white-space: nowrap; }
.authors sup { padding-left: 3px; font-size: 10px; }
.affiliation { margin: 10px 0 0; font-size: 15px; }
.author-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.resources { display: flex; justify-content: center; gap: 12px; }
.resource { min-width: 150px; padding: 10px 25px; border: 1px solid; border-radius: 12px; }
.resource-paper { background: var(--pink-soft); border-color: #e8d7e3; color: #80466f; }
.resource-code { background: var(--sky-soft); border-color: #cfe3f0; color: var(--blue); }
.resource-data { background: var(--teal-soft); border-color: #cce6df; color: #176c66; }
.resource strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.5; }
.resource small { display: block; font-size: 10px; letter-spacing: .2px; }
.demo-figure { margin-top: 36px; }
.demo-figure video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; background: #858d91; border: 6px solid white; border-radius: 20px; box-shadow: 0 16px 65px #28536d18, 0 0 0 1px #dae5ec; }
.demo-figure figcaption { display: flex; justify-content: space-between; gap: 16px; padding-inline: 4px; text-align: left; }
.demo-figure figcaption a { color: var(--blue); white-space: nowrap; }
.demo-figure figcaption a:hover { text-decoration: underline; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0 65px; padding-block: 90px; border-bottom: 1px solid var(--line); }
.intro .eyebrow { grid-column: 1 / -1; }
.intro h2 { margin: 0; color: var(--teal); }
.intro > p:last-child { margin: 0; color: var(--muted); font-size: 17px; }
.section { padding-block: 82px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 42px; }
.section-head > p { max-width: 340px; margin: 0 0 24px; color: var(--muted); }
.overview-figure { margin-bottom: 48px; padding: 18px; background: #f5f8fa; border: 1px solid var(--line); border-radius: 18px; }
.overview-figure img { border-radius: 8px; }
.result { padding: 38px 28px 28px; margin-top: 26px; border: 1px solid #dce8f0; border-radius: 20px; background: var(--sky-soft); }
.result:nth-of-type(2) { background: var(--teal-soft); border-color: #d7ebe6; }
.result:nth-of-type(3) { background: var(--peach-soft); border-color: #f0e1d7; }
.result-copy { display: grid; grid-template-columns: 38px 1fr 1.2fr; align-items: start; gap: 22px; margin-bottom: 28px; }
.number { display: grid; place-items: center; width: 34px; height: 34px; color: var(--blue); background: white; border: 1px solid #d4e3ed; border-radius: 10px; font-size: 14px; font-weight: 700; }
h3 { margin: 0 0 12px; font-size: 21px; font-weight: 650; line-height: 1.4; letter-spacing: -.5px; }
.result-copy p { margin: 0; color: var(--muted); font-size: 15px; }
.result figure, .panel { padding: 20px; background: white; border: 1px solid #e5ebee; border-radius: 12px; }
.result.appearance { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.appearance .result-copy { display: block; padding-top: 24px; }
.appearance .number { margin-bottom: 24px; color: #975321; border-color: #edd5c5; }
.appearance p { max-width: 370px; }
.method { background: #f5f9fc; border-block: 1px solid #e5eef3; }
.section-description { max-width: 690px; margin-bottom: 32px; color: var(--muted); font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.steps article { padding: 24px; border-radius: 12px; border-top: 4px solid #c98fb4; background: var(--pink-soft); }
.steps article:nth-child(2) { border-color: #7bc6bf; background: var(--teal-soft); }
.steps article:nth-child(3) { border-color: #e39b89; background: #fbefeb; }
.steps span { font-size: 12px; font-weight: 700; color: var(--muted); }
.steps h3 { margin-top: 14px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
#dataset .eyebrow { color: #8d6c25; }
.stats { display: flex; gap: 70px; padding: 25px 32px; margin: 28px 0 32px; background: #fcf7e8; border: 1px solid #f0e6c9; border-radius: 14px; }
.stats strong { display: block; color: #806525; font-size: 50px; font-weight: 650; line-height: 1.25; letter-spacing: -2px; }
.stats span { font-size: 13px; color: #736440; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.wordmark { color: var(--blue); font-weight: 750; font-size: 21px; letter-spacing: -.8px; }
.wordmark span { color: var(--teal); }
footer p, footer > a:last-child { font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .hero { padding-top: 32px; }
  .hero-kicker { font-size: 9px; letter-spacing: 1.4px; }
  h1 { font-size: clamp(40px, 12vw, 72px); letter-spacing: -2.5px; }
  .hero h2 { font-size: clamp(22px, 5.7vw, 30px); }
  .lead { font-size: 14px; }
  .authors { gap: 8px 18px; font-size: 14px; }
  .author-block { margin-top: 22px; }
  .resources { gap: 7px; }
  .resource { min-width: 0; flex: 1; padding: 10px 6px; border-radius: 10px; }
  .resource strong { font-size: 12px; }
  .resource small { font-size: 9px; }
  .demo-figure { margin-top: 26px; }
  .demo-figure video { border-width: 3px; border-radius: 11px; }
  .demo-figure figcaption { flex-direction: column; gap: 4px; margin-top: 12px; }
  .intro { grid-template-columns: 1fr; gap: 20px; padding-block: 50px; }
  .intro > p:last-child { font-size: 16px; }
  .section { padding-block: 50px; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head > p { max-width: none; }
  .overview-figure { padding: 8px; margin-bottom: 30px; border-radius: 12px; }
  .result { padding: 22px 12px 12px; border-radius: 14px; }
  .result-copy { grid-template-columns: 30px 1fr; gap: 12px; }
  .number { width: 28px; height: 28px; font-size: 12px; }
  .result-copy p { grid-column: 2; font-size: 14px; }
  h3 { font-size: 19px; }
  .result figure, .panel { padding: 8px; }
  .result.appearance { grid-template-columns: 1fr; gap: 20px; }
  .appearance .result-copy { padding: 0 8px; margin: 0; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .stats { gap: 24px; padding: 20px; }
  .stats > div { flex: 1; }
  .stats strong { font-size: 40px; }
  .stats span { font-size: 12px; }
  footer { flex-wrap: wrap; gap: 10px; }
  footer p { width: 100%; order: 3; margin: 0; }
  figcaption { font-size: 11px; }
}
button { font: inherit; cursor: pointer; }
button:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .5; }
[hidden] { display: none !important; }
#interactive { padding-bottom: 35px; }
.model-choices { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.model-choice { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 5px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-align: center; transition: border-color .2s, box-shadow .2s, background .2s; }
.model-choice:hover { border-color: #7ab9ba; background: #f3faf9; }
.model-choice[aria-pressed="true"] { border-color: var(--teal); background: #e7f4f1; box-shadow: 0 3px 16px #127c7717, inset 0 0 0 1px var(--teal); }
.model-choice img { width: 100%; height: 102px; object-fit: contain; border-radius: 9px; }
.model-choice strong { display: block; font-size: 11px; font-weight: 600; line-height: 1.3; min-height: 28px; display: grid; place-items: center; }
.model-choice small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.studio { display: grid; grid-template-columns: 230px 1fr; border: 1px solid #d3e3e9; border-radius: 24px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #fff 0, #edf5f8 85%); box-shadow: 0 16px 48px #21475a09; }
.reference-panel { display: flex; flex-direction: column; justify-content: center; padding: 26px 18px; background: white; border-right: 1px solid var(--line); }
.viewer-label { margin: 0; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue); font-size: 10px; font-weight: 700; }
.reference-panel .viewer-label { text-align: center; }
.reference-panel > img { height: 310px; object-fit: contain; margin-top: 20px; }
.reference-panel figcaption { font-size: 11px; }
.viewer-panel { min-width: 0; }
.viewer-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px 26px; }
.viewer-heading > span { color: var(--teal); font-size: 12px; font-weight: 600; padding: 4px 13px; border-radius: 24px; background: #e3f1ee; }
.viewer-stage { position: relative; height: 540px; }
#model-poster { height: 100%; object-fit: contain; }
model-viewer { display: block; width: 100%; height: 100%; --progress-bar-color: var(--teal); }
.load-model { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); border: 1px solid #ffffff80; border-radius: 40px; padding: 14px 30px; color: white; background: linear-gradient(115deg, #226b8c, #127c77); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 7px 24px #23677330; }
.load-model span { margin-left: 14px; }
.viewer-toolbar { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 18px; background: #ffffffb3; border-top: 1px solid #e1eaee; }
.viewer-toolbar button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #dce6eb; background: white; color: #526775; border-radius: 11px; padding: 10px 13px; font-size: 12px; font-weight: 550; transition: background .2s, border-color .2s; }
.viewer-toolbar button:hover:not(:disabled) { border-color: #8dbbbd; background: #f5fbfa; }
.viewer-toolbar button[aria-pressed="true"] { background: #e8f5f2; color: #176c66; border-color: #acd4cb; }
.control-icon { font-size: 19px; line-height: 1; }
.control-svg { width: 18px; height: 18px; flex: 0 0 18px; }
.switch-mark { position: relative; width: 22px; height: 12px; border-radius: 12px; background: #d6e0e5; }
.switch-mark::after { content: ''; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; background: white; border-radius: 50%; transition: transform .2s; }
[aria-pressed="true"] .switch-mark { background: var(--teal); }
[aria-pressed="true"] .switch-mark::after { transform: translateX(10px); }
#toggle-rotation { min-width: 168px; }
.appendix-gallery { margin-top: 55px; }
.gallery-heading p:last-child { color: var(--muted); font-size: 15px; }
.gallery-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.gallery-tabs button { padding: 9px 16px; border: 1px solid var(--line); background: white; border-radius: 30px; color: var(--muted); font-size: 12px; }
.gallery-tabs button[aria-pressed="true"] { background: var(--blue); color: white; border-color: var(--blue); }
img[src="assets/adaptation-full.webp"] { aspect-ratio: 2600 / 1094; }
img[src="assets/penetration-full.webp"] { aspect-ratio: 2600 / 2904; }
.viewer-status { margin: 14px 0 0; color: var(--muted); font-size: 12px; text-align: center; min-height: 2em; }
.result.adaptation { background: var(--teal-soft); border-color: #d7ebe6; }
.result.appearance { background: var(--peach-soft); border-color: #f0e1d7; }
.result.penetration { background: #fbefeb; border-color: #eddbd6; }
.penetration figure { max-width: 850px; margin: auto; }
.comparison-details { margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.comparison-details summary { cursor: pointer; color: var(--blue); font-size: 16px; font-weight: 600; }
.comparison-details summary span { float: right; }
.comparison-details p { color: var(--muted); font-size: 14px; }
#figure-dialog { width: min(1600px, 96vw); max-height: 94vh; padding: 55px 20px 20px; border: 1px solid var(--line); border-radius: 14px; }
#figure-dialog::backdrop { background: #142a3ac9; }
#close-figure { position: absolute; right: 20px; top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 14px; background: white; color: var(--ink); font-size: 13px; }
figure a img { cursor: zoom-in; }
@media (max-width: 700px) {
  .model-choices { grid-template-columns: repeat(10, 90px); gap: 8px; overflow-x: auto; padding: 3px 2px 12px; scroll-snap-type: x proximity; }
  .model-choice { flex-direction: column; gap: 5px; padding: 10px 5px; text-align: center; border-radius: 10px; }
  .model-choice img { width: 76px; height: 94px; }
  .model-choice strong { font-size: 11px; }
  .model-choice small { display: none; }
  .studio { grid-template-columns: 1fr; border-radius: 12px; }
  .reference-panel { display: grid; grid-template-columns: 1fr 70px; align-items: center; gap: 0 12px; padding: 12px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .reference-panel .viewer-label { text-align: left; }
  .reference-panel > img { grid-column: 2; grid-row: 1 / 3; height: 90px; margin: 0; }
  .reference-panel figcaption { grid-column: 1; text-align: left; margin: 0; }
  .viewer-heading { padding: 14px; }
  .viewer-stage { height: 380px; }
  .viewer-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .viewer-toolbar button { font-size: 11px; padding: 9px 8px; }
  #toggle-rotation { min-width: 0; }
  .comparison-details { padding: 16px; }
  .comparison-details summary { font-size: 14px; }
  #figure-dialog { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
