/* =============================================================
   Florme Construction — styles.css
   Archetype 02 · Editorial Dark Warm (navy-charcoal + brass)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg:      #0E1216;   /* deep navy-charcoal, never #000 */
  --bg-2:    #12181E;
  --bg-3:    #19212A;   /* cards */
  --bg-4:    #212B35;
  --cream:   #EFE8DA;   /* warm white text */
  --cream-2: #CFC6B4;
  --cream-3: #8D8778;   /* metadata */
  --brass:   #B8925A;   /* the single accent */
  --brass-2: #D6B784;
  --brass-3: #8C6C3D;
  --line:    rgba(239, 232, 218, .12);
  --line-2:  rgba(239, 232, 218, .22);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1360px;
  --section: clamp(6rem, 13vw, 11rem);
  --nav-h: 84px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-weight: 300; text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; }
em { font-style: italic; }
::selection { background: var(--brass); color: var(--bg); }
:focus-visible { outline: 1px solid var(--brass-2); outline-offset: 4px; border-radius: 2px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg); font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 1100px; }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: .9rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase; color: var(--brass-2);
}
.kicker .num { color: var(--cream-3); }
.kicker .num::after {
  content: ""; display: inline-block; width: 2.2rem; height: 1px;
  background: var(--brass-3); vertical-align: middle; margin-left: .9rem;
}
.section-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 1.02;
  margin-top: 1.4rem;
}
.section-title em, .hero-title em, .statement-text em {
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--brass-2);
}
.section-head { margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.section-head.center { text-align: center; }
.section-head--split { display: grid; gap: 2rem; align-items: end; }
.section-aside { color: var(--cream-3); max-width: 34ch; font-size: .95rem; }

/* =============================================================
   5. Components
   ============================================================= */
/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .9rem;
  padding: 1.05rem 1.7rem; isolation: isolate; overflow: hidden;
  font-family: var(--sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.btn i { font-style: normal; transition: transform .5s var(--ease-out); }
.btn:hover i { transform: translateX(5px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: scaleY(1); }

.btn-brass { background: var(--brass); color: var(--bg); }
.btn-brass::before { background: var(--cream); }

.btn-ghost { color: var(--cream); border: 1px solid var(--line-2); }
.btn-ghost::before { background: var(--cream); }
.btn-ghost:hover { color: var(--bg); border-color: var(--cream); }

.btn-line { color: var(--cream); border: 1px solid var(--brass-3); }
.btn-line::before { background: var(--brass); }
.btn-line:hover { color: var(--bg); border-color: var(--brass); }

/* Media + image placeholders */
.media { position: relative; overflow: hidden; background: var(--bg-3); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(184,146,90,.10), transparent 45%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(239,232,218,.035) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(239,232,218,.035) 79px 80px),
    linear-gradient(160deg, var(--bg-4), var(--bg-3) 55%, var(--bg-2));
  transition: transform 1.4s var(--ease-out);
}
.ph::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: clamp(56px, 12%, 110px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: url("assets/img/logo-mark-ring.webp?v=20261006") center / contain no-repeat;
  opacity: .14;
}
.ph::after {
  content: attr(data-ph); position: absolute; left: 1rem; bottom: .9rem; right: 1rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream-3);
}
.ph--before {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(239,232,218,.03) 14px 15px),
    linear-gradient(160deg, #2A2E31, #1F2326 60%, #171A1D);
  filter: grayscale(1);
}
.ph--before::before { filter: grayscale(1); opacity: .1; }

/* Image hover — gentle zoom on any figure that lives inside a hoverable block */
.project-compare:hover .ph, .gallery .media:hover .ph,
.gallery .media:hover img { transform: scale(1.04); }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: grid; place-items: center;
  transition: clip-path 1.1s var(--ease-out) .1s, visibility 0s 1.3s;
  clip-path: inset(0 0 0 0);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes splashSafety { to { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; } }
.splash-inner { display: grid; justify-items: center; gap: 1.2rem; }
.splash-inner { gap: 1.8rem; }
.splash-logo {
  width: min(320px, 70vw); height: auto;
  opacity: 0; animation: splashIn 1.1s var(--ease-out) .1s forwards;
}
.splash-line { width: min(320px, 70vw); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.splash-line::after {
  content: ""; position: absolute; inset: 0; background: var(--brass);
  transform: scaleX(0); transform-origin: left; animation: splashLine 1.2s var(--ease-out) .4s forwards;
}
@keyframes splashIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes splashLine { to { transform: scaleX(1); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background .5s var(--ease-out), border-color .5s var(--ease-out), transform .6s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(14,18,22,.92); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(14px)) {
  .nav.is-scrolled { background: rgba(14,18,22,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .8rem; margin-right: auto; }
.brand-logo { height: 42px; width: auto; transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.brand:hover .brand-logo { opacity: .85; transform: translateY(-1px); }
.nav-links { display: none; gap: 2.2rem; }
.nav-links a {
  position: relative; white-space: nowrap; font-size: .8rem; letter-spacing: .08em; color: var(--cream-2);
  transition: color .4s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-current { color: var(--cream); }
.nav-cta { display: none; padding: .8rem 1.3rem; font-size: .7rem; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.nav-toggle .bar { display: block; width: 26px; height: 1px; background: var(--cream); transition: transform .5s var(--ease-out); }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; background: var(--bg);
  padding: 2.5rem var(--gutter); display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-out), visibility 0s .8s;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-out); }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 300;
}
.mobile-menu nav a em { font-family: var(--mono); font-style: normal; font-size: .7rem; color: var(--brass-2); }
.mobile-menu-foot { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 4rem));
  display: flex; flex-direction: column;
}
.hero-mesh {
  position: absolute; inset: -10% -10% 0 -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 45% at 78% 30%, rgba(184,146,90,.20), transparent 70%),
    radial-gradient(35% 40% at 10% 85%, rgba(56,78,102,.35), transparent 70%),
    conic-gradient(from var(--mesh-angle) at 60% 50%, rgba(184,146,90,.08), rgba(33,43,53,.0) 30%, rgba(56,78,102,.18) 60%, rgba(184,146,90,.08));
  filter: blur(70px);
  animation: meshSpin 26s linear infinite;
}
@keyframes meshSpin { to { --mesh-angle: 360deg; } }
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { flex: 1; display: grid; gap: 3.5rem; align-items: center; }
.hero-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brass);
  box-shadow: 0 0 0 0 rgba(184,146,90,.6); animation: pulse 2.8s var(--ease-soft) infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(184,146,90,0); } 100% { box-shadow: 0 0 0 0 rgba(184,146,90,0); } }
