/* ==========================================================
   Perpetual Builds — Modern Heirloom Homes
   Brand: charcoal / copper / sand · Montserrat + Jost
   ========================================================== */

:root {
  --charcoal: #1E1F21;
  --charcoal-deep: #161718;
  --ink: #33312F;
  --umber: #46423E;
  --copper: #BF784C;
  --copper-soft: #D08D63;
  --sand: #EAD9C8;
  --linen: #E4E0D8;
  --paper: #F5EFE6;
  --stone: #A29C93;
  --slate: #55534E;

  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-slow: cubic-bezier(.19, 1, .22, 1);
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1280px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; line-height: 1.12; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1.2em; }
::selection { background: var(--copper); color: var(--charcoal); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--copper); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 36px; height: 1px; background: var(--copper); }
.display { font-size: clamp(40px, 7vw, 96px); font-weight: 300; }
.h2 { font-size: clamp(32px, 4.4vw, 58px); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--linen); font-weight: 400; max-width: 640px; }
.muted { color: var(--stone); }
.copper { color: var(--copper); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 32px;
  border: 1.5px solid var(--copper);
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--sand); background: transparent;
  overflow: hidden; cursor: pointer; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--copper);
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-slow);
}
.btn:hover { color: var(--charcoal); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn.solid { background: var(--copper); color: var(--charcoal); }
.btn.solid::before { background: var(--sand); }
.link-arrow {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--copper);
  display: inline-flex; gap: 12px; align-items: center;
  border-bottom: 1px solid transparent; padding-bottom: 4px;
  transition: border-color .4s, gap .4s var(--ease);
}
.link-arrow:hover { border-color: var(--copper); gap: 18px; }

