/* ============================================================
   AHUJA — Editorial cream design system
   Inspired by sophisticated residential brands (Elyse, Aman)
   Cream · charcoal · brass accent · Metropolis throughout
   ============================================================ */

:root {
  /* ---- Palette ---- */
  --paper:        #f3eee4;   /* warm cream — primary surface */
  --paper-soft:   #ede7da;   /* alt band */
  --paper-warm:   #e3d9c5;   /* deeper cream */
  --paper-pure:   #f8f4ea;   /* lightest cream */
  --rule:         rgba(31, 29, 26, 0.10);
  --rule-strong:  rgba(31, 29, 26, 0.18);

  --ink:          #1f1d1a;   /* warm near-black */
  --ink-deep:     #14130f;
  --ink-mid:      #5a554c;
  --ink-soft:     #8a8478;
  --ink-quiet:    #b5ad9f;

  --brass:        #a78544;
  --brass-deep:   #846732;
  --brass-light:  #c9a661;
  --brass-pale:   #e6d6ad;

  --on-dark:      #f3eee4;
  --on-dark-mid:  rgba(243, 238, 228, 0.65);
  --rule-dark:    rgba(243, 238, 228, 0.14);

  /* ---- Type ---- */
  --sans: 'Metropolis', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* ---- Rhythm ---- */
  --max:        1480px;
  --gutter:     clamp(1.5rem, 5vw, 5.5rem);
  --section:    clamp(7rem, 13vw, 12rem);
  --section-sm: clamp(5rem, 8vw, 7rem);

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);

  --radius-btn: 999px;
  --radius-card: 6px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;        /* contain any stray horizontal overflow without breaking position:sticky */
}

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-mid);
  background: var(--paper);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.35s var(--ease), opacity 0.35s var(--ease); }
button { font: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   TYPOGRAPHY — Metropolis at every level
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.0;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); line-height: 1.04; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 400; letter-spacing: -0.005em; line-height: 1.2; }
h4 { font-size: 0.95rem; font-weight: 500; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--brass);
}

p {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 60ch;
  color: var(--ink-mid);
}

p.lede {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 46ch;
}

/* ============================================================
   PARENTHETICAL LABEL — the signature device
   ============================================================ */
.paren {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-style: normal;
}

/* A short brass tick-line replaces the old ( ) brackets — architectural, finished */
.paren::before {
  content: '';
  width: 1.85rem;
  height: 1px;
  background: var(--brass);
  flex-shrink: 0;
}
.paren::after { content: none; }

.paren.on-dark { color: rgba(243, 238, 228, 0.72); }
.paren.on-dark::before { background: var(--brass-light); }

.paren.sm {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}
.paren.sm::before { width: 1.4rem; }

/* ============================================================
   BUTTONS — rounded, refined
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.btn .arrow {
  width: 1em;
  height: 1em;
  transition: transform 0.35s var(--ease);
}

.btn:hover .arrow { transform: translateX(4px); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--brass-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-light-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  border-color: rgba(243, 238, 228, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-light-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* Text-link CTA, underline style */
.link-cta {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.4s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-cta:hover { gap: 1rem; color: var(--brass); border-bottom-color: var(--brass); }
.link-cta.on-dark { color: var(--paper); border-bottom-color: var(--paper); }
.link-cta.on-dark:hover { color: var(--brass-light); border-bottom-color: var(--brass-light); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: var(--section) 0; }
section.tight { padding: var(--section-sm) 0; }

/* ============================================================
   NAV — clean, rounded CTA, parenthetical hover
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem var(--gutter);
  background: rgba(243, 238, 228, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--rule);
  transition: padding 0.5s var(--ease), background 0.5s var(--ease),
              border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}

/* Transparent state — floats over the cinematic hero */
.nav.nav--hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  padding: 2rem var(--gutter);
}

.nav.nav--hero.scrolled {
  background: rgba(243, 238, 228, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--rule);
  padding: 1.4rem var(--gutter);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.5rem;
}

/* Links take all remaining space and center themselves */
.nav-wordmark {
  flex-shrink: 0;
  margin-right: auto;
  display: flex;
  align-items: center;
}
.nav-wordmark img {
  height: 65px;
  width: auto;
  display: block;
  filter: brightness(0);
  transition: filter 0.5s var(--ease), opacity 0.3s var(--ease);
}
.nav-wordmark:hover img { opacity: 0.6; }
.nav.nav--hero .nav-wordmark img { filter: none; }
.nav.nav--hero.scrolled .nav-wordmark img { filter: brightness(0); }

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink-mid);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s var(--ease);
}
.nav.nav--hero .nav-links a         { color: rgba(243,238,228,0.75); }
.nav.nav--hero.scrolled .nav-links a { color: var(--ink-mid); }

