/* ============================================================
   NATIVA · Pre-Development Teaser — stylesheet
   Three art directions toggled via [data-theme] on <html>.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Didact+Gothic&display=swap');

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

:root {
  --serif: 'Cormorant Garamond', Georgia, serif;
  --body: 'EB Garamond', Georgia, serif;
  --label: 'Didact Gothic', system-ui, sans-serif;
  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- THEME: NOCTURNE (default, cinematic dark) ---------- */
html[data-theme="nocturne"] {
  --bg:        #0A1320;
  --bg-2:      #0E1A2C;
  --surface:   #122236;
  --ink:       #ECE6D8;
  --ink-soft:  #9CA9BC;
  --gold:      #C9A24B;
  --gold-br:   #E4C57E;
  --line:      rgba(201,162,75,.26);
  --line-soft: rgba(236,230,216,.12);
  --accent:    #3D6B58;
  --hero-veil: linear-gradient(180deg, rgba(8,15,26,.30) 0%, rgba(8,15,26,.20) 38%, rgba(8,15,26,.78) 82%, rgba(8,15,26,.95) 100%);
  --card-veil: linear-gradient(180deg, rgba(8,15,26,0) 30%, rgba(8,15,26,.85) 100%);
  --on-image:  #F3EEE2;
  --shadow:    0 30px 70px -30px rgba(0,0,0,.7);
}

/* ---------- THEME: ATELIER (light, architectural gallery) ---------- */
html[data-theme="atelier"] {
  --bg:        #F3EDE2;
  --bg-2:      #EAE2D3;
  --surface:   #FCF9F2;
  --ink:       #29271F;
  --ink-soft:  #6E6555;
  --gold:      #9C7733;
  --gold-br:   #BC9648;
  --line:      rgba(41,39,31,.16);
  --line-soft: rgba(41,39,31,.10);
  --accent:    #2C5F4A;
  --hero-veil: linear-gradient(180deg, rgba(28,24,18,.18) 0%, rgba(28,24,18,.06) 40%, rgba(243,237,226,.55) 86%, rgba(243,237,226,.92) 100%);
  --card-veil: linear-gradient(180deg, rgba(20,16,12,0) 38%, rgba(20,16,12,.7) 100%);
  --on-image:  #FBF7EE;
  --shadow:    0 28px 60px -34px rgba(60,48,28,.45);
}

/* ---------- THEME: TERRAIN (earthy forest, survey feel) ---------- */
html[data-theme="terrain"] {
  --bg:        #13201A;
  --bg-2:      #18271F;
  --surface:   #1E3027;
  --ink:       #E9E3D2;
  --ink-soft:  #A2AC9A;
  --gold:      #B89154;
  --gold-br:   #D9B673;
  --line:      rgba(184,145,84,.30);
  --line-soft: rgba(233,227,210,.13);
  --accent:    #6E8B5A;
  --hero-veil: linear-gradient(180deg, rgba(10,18,13,.34) 0%, rgba(10,18,13,.18) 40%, rgba(15,28,20,.80) 84%, rgba(15,28,20,.96) 100%);
  --card-veil: linear-gradient(180deg, rgba(10,18,13,0) 30%, rgba(10,18,13,.86) 100%);
  --on-image:  #EFEADb;
  --shadow:    0 30px 70px -30px rgba(0,0,0,.6);
}

/* ============================================================
   BASE
   ============================================================ */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .6s var(--ease), color .6s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.with-rule { display: inline-flex; align-items: center; gap: 16px; }
