/* ============================================================
   Star Group Construction (SGC)
   "The Quiet Vault" — editorial luxury, dark charcoal + brass-gold
   Mobile-first, no-build. Re-skin from the tokens in :root.
   ============================================================ */

:root {
  /* ---- Palette ---- */
  --bg:         #0E0F12;   /* page anchor (charcoal plaster)  */
  --bg-2:       #121419;   /* alternating sections            */
  --surface:    #16181E;   /* cards / panels                  */
  --surface-2:  #1C1F26;   /* lifted panels / inputs          */
  --line:       rgba(255,255,255,.09);  /* hairline dividers  */
  --line-2:     rgba(255,255,255,.05);
  --text:       #F4F1EC;   /* warm white                      */
  --text-soft:  #C9C6BF;   /* body copy                       */
  --muted:      #8C9098;   /* secondary / labels              */
  --gold:       #C8A24B;   /* brass-gold — signal only        */
  --gold-soft:  #E3C982;
  --gold-deep:  #8A6B22;
  --gold-tint:  rgba(200,162,75,.12);
  --on-gold:    #14110A;

  /* ---- Type ---- */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* fluid editorial scale */
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.10rem);
  --step-1:  clamp(1.20rem, 1.05rem + 0.6vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.16rem + 1.4vw, 2.2rem);
  --step-3:  clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem);
  --step-4:  clamp(2.3rem, 1.3rem + 4.2vw, 3.8rem);
  --display: clamp(2.9rem, 0.4rem + 11vw, 7.2rem);
  --mega:    clamp(5rem, -2rem + 30vw, 13rem);

  /* ---- Spacing (8pt) ---- */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 72px; --s-7: 112px; --s-8: 160px;

  /* ---- Shape ---- */
  --radius:     4px;
  --radius-img: 6px;
  --radius-lg:  10px;
  --pill:       50px;
  --maxw: 1320px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,.4);
  --shadow:    0 18px 50px rgba(0,0,0,.5);
  --shadow-lg: 0 40px 90px rgba(0,0,0,.65);
  --inset-hi:  inset 0 1px 0 rgba(255,255,255,.06);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.7,0,.3,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur:  .55s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-soft);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold-soft); }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--on-gold); }

/* ---------- Page transitions — cross-document View Transitions (smooth nav) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .18s linear both; }
  ::view-transition-new(root) { animation: vt-in .26s var(--ease-out) both; }
}
@keyframes vt-out { to   { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; } }
/* On cross-document nav, show content instantly so the crossfade is the ONLY motion (no entrance replay = no jank) */
.nav-instant [data-reveal], .nav-instant [data-reveal-img] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.nav-instant [data-reveal], .nav-instant [data-reveal-img], .nav-instant .split-line > span { transition: none !important; }
.nav-instant .split-line > span { transform: none !important; }

/* film-grain plaster overlay (the "material") */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .045; background-size: 200px 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); font-weight: 500; line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); letter-spacing: -.01em; }
p  { color: var(--text-soft); max-width: 60ch; text-wrap: pretty; }
.lead { font-size: var(--step-1); color: var(--text-soft); font-weight: 300; line-height: 1.5; }

/* foil-gold (metallic, not flat yellow) */
.foil {
  background: linear-gradient(180deg,#F4E0A8 0%,#E3C982 22%,#C8A24B 50%,#A8842F 73%,#8A6B22 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: var(--gold);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 24px; }
section { padding: var(--s-7) 0; position: relative; }
.bg-2  { background: var(--bg-2); }

/* tracked micro-label / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 14px; color: var(--muted);
  font-family: var(--font-body); font-weight: 500; text-transform: uppercase;
  letter-spacing: .26em; font-size: var(--step--1); margin-bottom: var(--s-3);
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); display: inline-block; }
.kicker .idx { color: var(--gold); font-feature-settings: "tnum"; }

.section-head { max-width: 720px; margin: 0 0 var(--s-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 { margin-bottom: var(--s-3); }

/* fading hairline rule */
.rule { height: 1px; border: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 600; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .16em;
  padding: 17px 32px; border-radius: var(--radius); position: relative;
  background: var(--gold); color: var(--on-gold); border: 1px solid var(--gold);
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease-out);
  will-change: transform;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-line { background: transparent; color: var(--text); border-color: var(--line); }
.btn-line:hover { background: transparent; color: var(--gold); border-color: var(--gold); }

/* text link with underline grow */
.tlink { position: relative; font-family: var(--font-body); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--text); display: inline-flex; gap: 9px; align-items: center; }
.tlink::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.tlink:hover { color: var(--gold); } .tlink:hover::after { transform: scaleX(1); }
.tlink .arrow { transition: transform .3s var(--ease-out); } .tlink:hover .arrow { transform: translateX(5px); }

/* ============================================================
   CUSTOM CURSOR (desktop pointer:fine only — toggled by JS)
   ============================================================ */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; opacity: 0; transition: opacity .25s var(--ease); will-change: transform; }
