/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f8f4ea;   /* warm marble cream, from the logo's watercolor wash */
  --bg-2:      #eee6d2;   /* pale stone */
  --bg-teal:   #e7efe9;   /* pale teal-tinted cream, for text-heavy sections */
  --bg-gold:   #f4ecd6;   /* pale gold-tinted cream */
  --bg-blue:   #ebedf3;   /* pale dusty-blue tinted cream */
  --paper:     #fffdf8;
  --ink:       #2b2319;   /* warm charcoal-brown ink, never pure black */
  --ink-soft:  #3c3123;
  --ink-mute:  #7c6f5c;
  --accent:    #a8703f;   /* terracotta brown, from the logo lettering */
  --accent-2:  #3f8f8a;   /* turquoise wash, from the logo */
  --gold:      #c9ad6e;   /* soft brass/gold streak, from the logo */
  --blue-wash: #7d93bc;   /* dusty blue swirl, from the logo */
  --line:      rgba(43, 35, 25, 0.14);
  --line-soft: rgba(43, 35, 25, 0.08);

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--paper); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--paper); color: var(--ink);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--gold);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  position: relative;
}
.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin-top: .6rem; }
.section-head p { color: var(--ink-mute); font-size: 1.08rem; margin-top: 1rem; max-width: 40ch; }

/* Section tones — clear, solid color blocks per section (like chapters),
   rotating through the logo's palette. Each section owns one tone edge to
   edge, with a hairline at the top so the change reads as intentional
   instead of a blend that goes muddy at large sizes. */
/* No top hairline on gold: it sits right after the hero's wave divider,
   which already handles that transition — a second line there would cut
   across the curve. */
.section--tone-gold  { background: var(--bg-gold); }
.section--tone-teal  { background: var(--bg-teal); border-top: 1px solid var(--line-soft); }
.section--tone-blue  { background: var(--bg-blue); border-top: 1px solid var(--line-soft); }
.section--tone-stone { background: var(--bg-2); border-top: 1px solid var(--line-soft); }
/* For neutral sections that follow a tinted one but don't need a tint of
   their own (photo-heavy sections read fine on plain cream) — just the hairline. */
.section--divider     { border-top: 1px solid var(--line-soft); }

/* Fine paper grain over the whole page — the difference between "flat cream"
   and "marble". Fixed so it doesn't repeat visibly as sections scroll past. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 2;
  opacity: .035; mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
em { font-style: italic; color: var(--accent); }

.split-word, .split-char { display: inline-block; will-change: transform, opacity; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem;
  font-size: .92rem; font-weight: 600; letter-spacing: .02em;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(43,35,25,0.08), 0 1px 3px rgba(43,35,25,0.06);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(43,35,25,0.16), 0 10px 20px rgba(63,143,138,0.28); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-primary { background: var(--accent-2); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent); box-shadow: 0 14px 30px rgba(43,35,25,0.1); }

/* Marble swatch — the honest placeholder component */
.marble-swatch {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(255,255,255,.9), transparent 50%),
    radial-gradient(75% 65% at 18% 22%, rgba(63,143,138,.4), transparent 60%),
    radial-gradient(70% 60% at 88% 88%, rgba(125,147,188,.38), transparent 60%),
    linear-gradient(155deg, #f4eed9 0%, #e6dcc0 50%, #c9ad6e 130%);
  isolation: isolate;
}
.marble-swatch::before {
  content: "";
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(115deg, transparent 42%, rgba(63,143,138,.22) 43%, transparent 46%),
    linear-gradient(70deg, transparent 60%, rgba(125,147,188,.26) 61%, transparent 64%),
    linear-gradient(20deg, transparent 30%, rgba(168,112,63,.16) 31%, transparent 34%);
  transform: rotate(var(--vein-rot, 0deg));
  opacity: .9;
  z-index: 0;
}
.marble-swatch::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.marble-swatch-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; padding: 1.4rem;
  color: var(--ink);
}
.marble-swatch-num {
  font-family: var(--serif); font-style: italic; color: var(--accent);
  font-size: 2.2rem; opacity: .55;
}
.marble-tag {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,253,250,.85); color: var(--ink-mute);
  padding: .35rem .65rem; border-radius: 999px;
  border: 1px solid var(--line-soft);
}