.eyebrow.with-rule::before,
.eyebrow.with-rule::after { content: ""; width: 34px; height: 1px; background: var(--line); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: .005em; }
.display { font-size: clamp(46px, 8.4vw, 116px); font-weight: 300; line-height: .98; letter-spacing: -.01em; }
.section-title { font-size: clamp(34px, 4.6vw, 62px); font-weight: 300; }
.lede { font-size: clamp(20px, 2vw, 27px); line-height: 1.5; color: var(--ink-soft); font-style: italic; font-weight: 400; }
em.gold, .gold-text { color: var(--gold-br); font-style: italic; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  padding: 14px 40px;
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand .logo { height: 50px; width: auto; display: block; filter: drop-shadow(0 1px 6px rgba(0,0,0,.3)); }
.brand .logo-light { display: none; }
/* Atelier (light) theme: once scrolled the bar is cream, swap to dark-text logo */
html[data-theme="atelier"] .topbar.scrolled .logo-dark { display: none; }
html[data-theme="atelier"] .topbar.scrolled .logo-light { display: block; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark b { font-family: var(--serif); font-weight: 500; font-size: 23px; letter-spacing: .42em; padding-left: .42em; color: var(--ink); }
.brand .wordmark span { font-family: var(--label); font-size: 8.5px; letter-spacing: .46em; text-transform: uppercase; color: var(--gold); margin-top: 4px; padding-left: .46em; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--label); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); position: relative; padding: 4px 0; transition: color .25s;
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--gold); transition: width .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.btn {
  font-family: var(--label); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  padding: 13px 26px; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px;
  background: transparent; cursor: pointer; transition: all .3s var(--ease); white-space: nowrap;
}
.btn:hover { background: var(--gold); color: var(--bg); }
.btn.solid { background: var(--gold); color: var(--bg); }
.btn.solid:hover { background: var(--gold-br); border-color: var(--gold-br); }
.nav-tools { display: flex; align-items: center; gap: 22px; }

/* Over the (always-dark) hero image, keep top bar text light in every theme */
.topbar:not(.scrolled) .nav a { color: rgba(243,238,226,.82); }
.topbar:not(.scrolled) .btn.solid { background: var(--gold-br); color: #14110A; border-color: var(--gold-br); }

@media (max-width: 880px){ .nav { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-veil); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px 72px; }
.hero .status-tag {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-family: var(--label); font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--on-image); background: color-mix(in oklab, var(--bg) 40%, transparent);
  border: 1px solid var(--line); padding: 9px 16px; backdrop-filter: blur(4px);
}
.hero .status-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-br); box-shadow: 0 0 0 0 var(--gold-br); animation: pulse 2.6s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 color-mix(in oklab, var(--gold-br) 70%, transparent);} 70%{ box-shadow: 0 0 0 10px transparent;} 100%{ box-shadow:0 0 0 0 transparent;} }
.hero h1 { color: var(--on-image); max-width: none; font-size: clamp(44px, 7.3vw, 98px); line-height: 1.02; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero .sub { margin-top: 32px; max-width: 46ch; color: var(--on-image); opacity: .92; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; }
.hero .credit { margin-top: 30px; font-family: var(--label); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--on-image); opacity: .72; }
.hero .credit b { color: var(--gold-br); font-weight: 400; }