.nav-links a:hover { color: var(--ink); }
.nav.nav--hero .nav-links a:hover  { color: var(--paper); }
.nav.nav--hero.scrolled .nav-links a:hover { color: var(--ink); }

.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav.nav--hero .nav-links a.active { color: var(--paper); }
.nav.nav--hero.scrolled .nav-links a.active { color: var(--ink); }

.nav-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav-cta:hover { background: var(--brass-deep); }

/* Ghost style over the hero */
.nav.nav--hero .nav-cta {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(243,238,228,0.45);
  color: var(--paper);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav.nav--hero .nav-cta:hover {
  background: rgba(243,238,228,0.15);
  border-color: rgba(243,238,228,0.8);
}
.nav.nav--hero.scrolled .nav-cta {
  background: var(--ink);
  border-color: transparent;
  color: var(--paper);
}
.nav.nav--hero.scrolled .nav-cta:hover { background: var(--brass-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  padding: 0.25rem;
  transition: color 0.5s var(--ease);
}
.nav.nav--hero .nav-toggle { color: var(--paper); }
.nav.nav--hero.scrolled .nav-toggle { color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   HERO CINEMATIC — full-bleed, video-feel ambient motion
   The silk-and-logo image lives, breathes, drifts.
   ============================================================ */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink-deep);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .hero-cinematic { min-height: 92vh; height: 92vh; }
}

/* The cinematic layer — image + overlays */
.cinema-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cinema-bg img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  min-width: 120%;
  min-height: 120%;
  object-fit: cover;
  object-position: center 35%;
  transform: translate(-50%, -50%) scale(1.0);
  animation: cinemaPan 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes cinemaPan {
  0%   { transform: translate(-52%, -51%)   scale(1.00); }
  50%  { transform: translate(-50%, -50%)   scale(1.10); }
  100% { transform: translate(-48%, -49%)   scale(1.22); }
}

/* Atmospheric overlay — cool navy grade + strong bottom burn for legibility */
.cinema-overlay {
  position: absolute;
  inset: 0;
  background:
    /* deep navy bottom burn — no warm mustard */
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(5, 13, 28, 0.52) 0%, transparent 62%),
    /* cool blue-black top vignette */
    radial-gradient(ellipse 110% 50% at 50% 0%,  rgba(5, 13, 24, 0.52) 0%, transparent 70%),
    /* left-edge darkening — grounds the text column */
    linear-gradient(90deg, rgba(5, 13, 24, 0.48) 0%, rgba(5, 13, 24, 0.10) 35%, transparent 55%),
    /* bottom-to-top burn — keeps headline legible */
    linear-gradient(180deg,
      rgba(5, 13, 24, 0.18) 0%,
      rgba(5, 13, 24, 0.00) 28%,
      rgba(5, 13, 24, 0.32) 62%,
      rgba(5, 13, 24, 0.84) 100%
    );
  animation: cinemaDrift 38s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cinemaDrift {
  0%   { opacity: 1.0; }
  30%  { opacity: 0.78; }
  65%  { opacity: 0.95; }
  100% { opacity: 0.82; }
}

/* Drifting warm sun-streak — mimics golden hour light shaft */
.cinema-flare {
  position: absolute;
  top: -20%;
  width: 55%;
  height: 140%;
  background: linear-gradient(108deg,
    transparent 20%,
    rgba(255, 210, 120, 0.05) 38%,
    rgba(255, 240, 180, 0.13) 50%,
    rgba(255, 210, 120, 0.05) 62%,
    transparent 80%
  );
  filter: blur(32px);
  pointer-events: none;
  animation: cinemaFlare 11s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes cinemaFlare {
  0%   { left: -70%; opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { left: 120%; opacity: 0; }
}

/* Subtle cool colour grade — brings photo into brand navy palette */
.cinema-grade {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 57, 0.06);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Subtle SVG film grain — adds the "video" texture */
.cinema-grain {
  position: absolute;
  inset: -10%;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: cinemaGrain 1.6s steps(8) infinite;
}

@keyframes cinemaGrain {
  0%   { transform: translate(0,        0); }
  12%  { transform: translate(-3%,    -5%); }
  25%  { transform: translate(-7%,     3%); }
  37%  { transform: translate( 4%,    -3%); }
  50%  { transform: translate(-2%,     8%); }
  62%  { transform: translate( 6%,    -6%); }
  75%  { transform: translate(-4%,     2%); }
  87%  { transform: translate( 5%,     5%); }
  100% { transform: translate(0,        0); }
}

/* The text content sits in the bottom 40% of the hero, over the cinema */
.cinema-content {
  position: relative;
  z-index: 5;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--gutter) clamp(4rem, 8vw, 7rem);
  color: var(--paper);
}

.cinema-content .paren {
  color: var(--paper);
  margin-bottom: 1.75rem;
}
.cinema-content .paren::before { background: var(--brass-light); }

.cinema-content h1 {
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 2rem;
  max-width: 20ch;
}

.cinema-content h1 em {
  font-style: italic;
  color: var(--brass-light);
  font-weight: 300;
}

.cinema-content .hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: var(--on-dark-mid);
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

.cinema-content .hero-actions {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Mobile: stack the CTAs and align the link's text with the button's label
   (the button has 2rem inner padding, so the link is indented to match) */
@media (max-width: 600px) {
  .cinema-content .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }
  .cinema-content .hero-actions .link-cta { margin-left: 2rem; }
}

/* Scroll cue colored for dark */
.hero-cinematic .hero-scroll-indicator {
  bottom: 1.5rem;
  color: var(--on-dark-mid);
}
.hero-cinematic .hero-scroll-indicator::after {
  background: linear-gradient(to bottom, rgba(243, 238, 228, 0.6), transparent);
}

/* Top-left meta annotation — like film slate */
.cinema-slate {
  position: absolute;
  top: 7rem;
  left: var(--gutter);
  z-index: 5;
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-mid);
  font-weight: 400;
  opacity: 0;
  animation: fadeInLate 1s 0.4s var(--ease) forwards;
}

.cinema-slate .dot {
  width: 6px; height: 6px;
  background: var(--brass-light);
  border-radius: 50%;
  animation: slatePulse 2.4s ease-in-out infinite;
}

@keyframes slatePulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

/* The thin location bar at the bottom */
.cinema-location {
  position: absolute;
  bottom: 1.5rem;
  right: var(--gutter);
  z-index: 5;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-mid);
  opacity: 0;
  animation: fadeInLate 1s 0.7s var(--ease) forwards;
}

