/* SCENZ / Works & Experiments. Shared navigation and footer live in site.css. */
.scenz-works { letter-spacing: normal; }
.scenz-works .site-nav > a[aria-current="page"] { color: var(--accent-light); opacity: 1; }
.scenz-works .site-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.scenz-works .footer-column a[aria-current="page"] { color: var(--accent-light); }
.scenz-works .section-index { color: #63665f; font: 700 .72rem/1.5 var(--font-latin); letter-spacing: .17em; }

.works-hero { position: relative; display: flex; min-height: max(760px, 100svh); align-items: center; overflow: hidden; isolation: isolate; background: #10110f; color: var(--light); }
.works-hero-image, .works-hero-shade, .works-hero-glow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.works-hero-image { z-index: -3; object-fit: cover; object-position: center center; }
.works-hero-shade { z-index: -2; background: linear-gradient(90deg, rgba(8,9,8,.96), rgba(8,9,8,.78) 34%, rgba(8,9,8,.21) 74%), linear-gradient(0deg, rgba(8,9,8,.7), transparent 38%); }
.works-hero-glow { z-index: -1; background: radial-gradient(ellipse 24% 34% at 72% 50%, rgba(245,176,139,.12), transparent 80%); animation: works-glow 11s ease-in-out infinite alternate; }
.works-hero-content { padding-block: 11rem 9rem; }
.works-hero h1 { max-width: 1060px; margin: 2.2rem 0 2rem; font-size: clamp(3.6rem, 6.4vw, 7.4rem); font-weight: 900; letter-spacing: -.078em; line-height: 1.18; text-wrap: balance; }
.works-hero h1 span { color: var(--accent-light); }
.works-hero-content > p { max-width: 590px; margin: 0 0 2.6rem; color: #e5e2da; font-size: clamp(1rem, 1.23vw, 1.2rem); line-height: 1.95; }
.works-hero-bottom { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.15rem; border-top: 1px solid rgba(255,255,255,.27); color: rgba(255,255,255,.73); font-size: .65rem; font-weight: 700; letter-spacing: .12em; }
.works-hero-bottom span:first-child { font-family: var(--font-latin); }
@keyframes works-glow { from { opacity: .4; } to { opacity: 1; } }

.works-index { position: sticky; z-index: 50; top: 86px; background: #e9e0d3; border-bottom: 1px solid rgba(20,21,19,.18); box-shadow: 0 8px 28px rgba(25,26,23,.05); }
.works-index-inner { display: grid; grid-template-columns: minmax(120px, 1.1fr) repeat(4, minmax(0, 1fr)); min-height: 76px; align-items: stretch; }
.works-index-label { display: flex; align-items: center; color: #62665e; font: 700 .61rem/1.3 var(--font-latin); letter-spacing: .15em; }
.works-index a { position: relative; display: flex; align-items: center; justify-content: center; gap: .65rem; padding: .75rem .45rem; border-left: 1px solid rgba(20,21,19,.11); color: #34362f; font-size: .79rem; font-weight: 700; white-space: nowrap; transition: background 200ms ease, color 200ms ease; }
.works-index a span { color: #a84a31; font: 700 .65rem var(--font-latin); }
.works-index a:hover, .works-index a[aria-current="location"] { background: #f6f1e9; color: #a84a31; }
.works-index a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); transition: transform 260ms ease; }
.works-index a[aria-current="location"]::after { transform: scaleX(1); }

.works-intro { background: #f6f1e9; }
.works-intro-grid { display: grid; grid-template-columns: minmax(180px,.28fr) minmax(0,1fr); gap: clamp(3rem, 6vw, 7rem); }
.works-intro .section-index { padding-top: .25rem; }
.works-intro h2, .works-outro h2 { margin: 1.5rem 0 0; color: var(--ink); font-size: clamp(2.9rem, 5.6vw, 6.1rem); font-weight: 900; letter-spacing: -.075em; line-height: 1.24; text-wrap: balance; }
.works-intro h2 span, .works-outro h2 span { color: #b85a3b; }
.works-intro-bottom { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.75fr); align-items: start; gap: clamp(2.5rem, 5vw, 6rem); margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.works-intro-bottom > p { max-width: 680px; margin: 0; color: #565952; font-size: clamp(1.06rem, 1.4vw, 1.28rem); line-height: 1.95; }
.works-status-note { position: relative; padding-left: 1.45rem; border-left: 2px solid var(--accent); }
.works-status-note strong { display: block; margin-bottom: .55rem; font-size: .91rem; }
.works-status-note p { margin: 0; color: #63665f; font-size: .84rem; line-height: 1.85; }
.status-dot { position: absolute; top: .18rem; right: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(228,119,84,.13); }

.work-chapter { position: relative; overflow: hidden; scroll-margin-top: 162px; padding: clamp(5.8rem, 8vw, 9rem) 0 clamp(6.5rem, 9vw, 10rem); }
.chapter-topline { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 1.3rem; border-bottom: 1px solid currentColor; font: 700 .69rem/1.4 var(--font-latin); letter-spacing: .17em; opacity: .8; }
.chapter-topline span:last-child { font-family: var(--font-display); letter-spacing: .08em; }
.chapter-grid, .software-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(3.4rem, 7vw, 8.8rem); margin-top: clamp(3rem, 5.5vw, 6rem); }
.chapter-grid-reverse { grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); }
.chapter-copy { max-width: 625px; }
.chapter-symbol { display: flex; width: 58px; height: 58px; align-items: center; justify-content: center; margin-bottom: clamp(2rem, 4vw, 4rem); border: 1px solid currentColor; border-radius: 50%; color: var(--accent-ink); font: 500 2rem/1 var(--font-latin); }
.chapter-copy h2 { margin: 0 0 2rem; font-size: clamp(2.6rem, 4.3vw, 4.35rem); font-weight: 900; letter-spacing: -.075em; line-height: 1.26; text-wrap: balance; }
.chapter-copy h2 span { color: #ae5135; }
.work-film .chapter-copy h2, .work-game .chapter-copy h2 { color: var(--ink); } /* paper-coloured chapters */
.chapter-lead { max-width: 600px; margin: 0; color: #555952; font-size: clamp(1rem, 1.28vw, 1.17rem); line-height: 1.95; }
.chapter-points { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid currentColor; }
.chapter-points span { color: #a94d32; font-size: .74rem; font-weight: 800; letter-spacing: .08em; }
.chapter-points p { margin: .8rem 0 0; font-size: .88rem; line-height: 1.8; }
.chapter-link { display: inline-flex; align-items: center; gap: 2rem; margin-top: 2rem; padding-bottom: .55rem; border-bottom: 1px solid currentColor; font-size: .86rem; font-weight: 800; }
.chapter-link span { font: 400 1.2rem var(--font-latin); transition: transform 200ms ease; }
.chapter-link:hover span { transform: translate(3px,-3px); }
.chapter-visual { position: relative; min-width: 0; margin: 0; aspect-ratio: 1.25; overflow: hidden; background: #191a17; isolation: isolate; }
.chapter-visual::after { position: absolute; inset: 0; z-index: 1; border: 1px solid rgba(255,255,255,.2); content: ""; pointer-events: none; }
.chapter-visual img { width: 100%; height: 100%; object-fit: cover; }
.chapter-visual figcaption { position: absolute; z-index: 3; right: 1.25rem; bottom: 1.1rem; left: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; color: white; font-size: .64rem; font-weight: 700; text-shadow: 0 1px 5px black; letter-spacing: .05em; }
.chapter-visual figcaption span:first-child { font-family: var(--font-latin); letter-spacing: .15em; }

.work-film { background: #ece3d7; }
.film-visual img { object-position: 55% center; }
.film-visual::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(transparent 70%, rgba(0,0,0,.62)); content: ""; }
.frame-corners { position: absolute; z-index: 2; inset: 7%; pointer-events: none; }
.frame-corners span { position: absolute; width: 30px; height: 30px; border-color: rgba(255,255,255,.8); border-style: solid; }
.frame-corners span:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.frame-corners span:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.frame-corners span:nth-child(3) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.frame-corners span:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.work-film.is-active .frame-corners { animation: frame-breathe 6s ease-in-out infinite alternate; }
@keyframes frame-breathe { from { inset: 7%; opacity: .6; } to { inset: 8.3%; opacity: 1; } }

.work-sound { color: #f5efe6; background: #171a18; }
.work-sound::before { position: absolute; top: -15%; right: -10%; width: min(700px,60vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(219,113,74,.13), transparent 70%); content: ""; pointer-events: none; }
.work-sound .chapter-topline { border-color: rgba(255,255,255,.25); }
.work-sound .chapter-symbol { color: var(--accent-light); border-color: rgba(255,255,255,.45); }
.work-sound .chapter-copy h2 span { color: var(--accent-light); }
.work-sound .chapter-lead { color: #cacbc4; }
.work-sound .chapter-points { border-color: rgba(255,255,255,.25); }
.work-sound .chapter-points span { color: var(--accent-light); }
.work-sound .chapter-points p { color: #c6c7c1; }
.sound-visual::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(transparent 58%, rgba(0,0,0,.75)); content: ""; }
.sound-spectrum { position: absolute; z-index: 2; bottom: 18%; left: 7%; display: flex; width: 55%; height: 72px; align-items: center; gap: 5px; opacity: .85; }
.sound-spectrum i { width: 2px; height: 20%; flex: 1; border-radius: 4px; background: var(--accent-light); box-shadow: 0 0 12px rgba(245,176,139,.56); transform-origin: center; }
.sound-spectrum i:nth-child(3n) { height: 65%; }
.sound-spectrum i:nth-child(4n) { height: 38%; }
.sound-spectrum i:nth-child(7n) { height: 85%; }
.work-sound.is-active .sound-spectrum i { animation: spectrum-light 3.4s ease-in-out infinite alternate; animation-delay: calc(var(--i, 1) * -120ms); }
.work-sound.is-active .sound-spectrum i:nth-child(3n) { animation-duration: 4.1s; }
@keyframes spectrum-light { from { opacity: .3; transform: scaleY(.72); } to { opacity: .95; transform: scaleY(1.12); } }

.work-game { background: #f4efe7; }
.game-visual::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(transparent 60%, rgba(0,0,0,.66)); content: ""; }
.game-route { position: absolute; z-index: 2; inset: 8% 4% 12%; width: 92%; height: 80%; filter: drop-shadow(0 0 6px rgba(255,196,128,.8)); }
.game-route path { stroke: rgba(255,203,142,.86); stroke-width: 1.6; stroke-dasharray: 4 10; }
.game-route circle { fill: #ffd4a2; }
.work-game.is-active .game-route path { animation: route-flow 8s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -112; } }

.work-software { color: #f5efe6; background: #2b302b; }
.work-software::before { position: absolute; inset: 0; background: radial-gradient(ellipse 48% 70% at 82% 60%, rgba(210,102,67,.13), transparent 80%); content: ""; pointer-events: none; }
.work-software .chapter-topline { border-color: rgba(255,255,255,.25); }
.work-software .chapter-symbol { color: var(--accent-light); border-color: rgba(255,255,255,.45); }
.work-software .chapter-copy h2 span { color: var(--accent-light); }
.work-software .chapter-lead, .work-software .chapter-points p { color: #d6d4ce; }
.work-software .chapter-points { border-color: rgba(255,255,255,.25); }
.work-software .chapter-points span { color: var(--accent-light); }
.software-stage { position: relative; overflow: hidden; min-height: 550px; padding: clamp(1.4rem, 2vw, 2.5rem); border: 1px solid rgba(255,255,255,.25); background: linear-gradient(145deg,#171a18,#202420 55%,#171a18); box-shadow: 0 40px 80px rgba(0,0,0,.18); }
.software-stage::before { position: absolute; right: -22%; bottom: -52%; width: 90%; aspect-ratio: 1; border: 1px solid rgba(244,174,138,.17); border-radius: 50%; box-shadow: 0 0 0 60px rgba(244,174,138,.015), 0 0 0 120px rgba(244,174,138,.015); content: ""; pointer-events: none; }
.software-stage-top, .software-stage-bottom { display: flex; justify-content: space-between; gap: 1rem; color: #aaa9a1; font: 700 .61rem/1.4 var(--font-latin); letter-spacing: .15em; }
.software-stage-top { padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.software-stage-bottom { position: absolute; right: clamp(1.4rem, 2vw, 2.5rem); bottom: clamp(1.4rem, 2vw, 2.5rem); left: clamp(1.4rem, 2vw, 2.5rem); padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.16); }
.software-live { color: var(--accent); font-size: .85rem; animation: software-live 3s ease-in-out infinite; }
@keyframes software-live { 50% { opacity: .3; } }
.software-flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: clamp(2.4rem, 5vw, 4.5rem); }
.software-flow button { position: relative; min-height: 145px; padding: 1.1rem .75rem; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.025); color: #ece9e2; cursor: pointer; text-align: left; transition: border-color 200ms ease, background 200ms ease, transform 200ms ease; }
.software-flow button:hover, .software-flow button[aria-selected="true"] { border-color: rgba(244,174,138,.9); background: rgba(228,119,84,.12); }
.software-flow button[aria-selected="true"] { transform: translateY(-4px); }
.software-flow button::before { position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; border: 1px solid var(--accent-light); border-radius: 50%; background: #171a18; content: ""; }
.software-flow button[aria-selected="true"]::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(228,119,84,.18); }
.software-flow small { display: block; margin-bottom: 1.15rem; color: var(--accent-light); font: 700 .59rem var(--font-latin); letter-spacing: .16em; }
.software-flow strong { display: block; font-size: 1.12rem; }
.software-flow button > span { display: block; margin-top: .55rem; color: #aead9f; font-size: .69rem; line-height: 1.5; }
.software-detail { position: relative; margin-top: 2rem; padding: 1.6rem 1.75rem; border-left: 2px solid var(--accent); background: rgba(255,255,255,.04); }
.software-detail[hidden] { display: none; }
.detail-index { color: var(--accent-light); font: 700 .62rem var(--font-latin); letter-spacing: .14em; }
.software-detail p { max-width: 520px; margin: .7rem 0 0; color: #e2dfd7; font-size: .87rem; line-height: 1.8; }

.works-outro { position: relative; overflow: hidden; background: #e9e0d3; }
.works-outro::before { position: absolute; top: -55%; right: -4%; width: 55vw; aspect-ratio: 1; border: 1px solid rgba(180,83,54,.17); border-radius: 50%; box-shadow: 0 0 0 75px rgba(180,83,54,.025), 0 0 0 150px rgba(180,83,54,.025); content: ""; pointer-events: none; }
.works-outro-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.6fr); align-items: end; gap: clamp(2.5rem,6vw,7rem); }
.works-outro-grid > div:last-child { max-width: 430px; }
.works-outro-grid p { margin: 0 0 2rem; color: #52564f; font-size: 1.06rem; line-height: 1.9; }

@media (max-width: 1100px) {
  .works-index-label { display: none; }
  .works-index-inner { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .chapter-grid, .chapter-grid-reverse, .software-grid { gap: 3rem; }
  .chapter-copy h2 { font-size: clamp(2.5rem, 4.4vw, 4rem); }
  .software-stage { min-height: 590px; }
}
@media (max-width: 920px) {
  .works-index { top: 74px; }
  .works-hero { min-height: 760px; }
  .works-hero-shade { background: linear-gradient(90deg,rgba(8,9,8,.93),rgba(8,9,8,.52)), linear-gradient(0deg,rgba(8,9,8,.62),transparent 45%); }
  .works-intro-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .chapter-grid, .chapter-grid-reverse, .software-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .chapter-grid-reverse .chapter-copy { grid-row: 1; }
  .chapter-grid-reverse .chapter-visual { grid-row: 2; }
  .chapter-copy { max-width: 680px; }
  .chapter-symbol { margin-bottom: 2rem; }
  .chapter-visual { aspect-ratio: 1.5; }
  .software-stage { min-height: 490px; }
}
@media (max-width: 640px) {
  .works-hero { min-height: 700px; }
  .works-hero-image { object-position: 67% center; }
  .works-hero-content { padding-block: 9rem 8rem; }
  .works-hero h1 { font-size: clamp(3.15rem, 12vw, 4.8rem); }
  .works-hero h1 span { font-size: .82em; }
  .works-hero-content > p { max-width: 330px; font-size: .98rem; }
  .works-hero-bottom { display: block; font-size: .59rem; }
  .works-hero-bottom span:first-child { display: none; }
  .works-index { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .works-index::-webkit-scrollbar { display: none; }
  .works-index-inner { width: max-content; min-width: 100%; min-height: 62px; }
  .works-index a { min-width: 135px; padding-inline: .7rem; font-size: .73rem; }
  .works-intro-bottom { grid-template-columns: 1fr; gap: 2rem; }
  .works-intro h2, .works-outro h2 { font-size: clamp(2.7rem, 10vw, 4rem); }
  .work-chapter { scroll-margin-top: 136px; padding-block: 5rem 6rem; }
  .chapter-topline { font-size: .59rem; }
  .chapter-grid, .chapter-grid-reverse, .software-grid { margin-top: 3rem; }
  .chapter-copy h2 { font-size: clamp(2.75rem, 10vw, 4.1rem); }
  .chapter-lead { font-size: .99rem; }
  .chapter-points { margin-top: 2rem; }
  .chapter-visual { aspect-ratio: .95; }
  .chapter-visual figcaption { display: block; font-size: .58rem; }
  .chapter-visual figcaption span:last-child { display: block; margin-top: .3rem; }
  .sound-spectrum { width: 72%; }
  .software-stage { min-height: 520px; padding: 1.25rem; }
  .software-flow { gap: .4rem; margin-top: 3.5rem; }
  .software-flow button { min-height: 152px; padding: .9rem .55rem; }
  .software-flow small { font-size: .48rem; }
  .software-flow strong { font-size: .9rem; }
  .software-flow button > span { font-size: .62rem; }
  .software-detail { padding: 1.2rem; }
  .works-outro-grid { grid-template-columns: 1fr; align-items: start; }
}
/* Field notes: each medium has an intentional, user-controlled response. */
@media (min-width: 921px) {
  .work-film, .work-sound, .work-game { overflow: clip; }
  .work-film .chapter-visual, .work-sound .chapter-visual, .work-game .chapter-visual { position: sticky; top: 188px; align-self: start; }
}
.chapter-demo { margin-top: 1.6rem; padding: 1.25rem 1.35rem 1.35rem; border: 1px solid rgba(32, 35, 29, .22); background: rgba(255, 255, 255, .28); }
.demo-label { display: block; color: #a34930; font-size: .76rem; font-weight: 800; letter-spacing: .07em; }
.demo-label small { display: block; margin-top: .28rem; color: #62665d; font-size: .68rem; font-weight: 500; letter-spacing: 0; }
.demo-options { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.demo-options button { min-height: 38px; padding: .5rem .8rem; border: 1px solid rgba(32, 35, 29, .25); border-radius: 2px; background: transparent; color: inherit; font: 700 .74rem/1.3 var(--font-display); cursor: pointer; transition: background .24s ease, border-color .24s ease, color .24s ease, box-shadow .24s ease; }
.demo-options button:hover { border-color: #ae5135; }
.demo-options button.is-selected { border-color: #ae5135; background: #ae5135; color: #fff; box-shadow: 0 5px 16px rgba(126, 45, 25, .14); }
.demo-options button:focus-visible { outline: 2px solid #ae5135; outline-offset: 3px; }
.demo-response { min-height: 3.1em; margin: .95rem 0 0; color: #555952; font-size: .77rem; line-height: 1.65; }
.visual-mode { position: absolute; z-index: 3; top: 1.2rem; left: 1.25rem; padding: .45rem .65rem; border: 1px solid rgba(255,255,255,.45); background: rgba(12, 14, 12, .56); color: #fff; font: 700 .59rem/1.3 var(--font-latin); letter-spacing: .16em; backdrop-filter: blur(8px); }
.film-visual .frame-corners { inset: 7%; transition: inset .65s cubic-bezier(.2,.7,.2,1), opacity .65s ease; }
.work-film.is-active .frame-corners { animation: none; }
.film-visual .frame-corners[data-film-frame="close"] { inset: 16% 24%; }
.film-visual .frame-corners[data-film-frame="detail"] { inset: 23% 34%; }
.sound-demo { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.045); }
.sound-demo .demo-label { color: var(--accent-light); }
.sound-demo .demo-label small, .sound-demo .demo-response { color: #c6c7c1; }
.sound-demo .demo-options button { border-color: rgba(255,255,255,.3); color: #f5efe6; }
.sound-demo .demo-options button:hover { border-color: var(--accent-light); }
.sound-demo .demo-options button.is-selected { border-color: var(--accent-light); background: var(--accent-light); color: #181a18; }
.sound-demo .demo-options button:focus-visible { outline-color: var(--accent-light); }
.sound-spectrum { transition: width .8s ease, opacity .8s ease; }
.sound-spectrum i { transition: height .7s ease, background .7s ease; }
.sound-spectrum[data-sound-visual="ambient"] { width: 78%; opacity: .67; }
.sound-spectrum[data-sound-visual="ambient"] i:nth-child(2n) { height: 32%; }
.sound-spectrum[data-sound-visual="ambient"] i:nth-child(3n) { height: 14%; }
.sound-spectrum[data-sound-visual="ambient"] i:nth-child(7n) { height: 46%; }
.sound-spectrum[data-sound-visual="music"] { width: 64%; opacity: .95; }
.sound-spectrum[data-sound-visual="music"] i:nth-child(2n) { height: 72%; }
.sound-spectrum[data-sound-visual="music"] i:nth-child(5n) { height: 98%; }
.sound-spectrum[data-sound-visual="music"] i:nth-child(6n) { height: 26%; }
.game-route path { stroke: rgba(255,203,142,.8); stroke-width: 2; stroke-dasharray: 4 9; transition: opacity .5s ease, stroke-width .5s ease, stroke .5s ease; }
.game-route .route-common { opacity: .85; }
.game-route .route-character, .game-route .route-world { opacity: .17; }
.game-route[data-game-route="character"] .route-character,
.game-route[data-game-route="world"] .route-world { opacity: 1; stroke: #ffe0ad; stroke-width: 3; filter: drop-shadow(0 0 5px #ffe0ad); }
.work-game.is-active .game-route path { animation: none; }
.work-game.is-active .game-route[data-game-route="character"] .route-character,
.work-game.is-active .game-route[data-game-route="world"] .route-world { animation: route-flow 7s linear infinite; }
.software-stage { min-height: 530px; }
.software-flow button { min-height: 140px; }

@media (max-width: 640px) {
  .works-hero h1 span { font-size: .76em; }
  .chapter-demo { padding: 1rem; }
  .demo-options button { padding-inline: .65rem; font-size: .7rem; }
  .visual-mode { top: .8rem; left: .85rem; font-size: .53rem; }
  .software-stage { min-height: 525px; }
  .software-flow button { min-height: 148px; }
}
/* Drawn field icons replace platform-dependent glyphs. Their geometry stays fixed. */
.chapter-symbol { position: relative; width: 64px; height: 64px; background: rgba(255,255,255,.08); }
.chapter-symbol::after { position: absolute; inset: -5px; border: 1px solid currentColor; border-radius: 50%; content: ""; opacity: .13; }
.chapter-icon { display: block; width: 41px; height: 41px; overflow: visible; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chapter-icon circle:not(.icon-focus):not(.icon-pulse):not(.icon-node):not(.icon-signal) { fill: currentColor; stroke: none; }
.chapter-icon .icon-pulse, .chapter-icon .icon-node, .chapter-icon .icon-signal { fill: currentColor; stroke: none; }
.work-chapter.is-active .chapter-icon .icon-draw { animation: field-icon-draw 1.15s cubic-bezier(.2,.75,.2,1) both; }
.work-chapter.is-active .chapter-symbol::after { animation: field-icon-halo 4.6s ease-in-out infinite; }
.work-film.is-active .icon-focus { animation: field-icon-focus 4.2s ease-in-out infinite; }
.work-sound.is-active .icon-pulse, .work-game.is-active .icon-node, .work-software.is-active .icon-signal { animation: field-icon-pulse 3.4s ease-in-out infinite; }
@keyframes field-icon-draw { from { stroke-dasharray: 170; stroke-dashoffset: 170; opacity: .42; } to { stroke-dasharray: 170; stroke-dashoffset: 0; opacity: 1; } }
@keyframes field-icon-halo { 50% { opacity: .4; } }
@keyframes field-icon-focus { 50% { opacity: .48; } }
@keyframes field-icon-pulse { 50% { opacity: .28; } }
.scenz-works .button span svg, .scenz-works .chapter-link span svg,
.scenz-works .nav-contact span svg, .scenz-works .footer-intro-link span svg,
.scenz-works .footer-contact a span svg { display: block; width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.software-live { display: inline-block; width: 7px; height: 7px; margin-top: 2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(228,119,84,.1); }

/* Compact, immediate feedback for the three visual studies on small screens. */
.demo-mini { display: none; }
@media (max-width: 640px) {
  .works-index { overflow: visible; }
  .works-index-inner { width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
  .works-index a { min-width: 0; min-height: 49px; justify-content: flex-start; gap: .5rem; padding: .55rem .8rem; border-bottom: 1px solid rgba(20,21,19,.11); font-size: .72rem; }
  .works-index a:nth-of-type(2n) { border-right: 0; }
  .works-index a span { font-size: .62rem; }
  .work-chapter { scroll-margin-top: 90px; padding-block: 3.7rem 4.7rem; }
  .chapter-grid, .chapter-grid-reverse, .software-grid { gap: 2.2rem; margin-top: 2.25rem; }
  .chapter-symbol { width: 58px; height: 58px; margin-bottom: 1.35rem; }
  .chapter-icon { width: 38px; height: 38px; }
  .chapter-copy h2 { margin-bottom: 1.2rem; }
  .chapter-points { margin-top: 1.5rem; }
  .chapter-link { margin-top: 1.45rem; }
  .chapter-demo { margin-top: 1.35rem; }
  .demo-options button { min-height: 42px; }
  .software-stage { min-height: 0; }
  .software-flow { grid-template-columns: 1fr; gap: .55rem; margin-top: 1.7rem; }
  .software-flow::before { display: none; }
  .software-flow button { min-height: 82px; padding: .75rem 1rem; }
  .software-flow button::before { top: 50%; left: -5px; transform: translateY(-50%); }
  .software-flow button[aria-selected="true"] { transform: none; }
  .software-flow small { margin-bottom: .27rem; font-size: .59rem; }
  .software-flow strong { font-size: 1.03rem; }
  .software-flow button > span { margin-top: .2rem; font-size: .69rem; }
  .software-detail { margin-top: 1.1rem; }
  .software-stage-bottom { position: relative; right: auto; bottom: auto; left: auto; margin-top: 1.4rem; }
  .demo-mini { position: relative; display: block; height: 108px; margin-top: 1rem; overflow: hidden; border: 1px solid rgba(97,85,70,.25); background: linear-gradient(145deg,rgba(255,255,255,.54),rgba(169,93,62,.07)); }
  .demo-mini svg { display: block; width: 100%; height: 82px; }
  .demo-mini > span { position: absolute; bottom: .43rem; left: .7rem; color: #7b695f; font: 700 .49rem/1 var(--font-latin); letter-spacing: .12em; }
  .demo-mini path, .demo-mini rect { stroke: #a9573d; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .demo-mini circle { fill: #a9573d; }
  .film-mini .mini-landscape { opacity: .28; }
  .film-mini .mini-film-frame { transform-box: fill-box; transform-origin: center; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
  .film-mini[data-film-mini="close"] .mini-film-frame { transform: scale(.68); }
  .film-mini[data-film-mini="detail"] .mini-film-frame { transform: scale(.38); }
  .sound-mini { border-color: rgba(255,255,255,.2); background: linear-gradient(140deg,rgba(246,189,151,.1),rgba(255,255,255,.02)); }
  .sound-mini > span { color: #bcaea4; }
  .sound-mini .mini-baseline { stroke: rgba(255,255,255,.26); }
  .sound-mini .mini-wave { stroke: var(--accent-light); stroke-width: 1.8; transform-box: fill-box; transform-origin: center; transition: transform .55s ease, opacity .55s ease; }
  .sound-mini[data-sound-mini="ambient"] .mini-wave { transform: scaleY(.47); opacity: .65; }
  .sound-mini[data-sound-mini="music"] .mini-wave { transform: scaleY(1.35); }
  .work-sound.is-active .sound-mini .mini-wave { animation: mini-sound-light 3.5s ease-in-out infinite; }
  @keyframes mini-sound-light { 50% { stroke-opacity: .5; } }
  .game-mini .mini-common { stroke: #af6d4d; }
  .game-mini .mini-path-character, .game-mini .mini-path-world { transition: opacity .45s ease, stroke-width .45s ease; }
  .game-mini[data-game-mini="character"] .mini-path-world,
  .game-mini[data-game-mini="world"] .mini-path-character { opacity: .17; }
  .game-mini[data-game-mini="character"] .mini-path-character,
  .game-mini[data-game-mini="world"] .mini-path-world { stroke-width: 3; }
}
@media (max-width: 360px) {
  .works-hero h1 span { font-size: clamp(1.75rem, 8.5vw, 2rem); }
  .works-index a { gap: .35rem; padding-inline: .55rem; font-size: .67rem; }
  .chapter-copy h2 { font-size: clamp(2.25rem, 9.5vw, 2.75rem); }
}
