/* ==========================================================
   SR Developments — dark, cinematic, ultra-luxury
   ========================================================== */

:root {
  --black: #0a0a0b;
  --char: #111113;
  --char-2: #17171a;
  --line: rgba(255, 255, 255, 0.08);
  --ivory: #f2ede4;
  --ivory-dim: rgba(242, 237, 228, 0.62);
  --ivory-faint: rgba(242, 237, 228, 0.38);
  --gold: #c9a26a;
  --gold-bright: #e0be8a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* dark-theme details: selection + scrollbar */
::selection { background: rgba(201, 162, 106, 0.4); color: var(--ivory); }
html { scrollbar-color: #2e2a22 var(--black); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #2e2a22; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #4a4132; }

/* Film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px min(6vw, 80px);
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(14px);
  padding: 16px min(6vw, 80px);
  border-bottom-color: var(--line);
}
.nav-logo, .footer-logo {
  font-family: var(--sans); font-weight: 500; letter-spacing: 0.32em;
  font-size: 14px; color: var(--ivory); text-decoration: none;
}
.nav-logo span, .footer-logo span { color: var(--gold); }
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo-img { height: 46px; width: 46px; display: block; transition: height 0.4s, width 0.4s; }
.nav.scrolled .nav-logo-img { height: 38px; width: 38px; }
.footer-logo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-logo-img { height: 96px; width: 96px; display: block; }
.nav-links { display: flex; gap: 40px; }
.nav-links a {
  position: relative; color: var(--ivory-dim); text-decoration: none; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-bright); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav-burger span { position: absolute; left: 0; right: 0; height: 1px; background: var(--ivory); transition: transform 0.3s, top 0.3s; }
.nav-burger span:first-child { top: 5px; }
.nav-burger span:last-child { top: 15px; }
.nav-burger.open span:first-child { top: 10px; transform: rotate(45deg); }
.nav-burger.open span:last-child { top: 10px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(10, 10, 11, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  color: var(--ivory); text-decoration: none; font-family: var(--serif);
  font-size: 30px; font-weight: 400; letter-spacing: 0.04em;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; position: relative; display: flex; align-items: center;
  padding: 0 min(8vw, 120px); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(201, 162, 106, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 60% at 20% 85%, rgba(201, 162, 106, 0.06), transparent 60%),
    linear-gradient(165deg, #101012 0%, var(--black) 55%, #0c0b09 100%);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(min(1.5vw, 18px), -12px, 0) scale(1.04); }
}
/* ============================================================
   Blueprint film behind the hero — 60s looping lifecycle.
   Every stage group (.st) runs one 60s animation; stroke-dasharray
   and stroke-dashoffset inherit in SVG, so a single animation on
   the group both fades AND line-draws its children (pathLength=1).
   ============================================================ */
.hero-draw {
  position: absolute; right: -6%; bottom: 0; z-index: 1;
  width: min(78vw, 1060px); pointer-events: none;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000 32%);
}
.hero-draw svg { display: block; width: 100%; height: auto; animation: bp-scene 30s linear infinite; }
.hero-draw line, .hero-draw path, .hero-draw rect, .hero-draw circle {
  stroke: rgba(224, 190, 138, 0.5); stroke-width: 1.4; fill: none;
  vector-effect: non-scaling-stroke;
}
.hero-draw .thin, .hero-draw .thin line, .hero-draw .thin path,
.hero-draw .thin rect, .hero-draw .thin circle { stroke: rgba(224, 190, 138, 0.28); stroke-width: 1; }
.hero-draw .dashed line { stroke: rgba(242, 237, 228, 0.14); stroke-width: 1; stroke-dasharray: 6 8 !important; }
.bp-label {
  fill: rgba(224, 190, 138, 0.55); stroke: none;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em;
}
.bp-label.lg { font-size: 14px; letter-spacing: 0.22em; }
.hero-draw .wallfill { stroke: none; fill: rgba(242, 237, 228, 0.05); }
.hero-draw .st-elec path { stroke: rgba(224, 190, 138, 0.75); }

/* finished-home fills */
.hero-draw .f-glow { stroke: none; fill: url(#hglow); }
.hero-draw .f-glass { stroke: none; fill: rgba(224, 190, 138, 0.09); }
.hero-draw .f-lit { stroke: none; fill: rgba(232, 200, 150, 0.24); }
.hero-draw .f-water { stroke: none; fill: rgba(165, 195, 220, 0.20); }
.hero-draw .f-leaf { stroke: none; fill: rgba(224, 190, 138, 0.08); }
.hero-draw .f-dot { stroke: none; fill: rgba(224, 190, 138, 0.65); }

/* timeline plumbing */
.hero-draw .st { animation-duration: 30s; animation-timing-function: linear; animation-iteration-count: infinite; opacity: 0; }
.hero-draw .dl { stroke-dasharray: 1; }
.hero-draw .tb { transform-box: fill-box; transform-origin: 50% 100%; }

/* whole scene fades to black at the end of the loop, then restarts.
   30s loop: construction 0–18s (0–60%), luxury finishes 18–23s (60–76.7%),
   finished house lit by 24s (80%), held to 29s (96.7%). */
@keyframes bp-scene { 0% { opacity: 0; } 0.7% { opacity: 1; } 96.7% { opacity: 1; } 98.7%, 100% { opacity: 0; } }

/* persistent grid + ground */
.hero-draw .st-base { animation-name: k-base; }
@keyframes k-base { 0% { opacity: 0; stroke-dashoffset: 1; } 0.5% { opacity: 1; } 2% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }

/* ACT 1–2: old house draws, then collapses; excavator, dust, rubble */
.hero-draw .st-old { animation-name: k-old; }
@keyframes k-old {
  0% { opacity: 0; stroke-dashoffset: 1; transform: none; }
  1% { opacity: 1; }
  4.7% { stroke-dashoffset: 0; }
  8% { transform: none; opacity: 1; }
  10.3%, 100% { transform: translateY(32px) rotate(3deg) scaleY(0.75); opacity: 0; stroke-dashoffset: 0; }
}
.hero-draw .st-exc { animation-name: k-exc; }
@keyframes k-exc { 0%, 5.7% { opacity: 0; } 6.3%, 13% { opacity: 1; } 13.7%, 100% { opacity: 0; } }
.hero-draw .st-dust { animation-name: k-dust; }
@keyframes k-dust { 0%, 7.7% { opacity: 0; } 9% { opacity: 0.55; } 11.3%, 100% { opacity: 0; } }
.hero-draw .st-rubble { animation-name: k-rubble; }
@keyframes k-rubble { 0%, 8.3% { opacity: 0; } 9%, 13.7% { opacity: 1; } 15%, 100% { opacity: 0; } }

/* ACT 3: excavation + slab */
.hero-draw .st-trench { animation-name: k-trench; }
@keyframes k-trench { 0%, 15.3% { opacity: 0; stroke-dashoffset: 1; } 15.7% { opacity: 1; } 17.3% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }
.hero-draw .st-slab { animation-name: k-slab; }
@keyframes k-slab { 0%, 17.7% { opacity: 0; stroke-dashoffset: 1; } 18% { opacity: 1; } 20% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }

/* basement car gallery: excavated after the slab, car lowered in finishes */
.hero-draw .st-bsmt { animation-name: k-bsmt; }
@keyframes k-bsmt { 0%, 18.3% { opacity: 0; stroke-dashoffset: 1; } 18.7% { opacity: 1; } 20.7% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }
.hero-draw .st-car { animation-name: k-car; }
@keyframes k-car {
  0%, 64% { opacity: 0; transform: translateY(-84px); }
  65% { opacity: 1; transform: translateY(-84px); }
  70%, 100% { opacity: 1; transform: translateY(0); }
}

/* glass lift: shaft with structure, cab rises in finishes */
.hero-draw .st-lift { animation-name: k-lift; }
@keyframes k-lift { 0%, 31% { opacity: 0; stroke-dashoffset: 1; } 31.3% { opacity: 1; } 33.7% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }
.hero-draw .st-cab { animation-name: k-cab; }
@keyframes k-cab {
  0%, 62% { opacity: 0; transform: translateY(0); }
  63% { opacity: 1; transform: translateY(0); }
  72%, 100% { opacity: 1; transform: translateY(-260px); }
}

/* the crane: arrives for the pool, leaves after steel */
.hero-draw .st-crane { animation-name: k-crane; }
@keyframes k-crane { 0%, 20% { opacity: 0; stroke-dashoffset: 1; } 20.3% { opacity: 1; } 22% { stroke-dashoffset: 0; } 36.7% { opacity: 1; stroke-dashoffset: 0; } 38%, 100% { opacity: 0; stroke-dashoffset: 0; } }

/* ACT 4: pool descends on the hook and stays */
.hero-draw .st-pool { animation-name: k-pool; }
@keyframes k-pool {
  0%, 22.3% { opacity: 0; transform: translateY(-330px); }
  23% { opacity: 1; }
  25.7%, 100% { opacity: 1; transform: translateY(0); }
}
.hero-draw .pool-cable { animation: k-cable 30s linear infinite; }
@keyframes k-cable { 0%, 26% { opacity: 1; } 27%, 100% { opacity: 0; } }

/* ACT 5: a steel beam swings in; columns and slabs draw */
.hero-draw .st-beam { animation-name: k-beam; }
@keyframes k-beam {
  0%, 26.3% { opacity: 0; transform: translateY(-300px); }
  26.9% { opacity: 1; }
  28.7% { transform: translateY(0); }
  29.7% { opacity: 1; }
  30.7%, 100% { opacity: 0; transform: translateY(0); }
}
.hero-draw .st-steel { animation-name: k-steel; }
@keyframes k-steel { 0%, 28.7% { opacity: 0; stroke-dashoffset: 1; } 29% { opacity: 1; } 31.3% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }
.hero-draw .st-slabs { animation-name: k-slabs; }
@keyframes k-slabs { 0%, 30% { opacity: 0; stroke-dashoffset: 1; } 30.3% { opacity: 1; } 32.7% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }

/* ACT 6: timber */
.hero-draw .st-timber { animation-name: k-timber; }
@keyframes k-timber { 0%, 32.7% { opacity: 0; stroke-dashoffset: 1; } 33% { opacity: 1; } 35.3% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }

/* ACT 7: services */
.hero-draw .st-elec { animation-name: k-elec; }
@keyframes k-elec { 0%, 35.3% { opacity: 0; stroke-dashoffset: 1; } 35.7% { opacity: 1; } 38% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }
.hero-draw .st-plumb { animation-name: k-plumb; }
@keyframes k-plumb { 0%, 37% { opacity: 0; stroke-dashoffset: 1; } 37.3% { opacity: 1; } 39.7% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }

/* solar array + battery wall (with services) */
.hero-draw .st-solar { animation-name: k-solar; }
@keyframes k-solar { 0%, 38.3% { opacity: 0; stroke-dashoffset: 1; } 38.7% { opacity: 1; } 41% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }

/* ACT 8: glazing floor by floor */
.hero-draw .st-glaz1 { animation-name: k-glaz1; }
@keyframes k-glaz1 { 0%, 39.7% { opacity: 0; stroke-dashoffset: 1; } 40% { opacity: 1; } 41.3% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }
.hero-draw .st-glaz2 { animation-name: k-glaz2; }
@keyframes k-glaz2 { 0%, 41% { opacity: 0; stroke-dashoffset: 1; } 41.3% { opacity: 1; } 42.7% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }
.hero-draw .st-glaz3 { animation-name: k-glaz3; }
@keyframes k-glaz3 { 0%, 42.3% { opacity: 0; stroke-dashoffset: 1; } 42.7% { opacity: 1; } 44% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }

/* ACT 9: joinery — stair, bench, wardrobe */
.hero-draw .st-join { animation-name: k-join; }
@keyframes k-join { 0%, 44% { opacity: 0; stroke-dashoffset: 1; } 44.3% { opacity: 1; } 46.7% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }

/* ACT 10: walls & render */
.hero-draw .st-walls { animation-name: k-walls; }
@keyframes k-walls { 0%, 46.7% { opacity: 0; stroke-dashoffset: 1; } 47% { opacity: 1; } 49.3% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }
.hero-draw .st-fill { animation-name: k-fill; }
@keyframes k-fill { 0%, 47.3% { opacity: 0; } 50%, 100% { opacity: 1; } }

/* ACT 11: landscape — sprouts grow into trees, pool fills */
.hero-draw .st-sprout { animation-name: k-sprout; }
@keyframes k-sprout { 0%, 49.7% { opacity: 0; } 50.3%, 53% { opacity: 1; } 54%, 100% { opacity: 0; } }
.hero-draw .st-tree { animation-name: k-tree; }
@keyframes k-tree {
  0%, 52.7% { opacity: 0; transform: scale(0.12); }
  54% { opacity: 1; }
  58.7%, 100% { opacity: 1; transform: scale(1); }
}
.hero-draw .st-tree2 { animation-name: k-tree2; }
@keyframes k-tree2 {
  0%, 54% { opacity: 0; transform: scale(0.12); }
  55.3% { opacity: 1; }
  59.3%, 100% { opacity: 1; transform: scale(1); }
}
.hero-draw .st-shrub { animation-name: k-shrub; }
@keyframes k-shrub { 0%, 55.3% { opacity: 0; } 57.3%, 100% { opacity: 1; } }
.hero-draw .st-water { animation-name: k-water; }
@keyframes k-water { 0%, 57.3% { opacity: 0; stroke-dashoffset: 1; } 57.7% { opacity: 1; } 59.3% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }

/* ACT 12: ultra-luxury finishes & appliances (18–23s) */
.hero-draw .st-lux { animation-name: k-lux; }
@keyframes k-lux { 0%, 60% { opacity: 0; stroke-dashoffset: 1; } 60.7% { opacity: 1; } 74% { stroke-dashoffset: 0; } 100% { opacity: 1; stroke-dashoffset: 0; } }

/* ACT 13: complete — glass, lit rooms, water, foliage & garden lights.
   Fully lit by 80% (24s), held to 96.7% (29s) = the 5-second money shot. */
.hero-draw .st-final { animation-name: k-final; }
@keyframes k-final { 0%, 76.7% { opacity: 0; } 80%, 100% { opacity: 1; } }
.hero-draw .st-sky { animation-name: k-sky; }
@keyframes k-sky { 0%, 80% { opacity: 0; } 84%, 100% { opacity: 1; } }

/* caption strip */
.hero-draw .cap-0 { animation-name: k-cap0; }
.hero-draw .cap-1 { animation-name: k-cap1; }
.hero-draw .cap-2 { animation-name: k-cap2; }
.hero-draw .cap-3 { animation-name: k-cap3; }
.hero-draw .cap-4 { animation-name: k-cap4; }
.hero-draw .cap-5 { animation-name: k-cap5; }
.hero-draw .cap-6 { animation-name: k-cap6; }
.hero-draw .cap-7 { animation-name: k-cap7; }
.hero-draw .cap-8 { animation-name: k-cap8; }
.hero-draw .cap-9 { animation-name: k-cap9; }
.hero-draw .cap-10 { animation-name: k-cap10; }
.hero-draw .cap-11 { animation-name: k-cap11; }
@keyframes k-cap0 { 0%, 1% { opacity: 0; } 1.7%, 5.3% { opacity: 0.9; } 6%, 100% { opacity: 0; } }
@keyframes k-cap1 { 0%, 6.3% { opacity: 0; } 7%, 14.3% { opacity: 0.9; } 15%, 100% { opacity: 0; } }
@keyframes k-cap2 { 0%, 15.3% { opacity: 0; } 16%, 21.3% { opacity: 0.9; } 22%, 100% { opacity: 0; } }
@keyframes k-cap3 { 0%, 22.3% { opacity: 0; } 23%, 25.7% { opacity: 0.9; } 26.3%, 100% { opacity: 0; } }
@keyframes k-cap4 { 0%, 26.7% { opacity: 0; } 27.3%, 31.7% { opacity: 0.9; } 32.3%, 100% { opacity: 0; } }
@keyframes k-cap5 { 0%, 32.7% { opacity: 0; } 33.3%, 34.7% { opacity: 0.9; } 35.3%, 100% { opacity: 0; } }
@keyframes k-cap6 { 0%, 35.7% { opacity: 0; } 36.3%, 39% { opacity: 0.9; } 39.7%, 100% { opacity: 0; } }
@keyframes k-cap7 { 0%, 40% { opacity: 0; } 40.7%, 43.3% { opacity: 0.9; } 44%, 100% { opacity: 0; } }
@keyframes k-cap8 { 0%, 44.3% { opacity: 0; } 45%, 49.3% { opacity: 0.9; } 50%, 100% { opacity: 0; } }
@keyframes k-cap9 { 0%, 50.3% { opacity: 0; } 51%, 58.7% { opacity: 0.9; } 59.7%, 100% { opacity: 0; } }
@keyframes k-cap10 { 0%, 60.3% { opacity: 0; } 61%, 74.3% { opacity: 0.9; } 75.7%, 100% { opacity: 0; } }
@keyframes k-cap11 { 0%, 78% { opacity: 0; } 79.3%, 94.7% { opacity: 0.9; } 96%, 100% { opacity: 0; } }

.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 34px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(52px, 8.5vw, 118px); line-height: 1.04; letter-spacing: 0.005em;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero-sub {
  max-width: 720px; margin-top: 36px;
}
.hero-cta {
  display: inline-block; margin-top: 52px; padding: 17px 44px;
  border: 1px solid var(--gold); color: var(--gold-bright); text-decoration: none;
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  transition: background 0.35s, color 0.35s;
}
.hero-cta:hover { background: var(--gold); color: var(--black); }

.hero-scroll {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 64px; overflow: hidden;
}
.hero-scroll span {
  position: absolute; top: -64px; left: 0; width: 1px; height: 64px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrolldrop 2.4s ease-in-out infinite;
}
@keyframes scrolldrop { 60%, 100% { top: 64px; } }

/* ---------- Sections shared ---------- */
section, footer { scroll-margin-top: 70px; }
section { padding: clamp(100px, 12vw, 170px) min(8vw, 120px); }
:focus-visible { outline: 1px solid rgba(201, 162, 106, 0.7); outline-offset: 3px; }
.eyebrow {
  font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 4.6vw, 62px); line-height: 1.12; max-width: 760px;
}
.section-head h2.wide { max-width: 1100px; }
.section-head { margin-bottom: clamp(50px, 7vw, 96px); }
/* blueprint dimension-line flourish under each section heading */
.section-head::after {
  content: ''; display: block; width: 120px; height: 11px; margin-top: 30px;
  background:
    linear-gradient(rgba(201, 162, 106, 0.55), rgba(201, 162, 106, 0.55)) left center / 1px 11px no-repeat,
    linear-gradient(rgba(201, 162, 106, 0.55), rgba(201, 162, 106, 0.55)) right center / 1px 11px no-repeat,
    linear-gradient(rgba(201, 162, 106, 0.55), rgba(201, 162, 106, 0.55)) center / 100% 1px no-repeat;
}
.numbers .section-head::after { margin-left: auto; margin-right: auto; }

/* ---------- Philosophy ---------- */
.philosophy { border-top: 1px solid var(--line); background: var(--char); }
.philosophy-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.philosophy-text p { font-size: 16px; color: var(--ivory-dim); margin-bottom: 26px; max-width: 520px; }
/* shared lead style: large serif for every section's lead text */
.philosophy-text .philosophy-lead, .innovation-lead p, .hero-sub {
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.45;
  color: var(--ivory);
}
.philosophy-text .philosophy-lead { max-width: 560px; margin-bottom: 34px; }
.philosophy-marks { display: flex; flex-direction: column; gap: 44px; }
.mark { display: grid; grid-template-columns: 60px 1fr; gap: 0 18px; border-top: 1px solid var(--line); padding-top: 26px; }
.mark-num {
  font-family: var(--serif); font-size: 18px; color: var(--gold); grid-row: span 2;
  width: 44px; height: 44px; border: 1px solid rgba(201, 162, 106, 0.45);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.mark h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 6px; }
.mark p { color: var(--ivory-dim); font-size: 17px; max-width: 420px; }

/* ---------- Portfolio ---------- */
.portfolio { border-top: 1px solid var(--line); }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 5vw, 72px);
}
.project-visual {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 26px;
  border: 1px solid var(--line);
  transition: border-color 0.4s;
}
.project:hover .project-visual { border-color: rgba(201, 162, 106, 0.45); }
.project-visual::before {
  content: ''; position: absolute; inset: 0; transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.project:hover .project-visual::before { transform: scale(1.05); }
.pv-1::before { background: linear-gradient(140deg, #1d1a15 0%, #2b241a 45%, #14120e 100%),
  radial-gradient(circle at 70% 20%, rgba(224, 190, 138, 0.25), transparent 55%); background-blend-mode: screen; }
.pv-2::before { background: linear-gradient(160deg, #10151a 0%, #1c2530 50%, #0c0f13 100%),
  radial-gradient(circle at 25% 75%, rgba(150, 180, 210, 0.16), transparent 55%); background-blend-mode: screen; }
.pv-3::before { background: linear-gradient(150deg, #171410 0%, #33291a 55%, #120f0b 100%),
  radial-gradient(circle at 80% 70%, rgba(226, 178, 110, 0.2), transparent 50%); background-blend-mode: screen; }
.pv-4::before { background: linear-gradient(135deg, #121412 0%, #1e241d 50%, #0d0f0d 100%),
  radial-gradient(circle at 30% 25%, rgba(170, 200, 160, 0.13), transparent 55%); background-blend-mode: screen; }
.pv-5::before { background: linear-gradient(145deg, #16130f 0%, #292118 50%, #100d0a 100%),
  radial-gradient(circle at 65% 30%, rgba(224, 190, 138, 0.18), transparent 55%); background-blend-mode: screen; }
.pv-6::before { background: linear-gradient(155deg, #121510 0%, #202a1c 50%, #0c0e0b 100%),
  radial-gradient(circle at 75% 65%, rgba(180, 210, 160, 0.14), transparent 55%); background-blend-mode: screen; }
.pv-7::before { background: linear-gradient(150deg, #101318 0%, #1d2430 50%, #0b0d11 100%),
  radial-gradient(circle at 40% 20%, rgba(160, 190, 220, 0.15), transparent 55%); background-blend-mode: screen; }
.pv-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-svg path, .pv-svg rect, .pv-svg circle {
  stroke: rgba(224, 190, 138, 0.5); stroke-width: 1.3; fill: none;
  vector-effect: non-scaling-stroke; transition: stroke 0.4s;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
/* trace the drawing in as the card reveals */
.project.visible .pv-svg path, .project.visible .pv-svg rect, .project.visible .pv-svg circle {
  transition: stroke 0.4s, stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
  stroke-dashoffset: 0;
}
.pv-svg .thin { stroke: rgba(224, 190, 138, 0.28); stroke-width: 1; }
.project:hover .pv-svg path, .project:hover .pv-svg rect, .project:hover .pv-svg circle { stroke: rgba(224, 190, 138, 0.75); }
.project:hover .pv-svg .thin { stroke: rgba(224, 190, 138, 0.45); }
.project-index {
  position: relative; z-index: 1; font-family: var(--serif); font-style: italic;
  font-size: 44px; color: rgba(242, 237, 228, 0.35);
}
.project-meta { padding-top: 26px; }
.project-meta h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.project-loc {
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 8px 0 14px;
}
.project-desc { color: var(--ivory-dim); font-size: 17px; max-width: 500px; }
.project-status {
  display: inline-block; margin-top: 18px; padding: 6px 16px;
  border: 1px solid var(--line); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ivory-faint);
}
.portfolio-note {
  margin-top: clamp(56px, 7vw, 90px); text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 20px;
  color: var(--ivory-faint); max-width: 640px; margin-left: auto; margin-right: auto;
}

/* ---------- Innovation ---------- */
.innovation {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 45% 55% at 85% 10%, rgba(201, 162, 106, 0.08), transparent 60%),
    var(--char-2);
}
.innovation-lead { max-width: 820px; margin: 0 0 clamp(50px, 6vw, 84px); }
.innovation-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 70px);
}
.tech { border-top: 1px solid var(--line); padding-top: 28px; transition: border-top-color 0.4s; }
.tech:hover { border-top-color: rgba(201, 162, 106, 0.5); }
.tech-num { font-family: var(--serif); font-size: 20px; color: var(--gold); display: block; margin-bottom: 14px; transition: color 0.4s; }
.tech:hover .tech-num { color: var(--gold-bright); }
.tech h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 10px; }
.tech p { color: var(--ivory-dim); font-size: 17px; max-width: 480px; }
.innovation-note {
  margin-top: clamp(56px, 7vw, 90px); text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--gold-bright); max-width: 640px; margin-left: auto; margin-right: auto;
}

/* ---------- Numbers ---------- */
.numbers { border-top: 1px solid var(--line); background: var(--char); text-align: center; }
.numbers .section-head h2 { margin-left: auto; margin-right: auto; }
.numbers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 6vw, 80px);
  max-width: 1100px; margin: 0 auto;
}
.number-value {
  font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 6vw, 84px);
  color: var(--gold-bright); display: block; line-height: 1;
}
.number p { margin-top: 16px; color: var(--ivory-dim); font-size: 17px; max-width: 300px; margin-left: auto; margin-right: auto; }

