/* ==========================================================================
   THE PERVINCA STUDIO — style.css
   Ink & Wine palette · Cormorant Garamond / Cormorant SC / Inter
   Two houses: Reminisce (gifting) · Rouse (experiences)
   ========================================================================== */

:root {
  /* Ink & Wine — moody core */
  --ink-void:      #0A0507;
  --ink:           #14090E;
  --ink-soft:      #1F1218;
  --wine-blk:      #2A0812;
  --wine-deep:     #3E1120;
  --wine:          #4A1424;

  /* Burgundy — brand primary */
  --burgundy:      #6D1F35;
  --burgundy-lit:  #8B2A44;

  /* Gilt — luxury accent */
  --gilt:          #B8956A;
  --gilt-warm:     #D4B080;
  --gilt-soft:     rgba(184, 149, 106, 0.35);
  --gilt-hair:     rgba(184, 149, 106, 0.18);

  /* Cream — used sparingly */
  --cream:         #F5EDE1;
  --paper:         #EBE0CC;
  --paper-deep:    #DCCEB4;

  /* Type roles */
  --serif:    'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --serif-sc: 'Cormorant SC', 'Cormorant Garamond', serif;
  --sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.5rem, 5vw, 6rem);
  --section: clamp(7rem, 14vw, 14rem);
  --measure: 62ch;

  /* Motion */
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-lux: cubic-bezier(0.32, 0.72, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { overflow-x: clip; }
body {
  background: var(--ink-void);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

@media (max-width: 900px) { body { cursor: auto; font-size: 16px; } }

::selection { background: var(--burgundy); color: var(--cream); }

/* ==========================================================================
   PERSISTENT 3D STAGE — fixed WebGL canvas behind everything
   ========================================================================== */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Film grain — fixed, above canvas, below content */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(3) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

main, footer { position: relative; z-index: 2; }

/* Scroll progress hairline */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 200;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gilt), var(--gilt-warm));
  pointer-events: none;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--ink-void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transition: opacity 1s var(--ease-lux), visibility 1s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-mark {
  width: 74px; height: 74px;
  color: var(--gilt);
}
.preloader-mark {
  opacity: 0;
  animation: bloomIn 1.5s var(--ease-lux) forwards;
  transform-origin: 50% 50%;
}
@keyframes bloomIn {
  0%   { opacity: 0; transform: scale(0.72) rotate(-16deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.preloader-word {
  font-family: var(--serif-sc);
  font-size: 0.85rem;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  color: var(--cream);
  opacity: 0.85;
  text-transform: uppercase;
}
.preloader-count {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--gilt);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--gilt);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.18s var(--ease), opacity 0.3s, background 0.3s;
  transform: translate(-50%, -50%);
}
.cursor.ring {
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--gilt);
  transition: transform 0.45s var(--ease), width 0.35s var(--ease),
              height 0.35s var(--ease), border-color 0.3s;
}
.cursor.hover {
  transform: translate(-50%, -50%) scale(0.55);
  background: var(--gilt-warm);
  box-shadow: 0 0 10px rgba(212, 176, 128, 0.8);
}
.cursor.ring.hover {
  width: 30px; height: 30px;
  border-style: dashed;
  border-color: var(--gilt-warm);
  box-shadow: 0 0 16px rgba(184, 149, 106, 0.35), inset 0 0 10px rgba(184, 149, 106, 0.2);
  animation: cursorSpin 6s linear infinite;
}
@keyframes cursorSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.cursor.dark   { background: var(--burgundy); }
.cursor.ring.dark { border-color: var(--burgundy); }
@media (max-width: 900px) { .cursor { display: none; } }

