:root { --paper: #edece5; --ink: #1b2d2b; --muted: #57615b; --rule: #c9cdc2; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Yu Gothic', Meiryo, sans-serif; }
button,a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .3em; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline: 3px solid #345e50; outline-offset: 5px; }
.skip { position: fixed; left: 16px; top: -100px; background: var(--paper); padding: 14px; z-index: 10; }
.skip:focus { top: 16px; }
.masthead { display: flex; gap: 24px; align-items: center; padding: 24px 4vw; border-bottom: 1px solid var(--rule); font-size: 11px; }
.masthead a { min-height: 28px; display: inline-flex; align-items: center; }
.masthead span:nth-child(2) { margin-left: auto; letter-spacing: .08em; }
.masthead span:last-child { color: var(--muted); }
main { max-width: 1600px; margin: auto; padding: 0 4vw; }
.work-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 30px 0 24px; }
h1 { font: 500 clamp(25px,3vw,42px)/1.2 'Yu Mincho',serif; letter-spacing: .13em; margin: 0; }
h1 span { margin-left: 20px; font: 800 11px/1 sans-serif; letter-spacing: .25em; }
.work-heading p { margin: 0 0 3px; font-size: clamp(14px,1.4vw,20px); letter-spacing: .08em; }
.artwork { position: relative; height: clamp(490px,46vw,720px); background: #0b1a1b; overflow: hidden; isolation: isolate; border-radius: 3px; }
#scene-root,#fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
#scene-root { opacity: 0; }
.artwork.is-ready #scene-root { opacity: 1; }
.artwork.is-ready #fallback { visibility: hidden; }
#scene-root canvas { display: block; touch-action: pan-y; cursor: crosshair; }
.artwork__caption { position: absolute; left: 28px; right: 28px; top: 25px; display: flex; justify-content: space-between; gap: 16px; z-index: 2; color: #e6f3dc; font-size: 11px; letter-spacing: .06em; pointer-events: none; }
.artwork__signature { position: absolute; bottom: 23px; left: 28px; color: #c1d8c6; font-size: 10px; letter-spacing: .18em; pointer-events: none; }
.fallback-stack { display: none; }
.fallback-distorted #fallback g { filter: url(#ripple); }
.artwork[data-material=silver] #fallback g { fill: #c8d0c6; stroke: #fafbe8; }
.experience-bar { display: flex; align-items: center; gap: 28px; padding: 21px 0 17px; flex-wrap: wrap; }
.experience-bar p { font-size: 12px; line-height: 1.9; margin: 0 auto 0 0; }
.materials { display: flex; gap: 4px; border: 1px solid var(--rule); border-radius: 30px; padding: 4px; }
.material { min-height: 40px; min-width: 72px; padding: 8px 17px; border: 0; border-radius: 24px; background: transparent; font-size: 12px; }
.material[aria-pressed=true] { color: var(--paper); background: var(--ink); }
.primary { min-height: 50px; padding: 12px 25px; border: 1px solid var(--ink); border-radius: 28px; background: var(--ink); color: var(--paper); font-size: 13px; }
.primary:hover { background: #365348; }
.text-button { min-height: 44px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: 11px; }
.interaction-help { border-top: 1px solid var(--rule); font-size: 11px; }
.interaction-help summary { min-height: 44px; width: fit-content; cursor: pointer; padding: 14px 0; }
.interaction-help p { color: var(--muted); line-height: 1.9; margin: 0 0 10px; }
.display-options { display: flex; gap: 24px; padding: 0 0 15px; flex-wrap: wrap; }
.render-message { font-size: 12px; color: var(--muted); line-height: 1.9; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
footer { max-width: 1600px; margin: auto; padding: 22px 4vw; display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 10px; line-height: 1.8; }
footer p { margin: 0; }
footer a { margin-left: auto; }
@media (max-width: 680px) {
  .masthead { padding: 16px 6vw; gap: 10px; font-size: 10px; }
  .masthead span:last-child { display: none; }
  main { padding: 0 6vw; }
  .work-heading { display: block; padding: 25px 0 18px; }
  .work-heading p { margin-top: 14px; font-size: 14px; }
  .artwork { height: 480px; }
  .artwork__caption { left: 18px; right: 18px; top: 21px; font-size: 10px; }
  .artwork__signature { left: 18px; bottom: 22px; font-size: 9px; }
  .experience-bar { gap: 14px; padding-top: 18px; }
  .experience-bar p { width: 100%; }
  .materials { margin-right: auto; }
  .primary { padding: 12px 20px; }
  #motion { margin-left: auto; }
  .fallback-wide { display: none; }
  .fallback-stack { display: inline; }
  footer { display: block; padding: 20px 6vw; }
  footer p { margin-bottom: 5px; }
}
@media (max-width: 360px) { .artwork { height: 425px; } .material { min-width: 64px; padding: 8px 12px; } .primary { padding: 12px 16px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