/* ---------- Approach ---------- */
.approach { border-top: 1px solid var(--line); }
.approach-steps {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 70px);
  max-width: 1100px;
}
.step { display: flex; gap: 24px; border-top: 1px solid var(--line); padding-top: 30px; }
/* grid-marker circles, echoing the A/B/C markers in the hero blueprint */
.step-num {
  font-family: var(--serif); font-size: 19px; color: var(--gold); flex: 0 0 auto;
  width: 46px; height: 46px; border: 1px solid rgba(201, 162, 106, 0.45);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 8px; }
.step p { color: var(--ivory-dim); font-size: 17px; max-width: 430px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px min(8vw, 120px); }
.footer-mail {
  font-family: var(--serif); font-size: 20px; color: var(--gold-bright);
  text-decoration: none; transition: color 0.3s;
}
.footer-mail:hover { color: var(--ivory); }
.footer-inner { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
/* closing dimension-line flourish */
.footer-inner::before {
  content: ''; display: block; width: 120px; height: 11px; margin-bottom: 18px;
  background:
    linear-gradient(rgba(201, 162, 106, 0.55), rgba(201, 162, 106, 0.55)) left center / 1px 11px no-repeat,
    linear-gradient(rgba(201, 162, 106, 0.55), rgba(201, 162, 106, 0.55)) right center / 1px 11px no-repeat,
    linear-gradient(rgba(201, 162, 106, 0.55), rgba(201, 162, 106, 0.55)) center / 100% 1px no-repeat;
}
.footer-logo { text-decoration: none; }
.footer p { font-size: 14px; letter-spacing: 0.12em; color: var(--ivory-dim); }
.footer-copy { margin-top: 8px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
  /* freeze the film on its final frame: the finished residence */
  .hero-draw svg, .hero-draw .st, .hero-draw .pool-cable { animation: none; }
  .hero-draw .st { opacity: 1; }
  .hero-draw .dl { stroke-dasharray: none; stroke-dashoffset: 0; }
  .hero-draw .tb { transform: none; }
  .hero-draw .rm-hide, .hero-draw .pool-cable { display: none; }
  .hero-draw .st-pool { transform: none; }
  .pv-svg path, .pv-svg rect, .pv-svg circle { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-draw { width: 150vw; right: -46vw; opacity: 0.28; }
  .nav-burger { display: block; }
  .philosophy-grid, .portfolio-grid, .approach-steps, .innovation-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr; gap: 56px; }
  section { padding-left: 6vw; padding-right: 6vw; }
}
