/* ==========================================================================
   Arya Homes — Design System
   Palette drawn from the Arya Homes brand deck: olive-bronze, cream, charcoal, gold
   ========================================================================== */

:root {
  --ink: #1c1915;
  --ink-2: #2a2620;
  --ink-3: #3b352c;
  --olive: #756646;
  --olive-deep: #5c5036;
  --gold: #b8955c;
  --gold-light: #d8bf8f;
  --cream: #f3efe6;
  --paper: #faf8f3;
  --sand: #e7e0d2;
  --text: #2a2620;
  --muted: #6d665a;
  --muted-light: #b7ae9d;
  --line: rgba(28, 25, 21, .12);
  --line-light: rgba(243, 239, 230, .16);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --section: clamp(84px, 11vw, 168px);
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.06; margin: 0; letter-spacing: -.01em; color: inherit; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--ink); padding: 10px 18px; font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--olive { background: var(--olive-deep); color: var(--cream); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section + .section--flush { padding-top: 0; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--olive);
  margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.section--dark .eyebrow, .section--olive .eyebrow, .on-dark .eyebrow,
.hero .eyebrow, .page-hero .eyebrow, .project-hero .eyebrow, .cta-band .eyebrow, .not-found .eyebrow { color: var(--gold-light); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }

.display-1 { font-size: clamp(3rem, 8.2vw, 7.6rem); line-height: .98; letter-spacing: -.025em; }
.display-2 { font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1.02; letter-spacing: -.02em; }
.display-3 { font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.08; }
.h4 { font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.15; }
.display-1 em, .display-2 em, .display-3 em, .h4 em { font-style: italic; color: var(--gold); font-weight: 400; }
.section--dark .display-2 em, .section--dark .display-3 em { color: var(--gold-light); }
.lead { font-size: clamp(1.08rem, 1.35vw, 1.28rem); line-height: 1.7; color: var(--muted); font-weight: 300; }
.section--dark .lead, .on-dark .lead { color: var(--muted-light); }
.muted { color: var(--muted); }
.serif-quote { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.25; font-style: italic; font-weight: 400; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 16px } .mt-2 { margin-top: 32px } .mt-3 { margin-top: 48px } .mt-4 { margin-top: 72px }
.max-60 { max-width: 60ch; } .max-48 { max-width: 48ch; }
.center-block { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 32px; min-height: 56px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg); border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold); transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--gold); }
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--ink); }
.btn--gold::before { background: var(--cream); }
.btn--gold:hover { border-color: var(--cream); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--cream); border-color: rgba(243, 239, 230, .5); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--cream);
  transition: background-color .45s var(--ease), height .45s var(--ease), box-shadow .45s var(--ease), color .45s var(--ease), transform .45s var(--ease);
}
.site-header::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px;
  background: var(--line-light); transition: opacity .4s;
}
.site-header.is-scrolled {
  --header-h: 74px;
  background: rgba(250, 248, 243, .94);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  color: var(--ink);
  box-shadow: 0 10px 40px -20px rgba(28, 25, 21, .25);
}
.site-header.is-scrolled::after { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; transition: height .45s var(--ease); }
.is-scrolled .brand img { height: 40px; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.main-nav > ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  padding-block: 12px;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .has-dropdown:hover > .nav-link::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link svg { width: 10px; height: 10px; transition: transform .3s; }
.has-dropdown { position: relative; }
.has-dropdown:hover .nav-link svg, .has-dropdown:focus-within .nav-link svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 50%; min-width: 300px;
  transform: translate(-50%, 12px); opacity: 0; visibility: hidden;
  background: var(--paper); color: var(--ink);
  padding: 18px; box-shadow: 0 30px 60px -20px rgba(28, 25, 21, .35);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; font-family: var(--serif); font-size: 1.22rem; line-height: 1.2;
  border-bottom: 1px solid var(--line); transition: background .3s, padding .3s var(--ease), color .3s;
}
.dropdown li:last-child a { border-bottom: 0; }
.dropdown a small { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.dropdown a:hover { background: var(--cream); padding-left: 20px; color: var(--olive-deep); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .06em; font-weight: 400; }
.header-phone svg { width: 16px; height: 16px; color: var(--gold); }
.header-cta .btn { padding: 13px 22px; min-height: 46px; font-size: 12px; }
.site-header:not(.is-scrolled) .header-cta .btn { --btn-bg: transparent; --btn-fg: var(--cream); border-color: rgba(243, 239, 230, .45); }

.menu-toggle { display: none; width: 48px; height: 48px; position: relative; z-index: 120; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), opacity .3s, top .45s var(--ease); }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 24px; right: 20px; }
.menu-toggle span:nth-child(3) { top: 30px; }
.menu-open .menu-toggle span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 24px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s .7s;
  overflow-y: auto;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s; }
