:root {
  color-scheme: dark;
  --ink: #f4f0e8;
  --muted: #b9b6ad;
  --panel: #181b1e;
  --panel-strong: #20252a;
  --line: #343c40;
  --teal: #67d7c1;
  --amber: #e9b454;
  --rust: #b96b4f;
  --bg: #0d0f10;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(13, 15, 16, 0.74);
  border-bottom: 1px solid rgba(244, 240, 232, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a:hover,
footer a:hover {
  color: var(--teal);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 15, 16, 0.96), rgba(13, 15, 16, 0.62) 46%, rgba(13, 15, 16, 0.2)),
    linear-gradient(0deg, var(--bg), rgba(13, 15, 16, 0.08) 42%);
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 128px 0 118px;
}

.hero-copy p,
.section-heading p {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  font-size: 6.8rem;
}

h2 {
  max-width: 760px;
  font-size: 3.8rem;
}

h3 {
  font-size: 1.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions a {
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid rgba(244, 240, 232, 0.22);
  background: rgba(244, 240, 232, 0.08);
  font-weight: 800;
}

.hero-actions a:first-child {
  background: var(--amber);
  border-color: var(--amber);
  color: #15110a;
}

.band {
  padding: clamp(56px, 8vw, 110px) clamp(18px, 4vw, 54px);
}

.band:nth-of-type(odd) {
  background: #0f1112;
}

.section-heading {
  margin: 0 auto 34px;
  width: min(1180px, 100%);
}

.feature-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature,
.wide-showcase {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}

.feature-large {
  grid-row: span 2;
}

.feature img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.feature-large img {
  height: 640px;
}

.feature > div,
.wide-showcase div {
  padding: 18px;
}

.feature p,
.wide-showcase p {
  margin: 8px 0 0;
}

.character-band {
  background: #121111;
}

.props-band {
  background: #101312;
}

.character-grid,
.asset-grid,
.corridor-study,
.apartment-study,
.process-strip,
.technical-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.character-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.asset-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.corridor-study,
.apartment-study {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.process-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.technical-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

figure {
  margin: 0;
  min-width: 0;
  background: #1a1c1d;
  border: 1px solid #333739;
}

figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #111;
}

.model-card {
  position: relative;
}

.model-launcher {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.model-launcher img {
  pointer-events: none;
}

.model-launcher::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(244, 240, 232, 0.74);
  background:
    linear-gradient(135deg, transparent 45%, rgba(244, 240, 232, 0.74) 46%, rgba(244, 240, 232, 0.74) 53%, transparent 54%),
    rgba(13, 15, 16, 0.7);
  box-shadow: inset 0 0 0 5px rgba(13, 15, 16, 0.5);
}

.model-card:hover img,
.model-launcher:focus-visible img {
  filter: brightness(1.08);
}

.model-launcher:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

figcaption {
  min-height: 42px;
  display: grid;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.wide-showcase {
  width: min(1180px, 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  align-items: center;
}

.wide-showcase img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}

.prop-board {
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-row: auto;
}

.prop-board img {
  height: auto;
  object-fit: contain;
  background: #101213;
}

.asset-grid figure img {
  aspect-ratio: 6 / 5;
}

.process-strip figure img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.corridor-study figure img,
.apartment-study figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.technical-grid figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.language-panel {
  width: min(1180px, 100%);
  margin: 18px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
}

.language-panel h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-list li {
  padding: 8px 11px;
  border: 1px solid rgba(244, 240, 232, 0.15);
  background: #151819;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.philosophy-band {
  background: #101312;
  padding-top: clamp(48px, 6vw, 78px);
}

.philosophy-copy {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.philosophy-copy .section-heading {
  width: auto;
  margin: 0;
}

.philosophy-text {
  max-width: 760px;
  padding-top: 4px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
}

.philosophy-text p {
  margin: 0;
}

.philosophy-text p + p {
  margin-top: 18px;
}

.tech-grid .feature img {
  object-position: top center;
}

#technical {
  padding-bottom: clamp(48px, 6vw, 78px);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.model-theatre-open,
.model-theatre-open body {
  overflow: hidden;
}

.model-theatre {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 34px);
  background: rgba(4, 5, 6, 0.86);
  backdrop-filter: blur(16px);
  opacity: 1;
  pointer-events: auto;
}

.model-theatre[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.model-theatre-stage {
  position: relative;
  width: min(1280px, 100%);
  height: min(820px, calc(100vh - 48px));
  min-height: 420px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 42px;
  overflow: hidden;
  background: #090b0c;
  border: 1px solid rgba(244, 240, 232, 0.2);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

.model-theatre-viewport {
  min-width: 0;
  min-height: 0;
}

.model-theatre-viewport canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.model-theatre-caption {
  display: grid;
  align-items: center;
  padding: 0 16px;
  color: var(--muted);
  background: #151819;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  font-size: 0.84rem;
}

.model-theatre-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 240, 232, 0.24);
  background: rgba(13, 15, 16, 0.76);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.model-theatre-close:hover,
.model-theatre-close:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .feature-grid,
  .wide-showcase {
    grid-template-columns: 1fr;
  }

  .character-grid,
  .asset-grid,
  .corridor-study,
  .apartment-study,
  .process-strip,
  .technical-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .philosophy-copy {
    grid-template-columns: 1fr;
  }

  .feature-large img,
  .feature img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

}

@media (max-width: 620px) {
  nav {
    display: none;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  h1,
  h2,
  h3 {
    line-height: 1.18;
  }

  h1 {
    line-height: 1.3;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-copy {
    padding-bottom: 84px;
  }

  .character-grid,
  .asset-grid,
  .apartment-study,
  .process-strip,
  .technical-grid {
    grid-template-columns: 1fr;
  }

  .corridor-study {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  figure img {
    aspect-ratio: 16 / 12;
  }

  .model-theatre-stage {
    height: calc(100vh - 24px);
    min-height: 0;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
