:root {
  --bg: #060d12;
  --stage: #060d12;
  --surface: #0c171e;
  --ink: #f3eee6;
  --muted: #a4b0b6;
  --dim: #75838a;
  --accent: #d5bd93;
  --accent-soft: rgba(213, 189, 147, 0.5);
  --lagoon: #8fd6cf;
  --sand: #ebe4d8;
  --sand-ink: #182125;
  --sand-muted: #5b666b;
  --sand-accent: #8a6a3e;
  --hairline: rgba(243, 238, 230, 0.12);
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 14vh, 160px);
  --nav-h: 76px;
  --dur-fast: 0.2s;
  --dur-base: 0.4s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.625, 0.05, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--bg);
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top var(--dur-base) var(--ease-out);
}

.skip:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section) 0;
}

/* ── type ── */
.eyebrow {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--accent {
  color: var(--accent);
}

.h1,
.h2,
.chapter__title {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.h1 {
  font-size: clamp(56px, 8vw, 124px);
  line-height: 0.94;
}

.h2 {
  font-size: clamp(42px, 5.4vw, 84px);
  line-height: 0.98;
}

.lead {
  max-width: 32em;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--muted);
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.line > span {
  display: block;
}

/* ── interactive language ── */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--dur-base) var(--ease-inout),
    border-color var(--dur-base) var(--ease-inout);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-inout);
}

.btn:hover,
.btn:focus-visible {
  color: var(--bg);
  border-color: var(--accent);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}

.btn--large {
  height: 56px;
  padding: 0 44px;
}

.link {
  position: relative;
  text-decoration: none;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-inout);
}

.link:hover::after,
.link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition:
    height var(--dur-base) var(--ease-inout),
    background-color var(--dur-base) var(--ease-inout),
    border-color var(--dur-base) var(--ease-inout);
}

.nav.is-scrolled {
  height: 62px;
  background: rgba(6, 13, 18, 0.68);
  border-color: var(--hairline);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.34em;
  text-decoration: none;
}

.mark {
  flex: none;
  width: 24px;
  height: 16px;
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 40px;
  color: var(--ink);
  font: 400 13px/1 var(--sans);
  letter-spacing: 0.02em;
}

.nav__links a {
  opacity: 0.78;
  transition: opacity var(--dur-base) var(--ease-inout);
}

.nav__links a:hover {
  opacity: 1;
}

.nav__cta {
  height: 40px;
  padding: 0 20px;
}

/* ── journey: the scroll-scrubbed flight ── */
.journey {
  position: relative;
  height: 900vh;
  background: var(--stage);
}

.journey__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--stage) url("/works/noralu/assets/img/hero-poster-1920.webp") center / cover no-repeat;
}

.journey__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.journey__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 13, 18, 0.5) 0%, rgba(6, 13, 18, 0) 18%),
    linear-gradient(0deg, rgba(6, 13, 18, 0.78) 0%, rgba(6, 13, 18, 0.32) 34%, rgba(6, 13, 18, 0) 58%),
    linear-gradient(90deg, rgba(6, 13, 18, 0.5) 0%, rgba(6, 13, 18, 0) 48%);
}

.chapter {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(84px, 14vh, 150px);
  z-index: 2;
  width: min(680px, 64vw);
  will-change: transform, opacity;
}

.js .chapter:not(.chapter--first) {
  opacity: 0;
  visibility: hidden;
}

.chapter .eyebrow {
  margin-bottom: 18px;
  color: rgba(243, 238, 230, 0.78);
}