.menu-open .site-header { z-index: 130; color: var(--cream); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mobile-menu nav > ul > li { border-bottom: 1px solid var(--line-light); opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-out); }
.menu-open .mobile-menu nav > ul > li { opacity: 1; transform: none; }
.menu-open .mobile-menu nav > ul > li:nth-child(2) { transition-delay: .06s } .menu-open .mobile-menu nav > ul > li:nth-child(3) { transition-delay: .12s }
.menu-open .mobile-menu nav > ul > li:nth-child(4) { transition-delay: .18s } .menu-open .mobile-menu nav > ul > li:nth-child(5) { transition-delay: .24s }
.menu-open .mobile-menu nav > ul > li:nth-child(6) { transition-delay: .3s } .menu-open .mobile-menu nav > ul > li:nth-child(7) { transition-delay: .36s }
.mobile-menu nav > ul > li > a, .mobile-menu summary {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--serif); font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1; padding: 18px 0;
  list-style: none; cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary svg { width: 18px; height: 18px; transition: transform .3s; color: var(--gold); }
.mobile-menu details[open] summary svg { transform: rotate(45deg); }
.mobile-menu details ul { padding: 0 0 18px 4px; }
.mobile-menu details a { display: block; padding: 9px 0; font-size: 15px; letter-spacing: .06em; color: var(--muted-light); }
.mobile-menu details a:hover { color: var(--gold-light); }
.mobile-menu-foot { margin-top: auto; padding-top: 36px; display: grid; gap: 10px; font-size: 15px; color: var(--muted-light); }
.mobile-menu-foot a { color: var(--cream); }
.mobile-menu-foot .btn { margin-top: 12px; justify-content: center; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 120px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(184, 149, 92, .16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(117, 102, 70, .35), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { margin-bottom: 34px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero .lead { max-width: 46ch; margin-bottom: 44px; }
.hero-collage { position: relative; aspect-ratio: 1 / 1.08; }
.hero-collage figure { position: absolute; margin: 0; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .c1 { left: 0; top: 6%; width: 50%; height: 70%; }
.hero-collage .c2 { right: 0; top: 0; width: 44%; height: 52%; }
.hero-collage .c3 { right: 6%; bottom: 0; width: 42%; height: 42%; }
.hero-collage .badge {
  position: absolute; left: 32%; bottom: 4%; z-index: 3;
  width: 148px; height: 148px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--gold); color: var(--ink);
  font-family: var(--serif); font-size: 1.08rem; line-height: 1.15; font-style: italic;
}
.badge-ring { position: absolute; inset: 8px; animation: spin 26s linear infinite; }
.badge-ring text { font-family: var(--sans); font-size: 7.4px; letter-spacing: .12em; text-transform: uppercase; font-style: normal; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .badge-ring { animation: none; } }
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 36px;
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-light);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -44px; width: 1px; height: 44px; background: var(--cream); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { to { top: 44px; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); }
.section--dark .marquee, .marquee--dark { background: var(--ink-2); border-color: var(--line-light); color: var(--cream); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: clamp(40px, 6vw, 88px); padding: 30px clamp(20px, 3vw, 44px); }
.marquee-item { display: inline-flex; align-items: center; gap: clamp(40px, 6vw, 88px); font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.4rem); white-space: nowrap; color: var(--ink-3); }
.marquee--dark .marquee-item { color: var(--cream); }
.marquee-item em { font-style: italic; color: var(--olive); }
.marquee-item::after { content: "✦"; font-size: .55em; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Split / intro ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.split > .col-5 { grid-column: span 5; } .split > .col-6 { grid-column: span 6; } .split > .col-7 { grid-column: span 7; }
.split > .col-4 { grid-column: span 4; } .split > .col-8 { grid-column: span 8; } .split > .col-1 { grid-column: span 1; }
.split--top { align-items: start; }
.intro-images { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.intro-images figure { margin: 0; overflow: hidden; }
.intro-images figure:first-child { margin-top: 72px; }
.intro-images img { width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; }
.signature { display: flex; align-items: center; gap: 18px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.signature strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; font-style: italic; color: var(--olive-deep); }
.signature span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Image hover zoom */
.zoom { overflow: hidden; }
.zoom img { transition: transform 1.4s var(--ease-out), filter .6s; }
a:hover .zoom img, .zoom:hover img { transform: scale(1.06); }

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .display-2 { max-width: 14ch; }
.section-head p { max-width: 44ch; }
.section-head--stack { display: block; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 1.8vw, 28px); }
.service-card { grid-column: span 4; position: relative; display: block; color: var(--cream); overflow: hidden; background: var(--ink); isolation: isolate; }
.service-card.is-wide { grid-column: span 6; }
.service-card .zoom { aspect-ratio: 4 / 5; }
.service-card.is-wide .zoom { aspect-ratio: 16 / 12; }
.service-card img { width: 100%; height: 100%; object-fit: cover; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 25, 21, .05) 30%, rgba(28, 25, 21, .86) 100%); z-index: 1; transition: opacity .6s; }
.service-card-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: clamp(22px, 2.4vw, 36px); display: grid; gap: 10px; }
.service-card .num { font-size: 12px; letter-spacing: .24em; color: var(--gold-light); }
.service-card h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
.service-card p { font-size: .95rem; color: rgba(243, 239, 230, .78); max-width: 38ch; max-height: 0; opacity: 0; overflow: hidden; margin: 0; transition: max-height .7s var(--ease), opacity .5s; }
.service-card:hover p, .service-card:focus-visible p { max-height: 8em; opacity: 1; }
.service-card .arrow {
  position: absolute; top: clamp(20px, 2vw, 30px); right: clamp(20px, 2vw, 30px); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(243, 239, 230, .4);
  display: grid; place-items: center; transition: background .4s, border-color .4s, transform .6s var(--ease);
}
.service-card .arrow svg { width: 18px; height: 18px; transform: rotate(-45deg); }
.service-card:hover .arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: rotate(45deg); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.stat { padding: 44px clamp(12px, 2vw, 32px) 0 0; }
.stat + .stat { padding-left: clamp(16px, 2.4vw, 40px); border-left: 1px solid var(--line-light); }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1; color: var(--gold-light); }
.stat span { display: block; margin-top: 14px; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); }
.section--cream .stats, .section:not(.section--dark) .stats { border-color: var(--line); }
.section:not(.section--dark):not(.section--olive) .stat + .stat { border-color: var(--line); }
.section:not(.section--dark):not(.section--olive) .stat strong { color: var(--olive-deep); }
.section:not(.section--dark):not(.section--olive) .stat span { color: var(--muted); }