/* Accommodations section — irregular gold veining, like real marble movement
   (not a repeated motif), in the same thin linework as the logo. Real element
   (not ::before) with extra vertical room, so JS can parallax it on scroll. */
#rooms { position: relative; overflow: hidden; }
.rooms-texture {
  position: absolute; inset: -15% -5%; z-index: 0;
  opacity: .32;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1500'><g stroke='%23c9ad6e' fill='none' stroke-linecap='round'><path d='M-40 180 C 140 120, 220 260, 380 190 S 640 90, 820 200 S 1080 320, 1250 250' stroke-width='1.6' opacity='.55'/><path d='M120 140 C 180 190, 160 250, 230 260' stroke-width='1' opacity='.4'/><path d='M-60 520 C 160 460, 260 610, 460 540 S 760 420, 900 560 S 1150 690, 1300 600' stroke-width='1.8' opacity='.6'/><path d='M520 500 C 560 540, 600 520, 650 570' stroke-width='1' opacity='.4'/><path d='M700 470 C 730 510, 690 550, 730 600' stroke-width='.9' opacity='.35'/><path d='M-50 860 C 180 800, 240 950, 470 880 S 720 760, 940 900 S 1180 1030, 1320 940' stroke-width='1.5' opacity='.5'/><path d='M300 840 C 330 880, 290 900, 330 940' stroke-width='.9' opacity='.35'/><path d='M-30 1180 C 150 1230, 300 1090, 500 1170 S 780 1290, 980 1180 S 1180 1080, 1330 1200' stroke-width='1.7' opacity='.55'/><path d='M860 1150 C 890 1190, 850 1220, 890 1260' stroke-width='1' opacity='.4'/><path d='M60 1380 C 220 1330, 340 1440, 540 1370 S 800 1290, 980 1400' stroke-width='1.3' opacity='.45'/></g></svg>");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: top center;
  pointer-events: none;
  will-change: transform;
}
#rooms > .container { position: relative; z-index: 1; }

/* Our Story section — a faint antique-map effect (coastline, a lat/long
   grid, a compass rose) in light grey, echoing a historic Gulf Coast chart. */
#story { position: relative; overflow: hidden; }
.story-texture {
  position: absolute; inset: -15% -5%; z-index: 0;
  opacity: .16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 900'><g stroke='%237c6f5c' fill='none'><g stroke-width='.6' opacity='.5'><line x1='0' y1='100' x2='1200' y2='100'/><line x1='0' y1='200' x2='1200' y2='200'/><line x1='0' y1='300' x2='1200' y2='300'/><line x1='0' y1='400' x2='1200' y2='400'/><line x1='0' y1='500' x2='1200' y2='500'/><line x1='0' y1='600' x2='1200' y2='600'/><line x1='0' y1='700' x2='1200' y2='700'/><line x1='0' y1='800' x2='1200' y2='800'/><line x1='100' y1='0' x2='100' y2='900'/><line x1='200' y1='0' x2='200' y2='900'/><line x1='300' y1='0' x2='300' y2='900'/><line x1='400' y1='0' x2='400' y2='900'/><line x1='500' y1='0' x2='500' y2='900'/><line x1='600' y1='0' x2='600' y2='900'/><line x1='700' y1='0' x2='700' y2='900'/><line x1='800' y1='0' x2='800' y2='900'/><line x1='900' y1='0' x2='900' y2='900'/><line x1='1000' y1='0' x2='1000' y2='900'/><line x1='1100' y1='0' x2='1100' y2='900'/></g><path d='M-30 260 C 80 240, 130 300, 200 320 C 260 335, 300 300, 360 330 C 420 360, 400 410, 460 430 C 540 455, 590 410, 660 440 C 730 470, 720 520, 800 540 C 870 558, 930 520, 1010 545 C 1070 563, 1110 600, 1230 610' stroke-width='2.2' opacity='.75'/><path d='M-20 290 C 90 272, 140 330, 205 352 C 262 368, 305 335, 362 362 C 415 388, 400 435, 455 458 C 530 480, 585 438, 655 468' stroke-width='1' opacity='.4'/><g stroke-width='1' opacity='.7'><circle cx='1000' cy='150' r='58'/><circle cx='1000' cy='150' r='3' fill='%237c6f5c' stroke='none'/><line x1='1000' y1='72' x2='1000' y2='228'/><line x1='922' y1='150' x2='1078' y2='150'/><line x1='959' y1='109' x2='1041' y2='191'/><line x1='959' y1='191' x2='1041' y2='109'/><path d='M1000 92 L1010 150 L1000 145 L990 150 Z' opacity='.6'/></g><g opacity='.55' font-family='Georgia, serif'><circle cx='420' cy='430' r='2.4' fill='%237c6f5c' stroke='none'/><circle cx='800' cy='540' r='2.4' fill='%237c6f5c' stroke='none'/></g></g></svg>");
  background-size: cover;
  background-position: center;
  pointer-events: none;
  will-change: transform;
}
#story > .container { position: relative; z-index: 1; }