@media (max-width: 700px) {
  .cinema-slate, .cinema-location { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-bg img,
  .cinema-overlay,
  .cinema-flare,
  .cinema-grain { animation: none !important; }
  .cinema-bg img { transform: translate(-50%, -50%) scale(1.08); }
}

/* ============================================================
   HERO — centered tagline, big CTA, full-width image below
   ============================================================ */
.hero {
  padding: 11rem var(--gutter) 0;
  background: var(--paper);
  text-align: center;
  position: relative;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero .paren { margin-bottom: 2.5rem; }

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 2.5rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em {
  font-style: italic;
  color: var(--brass);
  font-weight: 300;
}

.hero p.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-mid);
  max-width: 48ch;
  margin: 0 auto 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--ink);
  overflow: hidden;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .hero-image { aspect-ratio: 4 / 5; }
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20, 19, 15, 0.4) 100%);
}

.hero-image-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: var(--on-dark-mid);
  font-size: 0.78rem;
  font-weight: 400;
  z-index: 2;
}

.hero-image-caption .paren { color: var(--paper); }
.hero-image-caption .paren::before { background: var(--brass-light); }

/* Three-city strip directly below hero image */
.hero-cities {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 700px) {
  .hero-cities { grid-template-columns: 1fr 1fr 1fr; }
}

.hero-city {
  padding: 1.5rem 2rem 1.5rem 0;
  border-right: 1px solid var(--rule);
}
.hero-city:last-child { border-right: none; }

@media (max-width: 699px) {
  .hero-city {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 1.5rem 0;
  }
  .hero-city:last-child { border-bottom: none; }
}

@media (min-width: 700px) {
  .hero-city + .hero-city { padding-left: 2.5rem; }
}

.hero-city .city-name {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-city .city-coords {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.hero-city .city-detail {
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.5;
}

.hero-city .city-detail .brass { color: var(--brass); }

/* ============================================================
   NUMBERS STRIP — navy surface, gold line draw, animated reveal
   ============================================================ */
.numbers {
  background: #0B1C39;
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.numbers-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 700px) {
  .numbers-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

.number-item {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(201, 166, 97, 0.15);
  position: relative;
  overflow: hidden;
}

/* Gold line draws across the top when revealed */
.number-item::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brass), var(--brass-light));
  transition: width 1.1s var(--ease);
}
.number-item.visible::before { width: 100%; }

/* Stagger the line draw */
.number-item.d1::before { transition-delay: 0.08s; }
.number-item.d2::before { transition-delay: 0.16s; }
.number-item.d3::before { transition-delay: 0.24s; }

.number-item .num {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--paper);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.number-item.d1 .num { transition-delay: 0.08s; }
.number-item.d2 .num { transition-delay: 0.16s; }
.number-item.d3 .num { transition-delay: 0.24s; }
.number-item.visible .num { transform: translateY(0); opacity: 1; }

.number-item .num em {
  font-style: italic;
  color: var(--brass-light);
  font-weight: 300;
}

.number-item .num-label {
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(243, 238, 228, 0.7);
  line-height: 1.4;
}

