:root {
  --ink: #172522;
  --paper: #f7f7f2;
  --white: #ffffff;
  --green: #176b5b;
  --green-bright: #5fc7a7;
  --coral: #ef765f;
  --sun: #f4c84a;
  --sky: #4b95bc;
  --muted: #61706c;
  --line: rgba(23, 37, 34, 0.14);
  --shadow: 0 18px 55px rgba(18, 35, 32, 0.14);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  letter-spacing: 0;
}
body, button, a { font-size: 16px; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -60px; padding: 10px 14px; background: var(--white); border-radius: 4px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 68px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.26);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; font-weight: 700; font-size: 13px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; }
.brand small { font-size: 11px; opacity: .74; margin-top: 2px; }
.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a { color: inherit; text-decoration: none; font-size: 13px; font-weight: 600; }
.desktop-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.icon-button { justify-self: end; width: 42px; height: 42px; display: grid; place-items: center; color: inherit; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.48); border-radius: 50%; cursor: pointer; }
.icon-button svg { width: 18px; }

.hero { position: relative; min-height: min(860px, 88vh); color: var(--white); overflow: hidden; background: #213a35; }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide { object-fit: cover; opacity: 0; transform: scale(1.035); transition: opacity 1.2s ease, transform 7s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade { background: rgba(12, 24, 21, .54); }
.hero-content { position: relative; z-index: 2; min-height: min(860px, 88vh); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: min(760px, calc(100% - 40px)); margin: 0 auto; padding-top: 76px; text-align: center; }
.hero-content > * { align-self: center; }
.eyebrow { margin: 0 0 15px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; }
.eyebrow.dark { color: var(--green); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: 0; }
h1 { max-width: 900px; margin: 0; font-size: clamp(52px, 7.2vw, 105px); line-height: .98; }
.hero-copy { max-width: 680px; margin: 24px 0 0; font-size: clamp(17px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 19px; border: 1px solid transparent; border-radius: 6px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button svg { width: 17px; }
.button-primary { color: var(--ink); background: var(--white); }
.button-quiet { color: var(--white); background: rgba(0,0,0,.18); border-color: rgba(255,255,255,.62); }
.button-dark { color: var(--white); background: var(--ink); }
.button-accent { color: var(--ink); background: var(--sun); }
.button:hover { transform: translateY(-2px); }
.hero-status { position: absolute; z-index: 3; left: clamp(20px, 4vw, 68px); bottom: 30px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.pulse-dot { width: 7px; height: 7px; background: var(--green-bright); border-radius: 50%; box-shadow: 0 0 0 5px rgba(95,199,167,.2); }
.slide-dots { display: flex; gap: 5px; margin-left: 6px; }
.slide-dots button { width: 22px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.38); cursor: pointer; }
.slide-dots button.is-active { background: var(--white); }
.hero-next { position: absolute; z-index: 3; right: clamp(20px, 4vw, 68px); bottom: 22px; width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }

.intro-band { padding: 94px clamp(20px, 5vw, 80px) 110px; }
.section-heading { max-width: 790px; margin: 0 auto 46px; text-align: center; }
.section-heading h2, .memory-copy h2, .final-band h2, .portal-strip h2 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.05; }
.section-heading > p:last-child { margin: 20px auto 0; color: var(--muted); line-height: 1.7; font-size: 17px; }
.world-switcher { width: min(760px, 100%); margin: 0 auto 22px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--white); border-radius: 8px; overflow: hidden; }
.world-tab { min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 8px; color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); cursor: pointer; font-weight: 700; }
.world-tab:last-child { border-right: 0; }
.world-tab svg { width: 18px; }
.world-tab.is-active { color: var(--white); background: var(--green); }
.world-stage { width: min(1180px, 100%); min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr); margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.world-visual { position: relative; min-height: 560px; overflow: hidden; background: #dce7e3; }
.world-visual img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease, transform .8s ease; }
.world-stage.is-changing .world-visual img { opacity: .25; transform: scale(1.025); }
.image-note { position: absolute; left: 20px; bottom: 18px; margin: 0; padding: 9px 12px; color: var(--white); background: rgba(17,34,30,.8); border-radius: 4px; font-size: 12px; font-weight: 700; }
.route-track { position: absolute; left: 9%; right: 9%; top: 12%; height: 42px; border-top: 2px dotted rgba(255,255,255,.85); border-radius: 50%; transform: rotate(-5deg); }
.route-track span, .route-track b { position: absolute; top: -6px; width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: var(--coral); }
.route-track span { left: 0; }
.route-track b { left: 0; background: var(--sun); animation: routeTravel 7s ease-in-out infinite; }
@keyframes routeTravel { 0% { left: 0; } 50% { left: calc(100% - 10px); } 100% { left: 0; } }
.world-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(34px, 5vw, 68px); }
.world-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 28px; color: var(--white); background: var(--green); border-radius: 50%; }
.world-icon svg { width: 21px; }
.world-copy h3 { margin: 0 0 18px; font-size: clamp(38px, 4vw, 56px); }
.world-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.7; }
.stat-row { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 32px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-row span { color: var(--muted); font-size: 11px; }
.stat-row strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 21px; }