/* ---------- Featured projects ---------- */
.project-feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.project-feature + .project-feature { margin-top: clamp(96px, 12vw, 180px); }
.project-feature .pf-media { grid-column: 1 / span 7; display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: end; }
.project-feature .pf-media a:nth-child(2) { margin-bottom: 64px; }
.project-feature .pf-media img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; }
.project-feature .pf-media a:nth-child(2) img { aspect-ratio: 9 / 12; }
.project-feature .pf-body { grid-column: 9 / span 4; }
.project-feature.is-reverse .pf-media { grid-column: 6 / span 7; order: 2; }
.project-feature.is-reverse .pf-body { grid-column: 1 / span 4; order: 1; }
.pf-index { font-family: var(--serif); font-size: clamp(4rem, 8vw, 7rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold); display: block; margin-bottom: 24px; }
.pf-body h3 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); margin-bottom: 10px; }
.pf-loc { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); margin-bottom: 24px; display: block; }
.section--dark .pf-loc { color: var(--gold-light); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 32px; }
.tag { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; padding: 7px 13px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }
.section--dark .tag { border-color: var(--line-light); color: var(--muted-light); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.process-step { position: relative; padding: 0 clamp(14px, 2vw, 34px) 0 0; }
.process-step::before { content: ""; position: absolute; left: 0; right: 0; top: 29px; height: 1px; background: var(--line); }
.section--dark .process-step::before { background: var(--line-light); }
.process-step .dot {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--gold);
  font-family: var(--serif); font-size: 1.4rem; color: var(--olive-deep); margin-bottom: 32px;
  transition: background .4s, color .4s;
}
.section--cream .process-step .dot { background: var(--cream); }
.section--dark .process-step .dot { background: var(--ink); color: var(--gold-light); }
.process-step:hover .dot { background: var(--gold); color: var(--ink); }
.process-step h3 { font-size: 1.8rem; margin-bottom: 12px; }
.process-step p { color: var(--muted); font-size: .98rem; }
.section--dark .process-step p { color: var(--muted-light); }

