/* Perfectio site styles. Loaded after assets/css/tailwind.css. Brand rules: CLAUDE.md */
:root {
  --forest: #2E3E2B; --forest-deep: #263423; --sand: #D8C5A8; --ivory: #F4EFE6; --stone: #A89B86;
  --olive: #677A62; --earth: #4A3E32; --ink: #201F1D; --brass: #B68235; --mat: #EAE2D3;
  /* spacing scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px; --s7: 168px;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 34rem;
  --line: rgba(74,62,50,.2);
  --line-light: rgba(244,239,230,.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: Lora, Georgia, serif; font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.display { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; letter-spacing: -0.015em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.kicker { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; }
.rule { height: 1px; background: var(--brass); border: 0; opacity: .7; margin: 0; }
.muted { color: var(--earth); }
.measure { max-width: var(--measure); }

/* Type scale */
.t-hero { font-size: clamp(3.25rem, 8vw, 6.5rem); line-height: 0.98; margin: 0; }
.t-h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); line-height: 1.02; margin: 0; }
.t-h2 { font-size: clamp(2.125rem, 4.2vw, 3.375rem); line-height: 1.08; margin: 0; }
.t-h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.22; margin: 0; }
.t-lede { font-size: 1.125rem; line-height: 1.65; }

/* Sections */
.section { padding-block: var(--s6); }
.section-tight { padding-block: var(--s5); }
.on-forest { background: var(--forest); color: var(--ivory); }
.on-forest .muted { color: rgba(244,239,230,.82); }
.on-sand { background: var(--sand); }

/* Page head for inner pages */
.page-head { padding-block: var(--s5) var(--s6); }
.page-head .t-lede { color: rgba(244,239,230,.86); max-width: 38rem; margin: var(--s3) 0 0; }

/* Logo: Ivory master file; on light grounds fill it Ink with a mask */
.logo-ink {
  display: block; background: var(--ink);
  -webkit-mask: url("../../brand_assets/perfectio%20logo%20lndscp.webp") left center / contain no-repeat;
          mask: url("../../brand_assets/perfectio%20logo%20lndscp.webp") left center / contain no-repeat;
}

/* The arch: semicircular head, matted inside a brass hairline */
.arch, .arch-frame { border-radius: 9999px 9999px 0 0; }
.arch-frame { border: 1px solid rgba(182,130,53,.75); padding: clamp(10px, 1.4vw, 18px); }
.on-sand .arch-frame { border-color: rgba(74,62,50,.45); }
.arch { overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Plates: images set like plates in a book */
.plate { background: var(--mat); padding: clamp(8px, 1vw, 14px); }
.on-forest .plate { background: rgba(244,239,230,.08); }
.plate { position: relative; }
.plate img, .plate video, .arch video { display: block; width: 100%; height: 100%; object-fit: cover; }
.arch { position: relative; }

/* Pause / play control on every looping video */
.vid-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 36px; height: 36px;
  display: grid; place-items: center; cursor: pointer; border-radius: 2px;
  color: var(--ivory); background: rgba(32,31,29,.32); border: 1px solid rgba(244,239,230,.6);
  opacity: .8; transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.vid-toggle:hover { opacity: 1; transform: translateY(-1px); }
.vid-toggle:active { opacity: .6; transform: none; }
.vid-toggle svg { width: 14px; height: 14px; }
.plate-contain img { object-fit: contain; background: #fff; }
.caption { font-size: 0.8125rem; line-height: 1.45; color: var(--earth); margin-top: var(--s1); }
.on-forest .caption { color: rgba(244,239,230,.72); }

/* Lists with hairlines */
.lined { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lined > li { display: flex; gap: var(--s2); padding-block: var(--s2); border-bottom: 1px solid var(--line); }
.on-forest .lined, .on-forest .lined > li { border-color: var(--line-light); }
.icon { width: 20px; height: 20px; stroke-width: 1.5; flex: none; }
.lined .icon { margin-top: 5px; }

/* Spec rows */
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec > div { display: flex; justify-content: space-between; gap: var(--s3); padding-block: 12px; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--earth); }
.spec dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums lining-nums; }

/* Facts row */
.facts { display: grid; gap: var(--s2) var(--s4); border-top: 1px solid rgba(182,130,53,.6); padding-top: var(--s3); margin: 0; }
.facts > div { display: flex; align-items: center; gap: 12px; }
.facts dd { margin: 0; }

/* Interactive states */
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.link {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.25em; text-decoration-color: rgba(182,130,53,.8);
  transition: text-decoration-color .3s var(--ease);
}
.link:hover { text-decoration-color: currentColor; }
.link:active { opacity: .7; }

/* Buttons. No display here: set inline-flex / hidden md:inline-flex as utility classes */
.btn {
  align-items: center; gap: 10px;
  font-family: Lora, Georgia, serif; font-size: 0.9375rem; letter-spacing: 0.02em;
  padding: 14px 26px; border: 1px solid currentColor; border-radius: 2px;
  cursor: pointer; background: transparent; color: inherit; text-decoration: none;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: .1;
  transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .8; }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn-solid { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.btn-solid::before { background: var(--forest); }
.btn-forest { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.btn-forest::before { background: var(--ivory); }

/* Navigation */
.nav a { position: relative; padding-block: 6px; color: inherit; text-decoration: none; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:active { opacity: .7; }

/* Room / image viewer */
.room-tab {
  display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: var(--s2);
  padding: 14px 0; text-align: left; border-bottom: 1px solid rgba(74,62,50,.18);
  font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25;
  color: var(--earth); background: none; cursor: pointer;
  transition: opacity .3s var(--ease);
}
.room-tab .marker { width: 28px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); flex: none; align-self: center; }
.room-tab:hover { opacity: .75; }
.room-tab:active { opacity: .55; }
.room-tab[aria-selected="true"] { color: var(--ink); }
.room-tab[aria-selected="true"] .marker { transform: scaleX(1); }
.room-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.room-img.is-active { opacity: 1; }

/* Residence rows (listing) */
.res-row { display: grid; gap: var(--s4); padding-block: var(--s5); border-top: 1px solid var(--line); }
.res-row:last-child { border-bottom: 1px solid var(--line); }
.res-row a.plate { display: block; transition: opacity .4s var(--ease); }
.res-row a.plate:active { opacity: .85; }
.res-row .plate { overflow: hidden; }
@media (min-width: 768px) { .res-row { grid-template-columns: 7fr 5fr; align-items: center; gap: var(--s5); } }

/* Forms */
.field label { display: block; font-size: 0.8125rem; margin-bottom: 6px; color: var(--earth); }
.on-forest .field label { color: rgba(244,239,230,.78); }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; color: inherit; font: inherit; font-size: 1rem;
  border: 0; border-bottom: 1px solid rgba(74,62,50,.35); padding: 8px 0; border-radius: 0;
  transition: border-color .3s var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.field select option { color: var(--ink); }
.on-forest .field input, .on-forest .field textarea, .on-forest .field select { border-bottom-color: rgba(244,239,230,.35); }
.field input:hover, .field textarea:hover, .field select:hover { border-bottom-color: var(--earth); }
.on-forest .field input:hover, .on-forest .field textarea:hover, .on-forest .field select:hover { border-bottom-color: rgba(244,239,230,.6); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--brass); box-shadow: 0 1px 0 0 var(--brass); }
.field ::placeholder { color: var(--stone); }
.on-forest .field ::placeholder { color: rgba(244,239,230,.45); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3);
  padding-block: var(--s3); font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25;
  transition: opacity .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { opacity: .75; }
.faq summary:active { opacity: .55; }
.faq summary .plus { flex: none; width: 14px; height: 14px; position: relative; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--brass); transition: transform .4s var(--ease); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq details > div { padding-bottom: var(--s3); max-width: 40rem; color: var(--earth); }

/* Prose (privacy, articles) */
.prose-p h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; font-size: 1.75rem; line-height: 1.2; margin: var(--s5) 0 var(--s2); }
.prose-p p, .prose-p ul { margin: 0 0 var(--s2); max-width: 40rem; }
.prose-p ul { padding-left: 1.2em; }

/* ------------------------------------------------------------------ Motion
   Only transform and opacity animate. Everything here is scoped to html.motion,
   which the inline head script sets unless the visitor prefers reduced motion. */
:root { --ease-slow: cubic-bezier(0.16, 1, 0.3, 1); }
.curtain { display: none; }

.motion .curtain {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100;
  background: var(--forest); pointer-events: none;
  animation: curtainLift .55s var(--ease-slow) .05s both;
}
.motion .curtain img { width: 64px; height: auto; animation: curtainMark .45s var(--ease-slow) both; }
.motion .curtain.is-leaving { animation: curtainDrop .32s var(--ease-slow) both; }
.motion .curtain.is-leaving img { animation: curtainMarkIn .3s var(--ease-slow) both; }
@keyframes curtainLift { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes curtainDrop { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes curtainMark { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-24px); } }
@keyframes curtainMarkIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Header slides away on scroll down, returns on scroll up */
.site-header.is-hidden { transform: translateY(-100%); }

/* Hero: the arch opens after the curtain lifts */
.motion .reveal-arch { animation: archOpen 1.8s var(--ease-slow) .55s both; }
.motion .arch-frame { animation: frameIn 1.4s var(--ease-slow) .45s both; }
.motion .reveal-fade { animation: fadeUp 1.2s var(--ease-slow) .9s both; }
@keyframes archOpen { from { opacity: 0; transform: translateY(6%) scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes frameIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* Frames below the fold animate with the scroll reveal instead */
.motion .rv .arch-frame, .motion .arch-frame.rv { animation: none; }

/* Headlines: words rise out of a mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; }
.motion .wi { transform: translateY(110%); transition: transform 1.2s var(--ease-slow); transition-delay: calc(var(--i, 0) * 70ms + var(--d, 0ms)); }
.motion .split-in .wi, .motion-ready .wi { transform: none; }
.motion .reveal-fade .split-ready { --d: 0ms; }

/* Scroll reveals: fade and rise, staggered within a group */
.motion .rv { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease-slow), transform 1.3s var(--ease-slow); transition-delay: var(--rd, 0ms); }
.motion .rv.in { opacity: 1; transform: none; }

/* Parallax: images drift inside their frames; JS wraps plate images in .px-clip and sets --py */
.px-clip { display: block; overflow: hidden; width: 100%; height: 100%; }
.px { transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1.12)); will-change: transform; transition: transform .2s linear; }
a.plate:hover .px { --ps: 1.16; transition: transform 1.2s var(--ease-slow); }

