:root {
  color-scheme: dark;
  --night: #111319;
  --night-soft: #1b1d22;
  --paper: #efede6;
  --paper-soft: #e3dfd5;
  --ink: #181816;
  --amber: #d0a06f;
  --amber-deep: #a9663f;
  --line-light: rgba(239, 237, 230, 0.28);
  --line-dark: rgba(24, 24, 22, 0.2);
  --page-x: clamp(1.25rem, 4.2vw, 5.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Project stories: calm, useful detail after the cinematic arrival. */
.collection, .project-questions { position: relative; padding: 5rem var(--page-x) 9rem; background: var(--night); }
.collection-heading { max-width: 48rem; margin-bottom: 6rem; }
.collection-heading h2, .project-questions h2 { font-size: clamp(3rem, 5.8vw, 6rem); line-height: 1.03; font-weight: 400; margin: 1.3rem 0 2rem; }
.collection em, .project-questions em { font-family: inherit; font-style: normal; font-weight: 400; color: #d5b99b; }
.collection-heading > p:last-child { max-width: 31rem; color: #b9b9ba; }
.spatial-story { height: 250svh; margin: 0 calc(-1 * var(--page-x)) 5rem; position: relative; }
.spatial-stage { height: 100svh; position: sticky; top: 0; overflow: hidden; isolation: isolate; background: var(--night); }
.spatial-images { position: absolute; inset: 0; overflow: hidden; mask-image: linear-gradient(transparent, black 12%, black 85%, transparent); }
.spatial-images img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; will-change: transform, opacity; }
.spatial-images img:not(:first-child) { opacity: 0; }
.spatial-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(17,19,25,.9), transparent 47%); }
.spatial-copy { position: absolute; z-index: 2; bottom: 6rem; left: var(--page-x); right: var(--page-x); }
.spatial-copy h3 { font-size: clamp(2.5rem, 5vw, 5.5rem); font-weight: 400; line-height: 1.08; margin: .5rem 0 1rem; }
.spatial-copy > p:last-child { max-width: 30rem; color: var(--paper); }
.spatial-foot { position: absolute; z-index: 2; bottom: 2rem; left: var(--page-x); right: var(--page-x); display: flex; justify-content: space-between; gap: 1rem; font-size: .7rem; color: #b9b9ba; }
@media (max-width: 800px) {
  .spatial-story { height: 210svh; }
  .spatial-images img { object-position: 61% center; }
  .spatial-copy { bottom: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .spatial-story { height: 90svh; }
  .spatial-stage { position: relative; height: 90svh; }
  .spatial-images img { transform: none !important; will-change: auto; }
}
.project-dossier { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 6rem); padding: 0 0 8rem; scroll-margin-top: 7rem; }
.dossier-image { margin: 0; align-self: start; position: sticky; top: 7rem; }
.dossier-image > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.dossier-image figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-size: .75rem; color: #c2beb8; }
.dossier-image figcaption span { color: #98989b; }
.dossier-copy h3 { font-size: clamp(2.6rem, 4vw, 4.5rem); font-weight: 400; line-height: 1.08; margin: 1rem 0 1.7rem; }
.dossier-copy > p:not(.eyebrow):not(.source-note):not(.plans-label) { max-width: 38rem; color: #c1c0bf; }
.project-facts { margin: 2rem 0; font-size: .85rem; }
.project-facts > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(239,237,230,.12); }
.project-facts dt { color: #a5a5a8; }
.project-facts dd { margin: 0; }
.plans-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; padding-top: 1rem; }
.plans-label span { color: #a5a5a8; }
.collection details, .questions-list details { border-bottom: 1px solid rgba(239,237,230,.18); }
.collection summary, .questions-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; padding: 1.3rem 0; font-size: .85rem; }
summary::-webkit-details-marker { display: none; }
.collection summary strong { font-weight: 400; margin-left: .6rem; }
.collection summary > span:last-child { white-space: nowrap; }
.collection summary b, .questions-list summary b { display: inline-block; font-size: 1.2rem; font-weight: 300; color: var(--amber); margin-left: .7rem; transition: transform .25s; }
details[open] > summary b { transform: rotate(45deg); }
summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }
.plan-content { padding-bottom: 1.5rem; }
.plan-content p, .plan-content a > span { font-size: .8rem; color: #c2beb8; }
.plan-content img { display: block; width: 100%; height: auto; margin: 1rem 0 .6rem; }
.source-note { font-size: .73rem; line-height: 1.7; color: #a5a5a8; max-width: 43rem; margin: 1.4rem 0 2rem; }
.dossier-palm { padding: 2rem 0 0; }
.dossier-palm .dossier-image { order: 2; }
.dossier-palm .dossier-image > img { aspect-ratio: 4 / 5; object-position: 55% center; }
.project-questions { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; padding-top: 2rem; padding-bottom: 12rem; }
.questions-list summary { font-size: 1rem; padding: 1.5rem 0; }
.questions-list details p { color: #b9b9ba; max-width: 38rem; padding: 0 2rem 1.3rem 0; }
.contact-context { max-width: 32rem; color: #c1c0bf; margin: 2rem 0; }
.contact-destination { max-width: 32rem; }
#collection, #contact, #approach { scroll-margin-top: 6rem; }
@media (max-width: 800px) {
  .collection, .project-questions { padding: 3rem var(--page-x) 7rem; }
  .collection-heading { margin-bottom: 3.5rem; }
  .project-dossier, .project-questions { grid-template-columns: 1fr; gap: 2rem; }
  .project-dossier { padding-bottom: 5rem; }
  .dossier-image { position: relative; top: auto; }
  .dossier-image > img, .dossier-palm .dossier-image > img { aspect-ratio: 5 / 4; }
  .dossier-palm .dossier-image { order: 0; }
  .dossier-image figcaption { font-size: .65rem; }
  .collection summary { font-size: .76rem; gap: .4rem; }
  .collection summary strong { margin-left: .2rem; }
  .collection summary b { margin-left: .2rem; }
  .project-questions { padding-bottom: 9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .dossier-image { position: relative; top: auto; }
  .collection *, .project-questions * { transition: none !important; }
}

* {
  box-sizing: border-box;
}

/* Natural text spacing; the temporary NUR wordmark keeps its own proportions. */
body :is(h1, h2, h3, p, .eyebrow, .text-link, .project-link,
  .header-enquire, .site-header nav, .journey-meta, .journey-progress,
  .flight-caption, .principles span, footer) {
  letter-spacing: normal !important;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--paper);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 6.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--page-x);
  color: var(--paper);
  transition: height 500ms var(--ease), background-color 500ms var(--ease), backdrop-filter 500ms var(--ease);
  isolation: isolate;
}

.site-header.is-compact {
  height: 4.75rem;
  background: transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -3.5rem;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(17,19,25,.86) 0%, rgba(17,19,25,.72) 38%, rgba(17,19,25,.38) 65%, rgba(17,19,25,0) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask-image: linear-gradient(to bottom, black 0%, black 38%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 38%, transparent 100%);
  opacity: 0;
  transition: opacity 500ms var(--ease);
}

.site-header.is-compact::before {
  opacity: 1;
}

.brand {
  width: max-content;
  display: grid;
  line-height: 0.9;
}

.brand span {
  font-size: 1.45rem;
  font-weight: 520;
  letter-spacing: 0.18em;
}

.brand small {
  margin-top: 0.42rem;
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  gap: clamp(1.6rem, 3vw, 3.8rem);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header nav a,
.header-enquire {
  position: relative;
}

.site-header nav a::after,
.header-enquire::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor 30%, currentColor 70%, transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 450ms var(--ease);
}

.site-header nav a:hover::after,
.header-enquire:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-enquire {
  justify-self: end;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-scroll {
  position: relative;
  height: 280vh;
  background: var(--night);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 38rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-shade,
.hero-warmth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -2;
  overflow: hidden;
  background: var(--night);
}

.hero-media img {
  object-fit: cover;
  object-position: 50% 54%;
  transform: scale(1.02);
  transform-origin: 35% 71%;
  will-change: transform, filter;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 12, 17, 0.72) 0%, rgba(10, 12, 17, 0.2) 42%, rgba(10, 12, 17, 0.08) 70%),
    linear-gradient(180deg, rgba(10, 12, 17, 0.36) 0%, transparent 28%, rgba(10, 12, 17, 0.48) 100%);
}

.hero-warmth {
  opacity: 0;
  background: radial-gradient(circle at 38% 64%, rgba(218, 148, 88, 0.33), transparent 28%);
  mix-blend-mode: screen;
  will-change: opacity;
}

.hero-copy {
  position: absolute;
  left: var(--page-x);
  bottom: clamp(5.4rem, 10vh, 8rem);
  max-width: 52rem;
  will-change: transform, opacity;
}

.eyebrow {
  margin: 0 0 1.15rem;
  font-size: 0.72rem;
  font-weight: 540;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.manifesto h2,
.approach h2,
.contact h2 {
  margin: 0;
  font-size: clamp(3.75rem, 8.8vw, 9.3rem);
  font-weight: 430;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.hero-intro {
  max-width: 34rem;
  margin: clamp(1.5rem, 3vw, 2.6rem) 0 1.8rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
}

.text-link,
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link span,
.project-link span {
  transition: transform 450ms var(--ease);
}

.text-link:hover span,
.project-link:hover span {
  transform: translate(0.2rem, -0.2rem);
}

.hero-location {
  position: absolute;
  top: 8.7rem;
  right: var(--page-x);
  text-align: right;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero-phase {
  position: absolute;
  right: var(--page-x);
  bottom: 3.1rem;
  width: clamp(9rem, 14vw, 13rem);
  display: grid;
  gap: 0.7rem;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-phase i {
  height: 1px;
  overflow: hidden;
  background: rgba(239, 237, 230, 0.3);
}

.hero-phase b {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--paper);
  will-change: transform;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 3rem;
  margin: 0;
  transform: translateX(-50%);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.resident-focus {
  position: absolute;
  left: 30.8%;
  top: 66%;
  opacity: 0;
  transform: translateY(1rem);
  will-change: opacity, transform;
  pointer-events: none;
}

.resident-focus span {
  position: absolute;
  left: -1rem;
  top: -1rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(239, 237, 230, 0.8);
  border-radius: 50%;
}

.resident-focus span::after {
  content: "";
  position: absolute;
  inset: 0.42rem;
  border-radius: inherit;
  background: var(--amber);
}

.resident-focus p {
  width: max-content;
  margin: 1.6rem 0 0 1.7rem;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.manifesto {
  position: relative;
  min-height: 105svh;
  padding: clamp(7rem, 13vw, 13rem) var(--page-x);
  overflow: hidden;
}

.manifesto > .eyebrow {
  margin-left: 28%;
}

.manifesto h2 {
  margin-left: 9%;
  max-width: 82rem;
  font-size: clamp(3rem, 7.6vw, 8.2rem);
  line-height: 0.93;
}

.manifesto h2 em {
  color: var(--amber-deep);
  font-family: inherit;
  font-weight: 400;
}

.manifesto-copy {
  width: min(31rem, 42vw);
  margin: clamp(3rem, 8vw, 7.5rem) 8% 0 auto;
}

.manifesto-copy p {
  margin: 0 0 2rem;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

.text-link.dark {
  color: var(--ink);
}

.section-index {
  position: absolute;
  top: 50%;
  left: var(--page-x);
  color: rgba(24, 24, 22, 0.35);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.curve-line {
  position: absolute;
  right: -10vw;
  bottom: -20vw;
  width: 72vw;
  height: 38vw;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.project {
  position: relative;
  min-height: 120svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(5rem, 9vw, 9rem) var(--page-x);
  isolation: isolate;
}

.project-media,
.project-media img,
.project-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-media {
  z-index: -2;
  overflow: hidden;
}

.project-media img {
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.project-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 13, 17, 0.08) 25%, rgba(11, 13, 17, 0.84) 100%);
}

.project-copy {
  max-width: 54rem;
}

.project-copy h2 {
  margin: 0;
  font-size: clamp(5rem, 16vw, 15rem);
  font-weight: 420;
  letter-spacing: -0.08em;
  line-height: 0.76;
}

.project-copy > p:not(.eyebrow) {
  max-width: 30rem;
  margin: clamp(2rem, 4vw, 3.6rem) 0 2rem;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.project-number {
  position: absolute;
  top: clamp(6rem, 10vw, 9rem);
  right: var(--page-x);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.interlude {
  height: clamp(8rem, 15vw, 13rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--page-x);
  background: var(--night);
  color: rgba(239, 237, 230, 0.62);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.interlude i {
  height: 1px;
  background: var(--line-light);
}

.approach {
  position: relative;
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) 1.18fr;
  gap: clamp(4rem, 9vw, 11rem);
  padding: clamp(7rem, 12vw, 12rem) var(--page-x);
}

.approach-heading {
  position: sticky;
  top: 9rem;
  height: max-content;
}

.approach h2 {
  max-width: 45rem;
  font-size: clamp(3.4rem, 6.2vw, 6.8rem);
  line-height: 0.93;
}

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: 4rem 0.72fr 1fr;
  gap: clamp(1rem, 2vw, 2.5rem);
  align-items: start;
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  border-top: 1px solid var(--line-dark);
}

.principles li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.principles span {
  color: var(--amber-deep);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.principles h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  font-weight: 480;
  letter-spacing: -0.03em;
}

.principles p {
  max-width: 26rem;
  margin: 0;
  color: rgba(24, 24, 22, 0.72);
  font-size: 1.05rem;
}

.contact {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem var(--page-x) 2rem;
  background: var(--night);
}

.contact h2 {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  font-size: clamp(3.8rem, 9vw, 9.2rem);
}

.contact-link {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  font-size: clamp(1rem, 2.2vw, 2rem);
}

.contact-link b {
  font-size: 1.4em;
  font-weight: 400;
  transition: transform 450ms var(--ease);
}

.contact-link:hover b {
  transform: translate(0.35rem, -0.35rem);
}

.contact-orbit {
  position: absolute;
  right: -5vw;
  top: 7%;
  width: min(60vw, 52rem);
  aspect-ratio: 1;
  border: 1px solid rgba(208, 160, 111, 0.32);
  border-radius: 50%;
}

.contact-orbit::before,
.contact-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(208, 160, 111, 0.2);
  border-radius: 50%;
}

.contact-orbit::before {
  inset: 18%;
}

.contact-orbit::after {
  inset: 38%;
  background: rgba(208, 160, 111, 0.06);
}

footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 2rem;
  margin-top: auto;
  padding-top: 8rem;
  color: rgba(239, 237, 230, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.footer-brand {
  color: var(--paper);
}

.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .site-header {
    height: 5.25rem;
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero-scroll {
    height: 235vh;
  }

  .hero-sticky {
    min-height: 34rem;
  }

  .hero-media img {
    object-position: 35% 52%;
    transform-origin: 32% 69%;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 12, 17, 0.38), transparent 30%, rgba(10, 12, 17, 0.77)),
      linear-gradient(90deg, rgba(10, 12, 17, 0.32), transparent 80%);
  }

  .hero-copy {
    bottom: 6.8rem;
    max-width: calc(100% - 2.5rem);
  }

  .hero-copy h1 {
    font-size: clamp(3.55rem, 16.5vw, 6rem);
  }

  .hero-intro {
    max-width: 26rem;
  }

  .hero-location {
    top: 7rem;
  }

  .hero-phase {
    right: auto;
    left: var(--page-x);
    bottom: 2rem;
  }

  .scroll-cue {
    display: none;
  }

  .resident-focus {
    left: 30%;
    top: 66%;
  }

  .resident-focus p {
    display: none;
  }

  .manifesto {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 9rem;
  }

  .manifesto > .eyebrow,
  .manifesto h2 {
    margin-left: 0;
  }

  .manifesto h2 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .manifesto-copy {
    width: 100%;
    margin: 3.5rem 0 0;
  }

  .section-index {
    display: none;
  }

  .project {
    min-height: 100svh;
    padding-bottom: 5rem;
  }

  .project-media img {
    object-position: 68% center;
  }

  .project-sun .project-media img {
    object-position: 62% center;
  }

  .project-copy h2 {
    font-size: clamp(4.75rem, 27vw, 8rem);
  }

  .project-copy > p:not(.eyebrow) {
    max-width: 23rem;
  }

  .interlude {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    justify-items: start;
  }

  .interlude i {
    width: 100%;
  }

  .approach {
    grid-template-columns: 1fr;
    gap: 5rem;
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .approach-heading {
    position: static;
  }

  .principles li {
    grid-template-columns: 2.4rem 1fr;
  }

  .principles p {
    grid-column: 2;
  }

  .contact {
    padding-top: 8rem;
  }

  .contact h2 {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }

  .contact-link span {
    overflow-wrap: anywhere;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding-top: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-scroll {
    height: 100svh;
  }

  .hero-sticky {
    position: relative;
  }

  .hero-media img,
  .project-media img,
  .hero-copy,
  .resident-focus,
  .hero-warmth {
    transform: none !important;
    filter: none !important;
  }

  .resident-focus {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Continuous architectural journey */
.journey {
  position: relative;
  height: 850vh;
  background: var(--night);
}

.journey-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 38rem;
  overflow: hidden;
  isolation: isolate;
  perspective: 1200px;
}

.scene,
.scene-frame,
.scene-frame img,
.scene-shade,
.scene-warmth,
.scene-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene {
  z-index: -2;
  overflow: hidden;
  background: var(--night);
  transform-style: preserve-3d;
  will-change: transform;
}

.scene-frame {
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform-origin: 48% 60%;
  will-change: opacity, clip-path;
}

.scene-frame:first-child {
  opacity: 1;
}

.scene-frame img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  will-change: transform, filter;
}

.scene-hero img {
  object-position: 50% 54%;
  transform-origin: 50% 50%;
}

.frame-corner img {
  object-position: 62% center;
}

.frame-sun img {
  object-position: 56% center;
}

.frame-detail img {
  object-position: 67% center;
}

.frame-person img { object-position: 50% 50%; }
.scene-hero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%; transform: scale(1.02);
  opacity: 1; pointer-events: none;
}
.scene-hero video.is-ready { opacity: 1; }
.scene .scene-hero img { object-position: 50% 50%; }
@media (max-width: 800px) {
  .scene .frame-person img, .scene .scene-hero img, .scene-hero video { object-position: 29% center; }
}

.scene-shade {
  z-index: 10;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 12, 17, 0.72) 0%, rgba(10, 12, 17, 0.16) 47%, rgba(10, 12, 17, 0.08) 72%),
    linear-gradient(180deg, rgba(10, 12, 17, 0.35) 0%, transparent 30%, rgba(10, 12, 17, 0.62) 100%);
}

.scene-warmth {
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 40% 62%, rgba(213, 139, 78, 0.28), transparent 34%);
  mix-blend-mode: screen;
  will-change: opacity;
}

.scene-curve {
  z-index: 11;
  left: -18%;
  top: auto;
  bottom: -72%;
  width: 138%;
  height: 88%;
  border: 1px solid rgba(239, 237, 230, 0.42);
  border-radius: 50%;
  transform: rotate(-8deg);
  opacity: 0.68;
  pointer-events: none;
  will-change: transform, opacity;
}

.journey-meta {
  position: absolute;
  top: 8.5rem;
  right: var(--page-x);
  z-index: 14;
  display: grid;
  justify-items: end;
  gap: 0.45rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-align: right;
  text-transform: uppercase;
}

.journey-meta span:last-child {
  color: rgba(239, 237, 230, 0.56);
}

.chapters {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.chapter {
  position: absolute;
  left: var(--page-x);
  bottom: clamp(5.8rem, 10vh, 8rem);
  width: min(58rem, calc(100vw - var(--page-x) * 2));
  opacity: 0;
  transform: translate3d(0, 2rem, 80px);
  pointer-events: none;
  will-change: opacity, transform;
}

.chapter h1,
.chapter h2 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 10.5rem);
  font-weight: 430;
  letter-spacing: -0.07em;
  line-height: 0.82;
}

.chapter.chapter-hero {
  left: auto;
  right: var(--page-x);
  text-align: right;
}
.chapter-hero h1 {
  font-size: clamp(3.5rem, 7.8vw, 8.5rem);
  line-height: 0.91;
}
.chapter-hero > p:not(.eyebrow) { max-width: 25rem; margin-left: auto; }
.flight-caption {
  position: absolute;
  z-index: 16;
  right: var(--page-x);
  left: auto;
  max-width: calc(100% - var(--page-x) * 2);
  text-align: right;
  bottom: 18%;
  font-size: clamp(1.6rem, 3.6vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 30px rgba(10,12,17,.5);
}

.chapter > p:not(.eyebrow) {
  max-width: 33rem;
  margin: clamp(1.5rem, 3vw, 2.7rem) 0 1.8rem;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.chapter-project h2 {
  font-size: clamp(6rem, 18vw, 17rem);
  line-height: 0.68;
}

.chapter-project {
  left: auto;
  right: var(--page-x);
  width: min(67rem, calc(100vw - var(--page-x) * 2));
  text-align: right;
}

.chapter-project > p:not(.eyebrow) {
  margin-left: auto;
}

.chapter-palm {
  left: var(--page-x);
  right: auto;
  text-align: left;
}

.chapter-palm > p:not(.eyebrow) {
  margin-left: 0;
}

.chapter-manifesto {
  left: 50%;
  bottom: auto;
  top: 50%;
  width: min(70rem, calc(100vw - var(--page-x) * 2));
  text-align: center;
  transform: translate3d(-50%, -42%, 80px);
}

.chapter-manifesto h2 {
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.88;
}

.chapter-manifesto > p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.chapter-close {
  bottom: clamp(6rem, 12vh, 10rem);
}

.chapter-close h2 {
  font-size: clamp(3.8rem, 8.5vw, 9rem);
  line-height: 0.88;
}

.journey-progress {
  position: absolute;
  right: var(--page-x);
  bottom: 3rem;
  z-index: 18;
  width: clamp(9rem, 14vw, 13rem);
  display: grid;
  gap: 0.7rem;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journey-progress i {
  height: 1px;
  overflow: hidden;
  background: rgba(239, 237, 230, 0.3);
}

.journey-progress b {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.journey + .approach {
  z-index: 3;
  margin-top: -8rem;
  padding-top: clamp(13rem, 18vw, 19rem);
  border-radius: 0;
  background: linear-gradient(to bottom, transparent, var(--night) 8rem);
  color: var(--paper);
}

.journey + .approach .principles li { border-color: var(--line-light); }
.journey + .approach .principles p { color: rgba(239,237,230,.76); }
.journey + .approach .principles span { color: var(--amber); }
.journey + .approach::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--night) 55%), image-set(url('./assets/palm-teramok/1280/palm-teramok-11.webp') 1x, url('./assets/palm-teramok/2560/palm-teramok-11.webp') 2x) center/cover;
  opacity: .13;
  mask-image: linear-gradient(to bottom, transparent, black 10rem, transparent);
}

.contact {
  z-index: 4;
  margin-top: -6rem;
  padding-top: clamp(13rem, 18vw, 18rem);
  border-radius: 0;
  background: linear-gradient(to bottom, transparent, var(--night) 6rem);
}

@media (max-width: 800px) {
  .journey {
    height: 760vh;
  }

  .journey-sticky {
    min-height: 34rem;
  }

  .scene-frame img {
    object-position: 62% center;
  }

  .scene-hero img {
    object-position: 35% 52%;
    transform-origin: 50% 50%;
  }

  .frame-corner img {
    object-position: 72% center;
  }

  .frame-sun img {
    object-position: 60% center;
  }

  .frame-detail img {
    object-position: 74% center;
  }

  .scene-shade {
    background:
      linear-gradient(180deg, rgba(10, 12, 17, 0.38), transparent 28%, rgba(10, 12, 17, 0.8)),
      linear-gradient(90deg, rgba(10, 12, 17, 0.28), transparent 82%);
  }

  .journey-meta {
    top: 6.7rem;
  }

  .chapter,
  .chapter-project,
  .chapter-palm {
    left: var(--page-x);
    right: auto;
    bottom: 6.2rem;
    width: calc(100vw - var(--page-x) * 2);
    text-align: left;
  }

  .chapter h1,
  .chapter h2 {
    font-size: clamp(3.6rem, 16vw, 6.5rem);
  }

  .chapter-project h2 {
    font-size: clamp(5.8rem, 28vw, 9rem);
  }

  .chapter-project > p:not(.eyebrow) {
    margin-left: 0;
  }
  .chapter-project:not(.chapter-palm) {
    left: auto;
    right: var(--page-x);
    text-align: right;
  }
  .chapter-project:not(.chapter-palm) > p:not(.eyebrow) { margin-left: auto; }

  .chapter-manifesto {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: calc(100vw - var(--page-x) * 2);
    text-align: center;
  }

  .chapter-manifesto h2 {
    font-size: clamp(3.5rem, 14vw, 5.8rem);
  }

  .journey-progress {
    right: auto;
    left: var(--page-x);
    bottom: 2rem;
  }

  .journey + .approach {
    margin-top: -4.5rem;
    padding-top: 10rem;
    border-radius: 0;
  }

  .contact {
    margin-top: -3rem;
    padding-top: 10rem;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey {
    height: 100svh;
  }

  .journey-sticky {
    position: relative;
  }

  .scene-frame:not(:first-child),
  .journey-meta,
  .journey-progress,
  .resident-focus {
    display: none;
  }

  .scene-frame:first-child,
  .chapter-hero {
    opacity: 1 !important;
  }

  .scene-frame img,
  .scene,
  .chapter-hero,
  .scene-curve {
    transform: none !important;
  }

  .chapter:not(.chapter-hero) {
    display: none;
  }
}