.number-item .num-sub {
  font-size: 0.8rem;
  color: rgba(243, 238, 228, 0.4);
  margin-top: 0.4rem;
}

/* ============================================================
   SPLIT — text + image alternation
   ============================================================ */
.split {
  background: var(--paper);
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.split.alt { background: var(--paper-soft); }

.split-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .split.reverse .split-text { order: 2; }
  .split.reverse .split-image { order: 1; }
}

.split-text .paren { margin-bottom: 2rem; }
.split-text h2 { margin-bottom: 1.75rem; max-width: 16ch; }
.split-text p {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 50ch;
  margin-bottom: 1.25rem;
}

.split-text .actions { margin-top: 2.5rem; }

.split-image {
  position: relative;
  width: 100%;            /* cap to the column — stops aspect-ratio + min-height forcing a wider box (caused mobile overflow) */
  aspect-ratio: 3 / 4;
  min-height: 600px;
  background: var(--ink);
  overflow: hidden;
}

.split-image.villa-cycle {
  aspect-ratio: 4 / 3;
  min-height: 480px;
}

/* Mobile: match the villa box to the 3:2 image so the whole villa is visible
   (no side-crop) and drop the min-height that was forcing a 640px-wide box */
@media (max-width: 899px) {
  .split-image,
  .split-image.villa-cycle { min-height: 0; }
  .split-image.villa-cycle { aspect-ratio: 3 / 2; }
}

@media (min-width: 900px) {
  .split-image { min-height: 780px; }
  .split-inner  { grid-template-columns: 1fr 1.15fr; }
  .split-inner:has(.villa-cycle) { grid-template-columns: 1fr 1.8fr; }
  .split-image.villa-cycle { min-height: 600px; }
}

.split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.split-image .image-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  color: var(--paper);
  font-size: 0.78rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   VILLA DAY-TO-NIGHT CYCLE — JS-controlled crossfade
   CSS provides initial state + transition durations.
   main.js drives opacity and zoom via style updates.
   ============================================================ */
.villa-cycle {
  background: var(--ink-deep);
}

.villa-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.2);
  transform-origin: top center;
  will-change: opacity, transform;
  /* JS sets transition on each element individually */
}

/* Morning visible immediately — JS takes over after first hold */
.villa-morning { opacity: 1; }

/* Bottom vignette */
.villa-bottom-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 13, 24, 0.4) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Time-of-day labels */
.villa-time-bar {
  position: absolute;
  top: 1.75rem;
  right: 1.5rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
}

.villa-tod {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.28);
  transition: color 2s ease;
  position: relative;
  padding-right: 1rem;
}

.villa-tod--morning { color: rgba(243, 238, 228, 0.9); }

.villa-tod::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .villa-img { transition: none !important; transform: none !important; }
}

/* ============================================================
   PRINCIPLES — 3- or 2-column grid (Elyse "Our Beliefs" style)
   ============================================================ */
.beliefs {
  background: var(--paper-soft);
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.beliefs-head {
  max-width: var(--max);
  margin: 0 auto 4rem;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .beliefs-head { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
}

.beliefs-head h2 { max-width: 16ch; }
.beliefs-head p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 42ch;
  color: var(--ink-mid);
}

.beliefs-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 700px) {
  .beliefs-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 4rem; }
}

@media (min-width: 1100px) {
  .beliefs-grid { grid-template-columns: repeat(3, 1fr); }
}

.belief {
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.belief .num {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brass);
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}

.belief h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.belief p {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0;
}

/* ============================================================
   WORK — projects as elegant cards with image-style block
   ============================================================ */
.work {
  background: var(--paper);
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.work-head {
  max-width: var(--max);
  margin: 0 auto 4rem;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .work-head { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
}

.work-head h2 { max-width: 16ch; }

.work-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 700px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem 3rem; }
}

@media (min-width: 1100px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  group: card;
}

.work-card .work-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  overflow: hidden;
  margin-bottom: 1.75rem;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-visual { transform: translateY(-4px); }