/* ---------- Preloader & page transitions ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--charcoal-deep);
  display: grid; place-items: center;
  transition: opacity .9s var(--ease), visibility .9s;
}
.preloader svg { width: 120px; height: auto; }
.preloader path {
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: draw 1.6s var(--ease) forwards;
}
.preloader .bar { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--copper); width: 0; animation: load 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes load { to { width: 100%; } }
body.loaded .preloader { opacity: 0; visibility: hidden; }
body.leaving .preloader { opacity: 1; visibility: visible; transition-duration: .5s; }
body.leaving .preloader path { animation: none; stroke-dashoffset: 0; }
body.leaving .preloader .bar { animation: none; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background .5s var(--ease), height .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(14,14,15,.55), transparent);
  transition: opacity .5s;
}
.site-header.scrolled { background: rgba(30,31,33,.96); height: 72px; border-color: var(--ink); backdrop-filter: blur(8px); }
.site-header.scrolled::before { opacity: 0; }
.brand img { height: 38px; width: auto; transition: height .5s var(--ease); }
.site-header.scrolled .brand img { height: 32px; }
.nav { display: flex; gap: 38px; align-items: center; }
.nav a {
  position: relative;
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--sand);
  padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--copper); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-slow);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav a.cta { color: var(--copper); }

.menu-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  position: relative; z-index: 210;
}
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--sand); transition: transform .5s var(--ease), opacity .3s, top .5s var(--ease); }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Full-screen overlay menu */
.overlay-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--charcoal-deep);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--header-h) var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 50px) 44px);
  transition: clip-path .9s var(--ease-slow);
  visibility: hidden;
}
body.menu-open .overlay-menu { clip-path: circle(150% at calc(100% - 50px) 44px); visibility: visible; }
.overlay-menu a {
  display: block; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(34px, 8vw, 64px); line-height: 1.25; color: var(--sand);
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.overlay-menu a:hover { color: var(--copper); }
.overlay-menu a small { font-size: 12px; letter-spacing: .28em; color: var(--copper); margin-right: 18px; vertical-align: middle; font-weight: 500; }
body.menu-open .overlay-menu a { opacity: 1; transform: none; }
body.menu-open .overlay-menu a:nth-child(1) { transition-delay: .25s; }
body.menu-open .overlay-menu a:nth-child(2) { transition-delay: .32s; }
body.menu-open .overlay-menu a:nth-child(3) { transition-delay: .39s; }
body.menu-open .overlay-menu a:nth-child(4) { transition-delay: .46s; }
body.menu-open .overlay-menu a:nth-child(5) { transition-delay: .53s; }
body.menu-open .overlay-menu a:nth-child(6) { transition-delay: .60s; }
.overlay-menu .menu-foot { margin-top: 48px; color: var(--stone); font-size: 14px; letter-spacing: .12em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; display: flex; align-items: flex-end;
  background: var(--charcoal-deep);
}
.hero.short { height: 78vh; height: 78svh; }
.hero-slides, .hero-bg { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.0);
  transition: opacity 1.8s ease-in-out;
}
.hero-slide.active { opacity: 1; animation: kenburns 9s linear forwards; }
.hero-slide:nth-child(even).active { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.0) translate(0,0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes kenburns-alt { from { transform: scale(1.14) translate(1.5%, 0); } to { transform: scale(1.0) translate(0, 0); } }
.hero-bg { background-size: cover; background-position: center; animation: kenburns 18s ease-out forwards; will-change: transform; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(22,23,24,.94) 0%, rgba(22,23,24,.5) 45%, rgba(22,23,24,.32) 70%, rgba(22,23,24,.6) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(64px, 12vh, 130px); }
.hero-content .display { max-width: 15ch; }
.hero-content .lede { margin-top: 26px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 40px; }
.hero-counter {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(64px, 12vh, 130px);
  font-family: var(--font-display); font-size: 12px; letter-spacing: .24em; color: var(--stone);
  display: flex; align-items: center; gap: 16px;
}
.hero-counter .num { color: var(--sand); }
.hero-counter .track { width: 80px; height: 1px; background: var(--umber); position: relative; overflow: hidden; }
.hero-counter .track i { position: absolute; inset: 0; background: var(--copper); transform-origin: left; transform: scaleX(0); }
.hero-counter .track i.run { animation: fillbar 6s linear forwards; }
@keyframes fillbar { to { transform: scaleX(1); } }
.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 1px; height: 56px; background: rgba(234,217,200,.25); overflow: hidden;
}
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--copper); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Hero intro animation (text rises after preloader) */
.rise { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
body.loaded .rise { opacity: 1; transform: none; }
body.loaded .rise.d1 { transition-delay: .35s; }
body.loaded .rise.d2 { transition-delay: .55s; }
body.loaded .rise.d3 { transition-delay: .75s; }
body.loaded .rise.d4 { transition-delay: .95s; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(88px, 13vw, 170px) 0; }
.section.tight { padding: clamp(64px, 8vw, 110px) 0; }
.section.light { background: var(--paper); color: var(--charcoal); }
.section.light .lede { color: var(--slate); }
.section.light .muted { color: var(--slate); }
.section.deep { background: var(--charcoal-deep); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(48px, 6vw, 80px); flex-wrap: wrap; }
.section-head .h2 { max-width: 18ch; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr .85fr; }

/* Image frame with hover zoom */
.frame { position: relative; overflow: hidden; background: var(--ink); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-slow); }
.frame:hover img { transform: scale(1.06); }
.frame.tall { aspect-ratio: 4 / 5; }
.frame.wide { aspect-ratio: 16 / 10; }
.frame-accent { position: relative; }
.frame-accent::before {
  content: ""; position: absolute; inset: 28px -28px -28px 28px;
  border: 1px solid var(--copper); z-index: 0; pointer-events: none;
}
.frame-accent .frame { z-index: 1; }

