/* V2: coordinated atmosphere. Base layout stays in main.css. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero-shade::after { animation: none; opacity: .05; }
.hero-environment { transform: translate3d(var(--depth-x, 0px), calc(var(--depth-y, 0px) + var(--hero-scroll, 0px)), 0) scale(1.045); }
.scene-bloom, .scene-shadow, .scene-dust { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.scene-bloom { inset: -7%; background: radial-gradient(ellipse at 78% 32%, rgb(232 218 142 / .16), transparent 47%); opacity: .34; transform: translate3d(calc(var(--depth-x, 0px) * -.5), calc(var(--depth-y, 0px) * -.5), 0); }
.scene-shadow { inset: -5%; background: linear-gradient(103deg, rgb(0 0 0 / .26), transparent 40%, transparent 82%, rgb(0 0 0 / .28)); transform: translate3d(calc(var(--depth-x, 0px) * -1.8), calc(var(--depth-y, 0px) * -.7), 0); }
.scene-dust { overflow: hidden; }
.scene-dust span { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #e4dcb5; opacity: 0; left: 59%; top: 33%; }
.scene-dust span:nth-child(2) { left: 72%; top: 49%; width: 1px; height: 1px; }
.scene-dust span:nth-child(3) { left: 82%; top: 26%; }
.scene-dust span:nth-child(4) { left: 64%; top: 65%; width: 1px; height: 1px; }
.scene-dust span:nth-child(5) { left: 87%; top: 52%; }
.scene-dust span:nth-child(6) { left: 51%; top: 43%; width: 1px; height: 1px; }
.scene-dust span:nth-child(7) { left: 78%; top: 72%; }
.scene-dust span:nth-child(8) { left: 91%; top: 36%; width: 1px; height: 1px; }
body[data-motion="on"] .scene-bloom { animation: fluorescent-breathe 22s ease-in-out infinite alternate; animation-play-state: paused; }
body[data-motion="on"] .scene-dust span { animation: dust-drift 24s linear infinite; animation-play-state: paused; }
body[data-motion="on"] .scene-dust span:nth-child(2n) { animation-delay: -8s; animation-duration: 29s; }
body[data-motion="on"] .scene-dust span:nth-child(3n) { animation-delay: -17s; animation-duration: 34s; }
body[data-motion="on"] .scene-dust span:nth-child(5n) { animation-delay: -5s; animation-duration: 27s; }
body[data-motion="on"] .is-scene-active .scene-bloom,
body[data-motion="on"] .is-scene-active .scene-dust span { animation-play-state: running; }
body[data-motion="on"] .hero-eyebrow { animation: arrive 900ms cubic-bezier(.2,.65,.25,1) both; }
body[data-motion="on"] .hero-title { animation: logo-emerge 1500ms cubic-bezier(.2,.6,.25,1) 80ms both; }
body[data-motion="on"] .hero-line { animation: arrive 1100ms cubic-bezier(.2,.65,.25,1) 180ms both; }
body[data-motion="on"] .hero-actions { animation: arrive 1000ms cubic-bezier(.2,.65,.25,1) 250ms both; }
.scroll-track { overflow: hidden; position: relative; }
.scroll-track::after { content: ""; position: absolute; top: -13px; left: 0; width: 1px; height: 13px; background: #e8e8b2; }
body[data-motion="on"] .scroll-track::after { animation: scroll-trace 3.6s ease-in-out infinite; animation-play-state: paused; }
body[data-motion="on"] .is-scene-active .scroll-track::after { animation-play-state: running; }
body[data-motion="on"] [data-reveal] { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity 700ms ease, transform 850ms cubic-bezier(.2,.65,.25,1); }
body[data-motion="on"] [data-reveal].is-revealed { opacity: 1; transform: none; }
.survival-item:nth-child(3n + 2) { transition-delay: 75ms !important; }
.survival-item:nth-child(3n) { transition-delay: 150ms !important; }
.about-strip { position: relative; border-top-color: transparent; }
.about-strip::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--line); transform-origin: left; }
body[data-motion="on"] [data-draw]::before { transform: scaleX(0); transition: transform 1100ms cubic-bezier(.2,.65,.25,1); }
body[data-motion="on"] [data-draw].is-revealed::before { transform: scaleX(1); }
.world-figure { overflow: hidden; }
.world-figure > picture { transform: translate3d(0, var(--world-shift, 0px), 0) scale(1.075); }
.button { position: relative; overflow: hidden; isolation: isolate; transition: background-color 250ms, box-shadow 300ms, border-color 250ms, transform 160ms; }
.button::after { content: ""; position: absolute; inset: -70% -40%; z-index: -1; pointer-events: none; background: linear-gradient(112deg, transparent 35%, rgb(255 255 217 / .3) 49%, transparent 63%); transform: translateX(-80%); transition: transform 650ms cubic-bezier(.2,.65,.25,1); }
.button:hover::after, .button:focus-visible::after { transform: translateX(80%); }
.button:hover, .button:focus-visible { box-shadow: 0 0 34px rgb(212 209 132 / .2); }
.button:active { transform: translateY(2px); }
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ""; position: absolute; bottom: 6px; left: 0; right: 0; height: 1px; background: var(--light); transform: scaleX(0); transform-origin: left; transition: transform 260ms ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { text-decoration: none; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after, .desktop-nav a[aria-current]::after { transform: scaleX(1); }
.desktop-nav a[aria-current] { color: var(--light); }
.survival-item { position: relative; }
.survival-item::before { content: ""; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(145deg, rgb(204 198 121 / .05), transparent 70%); opacity: 0; transition: opacity 350ms; }
.survival-item:hover::before { opacity: 1; }
.survival-item:hover .item-number { color: var(--cream); }
.cta-light::after { transform: scaleX(calc(.82 + var(--arrival, .5) * .25)); opacity: calc(.58 + var(--arrival, .5) * .42); transition: opacity 250ms; }
.final-cta:focus-within .cta-light::after, .final-cta:has(.button:hover) .cta-light::after { opacity: 1; }
.light-study { margin-top: 58px; border: 1px solid var(--line); display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; background: #000000; }
.light-study-image { position: relative; overflow: hidden; aspect-ratio: 16 / 9; align-self: center; background: #000; }
.light-study-image img { width: 100%; height: 100%; object-fit: cover; }
.light-study-image figcaption { position: absolute; left: 20px; bottom: 18px; font-family: var(--mono); font-size: .75rem; color: #e5e2c9; padding: 6px 9px; background: rgb(0 0 0 / .86); }
.light-study-copy { padding: clamp(26px, 3.3vw, 48px); }
.light-study-copy > .eyebrow { color: var(--muted); margin-bottom: 16px; }
.light-study-copy h3 { font-size: clamp(1.5rem, 2.1vw, 2rem); font-weight: 400; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 18px; }
.light-study-copy > p:not(.eyebrow) { color: var(--muted); max-width: 410px; }
.light-study-copy .study-note { margin-top: 22px; font-size: .75rem; line-height: 1.65; }
.motion-control { position: fixed; z-index: 35; right: 22px; bottom: 20px; display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 14px; font: .75rem var(--mono); letter-spacing: .02em; color: #d5d5b9; background: #000000; border: 1px solid #56583c; box-shadow: 0 4px 20px rgb(0 0 0 / .22); cursor: pointer; }
.motion-control:hover { background: #222517; border-color: #b9ba79; }
.motion-control[aria-disabled="true"] { cursor: default; }
.motion-symbol { display: flex; gap: 3px; height: 14px; align-items: center; }
.motion-symbol i { display: block; height: 12px; width: 1px; background: var(--light); }
.motion-symbol i:first-child, .motion-symbol i:last-child { height: 6px; }
.motion-control[aria-pressed="false"] .motion-symbol i { height: 1px; }
.site-footer { padding-bottom: 80px; }
body[data-motion="on"] .mobile-menu[open] .mobile-nav { animation: menu-arrive 260ms ease-out both; }
body[data-motion="on"] .mobile-menu[open] .mobile-nav a { animation: arrive 340ms ease-out both; }
body[data-motion="on"] .mobile-menu[open] .mobile-nav a:nth-child(2) { animation-delay: 25ms; }
body[data-motion="on"] .mobile-menu[open] .mobile-nav a:nth-child(3) { animation-delay: 50ms; }
body[data-motion="on"] .mobile-menu[open] .mobile-nav a:nth-child(4) { animation-delay: 75ms; }
body[data-motion="on"] .mobile-menu[open] .mobile-nav a:nth-child(5) { animation-delay: 100ms; }
body[data-motion="on"] .mobile-menu[open] .mobile-nav a:nth-child(6) { animation-delay: 125ms; }
.credits-hero { isolation: isolate; position: relative; overflow: hidden; background: #000000; padding-top: 190px; padding-bottom: 80px; }
.credits-background { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(0 0 0 / .94), rgb(0 0 0 / .44)), linear-gradient(0deg, var(--ink), transparent 90%), url('../images/level-zero-pillar.png') 35% 40% / cover; transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), 0) scale(1.045); }
.credits-heading .eyebrow { color: var(--muted); margin-bottom: 22px; }
.credits-heading h1 { font-size: clamp(4.5rem, 10vw, 10rem); line-height: 1; font-weight: 400; letter-spacing: -.055em; }
.credits-heading h1 span { color: var(--light); }
.credits-heading > p:last-child { margin-top: 26px; font-size: 1.25rem; color: #ceceba; }
body[data-motion="on"] .credits-heading { animation: arrive 1100ms cubic-bezier(.2,.65,.25,1) both; }
.credit-group { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12%; padding-top: 76px; padding-bottom: 76px; }
.credit-group-heading .eyebrow { color: var(--muted); margin-bottom: 22px; }
.credit-group-heading h2 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.1; }
.credit-people { border-top: 1px solid var(--line); }
.credit-row { border-bottom: 1px solid var(--line); padding: 28px 0 34px; }
.credit-row h3 { font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.credit-row p { margin-top: 16px; color: var(--muted); max-width: 480px; }
.credit-row a { color: var(--light); text-underline-offset: 7px; }
.credit-artwork { padding-top: 10px; }
.credit-artwork .credit-row h3 { font-size: 1.5rem; }
.credits-return { padding-top: 28px; padding-bottom: 90px; border-top: 1px solid var(--line); }
.credits-return > p { font-size: 1.25rem; color: var(--muted); }
.credits-return > div { margin-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.credits-return .text-link { margin: 0; }
@keyframes fluorescent-breathe { from { opacity: .25; } to { opacity: .55; } }
@keyframes dust-drift { 0% { transform: translate3d(0, 12px, 0); opacity: 0; } 20% { opacity: .25; } 75% { opacity: .15; } 100% { transform: translate3d(-25px, -60px, 0); opacity: 0; } }
@keyframes arrive { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
@keyframes logo-emerge { from { opacity: .08; transform: translate3d(0, 10px, 0) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes scroll-trace { 0%, 15% { transform: translateY(0); opacity: 0; } 30%, 70% { opacity: .75; } 100% { transform: translateY(49px); opacity: 0; } }
@keyframes menu-arrive { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1040px) and (min-width: 901px) {
  .desktop-nav { gap: 12px; }
  .header-inner { gap: 18px; }
}
@media (max-width: 900px) {
  .scene-dust span:nth-child(n + 5) { display: none; }
  .light-study { grid-template-columns: 1fr; }
.light-study-image { position: relative; overflow: hidden; aspect-ratio: 16 / 9; align-self: center; background: #000; }
  .light-study-copy { padding: 32px; }
  .light-study-copy > p:not(.eyebrow) { max-width: none; }
  .motion-control { right: 16px; bottom: 16px; }
  .credit-group { gap: 8%; }
}
@media (max-width: 650px) {
  .hero-environment { transform: scale(1.03); }
  .scene-shadow { transform: none; }
  .scene-dust span:nth-child(n + 4) { display: none; }
  .scene-dust span { left: 64%; }
  .light-study { margin-top: 34px; }
.light-study-image { position: relative; overflow: hidden; aspect-ratio: 16 / 9; align-self: center; background: #000; }
  .light-study-copy { padding: 26px; }
  .light-study-copy h3 { font-size: 1.7rem; }
  .survival-item:nth-child(n) { transition-delay: 0ms !important; }
  .site-footer { padding-bottom: 100px; }
  .credits-hero { padding-top: 150px; padding-bottom: 62px; }
  .credits-heading h1 { font-size: clamp(4rem, 17vw, 6rem); }
  .credit-group { grid-template-columns: 1fr; gap: 30px; padding-top: 58px; padding-bottom: 58px; }
  .credit-artwork { padding-top: 0; }
  .credit-row { padding-top: 24px; padding-bottom: 26px; }
  .credits-return > div { align-items: start; flex-direction: column; }
  .credits-return { padding-bottom: 70px; }
}
/* Decorative motion can always be stopped. Interactive controls still work. */
body[data-motion="off"] *, body[data-motion="off"] *::before, body[data-motion="off"] *::after { animation: none !important; transition: none !important; }
body[data-motion="off"] [data-reveal] { opacity: 1 !important; transform: none !important; }
body[data-motion="off"] [data-draw]::before { transform: scaleX(1) !important; }
body[data-motion="off"] .hero-environment, body[data-motion="off"] .world-figure > picture, body[data-motion="off"] .credits-background { transform: none !important; }
body[data-motion="off"] .scene-shadow, body[data-motion="off"] .scene-bloom { transform: none !important; }
body[data-motion="off"] .scene-dust { display: none; }
body[data-motion="off"] .button:active { transform: none; }
body[data-motion="off"] .cta-light::after { transform: none; opacity: 1; }
body[data-active="false"] *, body[data-active="false"] *::before, body[data-active="false"] *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-draw]::before { transform: scaleX(1) !important; }
  .hero-environment, .world-figure > picture, .credits-background, .scene-shadow, .scene-bloom { transform: none !important; }
  .scene-dust { display: none; }
  .button:active { transform: none; }
  .cta-light::after { transform: none; opacity: 1; }
}
@media (forced-colors: active) {
  .scene-bloom, .scene-shadow, .scene-dust, .credits-background { display: none; }
  .motion-control, .credit-people, .credit-row, .light-study { border-color: CanvasText; }
}