.hero-title {
  font-family: var(--serif); font-variation-settings: "opsz" 144, "SOFT" 20;
  font-size: clamp(3.1rem, 8.4vw, 7.6rem); line-height: .96; letter-spacing: -0.035em;
  margin: 1.8rem 0 2rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-lede { max-width: 44ch; font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--cream-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

.hero-visual { position: relative; aspect-ratio: 4 / 4.4; width: 100%; max-width: 640px; justify-self: end; }
.hero-media-main { position: absolute; inset: 0 0 12% 14%; }
.hero-media-detail {
  position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 1;
  border: 10px solid var(--bg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.hero-media-main .ph::after { top: 1.8rem; left: 1.8rem; bottom: auto; }
.hero-media-main::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(214,183,132,.28); pointer-events: none;
}
.hero-badge { position: absolute; right: -14px; bottom: 4%; width: 118px; height: 118px; display: grid; place-items: center; }
.hero-badge-ring { position: absolute; inset: 0; animation: badgeSpin 30s linear infinite; }
.hero-badge-ring text { font-family: var(--mono); font-size: 8.4px; letter-spacing: 2.4px; fill: var(--brass-2); }
.hero-badge-mark {
  width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--brass-3);
}
.hero-badge-mark img { width: 40px; height: 40px; }
@keyframes badgeSpin { to { transform: rotate(360deg); } }

.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-block: 2.6rem 2rem; margin-top: 3rem; border-top: 1px solid var(--line);
}
.hero-services { display: flex; flex-wrap: wrap; gap: .6rem 2rem; }
.hero-services li {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3);
}
.hero-services li::before { content: "— "; color: var(--brass-3); }
.scroll-cue { width: 26px; height: 44px; border: 1px solid var(--line-2); border-radius: 14px; display: none; justify-content: center; padding-top: 8px; flex-shrink: 0; }
.scroll-cue span { width: 2px; height: 8px; background: var(--brass); border-radius: 2px; animation: cue 2.2s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Hero intro (only when JS adds .is-ready; without JS everything is static and visible) */
.js .hero-title .line > span { transform: translateY(110%); }
.js .hero-kicker, .js .hero-lede, .js .hero-actions, .js .hero-foot { opacity: 0; transform: translateY(18px); }
.js .hero-visual .media { clip-path: inset(100% 0 0 0); }
.is-ready .hero-title .line > span { transform: none; transition: transform 1.3s var(--ease-out); }
.is-ready .hero-title .line:nth-child(1) > span { transition-delay: .15s; }
.is-ready .hero-title .line:nth-child(2) > span { transition-delay: .27s; }
.is-ready .hero-title .line:nth-child(3) > span { transition-delay: .39s; }
.is-ready .hero-kicker, .is-ready .hero-lede, .is-ready .hero-actions, .is-ready .hero-foot {
  opacity: 1; transform: none; transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.is-ready .hero-kicker { transition-delay: .05s; }
.is-ready .hero-lede { transition-delay: .55s; }
.is-ready .hero-actions { transition-delay: .7s; }
.is-ready .hero-foot { transition-delay: .9s; }
.is-ready .hero-visual .media { clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease-out) .3s; }
.is-ready .hero-visual .hero-media-detail { transition-delay: .65s; }

/* ---------- Statement ---------- */
.statement { padding-block: var(--section); }
.statement-text {
  font-family: var(--serif); font-variation-settings: "opsz" 72, "SOFT" 30; font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.22; letter-spacing: -0.015em;
  margin-top: 2.2rem;
}
.statement-text .w { opacity: .18; transition: opacity .4s linear; }
.statement-text .w.is-lit { opacity: 1; }
.statement-pillars { display: grid; gap: 2.5rem; margin-top: clamp(4rem, 8vw, 7rem); padding-top: 3rem; border-top: 1px solid var(--line); }
.pillar-num { font-family: var(--serif); font-style: italic; color: var(--brass-2); font-size: 1.3rem; }
.pillar h3 { font-family: var(--serif); font-size: 1.55rem; margin: .8rem 0 .7rem; }
.pillar p { color: var(--cream-3); font-size: .95rem; max-width: 34ch; }

/* ---------- Services ---------- */
.services { padding-block: var(--section); background: var(--bg-2); border-block: 1px solid var(--line); }
.services-grid { display: grid; gap: 3rem; }
.services-visual { display: none; }
.services-frame { position: sticky; top: calc(var(--nav-h) + 3rem); aspect-ratio: 4 / 5; }
.svc-media { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease-out), transform 1.4s var(--ease-out); }
.svc-media.is-active { opacity: 1; transform: none; }
.services-counter {
  position: absolute; right: -1px; bottom: -1px; z-index: 2; padding: .8rem 1.1rem; background: var(--bg-2);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--cream-3);
}
.services-counter b { color: var(--brass-2); font-weight: 400; }
.services-list { border-top: 1px solid var(--line); }
.svc {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem 1.6rem;
  padding: 2.3rem 0; border-bottom: 1px solid var(--line); cursor: default;
}
.svc::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out);
}
.svc.is-active::before, .svc:hover::before { transform: scaleX(1); }
.svc-num { font-family: var(--mono); font-size: .75rem; color: var(--brass-2); padding-top: .7rem; }
.svc h3 {
  font-family: var(--serif); font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); transition: color .5s var(--ease-out), transform .7s var(--ease-out);
}
.svc.is-active h3, .svc:hover h3 { color: var(--brass-2); transform: translateX(8px); }
.svc p { color: var(--cream-2); margin-top: .9rem; max-width: 52ch; font-size: .98rem; }
.svc-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.svc-tags li {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .45rem .75rem; border: 1px solid var(--line); color: var(--cream-3);
}
.svc-arrow {
  width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center; color: var(--cream-2); align-self: start;
  transition: background .5s var(--ease-out), color .5s var(--ease-out), transform .6s var(--ease-out), border-color .5s;
}
.svc.is-active .svc-arrow, .svc:hover .svc-arrow { background: var(--brass); border-color: var(--brass); color: var(--bg); transform: rotate(45deg); }

