:root {
  --ink: #07100d;
  --ink-soft: #0e1915;
  --bone: #f0eadf;
  --sand: #c8b99e;
  --mist: rgba(240, 234, 223, .68);
  --line: rgba(240, 234, 223, .22);
  --gold: #c9a66b;
  --ocean: #78a7a1;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--bone);
  background: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-content: center;
  gap: 20px;
  background: #07100d;
  transition: opacity .7s ease, visibility .7s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__brand { letter-spacing: .32em; font-size: 12px; font-weight: 700; text-align: center; }
.loader__line { width: min(320px, 70vw); height: 1px; background: rgba(255,255,255,.12); overflow: hidden; }
.loader__line span { display: block; width: 42%; height: 100%; background: var(--sand); animation: loading 1.3s ease-in-out infinite alternate; }
.loader__meta { text-transform: uppercase; letter-spacing: .28em; font-size: 8px; color: rgba(255,255,255,.45); text-align: center; }
@keyframes loading { from { transform: translateX(-105%); } to { transform: translateX(240%); } }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 4vw, 72px);
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(4,9,7,.76), transparent);
  backdrop-filter: blur(8px);
}
.brand { display: inline-flex; align-items: center; gap: 13px; width: max-content; }
.brand__mark { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.5); font: 700 9px/1 Arial; letter-spacing: .08em; }
.brand__name { font-size: 10px; letter-spacing: .26em; font-weight: 700; }
.nav__links { display: flex; gap: clamp(24px, 3vw, 50px); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.nav__links a { transition: color .25s ease; }
.nav__links a:hover { color: #fff; }
.nav__cta { justify-self: end; border: 0; border-bottom: 1px solid rgba(255,255,255,.55); padding: 9px 0; color: #fff; background: transparent; cursor: pointer; text-transform: uppercase; letter-spacing: .18em; font-size: 8px; font-weight: 700; }

.experience { position: relative; height: 1320vh; }
.stage { position: sticky; top: 0; height: 100vh; min-height: 620px; overflow: hidden; background: #07100d; }
.video-stack, .scene-video, .video-shade, .film-grain { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-video { object-fit: cover; object-position: center; opacity: 0; will-change: opacity; background: #07100d; }
.scene-video.is-visible { opacity: 1; }
.video-shade {
  z-index: 8;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,8,6,.78) 0%, rgba(3,8,6,.36) 24%, transparent 52%, rgba(3,8,6,.12) 74%, rgba(3,8,6,.58) 100%),
    linear-gradient(180deg, rgba(3,8,6,.5) 0%, transparent 20%, transparent 67%, rgba(3,8,6,.68) 100%);
}
.film-grain {
  z-index: 9;
  opacity: .07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.stage__ui { position: absolute; inset: 0; z-index: 12; pointer-events: none; padding: var(--nav-h) clamp(22px, 4vw, 72px) 38px; }
.scene-kicker { position: absolute; left: clamp(22px, 4vw, 72px); top: 26%; display: flex; align-items: center; gap: 12px; font-size: 8px; font-weight: 700; letter-spacing: .25em; color: #c9e2df; }
.scene-kicker__line { width: 28px; height: 1px; background: #8ac4c5; }
.scene-copy { position: absolute; left: clamp(22px, 4vw, 72px); bottom: 12%; width: min(590px, 48vw); }
.scene-eyebrow { margin: 0 0 13px; color: rgba(255,255,255,.58); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .28em; }
.scene-copy h1 { margin: 0; max-width: 690px; font-size: clamp(46px, 5.25vw, 100px); line-height: .9; letter-spacing: -.055em; font-weight: 400; text-wrap: balance; text-shadow: 0 12px 40px rgba(0,0,0,.28); }
.scene-body { max-width: 420px; margin: 24px 0 0; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.42); color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.65; }
.scene-data { position: absolute; right: clamp(22px, 4vw, 72px); top: 42%; width: min(300px, 22vw); }
.scene-data__label { margin-bottom: 10px; color: rgba(255,255,255,.45); font-size: 8px; letter-spacing: .26em; font-weight: 700; }
.scene-data__value { margin-bottom: 27px; font-size: clamp(26px, 2.5vw, 46px); font-weight: 300; letter-spacing: -.03em; }
.scene-data dl { margin: 0; border-top: 1px solid var(--line); }
.scene-data dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 8px; text-transform: uppercase; letter-spacing: .15em; }
.scene-data dt { color: rgba(255,255,255,.45); }
.scene-data dd { margin: 0; font-weight: 700; }
.scroll-cue { position: absolute; left: 50%; bottom: 29px; transform: translateX(-50%); display: grid; gap: 8px; width: 140px; text-align: center; font-size: 7px; letter-spacing: .22em; color: rgba(255,255,255,.6); }
.scroll-cue__track { height: 1px; background: rgba(255,255,255,.2); overflow: hidden; }
.scroll-cue__track i { display: block; width: 0; height: 100%; background: #fff; }
.scene-count { position: absolute; right: clamp(22px, 4vw, 72px); bottom: 30px; display: flex; gap: 7px; font-size: 8px; letter-spacing: .18em; color: rgba(255,255,255,.62); }
.scene-count b { font-weight: 400; opacity: .4; }
.scene-dots { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 9px; }
.scene-dots i { width: 2px; height: 17px; background: rgba(255,255,255,.2); transition: height .3s ease, background .3s ease; }
.scene-dots i.is-active { height: 36px; background: #e9dfcd; }

.manifesto { padding: 150px clamp(22px, 6vw, 110px) 160px; background: #f0eadf; color: #0a110e; }
.manifesto__intro { display: grid; grid-template-columns: 1.2fr .8fr; column-gap: 7vw; align-items: end; margin-bottom: 85px; }
.manifesto__intro .overline { grid-column: 1 / -1; }
.overline { margin: 0 0 25px; font-size: 8px; text-transform: uppercase; letter-spacing: .28em; font-weight: 700; opacity: .62; }
.manifesto h2, .architecture h2, .inquiry h2, .modal h2 { margin: 0; font-size: clamp(52px, 6vw, 108px); line-height: .88; font-weight: 400; letter-spacing: -.055em; }
.manifesto h2 em { font-family: Georgia, serif; font-weight: 400; }
.manifesto__intro > p:last-child { max-width: 440px; margin: 0 0 5px; font-size: 14px; line-height: 1.7; color: rgba(10,17,14,.68); }
.residence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.residence-card { position: relative; border-top: 1px solid rgba(10,17,14,.35); padding-top: 13px; }
.residence-card__image { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 20px; background: #c9c0b2; }
.residence-card__image img { height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.residence-card:hover img { transform: scale(1.035); }
.residence-card__top { display: flex; justify-content: space-between; margin-bottom: 34px; color: rgba(10,17,14,.56); font-size: 8px; text-transform: uppercase; letter-spacing: .18em; }
.residence-card h3 { margin: 0 0 17px; font: 400 clamp(24px,2.2vw,38px)/1 Georgia, serif; }
.residence-card ul { display: flex; gap: 14px; padding: 0; margin: 0 0 27px; list-style: none; color: rgba(10,17,14,.6); font-size: 10px; }
.residence-card li + li::before { content: "·"; margin-right: 14px; }
.residence-card button { border: 0; border-bottom: 1px solid #0a110e; padding: 8px 0; background: transparent; color: #0a110e; cursor: pointer; font-size: 8px; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }

.architecture { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 100vh; background: #0c1511; }
.architecture__visual { min-height: 720px; overflow: hidden; }
.architecture__visual img { height: 100%; object-fit: cover; }
.architecture__copy { display: flex; flex-direction: column; justify-content: center; padding: 100px clamp(35px, 6vw, 100px); }
.architecture__copy h2 { font-size: clamp(52px, 5vw, 88px); }
.architecture__copy > p:not(.overline) { max-width: 440px; margin: 34px 0 45px; color: rgba(255,255,255,.58); line-height: 1.7; font-size: 13px; }
.spec-list { border-top: 1px solid rgba(255,255,255,.16); }
.spec-list div { display: grid; grid-template-columns: 55px 1fr; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.spec-list span { font-size: 8px; color: var(--sand); letter-spacing: .16em; }
.spec-list p { margin: 0; font-size: 11px; letter-spacing: .05em; }

.inquiry { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 100px clamp(22px, 6vw, 110px); overflow: hidden; background: #07100d; }
.inquiry__backdrop { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(4,9,7,.86),rgba(4,9,7,.25)), url('assets/posters/06.jpg') center/cover; transform: scale(1.02); }
.inquiry__content { position: relative; z-index: 2; max-width: 760px; }
.inquiry__content > p:not(.overline) { max-width: 420px; margin: 35px 0; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.7; }
.primary-button { border: 1px solid rgba(255,255,255,.55); padding: 15px 20px; background: rgba(255,255,255,.05); color: #fff; cursor: pointer; font-size: 8px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; transition: background .25s, color .25s; }
.primary-button:hover { background: #fff; color: #07100d; }
.inquiry footer { position: absolute; z-index: 2; left: clamp(22px, 6vw, 110px); right: clamp(22px, 6vw, 110px); bottom: 32px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.16); padding-top: 15px; color: rgba(255,255,255,.44); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }

.modal { width: min(640px, calc(100vw - 28px)); border: 1px solid rgba(255,255,255,.18); padding: 0; color: var(--bone); background: #0b1511; box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.modal::backdrop { background: rgba(1,4,3,.78); backdrop-filter: blur(10px); }
.modal form { display: grid; gap: 16px; padding: 50px; }
.modal h2 { font-size: clamp(38px,5vw,62px); margin-bottom: 12px; }
.modal label { display: grid; gap: 8px; font-size: 8px; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.58); }
.modal input, .modal select, .modal textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.24); border-radius: 0; padding: 11px 0; background: transparent; color: #fff; outline: none; }
.modal option { color: #111; }
.modal textarea { resize: vertical; }
.modal__close { position: absolute; top: 18px; right: 20px; border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer; }
.form-note { margin: 5px 0 0; color: rgba(255,255,255,.38); font-size: 9px; line-height: 1.5; }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .scene-copy { width: 62vw; }
  .scene-data { width: 25vw; }
  .manifesto__intro { grid-template-columns: 1fr; gap: 32px; }
  .manifesto__intro > p:last-child { margin-top: 20px; }
  .residence-grid { grid-template-columns: 1fr 1fr; }
  .residence-card:last-child { grid-column: 1 / -1; width: calc(50% - 12px); }
  .architecture { grid-template-columns: 1fr; }
  .architecture__visual { min-height: 70vh; }
}

@media (max-width: 700px) {
  :root { --nav-h: 64px; }
  .nav { padding-inline: 18px; }
  .brand__name { font-size: 9px; }
  .nav__cta { font-size: 7px; }
  .experience { height: 1080vh; }
  .stage { min-height: 540px; }
  .scene-video { object-position: center; }
  .video-shade { background: linear-gradient(180deg,rgba(3,8,6,.46),transparent 27%,rgba(3,8,6,.12) 48%,rgba(3,8,6,.86) 100%); }
  .stage__ui { padding-inline: 18px; }
  .scene-kicker { left: 18px; top: 18%; }
  .scene-copy { left: 18px; bottom: 10%; width: calc(100vw - 36px); }
  .scene-copy h1 { font-size: clamp(42px, 13vw, 64px); }
  .scene-body { max-width: 85%; font-size: 11px; }
  .scene-data { display: none; }
  .scene-count { right: 18px; bottom: 22px; }
  .scene-dots { right: 8px; }
  .scroll-cue { left: 18px; transform: none; bottom: 22px; width: 110px; text-align: left; }
  .manifesto { padding: 105px 18px 110px; }
  .residence-grid { grid-template-columns: 1fr; gap: 65px; }
  .residence-card:last-child { grid-column: auto; width: auto; }
  .manifesto h2, .inquiry h2 { font-size: 15vw; }
  .architecture__visual { min-height: 58vh; }
  .architecture__copy { padding: 90px 18px; }
  .inquiry { padding-inline: 18px; }
  .inquiry footer { left: 18px; right: 18px; display: grid; gap: 8px; }
  .modal form { padding: 45px 24px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film-grain { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────────────────────────────────────
   ULTRA-SMOOTH PERFORMANCE LAYER
   Same visual experience, lower compositor/decode overhead.
───────────────────────────────────────────────────────────── */
.video-stack {
  contain: strict;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.scene-video {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  contain: paint;
  will-change: opacity;
}

.scene-video:not(.is-visible) {
  visibility: hidden;
  pointer-events: none;
}

.video-shade,
.film-grain,
.stage__ui {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Static PNG grain preserves the same cinematic texture without running a
   full-screen SVG turbulence filter every frame. */
.film-grain {
  background-image: url('assets/ui/grain.png');
  background-repeat: repeat;
  background-size: 128px 128px;
  mix-blend-mode: soft-light;
}

.scroll-cue__track i {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.manifesto,
.architecture,
.inquiry {
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}