/* Atmospheric SVG-style background per card variant */
.work-visual.v1 {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(201, 166, 97, 0.20) 0%, transparent 55%),
    linear-gradient(180deg, #1f1d1a 0%, #2c2a26 100%);
}
.work-visual.v2 {
  background:
    radial-gradient(ellipse at 70% 70%, rgba(201, 166, 97, 0.22) 0%, transparent 60%),
    linear-gradient(160deg, #1f1d1a 0%, #353230 100%);
}
.work-visual.v3 {
  background:
    radial-gradient(circle at 50% 100%, rgba(201, 166, 97, 0.18) 0%, transparent 65%),
    linear-gradient(200deg, #1f1d1a 0%, #2a2722 100%);
}
.work-visual.v4 {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(201, 166, 97, 0.20) 0%, transparent 55%),
    linear-gradient(135deg, #14130f 0%, #1f1d1a 100%);
}
.work-visual.v5 {
  background:
    radial-gradient(circle at 70% 30%, rgba(201, 166, 97, 0.25) 0%, transparent 60%),
    linear-gradient(220deg, #1f1d1a 0%, #14130f 100%);
}
.work-visual.v6 {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201, 166, 97, 0.15) 0%, transparent 65%),
    linear-gradient(180deg, #14130f 0%, #1f1d1a 100%);
}

.work-visual .visual-code {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.78rem;
  color: var(--brass-light);
  letter-spacing: 0;
}

.work-visual .visual-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.78rem;
  color: var(--paper);
  opacity: 0.7;
}

.work-visual .visual-name {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  right: 1.75rem;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1;
}

.work-card .work-meta {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.work-card .work-meta .brass { color: var(--brass); }

.work-card h3 {
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
  transition: color 0.3s var(--ease);
}

.work-card:hover h3 { color: var(--brass); }

.work-card .location {
  font-size: 0.95rem;
  color: var(--ink-mid);
}

/* Honest affordance — these cards lead to an enquiry, not a project page */
.work-card .work-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.work-card .work-cta svg {
  width: 13px;
  height: 13px;
  transition: transform 0.35s var(--ease);
}
.work-card:hover .work-cta { color: var(--brass); }
.work-card:hover .work-cta svg { transform: translateX(4px); }

/* ============================================================
   ABOUT — architectural image band + milestone timeline
   ============================================================ */
.about-visual {
  background: var(--paper);
  padding: clamp(1rem, 2vw, 2rem) var(--gutter) clamp(3rem, 5vw, 5rem);
}
.about-visual .frame {
  max-width: var(--max);
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 90px -34px rgba(20, 19, 15, 0.5);
}
.about-visual img {
  width: 100%;
  height: clamp(320px, 46vw, 620px);
  object-fit: cover;
  display: block;
}
.about-visual .frame-caption {
  display: block;
  max-width: var(--max);
  margin: 1.5rem auto 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Project detail — enquiry block (reuses .form-card) */
.project-enquire {
  background: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--rule);
}
.project-enquire-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.project-enquire .enquire-head { margin-bottom: 2.5rem; }
.project-enquire .enquire-head .paren { margin-bottom: 1.25rem; }
.project-enquire .enquire-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  max-width: 20ch;
}
.project-enquire .enquire-head p {
  color: var(--ink-mid);
  max-width: 48ch;
}
/* Back-to-projects link above the project header */
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.project-back svg { width: 13px; height: 13px; transform: rotate(180deg); }
.project-back:hover { color: var(--brass); gap: 0.8rem; }

.timeline {
  background: var(--paper);
  padding: clamp(5rem, 8vw, 8rem) 0;
  border-top: 1px solid var(--rule);
}
.timeline-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.timeline-head { margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.timeline-head h2 { margin-top: 1.5rem; max-width: 18ch; }
.timeline-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
}
@media (min-width: 800px) {
  .timeline-track { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
.milestone {
  padding-top: 1.85rem;
  border-top: 1px solid var(--rule-strong);
  position: relative;
}
.milestone::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
}
.milestone .m-year {
  display: block;
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.milestone .m-place {
  display: block;
  margin: 0.7rem 0 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.milestone p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 30ch;
  margin: 0;
}

/* ============================================================
   SECTION RULE — navy break with animated gold lines
   ============================================================ */
.section-rule {
  background: #0B1C39;
  padding: 3.5rem var(--gutter);
}
.section-rule-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.section-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--brass-light), var(--brass));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 1.3s var(--ease);
}
.section-rule-line:last-child {
  background: linear-gradient(90deg, var(--brass), var(--brass-light));
  transform-origin: left center;
}
.section-rule.visible .section-rule-line {
  transform: scaleX(1);
}
.section-rule-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass-light);
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s ease 0.55s,
              transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s;
}
.section-rule.visible .section-rule-dot {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   FAQ-style ACCORDION (Elyse pattern)
   ============================================================ */
.faqs {
  background: var(--paper);
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.faqs-head {
  max-width: var(--max);
  margin: 0 auto 4rem;
  padding: 0 var(--gutter);
}

.faqs-head h2 { max-width: 14ch; margin-top: 1.5rem; }

.faqs-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.faq {
  border-top: 1px solid var(--rule-strong);
  padding: 2rem 0;
}
.faq:last-child { border-bottom: 1px solid var(--rule-strong); }

.faq summary {
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary .num {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--brass);
  flex-shrink: 0;
  padding-top: 0.4em;
  min-width: 32px;
}

.faq summary .q { flex: 1; }

.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink-soft);
  transition: transform 0.4s var(--ease);
  align-self: center;
}