/* ---------- Texture strip ---------- */
.swatch-row { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.swatch-row:hover { animation-play-state: paused; }
.swatch-row figure { margin: 0; width: clamp(150px, 16vw, 230px); flex-shrink: 0; }
.swatch-row img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.swatch-strip { overflow: hidden; margin-top: clamp(48px, 6vw, 80px); }
@media (prefers-reduced-motion: reduce) { .swatch-row { animation: none; } }

/* ---------- Quote / philosophy ---------- */
.philosophy { text-align: center; max-width: 980px; margin-inline: auto; }
.philosophy .serif-quote { margin-bottom: 36px; }
.quote-mark { font-family: var(--serif); font-size: 7rem; line-height: .5; color: var(--gold); display: block; height: 48px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: var(--cream); background: var(--ink); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28, 25, 21, .92) 20%, rgba(28, 25, 21, .4)); z-index: 1; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band .display-2 { max-width: 16ch; margin-bottom: 28px; }
.cta-band .lead { max-width: 50ch; margin-bottom: 44px; color: rgba(243, 239, 230, .78); }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; background: var(--ink); color: var(--cream);
  padding: calc(var(--header-h) + clamp(72px, 10vw, 150px)) 0 clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(28, 25, 21, .55), rgba(28, 25, 21, .92)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 58ch; margin-top: 30px; color: rgba(243, 239, 230, .8); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 36px; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--gold); }
.breadcrumb [aria-current] { color: var(--cream); }

/* ---------- Feature list ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feature { padding: 40px 32px 40px 0; border-bottom: 1px solid var(--line); }
.feature:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.feature svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 22px; stroke-width: 1.2; }
.feature h3 { font-size: 1.55rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .96rem; }
.section--dark .feature-grid, .section--dark .feature, .section--dark .feature:not(:nth-child(3n+1)) { border-color: var(--line-light); }
.section--dark .feature p { color: var(--muted-light); }

.check-list { display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.check-list li::before { content: ""; width: 14px; height: 1px; background: var(--gold); margin-top: .9em; }
.check-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 40px; }

/* ---------- Gallery (uniform grid) ---------- */
.gallery-wrap { container-type: inline-size; }
.gallery {
  --c: var(--cols, 3); --gap: clamp(10px, 1.2vw, 18px);
  display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); grid-auto-flow: row dense; gap: var(--gap);
  /* every row is exactly one tile tall, so wide tiles always line up */
  grid-auto-rows: calc((100cqw - (var(--c) - 1) * var(--gap)) / var(--c) / var(--ar, .8));
}
.gallery a { position: relative; display: block; overflow: hidden; cursor: zoom-in; background: var(--sand); }
.gallery a.is-wide { grid-column: span 2; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(28, 25, 21, .7)); opacity: 0; transition: opacity .5s; }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.g-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; font-size: 12px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); opacity: 0; transform: translateY(8px); transition: .45s var(--ease); }
.gallery a:hover .g-cap, .gallery a:focus-visible .g-cap { opacity: 1; transform: none; }