.cursor-dot { width: 7px; height: 7px; background: var(--gold-soft); transform: translate3d(-50%,-50%,0); }
.cursor-ring { width: 42px; height: 42px; border: 1px solid rgba(227,201,130,.7); transform: translate3d(-50%,-50%,0); transition: background .3s var(--ease), border-color .3s var(--ease); }
body.cursor-on.has-fine-pointer { cursor: none; }
body.cursor-on.has-fine-pointer a, body.cursor-on.has-fine-pointer button { cursor: none; }
body.cursor-on.has-fine-pointer input, body.cursor-on.has-fine-pointer textarea { cursor: text; }
body.cursor-on.has-fine-pointer select { cursor: pointer; }
.cursor-ring.hover { background: var(--gold-tint); border-color: transparent; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } }

/* ============================================================
   INTRO CURTAIN
   ============================================================ */
.curtain { position: fixed; inset: 0; z-index: 10000; background: var(--bg); display: grid; place-items: center; transition: transform 1s var(--ease); }
.curtain.up { transform: translateY(-100%); }
.curtain .c-mark { width: 70px; height: 70px; opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.curtain .c-rule { width: 0; height: 1px; background: var(--gold); margin-top: 22px; transition: width .8s var(--ease) .15s; }
.curtain.in .c-mark { opacity: 1; transform: none; }
.curtain.in .c-rule { width: 180px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(14,15,18,.55); backdrop-filter: saturate(150%) blur(16px); border-bottom: 1px solid transparent; transition: box-shadow .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), transform .4s var(--ease); }
.site-header.scrolled { background: rgba(14,15,18,.9); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .35s var(--ease); }
.site-header.scrolled .nav { height: 66px; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .brand-mark { height: 42px; width: 42px; flex: none; transition: all .35s var(--ease); }
.site-header.scrolled .brand .brand-mark { height: 36px; width: 36px; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-name { font-family: var(--font-display); font-weight: 500; font-size: 1.36rem; letter-spacing: .16em; color: var(--text); }
.brand .brand-sub  { font-family: var(--font-body); font-size: .56rem; font-weight: 500; letter-spacing: .44em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: var(--s-5); }
.nav-links a:not(.btn) { color: var(--text-soft); font-family: var(--font-body); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -7px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after, .nav-links a.active:not(.btn)::after { transform: scaleX(1); }
.nav-links a.active:not(.btn) { color: var(--gold); }
.nav-cta { padding: 12px 24px; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative; z-index: 110; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--text); margin: 6px auto; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-backdrop { display: none; }

/* ============================================================
   HERO — editorial, asymmetric, type over image
   ============================================================ */
.hero { position: relative; min-height: 94vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.still .hero { min-height: 720px; }  /* dev flag: fixed hero so full-page screenshots aren't inflated by vh */
.hero .hero-media { position: absolute; inset: 0; z-index: -2; display: block; }
.hero .hero-bg { position: absolute; inset: -8% 0; background: #0e0f12 center/cover no-repeat; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(14,15,18,.95) 0%, rgba(14,15,18,.7) 46%, rgba(14,15,18,.32) 100%), radial-gradient(80% 60% at 50% 0%, rgba(200,162,75,.10), transparent 60%); }
.hero .container { padding-top: var(--s-7); padding-bottom: var(--s-6); width: 100%; }
.hero .hero-meta-top { position: absolute; top: 0; left: 0; }
.hero h1 { color: #fff; font-size: var(--display); line-height: .92; max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .hero-sub { color: rgba(244,241,236,.84); max-width: 42ch; margin-top: var(--s-3); font-size: var(--step-1); font-weight: 300; }
.hero-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; margin-top: var(--s-4); }
.hero-foot { position: absolute; left: 24px; right: 24px; bottom: 26px; display: flex; justify-content: space-between; gap: 16px; color: rgba(244,241,236,.55); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; }
.hero-foot .scrollcue { display: inline-flex; align-items: center; gap: 10px; }
.hero-foot .scrollcue::after { content: ""; width: 40px; height: 1px; background: rgba(244,241,236,.4); }

/* page hero (interior pages) */
.page-hero { position: relative; color: #fff; padding: calc(var(--s-8)) 0 var(--s-6); overflow: hidden; isolation: isolate; }
.page-hero .hero-bg { position: absolute; inset: -10% 0; z-index: -2; background: center/cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,15,18,.92), rgba(14,15,18,.7)), radial-gradient(70% 60% at 50% 0%, rgba(200,162,75,.1), transparent 60%); }
.page-hero h1 { color: #fff; font-size: var(--step-4); max-width: 16ch; }
.page-hero .lead { color: rgba(244,241,236,.8); margin-top: var(--s-3); max-width: 52ch; }
.crumbs { color: rgba(244,241,236,.5); font-size: var(--step--1); margin-bottom: var(--s-3); letter-spacing: .14em; text-transform: uppercase; }
.crumbs a { color: rgba(244,241,236,.7); }

/* ============================================================
   EDITORIAL FEATURE SPREADS (THE WORK)
   ============================================================ */
.spread { position: relative; display: grid; grid-template-columns: 1fr; gap: var(--s-4); align-items: center; margin-bottom: var(--s-7); }
.spread:last-child { margin-bottom: 0; }
.spread .ghost { position: absolute; top: -.5em; left: -.1em; font-family: var(--font-display); font-size: var(--mega); line-height: 1; color: #fff; opacity: .05; z-index: 0; pointer-events: none; user-select: none; }
.spread .frame { position: relative; overflow: hidden; border-radius: var(--radius-img); z-index: 1; box-shadow: var(--shadow); }
.spread .frame img { width: 100%; height: auto; display: block; }
.spread .meta { position: relative; z-index: 2; max-width: 38ch; }
.spread .tagline { color: var(--gold); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .2em; font-weight: 600; display: block; margin-bottom: 14px; }
.spread .meta h3 { font-size: var(--step-4); margin-bottom: var(--s-2); color: var(--text); }
.spread .meta p { color: var(--muted); margin-bottom: var(--s-3); }

/* oversized pull-figure metric */
.pull-figure { display: grid; grid-template-columns: 1fr; gap: var(--s-2); align-items: end; padding: var(--s-6) 0; }
.pull-figure .num { font-family: var(--font-display); font-size: var(--mega); line-height: .8; color: var(--gold); }
.pull-figure .cap { color: var(--muted); max-width: 30ch; font-size: var(--step-1); }

/* ============================================================
   PROCESS — contents-page list (no cards)
   ============================================================ */
.contents { counter-reset: idx; }
.contents .row { display: grid; grid-template-columns: 1fr; gap: 10px; padding: var(--s-4) 0; position: relative; }
.contents .row + .row { border-top: 1px solid var(--line); }
.contents .row .n { counter-increment: idx; font-family: var(--font-display); font-size: var(--step-3); color: var(--gold); line-height: 1; }
.contents .row .n::before { content: counter(idx, decimal-leading-zero); }
.contents .row h3 { color: var(--text); font-size: var(--step-2); }
.contents .row p { color: var(--muted); }

/* ============================================================
   SPLIT (text + media) — used on interior pages
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr; gap: var(--s-5); align-items: center; }
.split .media { position: relative; }
.split .media img { border-radius: var(--radius-img); box-shadow: var(--shadow); width: 100%; }
.split .media .badge-float { position: absolute; bottom: -22px; left: -8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow), var(--inset-hi); padding: 18px 22px; display: flex; gap: 14px; align-items: center; }
.split .media .badge-float strong { font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1; }
.split .media .badge-float span { font-size: .78rem; color: var(--muted); }
.feature-list { margin-top: var(--s-3); display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-soft); }
.feature-list .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-tint); color: var(--gold); display: grid; place-items: center; margin-top: 4px; }
.feature-list .tick svg { width: 12px; height: 12px; }

/* services cards (kept minimal/editorial) */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 1fr; gap: 10px; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.svc-row .svc-k { color: var(--gold); font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; }
.svc-row h3 { color: var(--text); font-size: var(--step-3); }
.svc-row p { color: var(--muted); }

/* ============================================================
   PROMO / OFFER (restrained)
   ============================================================ */
.offer { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--inset-hi); padding: clamp(32px, 5vw, 64px); text-align: center; background: var(--surface); }
.offer .num { font-family: var(--font-display); font-size: var(--step-4); display: block; margin-bottom: var(--s-2); }
.offer h2 { color: var(--text); }
.offer p { color: var(--muted); margin: var(--s-2) auto var(--s-4); max-width: 52ch; }

/* ============================================================
   GALLERY (masonry) + lightbox
   ============================================================ */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: var(--s-6); }
.filter-btn { font-family: var(--font-body); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; padding: 10px 22px; border-radius: var(--pill); border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease); }
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

.gallery { columns: 1; column-gap: var(--s-2); }
@media (min-width: 600px)  { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }
.gallery-item { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; display: block; width: 100%; margin: 0 0 var(--s-2); position: relative; overflow: hidden; border-radius: var(--radius-img); cursor: pointer; background: var(--surface); border: 1px solid var(--line); padding: 0; text-align: left; line-height: 0; }
.gallery-item img { width: 100%; height: auto; display: block; filter: saturate(.95) brightness(.95) contrast(1.03); transition: transform .7s var(--ease-out), filter .5s var(--ease); }
@media (hover: hover) { .gallery-item:hover img { transform: scale(1.05); filter: none; } }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: 34px 18px 16px; background: linear-gradient(transparent, rgba(8,9,11,.9)); color: #fff; line-height: 1.3; opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
@media (hover: hover) { .gallery-item:hover .cap { opacity: 1; transform: translateY(0); } }
.gallery-item .cap strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.25; color: #fff; margin-bottom: 4px; }
.gallery-item .cap span { display: block; font-size: .72rem; line-height: 1.2; color: var(--gold-soft); text-transform: uppercase; letter-spacing: .14em; }
.gallery-item[hidden] { display: none; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; color: var(--text); }
.lightbox::backdrop { background: rgba(8,9,11,.95); backdrop-filter: blur(5px); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 94vw; max-height: 82vh; width: auto; object-fit: contain; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #fff; margin-top: var(--s-2); font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; }
.lightbox figcaption span { display: block; color: var(--gold-soft); font-family: var(--font-body); font-weight: 400; font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; margin-top: 5px; }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 1.6rem; display: grid; place-items: center; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); z-index: 1; }
.lb-btn:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { top: 20px; right: 20px; transform: none; width: 46px; height: 46px; font-size: 1.7rem; }
.lb-count { position: fixed; top: 28px; left: 26px; color: rgba(244,241,236,.6); font-size: .85rem; letter-spacing: .1em; }
@media (prefers-reduced-motion: no-preference) { .lightbox[open] { animation: lb-in .3s var(--ease); } }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* ============================================================
   MOBILE TAP-TO-CALL BAR
   ============================================================ */
.callbar { display: none; }
@media (max-width: 860px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; box-shadow: 0 -2px 20px rgba(0,0,0,.55); transition: transform .4s var(--ease); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 16px 8px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); font-family: var(--font-body); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; }
  .callbar .call { background: var(--surface-2); color: var(--text); border-top: 1px solid var(--line); }
  .callbar .quote { background: var(--gold); color: var(--on-gold); }
  .callbar svg { width: 17px; height: 17px; }
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }

  /* slide chrome away while scrolling down, reveal on scroll-up */
  body.chrome-hidden .site-header { transform: translateY(-100%); }
  body.chrome-hidden .callbar { transform: translateY(100%); }
  /* drawer is a fixed descendant of the header — never transform the header while it's open */
  body.nav-open .site-header { transform: none; transition: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* contact page = already at the estimate form, so no floating bar */
  body.page-contact .callbar { display: none; }
  body.page-contact { padding-bottom: env(safe-area-inset-bottom); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); align-items: start; }