.faq[open] summary::after { transform: rotate(45deg); color: var(--brass); }

.faq .faq-body {
  padding: 1.25rem 0 0 calc(32px + 1.5rem);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 56ch;
}

/* ============================================================
   CLOSING — dark cream / charcoal surface
   ============================================================ */
.closing {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(5rem, 8vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(167, 133, 68, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(167, 133, 68, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.closing-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 900px) {
  .closing-inner { grid-template-columns: 1.3fr 1fr; gap: 6rem; align-items: end; }
}

.closing .paren { margin-bottom: 2.5rem; }
.closing h2 {
  color: var(--paper);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-bottom: 3rem;
}
.closing h2 em { color: var(--brass-light); font-style: italic; }

.closing-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.closing-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.closing-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule-dark);
}
.closing-block:last-child { border-bottom: 1px solid var(--rule-dark); }

.closing-block .label {
  font-size: 0.78rem;
  color: var(--brass-light);
  display: block;
  margin-bottom: 0.4rem;
}

.closing-block .v {
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--paper);
  display: block;
}

.closing-block .v a { color: var(--paper); }
.closing-block .v a:hover { color: var(--brass-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--paper);
  color: var(--ink-mid);
  padding: 4rem var(--gutter) 2rem;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  /* Mobile: brand full-width, link columns sit two-up so the footer
     stays compact instead of stacking four tall blocks of empty space */
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 1.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
.footer-top .footer-brand { grid-column: 1 / -1; }

@media (min-width: 700px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
  .footer-top .footer-brand { grid-column: auto; }
}

.footer-brand-logo {
  height: 76px;
  width: auto;
  display: block;
  filter: brightness(0);
  margin-bottom: 1.25rem;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.25rem;
  display: block;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 30ch;
  color: var(--ink-mid);
}

.footer-col h4 {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  font-size: 0.92rem;
  color: var(--ink-mid);
}
.footer-col a:hover { color: var(--brass); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.footer-bottom .brass { color: var(--brass); }

/* ============================================================
   PAGE HEADER — interior pages
   ============================================================ */
.page-head {
  background: var(--paper);
  padding: 11rem var(--gutter) 5rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.page-head-inner { max-width: var(--max); margin: 0 auto; }

.page-head .paren { margin-bottom: 2rem; }

.page-head h1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 300;
  max-width: 17ch;
  margin-bottom: 1.75rem;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.page-head h1 em { font-style: italic; color: var(--brass); }

.page-head .lede {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 52ch;
  font-weight: 400;
}

.page-head-meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--ink-mid);
}
.page-head-meta .brass { color: var(--brass); }
.page-head-meta strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   ABOUT — story page
   ============================================================ */
.story { background: var(--paper); padding: clamp(5rem, 9vw, 8rem) 0; }

.story-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 900px) {
  .story-inner { grid-template-columns: 260px 1fr; gap: 4rem; align-items: start; }
  /* Sticky only when the aside has its own column — on mobile it would pin and
     the prose would scroll underneath it (overlap) */
  .story-aside { position: sticky; top: 8rem; }
}

.story-aside {
  position: static;
}

.story-aside .group { margin-bottom: 2.25rem; }
.story-aside .group .label {
  font-size: 0.78rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.4rem;
}
.story-aside .group .v {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}

.story-prose p {
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.story-prose .opening {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
  max-width: 26ch;
}
.story-prose .opening em { font-style: italic; color: var(--brass); }

.story-prose h3 {
  font-size: 1.65rem;
  margin: 3.5rem 0 1.25rem;
  color: var(--ink);
  font-weight: 400;
}

/* ============================================================
   PROJECTS — listing filters
   ============================================================ */
.listing-filters {
  background: var(--paper);
  padding: 3rem var(--gutter) 0;
}
.listing-filters-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-btn);
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--paper); padding: clamp(5rem, 9vw, 8rem) 0; }

.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 900px) {
  .contact-inner { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
}

.contact-aside .paren { margin-bottom: 1.5rem; }
.contact-aside h2 { max-width: 14ch; margin-bottom: 3rem; }

.contact-row {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}
.contact-row:last-child { border-bottom: 1px solid var(--rule); }

.contact-row .label {
  font-size: 0.82rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.55rem;
}

.contact-row .v {
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
}
.contact-row .v strong { color: var(--brass); font-weight: 500; }
.contact-row .v a:hover { color: var(--brass); }

/* Form */
.form-card {
  background: var(--paper-soft);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 3.5vw, 3rem);
  border: 1px solid var(--rule);
}

.form-card .form-head {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.form-card .form-head .paren { margin-bottom: 1rem; display: block; }

.form-card h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  max-width: 18ch;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 1.5rem; }

