/* One route, one readable page. Content never scales to fit the viewport. */
html,body{height:100%;overflow:hidden}
:root{--header-h:76px;--content-width:1320px}
#site-header{height:var(--header-h);background:rgba(7,10,16,.94);border-bottom:1px solid rgba(205,218,235,.12);backdrop-filter:blur(16px)}
#site-header>nav{width:100%;height:100%;margin:auto;padding:0 32px;gap:28px}
.nav-links{gap:clamp(18px,2.8vw,36px);flex-wrap:nowrap;margin-left:auto}
.nav-links a{font-size:14px;white-space:nowrap;padding:12px 0}
.nav-actions{gap:10px;margin-left:18px}
main{position:fixed;inset:var(--header-h) 0 0;height:auto;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--line-strong) var(--bg);overscroll-behavior-y:contain}
main>section.site-page[hidden]{display:none!important}
main>section.site-page{height:auto;min-height:100%;overflow:visible;scroll-margin-top:0;box-sizing:border-box}
main>section.wrap{display:block;width:min(100%,var(--content-width));max-width:var(--content-width);margin:0 auto;padding:44px 48px 60px}
main>section.wrap>.eyebrow{font-size:13px;letter-spacing:.16em;text-align:left;margin:0 0 10px}
main>section.wrap>h2{text-align:left;font-size:clamp(26px,3.2vw,38px);line-height:1.3;margin:0 0 16px}
main>section.wrap>.intro{text-align:left;max-width:900px;margin:0 0 22px;font-size:16px;line-height:1.8}
.page-subnav{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 28px;padding:0 0 16px;border-bottom:1px solid var(--line-strong)}
.page-subnav a{padding:7px 13px;border:1px solid transparent;border-radius:7px;color:var(--muted);font-size:14px;line-height:1.5;transition:background .18s,border-color .18s}
.page-subnav a:hover{color:var(--text);background:var(--surface)}
.page-subnav a[aria-current="page"]{background:var(--accent-soft);border-color:var(--line-strong);color:var(--accent)}
.page-actions{display:flex;justify-content:flex-end;margin:-8px 0 20px}.page-actions p{margin:0}.page-actions .action{padding:9px 16px;font-size:14px}
.hero.site-page{display:flex;align-items:center;justify-content:center;position:relative;min-height:100%;height:auto;padding:56px 40px 66px;margin:0;width:100%;max-width:none}
.hero .hero-copy{width:min(100%,1100px);max-width:1100px;margin:0 auto;position:relative;z-index:1}
.hero h1{font-size:clamp(70px,12vw,154px);line-height:1.1;padding:0;margin:0 0 24px}
.hero .hero-copy>p.deck{height:auto;position:static;margin:0 0 38px;line-height:1.6;transform:none;font-size:clamp(12px,1.42vw,18px)}
.hero .hero-bg{inset:0;position:absolute;height:100%;overflow:hidden}
.hero-credit{position:absolute;bottom:16px;right:32px;font-size:12px;max-width:80%;margin:0}
.hero .opra-actions{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.hero .opra-actions .action,.hero .opra-actions .action.ghost{min-height:124px}
.page-num,.dot-rail,.scroll-progress{display:none!important}
.grid,.mm-grid,.nei-grid,.earth-grid{gap:24px;margin-top:0}
.card{min-width:0;padding:24px;overflow:hidden;background:linear-gradient(145deg,var(--surface),rgba(10,14,22,.82))}
.card h3{font-size:20px;line-height:1.45;margin-bottom:16px}.card p{font-size:15px;line-height:1.75}
.card img{object-fit:contain}.card figcaption,.card .meta,.chain-figures figcaption{font-size:14px;line-height:1.7}
.chain-layout{grid-template-columns:260px minmax(0,1fr);gap:28px;margin:0;align-items:start}
.chain-rail{position:sticky;top:24px}.chain-tab{padding:15px 16px;min-height:82px}.chain-tab .ctitle{font-size:15px}.chain-tab .cdesc{font-size:13px;line-height:1.65}
.chain-panel{padding:24px;min-width:0}.chain-figures{gap:16px}.chain-figures img{max-height:300px;width:100%;height:230px;object-fit:contain;background:#05080d}.chain-panel h3{font-size:23px}.chain-panel p{font-size:15px}
.sa-actions{margin:0;text-align:left}.lib-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.lib-item img{max-height:none;height:240px;object-fit:contain;background:#060b11}.lib-item figcaption{padding:14px 16px;font-size:15px;line-height:1.6}
.earth-grid img{width:100%;max-height:400px;object-fit:contain}.hotspot-stage{max-width:520px}
main section .sec-inner{zoom:1!important}footer{display:none}
@media(max-width:1150px){.nav-links{gap:18px}.nav-links a{font-size:13px}#site-header>nav{padding:0 24px;gap:18px}.nav-actions{margin-left:0}.chain-layout{grid-template-columns:225px 1fr}.chain-figures img{height:180px}.hero .opra-actions{gap:10px}}
@media(max-width:900px){main>section.wrap{padding:32px 26px 48px}.hero.site-page{padding:40px 26px 54px}.hero .opra-actions{grid-template-columns:repeat(3,minmax(0,1fr));max-width:720px}.hero .hero-copy>p.deck{white-space:normal}.chain-layout{grid-template-columns:1fr}.chain-rail{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.chain-tab{min-height:76px}.chain-figures img{height:220px}.lib-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  #site-header > nav { padding-inline: 18px; flex-wrap: nowrap; }
  #site-header .nav-links {
    position: absolute;
    inset: var(--header-h) 0 auto;
    width: auto;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--bg-2);
    padding: 16px 22px;
    align-items: stretch;
    gap: 6px;
  }
  #site-header .nav-links a { font-size: 15px; padding: 10px; }
}
@media(max-width:700px){.hero.site-page{padding:32px 20px 56px}.hero h1{font-size:clamp(64px,16vw,104px)}.hero .opra-actions{grid-template-columns:repeat(2,minmax(0,1fr));max-width:480px}.hero .hero-copy>p.deck{font-size:13px;margin-bottom:24px}.hero-credit{right:20px;font-size:11px}.mm-grid,.nei-grid,.earth-grid,.grid{grid-template-columns:1fr}.chain-figures{grid-template-columns:1fr}.chain-figures img{height:auto;max-height:380px}.lib-grid{grid-template-columns:1fr}.lib-item img{height:280px}.page-actions{justify-content:flex-start;margin:0 0 20px}.card{padding:20px}main>section.wrap{padding:28px 20px 44px}}

main>section.wrap{position:relative}
.page-actions,#ssa>.ssa-actions{position:static;justify-content:flex-start;margin:0 0 16px;text-align:left}
#ssa>.ssa-actions .action{padding:9px 18px;font-size:14px}
.chain-layout{grid-template-columns:1fr;gap:22px}.chain-rail{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;position:static}
.chain-tab{min-height:92px;padding:12px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left}.chain-tab .cdesc{display:none}.chain-tab .ctitle{font-size:13px;line-height:1.55}.chain-panel{min-height:0}.chain-figures img{height:270px;max-height:none}
.analysis-links{display:flex;gap:12px;flex-wrap:wrap;margin:26px 0}.analysis-links .action{padding:9px 16px;font-size:14px}
.analysis-performance{display:grid;grid-template-columns:1fr 1.3fr;gap:30px;align-items:center;margin-top:30px}.analysis-performance img{width:100%;height:auto;max-height:430px;object-fit:contain;border-radius:8px;background:#fff}.analysis-performance a{color:var(--accent);font-size:14px}.analysis-performance .eyebrow{font-size:12px}.analysis-performance h3{font-size:23px}
@media(max-width:1000px){.chain-rail{grid-template-columns:repeat(3,minmax(0,1fr))}.chain-tab{min-height:76px}.chain-figures img{height:220px}}
@media(max-width:700px){main>section.wrap>h2{max-width:100%}.page-actions,#ssa>.ssa-actions{position:static;margin:0 0 22px;text-align:left;justify-content:flex-start}.chain-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-performance{grid-template-columns:1fr}.chain-figures img{height:auto;max-height:380px}}

/* Shared SOPRA chrome and Sensing-style chapter tabs. */
:root{--portal-width:none;--portal-title-size:clamp(24px,2.7vw,34px);--portal-title-leading:1.3;--portal-intro-size:clamp(14px,1.25vw,15px);--portal-intro-leading:1.7;--portal-reading-width:680px;--page-gutter:clamp(16px,2.2vw,32px);--page-divider:color-mix(in srgb,var(--text) 15%,transparent)}
#site-header .nav-links a{font-weight:500;color:var(--muted)}
#site-header .nav-links a:is(:hover,:focus-visible,.active,[aria-current="page"]){color:var(--text)}
main>section.wrap{width:100%;max-width:var(--portal-width);padding:25px var(--page-gutter) 44px}
main>section.wrap>.eyebrow{font:500 10px/1.6 var(--font-body);letter-spacing:.13em;color:var(--muted-2);margin:0 0 6px}
main>section.wrap>h2{font:600 var(--portal-title-size)/var(--portal-title-leading) var(--font-display);letter-spacing:-.02em;margin:0 0 7px;background:none;color:var(--text);-webkit-text-fill-color:var(--text);animation:none}
main>section.wrap>.intro{font:400 var(--portal-intro-size)/var(--portal-intro-leading) var(--font-body);max-width:var(--portal-reading-width);margin:0 0 15px}
.page-subnav{gap:24px;flex-wrap:nowrap;overflow-x:auto;margin:0 0 15px;padding:0;border-bottom:1px solid var(--page-divider)}
.page-subnav a{flex:0 0 auto;min-height:34px;padding:0 0 10px;border:0;border-bottom:2px solid transparent;border-radius:0;font:500 13px/1.4 var(--font-body);white-space:nowrap}
.page-subnav a:is(:hover,:focus-visible,[aria-current="page"]){color:var(--text);background:none}
.page-subnav a[aria-current="page"]{border-color:var(--accent)}

@media(max-width:700px){
 main>section.wrap{padding-top:20px}
 .page-subnav{gap:21px;margin-bottom:20px}
}

.regional-coverage { margin-top: 40px; scroll-margin-top: 22px; }
.regional-coverage > .eyebrow { text-align: left; }
.regional-coverage > .intro { margin: 0 0 20px; text-align: left; }
.photo-comparison { margin-bottom: 24px; }
.comparison-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.comparison-pair figure { margin: 0; min-width: 0; }
.comparison-image { display: block; width: 100%; background: #080c12; }
.comparison-image img { display: block; width: 100%; height: clamp(180px,31vw,430px); object-fit: contain; }
.comparison-pair figcaption { padding: 8px 0; }
@media (max-width: 700px) { .comparison-pair { grid-template-columns: 1fr; } }

.case-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:0 0 26px; }
.case-originals .case-card h4 { text-align:center; margin:0 0 7px; font-size:clamp(12px,1.2vw,15px); }
.case-card .image-button { display:block; width:100%; background:#080c12; }
.case-card img { display:block; width:100%; height:clamp(175px,25vw,330px); object-fit:contain; }
.case-card p { margin:12px 0 0; }
@media(max-width:700px) { .case-grid { grid-template-columns:1fr; } }

.case-originals .case-card { min-width:0; padding:clamp(6px, .8vw, 12px); }
.case-original-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(4px,.65vw,10px); }
.case-original-pair .image-button { overflow: hidden; }
.case-original-pair img { aspect-ratio: 1600/897; height: auto; width: 100%; object-fit: cover; }

.dragon-grapple-pair .image-button:first-child img {
  transform: translateY(-3.9%) scale(1.04);
  transform-origin: center top;
}

#viewer.is-comparison {
  width: min(calc(100vw - 24px), 1640px);
  max-width: none;
  max-height: calc(100dvh - 24px);
}
#viewer [hidden] { display: none; }
.viewer-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
}
.viewer-pair img {
  width: 100%;
  height: auto;
  max-height: 72dvh;
  object-fit: contain;
}
@media (max-width: 600px) {
  .viewer-pair { grid-template-columns: minmax(0, 1fr); }
  .viewer-pair img { height: auto; max-height: 38dvh; }
}

main > section.wrap > .chapter-path {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  margin-bottom: 12px;
}
.chapter-path > [aria-hidden] { opacity: .45; }
.chapter-path a:is(:hover, :focus-visible) { color: var(--text); }
@media (max-width: 700px) {
  main > section.wrap > .chapter-path { font-size: 10px; margin-bottom: 6px; }
}

.hero .brand-preview-heading { line-height: 0; margin: 0 0 20px; }
.brand-preview-heading img { display: block; width: min(100%, 470px); max-height: 31vh; object-fit: contain; margin: 0 auto; }
@media(max-width:700px) { .brand-preview-heading img { width: min(85%, 340px); max-height: 27vh; } }

#site-header .brand { display:flex; align-items:center; gap:7px; flex:none; }
#site-header .brand-symbol { display:block; width:54px; height:36px; object-fit:contain; }
#site-header .brand-word { display:block; width:120px; height:auto; }
.footer-brand .brand img { display:block; width:124px; height:auto; }
.hero .brand-preview-heading { display:flex; align-items:center; justify-content:center; gap:clamp(12px,2vw,30px); }
.hero .brand-preview-heading .hero-symbol { width:clamp(137px,18.7vw,240px); max-height:198px; margin:0; }
.hero .brand-preview-heading .hero-word { width:clamp(330px,47.3vw,616px); max-height:127px; margin:0; }
@media(max-width:700px) { #site-header .brand-symbol { width:35px; } #site-header .brand-word { width:84px; } .hero .brand-preview-heading .hero-symbol { width:23.1%; } .hero .brand-preview-heading .hero-word { width:66%; } }

.case-originals .case-card > .image-button img { aspect-ratio: 3200/897; height:auto; object-fit:contain; }
#viewer.is-case-viewer #caption { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); margin:0; }

.case-originals.case-scroll {
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  padding:2px 2px 12px;
  scrollbar-color:var(--muted) var(--bg-2);
}
.case-scroll .case-card { flex:0 0 calc((100% - 20px)/2); scroll-snap-align:start; }
.lunar-scroll .case-original-pair img { object-fit:contain; }
.case-originals .case-card.lunar-feature > .image-button img { aspect-ratio:3200/897; object-fit:contain; }
@media(max-width:700px) { .case-scroll .case-card { flex-basis:88%; } }

.case-scroll { scrollbar-width: none; margin-bottom: 0; }
.case-scroll::-webkit-scrollbar { display: none; }
.case-rail {
  --rail-accent:#b7c3d1;
  margin:0 0 22px;
  padding:14px 14px 4px;
  border:1px solid color-mix(in srgb,var(--rail-accent) 32%,transparent);
  border-radius:14px;
  background:linear-gradient(115deg,color-mix(in srgb,var(--rail-accent) 12%,#0c1018),#0c1018 72%);
}
.case-rail-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.case-rail-header h3 { margin:0; padding-inline-start:10px; border-inline-start:3px solid var(--rail-accent); }
.case-rail-controls { display:flex; gap:6px; }
.case-rail-controls button {
  width:36px; height:36px; font-size:22px; color:var(--rail-accent);
  border:1px solid color-mix(in srgb,var(--rail-accent) 40%,transparent);
  border-radius:7px; background:#101620;
}
.case-rail-controls button:is(:hover,:focus-visible) { background:var(--rail-accent); color:#0c1018; }
.case-rail .case-scroll { margin-bottom:8px; scrollbar-width:none; }

.case-rail-stage { position:relative; padding-inline:42px; }
.case-rail-controls { position:absolute; inset:0; align-items:center; justify-content:space-between; pointer-events:none; }
.case-rail-controls button { pointer-events:auto; transition:background .2s,color .2s,box-shadow .2s; }
.case-rail-controls button:is(:hover,:focus-visible) { box-shadow:0 0 14px color-mix(in srgb,var(--rail-accent) 48%,transparent); }
@media(max-width:700px) {
  .case-rail-stage { padding-inline:31px; }
  .case-rail-controls button { width:27px; height:27px; }
}

.case-rail {
  padding:18px 16px 4px;
  border:1px solid transparent;
  background:
    radial-gradient(ellipse at 8% 0%,color-mix(in srgb,var(--rail-accent) 6%,#0c1018),#0c1018 72%) padding-box,
    linear-gradient(135deg,color-mix(in srgb,var(--rail-accent) 28%,#182330),#182330 48%,color-mix(in srgb,var(--rail-accent) 28%,#182330)) border-box;
}
.case-rail-header h3 {
  padding:0;
  border:0;
  color:var(--rail-accent);
  background:linear-gradient(105deg,#f4f7ff 8%,var(--rail-accent) 90%);
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.case-rail-header::after {
  content:"";
  flex:1;
  height:1px;
  background:linear-gradient(90deg,color-mix(in srgb,var(--rail-accent) 45%,transparent),transparent);
}
.case-rail-controls button {
  display:grid;
  place-items:center;
  padding:0;
  border-radius:50%;
  background:linear-gradient(150deg,color-mix(in srgb,var(--rail-accent) 16%,#101620),#101620);
}
.case-chevron {
  width:9px;
  height:9px;
  border:solid currentColor;
  border-width:2px 2px 0 0;
  transform:translateX(-2px) rotate(45deg);
}
[data-case-step="-1"] .case-chevron { transform:translateX(2px) rotate(-135deg); }
.case-rail-controls button:is(:hover,:focus-visible) {
  background:color-mix(in srgb,var(--rail-accent) 25%,#101620);
  color:#f4f7ff;
}
.case-rail-controls button:focus-visible { outline:2px solid var(--rail-accent); outline-offset:2px; }
.case-rail-controls button:focus:not(:focus-visible) { outline:none; }

.case-originals .case-sources { text-align:center; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:7px 0 0; color:var(--muted); font:400 12px/1.4 var(--font-body); }
.case-sources b { display:block; color:var(--text); font-weight:600; }
.case-sources a { text-decoration:underline; }

@media(prefers-reduced-motion:reduce){.sa-slide{transition:none}}

.astra-entry {
  display:flex;
  justify-content:center;
  margin:14px 0 22px;
}
.astra-entry .action {
  padding:11px 22px;
  border:1px solid var(--accent);
  background:var(--accent);
  color:#0b1119;
  font-weight:700;
  box-shadow:0 0 18px var(--accent-soft);
}
.astra-entry .action:is(:hover,:focus-visible) {
  background:#f1f6ff;
  color:#0b1119;
}

/* Chinese reading typography. The wordmark retains its own treatment. */
html:lang(zh) {
  --sopra-zh: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
html:lang(zh) body, html:lang(zh) body [data-i18n] { font-family: var(--sopra-zh); }
html:lang(zh) #site-header .nav-links a,
html:lang(zh) .page-subnav a { font: 500 14px/1.5 var(--sopra-zh); letter-spacing: 0; }
html:lang(zh) .hero .deck { font: 500 clamp(15px,1.6vw,20px)/1.7 var(--sopra-zh); letter-spacing: .06em; }
html:lang(zh) .hero .opra-actions .action > .entry-heading { font: 600 17px/1.5 var(--sopra-zh); }
html:lang(zh) .hero .opra-actions .entry-heading > span:last-child { font-family: var(--sopra-zh); }
html:lang(zh) .hero .opra-actions .entry-letter { color: #a7b8cd; font-size: 12px; flex-basis: 14px; }
html:lang(zh) main > section.wrap h3 { font-size: clamp(18px,1.8vw,24px); line-height: 1.45; }
html:lang(zh) .sa-caption { font: 400 14px/1.75 var(--sopra-zh); }
html:lang(zh) .sa-caption strong { font-size: 16px; }
html:lang(zh) #nei .case-card h4 { font-size: 14px; line-height: 1.55; }
html:lang(zh) .hero .opra-actions small { font: 400 13px/1.7 var(--sopra-zh); }
html:lang(zh) main > section.wrap > h2 {
  font: 650 var(--portal-title-size)/var(--portal-title-leading) var(--sopra-zh);
  letter-spacing: 0;
  margin-bottom: 10px;
}
html:lang(zh) main > section.wrap > .intro {
  font: 400 var(--portal-intro-size)/var(--portal-intro-leading) var(--sopra-zh);
  max-width: var(--portal-reading-width);
  margin-bottom: 20px;
}
html:lang(zh) main > section.wrap :is(h3,h4) { font-family: var(--sopra-zh); letter-spacing: 0; }
html:lang(zh) #about .card :is(p,li,details) { font-size: 14px; line-height: 1.8; }
html:lang(zh) .chain-tab .cname { font: 600 14px/1.5 var(--sopra-zh); }

html:lang(zh) .hero .brand-preview-heading { margin-bottom: 15px; }
html:lang(zh) .hero .hero-copy > .deck { margin-bottom: clamp(22px,3.4vw,40px); }
html:lang(zh) .hero .opra-actions { gap: 12px; }
html:lang(zh) .hero .opra-actions .action { min-height: 108px; }
html:lang(zh) main > section.wrap { padding-inline: clamp(18px,3.5vw,56px); }
html:lang(zh) .page-subnav { margin-bottom: 22px; }
html:lang(zh) #about > .grid { margin-bottom: 16px; }
@media (max-width: 700px) {
  html:lang(zh) .hero .opra-actions { gap: 8px; }
  html:lang(zh) .hero .opra-actions .action { min-height: 92px; }
  html:lang(zh) .hero .opra-actions .action > .entry-heading { font-size: 16px; }
}

/* Reading hierarchy shared by the Chinese site sections. */
html:lang(zh) main :is(p, li, dd) {
  font-family: var(--sopra-zh);
  font-size: 15px;
  line-height: 1.75;
}
html:lang(zh) main :is(h2, h3, h4) {
  font-family: var(--sopra-zh);
  letter-spacing: 0;
}
html:lang(zh) main h4 { font-size: 16px; line-height: 1.5; }
html:lang(zh) :is(#site-header, .page-subnav, main) :is(button, input, select) {
  font-family: var(--sopra-zh);
}

html:lang(en) :is(#site-header .nav-links, .page-subnav) a,
html:lang(en) .hero .opra-actions .action :is(.entry-heading, .entry-heading > span, small) {
  font-family: "Orbitron", var(--font-body);
}

html:lang(zh) #site-header :is(.nav-links a, #lang-toggle, #theme-btn),
html:lang(zh) .page-subnav a {
  font-family: var(--sopra-zh);
  font-size: 14px;
  font-weight: 500;
}
.case-original-pair .case-media-status { display: grid; align-content: center; justify-items: center; gap: .35rem; min-height: 5rem; padding: 1rem; text-align: center; }

img[src$="/assets/earth/amazon-limb.webp"] { transform: rotate(180deg); }


.case-rail .case-scroll {
  --case-media-height: clamp(145px, 17vw, 280px);
  align-items: stretch;
}
.case-rail .case-scroll .case-card {
  display: grid;
  grid-template-rows: minmax(2.7em, auto) var(--case-media-height) minmax(3.5em, 1fr);
  align-content: start;
}
.case-rail .case-scroll .case-card :is(.case-original-pair, .image-button) { min-height: 0; }
.case-rail .case-scroll .case-card .image-button { height: 100%; }
.case-rail .case-scroll .case-card .image-button img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

/* About */
.about-page .about-lead { padding-bottom: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.5rem; border-bottom: 1px solid var(--line-strong); text-align: left; }
.about-page .about-lead .chapter-path { margin: 0 0 .75rem; text-align: left; }
.about-page .about-lead h2 { margin: 0; text-align: left; font-size: var(--portal-title-size); line-height: var(--portal-title-leading); }
.about-page .about-lead .intro { max-width: var(--portal-reading-width); margin: .85rem 0 1.25rem; text-align: left; font-size: var(--portal-intro-size); line-height: var(--portal-intro-leading); }
.about-page .action { display: inline-flex; width: auto; max-width: 100%; }
.about-page .about-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.about-page .about-main, .about-page .about-aside { display: grid; gap: 1rem; }
.about-page .about-panel { padding: clamp(1rem, 2.5vw, 1.75rem); min-width: 0; }
.about-page .about-panel h3 { margin: 0 0 .8rem; color: var(--text); font-size: clamp(1rem, 1.7vw, 1.25rem); }
.about-page .about-panel p { max-width: 65ch; line-height: 1.7; }
.about-page .about-panel > :last-child { margin-bottom: 0; }
.about-page .about-resources { list-style: none; margin: 0; padding: 0; display: grid; }
.about-page .about-resources li + li { border-top: 1px solid var(--line); }
.about-page .about-resources a { display: block; padding-block: .65rem; line-height: 1.5; }
.about-page .about-resources a:is(:hover, :focus-visible) { color: var(--accent); }
.about-page details { padding: 0; margin-block: .65rem; }
.about-page details > summary { padding: .75rem 2.25rem .75rem .85rem; }
.about-page details > p { padding-inline: .85rem; }
.about-page summary { cursor: pointer; }
@media (max-width: 760px) { .about-page .about-layout { grid-template-columns: minmax(0, 1fr); } }

/* Keep the portal content aligned with the catalog gutters on wide displays. */
.hero.site-page { padding-inline: var(--page-gutter); }
.hero .hero-copy { width: 100%; max-width: 1160px; }
.hero .opra-actions { width: min(100%, 1160px); align-items: stretch; }
.hero .hero-copy > p.deck { white-space: normal; }
@media (max-width: 360px) {
  .hero .opra-actions { grid-template-columns: 1fr; }
}

/* Keep the original glass treatment and interaction without a color fill. */
.hero .opra-actions .action,
.hero .opra-actions .action.ghost,
.hero .opra-actions .action:is(:hover, :focus-visible) {
  background: transparent;
}

.hero .opra-actions .action > .entry-heading { grid-row: 1; }
.hero .opra-actions .action small { grid-row: 2; align-self: start; }

.about-page .developer-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.about-page .developer-heading img {
  width: clamp(56px, 8vw, 80px);
  height: auto;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.about-page .developer-heading h3 { margin: 0 0 .25rem; }
.about-page .developer-name { margin: 0; overflow-wrap: anywhere; }