.info-item { display: flex; gap: 16px; margin-bottom: var(--s-4); }
.info-item .ico { flex: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--gold-tint); color: var(--gold); display: grid; place-items: center; box-shadow: var(--inset-hi); }
.info-item .ico svg { width: 20px; height: 20px; }
.info-item h4 { margin-bottom: 3px; color: var(--text); }
.info-item p, .info-item a { color: var(--muted); }
.info-item a:hover { color: var(--gold); }

form.quote { background: var(--surface); padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--inset-hi); }
.field { margin-bottom: var(--s-3); }
.field label { display: block; font-family: var(--font-body); font-weight: 500; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 9px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; font-family: inherit; font-size: 1rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: #6b7079; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: var(--s-2); }

/* ============================================================
   FOOTER (designed)
   ============================================================ */
.footer-cta { text-align: center; padding: var(--s-8) 0 var(--s-6); }
.footer-cta h2 { font-size: var(--step-4); max-width: 18ch; margin: 0 auto var(--s-4); color: var(--text); }
.site-footer { background: #0a0b0d; color: var(--muted); padding: var(--s-6) 0 var(--s-3); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); margin-bottom: var(--s-5); }
.site-footer .brand { margin-bottom: var(--s-2); }
.site-footer .foot-about { max-width: 32ch; font-size: .95rem; }
.site-footer h4 { color: var(--text); margin-bottom: var(--s-3); font-family: var(--font-body); font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { color: var(--muted); font-size: .95rem; }
.site-footer a:hover { color: var(--gold); }
.footer-trust { text-align: center; color: var(--muted); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; padding-bottom: var(--s-4); }
.footer-trust span { margin: 0 14px; }
.footer-trust .dot { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: var(--s-3); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .82rem; color: #6b7079; }

/* ============================================================
   REVEAL — masked clip-path / line-slide (one motion vocabulary)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: var(--stagger, 0ms); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }

/* image clip-wipe */
[data-reveal-img] { clip-path: inset(0 0 100% 0); transform: scale(1.06); transition: clip-path .7s var(--ease-out), transform .75s var(--ease-out); will-change: clip-path, transform; }
[data-reveal-img].in { clip-path: inset(0 0 0 0); transform: none; }

/* split-line headline reveal (JS wraps lines) */
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; transform: translateY(115%); transition: transform .6s var(--ease-out); transition-delay: var(--ld, 0ms); will-change: transform; }
[data-split].in .split-line > span, .split-line.in > span { transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .pull-figure { grid-template-columns: auto 1fr; gap: var(--s-5); align-items: center; }
}
@media (min-width: 920px) {
  section { padding: var(--s-8) 0; }
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .split.reverse .media { order: 2; }
  .spread { grid-template-columns: 1.25fr .75fr; gap: var(--s-6); }
  .spread.reverse .frame { order: 2; }
  .spread.reverse .ghost { left: auto; right: -.1em; }
  .contents .row { grid-template-columns: 90px 1fr 1.2fr; gap: var(--s-4); align-items: baseline; }
  .svc-row { grid-template-columns: 200px 1fr; gap: var(--s-5); align-items: baseline; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: var(--s-7); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
}

/* ============================================================
   MOBILE NAV (drawer)
   ============================================================ */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: 0; right: 0; bottom: 0; width: min(85vw, 360px); flex-direction: column; align-items: flex-start; gap: 2px; background: var(--bg-2); border-left: 1px solid var(--line); padding: 110px 32px 32px; z-index: 105; transform: translateX(100%); transition: transform .4s var(--ease); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a:not(.btn) { width: 100%; padding: 18px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .nav-cta { margin-top: var(--s-3); width: 100%; justify-content: center; }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(8,9,11,.6); z-index: 104; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease); }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
  body.nav-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
  .hero h1 { max-width: 18ch; }
  .hero-foot { display: none; }
  .spread .ghost { font-size: 34vw; }
}

/* ============================================================
   PHONE TUNING (≤600px) — tighter rhythm, fit-to-screen hero
   ============================================================ */
@media (max-width: 600px) {
  section { padding: var(--s-6) 0; }
  .container, .container-wide { padding: 0 20px; }
  .hero { min-height: 86svh; }
  .hero .container { padding-top: var(--s-6); padding-bottom: var(--s-5); }
  .page-hero { padding: var(--s-6) 0 var(--s-5); }
  .footer-cta { padding: var(--s-7) 0 var(--s-5); }
  .section-head { margin-bottom: var(--s-5); }
  .spread { margin-bottom: var(--s-6); }
  .lb-btn { width: 44px; height: 44px; font-size: 1.3rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .lb-count { top: 16px; left: 16px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-reveal-img] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .split-line > span { transform: none !important; }
  .hero .hero-bg { transform: none !important; }
  .curtain { display: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