/* ==========================================================================
   NAV
   ========================================================================== */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.6s var(--ease-lux), padding 0.6s var(--ease-lux),
              border-color 0.6s var(--ease-lux);
  border-bottom: 1px solid transparent;
}
nav.top.scrolled {
  background: rgba(10, 5, 7, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem var(--gutter);
  border-bottom-color: var(--gilt-hair);
}
.brand {
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.32em;
  color: var(--cream);
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
}
.brand-mark {
  width: 30px; height: 30px;
  color: var(--gilt);
  transition: transform 1s var(--ease);
  flex-shrink: 0;
}
.brand:hover .brand-mark { transform: rotate(72deg); }
.nav-links {
  display: flex;
  gap: 2.75rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gilt);
  transition: width 0.5s var(--ease);
}
.nav-links a:hover { color: var(--gilt-warm); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gilt); }

.nav-cta {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gilt);
  padding: 0.95rem 1.7rem;
  border: none;
  text-decoration: none;
  cursor: none;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
  display: inline-block;
}
.nav-cta:hover { background: var(--gilt-warm); transform: translateY(-2px); }

/* Menu toggle — morphs to X */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 300;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1px;
  background: var(--cream);
  margin: 7px auto;
  transition: transform 0.5s var(--ease-lux), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Full-screen menu overlay (mobile) */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(10, 5, 7, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease-lux), visibility 0.7s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-overlay a.menu-link {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 8vw, 4rem);
  color: var(--cream);
  text-decoration: none;
  line-height: 1.2;
  overflow: hidden;
  display: block;
}
.menu-overlay a.menu-link em { font-style: italic; color: var(--gilt-warm); }
.menu-overlay a.menu-link > span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-lux);
}
.menu-overlay.open a.menu-link > span { transform: translateY(0); }
.menu-overlay.open a.menu-link:nth-child(2) > span { transition-delay: 0.06s; }
.menu-overlay.open a.menu-link:nth-child(3) > span { transition-delay: 0.12s; }
.menu-overlay.open a.menu-link:nth-child(4) > span { transition-delay: 0.18s; }
.menu-overlay.open a.menu-link:nth-child(5) > span { transition-delay: 0.24s; }
.menu-overlay .menu-foot {
  position: absolute;
  bottom: 2.5rem;
  font-family: var(--serif-sc);
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  color: var(--gilt);
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .brand { font-size: 0.92rem; letter-spacing: 0.26em; max-width: 70vw; }
  .brand-mark { width: 26px; height: 26px; }
}

/* ==========================================================================
   HERO (Home)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(42, 8, 18, 0.32) 0%, rgba(10, 5, 7, 0.08) 65%);
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 var(--gutter);
  text-align: center;
  pointer-events: none;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 900px;
}
.hero-eyebrow {
  font-family: var(--serif-sc);
  font-size: 0.95rem;
  letter-spacing: 0.55em;
  color: var(--gilt);
  margin-bottom: 2.5rem;
  opacity: 0;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  line-height: 0.95;
  color: var(--cream);
  letter-spacing: -0.015em;
}
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.06em 0;
}
.hero-title .word > span {
  display: inline-block;
  transform: translateY(110%) rotateX(-55deg);
  transform-origin: 50% 100%;
}
.hero-title em {
  font-style: italic;
  color: var(--gilt-warm);
  font-weight: 300;
}
.hero-sub {
  margin: 3rem auto 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  color: var(--cream);
  max-width: 54ch;
  line-height: 1.65;
  font-style: italic;
  font-weight: 300;
  opacity: 0;
}
.hero-actions {
  margin-top: 3.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: auto;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif-sc);
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  color: var(--gilt);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 3;
  opacity: 0;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 42px;
  background: var(--gilt);
  animation: scrollHint 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Page hero (internal pages) */
