/* Mio's light visual layer. This stylesheet is loaded only by /mio/about/. */
:root {
  color-scheme: light;
  --bg: #faf9f6;
  --sky: #dceef7;
  --mist: #a9cedf;
  --accent: #476e95;
  --text: #344f73;
  --muted: #53687c;
  --faint: #5e7284;
  --line: #cedde4;
  --surface: #fffefa;
  /* 1296px at a 1440px viewport, growing to 1680px on wider displays. */
  --display-width: clamp(1280px, 90vw, 1680px);
  --page-gutter: max(24px, calc((100% - var(--display-width)) / 2));
  --serif: Newsreader, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
html:lang(zh) body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
}
html:lang(ja) body {
  font-family: Inter, "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
}
::selection { color: #294462; background: #c7dfeb; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, p, figure { margin: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.site-shell { width: 100%; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  min-height: 88px;
  padding: 18px var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: #faf9f6f5;
}
.mio-header-brand { display: flex; align-items: baseline; gap: 14px; }
.brand { font-family: Newsreader, Georgia, serif; font-size: 1.3rem; line-height: 1; }
.mio-page-marker { padding-left: 14px; border-left: 1px solid var(--line); font-size: .8rem; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; font-size: .82rem; }
.nav-links a, .back-link, .site-footer a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.nav-links a:hover, .back-link:hover, .site-footer a:hover { color: var(--accent); text-decoration-color: currentColor; }
.language-switcher { display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: .73rem; white-space: nowrap; }
.language-switcher button { min-height: 40px; padding: 4px 2px; border: 0; background: transparent; color: var(--muted); }
.language-switcher button:hover, .language-switcher button.is-active { color: var(--text); text-decoration: underline; text-underline-offset: 6px; }