/* Buildings (real units — A: the 3BR house, B: the studio suites) */
.room-photo { aspect-ratio: 4/3; overflow: hidden; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; }

.buildings-list { display: flex; flex-direction: column; gap: clamp(3.5rem, 7vw, 6rem); }
.building-card { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .building-card { grid-template-columns: 1.15fr 1fr; gap: 3.2rem; }
  .building-card.is-reverse .building-gallery { order: 2; }
  .building-card.is-reverse .building-body { order: 1; }
}

.building-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.building-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 1; }
.building-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-soft); }
.building-photo:hover img { transform: scale(1.06); }
.building-photo-0 { grid-column: 1 / -1; aspect-ratio: 16/10; }

.building-body .eyebrow { }
.building-body h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: .5rem; }
.building-subtag {
  font-family: var(--serif); font-style: italic; color: var(--accent-2);
  font-size: 1.25rem; margin-top: .5rem;
}
.building-desc { color: var(--ink-mute); margin-top: 1.1rem; max-width: 42ch; }
.building-facts {
  margin-top: 1.7rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem 1.3rem;
}
.building-facts li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--ink-soft); }
.building-facts li svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* Timeline (Nuestra Historia) */
.timeline {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
}
.timeline::before {
  content: "";
  position: absolute; left: 10px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(var(--line), var(--line) 90%, transparent);
}
.timeline-item {
  position: relative;
  padding: 0 0 2.6rem 2.6rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: 3px; top: 6px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline-year {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2);
}
.timeline-item h3 { margin: .3rem 0 .5rem; font-size: 1.5rem; }
.timeline-item p { color: var(--ink-mute); max-width: 42ch; }

/* Amenities */
.amenities-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.6rem 2rem;
}
@media (min-width: 640px) { .amenities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .amenities-grid { grid-template-columns: repeat(3, 1fr); } }
.amenity {
  display: flex; gap: 1rem; align-items: flex-start;
}
.amenity-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--accent);
  box-shadow: 0 0 0 1px var(--line-soft), 0 10px 24px -12px rgba(63,143,138,.4);
}
.amenity-icon svg { width: 20px; height: 20px; }
.amenity h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.amenity p { color: var(--ink-mute); font-size: .93rem; }

/* Testimonials */
.testimonial-wrap {
  position: relative;
  display: grid; gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) { .testimonial-wrap { grid-template-columns: 0.9fr 1.1fr; } }
.testimonial-avatar {
  aspect-ratio: 1; border-radius: 50%; max-width: 260px; margin-inline: auto;
  display: grid; place-items: center;
}
.testimonial-avatar .marble-swatch { width: 100%; height: 100%; border-radius: 50%; }
.testimonial-avatar .marble-swatch-content { align-items: center; justify-content: center; padding: 0; }
.testimonial-initials {
  font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--accent);
}
.testimonial-track { position: relative; min-height: 200px; }
.testimonial-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
  pointer-events: none;
}
.testimonial-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.testimonial-slide blockquote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.4; color: var(--ink-soft);
}
.testimonial-slide cite {
  display: block; margin-top: 1.1rem; font-style: normal;
  font-size: .85rem; color: var(--ink-mute);
}
.testimonial-slide cite strong { color: var(--ink); }
.testimonial-dots { display: flex; gap: .5rem; margin-top: 1.6rem; }
.testimonial-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: var(--line);
  transition: background .3s, width .3s;
}
.testimonial-dots button.is-active { background: var(--accent); width: 22px; border-radius: 999px; }