/* ---------- Method (pinned horizontal on desktop) ---------- */
.method { padding-block: var(--section); position: relative; }
.method-head { margin-bottom: 3.5rem; }
.method-intro { color: var(--cream-2); max-width: 54ch; margin-top: 1.6rem; font-size: 1.02rem; }
.method-progress { height: 1px; background: var(--line); margin-top: 2.6rem; max-width: 340px; display: none; }
.method-progress span { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.method-track { display: grid; gap: 1.2rem; padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.step {
  position: relative; padding: 2.4rem 2rem 2.2rem; background: var(--bg-3);
  border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 380px;
  transition: border-color .6s var(--ease-out), background .6s var(--ease-out), transform .6s var(--ease-out);
}
.step::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(184,146,90,.14), transparent 60%);
  transition: opacity .5s var(--ease-out);
}
.step:hover { border-color: rgba(184,146,90,.45); background: var(--bg-4); }
.step:hover::after { opacity: 1; }
.step-num {
  position: absolute; right: 1.6rem; top: 1rem;
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 4.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(214,183,132,.35);
}
.step-icon svg { width: 46px; height: 46px; fill: none; stroke: var(--brass-2); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-family: var(--serif); font-size: clamp(1.7rem, 2.4vw, 2.1rem); margin: auto 0 1rem; padding-top: 3.5rem; }
.step p { color: var(--cream-2); font-size: .95rem; }
.step-meta {
  margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2);
}