.form-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-mid);
  margin-bottom: 0.6rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  transition: border-color 0.3s var(--ease);
}

.form-field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.btn-submit {
  width: 100%;
  padding: 1.1rem 2rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-submit:hover { background: var(--brass-deep); }
.btn-submit:disabled { opacity: 0.6; cursor: wait; }

.form-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================================
   ANIMATIONS — the site feels alive
   ============================================================ */

/* Page load: body fades in once fonts are ready */
body {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.33, 0, 0.2, 1);
}
body.loaded { opacity: 1; }

/* Generic reveal — opacity + Y */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.reveal.visible { opacity: 1; transform: translate3d(0, 0, 0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

/* Word-by-word headline reveal */
/* overflow visible so descenders (g, y, p) on the bottom line are never clipped;
   each .word masks its own reveal, so the parent clip is unnecessary */
.split-words { overflow: visible; }
.split-words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.22em;
  padding-bottom: 0.4em;
  margin-bottom: -0.4em;
}
.split-words .word:last-child { margin-right: 0; }
.split-words .word-inner {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 0.82s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  backface-visibility: hidden;
}
.split-words.is-revealed .word-inner { transform: translate3d(0, 0, 0); }

/* Per-word stagger — tighter cadence so even long headlines settle quickly */
.split-words.is-revealed .word:nth-child(1)  .word-inner { transition-delay: 0.03s; }
.split-words.is-revealed .word:nth-child(2)  .word-inner { transition-delay: 0.075s; }
.split-words.is-revealed .word:nth-child(3)  .word-inner { transition-delay: 0.12s; }
.split-words.is-revealed .word:nth-child(4)  .word-inner { transition-delay: 0.165s; }
.split-words.is-revealed .word:nth-child(5)  .word-inner { transition-delay: 0.21s; }
.split-words.is-revealed .word:nth-child(6)  .word-inner { transition-delay: 0.255s; }
.split-words.is-revealed .word:nth-child(7)  .word-inner { transition-delay: 0.30s; }
.split-words.is-revealed .word:nth-child(8)  .word-inner { transition-delay: 0.345s; }
.split-words.is-revealed .word:nth-child(9)  .word-inner { transition-delay: 0.39s; }
.split-words.is-revealed .word:nth-child(10) .word-inner { transition-delay: 0.435s; }
.split-words.is-revealed .word:nth-child(11) .word-inner { transition-delay: 0.48s; }
.split-words.is-revealed .word:nth-child(12) .word-inner { transition-delay: 0.525s; }
.split-words.is-revealed .word:nth-child(13) .word-inner { transition-delay: 0.57s; }
.split-words.is-revealed .word:nth-child(14) .word-inner { transition-delay: 0.615s; }

/* Image clip-reveal — wipes in from bottom */
.visual-reveal,
.hero-image,
.split-image {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s var(--ease);
}
.visual-reveal.is-revealed,
.hero-image.is-revealed,
.split-image.is-revealed {
  clip-path: inset(0 0 0 0);
}

/* The villa cycle animates itself via opacity crossfade — never clip it,
   or an unrevealed block leaves a tall empty gap (esp. on mobile). */
.split-image.villa-cycle {
  clip-path: none;
  transition: none;
}

/* Work-card thumbnails: parent .work-card already handles reveal via opacity.
   Remove clip-path so images are never permanently hidden. */
.work-card .work-visual.visual-reveal {
  clip-path: none;
  transition: none;
}

/* Inner image: subtle scale-down as the clip reveals (Ken-Burns-ish entrance) */
.hero-image img,
.work-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 1.8s var(--ease);
}
.hero-image.is-revealed img,
.work-visual.is-revealed img {
  transform: scale(1);
}

/* Darken real-photo cards so overlay text stays legible */
.work-visual:has(img)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,0.25) 0%, rgba(10,12,16,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.work-visual .visual-code,
.work-visual .visual-num,
.work-visual .visual-name {
  z-index: 2;
}
/* Villa cycle images handle their own transform via animation — no entrance override */
.split-image:not(.villa-cycle) img {
  transform: scale(1.08);
  transition: transform 1.8s var(--ease);
}
.split-image:not(.villa-cycle).is-revealed img {
  transform: scale(1);
}

/* Card hover: image inside scales subtly */
.work-card .work-visual { transition: transform 0.6s var(--ease); }
.work-card:hover .work-visual { transform: translateY(-6px); }

.work-card .visual-name {
  transition: transform 0.5s var(--ease), color 0.5s var(--ease);
}
.work-card:hover .visual-name {
  transform: translateY(-3px);
  color: var(--brass-light);
}

/* Number count-up — invisible until JS counts */
.count-up { display: inline-block; }
.count-up.is-counting { color: inherit; }

/* Nav-link hover micro: underline grows from left */
.nav-links a {
  background-image: linear-gradient(var(--brass), var(--brass));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.45s var(--ease), color 0.35s var(--ease);
}
.nav-links a:hover { background-size: 100% 1px; }
.nav-links a.active { background-size: 0 1px; font-weight: 500; }
.nav-links a.active::after { display: none; }
.nav-links a.active::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--brass);
  border-radius: 50%;
  margin-right: 0.5em;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
