:root {
  --brand: #993d39;
  --brand-dark: #5f221f;
  --ink: #171717;
  --muted: #615f5d;
  --paper: #f6f3f1;
  --surface: #ffffff;
  --line: #ded6d1;
  --soft: #ebe3de;
  --accent: #2c6e70;
  --gold: #b89253;
  --shadow: 0 18px 50px rgba(42, 24, 22, 0.12);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(153, 61, 57, 0.18);
  background: rgba(246, 243, 241, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner,
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-text {
  display: grid;
  min-width: 0;
}

.brand-text strong {
  font-size: 16px;
  line-height: 1.15;
}

.brand-text span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.site-nav {
  position: relative;
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  isolation: isolate;
}

.site-nav a {
  position: relative;
  z-index: 2;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #342826;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(153, 61, 57, 0.11);
  outline: 0;
}

.site-nav a.is-active {
  color: var(--brand-dark);
}

.site-nav-indicator {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  width: var(--nav-indicator-width, 0px);
  height: 40px;
  border-radius: var(--radius);
  background: rgba(153, 61, 57, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--nav-indicator-x, 0px), -50%, 0);
  transition: transform 260ms ease, width 260ms ease, opacity 160ms ease;
}

.site-nav.has-active .site-nav-indicator {
  opacity: 1;
}

.site-nav .nav-cta {
  background: var(--brand);
  color: #fff;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--brand-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 800;
}

.page-hero,
.portal {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(29, 24, 23, 0.92), rgba(95, 34, 31, 0.84)),
    linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}

.portal {
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: center;
}

.portal-grid,
.hero-grid,
.split,
.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.portal-grid {
  padding: 54px 0;
}

.hero-grid {
  padding: 68px 0;
}

.project-hero-inner {
  max-width: 940px;
  padding: 60px 0 54px;
}

.project-hero h1 {
  max-width: 900px;
}

.film-section {
  padding-top: 48px;
}

.film-frame {
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(29, 24, 23, 0.18);
  border-radius: calc(var(--radius) + 4px);
  background: #141110;
  box-shadow: 0 24px 60px rgba(29, 24, 23, 0.22);
}

.film-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #141110;
  object-fit: contain;
}

.film-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.film-frame figcaption strong {
  color: #fff;
  font-size: 16px;
}

.project-cta-copy {
  max-width: 820px;
}

.project-cta h2 {
  max-width: 720px;
}

.project-cta-copy > p {
  max-width: 720px;
  font-size: 18px;
}

.credits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 36px;
  align-items: start;
}

.report-card {
  background: var(--soft);
  box-shadow: none;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 820;
  text-underline-offset: 3px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 880px;
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 82px);
  font-weight: 880;
  line-height: 0.98;
  letter-spacing: 0;
}

.portal h1,
.page-hero h1 {
  overflow-wrap: normal;
}

.portal h1 {
  font-size: clamp(38px, 5.2vw, 68px);
}

.page-hero h1 {
  font-size: clamp(34px, 5.6vw, 72px);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.18;
}

p {
  margin: 0 0 14px;
}

.lead,
.hero-text {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.4vw, 23px);
}

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

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.btn-light {
  border-color: var(--line);
  background: var(--surface);
  color: var(--brand-dark);
}