.chapter__title {
  font-size: clamp(44px, 5.4vw, 88px);
  line-height: 0.96;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.chapter__lead {
  max-width: 30em;
  margin-top: 20px;
  color: rgba(243, 238, 230, 0.82);
  font-size: 16px;
  line-height: 1.6;
}

.chapter__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  color: rgba(243, 238, 230, 0.7);
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.chapter__meta i {
  flex: none;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.journey__counter {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 3;
  color: rgba(243, 238, 230, 0.8);
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

.journey__progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 24px;
  z-index: 3;
  height: 1px;
  background: var(--hairline);
}

.journey__progress span {
  position: absolute;
  inset: 0;
  background: var(--lagoon);
  transform: scaleX(0);
  transform-origin: left;
}

/* ── villas (light) ── */
.villas {
  background: var(--sand);
  color: var(--sand-ink);
}

.villas .lead {
  color: var(--sand-muted);
}

.villas .eyebrow--accent {
  color: var(--sand-accent);
}

.villas__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.villas__head .eyebrow {
  margin-bottom: 22px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.card {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease-out);
}

.card:hover {
  transform: translateY(-8px);
}

.frame {
  position: relative;
  overflow: hidden;
  background: #cfc6b6;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
}

.card__media img {
  transition: transform 1.2s var(--ease-out);
}

.card:nth-child(2) .card__media img {
  object-position: 40% 50%;
}

.card:nth-child(3) .card__media img {
  object-position: 64% 50%;
}

.card:hover .card__media img {
  transform: scale(1.05);
}

.card__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(24, 33, 37, 0.14);
  margin-top: 22px;
}

.card__index {
  grid-row: span 3;
  color: var(--sand-accent);
  font: 500 12px/1.9 var(--sans);
  letter-spacing: 0.14em;
}

.card__title {
  font: 400 28px/1.1 var(--sans);
  letter-spacing: -0.03em;
}

.card__spec {
  color: var(--sand-muted);
  font-size: 14px;
}

.card__price {
  margin-top: 8px;
  font: 500 13px/1.4 var(--sans);
  letter-spacing: 0.04em;
}

/* ── stillness ── */
.stillness {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.stillness__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.stillness__media img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.stillness::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 13, 18, 0.7) 0%, rgba(6, 13, 18, 0.25) 42%, rgba(6, 13, 18, 0) 66%),
    linear-gradient(0deg, rgba(6, 13, 18, 0.85) 0%, rgba(6, 13, 18, 0) 46%);
}

.stillness__text {
  position: relative;
  z-index: 1;
  padding-bottom: var(--section);
}

.stillness__text .eyebrow,
.stillness__text .h2 {
  margin-bottom: 24px;
}

.stillness .lead {
  color: rgba(243, 238, 230, 0.82);
}

/* ── arrival: pinned zoom ── */
.detail {
  position: relative;
  height: 220vh;
}

.detail__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.detail__media {
  position: absolute;
  inset: 0;
}

.detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 80% 34%;
}

.detail__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 13, 18, 0.86) 0%, rgba(6, 13, 18, 0.5) 38%, rgba(6, 13, 18, 0) 64%);
}

.detail__text {
  position: relative;
  z-index: 1;
}

.detail__text .eyebrow {
  margin-bottom: 24px;
}

.stats {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  margin-top: 48px;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 10em;
}

.stats strong {
  color: var(--ink);
  font: 300 clamp(44px, 4.4vw, 68px) / 1 var(--sans);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stats span {
  color: rgba(243, 238, 230, 0.78);
  font: 500 11px/1.5 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── reserve ── */
.reserve {
  text-align: center;
}

.reserve__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mark--lg {
  width: 34px;
  height: 22px;
  margin-bottom: 24px;
}

.reserve .eyebrow {
  margin-bottom: 24px;
}

.reserve .lead {
  margin: 32px auto 0;
}

.booking {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(760px, 100%);
  margin-top: 56px;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  color: var(--dim);
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.field input,
.field select {
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: 400 15px/1 var(--sans);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur-base) var(--ease-inout);
}

.field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23d5bd93'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field input[aria-invalid="true"] {
  border-color: #d06a5c;
}

.booking .btn {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 12px;
}

.booking__status {
  grid-column: 1 / -1;
  min-height: 1.6em;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ── footer ── */
.footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--hairline);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
}

.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 7vw, 112px);
}

.footer__cols div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.footer__label {
  margin-bottom: 6px;
  color: var(--accent);
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--dim);
  font-size: 13px;
}

.footer__bottom a {
  color: var(--muted);
}

/* ── ambient grain ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* ── reveal starting states (only when JS runs) ── */
.js [data-reveal]:not([data-reveal="stagger"]),
.js [data-reveal="stagger"] > * {
  opacity: 0;
}

/* ── responsive ── */
@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .villas__head {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card__media {
    aspect-ratio: 4 / 3;
  }
}

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

  .journey__shade {
    background:
      linear-gradient(180deg, rgba(6, 13, 18, 0.5) 0%, rgba(6, 13, 18, 0) 16%),
      linear-gradient(0deg, rgba(6, 13, 18, 0.9) 0%, rgba(6, 13, 18, 0.4) 40%, rgba(6, 13, 18, 0) 62%);
  }

  .chapter {
    right: var(--gutter);
    bottom: 76px;
    width: auto;
  }

  .chapter__lead {
    font-size: 15px;
  }

  .detail__stage {
    align-items: flex-end;
    padding-bottom: 64px;
  }

  .detail__media img {
    object-position: 92% 50%;
  }

  .detail__stage::after {
    background: linear-gradient(0deg, rgba(6, 13, 18, 0.95) 0%, rgba(6, 13, 18, 0.6) 55%, rgba(6, 13, 18, 0.15) 100%);
  }

  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .booking {
    grid-template-columns: 1fr;
  }
}