/* Two paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; }
.path {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  padding: clamp(40px, 6vw, 80px); min-height: 520px;
}
.path .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 2s var(--ease-slow); }
.path::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,23,24,.92), rgba(22,23,24,.25)); transition: background .8s; }
.path:hover .bg { transform: scale(1.07); }
.path:hover::after { background: linear-gradient(to top, rgba(22,23,24,.95), rgba(191,120,76,.18)); }
.path-inner { position: relative; z-index: 2; max-width: 460px; }
.path .num { font-family: var(--font-display); font-size: 12px; letter-spacing: .28em; color: var(--copper); }
.path h3 { font-size: clamp(30px, 3.4vw, 48px); margin: 16px 0 18px; }
.path p { color: var(--linen); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .8s var(--ease), opacity .8s; }
.path:hover p, .path:focus-within p { max-height: 200px; opacity: 1; }
.path .line { display: block; height: 1px; width: 60px; background: var(--copper); margin-top: 26px; transition: width .8s var(--ease-slow); }
.path:hover .line { width: 140px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stat { padding: 54px 28px; border-right: 1px solid var(--ink); text-align: center; }
.stat:last-child { border-right: 0; }
.stat .value { font-family: var(--font-display); font-weight: 300; font-size: clamp(42px, 5vw, 68px); color: var(--sand); line-height: 1; }
.stat .value sup { font-size: .4em; color: var(--copper); vertical-align: top; margin-left: 4px; }
.stat .label { margin-top: 16px; font-family: var(--font-display); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--stone); }
.section.light .stats, .section.light .stat { border-color: var(--linen); }
.section.light .stat .value { color: var(--charcoal); }

/* Parallax band */
.parallax {
  position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center;
  background-size: cover; background-position: center; background-attachment: fixed;
  padding: 120px var(--gutter);
}
.parallax::before { content: ""; position: absolute; inset: 0; background: rgba(22,23,24,.62); }
.parallax > * { position: relative; }
.parallax blockquote { margin: 0 auto; max-width: 900px; font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.3; }
.parallax cite { display: block; margin-top: 30px; font-style: normal; font-family: var(--font-display); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--copper); }
@media (hover: none), (max-width: 900px) { .parallax { background-attachment: scroll; } }

/* Project cards */
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px); }
.card { position: relative; display: block; overflow: hidden; background: var(--ink); grid-column: span 6; }
.card.lg { grid-column: span 7; }
.card.sm { grid-column: span 5; }
.card.full { grid-column: span 12; }
.card.third { grid-column: span 4; }
.card .img { aspect-ratio: 4 / 3; overflow: hidden; }
.card.lg .img, .card.full .img { aspect-ratio: 16 / 10; }
.card.full .img { aspect-ratio: 21 / 9; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease-slow), filter 1s; }
.card:hover .img img { transform: scale(1.07); filter: brightness(.7); }
.card .meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px;
  background: linear-gradient(to top, rgba(22,23,24,.9), transparent);
  transform: translateY(18px); transition: transform .8s var(--ease-slow);
}
.card:hover .meta { transform: none; }
.card .tag { font-family: var(--font-display); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--copper); }
.card h3 { font-size: clamp(22px, 2vw, 30px); margin: 8px 0 4px; font-weight: 400; }
.card .loc { color: var(--stone); font-size: 14px; letter-spacing: .06em; }
.card .more { display: inline-block; margin-top: 14px; font-family: var(--font-display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--sand); opacity: 0; transition: opacity .6s .1s; }
.card:hover .more { opacity: 1; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.filters button {
  background: none; border: 1px solid var(--umber); color: var(--stone);
  font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  padding: 12px 20px; cursor: pointer; transition: all .4s var(--ease);
}
.filters button:hover { color: var(--sand); border-color: var(--stone); }
.filters button.on { background: var(--copper); border-color: var(--copper); color: var(--charcoal); }
.card.hide { display: none; }
.card.fade-in { animation: cardin .8s var(--ease) both; }
@keyframes cardin { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Process timeline */
.process { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 120px 1fr 1.2fr; gap: clamp(20px, 4vw, 60px); padding: 44px 0; border-top: 1px solid var(--ink); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--ink); }
.step .n { font-family: var(--font-display); font-weight: 300; font-size: 54px; line-height: 1; color: var(--copper); }
.step h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; }
.step .when { display: block; margin-top: 10px; font-family: var(--font-display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }
.step p { color: var(--linen); margin: 0; }
.section.light .step { border-color: var(--linen); }
.section.light .step p { color: var(--slate); }

/* Horizontal timeline (investor) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; gap: 28px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: var(--umber); }
.tl-item { position: relative; padding-top: 52px; }
.tl-item::before { content: ""; position: absolute; top: 6px; left: 0; width: 15px; height: 15px; border: 1.5px solid var(--copper); background: var(--charcoal-deep); transform: rotate(45deg); transition: background .5s; }
.tl-item:hover::before { background: var(--copper); }
.tl-item .phase { font-family: var(--font-display); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--copper); }
.tl-item h3 { font-size: 24px; font-weight: 400; margin: 10px 0 14px; }
.tl-item p { color: var(--stone); font-size: 15.5px; }

/* Feature list / services */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.feature { background: var(--charcoal); padding: clamp(32px, 4vw, 54px); transition: background .6s var(--ease); position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-slow); }
.feature:hover { background: #242528; }
.feature:hover::after { transform: scaleX(1); }
.feature .icon { width: 44px; height: 44px; color: var(--copper); margin-bottom: 28px; }
.feature h3 { font-size: 22px; font-weight: 400; margin-bottom: 14px; }
.feature p { color: var(--stone); font-size: 15.5px; margin: 0; }
.section.deep .feature { background: var(--charcoal-deep); }
.section.deep .feature:hover { background: #1c1d1f; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .6em; width: 18px; height: 1px; background: var(--copper); }

/* FAQ accordion */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 30px 50px 30px 0; position: relative;
  font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; color: var(--copper); transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 30px; color: var(--stone); max-width: 760px; }

/* Gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery a { overflow: hidden; display: block; grid-column: span 2; aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery a.w3 { grid-column: span 3; aspect-ratio: 3 / 2; }
.gallery a.w4 { grid-column: span 4; aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-slow); }
.gallery a:hover img { transform: scale(1.08); }
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(14,14,15,.96);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 84vh; transform: scale(.94); transition: transform .8s var(--ease-slow), opacity .4s; }
.lightbox.open img { transform: none; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--sand); font-size: 30px; cursor: pointer; padding: 16px; font-family: var(--font-display); font-weight: 300; transition: color .3s; }
.lightbox button:hover { color: var(--copper); }
.lightbox .lb-close { top: 18px; right: 22px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-size: 12px; letter-spacing: .24em; color: var(--stone); }

/* Spec sheet */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.spec { padding: 28px 0; border-bottom: 1px solid var(--ink); }
.spec dt { font-family: var(--font-display); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.spec dd { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 300; }

/* Next project */
.next-project { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 70vh; overflow: hidden; }
.next-project .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 2.4s var(--ease-slow); }
.next-project::after { content: ""; position: absolute; inset: 0; background: rgba(22,23,24,.66); transition: background .8s; }
.next-project:hover .bg { transform: scale(1.06); }
.next-project:hover::after { background: rgba(22,23,24,.5); }
.next-project .inner { position: relative; z-index: 2; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--umber);
  color: var(--sand); font-family: var(--font-body); font-size: 17px; padding: 10px 0 12px;
  border-radius: 0; transition: border-color .4s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--copper) 50%), linear-gradient(135deg, var(--copper) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 6px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--charcoal); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); }