.section { position: relative; isolation: isolate; padding: clamp(56px, 5vw, 80px) var(--page-gutter); }
.section-kicker, .signal { color: var(--accent); font-size: .72rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.section-kicker { margin-bottom: 28px; }
h2 {
  max-width: 15em;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 3.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.18;
  text-wrap: balance;
}
html:lang(zh) h2, html:lang(ja) h2 { font-size: clamp(2rem, 3vw, 2.9rem); line-height: 1.5; font-weight: 400; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.section-grid > *, .hero-copy { min-width: 0; }
.project-copy { display: grid; gap: 24px; max-width: 62ch; }
.project-copy p, .expression-copy p { color: var(--muted); font-size: 1.04rem; line-height: 1.9; max-width: 62ch; }

/* Background images own their clipping and masks; content stays outside them. */
.section-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.section-art img { width: 100%; height: 100%; object-fit: cover; }
.section-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  min-height: clamp(640px, 50vw, 780px);
  padding-block: 56px 80px;
  background: #eaf3fc;
}
.hero-copy { max-width: 38rem; }
/* Preserve the composite's native ratio and the entire ring on wide screens.
   Only the pale left edge can extend outside the background layer. */
.hero-backdrop img {
  position: absolute;
  right: 0;
  width: auto;
  height: 100%;
  max-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 20%);
}
.hero-backdrop::after {
  background:
    linear-gradient(0deg, var(--bg), transparent 48px),
    linear-gradient(90deg, #f6f9fbd9, #f6f9fb70 32%, transparent 56%);
}
.back-link { display: inline-block; margin-bottom: 26px; font-size: .78rem; color: var(--muted); }
.signal { margin-bottom: 22px; font-size: .68rem; }
.project-hero h1 { font-family: Newsreader, Georgia, serif; font-size: clamp(7rem, 14vw, 12rem); font-weight: 500; letter-spacing: -.065em; line-height: .95; margin: 0 0 26px -5px; }
.subtitle { max-width: 23em; font-family: var(--serif); font-size: clamp(1.55rem, 2.1vw, 2.1rem); line-height: 1.5; margin-bottom: 22px; }
.intro { max-width: 50ch; font-size: 1.125rem; color: var(--muted); line-height: 1.8; }
.mio-button, .quiet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 11px 25px;
  border: 1px solid #a4c5d8;
  border-radius: 999px;
  background: #c5dfed;
  color: #294b6c;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.65;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}
.hero-copy .mio-button { margin-top: 32px; min-height: 56px; padding: 14px 34px; background: var(--accent); border-color: var(--accent); color: #fffefa; font-size: 1rem; }
.hero-copy .mio-button:hover { background: #365d83; border-color: #365d83; }
.mio-button:hover, .quiet-link:hover { background: #b8d6e7; border-color: #7fa9cf; transform: translateY(-2px); }
.hero-orbit { display: none; pointer-events: none; }
#concept { border-bottom: 1px solid var(--line); }
#concept .section-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
#concept h2 { max-width: 20ch; font-size: clamp(2.8rem, 4.2vw, 4.5rem); line-height: 1.15; }
html:lang(zh) #concept h2, html:lang(ja) #concept h2 { max-width: 8em; font-size: clamp(2.4rem, 3.7vw, 3.9rem); line-height: 1.5; }
#concept .project-copy { max-width: 58ch; font-size: 1.125rem; }
#concept .project-copy p { font-size: inherit; }

/* One visual at a time. Inactive panels retain their geometry, not focus or animation. */
.showcase-modes { display: flex; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%; margin: 0 0 20px; padding: 5px; border: 1px solid var(--line); border-radius: 24px; background: #edf4f7; }
.showcase-modes button { min-height: 42px; padding: 9px 20px; border: 0; border-radius: 20px; color: var(--muted); background: transparent; font: inherit; font-size: .9rem; line-height: 1.5; cursor: pointer; }
.showcase-modes button[aria-selected="true"] { color: #fffefa; background: var(--accent); }
.showcase-modes button:focus-visible, .mode-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.mode-panels { display: grid; grid-template-rows: minmax(0, 1fr); min-width: 0; }
.mode-panel { grid-area: 1 / 1; min-width: 0; min-height: 0; }
.mode-panel[hidden] { display: block; visibility: hidden; pointer-events: none; }
.mode-panel[hidden] * { visibility: hidden !important; }
.mode-panel:not([hidden]) { animation: mode-appear 240ms ease-out both; }
@keyframes mode-appear { from { opacity: 0; } to { opacity: 1; } }
/* Only scenery spans the viewport. Copy, tabs and the original demo share
   the same gutters as the other sections; no 100vw / scrollbar overflow. */
.atmosphere-section { --room-side-space: 24px; --room-content-width: min(var(--display-width), calc(100% - 2 * var(--room-side-space))); padding-inline: 0; background: var(--bg); }
.room-controls { width: var(--room-content-width); margin-inline: auto; }
.atmosphere-section .section-grid { grid-template-columns: 1fr; gap: 0; }
.room-showcase { position: relative; width: 100%; isolation: isolate; background: var(--bg); }
/* A normal full-width block owns the dimensions. Both panels are direct layers,
   independent of implicit Grid tracks, image intrinsic widths and control sizes. */
.room-scene-stage { --room-fade-top: 14%; --room-fade-bottom: 12%; position: relative; width: 100%; aspect-ratio: 1023 / 585; min-height: 560px; max-height: 960px; }
.room-scene-mode { position: absolute; inset: 0; width: 100%; height: 100%; }
.room-feature { isolation: isolate; overflow: hidden; }
.room-feature-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.room-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #faf9f6f5, #faf9f6eb 20%, #faf9f6c2 37%, #faf9f633 58%, transparent 70%); }
/* Fade the composited scene into .room-showcase's actual background, without
   painting a tint over it. Both Crossfade images share this one alpha mask;
   the copy and filmstrip are outside these wrappers and remain unmasked. */
.room-feature, .atmosphere-fragment {
  --room-edge-mask: linear-gradient(to bottom,
    transparent,
    rgba(0, 0, 0, .16) calc(var(--room-fade-top) * .3),
    rgba(0, 0, 0, .64) calc(var(--room-fade-top) * .65),
    #000 var(--room-fade-top),
    #000 calc(100% - var(--room-fade-bottom)),
    rgba(0, 0, 0, .64) calc(100% - var(--room-fade-bottom) * .65),
    rgba(0, 0, 0, .16) calc(100% - var(--room-fade-bottom) * .3),
    transparent);
  -webkit-mask-image: var(--room-edge-mask);
  mask-image: var(--room-edge-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}
.room-showcase .room-feature-content { position: absolute; inset: 0; z-index: 1; width: var(--room-content-width); margin-inline: auto; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; pointer-events: none; }
[data-mode="room-live"] .room-feature-content { visibility: hidden; }
/* Scene transitions belong to image layers, never the panel or its controls. */
.room-scene-stage > .mode-panel:not([hidden]) { animation: none; }
.atmosphere-copy { align-self: center; display: grid; gap: 24px; padding-block: clamp(28px, 3.4vw, 56px); padding-right: clamp(24px, 3vw, 48px); min-width: 0; }
.atmosphere-copy h2 { max-width: 13em; font-size: clamp(2rem, 2.5vw, 3rem); line-height: 1.25; }
html:lang(zh) .atmosphere-copy h2, html:lang(ja) .atmosphere-copy h2 { font-size: clamp(1.85rem, 2.2vw, 2.65rem); line-height: 1.5; }
.atmosphere-text { display: grid; gap: 12px; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.atmosphere-fragment { position: absolute; inset: 0; overflow: hidden; }
.atmosphere-fragment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; opacity: 1; }
.atmosphere-previous-image[hidden] { display: none; }
/* The backdrop is frosted; thumbnails and labels remain crisp foregrounds.
   The slightly denser fallback keeps labels legible without backdrop-filter. */
.atmosphere-strip {
  position: absolute;
  z-index: 1;
  bottom: 40px;
  inset-inline: 0;
  width: min(1040px, var(--room-content-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(28, 38, 52, .72);
  box-shadow: 0 6px 18px rgba(8, 16, 24, .09);
  scrollbar-color: #8ca5b7 transparent;
}
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .atmosphere-strip {
    background: rgba(28, 38, 52, .68);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    backdrop-filter: blur(16px) saturate(1.15);
  }
}
.atmosphere-strip figure { min-width: 0; }
.atmosphere-strip button { display: block; width: 100%; padding: 3px; border: 1px solid transparent; border-radius: 9px; background: transparent; transition: border-color 180ms ease; }
.atmosphere-strip img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 5px; }
.atmosphere-strip button:hover { border-color: rgba(168, 213, 245, .55); }
.atmosphere-strip figure.is-active button { border-color: #a8d5f5; }
.atmosphere-strip button:focus-visible { outline-color: #a8d5f5; outline-offset: 3px; }
.atmosphere-strip figcaption { margin: 7px 3px 0; color: #e7eef5; font-size: .78rem; line-height: 1.5; }
.atmosphere-strip figure.is-active figcaption { color: #fff; }

/* One shared stage and transform for both eye frames; no portrait box or tint. */
.expression-section { background: var(--bg); }
.presence-feature { position: relative; }
.presence-feature .expression-heading { padding-block: clamp(24px, 3vw, 48px); }
.presence-modes { width: min(100%, 700px); aspect-ratio: 735 / 876; align-self: end; margin-inline: auto; overflow: hidden; }
/* Feather only the lower skirt, after the hand; never mask text or controls. */
.presence-portrait { overflow: hidden; mask-image: linear-gradient(#000 calc(100% - 36px), transparent); }
.presence-promo-image { width: 100%; height: auto; }
.expression-demo, .expression-demo[hidden] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.expression-demo-copy { grid-row: 2; display: grid; gap: 8px; padding: 12px clamp(16px, 2vw, 28px) 20px; }
.expression-demo-copy p { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.character-backdrop img { object-position: center bottom; }
.character-backdrop::after {
  background:
    linear-gradient(180deg, var(--bg), transparent 96px, transparent calc(100% - 72px), var(--bg)),
    linear-gradient(90deg, #f8fafbb3, #f8fafb66 38%, transparent 65%);
}
.presence-feature .section-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
.expression-heading { display: grid; gap: 24px; }
.expression-heading > p { max-width: 40ch; font-size: .73rem; line-height: 1.8; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.expression-copy { display: grid; gap: 16px; margin-top: 12px; }
.expression-copy span { font-size: .9rem; color: var(--faint); }
.expression-panel { grid-row: 1; min-width: 0; min-height: 0; }
/* One common close-up outside both the normalized stage and breathing node.
   Cropping is intentional below the hands; source images stay unmodified. */
.expression-viewport {
  --portrait-zoom: 1.65;
  position: relative;
  width: 100%;
  height: 100%;
  margin-inline: auto;
  overflow: hidden;
  mask-image: linear-gradient(#000 calc(100% - 24px), transparent);
}
.expression-composition { width: 100%; height: 100%; transform: scale(var(--portrait-zoom)); transform-origin: 50% 0; }
.expression-stage { position: relative; width: 100%; height: 100%; }
.expression-sprite { position: absolute; inset: 0; opacity: 1; transition: opacity 180ms ease; }
.expression-sprite.is-fading { opacity: .22; }
.expression-motion { position: relative; width: 100%; height: 100%; transform-origin: 55% 98.5%; }
.expression-sprite img {
  position: absolute;
  left: var(--portrait-left, 0px);
  top: var(--portrait-top, 0px);
  width: var(--portrait-width, 100%);
  height: var(--portrait-height, 100%);
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
}
.expression-closed { visibility: hidden; }
.expression-sprite[data-eyes="closed"] .expression-open { visibility: hidden; }
.expression-sprite[data-eyes="closed"] .expression-closed { visibility: visible; }
.expression-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.expression-strip button { min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: .8rem; line-height: 1.6; transition: background 180ms ease, border-color 180ms ease; }
.expression-strip button:hover { border-color: #8eafc6; }
.expression-strip button.is-active { color: #294b6c; border-color: #a4c5d8; background: #dcebf3; }
@media (prefers-reduced-motion: no-preference) {
  .expression-sprite[data-breathing="true"] .expression-motion { animation: expression-breath 5600ms ease-in-out infinite; }
}
@keyframes expression-breath {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.0006, 1.003); }
}

#showcase { border-top: 1px solid var(--line); }
#showcase .section-grid, #system .section-grid { grid-template-columns: 1fr; gap: 40px; }
#showcase h2, #system h2 { max-width: 19em; }
.showcase-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.showcase-card { min-width: 0; transition: transform 220ms ease; }
.image-placeholder { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.preview-image-link { position: relative; display: block; background: #edf2f3; }
.preview-image-link::after { content: "↗"; position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fffefae8; color: var(--text); font-size: 1rem; }
.preview-image-link:focus-visible { outline-offset: -3px; }
.image-placeholder img { width: 100%; height: auto; }
.image-placeholder span { display: block; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 1rem; font-weight: 500; line-height: 1.6; }
.showcase-card figcaption { padding: 12px 3px 0; font-size: .94rem; line-height: 1.8; color: var(--muted); }
#system { background: #f0f5f7; }
#system .section-kicker, #system h2 { text-align: center; }
#system h2 { justify-self: center; }
.system-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.system-list article { padding: 28px 24px; border: 1px solid #d6e2e8; border-radius: 12px; background: #fffefa; }
.system-icon { display: block; color: #6086a7; margin-bottom: 24px; }
.system-list span { display: block; margin-bottom: 12px; font-size: .96rem; font-weight: 500; line-height: 1.6; }
.system-list p { font-size: 1rem; line-height: 1.85; color: var(--muted); }
.access-section {
  text-align: center;
  min-height: 620px;
  padding-top: clamp(64px, 6vw, 88px);
  padding-bottom: clamp(160px, 16vw, 230px);
  background: #e9f3ff;
}
.access-backdrop img { object-position: center bottom; }
.access-backdrop::after {
  background: linear-gradient(180deg, #f0f5f7, transparent 48px, transparent calc(100% - 28px), var(--bg));
}
.access-section .section-grid { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
.access-section h2 { max-width: 18em; }
.access-section .project-copy { justify-items: center; gap: 32px; max-width: 62ch; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 30px; padding: 32px var(--page-gutter); font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Values come from the existing scroll-position controller, never a one-shot class. */
.has-scroll-reveal .scroll-reveal-title, .has-scroll-reveal .scroll-reveal-content {
  opacity: var(--reveal-opacity, 1);
  transform: translateY(var(--reveal-y, 0px));
}
@media (hover: hover) and (pointer: fine) {
  .showcase-card:hover { transform: translateY(-4px); }
}
@media (max-width: 1199px) {
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .site-header { gap: 22px; }
  .nav-links { gap: 8px 16px; }
  .system-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atmosphere-strip { display: flex; gap: 10px; overflow-x: auto; padding: 10px; scrollbar-width: thin; }
  .atmosphere-strip figure { flex: 0 0 96px; }
}
@media (max-width: 900px) {
  .room-showcase .room-feature-content { position: static; display: block; visibility: visible; pointer-events: auto; }
  .room-showcase .atmosphere-copy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-right: 0; }
  .room-feature::before { display: none; }
  .room-scene-stage { min-height: 0; }

  .project-hero { grid-template-columns: 1fr; min-height: 0; padding-block: 44px 48px; gap: 28px; }
  .hero-copy { max-width: 38rem; }
  .hero-backdrop img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: center bottom; mask-image: none; }
  .hero-backdrop::after { background: linear-gradient(0deg, var(--bg), transparent 40px), linear-gradient(180deg, #fafbfdb3, transparent 64%); }
  .hero-orbit { display: block; width: min(74%, 340px); aspect-ratio: 1; justify-self: center; background: url("../../asset/mio/sky-blue/sky-orb.webp") center / contain no-repeat; }
}
@media (max-width: 800px) {
  .presence-feature .section-grid { grid-template-columns: 1fr; }
  .expression-heading { max-width: 42rem; }
  .presence-modes { width: min(100%, 520px); }
  .expression-viewport { --portrait-zoom: 1.5; }
  /* Stacked copy and portrait need a taller sky. Anchor the full flower image
     below them instead of enlarging/cropping a desktop landscape to this height. */
  .character-backdrop { background: linear-gradient(180deg, var(--bg), #edf5ff 40%, #e4f1fb 75%, var(--bg)); }
  .character-backdrop img { position: absolute; bottom: 0; height: auto; object-fit: contain; mask-image: linear-gradient(transparent, #000 28%); }
  .character-backdrop::after { background: linear-gradient(180deg, var(--bg), #faf9f6b3 25%, transparent 50%, transparent calc(100% - 48px), var(--bg)); }
}
@media (max-width: 700px) {
  :root { --page-gutter: 24px; }
  html { scroll-padding-top: 130px; }
  .site-header { grid-template-columns: 1fr auto; gap: 8px 16px; padding-block: 12px; }
  .mio-header-brand { grid-column: 1; grid-row: 1; gap: 10px; }
  .mio-page-marker { padding-left: 10px; }
  .language-switcher { grid-column: 2; grid-row: 1; gap: 5px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 6px 24px; font-size: .78rem; }
  .nav-links a { padding-block: 5px; }
  .section { padding-block: 48px; }
  .section-kicker { margin-bottom: 22px; }
  .section-grid { grid-template-columns: 1fr; gap: 30px; }
  h2 { font-size: clamp(2rem, 8vw, 2.6rem); }
  html:lang(zh) h2, html:lang(ja) h2 { font-size: clamp(1.8rem, 7vw, 2.35rem); line-height: 1.5; }
  .project-hero { padding-block: 36px 40px; }
  .back-link { margin-bottom: 28px; }
  .project-hero h1 { font-size: clamp(6.5rem, 28vw, 9rem); }
  .subtitle { font-size: 1.55rem; }
  .hero-orbit { width: min(94%, 340px); }
  .intro { font-size: 1.0625rem; }
  .project-copy p, .expression-copy p, .atmosphere-text { font-size: 1rem; }
  #concept .section-grid { grid-template-columns: 1fr; gap: 28px; }
  #concept h2 { font-size: clamp(2.2rem, 8.5vw, 3rem); }
  html:lang(zh) #concept h2, html:lang(ja) #concept h2 { font-size: clamp(2rem, 7.5vw, 2.7rem); }
  #concept .project-copy { font-size: 1.0625rem; }
  .room-showcase .atmosphere-copy { grid-template-columns: 1fr; gap: 20px; padding-block: 24px; }
  /* The same scene height in both modes; a modest crop keeps room context
     above the compact thumbnail strip instead of producing a tall portrait crop. */
  .room-scene-stage { --room-fade-top: 12%; --room-fade-bottom: 10%; aspect-ratio: 3 / 2; min-height: 0; }
  .room-feature-image, .atmosphere-fragment img { object-position: 60% center; }
  .showcase-modes { gap: 3px; padding: 4px; }
  .showcase-modes button { padding-inline: 13px; font-size: .85rem; }
  .presence-feature .section-grid { gap: 12px; }
  .presence-feature .expression-heading { padding-block: 24px; }
  .atmosphere-copy h2 { font-size: 2rem; }
  html:lang(zh) .atmosphere-copy h2, html:lang(ja) .atmosphere-copy h2 { font-size: 1.85rem; }
  .atmosphere-strip { bottom: 36px; display: flex; gap: 8px; overflow-x: auto; padding: 8px; scrollbar-width: thin; }
  .atmosphere-strip figure { flex: 0 0 84px; }
  .atmosphere-strip figcaption { margin-top: 4px; font-size: .7rem; }
  .expression-strip { gap: 8px; }
  .expression-strip button { padding-inline: 14px; }
  #showcase .section-grid, #system .section-grid { gap: 30px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 28px; }
  .system-list { gap: 24px 16px; }
  .access-section { min-height: 0; padding-block: 64px 180px; }
  .system-list article { padding: 24px 20px; }
  .site-footer { flex-direction: column; gap: 10px; padding-block: 28px; }
}
@media (max-width: 460px) {
  .showcase-grid, .system-list { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  :root { --page-gutter: 18px; }
  .atmosphere-section { --room-side-space: 18px; }
  .nav-links { gap: 6px 18px; }
  .mio-page-marker { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .has-scroll-reveal .scroll-reveal-title, .has-scroll-reveal .scroll-reveal-content { opacity: 1; transform: none; }
  .expression-open { visibility: visible !important; }
  .expression-closed { visibility: hidden !important; }
  .mio-button:hover, .quiet-link:hover, .showcase-card:hover { transform: none; }
}
