/* ==========================================================================
   Elite Manor — Design 06 "Dusk"
   A page whose light changes as you scroll: sand daylight → stone → twilight
   → pool ink → night. The pebble-lamp glow (#F1BC64) is the only accent and
   it switches on only once night has fallen.
   Fraunces (display) · Hanken Grotesk (body) · Martian Mono (labels)
   ========================================================================== */

:root {
  --sand: #E8E0D3;
  --stone: #B9A48E;
  --apricot: #D99A6C;
  --lamp: #F1BC64;
  --twilight: #4A4550;
  --pool: #10262E;
  --night: #0B1017;
  --ivory: #F3EEE5;
  --ink: #1A1714;
  --ink-2: #3A3430;     /* secondary text on sand / stone (≥5:1) */
  --ivory-2: #C9C1B5;   /* secondary text on twilight / pool / night (≥5:1) */
  --line-light: rgba(26, 23, 20, 0.18);
  --line-dark: rgba(243, 238, 229, 0.16);

  --page-bg: var(--sand);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", "SF Mono", Menlo, Consolas, monospace;

  --display-axes: "opsz" 144, "SOFT" 60, "WONK" 1;

  --fs-display: clamp(3rem, 9vw, 9.5rem);
  --fs-h2: clamp(2.2rem, 4.5vw, 4.5rem);
  --fs-h3: clamp(1.6rem, 2.6vw, 2.4rem);
  --fs-body: 1.0625rem;
  --lh-body: 1.65;

  --container: min(1280px, 92vw);
  --pad: clamp(5rem, 10vw, 9rem);
  --header-h: 84px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--showcase-h, 0px)); }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 320px;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.02; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