/* Room viewer: slow zoom as each image arrives */
.room-img { transform: scale(1.06); transition: opacity 1s var(--ease-slow), transform 1.8s var(--ease-slow); }
.room-img.is-active { transform: none; }

/* Smooth scrolling (Lenis) takes over from native smooth scroll */
html.lenis { scroll-behavior: auto; }

/* Image wipe: a panel in the section colour slides off framed images as they reveal */
.on-forest { --wipe: var(--forest); }
.on-sand { --wipe: var(--sand); }
.motion .rv .plate::after, .motion .plate.rv::after {
  content: ""; position: absolute; inset: 0; z-index: 3; background: var(--wipe, var(--ivory));
  transform-origin: right; transition: transform 1.3s var(--ease-slow); transition-delay: calc(var(--rd, 0ms) + 120ms);
}
.motion .rv.in .plate::after, .motion .plate.rv.in::after { transform: scaleX(0); }

/* Scroll walkthrough: the section is tall; its inner frame sticks while scrolling scrubs the frames */
.walk { position: relative; }
.walk-sticky { padding-block: var(--s6); }
.walk-grid { display: grid; gap: var(--s5); align-items: center; }
.walk .wrap { max-width: 1600px; }
@media (min-width: 900px) { .walk-grid { grid-template-columns: minmax(240px, 3fr) 9fr; } }
@media (min-width: 900px) { .walk-stage .plate { max-height: 80vh; margin-left: auto; } }
.motion .walk { height: 520vh; }
.motion .walk-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-block: var(--s4); }
.motion .walk-sticky > .wrap { width: 100%; }
.walk-stage .plate { overflow: hidden; }
.walk-poster, .walk-canvas { position: absolute; inset: clamp(8px, 1vw, 14px); width: calc(100% - 2 * clamp(8px, 1vw, 14px)); height: calc(100% - 2 * clamp(8px, 1vw, 14px)); object-fit: cover; }
.walk-canvas { opacity: 0; transition: opacity .6s var(--ease-slow); }
.walk.is-ready .walk-canvas { opacity: 1; }
.walk-rooms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.walk-rooms button {
  display: flex; gap: var(--s2); align-items: baseline; width: 100%; padding: 10px 0; text-align: left;
  border-bottom: 1px solid var(--line-light); background: none; color: var(--ivory); cursor: pointer; opacity: .5;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.2;
  transition: opacity .5s var(--ease);
}
.walk-rooms button .num { font-family: Lora, Georgia, serif; font-size: .75rem; letter-spacing: .08em; color: var(--brass); }
.walk-rooms button:hover { opacity: .85; }
.walk-rooms button:active { opacity: .4; }
.walk-rooms button[aria-current="true"] { opacity: 1; }
.walk-progress { height: 1px; background: var(--line-light); margin-top: var(--s3); overflow: hidden; }
.walk-progress span { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }
@media (max-width: 899px) {
  .motion .walk-sticky { align-items: flex-start; padding-top: calc(var(--s5) + 20px); }
  .walk-grid { gap: var(--s3); }
  .walk-stage { order: -1; }
  .walk-stage .plate { aspect-ratio: 4 / 5 !important; max-height: 56vh; margin-inline: auto; }
  .walk-side .t-h2 { font-size: 1.9rem; }
  .walk-side > p { display: none; }
  .walk-rooms { display: flex; flex-wrap: wrap; gap: 0 var(--s2); border-top: 0; }
  .walk-rooms button { width: auto; border-bottom: 0; padding: 4px 0; font-size: 1.05rem; }
}