.page-hero {
  position: relative;
  min-height: 82svh;
  padding: calc(var(--gutter) + 4rem) var(--gutter) var(--gutter);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 40%, rgba(62, 17, 32, 0.5) 0%, rgba(10, 5, 7, 0.15) 70%);
}
.page-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 4rem;
  perspective: 900px;
}
.page-hero-eyebrow {
  font-family: var(--serif-sc);
  font-size: 1rem;
  letter-spacing: 0.55em;
  color: var(--gilt);
  margin-bottom: 2rem;
}
.page-hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  line-height: 0.95;
  color: var(--cream);
  letter-spacing: -0.015em;
  max-width: 16ch;
}
.page-hero-title em {
  font-style: italic;
  color: var(--gilt-warm);
}
.page-hero-lede {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  color: var(--cream);
  opacity: 0.88;
  max-width: 48ch;
  line-height: 1.6;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section {
  padding: var(--section) var(--gutter);
  position: relative;
}
.container { max-width: 1440px; margin: 0 auto; width: 100%; }
.container-narrow { max-width: 980px; margin: 0 auto; width: 100%; }

.eyebrow {
  font-family: var(--serif-sc);
  font-size: 0.9rem;
  letter-spacing: 0.55em;
  color: var(--gilt);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 400;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 48px; height: 1px;
  background: var(--gilt);
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::before { display: none; }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.4vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-bottom: 3rem;
  color: var(--cream);
}
.section-title em { font-style: italic; color: var(--gilt-warm); }
.body-large {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.55vw, 1.4rem);
  line-height: 1.75;
  color: var(--cream);
  opacity: 0.9;
  margin-bottom: 1.75rem;
  max-width: var(--measure);
  font-weight: 300;
}
.body-large em { color: var(--gilt-warm); font-style: italic; }

/* Section variants — dark ones stay translucent so the 3D stage shows through */
.sec-ink  { background: linear-gradient(180deg, rgba(10,5,7,0.35), rgba(10,5,7,0.65)); }
.sec-void { background: radial-gradient(ellipse at 20% 30%, rgba(109, 31, 53, 0.14) 0%, transparent 60%); }
.sec-wine { background: linear-gradient(180deg, rgba(42,8,18,0.82) 0%, rgba(62,17,32,0.82) 100%); }

.sec-cream { background: var(--cream); color: var(--ink); }
.sec-cream .section-title,
.sec-cream .body-large,
.sec-cream .eyebrow { color: var(--ink); }
.sec-cream .eyebrow { color: var(--burgundy); }
.sec-cream .eyebrow::before { background: var(--burgundy); }
.sec-cream .section-title em { color: var(--burgundy); }
.sec-cream .body-large em { color: var(--burgundy); }
.sec-cream .body-large { opacity: 1; }

.sec-paper { background: var(--paper); color: var(--ink); }
.sec-paper .section-title,
.sec-paper .body-large { color: var(--ink); }
.sec-paper .eyebrow { color: var(--burgundy); }
.sec-paper .eyebrow::before { background: var(--burgundy); }
.sec-paper .section-title em { color: var(--burgundy); }

/* Giant chapter numerals */
.chapter-num {
  position: absolute;
  top: clamp(2rem, 6vw, 5rem);
  right: var(--gutter);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gilt-soft);
  pointer-events: none;
  user-select: none;
}
.sec-cream .chapter-num,
.sec-paper .chapter-num { -webkit-text-stroke: 1px rgba(109, 31, 53, 0.22); }

/* ==========================================================================
   INTRO STRIP
   ========================================================================== */
.intro-strip {
  padding: clamp(5rem, 9vw, 9rem) var(--gutter);
  text-align: center;
  border-bottom: 1px solid var(--gilt-hair);
  background: linear-gradient(180deg, rgba(10,5,7,0.0), rgba(10,5,7,0.4));
}
.intro-strip p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.92;
  max-width: 34ch;
  margin: 0 auto;
  font-weight: 300;
}
.intro-strip p em { color: var(--gilt-warm); }