/* ---------- Portfolio ---------- */
.portfolio { padding-block: var(--section); background: var(--bg-2); border-block: 1px solid var(--line); }
.project { display: grid; gap: 2.2rem; margin-bottom: clamp(5rem, 10vw, 9rem); }
.project-compare {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3);
  --pos: 50%; touch-action: pan-y; user-select: none;
}
.project-compare .media { position: absolute; inset: 0; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 1; }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 1px; background: var(--brass-2);
  transform: translateX(-.5px); pointer-events: none;
}
.cmp-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brass); color: var(--bg); font-size: 1.1rem;
  box-shadow: 0 0 0 8px rgba(184,146,90,.18); transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.project-compare:hover .cmp-handle span { box-shadow: 0 0 0 14px rgba(184,146,90,.14); transform: translate(-50%, -50%) scale(1.05); }
.cmp-range {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; margin: 0;
}
.cmp-range:focus-visible + * , .project-compare:focus-within .cmp-handle span { box-shadow: 0 0 0 4px var(--cream); }
.cmp-label {
  position: absolute; top: 1.1rem; z-index: 2; padding: .45rem .8rem; background: rgba(14,18,22,.75);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
}
.cmp-label--before { left: 1.1rem; z-index: 2; }
.cmp-label--after { right: 1.1rem; color: var(--brass-2); }
.project-index { font-family: var(--mono); font-size: .75rem; color: var(--brass-2); letter-spacing: .14em; }
.project-info h3 { font-family: var(--serif); font-variation-settings: "opsz" 144, "SOFT" 40; font-size: clamp(2rem, 3.6vw, 3rem); margin: 1rem 0 1.2rem; }
.project-info p { color: var(--cream-2); max-width: 46ch; }
.project-meta { margin-top: 2rem; border-top: 1px solid var(--line); }
.project-meta div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.project-meta dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-3); padding-top: .2rem; }
.project-meta dd { text-align: right; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery .media { aspect-ratio: 3 / 4; }
.gallery .g2 { aspect-ratio: 1; align-self: end; }
.gallery .g3 { grid-column: span 2; aspect-ratio: 16 / 10; }
.portfolio-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem;
  margin-top: 4rem; padding-top: 2.4rem; border-top: 1px solid var(--line); color: var(--cream-2);
}