/* Residences: on large screens the cards run in one row that moves sideways while the section holds */
@media (min-width: 1024px) {
  .motion .hscroll { overflow: hidden; }
  .motion .htrack { display: flex; width: max-content; }
  .motion .htrack > article { width: min(38vw, 560px); flex: none; }
}

/* Custom cursor: a fine brass ring that follows the pointer (JS moves .cursor), grows by scale, labels media */
.cursor { display: none; }
@media (pointer: fine) {
  .motion .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
    width: 88px; height: 88px; margin: -44px 0 0 -44px; opacity: 0; transition: opacity .3s var(--ease);
  }
  .motion .cursor.is-on { opacity: 1; }
  .cursor-ring, .cursor-fill { position: absolute; inset: 0; border-radius: 50%; transform: scale(.5); transition: transform .6s var(--ease-slow), opacity .4s var(--ease); }
  .cursor-ring { border: 1px solid rgba(182,130,53,.85); }
  .cursor-fill { background: rgba(46,62,43,.6); opacity: 0; }
  .motion .cursor.is-link .cursor-ring { transform: scale(.75); }
  .motion .cursor.is-media .cursor-ring, .motion .cursor.is-media .cursor-fill { transform: scale(1); }
  .motion .cursor.is-media .cursor-fill { opacity: 1; }
  .cursor-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: Lora, Georgia, serif; font-size: .75rem; letter-spacing: .08em; color: var(--ivory); opacity: 0; transition: opacity .3s var(--ease); }
  .motion .cursor.is-media .cursor-label { opacity: 1; }
}

/* ------------------------------------------------------------------ Panels theme (homepage)
   Sections float as rounded panels on a soft ground. Panel colours come from the palette. */
.theme-panels { --pg: clamp(10px, 1.4vw, 20px); --pr: clamp(8px, 0.9vw, 14px); --pp: clamp(24px, 4.6vw, 80px); background: var(--mat); }
.theme-panels #menu { border-top-color: rgba(74,62,50,.25) !important; }

.panels { display: flex; flex-direction: column; gap: var(--pg); padding: 0 var(--pg) var(--pg); }
.panel { position: relative; border-radius: var(--pr); overflow: clip; padding: var(--pp); }
.on-ivory { background: var(--ivory); }
.on-earth { background: #4A3E32; color: var(--ivory); --wipe: #4A3E32; }
.on-earth .muted, .on-earth .caption { color: rgba(244,239,230,.75); }
.panel-head { display: grid; gap: var(--s3); align-items: end; margin-bottom: clamp(32px, 4vw, 64px); }
@media (min-width: 900px) { .panel-head { grid-template-columns: 7fr 4fr; } }
.panel-head-side p { margin: 0 0 var(--s2); max-width: 26rem; }

/* Hero: giant secondary wordmark (Cormorant, all caps, +340 tracking), then the drone film in a rounded frame below it */
.panel-hero { min-height: calc(100svh - 96px - var(--pg)); display: grid; grid-template-rows: auto auto minmax(300px, 1fr) auto; gap: clamp(16px, 2.2vw, 32px); isolation: isolate; }
.hero-top { text-align: center; position: relative; z-index: 3; }
.hero-top .kicker { color: var(--earth); margin: 0 0 var(--s2); }
.hero-tag { font-size: clamp(1.25rem, 2vw, 1.75rem); font-style: italic; margin: 0; color: var(--ink); }
.hero-mark {
  align-self: center; margin: 0; text-align: center; white-space: nowrap; position: relative; z-index: 1;
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; font-size: clamp(2.6rem, 10.2vw, 11.5rem);
  letter-spacing: .34em; margin-right: -.34em; line-height: .9; color: var(--ivory);
}
.hero-mark .ch { display: inline-block; }
/* The film frame: a softly rounded rectangle; the inner layer zooms on scroll inside the fixed frame */
.hero-film { position: relative; z-index: 2; border-radius: calc(var(--pr) - 6px); overflow: hidden; background: var(--earth-fixed, #4A3E32); min-height: 300px; }
.hero-film-inner { position: absolute; inset: 0; }
.hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease-slow); }
.hero-vid.is-active { opacity: 1; }
.hero-film-ui { position: absolute; left: clamp(12px, 1.6vw, 24px); right: clamp(12px, 1.6vw, 24px); bottom: clamp(12px, 1.6vw, 24px); display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.daynight { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(32,31,29,.55); backdrop-filter: blur(6px); border: 1px solid rgba(244,239,230,.35); }
.daynight button { position: relative; z-index: 1; padding: 8px 18px; border-radius: 999px; font: inherit; font-size: .875rem; letter-spacing: .02em; color: var(--ivory); background: none; cursor: pointer; opacity: .7; transition: opacity .4s var(--ease); }
.daynight button:hover { opacity: 1; }
.daynight button:active { opacity: .5; }
.daynight button[aria-pressed="true"] { opacity: 1; color: var(--forest); }
.daynight-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ivory); transition: transform .7s var(--ease-slow); }
.daynight[data-mode="evening"] .daynight-thumb { transform: translateX(100%); }
.hero-pause { position: relative; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; color: var(--ivory); background: rgba(32,31,29,.38); border: 1px solid rgba(244,239,230,.35); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.hero-pause:hover { transform: translateY(-1px); }
.hero-pause:active { opacity: .6; }
.hero-pause svg { width: 14px; height: 14px; }
.hero-foot { position: relative; z-index: 3; display: grid; gap: var(--s3); align-items: end; }
.hero-lede { margin: 0; max-width: 24rem; color: var(--earth); }
.hero-cap { margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (min-width: 900px) {
  .hero-foot { grid-template-columns: 1fr auto 1fr; }
  .hero-cap { grid-column: 2; text-align: center; align-self: center; }
  .hero-cta { justify-content: flex-end; grid-column: 3; }
}
@media (max-width: 899px) {
  .panel-hero { grid-template-rows: auto auto auto auto; min-height: 0; padding-top: var(--s5); }
  .hero-mark { margin-top: var(--s3); font-size: 10.6vw; }
  .hero-film { aspect-ratio: 4 / 5; min-height: 0; }
  .daynight button { padding: 7px 14px; }
}

/* From above: drone film beside the setting */
.above-grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 1024px) { .above-grid { grid-template-columns: 5fr 7fr; } }
.above-text .t-h1 { margin: var(--s2) 0 var(--s3); }
.above-text .muted { max-width: 28rem; margin: 0 0 var(--s4); }
.place-list { list-style: none; margin: 0 0 var(--s2); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); border-top: 1px solid var(--line-light); max-width: 28rem; }
.place-list li { padding-block: 10px; border-bottom: 1px solid var(--line-light); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; }
.panel-media { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: rgba(244,239,230,.06); }
.panel-media video, .panel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Daylight to dusk: pinned; scrolling dissolves the evening photograph over the daylight one */
.panel-dusk .dusk-head { margin-bottom: clamp(20px, 3vw, 40px); }
.dusk-media { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--mat); }
.dusk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dusk-night { opacity: 0; }
.dusk-scale { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s3); font-size: .8125rem; color: var(--earth); letter-spacing: .06em; }
.dusk-bar { flex: 1; height: 1px; background: var(--line); overflow: hidden; }
.dusk-bar i { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.motion .panel-dusk { height: 240vh; padding: 0; }
.motion .dusk-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding: var(--pp); display: flex; flex-direction: column; justify-content: center; }
.motion .dusk-media { aspect-ratio: auto; flex: 1; max-height: 64vh; }
html:not(.motion) .dusk-night { position: static; opacity: 1; margin-top: var(--s2); border-radius: 16px; }
html:not(.motion) .dusk-media { aspect-ratio: auto; background: none; }
html:not(.motion) .dusk-day { position: static; border-radius: 16px; }
html:not(.motion) .dusk-scale { display: none; }