/* ==========================================================================
   TWO-COLUMN CONTENT
   ========================================================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
}
.two-col.reversed { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 900px) { .two-col, .two-col.reversed { grid-template-columns: 1fr; } }

.mark-column { position: sticky; top: 20vh; }
.mark-column svg {
  width: 100%;
  max-width: 340px;
  color: var(--burgundy);
  opacity: 0.85;
}

.content-column p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 5em;
  float: left;
  line-height: 0.85;
  padding: 0.1em 0.15em 0 0;
  color: var(--burgundy);
  font-weight: 400;
  font-style: italic;
}
.sec-ink .content-column p:first-of-type::first-letter,
.sec-void .content-column p:first-of-type::first-letter,
.sec-wine .content-column p:first-of-type::first-letter { color: var(--gilt); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 1.15rem 2.25rem;
  text-decoration: none;
  cursor: none;
  transition: color 0.45s var(--ease-lux), border-color 0.45s var(--ease-lux),
              transform 0.45s var(--ease-lux);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.6s var(--ease-lux);
}
.btn:hover::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn.primary { background: var(--gilt); color: var(--ink); }
.btn.primary::before { background: var(--gilt-warm); }
.btn.primary:hover { transform: translateY(-2px); }
.btn.ghost { color: var(--cream); border-color: rgba(245, 237, 225, 0.4); }
.btn.ghost::before { background: rgba(184, 149, 106, 0.12); }
.btn.ghost:hover { border-color: var(--gilt); color: var(--gilt-warm); transform: translateY(-2px); }
.btn.wine { background: var(--burgundy); color: var(--cream); }
.btn.wine::before { background: var(--burgundy-lit); }
.btn.wine:hover { transform: translateY(-2px); }
.btn-arrow {
  width: 22px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.4s var(--ease);
}
.btn-arrow::after {
  content: '';
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .btn-arrow { width: 36px; }

/* ==========================================================================
   3D MARQUEE
   ========================================================================== */
.marquee-3d {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 6rem) 0;
  perspective: 800px;
  background: transparent;
}
.marquee-3d.on-cream { background: var(--cream); }
.marquee-3d.on-wine { background: linear-gradient(180deg, rgba(62,17,32,0.85), rgba(42,8,18,0.85)); }
.marquee-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: scrollMarquee 40s linear infinite;
  transform: rotateX(14deg);
  transform-origin: center bottom;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--cream);
  opacity: 0.15;
  letter-spacing: -0.01em;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4rem;
}
.on-cream .marquee-track span { color: var(--burgundy); opacity: 0.18; }
.marquee-track .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gilt);
  display: inline-block;
  opacity: 1;
}
.on-cream .marquee-track .dot { background: var(--burgundy); }
@keyframes scrollMarquee {
  from { transform: rotateX(14deg) translateX(0); }
  to   { transform: rotateX(14deg) translateX(-50%); }
}

/* ==========================================================================
   DOUBLE-BEZEL FRAME — machined stationery look
   ========================================================================== */
.frame {
  border: 1px solid var(--gilt-hair);
  padding: 0.6rem;
  background: linear-gradient(180deg, rgba(184,149,106,0.05) 0%, rgba(184,149,106,0.015) 100%);
  transition: border-color 0.6s var(--ease-lux);
}
.frame:hover { border-color: var(--gilt-soft); }
.frame-inner {
  border: 1px solid rgba(184, 149, 106, 0.28);
  height: 100%;
  position: relative;
}
.sec-cream .frame,
.sec-paper .frame {
  border-color: rgba(109, 31, 53, 0.18);
  background: linear-gradient(180deg, rgba(109,31,53,0.04) 0%, rgba(109,31,53,0.01) 100%);
}
.sec-cream .frame-inner,
.sec-paper .frame-inner { border-color: rgba(109, 31, 53, 0.25); }

/* ==========================================================================
   HOUSES GRID — two houses
   ========================================================================== */
.houses-intro-grid {
  max-width: 1440px;
  margin: 0 auto 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}
.houses-intro-grid .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.55vw, 1.4rem);
  color: var(--cream);
  opacity: 0.85;
  max-width: 42ch;
  line-height: 1.65;
}
@media (max-width: 900px) { .houses-intro-grid { grid-template-columns: 1fr; gap: 2rem; } }