/* ---------- Testimonials ---------- */
.clients { padding-block: var(--section); position: relative; }
.quotes { display: grid; max-width: 1040px; margin-inline: auto; }
.quote { text-align: center; padding-block: 1rem 2.5rem; }
.quote blockquote p {
  font-family: var(--serif); font-variation-settings: "opsz" 72, "SOFT" 60; font-weight: 300;
  font-size: clamp(1.6rem, 3.3vw, 2.75rem); line-height: 1.28; letter-spacing: -0.012em;
}
.quote figcaption { margin-top: 2.2rem; display: grid; gap: .3rem; }
.quote figcaption strong { font-weight: 500; letter-spacing: .08em; font-size: .9rem; }
.quote figcaption span { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); }
.quotes::before {
  content: "“"; display: block; text-align: center; font-family: var(--serif); font-style: italic;
  font-size: 7rem; line-height: .6; color: var(--brass); margin-bottom: 1.6rem;
}
/* JS-enhanced: stack all quotes in one cell and crossfade */
.js .quotes { grid-template-areas: "q"; }
.js .quote { grid-area: q; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), visibility 0s .9s; }
.js .quote.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .9s var(--ease-out) .15s, transform 1.1s var(--ease-out) .15s; }
.quotes-nav { display: none; align-items: center; justify-content: center; gap: 1.6rem; margin-top: 1rem; }
.js .quotes-nav { display: flex; }
.qbtn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--cream-2);
  transition: background .5s var(--ease-out), color .5s var(--ease-out), border-color .5s;
}
.qbtn:hover { background: var(--brass); color: var(--bg); border-color: var(--brass); }
.qdots { display: flex; gap: .7rem; }
.qdots button { width: 28px; height: 20px; position: relative; }
.qdots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); transition: background .4s, transform .5s var(--ease-out); }
.qdots button[aria-current="true"]::after { background: var(--brass); transform: scaleY(2); }

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; padding-block: var(--section); background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-mesh {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 0% 100%, rgba(184,146,90,.12), transparent 70%),
              radial-gradient(40% 50% at 100% 0%, rgba(56,78,102,.25), transparent 70%);
}
.contact-grid { display: grid; gap: 4rem; }
.contact-lede { color: var(--cream-2); max-width: 42ch; margin-top: 1.6rem; }
.contact-details { margin-top: 3rem; border-top: 1px solid var(--line); max-width: 460px; }
.contact-details div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-details dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-3); padding-top: .2rem; }
.contact-details dd { text-align: right; }
.contact-details a { transition: color .4s var(--ease-out); }
.contact-details a:hover { color: var(--brass-2); }

