/* Palette — the single source of colour. Tailwind reads these via tailwind.config in index.html. */
:root {
  --bg: #0e0e0d;        /* deep charcoal */
  --surface: #171715;   /* raised panels */
  --line: #2a2926;      /* hairlines */
  --text: #f5f2ec;      /* crisp warm white */
  --muted: #a9a499;     /* secondary text, 7:1 on --bg */
  --accent: #d8a565;    /* warm ambient light */
  --cta: #d8a565;
  --cta-text: #14110d;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.font-display { font-family: var(--font-display); }

/* Header: transparent over the hero, solid after scroll */
.site-header { transition: background-color .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(14,14,13,.88); backdrop-filter: blur(12px); border-color: var(--line); }

/* Hero */
.hero-shade { background:
  radial-gradient(ellipse 85% 75% at 50% 42%, rgba(14,14,13,0) 40%, rgba(14,14,13,.7) 100%),
  linear-gradient(180deg, rgba(14,14,13,.55) 0%, rgba(14,14,13,0) 30%, rgba(14,14,13,.35) 68%, var(--bg) 100%); }
@media (min-width: 768px) { .hero-shade { background:
  radial-gradient(ellipse 85% 80% at 50% 40%, rgba(14,14,13,0) 42%, rgba(14,14,13,.7) 100%),
  linear-gradient(90deg, rgba(14,14,13,.62) 0%, rgba(14,14,13,.12) 55%, rgba(14,14,13,0) 100%),
  linear-gradient(180deg, rgba(14,14,13,.5) 0%, rgba(14,14,13,0) 28%, rgba(14,14,13,.25) 75%, var(--bg) 100%); } }
/* Tone the sunset down into the charcoal palette */
.hero-img { filter: saturate(.78) brightness(.86) contrast(1.06); }
.hero-img { animation: hero-settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: scale(1); } }

/* CTA button: light sweep on hover */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 2.25rem; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  background: var(--cta); color: var(--cta-text); border: 1px solid var(--cta); cursor: pointer;
  transition: color .4s, background-color .4s, transform .4s; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--bg); transform: translateY(101%); transition: transform .45s cubic-bezier(.2,.7,.2,1); z-index: 0; }
.btn > * { position: relative; z-index: 1; }
.btn:hover, .btn:focus-visible { color: var(--text); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn .arrow { transition: transform .4s; }
.btn:hover .arrow { transform: translateX(6px); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(245,242,236,.45); }
.btn-ghost::before { background: var(--text); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Image zoom on hover */
.zoom { overflow: hidden; }
.zoom img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.zoom:hover img, .zoom:focus-visible img { transform: scale(1.06); }

/* Section eyebrow */
.eyebrow { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.rule { width: 3rem; height: 1px; background: var(--accent); }

/* Spaces carousel */
.rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: 1rem; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; flex: 0 0 auto; }
@media (min-width: 768px) { .rail { gap: 1.5rem; padding-inline: max(1.5rem, calc((100vw - 80rem) / 2 + 1.5rem)); } .rail > * { scroll-snap-align: start; } }
.card-cap { background: linear-gradient(0deg, rgba(14,14,13,.85), rgba(14,14,13,0)); }

/* Form */
.field label { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.field input, .field select, .field textarea { width: 100%; background: transparent; color: var(--text); border: 0; border-bottom: 1px solid #4a4741;
  padding: .6rem 0; font: inherit; border-radius: 0; color-scheme: dark; transition: border-color .3s; }
.field textarea { resize: vertical; min-height: 5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); }
.field select option { background: var(--surface); }
.field .err { color: #e9a08a; font-size: .8rem; margin-top: .35rem; min-height: 1rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Lightbox */
dialog.lightbox { background: transparent; border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
dialog.lightbox::backdrop { background: rgba(8,8,7,.94); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { animation: none; }
  .zoom img, .btn, .btn::before, .btn .arrow { transition: none; }
}

/* Map: monochrome, translucent, over faint mountain outlines */
.map-wrap { position: relative; background-color: var(--surface); overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300' preserveAspectRatio='xMidYMax slice'%3E%3Cg fill='none' stroke='%23d8a565' stroke-width='1.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath opacity='.55' d='M0 230 90 150 140 185 230 80 290 140 350 100 430 190 500 120 560 170 650 60 720 150 800 110'/%3E%3Cpath opacity='.3' d='M0 270 70 210 160 250 260 170 340 230 450 140 540 220 640 160 730 230 800 190'/%3E%3Cpath opacity='.15' d='M0 295 120 250 220 280 330 225 470 285 600 235 720 280 800 255'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover; background-position: center bottom; }
.map-wrap iframe { filter: grayscale(1) invert(1) contrast(.9) brightness(.85); opacity: .5; transition: opacity .6s; }
.map-wrap:hover iframe, .map-wrap:focus-within iframe { opacity: .85; }
.map-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px 10px var(--surface); }

/* Legibility over photography */
.on-photo { color: #f0c88f; text-shadow: 0 1px 14px rgba(8,8,7,.7); }