.houses-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  perspective: 1800px;
}
@media (max-width: 900px) { .houses-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.house-card {
  position: relative;
  min-height: 660px;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}
.house-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(184, 149, 106, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: var(--cream);
  transition: border-color 0.6s var(--ease-lux);
  background: linear-gradient(180deg, rgba(20,9,14,0.72) 0%, rgba(10,5,7,0.85) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.house-face .face-pad {
  border: 1px solid var(--gilt-hair);
  margin: 0.6rem;
  padding: 3.2rem 2.75rem 2.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}
.house-face.back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, var(--burgundy) 0%, var(--wine-deep) 100%);
}
.house-card.flipped { transform: rotateY(180deg); }

.house-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(184, 149, 106, 0.14) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.house-face:hover { border-color: var(--gilt); }
.house-face:hover::before { opacity: 1; }

.house-number {
  font-family: var(--serif-sc);
  font-size: 0.85rem;
  letter-spacing: 0.45em;
  color: var(--gilt);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.house-number::after {
  content: '';
  height: 1px;
  background: var(--gilt);
  flex: 1;
  opacity: 0.4;
}
.house-mark {
  width: 68px; height: 68px;
  color: var(--gilt);
  margin-bottom: 2.25rem;
  transition: transform 1s var(--ease);
}
.house-face:hover .house-mark { transform: rotate(15deg) scale(1.05); }
.house-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 4.5vw, 4.25rem);
  line-height: 0.95;
  color: var(--cream);
  margin-bottom: 0.75rem;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.house-tag {
  font-family: var(--serif-sc);
  font-size: 0.82rem;
  letter-spacing: 0.4em;
  color: var(--gilt);
  margin-bottom: 2rem;
}
.house-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--cream);
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 38ch;
}
.house-list { list-style: none; margin-bottom: 2.5rem; }
.house-list li {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--cream);
  opacity: 0.9;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(184, 149, 106, 0.2);
  letter-spacing: 0.02em;
  font-weight: 300;
}
.house-list li:last-child { border-bottom: 1px solid rgba(184, 149, 106, 0.2); }
.house-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--gilt);
  text-transform: uppercase;
  padding-top: 1.25rem;
  cursor: none;
}
.house-cta .arrow {
  width: 32px; height: 1px;
  background: var(--gilt);
  position: relative;
  transition: width 0.4s var(--ease);
}
.house-cta .arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 8px; height: 8px;
  border-right: 1px solid var(--gilt);
  border-top: 1px solid var(--gilt);
  transform: rotate(45deg);
}
.house-face:hover .house-cta .arrow { width: 56px; }

.house-face.back p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.house-face.back .back-title {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-style: italic;
}
.flip-btn {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: transparent;
  border: 1px solid rgba(184, 149, 106, 0.5);
  color: var(--gilt);
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  z-index: 5;
  transition: all 0.4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.flip-btn:hover { background: var(--gilt); color: var(--ink); border-color: var(--gilt); }

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto { text-align: center; padding: clamp(8rem, 14vw, 14rem) var(--gutter); }
.manifesto-inner { max-width: 960px; margin: 0 auto; }
.manifesto-mark { display: flex; justify-content: center; margin-bottom: 3rem; }
.manifesto-mark svg { width: 60px; color: var(--gilt); opacity: 0.9; }
.manifesto-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 1.35;
  color: var(--cream);
  letter-spacing: -0.005em;
}
.sec-cream .manifesto-quote, .sec-paper .manifesto-quote { color: var(--ink); }
.manifesto-quote em { color: var(--gilt-warm); }
.sec-cream .manifesto-quote em, .sec-paper .manifesto-quote em { color: var(--burgundy); }
.manifesto-attr {
  margin-top: 3.5rem;
  font-family: var(--serif-sc);
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  color: var(--gilt);
}
.sec-cream .manifesto-attr, .sec-paper .manifesto-attr { color: var(--burgundy); }
.sec-paper .manifesto-mark svg { color: var(--burgundy); }

/* ==========================================================================
   MISSION / VISION
   ========================================================================== */