/* Location */
.location-wrap {
  display: grid; gap: 2.5rem;
}
@media (min-width: 900px) { .location-wrap { grid-template-columns: 1fr 1fr; align-items: center; } }
.location-map { aspect-ratio: 4/3; border-radius: 20px; position: relative; }
.location-map.room-photo { border-radius: 20px; }
.location-badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  display: flex; align-items: center; gap: .55rem;
  background: rgba(255,253,250,.88); backdrop-filter: blur(6px);
  padding: .55rem .95rem; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(28,28,20,0.18);
}
.location-badge .eyebrow { margin: 0; }
.location-pin { width: 18px; height: 18px; color: var(--accent); flex: none; }
.location-copy p { color: var(--ink-mute); margin-top: 1rem; max-width: 46ch; }
.location-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
.location-list li { display: flex; gap: .6rem; align-items: baseline; color: var(--ink-soft); }
.location-list li::before { content: "—"; color: var(--gold); }

/* On dark panels (e.g. the Reservations CTA), the list needs light text instead */
.cta-panel .location-list li { color: rgba(255,253,248,.85); }
.cta-panel .location-list a { text-decoration: underline; text-decoration-color: rgba(255,253,248,.35); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.cta-panel .location-list a:hover { text-decoration-color: rgba(255,253,248,.85); }

/* Contact / CTA form */
.cta-panel {
  border-radius: 26px;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.4rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-panel::before {
  content: "";
  position: absolute; inset: -30%;
  background: radial-gradient(45% 45% at var(--mesh-x) var(--mesh-y), rgba(63,143,138,.4), transparent 65%);
  filter: blur(60px);
  z-index: -1;
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { --mesh-x: 20%; --mesh-y: 30%; }
  50%      { --mesh-x: 75%; --mesh-y: 65%; }
}
.cta-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.cta-panel h2 { color: var(--paper); }
.cta-panel .eyebrow { color: var(--accent-2); }

.map-embed {
  margin-top: 2.5rem;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16/7;
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 60px -30px rgba(43,35,25,0.25);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9) contrast(1.02); }
@media (max-width: 719px) { .map-embed { aspect-ratio: 4/5; } }
.cta-panel p { color: rgba(255,253,250,.72); margin-top: 1rem; max-width: 40ch; }

.field { position: relative; margin-bottom: 1rem; }
.field input, .field textarea {
  width: 100%; padding: 1.3rem 1rem .5rem; border: 1px solid rgba(255,253,250,.25);
  background: rgba(255,253,250,.06); color: var(--paper); border-radius: 12px;
  font-size: 1rem; font-family: var(--sans);
}
.field textarea { padding-top: 1.5rem; resize: vertical; min-height: 6rem; }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field label {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; transition: all .25s var(--ease-out);
  color: rgba(255,253,250,.55); font-size: .95rem;
}
.field textarea + label { top: 1.35rem; transform: none; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: .55rem; transform: none; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); }

.cta-form { position: relative; transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; position: absolute; inset: 0; }
.cta-submit { width: 100%; justify-content: center; margin-top: .4rem; position: relative; }
.cta-submit-label, .cta-submit-spinner { transition: opacity .2s; }
.cta-submit-spinner {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
}
.cta-submit-spinner::after {
  content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,253,250,.4);
  border-top-color: var(--paper); border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form.is-sending .cta-submit-label { opacity: 0; }
.cta-form.is-sending .cta-submit-spinner { opacity: 1; }

.cta-success {
  opacity: 0; transform: translateY(10px);
  transition: opacity .7s var(--ease-out) .1s, transform .7s var(--ease-soft) .1s;
}
.cta-success.is-visible { opacity: 1; transform: none; }
.cta-success h3 { color: var(--paper); font-size: 1.5rem; margin-bottom: .5rem; }
.cta-success p { color: rgba(255,253,250,.75); max-width: none; }

/* =============================================================
   6. Sections
   ============================================================= */