/* Developer portraits stay to the left at every screen size. */
.credit-developer { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: center; }
.developer-portrait { width: 112px; aspect-ratio: 1; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #24271a; display: grid; place-items: center; }
.portrait-initials { font-family: var(--mono); font-size: 2rem; color: var(--light); }
.developer-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.developer-details { min-width: 0; }
.credit-developer p { margin-top: 12px; }
@media (max-width: 600px) {
  .credit-developer { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .developer-portrait { width: 72px; }
  .portrait-initials { font-size: 1.5rem; }
}

/* Refined team credits: original portraits, equal visual prominence. */
.team-section { padding-top: 64px; padding-bottom: 80px; }
.team-intro { max-width: 680px; margin-bottom: 42px; }
.team-intro .eyebrow { color: var(--muted); margin-bottom: 18px; }
.team-intro h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.15; }
.team-intro > p:last-child { color: var(--muted); margin-top: 20px; line-height: 1.7; }
.team-roster { border-top: 1px solid var(--line); }
.developer-card { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: 44px 0; border-bottom: 1px solid var(--line); }
.team-portrait { aspect-ratio: 4 / 5; border: 1px solid var(--line); background: #000000; padding: 8px; border-radius: 5px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.team-portrait img { display: block; width: 100%; height: 100%; object-fit: contain; }
.team-details { min-width: 0; }
.team-discipline { color: var(--muted); line-height: 1.7; }
.team-details h3 { font-weight: 400; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.035em; line-height: 1.15; margin-top: 12px; overflow-wrap: anywhere; }
.team-title { color: var(--light); font-size: 1.1rem; line-height: 1.6; margin-top: 16px; }
.team-roles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.team-roles li { border: 1px solid var(--line); padding: 6px 10px; border-radius: 3px; color: #ceceba; font-size: .85rem; line-height: 1.5; }
.team-description { margin-top: 20px; max-width: 620px; color: var(--muted); line-height: 1.8; }
@media (max-width: 600px) {
 .team-section { padding-top: 42px; padding-bottom: 54px; }
 .developer-card { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: start; padding: 30px 0; }
 .team-portrait { padding: 4px; }
 .team-details h3 { font-size: 1.8rem; }
 .team-title { font-size: 1rem; }
 .team-discipline { font-size: .62rem; letter-spacing: .08em; }
 .team-description { font-size: .9rem; }
}