.duo-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  position: relative;
}
.duo-grid::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: rgba(184, 149, 106, 0.28);
}
.sec-cream .duo-grid::before, .sec-paper .duo-grid::before { background: rgba(109, 31, 53, 0.25); }
@media (max-width: 800px) {
  .duo-grid { grid-template-columns: 1fr; gap: 3rem; }
  .duo-grid::before { display: none; }
}
.duo-block { padding: 0 2rem; }
.duo-block h3 {
  font-family: var(--serif-sc);
  font-size: 1rem;
  letter-spacing: 0.55em;
  color: var(--gilt);
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.sec-cream .duo-block h3, .sec-paper .duo-block h3 { color: var(--burgundy); }
.duo-block p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.45;
  color: var(--cream);
  font-weight: 300;
  letter-spacing: -0.005em;
}
.sec-cream .duo-block p, .sec-paper .duo-block p { color: var(--ink); }
.duo-block p em { color: var(--gilt-warm); }
.sec-cream .duo-block p em, .sec-paper .duo-block p em { color: var(--burgundy); }

/* ==========================================================================
   STATS ROW
   ========================================================================== */
.stats-row {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 2rem 0; border-top: 1px solid rgba(184, 149, 106, 0.28); }
.sec-cream .stat, .sec-paper .stat { border-top-color: rgba(109, 31, 53, 0.25); }
.stat-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--gilt);
  letter-spacing: -0.02em;
}
.sec-cream .stat-num, .sec-paper .stat-num { color: var(--burgundy); }
.stat-label {
  font-family: var(--serif-sc);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--cream);
  opacity: 0.75;
  margin-top: 1rem;
  text-transform: uppercase;
}
.sec-cream .stat-label, .sec-paper .stat-label { color: var(--ink); opacity: 0.7; }
.stat-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 1;
  margin-top: 1.5rem;
  color: var(--cream);
}

/* ==========================================================================
   FEATURE BLOCKS (houses page)
   ========================================================================== */
.feature-block { padding: var(--section) var(--gutter); position: relative; }
.feature-content {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 900px) { .feature-content { grid-template-columns: 1fr; gap: 3rem; } }
.feature-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-mark {
  width: 60%;
  max-width: 340px;
  color: var(--gilt);
  animation: slowRotate 60s linear infinite;
}
@keyframes slowRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.feature-visual .aura {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,149,106,0.14) 0%, transparent 60%);
  filter: blur(20px);
}
.feature-services-list { list-style: none; margin: 2.5rem 0; }
.feature-services-list li {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(184,149,106,0.25);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
.sec-cream .feature-services-list li { border-top-color: rgba(109,31,53,0.2); }
.feature-services-list li:last-child { border-bottom: 1px solid rgba(184,149,106,0.25); }
.sec-cream .feature-services-list li:last-child { border-bottom-color: rgba(109,31,53,0.2); }
.feature-services-list .num {
  font-family: var(--serif-sc);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--gilt);
  min-width: 3rem;
}
.sec-cream .feature-services-list .num { color: var(--burgundy); }
.feature-services-list .item-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--cream);
  font-weight: 400;
  line-height: 1.3;
}
.sec-cream .feature-services-list .item-title { color: var(--ink); }
.feature-services-list .item-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream);
  opacity: 0.75;
  margin-top: 0.4rem;
  line-height: 1.6;
}
.sec-cream .feature-services-list .item-desc { color: var(--ink); opacity: 0.75; }

/* Reminisce — personal & corporate dual registry */
.registry-grid {
  max-width: 1440px;
  margin: 4rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}