.form-note { font-size: 14px; color: var(--stone); margin-top: 18px; }
.form-thanks { display: none; padding: 32px; border: 1px solid var(--copper); }
form.sent .form-grid, form.sent .form-actions { display: none; }
form.sent .form-thanks { display: block; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--ink); margin-bottom: 52px; }
.tabs button {
  flex: 1; background: none; border: 0; padding: 22px 10px; cursor: pointer; position: relative;
  font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--stone);
  transition: color .4s;
}
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--copper); transform: scaleX(0); transition: transform .6s var(--ease-slow); }
.tabs button.on { color: var(--sand); }
.tabs button.on::after { transform: scaleX(1); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: cardin .7s var(--ease) both; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .h2 { margin: 0 auto 28px; max-width: 20ch; }
.cta-band .lede { margin: 0 auto 44px; }

/* Team / about */
.portrait { aspect-ratio: 4 / 5; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 60px); }
.value h3 { font-size: 24px; font-weight: 400; margin: 18px 0 12px; }
.value .n { font-family: var(--font-display); color: var(--copper); font-size: 12px; letter-spacing: .28em; }
.value p { color: var(--stone); }
.creds { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.creds span { border: 1px solid var(--umber); padding: 10px 18px; font-family: var(--font-display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-deep); padding: 100px 0 40px; border-top: 1px solid var(--ink); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 70px; border-bottom: 1px solid var(--ink); }
.footer-top img { height: 70px; width: auto; margin-bottom: 26px; }
.footer-top h4 { font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--copper); margin-bottom: 22px; }
.footer-top a, .footer-top p { display: block; color: var(--stone); font-size: 15px; margin: 0 0 10px; transition: color .3s; }
.footer-top a:hover { color: var(--sand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 30px; font-size: 13px; color: var(--slate); letter-spacing: .06em; flex-wrap: wrap; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px;
  border: 1px solid var(--copper); background: rgba(22,23,24,.8); color: var(--copper);
  display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(20px);
  transition: opacity .5s, transform .5s var(--ease), background .3s, color .3s;
}
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--copper); color: var(--charcoal); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.left { transform: translateX(-60px); }
.reveal.right { transform: translateX(60px); }
.reveal.zoom { transform: scale(.94); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; } .reveal.d4 { transition-delay: .48s; }
.img-reveal { position: relative; overflow: hidden; }
.img-reveal::after { content: ""; position: absolute; inset: 0; background: var(--copper); transform-origin: right; transition: transform 1.3s var(--ease-slow); z-index: 2; }
.img-reveal.in::after { transform: scaleX(0); }
.img-reveal img { transform: scale(1.25); transition: transform 2s var(--ease-slow); }
.img-reveal.in img { transform: scale(1); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .timeline::before { display: none; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .split, .split.wide-left { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; min-height: 0; }
  .path p { max-height: none; opacity: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .card, .card.lg, .card.sm, .card.third { grid-column: span 12; }
  .card .meta { transform: none; }
  .card .more { opacity: 1; }
  .card.full .img { aspect-ratio: 4 / 3; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .features, .values { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery a, .gallery a.w3, .gallery a.w4 { grid-column: span 1; aspect-ratio: 1; }
  .gallery a.w4 { grid-column: span 2; aspect-ratio: 16 / 10; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .frame-accent::before { inset: 16px -12px -16px 16px; }
  .hero-counter, .scroll-cue { display: none; }
  .brand img { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .rise { opacity: 1; transform: none; }
}

/* ==========================================================
   Critical path — scroll-pinned, animated process diagram
   ========================================================== */
.cp { position: relative; height: 560vh; background: var(--charcoal-deep); }
.cp-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.cp-bgs { position: absolute; inset: 0; }
.cp-bg {
  position: absolute; inset: -4%; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12); filter: saturate(.85);
  transition: opacity 1.4s var(--ease), transform 6s var(--ease-slow);
}
.cp-bg.on { opacity: 1; transform: scale(1); }
.cp-sticky::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(22,23,24,.92) 0%, rgba(22,23,24,.78) 40%, rgba(22,23,24,.9) 100%); }
.cp-inner { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) - 20px); }
.cp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cp-head .h2 { font-size: clamp(28px, 3.4vw, 46px); }
.cp-hint { font-family: var(--font-display); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--stone); display: flex; align-items: center; gap: 12px; }
.cp-hint i { display: block; width: 1px; height: 28px; background: rgba(234,217,200,.25); position: relative; overflow: hidden; }
.cp-hint i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--copper); animation: cue 2.2s var(--ease) infinite; }