/* White underline over dark hero */
.nav.nav--hero .nav-links a {
  background-image: linear-gradient(rgba(243,238,228,0.6), rgba(243,238,228,0.6));
}
.nav.nav--hero.scrolled .nav-links a {
  background-image: linear-gradient(var(--brass), var(--brass));
}
.nav.nav--hero .nav-links a.active::before { background: rgba(243,238,228,0.8); }
.nav.nav--hero.scrolled .nav-links a.active::before { background: var(--brass); }

/* CTA button: brass underline runs across on hover */
.link-cta {
  background-image: linear-gradient(var(--brass), var(--brass));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  border-bottom: none;
  padding-bottom: 4px;
  transition: gap 0.4s var(--ease), color 0.3s var(--ease), background-size 0.5s var(--ease);
}
.link-cta:hover { background-size: 100% 1px; }

/* Scroll indicator on hero — pulsing line */
.hero-scroll-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: fadeInLate 0.8s 1.4s var(--ease) forwards;
}
.hero-scroll-indicator::after {
  content: '';
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--ink-soft), transparent);
  animation: scrollPulse 2.4s 1.6s ease-in-out infinite;
}
@keyframes fadeInLate {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 0.7; transform: translateX(-50%) translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* Marquee — slow ambient text strip between sections */
.marquee {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 1.75rem 0;
}
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 4rem;
}
.marquee-item::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--brass);
  border-radius: 50%;
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* FAQ smoother accordion */
.faq[open] summary { color: var(--brass); }
.faq[open] summary .q { color: var(--brass); }
.faq summary { transition: color 0.3s var(--ease); }
.faq .faq-body {
  animation: faqOpen 0.45s var(--ease);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes faqClose {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

/* Smooth scroll for the whole page */
html { scroll-behavior: smooth; }

/* Hover state on form CTA */
.btn-submit .arrow { transition: transform 0.3s var(--ease); }
.btn-submit:hover .arrow { transform: translateX(4px); }

/* Disable heavy motion if user requests it */
@media (prefers-reduced-motion: reduce) {
  body { opacity: 1 !important; }
  .reveal, .split-words .word-inner, .visual-reveal,
  .hero-image, .split-image, .work-visual img {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .marquee-track { animation: none; }
  .hero-scroll-indicator { display: none; }
}

/* ============================================================
   RESPONSIVE — mobile nav
   ============================================================ */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }

  /* ---- Mobile menu: the WHOLE nav becomes the full-screen overlay ----
     No fixed-child escaping a containing block (that broke on iOS Safari
     because the nav's backdrop-filter re-creates a containing block).
     The nav itself goes fixed + inset:0 + opaque, and the links lay out
     inside it as a normal flow column — bulletproof across browsers. */
  .nav.menu-open,
  .nav.nav--hero.menu-open,
  .nav.nav--hero.scrolled.menu-open {
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    transition: none;            /* instant — never animate the containing-block away */
    padding: 1.4rem var(--gutter);
    overflow-y: auto;
    z-index: 200;
    animation: menuFade 0.3s var(--ease);
  }
  @keyframes menuFade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .nav.menu-open .nav-inner {
    position: static;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Links fill the space below the logo and centre vertically */
  .nav.menu-open .nav-links {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: static;
    transform: none;
    width: 100%;
    gap: 1.75rem;
    margin: 0;
  }
  .nav.menu-open .nav-links a {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    font-weight: 300;
    color: var(--ink);
    letter-spacing: -0.02em;
  }
  .nav.menu-open .nav-links a.active { color: var(--brass); }
  /* Force the active dot to brass even on the hero nav (home), where it's
     otherwise cream and invisible against the cream menu */
  .nav.menu-open .nav-links a.active::before { background: var(--brass); }
  .nav.menu-open .nav-links a::after { display: none; }

  /* CTA stays hidden (the menu already lists Contact) */
  .nav.menu-open .nav-cta { display: none; }

  /* Close (×) pinned top-right; logo stays top-left and legible */
  .nav.menu-open .nav-toggle {
    position: absolute;
    top: 1.4rem;
    right: var(--gutter);
    z-index: 3;
    color: var(--ink);
  }
  .nav.menu-open .nav-wordmark { position: relative; z-index: 3; }
  .nav.menu-open .nav-wordmark img { filter: brightness(0); }

  /* Lock background scroll while the menu is open */
  body.menu-locked { overflow: hidden; }
}

/* keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