@media (max-width: 900px) { .registry-grid { grid-template-columns: 1fr; } }
.registry-col h3 {
  font-family: var(--serif-sc);
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  color: var(--burgundy);
  font-weight: 400;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.registry-col .registry-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: 1.5rem;
}
.sec-void .registry-col h3, .sec-wine .registry-col h3, .sec-ink .registry-col h3 { color: var(--gilt); }
.sec-void .registry-col .registry-sub,
.sec-wine .registry-col .registry-sub,
.sec-ink .registry-col .registry-sub { color: var(--cream); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, rgba(109,31,53,0.92) 0%, rgba(62,17,32,0.92) 100%);
  padding: clamp(6rem, 12vw, 10rem) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(184,149,106,0.2) 0%, transparent 60%);
}
.cta-band-inner { position: relative; max-width: 900px; margin: 0 auto; }
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}
.cta-band h2 em { color: var(--gilt-warm); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 3rem; }
.contact-item { border-top: 1px solid rgba(184, 149, 106, 0.28); padding-top: 1.5rem; }
.sec-cream .contact-item { border-top-color: rgba(109, 31, 53, 0.25); }
.contact-item .label {
  font-family: var(--serif-sc);
  font-size: 0.82rem;
  letter-spacing: 0.4em;
  color: var(--gilt);
  display: block;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.sec-cream .contact-item .label { color: var(--burgundy); }
.contact-item .value { font-family: var(--serif); font-size: 1.35rem; color: var(--cream); font-weight: 300; }
.sec-cream .contact-item .value { color: var(--ink); }

form.quote-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: rgba(109, 31, 53, 0.03);
  border: 1px solid rgba(109, 31, 53, 0.18);
  padding: clamp(2.5rem, 4vw, 4rem);
  position: relative;
}
form.quote-form::before {
  content: '';
  position: absolute;
  inset: 0.6rem;
  border: 1px solid rgba(109, 31, 53, 0.12);
  pointer-events: none;
}
.field { position: relative; }
.field label {
  font-family: var(--serif-sc);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--burgundy);
  display: block;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(109, 31, 53, 0.3);
  padding: 0.85rem 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  transition: border-color 0.3s;
  cursor: none;
  font-weight: 400;
  border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--burgundy);
}
.field textarea { resize: vertical; min-height: 100px; }
.field select option { background: var(--cream); color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.submit-btn {
  background: var(--burgundy);
  color: var(--cream);
  border: none;
  padding: 1.35rem 2.75rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.3s var(--ease);
  align-self: start;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.submit-btn:hover { background: var(--burgundy-lit); transform: translateY(-2px); }
.form-success {
  display: none;
  padding: 3rem 0 1rem;
  text-align: center;
}
.form-success.visible { display: block; }
.form-success .fs-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.form-success p { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); opacity: 0.8; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: rgba(10, 5, 7, 0.88);
  color: var(--cream);
  padding: 6rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--gilt-hair);
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--gilt-hair);
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--cream);
  letter-spacing: 0.24em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 400;
}
.footer-brand svg { width: 32px; color: var(--gilt); }
.footer-desc {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream);
  opacity: 0.75;
  font-size: 1.1rem;
  max-width: 34ch;
  line-height: 1.65;
}
.footer-col h4 {
  font-family: var(--serif-sc);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--gilt);
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.9rem; }
.footer-col a {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.8;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 300;
}
.footer-col a:hover { color: var(--gilt-warm); opacity: 1; }
.footer-bottom {
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--cream);
  opacity: 0.5;
  letter-spacing: 0.1em;
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; } }

/* ==========================================================================
   IMAGERY — framed images, tints, effects, placeholders, galleries
   ========================================================================== */
.img-frame {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(184, 149, 106, 0.25);
  padding: 0.5rem;
  background: linear-gradient(180deg, rgba(184,149,106,0.05) 0%, rgba(184,149,106,0.015) 100%);
  width: 100%;
}
.img-frame::before {
  content: '';
  position: absolute;
  inset: 0.5rem;
  border: 1px solid var(--gilt-hair);
  pointer-events: none;
  z-index: 3;
}
.sec-cream .img-frame, .sec-paper .img-frame {
  border-color: rgba(109, 31, 53, 0.25);
  background: linear-gradient(180deg, rgba(109,31,53,0.04) 0%, rgba(109,31,53,0.01) 100%);
}
.sec-cream .img-frame::before, .sec-paper .img-frame::before { border-color: rgba(109, 31, 53, 0.15); }
.img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 1.4s var(--ease-lux);
}
.img-frame:hover img { transform: scale(1.045); }
.img-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.img-inner-clip {
  position: absolute;
  inset: 0.5rem;
  overflow: hidden;
}