.portal-strip { min-height: 650px; display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 7vw; padding: 88px clamp(20px, 7vw, 110px); color: var(--white); background: var(--green); overflow: hidden; }
.portal-strip-copy { max-width: 560px; }
.portal-strip-copy p:not(.eyebrow) { margin: 23px 0; color: rgba(255,255,255,.8); line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-link svg { width: 17px; }
.portal-postcards { position: relative; min-height: 470px; }
.postcard { position: absolute; margin: 0; padding: 9px 9px 34px; background: var(--white); color: var(--ink); box-shadow: 0 18px 45px rgba(5,25,20,.25); border-radius: 4px; }
.postcard img { width: 100%; height: 100%; object-fit: cover; }
.postcard figcaption { position: absolute; left: 12px; bottom: 9px; font-size: 11px; font-weight: 700; }
.postcard-a { width: 48%; height: 64%; left: 0; top: 17%; transform: rotate(-3deg); }
.postcard-b { width: 43%; height: 70%; right: 2%; top: 0; transform: rotate(3deg); }
.postcard-c { width: 39%; height: 52%; left: 35%; bottom: 0; transform: rotate(1deg); }

.numbers-band { padding: 98px clamp(20px, 5vw, 80px); background: var(--white); }
.section-heading.compact { margin-bottom: 48px; }
.number-grid { width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.number-item { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; text-decoration: none; border-right: 1px solid var(--line); }
.number-item:last-child { border-right: 0; }
.number-item svg { width: 22px; color: var(--coral); margin-bottom: 19px; }
.number-item strong { font-family: "Fraunces", Georgia, serif; font-size: 42px; }
.number-item span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.number-item:hover { background: var(--paper); }

.memory-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 6vw; align-items: center; padding: 100px clamp(20px, 7vw, 110px); background: #e8edea; }
.memory-copy p:not(.eyebrow) { margin: 20px 0 28px; color: var(--muted); line-height: 1.7; }
.memory-result { position: relative; min-height: 490px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--ink); }
.memory-result img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.memory-result::after { content: ""; position: absolute; inset: auto 0 0; height: 48%; background: rgba(9,22,19,.7); }
.memory-result > div { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 27px; color: var(--white); }
.memory-result span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; }
.memory-result h3 { margin: 7px 0 14px; font-size: clamp(29px, 4vw, 48px); }
.memory-result a { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; text-decoration: none; }
.memory-result a svg { width: 17px; }

