/* Apple font files stay on the visitor's device. */
@font-face {
  font-family: "GGDS SF Mono";
  src: local("SFMono-Light"), local("SF Mono Light");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "GGDS SF Mono";
  src: local("SFMono-Bold"), local("SF Mono Bold");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("fonts/RobotoMono-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #050607;
  --fg: #e8ecee;
  --dim: #a2abb0;
  --line: #d6e6ef26;
  --space: clamp(20px, 5vw, 96px);
  --mono: "GGDS SF Mono", "Roboto Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--mono); font-weight: 200; font-synthesis: none; font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #d8ebf4; outline-offset: 6px; }
::selection { background: #dce5eb; color: #050607; }
.skip { position: fixed; top: -100px; left: 24px; z-index: 10; padding: 16px; color: #050607; background: #fff; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

header { position: absolute; inset: 0 0 auto; z-index: 3; height: 104px; padding: 0 var(--space); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.brand-logo { display: flex; align-items: center; width: fit-content; }
.brand-logo img { width: 88px; height: 38px; object-fit: contain; }
nav { display: flex; gap: 40px; font-size: 14px; letter-spacing: .02em; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
nav a, footer a { transition: color .25s; }
nav a:hover, footer a:hover { color: var(--dim); }
#light { justify-self: end; display: flex; align-items: center; gap: 10px; border: 0; padding: 10px 0 10px 12px; min-height: 44px; min-width: 44px; background: none; font-size: 14px; }
.light-icon { font-size: 22px; }
.light-text { color: #c8d1d6; }

.hero { position: relative; min-height: max(760px, 100svh); height: auto; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 54px; padding: 122px var(--space) 32px; }
.hero-center { position: relative; width: 100%; min-width: 0; }
.hero-scene { position: absolute; inset: 0; background: url('atmosphere-space.png') center top / cover no-repeat; opacity: .7; filter: brightness(.8); transition: filter 1.4s, opacity 1.4s; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, #05060750, #05060700 42%, #05060785 80%, var(--bg)); }
.hero-meta { position: relative; display: flex; justify-content: space-between; gap: 28px; margin-bottom: 18px; color: #d1dbe1; font-family: var(--mono); font-size: 12px; line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; }
.hero-meta span:last-child { text-align: right; }
.hero-logo { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin: 0; width: 100%; height: clamp(200px, 21vw, 340px); min-height: 180px; }
.hero-logo model-viewer { width: 100%; height: 100%; background: transparent; --poster-color: transparent; --progress-bar-color: transparent; cursor: grab; }
.hero-logo model-viewer:active { cursor: grabbing; }
.hero-logo model-viewer img { object-fit: contain; width: 100%; height: 100%; }
.hero-brand-name { position: relative; z-index: 1; margin: 18px 0 0; text-align: center; text-transform: uppercase; font-size: 14px; letter-spacing: .5em; color: #e1e8eb; line-height: 1.7; }
.model-controls { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 16px; color: #c0ccd3; font-size: 14px; }
.model-controls span { color: #c0ccd3; }
.model-controls button { border: 0; border-bottom: 1px solid #cbdce438; background: transparent; padding: 10px 0; min-height: 44px; font-size: 14px; }
.model-controls button:hover { color: #fff; border-color: #e1e8eb; }
.model-controls button[aria-pressed=true] { color: #fff; border-color: #e1e8eb; }
.model-controls button:disabled { opacity: .4; cursor: default; }
.hero-bottom { position: relative; width: 100%; margin-top: auto; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; }
.hero-bottom p { font-size: 16px; line-height: 1.6; margin: 0; color: #c8d1d6; }
.enter { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 18px; text-transform: uppercase; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; }
.enter-line { height: 32px; width: 1px; background: linear-gradient(#e4eef3, #e4eef300); }
.hero-number { justify-self: end; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--dim); }

.world, .perspectives, .closing { padding: 80px var(--space) 120px; }
.section-label { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; color: var(--dim); text-transform: uppercase; font-family: var(--mono); font-size: 12px; line-height: 1.7; letter-spacing: .14em; }
.section-label h2 { font: inherit; font-weight: 700; margin: 0; }
.section-label > span:last-child { text-align: right; }
.world h2, .closing h2 { font-size: clamp(40px, 7.35vw, 150px); line-height: 1.12; letter-spacing: -.035em; font-weight: 700; margin: 110px 0 88px; }
.world h2 em, .closing h2 em { font: inherit; color: #a0abb1; }
.world-bottom { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: 36px; }
.studio-code { align-self: start; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--dim); }
.world-bottom p { max-width: 470px; margin: 0; font-size: 18px; line-height: 1.75; color: #b3bdc3; }
.text-link { justify-self: end; border-bottom: 1px solid #cbdce450; padding-bottom: 9px; font-size: 14px; white-space: nowrap; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 70px; }
.gallery-item { position: relative; overflow: hidden; min-width: 0; width: 100%; background: #020304; border: 0; border-top: 1px solid var(--line); padding: 0; text-align: left; aspect-ratio: 3 / 4; min-height: 440px; }
.gallery-image { position: absolute; inset: 0; background: center top / cover no-repeat; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter 1.2s; }
.form .gallery-image { background-image: url('form-space.png'); }
.light .gallery-image { background-image: url('light-space.png'); }
.silence .gallery-image { background-image: url('atmosphere-space.png'); }
.gallery-item:hover .gallery-image { transform: scale(1.035); filter: brightness(1.12); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,#02030424,transparent 30%,#02030400 55%,#020304f5 100%); pointer-events: none; }
.gallery-top, .gallery-caption, .view-label { position: absolute; z-index: 1; }
.gallery-top { top: 24px; left: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: #b8c5cd; }
.gallery-caption { left: 24px; right: 24px; bottom: 70px; display: flex; flex-direction: column; gap: 15px; }
.gallery-caption strong { font-size: clamp(24px, 2.3vw, 44px); line-height: 1.2; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; overflow-wrap: break-word; }
.gallery-caption > span { font-size: 16px; line-height: 1.6; color: #aebbc3; }
.view-label { left: 24px; bottom: 26px; font-size: 14px; border-bottom: 1px solid #cbdce455; padding-bottom: 6px; }
.closing { position: relative; overflow: hidden; min-height: 750px; padding-bottom: 160px; }
.closing h2 { position: relative; z-index: 1; margin: 110px 0 170px; }
.closing-signature { position: absolute; left: 28%; right: -7%; bottom: -8%; opacity: .1; pointer-events: none; user-select: none; }
.closing-signature img { display: block; width: 100%; height: auto; }
footer { padding: 32px var(--space); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
footer > span, footer > a:last-child { font-size: 14px; color: var(--dim); }

dialog { width: min(1100px, 94vw); height: min(820px, 90svh); padding: 0; border: 1px solid var(--line); background: #020304; color: var(--fg); overflow: hidden; }
dialog::backdrop { background: #000d; backdrop-filter: blur(10px); }
.viewer-image { position: absolute; inset: 0; background: center 35% / contain no-repeat; }
.viewer-image.form { background-image: url('form-space.png'); }
.viewer-image.light { background-image: url('light-space.png'); }
.viewer-image.silence { background-image: url('atmosphere-space.png'); }
.viewer-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 58%, #020304); }
.close { position: absolute; right: 24px; top: 24px; background: #050607c9; border: 1px solid var(--line); padding: 12px 18px; z-index: 2; display: flex; gap: 20px; align-items: center; font-size: 14px; }
.close span { font-size: 24px; }
.viewer-caption { position: absolute; bottom: 36px; left: 36px; right: 36px; }
.viewer-caption h2 { font-size: clamp(26px, 5vw, 64px); font-weight: 700; margin: 0 0 16px; letter-spacing: .025em; text-transform: uppercase; overflow-wrap: anywhere; }
.viewer-caption p { font-size: 16px; line-height: 1.6; margin: 0; color: #b7c3cb; }
body.illuminated .hero-scene { filter: brightness(1.3); opacity: 1; }

@media (min-width: 1800px) {
  .world, .perspectives, .closing, footer { padding-left: max(var(--space), calc((100vw - 1800px) / 2)); padding-right: max(var(--space), calc((100vw - 1800px) / 2)); }
}
@media (max-width: 1050px) {
  .world-bottom { grid-template-columns: .5fr 1.4fr; }
  .text-link { grid-column: 2; justify-self: start; }
  .gallery { gap: 16px; }
  .gallery-item { min-height: 450px; }
  .gallery-caption { left: 18px; right: 18px; }
  .gallery-top, .view-label { left: 18px; }
  .gallery-caption strong { font-size: 22px; letter-spacing: .035em; }
}
@media (max-width: 760px) {
  header { height: 88px; grid-template-columns: auto 1fr auto; gap: 20px; }
  .brand-logo img { width: 66px; height: 32px; }
  nav { justify-self: center; gap: 20px; font-size: 14px; }
  #light { padding: 10px 0; }
  .light-text { display: none; }
  .hero { min-height: max(690px, 100svh); height: auto; gap: 64px; padding: 112px var(--space) 32px; }
  .hero-scene { background-position: center top; }
  .hero-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; font-size: 12px; letter-spacing: .075em; margin-bottom: 18px; }
  .hero-logo { height: clamp(150px, 42vw, 290px); min-height: 150px; flex-shrink: 0; }
  .hero-brand-name { font-size: 14px; letter-spacing: .2em; margin-top: 20px; }
  .model-controls { gap: 12px 22px; margin-top: 20px; }
  .model-controls button { font-size: 13px; }
  .model-controls span { width: 100%; text-align: center; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
  .hero-bottom p { font-size: 16px; }
  .hero-number { display: none; }
  .enter { justify-self: end; font-size: 12px; gap: 14px; }
  .world, .perspectives, .closing { padding: 50px var(--space) 80px; }
  .section-label { font-size: 12px; letter-spacing: .08em; padding-top: 20px; }
  .world h2, .closing h2 { font-size: clamp(30px, 8.2vw, 62px); line-height: 1.2; letter-spacing: -.025em; margin: 80px 0 55px; }
  .world-bottom { grid-template-columns: 1fr; gap: 30px; }
  .studio-code { display: none; }
  .world-bottom p { font-size: 17px; max-width: 440px; }
  .text-link { grid-column: 1; }
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 45px; }
  .gallery-item { min-height: 480px; aspect-ratio: 4 / 5; }
  .gallery-top { top: 24px; left: 24px; }
  .gallery-caption { left: 24px; right: 24px; bottom: 72px; }
  .gallery-caption strong { font-size: clamp(24px, 6.2vw, 40px); letter-spacing: .035em; }
  .view-label { left: 24px; }
  .closing { min-height: 560px; }
  .closing h2 { margin: 80px 0 140px; }
  .closing-signature { left: 7%; right: -20%; bottom: 0; }
  footer { flex-wrap: wrap; padding: 28px var(--space); }
  footer > span { flex-basis: 100%; order: 3; }
  dialog { height: 88svh; width: 95vw; }
  .viewer-image { background-position: center 30%; background-size: cover; }
  .viewer-caption { left: 24px; right: 24px; bottom: 28px; }
  .close { right: 18px; top: 18px; }
}
@media (max-width: 420px) {
  header { gap: 10px; }
  .brand-logo img { width: 48px; }
  nav { gap: 10px; letter-spacing: 0; }
  .hero-meta { letter-spacing: .04em; }
  .hero-brand-name { letter-spacing: .12em; }
  .hero-bottom p { font-size: 14px; }
  .hero-bottom { gap: 12px; }
  .section-label { gap: 16px; letter-spacing: .04em; }
}
@media (max-height: 600px) and (min-width: 761px) {
  .hero { min-height: 620px; padding-top: 108px; gap: 30px; }
  .hero-logo { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