.scrollcue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scrollcue span { font-family: var(--label); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--on-image); opacity: .6; }
.scrollcue .line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drop 2.2s var(--ease) infinite; }
@keyframes drop { 0%{ transform: scaleY(0); transform-origin: top; } 45%{ transform: scaleY(1); transform-origin: top; } 55%{ transform: scaleY(1); transform-origin: bottom; } 100%{ transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   SECTIONS
   ============================================================ */
section { position: relative; }
.section-pad { padding: clamp(90px, 12vw, 168px) 0; background: var(--bg); }
.alt { background: var(--bg-2); }

.section-head { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; align-items: center; }
.section-head .eyebrow { margin-bottom: 2px; }

/* Vision */
.vision { text-align: center; position: relative; }
.vision { background-image: url('images/vision-bg.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; }
.vision::before { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: .85; z-index: 0; pointer-events: none; }
.vision .wrap { position: relative; z-index: 2; max-width: 1000px; }
.vision .statement { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.7vw, 50px); line-height: 1.22; letter-spacing: -.005em; }
.vision .statement .muted { color: var(--ink-soft); }
.vision .elk-mark { width: min(480px, 74vw); height: auto; margin: 0 auto 38px; opacity: .92; }
.vision .signoff { margin-top: 46px; font-family: var(--label); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }

/* Cabins / renderings gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 64px; }
.shot { position: relative; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.shot:hover img { transform: scale(1.045); }
.shot .cap { position: absolute; left: 0; bottom: 0; right: 0; padding: 22px 24px 20px; z-index: 2; background: var(--card-veil); }
.shot .cap .k { font-family: var(--label); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-br); }
.shot .cap .t { font-family: var(--serif); font-size: 25px; font-weight: 400; color: var(--on-image); margin-top: 4px; }
.shot.big { grid-column: span 8; aspect-ratio: 16/10; }
.shot.tall { grid-column: span 4; aspect-ratio: 4/5; }
.shot.half { grid-column: span 6; aspect-ratio: 16/10; }
.shot.third { grid-column: span 4; aspect-ratio: 4/3; }
@media (max-width: 860px){
  .shot.big,.shot.tall,.shot.half,.shot.third { grid-column: span 12; aspect-ratio: 16/10; }
}

/* The Experience gallery */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.exp-grid .shot { aspect-ratio: 4/3; }
.exp-grid .cap { display: none; }
@media (max-width: 860px){ .exp-grid { grid-template-columns: 1fr; } }

/* Plan / program */
.plan-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px){ .plan-grid { grid-template-columns: 1fr; gap: 56px; } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; border-top: 1px solid var(--line); padding-top: 40px; }
.stat .n { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5vw, 68px); line-height: 1; color: var(--gold-br); }
.stat .l { font-family: var(--label); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; line-height: 1.5; }

.program-list { display: flex; flex-direction: column; }
.program-list .pl-item { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: baseline; padding: 19px 0; border-bottom: 1px solid var(--line-soft); }
.program-list .pl-item .q { font-family: var(--serif); font-size: 30px; color: var(--gold); font-weight: 400; min-width: 46px; }
.program-list .pl-item .d { font-family: var(--body); font-size: 19px; color: var(--ink); }
.program-list .pl-item .d small { display: block; font-family: var(--label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }

.amenities { margin-top: 44px; }
.amenities h4 { font-family: var(--label); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 11px; }
.chip { font-family: var(--label); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line); padding: 9px 16px; }

.disclaimer { margin-top: 26px; font-size: 15px; font-style: italic; color: var(--ink-soft); max-width: 60ch; }

/* Master plan sheet */
.plan-block { margin-top: clamp(72px, 9vw, 130px); display: flex; flex-direction: column; gap: clamp(32px, 4vw, 52px); }
.plan-intro { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.plan-title { font-size: clamp(28px, 3.4vw, 46px); font-weight: 300; }
.plan-copy { color: var(--ink-soft); font-size: 19px; line-height: 1.6; max-width: 62ch; }
.plan-sheet { background: #ffffff; padding: clamp(14px, 1.8vw, 28px); box-shadow: var(--shadow); border: 1px solid var(--line-soft); border-radius: 14px; }
.plan-sheet img { width: 100%; height: auto; display: block; border-radius: 6px; }
.plan-sheet figcaption { display: flex; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(41,39,31,.12); font-family: var(--label); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #7A7160; }

/* The Land — aerials */
.land .wrap { max-width: var(--maxw); }
.aerials { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin-top: 60px; height: clamp(440px, 56vw, 660px); }
.aerials .slot-box { position: relative; overflow: hidden; box-shadow: var(--shadow); }
.aerials .a-main { grid-row: span 2; }
.aerials image-slot { width: 100%; height: 100%; display: block; }
.aerials .aerial-img { width: 100%; height: 100%; object-fit: cover; }
.slot-tag { position: absolute; top: 14px; left: 14px; z-index: 4; font-family: var(--label); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--on-image); background: color-mix(in oklab, var(--bg) 55%, transparent); border: 1px solid var(--line); padding: 6px 11px; pointer-events: none; }
@media (max-width: 860px){ .aerials { grid-template-columns: 1fr; grid-template-rows: none; height: auto; } .aerials .a-main { grid-row: auto; aspect-ratio: 16/10; } .aerials .slot-box { aspect-ratio: 16/10; } }

/* ============================================================
   EMAIL CAPTURE
   ============================================================ */
.signup { display: flex; gap: 0; max-width: 480px; border: 1px solid var(--line); background: color-mix(in oklab, var(--surface) 60%, transparent); }
.hero .signup { background: color-mix(in oklab, var(--bg) 42%, transparent); backdrop-filter: blur(6px); margin-top: 34px; }
.signup input {
  flex: 1; background: transparent; border: none; outline: none; color: var(--ink);
  font-family: var(--body); font-size: 17px; padding: 16px 20px;
}
.signup input::placeholder { color: var(--ink-soft); }
.signup button {
  font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  background: var(--gold); color: var(--bg); border: none; padding: 0 24px; cursor: pointer;
  transition: background .3s var(--ease);
}
.signup button:hover { background: var(--gold-br); }
.signup.done { border-color: var(--accent); }
.signup-note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); font-style: italic; }
.hero .signup-note { color: var(--on-image); opacity: .72; }
.signup-success { font-family: var(--serif); font-size: 22px; color: var(--gold-br); display: none; align-items: center; gap: 12px; }
.signup-success::before { content: "✦"; color: var(--gold); }

/* Register section */
.register { text-align: center; }
.register .wrap { max-width: 760px; }
.register .signup { margin: 38px auto 0; max-width: 520px; }
.register .signup-note { text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 84px 0 40px; border-top: 1px solid var(--line-soft); background: var(--bg); }
.footer .f-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer .f-brand img { width: 320px; max-width: 80%; height: auto; opacity: .94; }
.footer .f-brand .logo-light { display: none; }
html[data-theme="atelier"] .footer .logo-dark { display: none; }
html[data-theme="atelier"] .footer .logo-light { display: block; }
.footer .f-brand p { margin-top: 18px; font-style: italic; color: var(--ink-soft); max-width: 34ch; }
.footer .f-meta { text-align: right; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.footer .f-meta .loc { font-family: var(--label); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.footer .f-meta .vellum { font-size: 15px; color: var(--ink-soft); }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: border-color .3s, transform .3s; }
.socials a:hover { border-color: var(--gold); transform: translateY(-2px); }
.socials img { width: 17px; height: 17px; opacity: .8; }
.socials img.social-color { width: 21px; height: 21px; opacity: 1; border-radius: 5px; }
.socials a:has(img.social-color) { border: none; }
html[data-theme="atelier"] .socials img { filter: invert(1) brightness(.4); }
html[data-theme="atelier"] .socials img.social-color { filter: none; }
.footer .f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.footer .f-bottom span { font-family: var(--label); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* ============================================================
   DIRECTION SWITCHER (floating)
   ============================================================ */
.switcher {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  display: flex; align-items: center; gap: 14px;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  border: 1px solid var(--line); padding: 12px 16px;
  backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.55);
}
.switcher .sw-label { font-family: var(--label); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.switcher .swatches { display: flex; gap: 9px; }
.switcher .sw {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; position: relative;
  border: 1px solid var(--line-soft); transition: transform .25s var(--ease);
}
.switcher .sw:hover { transform: scale(1.12); }
.switcher .sw[data-active="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold); }
.sw.sw-nocturne { background: radial-gradient(circle at 35% 30%, #1b3050, #0a1320 70%); }
.sw.sw-nocturne::after { content:""; position:absolute; inset: 9px 9px auto auto; width:8px; height:8px; border-radius:50%; background:#C9A24B; }
.sw.sw-atelier { background: radial-gradient(circle at 35% 30%, #fdfaf2, #e7ddca 75%); }
.sw.sw-atelier::after { content:""; position:absolute; inset: 9px 9px auto auto; width:8px; height:8px; border-radius:50%; background:#9C7733; }
.sw.sw-terrain { background: radial-gradient(circle at 35% 30%, #29412f, #13201a 72%); }
.sw.sw-terrain::after { content:""; position:absolute; inset: 9px 9px auto auto; width:8px; height:8px; border-radius:50%; background:#B89154; }
.switcher .sw-name { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink); min-width: 74px; }
@media (max-width: 620px){ .switcher .sw-name, .switcher .sw-label { display: none; } }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .09s; }
  .reveal.d2 { transition-delay: .18s; }
  .reveal.d3 { transition-delay: .27s; }
}

/* contour motif for terrain theme */
.contour { display: none; }
html[data-theme="terrain"] .contour {
  display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: repeating-radial-gradient(circle at 78% 18%, transparent 0 38px, rgba(184,145,84,.07) 38px 39px);
}
html[data-theme="terrain"] section > .wrap { position: relative; z-index: 1; }