/* ---------- Testimonials ---------- */
.t-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: 4px;
}
.t-track::-webkit-scrollbar { display: none; }
.t-card {
  scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 22px;
  background: var(--paper); padding: clamp(28px, 3vw, 44px); border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s;
}
.section--dark .t-card { background: var(--ink-2); border-color: var(--line-light); }
.t-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(28, 25, 21, .35); }
.t-stars { color: var(--gold); letter-spacing: .2em; font-size: 14px; }
.t-card blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.25rem, 1.6vw, 1.45rem); line-height: 1.45; color: var(--ink-3); flex: 1; }
.t-card figcaption { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.t-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--olive-deep); color: var(--gold-light); font-family: var(--serif); font-size: 1.1rem; letter-spacing: .04em; }
.t-card strong { display: block; font-weight: 500; color: var(--ink); }
.t-card small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.t-tag { align-self: flex-start; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; }
.t-nav { display: flex; gap: 10px; }
.t-btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(28, 25, 21, .25); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.t-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.t-btn svg { width: 18px; height: 18px; }
.t-prev svg { transform: rotate(180deg); }
.t-btn:disabled { opacity: .35; pointer-events: none; }

/* 3-up project cards */
.project-grid.project-grid--3 { grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 60px) clamp(18px, 2vw, 32px); }
.project-grid--3 .project-card:nth-child(even) { margin-top: 0; }
.project-grid--3 .project-card h3 { font-size: clamp(1.7rem, 2.2vw, 2.1rem); }
.project-grid--3 .project-card p { font-size: .95rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20, 18, 15, .96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84vh; width: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--muted-light); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.lightbox button { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-light); color: var(--cream); display: grid; place-items: center; transition: background .3s, color .3s; }
.lightbox button:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lightbox button svg { width: 20px; height: 20px; }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); } .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-prev svg { transform: rotate(180deg); }

/* ---------- Project pages ---------- */
.project-hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: end; color: var(--cream); background: var(--ink); overflow: hidden; padding: calc(var(--header-h) + 60px) 0 clamp(56px, 7vw, 100px); }
.project-hero-media { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(28, 25, 21, .45) 0%, rgba(28, 25, 21, .35) 40%, rgba(28, 25, 21, .94) 100%); }
.project-hero .container { position: relative; z-index: 2; }
.project-hero .client-logo { width: 110px; height: 110px; object-fit: contain; background: var(--paper); padding: 10px; margin-bottom: 30px; }
.project-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-light); margin-top: 52px; }
.project-facts div { padding: 22px 20px 0 0; }
.project-facts div + div { padding-left: 22px; border-left: 1px solid var(--line-light); }
.project-facts dt { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
.project-facts dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; }
.story-block + .story-block { margin-top: 56px; }
.story-block h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 18px; }
.sticky-aside { position: sticky; top: 110px; }
.aside-card { background: var(--cream); padding: clamp(28px, 3vw, 44px); }
.aside-card h3 { font-size: 1.6rem; margin-bottom: 18px; }
.aside-card ul { display: grid; gap: 10px; margin-bottom: 28px; }
.aside-card li a { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; transition: color .3s, padding .3s; }
.aside-card li a:hover { color: var(--olive); padding-left: 6px; }
.aside-card li a svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold); margin-top: 5px; }
.next-project { position: relative; display: block; color: var(--cream); background: var(--ink); overflow: hidden; }
.next-project > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; transition: opacity .8s, transform 1.6s var(--ease-out); }
.next-project:hover > img { opacity: .55; transform: scale(1.04); }
.next-project .container { position: relative; z-index: 1; padding-block: clamp(90px, 12vw, 180px); text-align: center; }
.next-project small { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); }
.next-project strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1; margin-top: 18px; }