address { font-style: normal; }
figure { margin: 0; }
strong { font-weight: 500; }
::selection { background: var(--lamp); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.l-twilight :focus-visible, .l-pool :focus-visible, .l-night :focus-visible,
.site-header.is-dark :focus-visible, .menu :focus-visible, .lightbox :focus-visible { outline-color: var(--lamp); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: calc(12px + var(--showcase-h, 0px)); z-index: 6000;
  background: var(--lamp); color: var(--ink); padding: 10px 16px; font-weight: 500;
  transform: translateY(-200%); transition: transform .25s;
}
.skip-link:focus { transform: none; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.display, .h2, .h3, .quote {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.display { font-size: var(--fs-display); line-height: 0.95; letter-spacing: -0.025em; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; }
.h3 { font-size: var(--fs-h3); line-height: 1.08; }
.quote {
  font-style: italic; font-weight: 300;
  font-size: clamp(1.7rem, 3.2vw, 3rem); line-height: 1.22;
}
.kicker {
  font-family: var(--font-body); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.28em; text-transform: uppercase; margin: 0 0 1.4rem;
}
.mono {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.lead { font-size: 1.25rem; font-weight: 300; line-height: 1.55; }
.muted { color: var(--ink-2); }
.l-twilight .muted, .l-pool .l .muted, .l-pool .muted, .l-night .muted { color: var(--ivory-2); }
.measure { max-width: 62ch; }

/* --------------------------------------------------------------------------
   Light states. No-JS / reduced-motion pages render stepped chapter colours;
   with motion on, the section background is cleared and body --page-bg is
   tweened between chapters by ScrollTrigger.
   -------------------------------------------------------------------------- */
.l-sand { background: var(--sand); color: var(--ink); }
.l-stone { background: var(--stone); color: var(--ink); }
.l-twilight { background: var(--twilight); color: var(--ivory); }
.l-pool { background: var(--pool); color: var(--ivory); }
.l-night { background: var(--night); color: var(--ivory); }
html.motion [data-bg] { background: transparent; }

.container { width: var(--container); margin-inline: auto; }
.section { padding: var(--pad) 0; position: relative; }
.section--tight { padding: calc(var(--pad) * 0.6) 0; }

/* --------------------------------------------------------------------------
   Buttons — ink on light chapters; the lamp only once night has fallen
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 2px;
  font-weight: 500; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--ink); color: var(--ivory); border: 1px solid var(--ink);
  transition: background .3s, color .3s, border-color .3s, box-shadow .4s, transform .3s var(--ease-out);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.l-twilight .btn, .l-pool .btn, .l-night .btn, .btn--lamp {
  background: var(--lamp); color: var(--ink); border-color: var(--lamp);
}
.l-twilight .btn:hover, .l-pool .btn:hover, .l-night .btn:hover, .btn--lamp:hover {
  background: transparent; color: var(--lamp);
}
.l-twilight .btn--ghost, .l-pool .btn--ghost, .l-night .btn--ghost {
  background: transparent; color: var(--ivory); border-color: var(--line-dark);
}
.l-twilight .btn--ghost:hover, .l-pool .btn--ghost:hover, .l-night .btn--ghost:hover {
  border-color: var(--lamp); color: var(--lamp); background: transparent;
}
.btn__arrow { width: 18px; height: 18px; }

.text-link {
  font-weight: 500; letter-spacing: .04em;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; left: 0; right: 0; top: var(--showcase-h, 0px); z-index: 900;
  height: var(--header-h); color: var(--ink);
  transition: color .5s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -28px;
  background: linear-gradient(to bottom, var(--page-bg) 0%, var(--page-bg) 45%, transparent 100%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-dark { color: var(--ivory); }
html.no-js .page-home .site-header { color: var(--ivory); }
html.no-js .page-home .brand__white { opacity: 1; }
html.no-js .page-home .brand__black { opacity: 0; }
.site-header__inner {
  position: relative; width: var(--container); margin-inline: auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: block; position: relative; width: 140px; height: 44px; flex: none; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .5s; }
.brand__white { opacity: 0; }
.is-dark .brand__white { opacity: 1; }
.is-dark .brand__black { opacity: 0; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__list > li { position: relative; }
.nav__list a, .nav__list button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 0.86rem; font-weight: 500; letter-spacing: .04em;
  border-radius: 2px; position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__sub-toggle { margin-left: -14px; padding-left: 4px !important; }
.nav__sub-toggle svg { width: 12px; height: 12px; transition: transform .3s; }
.nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--night); color: var(--ivory); padding: 8px; border-radius: 2px;
  box-shadow: 0 18px 40px rgba(11, 16, 23, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .25s, visibility 0s .25s;
}
.nav__sub a { display: block; width: 100%; padding: 10px 12px; }
.nav__sub a::after { display: none; }
.nav__sub a:hover { color: var(--lamp); }
.nav__list > li.is-open .nav__sub, .nav__list > li:hover .nav__sub, .nav__list > li:focus-within .nav__sub {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav__cta { margin-left: 14px; }
.nav__cta .btn { padding: 12px 20px; font-size: 0.78rem; }
.site-header.is-dark .nav__cta .btn { background: transparent; color: var(--ivory); border-color: var(--line-dark); }
.site-header.is-dark .nav__cta .btn:hover { border-color: var(--lamp); color: var(--lamp); }
.site-header.is-lit .nav__cta .btn { background: var(--lamp); color: var(--ink); border-color: var(--lamp); }
.site-header.is-lit .nav__cta .btn:hover { background: transparent; color: var(--lamp); }

.menu-toggle {
  display: none; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: 8px 0;
}
.menu-toggle__bars { position: relative; width: 26px; height: 12px; display: block; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s, top .3s;
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

/* Mobile overlay menu — always night, lamp on */
.menu {
  position: fixed; inset: 0; top: var(--showcase-h, 0px); z-index: 850;
  background: var(--night); color: var(--ivory);
  padding: calc(var(--header-h) + 24px) 6vw 40px;
  display: flex; flex-direction: column; overflow-y: auto;
}
.menu[hidden] { display: none; }
.site-header.is-menu .nav { visibility: hidden; }
.menu__list { display: flex; flex-direction: column; gap: 2px; }
.menu__list a {
  display: block; padding: 12px 0;
  font-family: var(--font-display); font-variation-settings: var(--display-axes); font-weight: 300;
  font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.05;
  border-bottom: 1px solid var(--line-dark);
}
.menu__list a:hover, .menu__list a[aria-current="page"] { color: var(--lamp); }
.menu__sub { padding: 4px 0 12px 24px; }
.menu__sub a { font-family: var(--font-body); font-variation-settings: normal; font-size: 1.1rem; border: 0; padding: 8px 0; color: var(--ivory-2); }
.menu__foot { margin-top: auto; padding-top: 32px; color: var(--ivory-2); font-size: .95rem; }
.menu__foot a { color: var(--ivory); }

/* --------------------------------------------------------------------------
   Home — 1. Hero (pinned): day → dusk crossfade
   -------------------------------------------------------------------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__layers { position: absolute; inset: 0; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; }
.hero__scrim--day { opacity: 0; } /* decorative; motion sets it to 1 at daylight and fades it out */
.hero__scrim--day {
  background: linear-gradient(to top, var(--sand) 0%, rgba(232, 224, 211, .55) 28%, rgba(232, 224, 211, 0) 60%);
}
.hero__scrim--dusk {
  background:
    linear-gradient(to top, var(--stone) 0%, rgba(185, 164, 142, .6) 26%, rgba(217, 154, 108, 0) 60%),
    linear-gradient(to bottom, rgba(16, 38, 46, .35), rgba(16, 38, 46, 0) 30%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: var(--container); margin-inline: auto;
  padding-bottom: clamp(2.5rem, 6vh, 5rem);
  color: var(--ivory); /* final (dusk) state; motion starts it at ink */
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.hero__text { max-width: 12ch; }
.hero__kicker { margin-bottom: 1rem; }
.hero__title { display: block; }
.hero__title .char { display: inline-block; transform-style: preserve-3d; }
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__hint {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; padding-bottom: 6px; white-space: nowrap;
}
.hero__hint::after { content: ""; width: 56px; height: 1px; background: currentColor; }

/* 2. Dusk falls — mission + master plan drifting behind */
.dusk { overflow: hidden; }
.dusk__plan {
  position: absolute; right: -22%; top: -6%; width: min(78vw, 1060px); opacity: .34; mix-blend-mode: multiply;
  pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}
.dusk__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.dusk__title { max-width: 16ch; }
.dusk__copy p { max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 2rem; }
.cta-row .note { max-width: 34ch; font-size: .92rem; color: var(--ink-2); margin: 0; }
.l-night .cta-row .note, .l-pool .cta-row .note { color: var(--ivory-2); }

/* 3. The film */
.film__frame {
  position: relative; aspect-ratio: 16 / 9; background: var(--night); overflow: hidden; border-radius: 2px;
  box-shadow: 0 40px 80px -30px rgba(11, 16, 23, .5);
}
.film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px;
  color: var(--ivory); background: linear-gradient(to top, rgba(11, 16, 23, .55), rgba(11, 16, 23, .05) 50%);
}
.film__play-ring {
  width: 88px; height: 88px; border-radius: 50%; border: 1px solid rgba(243, 238, 229, .7);
  display: grid; place-items: center; transition: background .3s, border-color .3s, transform .4s var(--ease-out);
  backdrop-filter: none;
}
.film__play-ring svg { width: 26px; height: 26px; margin-left: 4px; }
.film__play:hover .film__play-ring { background: var(--lamp); border-color: var(--lamp); color: var(--ink); transform: scale(1.06); }
.film__play-label { position: absolute; left: 24px; bottom: 20px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__caption { margin-top: 1rem; display: flex; justify-content: space-between; gap: 16px; }

/* 4. Awards — ribbons drop from above */
.awards__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.awards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.award { text-align: center; }
.award__ribbon { width: min(180px, 56%); margin: 0 auto 1.6rem; filter: drop-shadow(0 30px 40px rgba(11, 16, 23, .45)); }
.award__ribbon img { width: 100%; height: auto; }
.award__meta { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.award__year { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; }
.award__result { font-family: var(--font-display); font-variation-settings: var(--display-axes); font-style: italic; font-size: 1.5rem; }
.award__category { font-size: .95rem; color: var(--ivory-2); max-width: 24ch; }

/* 5. Projects — image reveals by clip-path */
.projects__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(2rem, 5vw, 4rem); }
.projects__grid { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.pcard { display: flex; flex-direction: column; gap: 1.2rem; }
.pcard__media { position: relative; overflow: hidden; border-radius: 2px; background: var(--night); aspect-ratio: 3 / 2; }
.pcard--portrait .pcard__media { aspect-ratio: 4 / 5; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__media--soon img { filter: saturate(.6) brightness(.7); }
.pcard__status {
  position: absolute; left: 20px; top: 20px; padding: 8px 12px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(11, 16, 23, .7); color: var(--ivory); border-radius: 2px;
}
.pcard__logo { height: 64px; width: auto; }
.pcard--portrait .pcard__logo { height: 44px; }
.pcard__body { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.pcard__blurb { color: var(--ivory-2); max-width: 40ch; }

/* 6. Night — the lamp is on */
.night { text-align: center; }
.night__inner { position: relative; max-width: 760px; margin-inline: auto; }
.night__glow {
  position: absolute; left: 50%; top: 50%; width: min(90vw, 720px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(241, 188, 100, .28) 0%, rgba(241, 188, 100, .1) 32%, rgba(241, 188, 100, 0) 62%);
  pointer-events: none; z-index: 0;
}
.night__inner > * { position: relative; z-index: 1; }
.night__blurb { font-size: 1.25rem; font-weight: 300; line-height: 1.55; margin: 0 auto 2.2rem; max-width: 46ch; }

/* 7. FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); }
.faq__list { border-top: 1px solid var(--line-dark); }
.faq { border-bottom: 1px solid var(--line-dark); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; text-align: left; font-size: 1.12rem; font-weight: 400; line-height: 1.4;
  transition: color .3s;
}
.faq__q:hover, .faq__q[aria-expanded="true"] { color: var(--lamp); }
.faq__icon { flex: none; width: 28px; height: 28px; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: currentColor; left: 50%; top: 50%; transform: translate(-50%, -50%);
  transition: transform .35s var(--ease-out);
}
.faq__icon::before { width: 16px; height: 1px; }
.faq__icon::after { width: 1px; height: 16px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::before { transform: translate(-50%, -50%) rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--ivory-2); max-width: 60ch; padding: 0 48px 24px 0; margin: 0; }
.faq__a.is-open { grid-template-rows: 1fr; }
html.no-js .faq__a { grid-template-rows: 1fr; }

/* 8. World clocks */
.clocks__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1.2rem, 3vw, 3rem); margin-top: clamp(2rem, 5vw, 4rem); }
.clock { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.clock__face { width: min(100%, 150px); aspect-ratio: 1; }
.clock__face circle.ring { fill: none; stroke: var(--line-dark); stroke-width: 1; }
.clock__face .tick { stroke: rgba(243, 238, 229, .5); stroke-width: 1; }
.clock__face .hand { stroke: var(--ivory); stroke-linecap: round; }
.clock__face .hand--h { stroke-width: 3; }
.clock__face .hand--m { stroke-width: 2; }
.clock__face .hand--s { stroke: var(--lamp); stroke-width: 1; }
.clock__face .pin { fill: var(--lamp); }
.clock__city { font-size: 1rem; font-weight: 500; letter-spacing: .04em; }
.clock__time { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: var(--ivory-2); font-variant-numeric: tabular-nums; }

/* 9. Climax CTA */
.finale { text-align: center; padding-top: calc(var(--pad) * 1.2); }
.finale__inner { position: relative; max-width: 820px; margin-inline: auto; }
.finale .night__glow { width: min(100vw, 900px); }
.finale__title { margin-bottom: 2rem; }
.finale__note { color: var(--ivory-2); max-width: 44ch; margin: 1.4rem auto 0; }

/* --------------------------------------------------------------------------
   Footer (night)
   -------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--ivory); padding: calc(var(--pad) * .7) 0 2.5rem; border-top: 1px solid var(--line-dark); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer__brand img { width: 150px; height: auto; margin-bottom: 1.4rem; }
.site-footer__brand address, .site-footer__contact { color: var(--ivory-2); font-size: .95rem; line-height: 1.7; }
.site-footer h3 { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; margin-bottom: 1.1rem; color: var(--ivory-2); }
.site-footer li { margin-bottom: .45rem; }
.site-footer li a:hover { color: var(--lamp); }
.site-footer__soon { color: var(--ivory-2); }
.site-footer__soon span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; margin-left: 8px; }
.site-footer__contact a { color: var(--ivory); }
.social { display: flex; gap: 10px; margin-top: 1rem; }
.social a { width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; transition: border-color .3s, color .3s; }
.social a:hover { border-color: var(--lamp); color: var(--lamp); }
.social svg { width: 16px; height: 16px; }
.site-footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: .82rem; color: var(--ivory-2);
}
.site-footer__bottom a:hover { color: var(--lamp); }

/* --------------------------------------------------------------------------
   Inner pages — page hero with parallax image
   -------------------------------------------------------------------------- */
.page-hero { position: relative; min-height: 70vh; display: flex; align-items: flex-end; overflow: hidden; color: var(--ivory); }
.page-hero--short { min-height: 56vh; }
.page-hero__media { position: absolute; inset: -12% 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 16, 23, .82) 0%, rgba(11, 16, 23, .35) 45%, rgba(11, 16, 23, .1) 100%), linear-gradient(to bottom, rgba(11, 16, 23, .5), rgba(11, 16, 23, 0) 26%); }
.page-hero__content { position: relative; width: var(--container); margin-inline: auto; padding: calc(var(--header-h) + 3rem) 0 clamp(2.5rem, 6vw, 5rem); }
.page-hero__title { max-width: 14ch; }
.page-hero__logo { width: min(420px, 70vw); height: auto; }
.page-hero__sub { margin-top: 1.4rem; color: var(--ivory-2); max-width: 46ch; }

.prose { max-width: 66ch; }
.prose p { margin-bottom: 1.4em; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split__aside { position: sticky; top: calc(var(--header-h) + var(--showcase-h, 0px) + 24px); }

/* About — quote line reveal */
.about__quote { max-width: 24ch; }
.about__quote .line { display: block; overflow: hidden; }
.about__quote .line > div { display: inline-block; }

/* Team — portraits rise with a lamp rim */
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.person { display: grid; grid-template-rows: auto auto; gap: 1.6rem; }
.person__figure {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px;
  background: linear-gradient(to bottom, var(--pool) 0%, var(--night) 100%);
  display: flex; align-items: flex-end; justify-content: center;
}
.person__figure img {
  width: 82%; height: 96%; object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 0 26px rgba(241, 188, 100, .22)) drop-shadow(0 0 1px rgba(241, 188, 100, .4));
}
.person__figure::after { content: ""; position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(to top, var(--night), transparent); }
.person__name { margin-bottom: .3rem; }
.person__role { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lamp); margin-bottom: 1.2rem; }
.person__bio { color: var(--ivory-2); font-size: 1rem; }

.partners__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.partner { background: var(--ivory); color: var(--ink); padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: 2px; display: flex; flex-direction: column; gap: 1.4rem; }
.partner__logo { height: 48px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.partner p { color: var(--ink-2); font-size: 1rem; }

/* Projects page */
.projects-page .projects__grid { margin-top: clamp(2rem, 4vw, 3rem); }

/* --------------------------------------------------------------------------
   Lavish Estates
   -------------------------------------------------------------------------- */
.le-hero { min-height: 88vh; align-items: center; }
.le-hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--header-h) + 4rem); }
.le-hero__logo { width: min(520px, 76vw); height: auto; }
.le-hero__hint { margin-top: 3rem; }

.le-intro__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }

/* Master plan + lot pills (little pebbles that light up) */
.plan__head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.plan__size { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-2); }
.plan__size strong { color: var(--ivory); font-weight: 400; }
.plan__figure { background: var(--ivory); border-radius: 2px; overflow: hidden; }
.plan__figure img { width: 100%; height: auto; }
.plan__legend { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: start; }
.plan__legend-head { display: flex; flex-direction: column; gap: 10px; }
.plan__key { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-2); }
.plan__key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; border: 1px solid var(--lamp); }
.plan__key .sold i { border-color: var(--ivory-2); opacity: .5; }
.plan__key .available i { background: var(--lamp); box-shadow: 0 0 10px rgba(241, 188, 100, .6); }
.lots { display: flex; flex-wrap: wrap; gap: 10px; }
.lots__group { display: contents; }
.lot {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line-dark); color: var(--ivory-2);
}
.lot__state { font-size: .58rem; opacity: .8; }
.lot--available { border-color: var(--lamp); color: var(--ivory); box-shadow: 0 0 16px rgba(241, 188, 100, .28), inset 0 0 12px rgba(241, 188, 100, .12); }
.lot--available .lot__state { color: var(--lamp); opacity: 1; }
.lot--sold { opacity: .55; }