/* Nav */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding-block: 1.4rem;
  transition: background-color .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s;
}
.nav.is-scrolled {
  background: rgba(245, 241, 233, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .9rem;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: inline-flex; align-items: center; gap: .65rem; }
.nav-logo-img { height: 76px; width: auto; flex: none; }
.nav-logo-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.nav-logo { font-family: var(--serif); font-style: italic; font-size: 1.25rem; letter-spacing: .01em; }
.nav-logo strong { font-style: normal; font-weight: 600; }
.nav-logo-sub {
  margin-top: .35rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--accent-2);
  text-align: center;
}
.nav-links { display: none; gap: 2rem; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-size: .88rem; padding: .25rem 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; padding: .7rem 1.3rem; font-size: .82rem; } }
.nav-burger {
  display: grid; place-items: center; width: 40px; height: 40px;
}
@media (min-width: 900px) { .nav-burger { display: none; } }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 20px; height: 1.5px; background: var(--ink);
  position: relative; transition: transform .3s, opacity .3s;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }
.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.nav-mobile a { font-family: var(--serif); font-size: 1.8rem; font-style: italic; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 6rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  isolation: isolate;
}
.hero-slide {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center 65%;
  opacity: 0;
  transition: opacity 1.8s var(--ease-soft);
}
.hero-slide.is-active { opacity: 1; }
.hero-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(75% 90% at 18% 30%, rgba(248,244,234,.94) 0%, rgba(248,244,234,.55) 42%, transparent 68%),
    linear-gradient(200deg, rgba(248,244,234,.35) 0%, rgba(43,35,25,.2) 60%, rgba(43,35,25,.42) 100%);
}
.hero-content { max-width: 44rem; }
.hero-title { margin-top: 1.1rem; }
.hero-sub { margin-top: 1.4rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 36ch; }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1;
  width: 100%; height: auto; display: block;
}

/* Manifesto */
.manifesto-grid { display: grid; }
.manifesto-text { max-width: 46rem; margin-inline: auto; text-align: center; }
.manifesto-text p { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink-soft); font-family: var(--serif); line-height: 1.45; }
.manifesto-text p + p { margin-top: 1.2rem; font-family: var(--sans); font-size: 1rem; color: var(--ink-mute); }

.history-callout {
  display: inline-flex !important; align-items: baseline; flex-wrap: wrap;
  justify-content: center; gap: .5em;
  margin-top: 2.4rem !important;
  padding: 1.1rem 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--serif) !important; font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem) !important; color: var(--ink-soft) !important;
  box-shadow: 0 14px 30px -18px rgba(43,35,25,0.25);
}
.history-callout strong { font-style: normal; font-weight: 600; color: var(--accent); }
.history-callout a { font-style: normal; font-weight: 600; color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.history-callout a:hover { color: var(--accent); }

/* Marquee */
.marquee {
  overflow: hidden; position: relative;
  padding-block: 1.6rem;
  border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
  white-space: nowrap; /* keep the original track + its clone on one row, side by side */
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.marquee-track {
  display: inline-flex; gap: 2.5rem; white-space: nowrap; will-change: transform;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-mute);
}
.marquee-track span.dot { color: var(--gold); font-style: normal; }

/* Footer */
.footer {
  padding-block: 3.5rem 2.5rem;
  border-top: 1px solid var(--line-soft);
}
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-logo { font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a { font-size: .9rem; color: var(--ink-mute); }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  font-size: .78rem; color: var(--ink-mute);
}

/* =============================================================
   7. Effects
   ============================================================= */
@keyframes ambientDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.08) rotate(2deg); }
}
.marble-swatch::before { animation: ambientDrift 24s ease-in-out infinite; }

/* Lightbox — full-screen photo viewer */
[data-lightbox-trigger] { cursor: zoom-in; }

.lightbox {
  border: 0; padding: 0; margin: auto;
  width: min(94vw, 1400px); max-width: 94vw; max-height: 90vh;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 16, 11, 0.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img {
  display: block; width: 100%; height: 100%;
  max-height: 90vh; object-fit: contain;
  border-radius: 12px;
}
.lightbox-close {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,253,250,.12); color: var(--paper);
  font-size: 1.6rem; line-height: 1;
  border: 1px solid rgba(255,253,250,.25);
  transition: background .25s var(--ease-out), transform .25s var(--ease-out);
}
.lightbox-close:hover { background: rgba(255,253,250,.22); transform: rotate(90deg); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) { }
@media (min-width: 720px) { }
@media (min-width: 960px) { }
@media (min-width: 1280px) { .container { width: min(1240px, 100% - 4rem); } }

/* =============================================================
   9. Reduced motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .cta-panel::before { animation: none; }
  .marble-swatch::before { animation: none; }
}