.final-band { padding: 105px clamp(20px, 6vw, 96px); color: var(--white); background: var(--ink); text-align: center; }
.door-grid { width: min(1180px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); margin: 50px auto 0; border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.door-grid a { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-decoration: none; border-right: 1px solid rgba(255,255,255,.2); }
.door-grid a:last-child { border-right: 0; }
.door-grid a > svg:first-child { color: var(--sun); width: 24px; margin-bottom: 8px; }
.door-grid a > svg:last-child { width: 16px; margin-top: 7px; opacity: .65; }
.door-grid strong { font-family: "Fraunces", Georgia, serif; font-size: 24px; }
.door-grid span { max-width: 190px; color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.5; }
.door-grid a:hover { background: rgba(255,255,255,.07); }

footer { min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 30px clamp(20px, 5vw, 80px); color: var(--muted); background: var(--paper); }
.footer-brand { color: var(--ink); }
footer p { text-align: center; font-size: 12px; }
.back-top { justify-self: end; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.back-top svg { width: 17px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero { min-height: 780px; }
  .hero-content { min-height: 780px; }
  .world-stage, .portal-strip, .memory-section { grid-template-columns: 1fr; }
  .world-stage { min-height: 0; }
  .world-visual { min-height: 460px; }
  .portal-strip { gap: 35px; }
  .portal-strip-copy { max-width: 680px; }
  .number-grid, .door-grid { grid-template-columns: repeat(2, 1fr); }
  .number-item:nth-child(2), .door-grid a:nth-child(2) { border-right: 0; }
  .number-item:nth-child(-n+2), .door-grid a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .door-grid a:nth-child(-n+2) { border-bottom-color: rgba(255,255,255,.2); }
  .memory-result { min-height: 500px; }
}

@media (max-width: 620px) {
  .site-header { height: 70px; padding: 0 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .icon-button { width: 38px; height: 38px; }
  .hero { min-height: 720px; }
  .hero-content { min-height: 720px; width: calc(100% - 32px); align-items: flex-start; text-align: left; }
  .hero-content > * { align-self: flex-start; }
  h1 { max-width: 100%; font-size: 45px; overflow-wrap: anywhere; }
  .hero-copy { font-size: 17px; }
  .hero-actions { justify-content: flex-start; }
  .hero-actions .button { width: 100%; }
  .hero-status { left: 16px; bottom: 22px; }
  .hero-next { display: none; }
  .intro-band { padding: 72px 16px 76px; }
  .section-heading { text-align: left; margin-bottom: 32px; }
  .section-heading h2, .memory-copy h2, .final-band h2, .portal-strip h2 { font-size: 40px; }
  .world-switcher { grid-template-columns: repeat(2, 1fr); }
  .world-tab { min-height: 56px; border-bottom: 1px solid var(--line); }
  .world-tab:nth-child(2) { border-right: 0; }
  .world-tab:nth-child(n+3) { border-bottom: 0; }
  .world-visual { min-height: 360px; }
  .world-copy { padding: 34px 24px 40px; }
  .stat-row { gap: 6px; }
  .stat-row strong { font-size: 18px; }
  .portal-strip { min-height: 0; padding: 72px 20px; }
  .portal-postcards { min-height: 390px; }
  .postcard-a { width: 56%; height: 58%; }
  .postcard-b { width: 51%; height: 62%; }
  .postcard-c { width: 48%; height: 48%; left: 25%; }
  .numbers-band { padding: 72px 16px; }
  .number-grid, .door-grid { grid-template-columns: 1fr; }
  .number-item, .number-item:nth-child(2), .door-grid a, .door-grid a:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .number-item:last-child, .door-grid a:last-child { border-bottom: 0; }
  .number-item { min-height: 168px; }
  .memory-section { padding: 74px 16px; }
  .memory-result { min-height: 430px; }
  .final-band { padding: 78px 16px; text-align: left; }
  .door-grid { margin-top: 38px; }
  .door-grid a { min-height: 170px; border-bottom-color: rgba(255,255,255,.2); }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