.btn-small {
  min-height: 42px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.portal-panel,
.logo-panel,
.side-panel,
.fact-card,
.glossary-card,
.info-card,
.ar-work-card,
.opening-card,
.opening-countdown,
.quote-card,
.source-list,
.process-card,
.mockup-card,
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portal-panel,
.logo-panel {
  padding: 26px;
  color: var(--ink);
}

.portal-logo,
.hero-logo {
  width: min(330px, 100%);
  margin: 0 auto 22px;
}

.portal-panel p,
.logo-panel p {
  color: var(--muted);
}

.portal-buttons {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.portal-button {
  display: grid;
  min-height: 74px;
  align-content: center;
  padding: 16px 18px;
  border: 1px solid rgba(153, 61, 57, 0.18);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.portal-button strong {
  font-size: 20px;
  line-height: 1.15;
}

.portal-button span {
  color: var(--muted);
  font-size: 14px;
}

.portal-button:hover,
.portal-button:focus-visible {
  border-color: rgba(153, 61, 57, 0.44);
  outline: 0;
  transform: translateY(-1px);
}

.portal-button.main {
  background: var(--brand);
  color: #fff;
}

.portal-button.main span {
  color: rgba(255, 255, 255, 0.82);
}

.portal-button.subtle {
  min-height: 56px;
  border-left-color: var(--line);
  opacity: 0.88;
}

.portal-button.subtle strong {
  font-size: 16px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--soft);
}

.section-dark {
  background: #201b1a;
  color: #fff;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p,
.content-block p,
.text p,
.fact-card p,
.glossary-card p,
.info-card p,
.ar-work-card p,
.opening-card p,
.opening-countdown p,
.process-card p,
.source-list p,
.side-panel p {
  color: var(--muted);
}

.section-dark .section-heading p,
.section-dark .content-block p,
.section-dark .side-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.facts-grid,
.cards-3,
.glossary-grid,
.ar-works-grid,
.opening-feature-grid,
.project-cards,
.gallery-grid {
  display: grid;
  gap: 16px;
}

.facts-grid,
.cards-3,
.project-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.opening-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ar-works-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.fact-card,
.glossary-card,
.info-card,
.ar-work-card,
.opening-card,
.process-card {
  padding: 22px;
}

.opening-hero h1 {
  max-width: 760px;
}

.opening-countdown {
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 243, 241, 0.98));
  color: var(--ink);
}

.opening-countdown .eyebrow {
  margin-bottom: 16px;
}

.countdown-label {
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 850;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.countdown-grid div {
  min-height: 138px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 18px;
  border: 1px solid rgba(153, 61, 57, 0.18);
  border-radius: var(--radius);
  background: #fff;
}

.countdown-grid strong {
  display: block;
  color: var(--brand);
  font-size: clamp(48px, 8vw, 78px);
  font-weight: 900;
  line-height: 0.95;
}

.countdown-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.countdown-note {
  margin-bottom: 0;
}

.opening-date {
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 880;
  line-height: 1.18;
}

.fact-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.side-panel,
.quote-card,
.source-list {
  padding: 26px;
}

.side-panel {
  align-self: start;
}

.side-panel-dark {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.small-note {
  font-size: 14px;
}

.myth-box {
  margin-top: 18px;
  padding: 16px;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
}

.myth-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 850;
}

.image-placeholder {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(153, 61, 57, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(153, 61, 57, 0.12), rgba(44, 110, 112, 0.13)),
    var(--surface);
  color: var(--ink);
}

.hero-image {
  min-height: 360px;
  display: grid;
  align-content: end;
}

.image-label {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.image-title {
  font-size: 24px;
  font-weight: 850;
  line-height: 1.12;
}

.mini-image {
  min-height: 180px;
  margin-top: 18px;
}

.project-note {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border-left: 5px solid var(--brand);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  color: var(--brand);
  font-size: 20px;
  font-weight: 900;
}

.timeline-content h3,
.timeline-content p {
  margin: 0;
}

.quote-card p {
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 760;
  line-height: 1.32;
}

.site-footer {
  background: var(--brand-dark);
  color: #fff;
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.footer-grid p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.process-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.process-list div {
  padding: 16px;
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
}

.mockup-card {
  padding: 24px;
}

.plate {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.22fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid #bbb0aa;
  border-radius: var(--radius);
  background: linear-gradient(110deg, #d4d0cc, #f4f1ee, #c5beb8);
}

.qr-mark {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 12px solid #111;
  background:
    linear-gradient(90deg, #111 18%, transparent 18% 34%, #111 34% 42%, transparent 42% 58%, #111 58% 74%, transparent 74%),
    linear-gradient(#eee, #eee);
}

.qr-mark img {
  width: 76px;
  height: 76px;
  padding: 8px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.plate-caption {
  width: 100%;
  margin-top: 14px;
}

.side-word {
  writing-mode: vertical-rl;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 900;
}

.mini-copy {
  color: #3d3937;
  font-size: 13px;
}

.mini-copy img {
  width: 80px;
  margin-bottom: 16px;
}

.mini-copy b {
  display: block;
  margin: 12px 0 3px;
}

.tile {
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: #2b2827;
  color: #fff;
  font-size: 19px;
  font-weight: 850;
}

.tile:nth-child(2) {
  background: #5b4f49;
}

.tile:nth-child(3) {
  background: #742d2b;
}

.tile:nth-child(4) {
  background: #2c6e70;
}

.reveal {
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal.is-visible {
  transform: none;
  opacity: 1;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 74px;
    right: 16px;
    left: 16px;
    display: none;
    margin: 0;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav-indicator {
    display: none;
  }

  .site-nav a.is-active {
    background: rgba(153, 61, 57, 0.11);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: grid;
  }

  .portal-grid,
  .hero-grid,
  .split,
  .credits-grid,
  .closing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .facts-grid,
  .cards-3,
  .project-cards,
  .glossary-grid,
  .gallery-grid,
  .opening-feature-grid,
  .ar-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .header-inner,
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand-text span {
    display: none;
  }

  .portal {
    min-height: auto;
  }

  .portal-grid,
  .hero-grid,
  .section {
    padding: 42px 0;
  }

  .project-hero-inner {
    padding: 46px 0 42px;
  }

  .film-section {
    padding-top: 30px;
  }

  .film-frame {
    border-radius: var(--radius);
  }

  .film-frame figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .facts-grid,
  .cards-3,
  .project-cards,
  .glossary-grid,
  .gallery-grid,
  .opening-feature-grid,
  .ar-works-grid {
    grid-template-columns: 1fr;
  }

  .plate,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .side-word {
    writing-mode: horizontal-tb;
  }

  h1 {
    font-size: 40px;
  }
}