/* Image effects */
.img-fx-mono   { filter: grayscale(1) contrast(1.05); }
.img-fx-sepia  { filter: sepia(0.45) contrast(1.02); }
.img-fx-warm   { filter: saturate(1.12) sepia(0.15) brightness(1.03); }
.img-fx-velvet { filter: contrast(1.08) brightness(0.92) saturate(1.05); }

/* Placeholder — shown until an image is uploaded via the CMS */
.img-placeholder .ph-inner {
  position: absolute;
  inset: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(109, 31, 53, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(184, 149, 106, 0.12) 0%, transparent 50%),
    linear-gradient(160deg, var(--ink-soft) 0%, var(--wine-blk) 100%);
}
.sec-cream .img-placeholder .ph-inner,
.sec-paper .img-placeholder .ph-inner {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(109, 31, 53, 0.14) 0%, transparent 55%),
    linear-gradient(160deg, rgba(220, 206, 180, 0.55) 0%, rgba(235, 224, 204, 0.9) 100%);
}
.img-placeholder .ph-inner svg {
  width: 30%;
  max-width: 130px;
  height: auto;
  color: var(--gilt);
  opacity: 0.55;
  animation: none;
}
.sec-cream .img-placeholder .ph-inner svg,
.sec-paper .img-placeholder .ph-inner svg { color: var(--burgundy); opacity: 0.4; }
.img-placeholder .ph-label {
  font-family: var(--serif-sc);
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gilt);
  opacity: 0.75;
}
.sec-cream .img-placeholder .ph-label,
.sec-paper .img-placeholder .ph-label { color: var(--burgundy); opacity: 0.6; }

/* House-card image band */
.house-img { margin-bottom: 2.25rem; flex-shrink: 0; }

/* Gallery */
.gallery-grid {
  max-width: 1440px;
  margin: 4rem auto 0;
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .gallery-grid.cols-3, .gallery-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid.cols-2, .gallery-grid.cols-3, .gallery-grid.cols-4 { grid-template-columns: 1fr; }
}
.gallery-item figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--cream);
  opacity: 0.8;
  margin-top: 0.9rem;
  letter-spacing: 0.02em;
}
.sec-cream .gallery-item figcaption,
.sec-paper .gallery-item figcaption { color: var(--ink); }

/* ==========================================================================
   REVEAL / UTILITY
   ========================================================================== */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.06em 0;
}
.split-word > span {
  display: inline-block;
  transform: translateY(110%) rotateX(-55deg);
  transform-origin: 50% 100%;
}
[data-split] { perspective: 800px; }

.reveal { will-change: transform, opacity; }

/* Floating pervinca petals */
.petals-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.petal { position: absolute; width: 60px; height: 90px; opacity: 0.09; }
.sec-cream .petal, .sec-paper .petal { opacity: 0.15; }
.petal svg { width: 100%; height: 100%; color: var(--burgundy); }
.sec-void .petal svg, .sec-ink .petal svg { color: var(--gilt); }

/* Static fallback — engaged when animation libraries fail to load */
html.no-anim .split-word > span,
html.no-anim .hero-title .word > span { transform: none !important; }
html.no-anim .hero-eyebrow,
html.no-anim .hero-sub,
html.no-anim .hero-actions,
html.no-anim .hero-scroll { opacity: 1 !important; }
html.no-anim .preloader { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .split-word > span { transform: none !important; }
  .hero-eyebrow, .hero-sub, .hero-actions, .hero-scroll { opacity: 1 !important; }
  .hero-title .word > span { transform: none !important; }
  .marquee-track { animation: none !important; }
  .grain { animation: none !important; }
  .preloader { display: none !important; }
  #gl { opacity: 0.35; }
}