/* Fine grain over everything for a printed, tactile feel (static, no animation) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 85; pointer-events: none; opacity: .028; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Statement: large text that lights up word by word on scroll */
.panel-statement .kicker { margin: 0 0 var(--s4); }
.statement { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.85rem, 3.7vw, 3.75rem); line-height: 1.16; letter-spacing: -.01em; margin: 0 0 clamp(40px, 6vw, 96px); max-width: 24ch; max-width: min(24ch, 100%); }
@media (min-width: 900px) { .statement { max-width: 30ch; } }
.statement .sw { transition: opacity .2s linear; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s5); margin: 0 0 var(--s5); }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row > div { border-top: 1px solid rgba(182,130,53,.6); padding-top: var(--s2); }
.stat-row dd { margin: 0; }
.stat-n { display: block; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; }
.stat-l { display: block; color: var(--earth); margin-top: var(--s1); }

/* Residence cards */
.res-track { display: flex; gap: clamp(16px, 2vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pp) * -1); padding-inline: var(--pp); padding-bottom: 6px; scrollbar-width: none; }
.res-track::-webkit-scrollbar { display: none; }
.res-card { flex: 0 0 min(78vw, 400px); scroll-snap-align: start; }
@media (min-width: 1024px) {
  .motion .res-track { overflow: visible; width: max-content; margin-inline: 0; padding-inline: 0; scroll-snap-type: none; }
  .res-card { flex-basis: min(25vw, 400px); }
  .panel-res { padding-block: clamp(32px, 4vw, 64px); }
  .panel-res .panel-head { margin-bottom: clamp(24px, 3vw, 40px); }
}
.res-card-media { display: block; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: rgba(244,239,230,.06); }
.res-card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease-slow); }
.res-card-media:hover img { transform: scale(1.1); }
.res-card-media:active { opacity: .85; }
.res-card-blank { display: grid; place-items: center; border: 1px solid rgba(182,130,53,.5); background: transparent; }
.res-card-blank .display { font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-style: italic; color: var(--sand); }
.res-card-meta { display: flex; gap: var(--s2); align-items: baseline; margin: var(--s3) 0 var(--s1); }
.res-card-meta .num { color: var(--brass); font-size: .8125rem; letter-spacing: .08em; }
.res-card-meta .kicker { color: rgba(244,239,230,.7); }
.res-card-name { font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.05; margin: 0; }
.res-card-name a { color: inherit; text-decoration: none; }
.res-card-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; text-decoration-color: var(--brass); }
.res-card-place { margin: 4px 0 var(--s2); }
.res-card-line { margin: 0 0 var(--s2); color: rgba(244,239,230,.85); max-width: 30ch; }
.res-card-facts { margin: 0; color: var(--sand); font-size: .9375rem; }

/* Walkthrough as a panel */
.walk.panel { padding: 0; }
.walk.panel .walk-sticky { padding-inline: 0; }
/* Inside a panel the walkthrough uses the panel padding, so its text lines up with every other panel */
.walk.panel .wrap { max-width: none; padding-inline: var(--pp); }

/* A day at La Mandre: tall film columns that play on hover */
.day-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1vw, 16px); }
.day-col { margin: 0; outline-offset: 6px; cursor: pointer; transition: opacity .6s var(--ease); }
.day-cols:hover .day-col:not(:hover), .day-cols:focus-within .day-col:not(:focus-within) { opacity: .45; }
.day-label { color: var(--earth); margin: 0 0 var(--s1); }
.day-media { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 5; background: var(--mat); }
.day-media video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 1.6s var(--ease-slow); }
.day-col:hover .day-media video, .day-col:focus-within .day-media video, .day-col.is-playing .day-media video { transform: scale(1.08); }
.day-col figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: var(--s2); }
.day-title { font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.2; }
@media (max-width: 899px) {
  .day-cols { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pp) * -1); padding-inline: var(--pp); scrollbar-width: none; }
  .day-cols::-webkit-scrollbar { display: none; }
  .day-col { flex: 0 0 64vw; scroll-snap-align: center; }
  .day-cols:hover .day-col:not(:hover) { opacity: 1; }
}

/* Architecture: text beside a mosaic of real photographs */
.arch-grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 1024px) { .arch-grid { grid-template-columns: 4fr 8fr; align-items: center; } }
.arch-text .muted { margin: var(--s3) 0 var(--s4); max-width: 26rem; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(90px, 10.5vw, 170px); gap: clamp(8px, 1vw, 14px); }
.bento-tile { position: relative; border-radius: 14px; overflow: hidden; background: rgba(74,62,50,.08); }
.bento-tile img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.b-door { grid-column: 1 / 3; grid-row: 1 / 5; }
.b-kitchen { grid-column: 3 / 5; grid-row: 1 / 3; }
.b-stair { grid-column: 5 / 7; grid-row: 1 / 3; }
.b-garden { grid-column: 3 / 6; grid-row: 3 / 5; }
.b-bath { grid-column: 6 / 7; grid-row: 3 / 5; }
@media (max-width: 599px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; }
  .b-door { grid-column: 1; grid-row: 1 / 3; } .b-kitchen { grid-column: 2; grid-row: 1; } .b-stair { grid-column: 2; grid-row: 2; }
  .b-garden { grid-column: 1 / 3; grid-row: 3; } .b-bath { display: none; }
}

/* Values */
.value-grid { display: grid; gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value-media { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mat); }
.value-media img { width: 100%; height: 100%; object-fit: cover; }
.value-n { margin: var(--s2) 0 4px; font-size: .8125rem; letter-spacing: .08em; color: var(--brass); }
.value-t { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; margin: 0 0 6px; }
.value-d { margin: 0; max-width: 30ch; }