.cp-map { width: 100%; height: auto; margin: clamp(16px, 3vh, 34px) 0 clamp(8px, 2vh, 20px); overflow: visible; display: block; }
.cp-map .base { stroke: var(--umber); stroke-width: 2; fill: none; }
.cp-map .crit { stroke: var(--copper); stroke-width: 3; fill: none; }
.cp-map .branch { stroke: var(--sand); stroke-opacity: .55; stroke-width: 1.4; fill: none; }
.cp-map .branch.dash { stroke-dasharray: 2 5 !important; }
.cp-map .ghost { stroke: var(--umber); stroke-width: 1; fill: none; stroke-dasharray: 3 5; }
.cp-map text { font-family: var(--font-display); fill: var(--stone); }
.cp-map .lbl { font-size: 11px; letter-spacing: .08em; opacity: 0; transition: opacity .8s var(--ease), fill .4s; }
.cp-map .lbl.on { opacity: 1; fill: var(--linen); }
.cp-map .tick { stroke: var(--copper); stroke-width: 2; opacity: 0; transition: opacity .5s; }
.cp-map .tick.on { opacity: 1; }
.cp-map .tick-lbl { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transition: opacity .6s; }
.cp-map .tick-lbl.on { opacity: 1; fill: var(--sand); }
.cp-map .node { cursor: pointer; outline: none; }
.cp-map .node .hit { fill: transparent; }
.cp-map .node .halo { fill: none; stroke: var(--copper); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cp-map .node .dia { fill: var(--charcoal-deep); stroke: var(--stone); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; transition: fill .5s, stroke .5s, transform .6s var(--ease-slow); }
.cp-map .node .nm { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; fill: var(--stone); transition: fill .4s; }
.cp-map .node .wk { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; fill: var(--slate); transition: fill .4s; }
.cp-map .node .no { font-size: 11px; letter-spacing: .2em; fill: var(--copper); }
.cp-map .node.done .dia { fill: var(--copper); stroke: var(--copper); }
.cp-map .node.done .nm { fill: var(--linen); }
.cp-map .node.active .dia { transform: scale(1.35); }
.cp-map .node.active .halo { animation: halo 2.4s var(--ease) infinite; }
.cp-map .node.active .nm { fill: var(--copper); }
.cp-map .node.active .wk { fill: var(--sand); }
.cp-map .node:hover .dia, .cp-map .node:focus-visible .dia { transform: scale(1.5); stroke: var(--copper); }
.cp-map .node:hover .nm, .cp-map .node:focus-visible .nm { fill: var(--sand); }
@keyframes halo { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }

.cp-cards { position: relative; min-height: clamp(230px, 34vh, 300px); }
.cp-card {
  position: absolute; inset: 0 auto auto 0; width: 100%;
  display: grid; grid-template-columns: auto 1fr 1fr; gap: clamp(20px, 4vw, 64px); align-items: start;
  opacity: 0; transform: translateY(26px); pointer-events: none;
  transition: opacity .7s var(--ease), transform .9s var(--ease-slow);
}
.cp-card.on { opacity: 1; transform: none; pointer-events: auto; }
.cp-card .big { font-family: var(--font-display); font-weight: 300; font-size: clamp(64px, 9vw, 128px); line-height: .85; color: transparent; -webkit-text-stroke: 1px var(--copper); }
.cp-card h3 { font-size: clamp(26px, 2.8vw, 40px); margin-bottom: 8px; }
.cp-card .when { font-family: var(--font-display); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--copper); }
.cp-card p { color: var(--linen); margin: 18px 0 0; max-width: 46ch; }
.cp-roles { display: grid; gap: 18px; }
.cp-roles div { border-left: 1px solid var(--umber); padding-left: 20px; }
.cp-roles h4 { font-family: var(--font-display); font-size: 10.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
.cp-roles p { margin: 0; color: var(--sand); font-size: 15.5px; }
.cp-roles .milestone { border-color: var(--copper); }
.cp-roles .milestone h4 { color: var(--copper); }

.cp-progress { position: absolute; z-index: 3; left: 0; bottom: 0; height: 2px; background: var(--copper); width: 0; }

@media (max-width: 1080px) {
  .cp-card { grid-template-columns: auto 1fr; }
  .cp-card .cp-roles { grid-column: 2; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .cp { height: 520vh; }
  .cp-map .lbl, .cp-map .tick-lbl, .cp-map .wk { display: none; }
  .cp-map .node .nm { display: none; }
  .cp-map .node .no { font-size: 34px; }
  .cp-map .node .hit { r: 60px; }
  .cp-head .h2 { font-size: 26px; }
  .cp-hint { display: none; }
  .cp-card { grid-template-columns: 1fr; gap: 10px; }
  .cp-card .big { font-size: 54px; }
  .cp-card .cp-roles { grid-column: 1; gap: 10px; grid-template-columns: 1fr 1fr; }
  .cp-card p { margin-top: 8px; font-size: 15px; }
  .cp-roles p { font-size: 14px; }
  .cp-roles .you { display: none; }
}
@media (max-height: 760px) and (min-width: 821px) {
  .cp-card p { font-size: 15.5px; }
  .cp-roles { gap: 10px; }
  .cp-roles .you { display: none; }
}