/* ---------- Projects index ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.filter-btn { padding: 11px 20px; border: 1px solid var(--line); border-radius: 100px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; transition: .3s; }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 48px); }
.project-card { display: block; }
.project-card .zoom { aspect-ratio: 5 / 4; margin-bottom: 26px; position: relative; }
.project-card img { width: 100%; height: 100%; object-fit: cover; }
.project-card .pc-meta { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); margin-bottom: 10px; }
.project-card h3 { font-size: clamp(1.9rem, 3vw, 2.7rem); transition: color .3s; }
.project-card:hover h3 { color: var(--olive); }
.project-card p { color: var(--muted); margin-top: 12px; max-width: 52ch; }
.project-card.is-hidden { display: none; }
.project-card:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
.pc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; height: 100%; }

/* ---------- Service page ---------- */
.service-intro-img { position: relative; }
.service-intro-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.service-intro-img .overlap { position: absolute; width: 48%; right: -8%; bottom: -12%; border: 10px solid var(--paper); aspect-ratio: 1; }
.applications { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.applications li { background: var(--paper); padding: 28px 24px; border: 1px solid var(--line); font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; transition: background .4s, color .4s, border-color .4s; }
.applications li span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--gold); margin-bottom: 14px; }
.applications li:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.related-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.25; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--olive); }
.faq summary i { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--gold); border-color: var(--gold); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .faq-body { padding: 0 64px 30px 0; color: var(--muted); max-width: 76ch; }