/* Villa types — panels slide from alternating sides */
.villa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line-dark); }
.villa:last-child { border-bottom: 1px solid var(--line-dark); }
.villa__name { margin-bottom: 1.4rem; }
.villa__rooms { display: flex; gap: 2.5rem; margin-bottom: 1.8rem; }
.villa__rooms b { display: block; font-family: var(--font-display); font-variation-settings: var(--display-axes); font-weight: 300; font-size: 3rem; line-height: 1; }
.villa__rooms span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-2); }
.villa__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-bottom: 1.8rem; }
.villa__specs div { border-top: 1px solid var(--line-dark); padding-top: 10px; }
.villa__specs dt { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-2); margin-bottom: 4px; }
.villa__specs dd { margin: 0; font-size: 1.05rem; }
.villa__features { display: flex; flex-wrap: wrap; gap: 8px; }
.villa__features li { font-size: .82rem; letter-spacing: .04em; padding: 6px 12px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--ivory-2); }
.villa__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: start; }
.plan-card { background: var(--ivory); color: var(--ink); border-radius: 2px; padding: 16px; }
.plan-card img { width: 100%; height: auto; aspect-ratio: 579 / 414; object-fit: contain; }
.plan-card figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* Gallery — pinned horizontal track on desktop, masonry on mobile */
.gallery { padding: calc(var(--header-h) + 1.5rem) 0 2.5rem; }
.gallery__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 2rem; }
.gallery__tabs { display: flex; gap: 8px; }
.gallery__tab {
  padding: 10px 16px; border: 1px solid var(--line-dark); border-radius: 999px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-2);
  transition: border-color .3s, color .3s;
}
.gallery__tab:hover, .gallery__tab[aria-current="true"] { border-color: var(--lamp); color: var(--lamp); }
.gallery__counter { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; color: var(--ivory-2); font-variant-numeric: tabular-nums; }
.gallery__stage { position: relative; }
.gallery__track { display: flex; gap: 16px; align-items: center; height: calc(100vh - var(--header-h) - var(--showcase-h, 0px) - 200px); min-height: 380px; max-height: 760px; padding: 0 4vw; width: max-content; }
.gallery__label {
  flex: none; writing-mode: vertical-rl; transform: rotate(180deg); align-self: stretch;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-2);
  display: flex; align-items: center; justify-content: center; padding: 0 8px;
}
.gitem { flex: none; height: 100%; background: var(--pool); overflow: hidden; border-radius: 2px; display: block; }
.gitem--landscape { aspect-ratio: 3 / 2; }
.gitem--landscape.gitem--wide { aspect-ratio: 1800 / 1029; }
.gitem--portrait { aspect-ratio: 3 / 4; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), opacity .5s; }
.gitem:hover img { transform: scale(1.03); }
.gitem:focus-visible { outline-offset: -3px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; top: var(--showcase-h, 0px); z-index: 2000; background: rgba(11, 16, 23, .96); color: var(--ivory);
  display: flex; flex-direction: column;
}
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.lightbox__close { display: inline-flex; align-items: center; gap: 10px; padding: 8px; }
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 72px 24px; min-height: 0; touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-dark); display: grid; place-items: center; transition: border-color .3s, color .3s;
}
.lightbox__nav:hover { border-color: var(--lamp); color: var(--lamp); }
.lightbox__nav svg { width: 18px; height: 18px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__caption { text-align: center; padding: 0 24px 22px; color: var(--ivory-2); font-size: .9rem; }

/* --------------------------------------------------------------------------
   Forms — underline inputs, lamp focus
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 1.8rem; max-width: 620px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-2); padding: 0; }
.field label .req { color: var(--lamp); margin-left: 4px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0;
  color: var(--ivory); font: inherit; padding: 10px 0 12px; transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ivory-2) 50%), linear-gradient(135deg, var(--ivory-2) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 8px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; cursor: pointer; }
.field select option { color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--lamp); box-shadow: 0 1px 0 0 var(--lamp), 0 8px 24px -10px rgba(241, 188, 100, .5); }
.field input::placeholder, .field textarea::placeholder { color: rgba(243, 238, 229, .35); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--line-dark); border-radius: 999px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; transition: border-color .3s, color .3s, box-shadow .3s;
}
.choice input:checked + span { border-color: var(--lamp); color: var(--lamp); box-shadow: 0 0 14px rgba(241, 188, 100, .3); }
.choice input:focus-visible + span { outline: 2px solid var(--lamp); outline-offset: 3px; }
.form__note { color: var(--ivory-2); font-size: .92rem; }
.form__status { font-size: .95rem; color: var(--lamp); min-height: 1.5em; margin: 0; }
.form__status:empty { display: none; }

.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__details { display: grid; gap: 1.6rem; }
.contact__details h3 { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-2); margin-bottom: .5rem; }
.contact__details a { color: var(--ivory); }
.contact__details a:hover { color: var(--lamp); }
.contact__img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; margin-top: 2rem; }
.contact__img img { width: 100%; height: 100%; object-fit: cover; }

.register__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.gform { margin-top: 3rem; border-top: 1px solid var(--line-dark); padding-top: 2rem; }
.gform summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: .04em; }
.gform summary::-webkit-details-marker { display: none; }
.gform summary::after { content: "+"; font-family: var(--font-mono); }
.gform[open] summary::after { content: "–"; }
.gform iframe { width: 100%; height: 1200px; border: 0; margin-top: 1.5rem; background: var(--ivory); border-radius: 2px; }

/* Privacy */
.legal__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); }
.legal__toc { position: sticky; top: calc(var(--header-h) + var(--showcase-h, 0px) + 24px); display: flex; flex-direction: column; gap: 8px; }
.legal__toc a { font-size: .9rem; color: var(--ivory-2); }
.legal__toc a:hover { color: var(--lamp); }
.legal__section { padding: 2rem 0; border-top: 1px solid var(--line-dark); }
.legal__section h2 { margin-bottom: 1rem; }
.legal__section ul { list-style: disc; padding-left: 1.2em; margin: .8em 0 1.2em; color: var(--ivory-2); }
.legal__section li { margin-bottom: .4em; }
.legal__section p { color: var(--ivory-2); max-width: 66ch; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav__list a, .nav__list button { padding: 10px 10px; font-size: .8rem; }
}
@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .dusk__grid, .faq__grid, .split, .le-intro__grid, .contact__grid, .register__grid, .legal__grid, .awards__head { grid-template-columns: 1fr; }
  .split__aside, .legal__toc { position: static; }
  .villa { grid-template-columns: 1fr; }
  .clocks__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .gallery__track { display: block; width: auto; height: auto; min-height: 0; padding: 0; columns: 2; column-gap: 12px; }
  .gallery__label { writing-mode: horizontal-tb; transform: none; display: block; padding: 8px 0 14px; column-span: all; }
  .gitem { display: block; height: auto; width: 100%; margin: 0 0 12px; break-inside: avoid; }
  .gallery__counter { display: none; }
  .projects__grid { grid-template-columns: 1fr; }
  .pcard--portrait .pcard__media { aspect-ratio: 3 / 2; }
  .awards__grid { grid-template-columns: 1fr; gap: 3rem; }
  .team__grid, .partners__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --pad: clamp(4rem, 14vw, 6rem); }
  .brand { width: 118px; height: 38px; }
  .hero__content { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__img { object-position: 52% 50%; }
  .clocks__grid { grid-template-columns: repeat(2, 1fr); }
  .clock:last-child { grid-column: span 2; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .villa__specs { grid-template-columns: 1fr 1fr; }
  .villa__plans { grid-template-columns: 1fr; }
  .plan__legend { grid-template-columns: 1fr; }
  .lightbox__stage { padding: 0 12px 16px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 6px; } .lightbox__nav--next { right: 6px; }
  .cta-row { align-items: flex-start; flex-direction: column; }
  .villa__rooms b { font-size: 2.4rem; }
  .gallery__track { columns: 1; }
}
@media (max-width: 400px) {
  .villa__specs { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Reduced motion — everything in final state
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