.quote-form {
  position: relative; padding: clamp(1.8rem, 4vw, 3.2rem); background: var(--bg-3); border: 1px solid var(--line);
  display: grid; gap: 1.6rem; align-self: start;
}
.quote-form::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 80px; height: 80px;
  border-top: 1px solid var(--brass); border-left: 1px solid var(--brass); pointer-events: none;
}
.form-row { display: grid; gap: 1.6rem; }
.field { display: grid; gap: .55rem; position: relative; }
.field > span { font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3); transition: color .4s; }
.field:focus-within > span { color: var(--brass-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; font-weight: 300; color: var(--cream);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  padding: .55rem 0 .75rem; transition: border-color .4s var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder { color: rgba(239,232,218,.25); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass); }
.field select { cursor: pointer; padding-right: 1.6rem; }
.field select option { background: var(--bg-3); color: var(--cream); }
.field--select::after { content: "↓"; position: absolute; right: 0; bottom: .8rem; font-size: .8rem; color: var(--brass-2); pointer-events: none; }
.field.is-invalid > span { color: #D98B6F; }
.field.is-invalid input, .field.is-invalid select { border-bottom-color: #D98B6F; }
.form-foot { display: grid; gap: 1.2rem; margin-top: .6rem; }
.form-note { font-size: .78rem; color: var(--cream-3); }
.btn-submit { justify-self: start; }
.quote-form.is-sending .btn-submit { pointer-events: none; opacity: .7; }

.form-success {
  position: absolute; inset: 0; z-index: 2; background: var(--bg-3);
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 1rem; padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity .7s var(--ease-out), visibility 0s .7s;
}
.form-success svg { width: 76px; height: 76px; fill: none; stroke: var(--brass-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.form-success circle { stroke-dasharray: 183; stroke-dashoffset: 183; }
.form-success path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.form-success h3 { font-family: var(--serif); font-size: 2.4rem; }
.form-success p { color: var(--cream-2); max-width: 36ch; }
.quote-form.is-sent .form-success { opacity: 1; visibility: visible; transition: opacity .7s var(--ease-out); }
.quote-form.is-sent .form-success circle { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-out) .2s; }
.quote-form.is-sent .form-success path { stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease-out) 1s; }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(4rem, 8vw, 7rem) 2rem; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.footer-logo { width: min(560px, 100%); height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; padding-block: 3.5rem; }
.footer-cols h4 { font-family: var(--mono); font-size: .66rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 1.1rem; }
.footer-cols p, .footer-cols li { color: var(--cream-3); font-size: .9rem; }
.footer-cols li + li { margin-top: .5rem; }
.footer-cols a { transition: color .4s var(--ease-out); }
.footer-cols a:hover { color: var(--cream); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .76rem; color: var(--cream-3); }

/* =============================================================
   7. Effects — scroll reveal
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease-out) var(--d, 0s), transform 1.3s var(--ease-out) var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.js .project-compare.reveal { transform: none; clip-path: inset(8% 8% 8% 8%); transition: opacity 1s var(--ease-out), clip-path 1.6s var(--ease-out); }
.js .project-compare.reveal.is-visible { clip-path: inset(0 0 0 0); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .brand-logo { height: 46px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) {
  .statement-pillars { grid-template-columns: repeat(3, 1fr); }
  .method-track { grid-template-columns: repeat(2, 1fr); }
  .section-head--split { grid-template-columns: 1fr auto; }
  .gallery { grid-template-columns: 1.1fr .9fr 1.4fr; grid-template-rows: auto auto; gap: 1.2rem; }
  .gallery .g1 { grid-row: span 2; aspect-ratio: auto; }
  .gallery .g3 { grid-column: auto; grid-row: span 2; aspect-ratio: auto; }
  .gallery .g2, .gallery .g4 { aspect-ratio: 1; }
  .gallery .g4 { grid-column: 2; }
  .scroll-cue { display: flex; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; gap: 1.6rem; }
  .nav-toggle, .mobile-menu { display: none; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 4rem; }
  .services-grid { grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 6vw, 6rem); }
  .services-visual { display: block; }
  .project { grid-template-columns: 1.55fr 1fr; align-items: end; gap: clamp(2.5rem, 5vw, 5rem); }
  .project--flip { grid-template-columns: 1fr 1.55fr; }
  .project--flip .project-compare { order: 2; }
  .project-info { padding-bottom: 1rem; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 6vw, 7rem); }

  /* Method becomes a pinned horizontal track when JS flags support */
  .method.is-horizontal { padding-block: 0; }
  .method.is-horizontal .method-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .method.is-horizontal .method-head { margin-bottom: 2.6rem; }
  .method.is-horizontal .method-progress { display: block; }
  .method.is-horizontal .method-track {
    display: flex; gap: 1.4rem; max-width: none; margin: 0; width: max-content;
    padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    padding-right: 30vw;
  }
  .method.is-horizontal .step { width: clamp(340px, 30vw, 430px); min-height: 440px; flex-shrink: 0; }
  .method.is-horizontal .method-intro { margin-top: 1rem; }
  .method.is-horizontal .section-title { font-size: clamp(2.5rem, 5vw, 4.4rem); }
}
@media (min-width: 1280px) {
  .brand-logo { height: 50px; }
  .nav-links { gap: 2.2rem; }
  .nav-cta { display: inline-flex; }
  .method-track:not(.is-h) { grid-template-columns: repeat(3, 1fr); }
}
@media (max-height: 760px) and (min-width: 960px) {
  .method.is-horizontal .method-intro { display: none; }
  .method.is-horizontal .step { min-height: 380px; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .hero-badge-ring { animation: none; }
  .scroll-cue span { animation: none; }
}

/* =============================================================
   10. Photos + credits page
   ============================================================= */
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter 1s var(--ease-out); }
.hero-media-main > img { filter: saturate(1.05) contrast(1.05); }
.cmp-before > img { filter: saturate(.75) contrast(.95); }
.project-compare:hover .media > img, .gallery .media:hover > img { transform: scale(1.04); }
.footer-credits { text-decoration: underline; text-underline-offset: 3px; transition: color .4s var(--ease-out); }
.footer-credits:hover { color: var(--brass-2); }

.credits { padding-block: 3rem 6rem; max-width: 900px; }
.credits-back img { height: 46px; width: auto; margin-bottom: 4rem; }
.credits-note { color: var(--cream-3); margin: 1.4rem 0 3rem; max-width: 60ch; }
.credits-list { border-top: 1px solid var(--line); margin-bottom: 3rem; }
.credits-list li { display: flex; gap: 1.2rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.credits-list img { width: 96px; height: 64px; object-fit: cover; flex-shrink: 0; }
.credits-list div { display: grid; gap: .25rem; }
.credits-list span { color: var(--cream-3); }
.credits-list a { color: var(--brass-2); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #E3A089; font-size: .85rem; }