/* Moving band of residence names */
.marquee { overflow: clip; padding-block: clamp(16px, 3vw, 40px); }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee-item { font-size: clamp(3rem, 9vw, 9rem); font-style: italic; line-height: 1; color: var(--earth); padding-inline: clamp(20px, 3vw, 48px); white-space: nowrap; }
.marquee-sep { width: clamp(8px, 1vw, 14px); height: clamp(8px, 1vw, 14px); border-radius: 50%; background: var(--brass); flex: none; }

/* Footer: giant secondary wordmark */
.footer-mark {
  margin: var(--s5) 0 0; text-align: center; white-space: nowrap; overflow: hidden; line-height: .8;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 10.2vw; letter-spacing: .34em; padding-left: .34em;
  color: rgba(244,239,230,.1); user-select: none;
}
.footer-mark .ch { display: inline-block; }
.theme-panels footer { margin: 0 var(--pg) var(--pg); border-radius: var(--pr); overflow: clip; }

/* ------------------------------------------------------------------ Theme switch */
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid currentColor; background: none; color: inherit; cursor: pointer; opacity: .85; transition: opacity .3s var(--ease), transform .5s var(--ease-slow); }
.theme-toggle:hover { opacity: 1; transform: rotate(-12deg); }
.theme-toggle:active { opacity: .6; transform: none; }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