/* ---------- Texture library ---------- */
.swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.swatch-grid a { position: relative; display: block; overflow: hidden; }
.swatch-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1s var(--ease-out); }
.swatch-grid a:hover img { transform: scale(1.08); }
.swatch-grid span { position: absolute; left: 10px; bottom: 8px; font-size: 11px; letter-spacing: .18em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

/* ---------- Journal ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.post-card .zoom { aspect-ratio: 4 / 3; margin-bottom: 24px; }
.post-card img { width: 100%; height: 100%; object-fit: cover; }
.post-card .meta { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); margin-bottom: 12px; display: block; }
.post-card h3 { font-size: clamp(1.55rem, 2.1vw, 1.95rem); line-height: 1.15; margin-bottom: 12px; transition: color .3s; }
.post-card:hover h3 { color: var(--olive); }
.post-card p { color: var(--muted); font-size: .98rem; }
.prose { font-size: clamp(1.03rem, 1.15vw, 1.13rem); line-height: 1.85; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin: 2em 0 .6em; }
.prose h3 { font-size: clamp(1.45rem, 2.1vw, 1.8rem); margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.3em; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .95em; width: 14px; height: 1px; background: var(--gold); }
.prose strong { font-weight: 500; color: var(--ink); }
.prose a { color: var(--olive-deep); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.prose figure { margin: 2.2em 0; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; letter-spacing: .04em; }
.prose blockquote { margin: 2em 0; padding: 8px 0 8px 28px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.6rem; line-height: 1.35; font-style: italic; color: var(--ink-3); }
.article-meta { display: flex; flex-wrap: wrap; gap: 22px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); margin-top: 30px; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: var(--cream); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 110px); }
.contact-list { display: grid; gap: 34px; }
.contact-item small { display: block; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--olive); margin-bottom: 8px; }
.contact-item a, .contact-item address { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.35; font-style: normal; }
.contact-item a:hover { color: var(--olive); }
.contact-item address { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; background: var(--cream); padding: clamp(28px, 4vw, 60px); }
.form .full { grid-column: 1 / -1; }
.field { position: relative; }
.field label { display: block; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(28, 25, 21, .25);
  padding: 10px 0 12px; border-radius: 0; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23756646'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #a4452c; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { grid-column: 1 / -1; font-size: 14px; color: var(--olive-deep); min-height: 1em; }
.map-embed { width: 100%; aspect-ratio: 21 / 8; border: 0; filter: grayscale(.85) sepia(.15) contrast(.95); display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding: clamp(80px, 9vw, 130px) 0 0; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(32px, 4vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.footer-brand img { height: 64px; width: auto; margin-bottom: 26px; }
.footer-brand p { max-width: 34ch; }
.site-footer h2 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 24px; }
.site-footer ul { display: grid; gap: 11px; }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: var(--cream); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact a { color: var(--cream); font-size: 1.05rem; }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.socials svg { width: 17px; height: 17px; }
.footer-big { font-family: var(--serif); font-size: clamp(3.4rem, 13.5vw, 13rem); line-height: .8; letter-spacing: -.03em; color: var(--ink-2); text-align: center; white-space: nowrap; user-select: none; margin-bottom: -.06em; overflow: hidden; }
.footer-bottom { border-top: 1px solid var(--line-light); padding-block: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.footer-bottom nav { display: flex; gap: 24px; }

/* ---------- Floating actions ---------- */
.fab-whatsapp {
  position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.fab-whatsapp:hover { transform: translateY(-4px) scale(1.04); }
.fab-whatsapp svg { width: 28px; height: 28px; }
.fab-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fab-whatsapp::before { animation: none; } }

/* ---------- Reveal animations (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="img"] { opacity: 1; transform: none; }
.js [data-reveal="img"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="img"].is-visible > * { clip-path: inset(0 0 0 0); }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.js .is-loaded .hero h1 .line > span, .is-loaded.js .hero h1 .line > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal="img"] > *, .js .hero h1 .line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--cream); padding: 140px var(--gutter) 80px; }
.not-found .big { font-family: var(--serif); font-size: clamp(8rem, 26vw, 20rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .header-phone { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .swatch-grid { grid-template-columns: repeat(4, 1fr); }
  .applications { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .main-nav, .header-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { max-width: 620px; width: 100%; margin-inline: auto; aspect-ratio: 1 / .95; }
  .split > [class*="col-"] { grid-column: 1 / -1; }
  .split > .col-1 { display: none; }
  .service-card, .service-card.is-wide { grid-column: span 6; }
  .project-feature .pf-media, .project-feature.is-reverse .pf-media, .project-feature .pf-body, .project-feature.is-reverse .pf-body { grid-column: 1 / -1; order: initial; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature, .feature:not(:nth-child(3n+1)) { padding: 36px 28px 36px 0; border-left: 0; }
  .feature:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
  .gallery { --c: 2; }
  .gallery a.m-fill { grid-column: span 2; }
  .t-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .project-grid.project-grid--3 { grid-template-columns: 1fr 1fr; }
  .post-grid, .related-services { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .sticky-aside { position: static; }
  .project-facts { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .project-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .service-intro-img .overlap { right: 0; }
}
@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .brand img { height: 38px; }
  .hero { padding-bottom: 100px; }
  .hero-collage .badge { width: 112px; height: 112px; font-size: .9rem; left: 28%; }
  .hero-meta .hide-sm { display: none; }
  .section-head { display: block; }
  .section-head p { margin-top: 20px; }
  .service-card, .service-card.is-wide { grid-column: 1 / -1; }
  .service-card .zoom, .service-card.is-wide .zoom { aspect-ratio: 4 / 4.4; }
  .service-card p { max-height: none; opacity: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-top: 32px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(even) { margin-top: 0; }
  .process { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even), .feature:not(:nth-child(3n+1)) { padding: 30px 0; border-left: 0; }
  .g-cap { display: none; }
  .t-track { grid-auto-columns: 86%; gap: 14px; }
  .project-grid.project-grid--3 { grid-template-columns: 1fr; }
  .swatch-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .applications { grid-template-columns: 1fr; }
  .post-grid, .related-services { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .project-hero-media { grid-template-columns: 1fr 1fr; }
  .project-hero-media img:nth-child(n+3) { display: none; }
  .intro-images figure:first-child { margin-top: 40px; }
  .faq .faq-body { padding-right: 0; }
  .map-embed { aspect-ratio: 4 / 3; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lightbox-caption { bottom: 88px; }
}
@media (max-width: 420px) {
  .project-facts { grid-template-columns: 1fr; }
  .project-facts div + div { padding-left: 0; border-left: 0; }
}

/* Print */
@media print {
  .site-header, .fab-whatsapp, .mobile-menu, .cta-band, .footer-big { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero, .project-hero { background: none; color: #000; min-height: 0; padding: 20px 0; }
}