/* ------------------------------------------------------------------ Cookie consent */
.consent {
  position: fixed; left: var(--s2); right: var(--s2); bottom: var(--s2); z-index: 95; max-width: 460px;
  padding: clamp(20px, 2.4vw, 28px); border-radius: 20px; background: var(--ivory); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(46,62,43,.08), 0 24px 60px -20px rgba(46,62,43,.35);
}
.consent[hidden] { display: none; }
@media (min-width: 640px) { .consent { right: var(--s3); bottom: var(--s3); left: auto; } }
.consent-title { font-size: 1.5rem; line-height: 1.2; margin: 0 0 var(--s1); }
.consent-text { font-size: .9375rem; line-height: 1.6; margin: 0 0 var(--s3); color: var(--earth); }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px var(--s2); }
.consent-actions .btn { padding: 11px 20px; }
.consent-link { font-size: .875rem; }
.motion .consent { animation: consentIn .9s var(--ease-slow) both; }
@keyframes consentIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ Dark mode
   Derived from the brand palette: Forest-black ground, dark Forest and Earth panels, Ivory text, Brass accents.
   --ivory stays light because it is also the text colour on Forest; light surfaces are overridden instead. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #EDE6D8;
  --earth: #C2B49C;
  --stone: #8F8573;
  --mat: #121812;
  --line: rgba(237,230,216,.14);
  --line-light: rgba(237,230,216,.2);
}
html[data-theme="dark"] body { background: #182017; color: var(--ink); }
html[data-theme="dark"] .theme-panels { background: var(--mat); }
html[data-theme="dark"] .on-ivory, html[data-theme="dark"] .consent { background: #1F281E; --wipe: #1F281E; }
html[data-theme="dark"] .on-sand { background: #2B261F; --wipe: #2B261F; }
html[data-theme="dark"] .on-forest { background: #263525; --wipe: #263525; }
html[data-theme="dark"] footer { background: #0E130E !important; }
html[data-theme="dark"] .hero-mark { color: rgba(237,230,216,.92); }
html[data-theme="dark"] .btn-forest { background: var(--sand); color: #182017; border-color: var(--sand); }
html[data-theme="dark"] .btn-forest::before { background: #182017; }
html[data-theme="dark"] .btn-solid { background: var(--ink); border-color: var(--ink); color: #182017; }
html[data-theme="dark"] .plate { background: #1D251C; }
html[data-theme="dark"] .room-tab { border-bottom-color: var(--line); }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field textarea, html[data-theme="dark"] .field select { border-bottom-color: rgba(237,230,216,.3); }
html[data-theme="dark"] .field select option { background: #182017; color: var(--ink); }
html[data-theme="dark"] .arch-frame { border-color: rgba(182,130,53,.6); }
html[data-theme="dark"] .res-card-blank { border-color: rgba(182,130,53,.4); }
html[data-theme="dark"] .marquee-item { color: rgba(237,230,216,.75); }
html[data-theme="dark"] img, html[data-theme="dark"] video { filter: brightness(.94); }
html[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: .035; }
html[data-theme="dark"] .consent { box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .px { transform: none !important; }
}

/* ------------------------------------------------------------------ Text and alignment polish
   Headings break into balanced lines; paragraphs avoid a lone last word. */
h1, h2, h3, .display, .t-h1, .t-h2, .t-h3 { text-wrap: balance; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }

/* Panels theme: header and footer content line up with the inner edge of the panels */
.theme-panels footer .wrap { max-width: none; padding-inline: var(--pp); }
.theme-panels .footer-mark { padding-right: var(--pp); padding-left: calc(var(--pp) + .34em); }

/* One heading size for every panel */
.panels .t-h1 { font-size: clamp(2.4rem, 4.3vw, 4.1rem); line-height: 1.04; }

/* Walkthrough inside a panel: wider text column, rounded media like the other panels */
@media (min-width: 900px) { .walk.panel .walk-grid { grid-template-columns: minmax(280px, 4fr) 8fr; } }
.walk.panel .walk-stage .plate { padding: 0; border-radius: 16px; background: rgba(244,239,230,.06); }
.walk.panel .walk-poster, .walk.panel .walk-canvas { inset: 0; width: 100%; height: 100%; }

/* ------------------------------------------------------------------ Header: floating capsule
   Logo, main links with a gliding brass underline, theme switch, Enquire and a Menu button. */
.site-header { position: sticky; top: 0; z-index: 40; padding: 12px clamp(10px, 1.4vw, 20px); pointer-events: none; transition: transform .7s var(--ease-slow); }
.site-header.is-hidden { transform: translateY(-110%); }
.hdr {
  pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  height: 64px; padding: 0 8px 0 clamp(16px, 2vw, 28px); border-radius: 12px; background: var(--ivory); color: var(--ink); border: 1px solid var(--line);
}
.hdr::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
  box-shadow: 0 1px 2px rgba(46,62,43,.06), 0 22px 48px -22px rgba(46,62,43,.35); }
.site-header.is-scrolled .hdr::after { opacity: 1; }
html[data-theme="dark"] .hdr { background: #1F281E; }
html[data-theme="dark"] .hdr::after { box-shadow: 0 22px 48px -22px rgba(0,0,0,.75); }
.hdr-logo { display: block; flex: none; transition: opacity .3s var(--ease); }
.hdr-logo:hover { opacity: .75; }
.hdr-logo:active { opacity: .55; }
.header-logo-ink { display: block; width: 140px; height: 25px; }
.hdr-nav { display: none; }
@media (min-width: 900px) {
  .hdr-nav { display: flex; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}
.hdr-nav a { position: relative; padding: 10px 16px; font-size: .9375rem; color: inherit; text-decoration: none; opacity: .72; transition: opacity .35s var(--ease); }
.hdr-nav a:hover, .hdr-nav a[aria-current="page"] { opacity: 1; }
.hdr-nav a:active { opacity: .5; }
.hdr-ind {
  position: absolute; left: 0; bottom: 3px; width: 100px; height: 1px; background: var(--brass); pointer-events: none;
  transform-origin: left; transform: translateX(var(--x, 0px)) scaleX(var(--w, 0)); opacity: var(--o, 0);
  transition: transform .7s var(--ease-slow), opacity .35s var(--ease);
}
.hdr-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-actions .theme-toggle { width: 44px; height: 44px; border-color: var(--line); }
.hdr-cta { display: none; }
@media (min-width: 640px) { .hdr-cta { display: inline-flex; } }
.hdr-menu {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px 0 18px; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: .9375rem; color: inherit; background: none; border: 1px solid var(--line); transition: opacity .3s var(--ease);
}
.hdr-menu:hover .hdr-burger i:first-child { transform: scaleX(.55); }
.hdr-menu:hover .hdr-burger i:last-child { transform: scaleX(1.25); }
.hdr-menu:active { opacity: .6; }
.hdr-burger { position: relative; width: 18px; height: 8px; display: block; }
.hdr-burger i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease-slow); }
.hdr-burger i:first-child { top: 0; }
.hdr-burger i:last-child { bottom: 0; }
.hdr-burger.is-x i:first-child { transform: translateY(3.5px) rotate(45deg); transform-origin: center; }
.hdr-burger.is-x i:last-child { transform: translateY(-3.5px) rotate(-45deg); transform-origin: center; }
.hdr-menu:hover .hdr-burger.is-x i { transform-origin: center; }
.hdr-menu:hover .hdr-burger.is-x i:first-child { transform: translateY(3.5px) rotate(135deg); }
.hdr-menu:hover .hdr-burger.is-x i:last-child { transform: translateY(-3.5px) rotate(45deg); }
@media (max-width: 479px) { .hdr-menu-label { display: none; } .hdr-menu { padding: 0 14px; } }

/* ------------------------------------------------------------------ Full-screen menu */
.menu { position: fixed; inset: 0; z-index: 96; }
.menu[hidden] { display: none; }
.menu::before { content: ""; position: absolute; inset: 0; background: rgba(18,24,18,.35); opacity: 0; transition: opacity .6s var(--ease); }
.menu.is-open::before { opacity: 1; }
.menu-panel {
  position: absolute; inset: clamp(8px, 1vw, 14px); border-radius: clamp(18px, 2.2vw, 32px); overflow: auto;
  display: flex; flex-direction: column; padding: clamp(18px, 2.6vw, 36px) clamp(20px, 4vw, 64px);
  background: var(--forest); color: var(--ivory); transform: translateY(104%); transition: transform 1s var(--ease-slow);
}
.menu.is-open .menu-panel { transform: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-logo { width: 140px; height: auto; }
.menu-close { border-color: rgba(244,239,230,.3); }
.menu-grid { flex: 1; display: grid; gap: var(--s5); align-items: center; padding-block: var(--s4); }
@media (min-width: 900px) { .menu-grid { grid-template-columns: 7fr 5fr; gap: var(--s6); } }
.menu-links { display: flex; flex-direction: column; }
.menu-link { display: flex; align-items: baseline; gap: var(--s3); color: inherit; text-decoration: none; padding-block: 2px; }
.menu-n { width: 2.2em; flex: none; font-size: .8125rem; letter-spacing: .08em; color: var(--brass); }
.menu-mask { display: block; overflow: hidden; padding-bottom: .1em; transition: transform .7s var(--ease-slow); }
.menu-t { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.4rem, min(5.2vw, 8.4vh), 4.6rem); line-height: 1.04; letter-spacing: -.01em;
  transform: translateY(110%); transition: transform 1.1s var(--ease-slow); transition-delay: calc(.2s + var(--i) * .06s); }
.menu.is-open .menu-t { transform: none; }
.menu-link:hover .menu-mask { transform: translateX(16px); }
.menu-link:hover .menu-t { font-style: italic; }
.menu-link:active { opacity: .7; }
.menu-link[aria-current="page"] .menu-t { color: var(--sand); }
.menu-kicker { color: var(--sand); margin: 0 0 var(--s2); }
.menu-res { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.menu-res li { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-slow), transform .9s var(--ease-slow); transition-delay: calc(.2s + var(--i) * .06s); }
.menu.is-open .menu-res li { opacity: 1; transform: none; }
.menu-res a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding: 12px 0; border-bottom: 1px solid var(--line-light); color: inherit; text-decoration: none; transition: opacity .3s var(--ease); }
.menu-res a:hover .display { font-style: italic; }
.menu-res a:active { opacity: .6; }
.menu-res .display { font-size: 1.6rem; line-height: 1.2; }
.menu-res .caption { color: rgba(244,239,230,.65); margin: 0; }
.menu-preview { position: relative; margin-top: var(--s4); border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: rgba(244,239,230,.06); }
.menu-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.4s var(--ease-slow); }
.menu-preview img.is-on { opacity: 1; transform: none; }
@media (max-width: 899px) { .menu-preview { display: none; } }
.menu-foot { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line-light); font-size: .9375rem; opacity: 0; transition: opacity .8s var(--ease) .5s; }
.menu.is-open .menu-foot { opacity: 1; }
html[data-theme="dark"] .menu-panel { background: #263525; }

/* ------------------------------------------------------------------ Buttons: pill, rolling label, arrow badge */
.btn { border-radius: 6px; }
.btn-roll { position: relative; display: block; height: 1.3em; line-height: 1.3; overflow: hidden; }
.btn-roll > span { display: block; transition: transform .65s var(--ease-slow); }
.btn:hover .btn-roll > span { transform: translateY(-100%); }
.btn-arrow { padding-right: 8px !important; }
.btn-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin-left: 4px; border-radius: 50%; background: currentColor; transition: transform .7s var(--ease-slow); }
.btn-ico svg { width: 14px; height: 14px; transition: transform .7s var(--ease-slow); }
.btn-forest .btn-ico svg { stroke: var(--forest); }
.btn-solid .btn-ico svg { stroke: var(--ivory); }
.btn:not(.btn-forest):not(.btn-solid) .btn-ico svg { stroke: var(--ivory); }
html[data-theme="dark"] .btn-forest .btn-ico svg { stroke: var(--sand); }
.btn-arrow:hover .btn-ico { transform: rotate(-45deg); }
.btn.hdr-cta { height: 44px; padding: 0 8px 0 18px; }

/* ------------------------------------------------------------------ Chapter index (homepage, wide screens) */
.chapters { position: fixed; right: calc(clamp(10px, 1.4vw, 20px) + 18px); top: 50%; z-index: 30; transform: translateY(-50%); display: none; }
@media (min-width: 1200px) { .motion .chapters { display: block; } }
.chapters ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.chapters button { display: flex; align-items: center; gap: 10px; padding: 4px 0; background: none; border: 0; cursor: pointer; color: var(--chap, var(--ink)); font: inherit; }
.chapters .lbl { font-size: .75rem; letter-spacing: .08em; opacity: 0; transform: translateX(8px); transition: opacity .4s var(--ease), transform .6s var(--ease-slow); white-space: nowrap; }
.chapters .tick { width: 14px; height: 1px; background: currentColor; opacity: .45; transform-origin: right; transition: transform .6s var(--ease-slow), opacity .4s var(--ease); }
.chapters:hover .lbl, .chapters button:focus-visible .lbl { opacity: .85; transform: none; }
.chapters button[aria-current="true"] .tick { transform: scaleX(2.2); opacity: 1; background: var(--brass); }
/* Labels appear only on hover, so they never sit over panel content */
.chapters button:active { opacity: .6; }
.chapters.on-dark { --chap: var(--ivory); }

/* ------------------------------------------------------------------ Inner pages in the panel system
   Every section becomes a rounded panel on the soft ground, like the homepage. :where() keeps specificity low
   so section colour classes (.on-forest, .on-sand) still win. */
:where(.theme-inner main > section) { background: var(--ivory); }
.theme-inner main > section { margin: 0 var(--pg) var(--pg); border-radius: var(--pr); overflow: clip; }
html[data-theme="dark"] :where(.theme-inner main > section) { background: #1F281E; }

/* No arches: image frames are softly rounded rectangles everywhere */
.arch, .arch-frame { border-radius: 20px; }
.arch-frame { border: 0; padding: 0; }

/* ------------------------------------------------------------------ Gold-edged buttons
   Buttons keep a clean, unfilled face with a gold metallic border (.btn-ring, added by site.js) and a highlight
   that glides along it (.btn-glint). Primary buttons glint every few seconds; every button glints on hover.
   The ring is a gradient masked to a 1.5px border; only the glint's transform animates. */
.btn, .btn-gold, .btn-forest, .btn-solid,
html[data-theme="dark"] .btn-forest, html[data-theme="dark"] .btn-solid {
  border-color: transparent; color: inherit; text-shadow: none; box-shadow: none;
}
.btn-gold, .btn-forest, .btn-solid,
html[data-theme="dark"] .btn-forest, html[data-theme="dark"] .btn-solid { background: rgba(182,130,53,.07); }
.btn:not(.btn-gold):not(.btn-forest):not(.btn-solid) { background: transparent; }
.btn::before, .btn-gold::before, .btn-forest::before, .btn-solid::before, html[data-theme="dark"] .btn-forest::before {
  background: rgba(182,130,53,.16); opacity: 1; transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease-slow);
}
.btn:hover::before, .btn-gold:hover::before, .btn-forest:hover::before, .btn-solid:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-ring {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px; pointer-events: none; overflow: hidden;
  background: linear-gradient(120deg, #7A5120 0%, #B68235 22%, #E8C67F 44%, #F8E6B8 52%, #C99A4B 66%, #8A5E22 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.btn-gold .btn-ring, .btn-forest .btn-ring, .btn-solid .btn-ring { padding: 1.5px; }
.btn-glint {
  position: absolute; top: -60%; bottom: -60%; left: 0; width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255,250,235,.95) 50%, transparent);
  transform: translateX(-160%) skewX(-22deg);
}
.btn:hover .btn-glint { animation: btnGlint 1.3s var(--ease) infinite; }
@keyframes btnGlint {
  0% { transform: translateX(-160%) skewX(-22deg); }
  45%, 100% { transform: translateX(330%) skewX(-22deg); }
}

/* Arrow badge: a gold ring with a gold arrow */
.btn .btn-ico, .btn-gold .btn-ico, .btn-forest .btn-ico, .btn-solid .btn-ico { background: none; box-shadow: inset 0 0 0 1px #C99A4B; }
html .btn .btn-ico svg, html[data-theme="dark"] .btn .btn-ico svg { stroke: #C99A4B; }

/* ------------------------------------------------------------------ Picture frames
   Rounded photographs with soft depth and a fine inner keyline that turns brass on hover. */
.plate:not(.plate-contain) { padding: 0; background: var(--mat); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(46,62,43,.06), 0 26px 52px -30px rgba(46,62,43,.5); }
.plate.plate-contain { border-radius: 18px; background: #fff; padding: 14px; }
.plate:not(.plate-contain)::before,
.res-card-media::before, .value-media::before, .panel-media::before, .bento-tile::before, .dusk-media::before, .day-media::before {
  content: ""; position: absolute; inset: 10px; z-index: 2; pointer-events: none; border-radius: 10px;
  border: 1px solid rgba(244,239,230,.5); transition: border-color .6s var(--ease), transform .9s var(--ease-slow);
}
.value-media, .bento-tile, .dusk-media, .day-media, .res-card-media { position: relative; }
a.plate:hover::before, .res-card-media:hover::before, .bento-tile:hover::before, .day-col:hover .day-media::before, .value-card:hover .value-media::before {
  border-color: rgba(222,180,98,.95); transform: scale(.985);
}
.res-row a.plate { transition: transform .9s var(--ease-slow), box-shadow .9s var(--ease); }
.res-row a.plate:hover { transform: translateY(-4px); }
.res-row a.plate:active { transform: none; }
html[data-theme="dark"] .plate:not(.plate-contain) { box-shadow: 0 26px 52px -30px rgba(0,0,0,.8); }

/* ------------------------------------------------------------------ Layered villa model */
.layers-grid { display: grid; gap: var(--s4); }
@media (min-width: 1024px) { .layers-grid { grid-template-columns: 8fr 4fr; align-items: start; gap: var(--s5); } }
.layers-stage { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; min-height: 340px;
  background: radial-gradient(ellipse at 50% 38%, rgba(244,239,230,.12), rgba(0,0,0,.18) 72%); border: 1px solid rgba(244,239,230,.12); }
@media (min-width: 1024px) { .layers-stage { aspect-ratio: auto; height: min(74vh, 720px); } }
.layers-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.layers-canvas:active { cursor: grabbing; }
.layers-fallback { display: none; }
.no-webgl .layers-canvas, .no-webgl .layers-ui { display: none; }
.no-webgl .layers-fallback { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: absolute; inset: 0; padding: 8px; }
.no-webgl .layers-fallback img { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 10px; }
.layers-ui { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none; }
.layers-ui > * { pointer-events: auto; }
.layers-chip { font-size: .75rem; letter-spacing: .08em; padding: 9px 14px; border-radius: 999px; color: var(--ivory); border: 1px solid rgba(244,239,230,.3); background: rgba(18,24,18,.35); }
.layers-light { --thumb: var(--ivory); }
.layers-hover { position: absolute; left: 20px; bottom: 44px; margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.5rem, 2.4vw, 2.2rem); color: var(--ivory);
  opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .7s var(--ease-slow); pointer-events: none; }
.layers-hover.is-on { opacity: 1; transform: none; }
.layers-note { position: absolute; left: 20px; bottom: 16px; margin: 0; font-size: .75rem; letter-spacing: .04em; color: rgba(244,239,230,.6); }
.layers-index { list-style: none; margin: 0 0 var(--s3); padding: 0; border-top: 1px solid var(--line-light); }
.layers-index button { display: flex; gap: var(--s2); width: 100%; text-align: left; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--line-light);
  color: var(--ivory); cursor: pointer; opacity: .66; font: inherit; transition: opacity .35s var(--ease); }
.layers-index button:hover, .layers-index button[aria-pressed="true"] { opacity: 1; }
.layers-index button:active { opacity: .5; }
.layer-n { flex: none; width: 2em; padding-top: .55em; font-size: .75rem; letter-spacing: .08em; color: var(--brass); }
.layer-name { display: block; font-size: 1.4rem; line-height: 1.2; }
.layer-text { display: block; margin-top: 2px; font-size: .875rem; line-height: 1.5; color: rgba(244,239,230,.72); }
.layers-slider { display: flex; align-items: center; gap: 12px; margin: var(--s3) 0; font-size: .75rem; letter-spacing: .06em; color: rgba(244,239,230,.72); }
.layers-slider input { flex: 1; accent-color: var(--brass); cursor: pointer; }
.layers-total { margin: 0 0 var(--s4); display: grid; gap: 8px; }
.layers-total div { display: flex; justify-content: space-between; gap: var(--s2); font-size: .9375rem; }
.layers-total dt { color: rgba(244,239,230,.7); }
.layers-total dd { margin: 0; }

/* ------------------------------------------------------------------ First-visit intro (homepage)
   The head script adds .has-intro only on a first homepage visit with motion allowed. Pure CSS timing,
   so the page never waits on JavaScript; a final fade is the safety net. */
.intro { display: none; }
.has-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 110; background: var(--forest); color: var(--ivory);
  animation: introExit 1.1s var(--ease-slow) 2.3s forwards;
}
.intro-inner { text-align: center; }
.intro-mark { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.2rem, 7vw, 6rem); letter-spacing: .34em; margin: 0 -.34em 0 0; line-height: 1; white-space: nowrap; }
.intro-mark span { display: inline-block; opacity: 0; transform: translateY(60%); animation: introChar 1.1s var(--ease-slow) both; animation-delay: calc(.25s + var(--i) * .07s); }
.intro-line { display: block; width: min(320px, 50vw); height: 1px; margin: var(--s4) auto var(--s3); background: var(--brass); transform: scaleX(0); animation: introLine 1.4s var(--ease-slow) .5s forwards; }
.intro-tag { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.5rem); margin: 0; opacity: 0; animation: introFade 1s var(--ease) 1.1s forwards; }
@keyframes introChar { to { opacity: 1; transform: none; } }
@keyframes introLine { to { transform: scaleX(1); } }
@keyframes introFade { to { opacity: .85; } }
@keyframes introExit { to { transform: translateY(-100%); visibility: hidden; } }
.has-intro .curtain { display: none !important; }

/* Header controls share the gold edge (static) so they sit with the gold-edged Enquire button */
.hdr-menu, .hdr-actions .theme-toggle, .menu-close { border-color: rgba(182,130,53,.6); }
.hdr-menu:hover, .hdr-actions .theme-toggle:hover { border-color: rgba(214,170,90,.95); }

/* ------------------------------------------------------------------ Restraint pass (docs/research-ai-tells-human-made-2026.md) */
/* Photographs sit nearly square; only the panels keep a small radius */
.plate:not(.plate-contain), .plate.plate-contain, .res-card-media, .value-media, .bento-tile, .day-media, .panel-media, .dusk-media, .layers-stage, .menu-preview, .hero-film { border-radius: 3px; }
.plate:not(.plate-contain)::before, .res-card-media::before, .value-media::before, .panel-media::before, .bento-tile::before, .dusk-media::before, .day-media::before { border-radius: 1px; }
.theme-toggle, .hdr-actions .theme-toggle, .vid-toggle, .hero-pause { border-radius: 8px; }
/* Hover effects only on things that are links */
.bento-tile:hover::before, .value-card:hover .value-media::before, .day-col:hover .day-media::before { border-color: rgba(244,239,230,.5); transform: none; }
.res-row a.plate:hover { transform: none; }

/* Statement with exact figures */
.statement { max-width: 32ch; }
.statement-sm { font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.25; margin: 0; max-width: 34ch; }

/* Setting: road distances */
.place-list { display: block; max-width: 24rem; border-top: 1px solid var(--line-light); }
.place-list > div { display: flex; justify-content: space-between; padding-block: 10px; border-bottom: 1px solid var(--line-light); }
.place-list dt { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; }
.place-list dd { margin: 0; }
.above-text .t-h1 { max-width: 16ch; }

/* A day at La Mandre: uneven column widths and plain labels */
@media (min-width: 900px) { .day-cols { grid-template-columns: 1.25fr .85fr 1fr 1.15fr .9fr; } }
.day-label { margin: 0 0 var(--s1); font-size: .875rem; color: var(--earth); }

/* Commitments: heading offset against a narrow column of evidence */
.commit-grid { display: grid; gap: var(--s5); }
@media (min-width: 1024px) { .commit-grid { grid-template-columns: 5fr 6fr; } .commit-grid .t-h1 { position: sticky; top: 110px; align-self: start; } }
.commit { padding-block: var(--s3); border-top: 1px solid var(--line); }
.commit:last-child { border-bottom: 1px solid var(--line); }
.commit-t { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2; margin: 0 0 var(--s1); }
.commit p { margin: 0 0 var(--s2); max-width: 34rem; }

/* Project index */
.panel-index .t-h1 { margin-bottom: var(--s4); }
.pindex { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pindex th, .pindex td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid rgba(74,62,50,.25); vertical-align: baseline; }
.pindex thead th { font-weight: 400; font-size: .8125rem; color: var(--earth); }
.pindex tbody th { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; font-size: 1.5rem; }
.pindex tbody th a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--brass), var(--brass)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.pindex tbody th a:hover { background-size: 100% 1px; }
.pindex tbody th a:active { opacity: .6; }
@media (max-width: 699px) {
  .pindex thead { display: none; }
  .pindex tr { display: grid; grid-template-columns: 1fr auto; padding-block: 12px; border-bottom: 1px solid rgba(74,62,50,.25); }
  .pindex th, .pindex td { border: 0; padding: 2px 0; }
  .pindex td:nth-child(4) { grid-column: 1 / -1; color: var(--earth); font-size: .875rem; }
}
html[data-theme="dark"] .pindex th, html[data-theme="dark"] .pindex td, html[data-theme="dark"] .pindex tr { border-color: var(--line); }

/* Grid children may shrink below their content width (keeps the model frame inside the panel on phones) */
.layers-grid > * { min-width: 0; }
.layers-stage { width: 100%; }
@media (max-width: 599px) { .layers-ui { flex-wrap: wrap; } .layers-chip { display: none; } }
