/* ============================================================
   BuildForge Estimation — core design system
   Concept: "the blueprint as a luxury object"
   ============================================================ */

:root {
  /* palette */
  --ink:        #0B1220;   /* deep drafting-ink navy (base) */
  --ink-2:      #0E1626;   /* panel navy */
  --ink-3:      #14203A;   /* raised navy */
  --line:       #21304E;   /* hairline on dark */
  --paper:      #F6F3EC;   /* warm drafting paper */
  --paper-2:    #ECE6D8;   /* paper shade */
  --brass:      #C9A24B;   /* primary metal accent */
  --brass-lt:   #E9C879;
  --brass-dp:   #8A6B22;
  --mist:       #9FB0C9;   /* muted blue-grey text on dark */
  --mist-dim:   #6E7E97;
  --ink-text:   #1B2436;   /* text on paper */
  --ink-soft:   #4A576E;
  --white:      #FBFAF6;

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--mist);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* blueprint grid backdrop applied to body */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .14;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, #000 30%, transparent 90%);
          mask-image: radial-gradient(120% 120% at 50% 0%, #000 30%, transparent 90%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); position: relative; z-index: 1; }

/* ---------- type ---------- */
h1,h2,h3,h4 { font-family: var(--serif); color: var(--white); font-weight: 500; line-height: 1.06; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--brass); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content:""; width: 26px; height: 1px; background: var(--brass); opacity:.7; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--mist); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 2px; cursor: pointer; border: 1px solid transparent;
  transition: all .35s var(--ease); white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--brass-lt), var(--brass)); color: #2A2008; font-weight: 600; }
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(201,162,75,.55); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-lt); }
/* ghost buttons on light/paper backgrounds need dark text to stay visible */
.paper .btn-ghost, .cta-band.on-light .btn-ghost {
  color: var(--ink-text); border-color: rgba(27,36,54,.28);
}
.paper .btn-ghost:hover, .cta-band.on-light .btn-ghost:hover {
  border-color: var(--brass-dp); color: var(--brass-dp); background: rgba(201,162,75,.08);
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,15,26,.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-head.scrolled {
  background: rgba(9,14,24,.92);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 50px -28px rgba(0,0,0,.85);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; gap: clamp(16px, 3vw, 40px);
  transition: height .4s var(--ease);
}
.site-head.scrolled .nav { height: 70px; }

/* brand */
.brand { display: flex; align-items: center; gap: 15px; flex: 0 0 auto; }
.brand img {
  width: 104px; height: 54px;
  transition: transform .5s var(--ease), width .4s var(--ease), height .4s var(--ease);
}
.brand:hover img { transform: rotate(-3deg) scale(1.03); }
.site-head.scrolled .brand img { width: 90px; height: 47px; }
.brand .lock { display: flex; flex-direction: column; line-height: 1; }
.brand .name { font-family: var(--serif); font-size: 24px; color: var(--white); letter-spacing: -.01em; line-height: 1; }
.brand .name b { color: var(--brass-lt); font-weight: 600; }
.brand .sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--mist-dim); margin-top: 6px; }

/* center menu */
.menu {
  display: flex; align-items: center; gap: clamp(2px, .6vw, 10px);
  flex: 1 1 auto; justify-content: center;
}
.menu > a, .has-sub > a {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  font-size: 14.5px; font-weight: 500; color: var(--mist);
  padding: 10px 4px; white-space: nowrap;
  transition: color .3s var(--ease);
}
/* Services link: reserve space for chevron on the right, underline stays under text */
.has-sub > a { padding-right: 18px; }
.menu > a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px;
  height: 1.5px; background: var(--brass);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.has-sub > a::after {
  content: ""; position: absolute; left: 4px; right: 18px; bottom: 4px;
  height: 1.5px; background: var(--brass);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.menu > a:hover, .has-sub > a:hover { color: var(--white); }
.menu > a:hover::after, .has-sub:hover > a::after { transform: scaleX(1); transform-origin: left; }
.menu > a.active, .has-sub > a.active { color: var(--brass-lt); }
.menu > a.active::after, .has-sub > a.active::after { transform: scaleX(1); }
.has-sub > a .chev { width: 9px; height: 9px; transition: transform .3s var(--ease); opacity: .7; position:absolute; right: 4px; top: 50%; margin-top: -4.5px; }
.has-sub:hover > a .chev { transform: rotate(180deg); }

/* mega dropdown */
.has-sub { position: relative; }
.has-sub::before { content:""; position:absolute; top:100%; left:0; right:0; height:18px; } /* hover bridge */
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 320px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  box-shadow: 0 30px 70px -24px rgba(0,0,0,.8);
}
.dropdown::before {
  content:""; position:absolute; top:-6px; left:50%; transform:translateX(-50%) rotate(45deg);
  width:12px; height:12px; background: var(--ink-3); border-left:1px solid var(--line); border-top:1px solid var(--line);
}
.has-sub:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 7px;
  transition: background .2s var(--ease);
}
.dropdown a strong { font-size: 14px; color: var(--white); font-weight: 500; transition: color .2s; }
.dropdown a span { font-size: 12px; color: var(--mist-dim); font-family: var(--sans); }
.dropdown a:hover { background: rgba(201,162,75,.1); }
.dropdown a:hover strong { color: var(--brass-lt); }

/* right cta */
.nav-cta { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.nav-cta .btn { padding: 13px 22px; font-size: 12.5px; }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; z-index: 90; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: var(--white); border-radius: 2px; transition: .3s var(--ease); }
.burger span:nth-child(1){ top: 0; } .burger span:nth-child(2){ top: 10px; } .burger span:nth-child(3){ top: 20px; }
.burger.open span:nth-child(1){ top:10px; transform: rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ top:10px; transform: rotate(-45deg); }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 130px); position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 50px); margin: 18px 0 18px; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* paper section variant */
.paper { background: var(--paper); color: var(--ink-text); }
.paper h1,.paper h2,.paper h3,.paper h4 { color: var(--ink-text); }
.paper .lead, .paper p { color: var(--ink-soft); }
.paper::before {
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(#cfc6b2 1px, transparent 1px), linear-gradient(90deg,#cfc6b2 1px, transparent 1px);
  background-size: 46px 46px; opacity:.4; pointer-events:none;
}
.paper .wrap { z-index: 1; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(60px, 9vw, 110px); padding-bottom: clamp(70px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); margin: 26px 0; }
.hero h1 em { font-style: italic; color: var(--brass-lt); }
.hero .lead { margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 44px; margin-top: 52px; flex-wrap: wrap; }
.hero-meta .stat .n { font-family: var(--serif); font-size: 40px; color: var(--white); line-height: 1.1; }
.hero-meta .stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist-dim); margin-top: 8px; }

/* hero blueprint panel (signature) */
.blueprint {
  position: relative; aspect-ratio: 1/1.04; border: 1px solid var(--line);
  border-radius: 4px; background:
    radial-gradient(120% 90% at 70% 10%, rgba(201,162,75,.10), transparent 60%),
    var(--ink-2);
  overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8);
}
.blueprint .bp-grid { position:absolute; inset:0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 30px 30px; opacity:.5; }
.bp-corner { position:absolute; width: 18px; height: 18px; border-color: var(--brass); opacity:.8; }
.bp-corner.tl { top:14px; left:14px; border-top:1.5px solid; border-left:1.5px solid; }
.bp-corner.br { bottom:14px; right:14px; border-bottom:1.5px solid; border-right:1.5px solid; }
.bp-label { position:absolute; bottom: 16px; left: 18px; font-family: var(--mono); font-size: 10px; letter-spacing:.2em; color: var(--mist-dim); text-transform: uppercase; }
.bp-stamp { position:absolute; top:16px; right:18px; font-family: var(--mono); font-size:10px; letter-spacing:.2em; color: var(--brass); border:1px solid var(--brass); padding:4px 8px; border-radius:2px; opacity:.85; }
.bp-draw { position:absolute; inset:0; }
.bp-draw path, .bp-draw line, .bp-draw circle, .bp-draw rect.dim { stroke: var(--brass-lt); fill:none; }

/* ---------- trade marquee ---------- */
.trades { border-block: 1px solid var(--line); background: var(--ink-2); padding-block: 22px; overflow: hidden; }
.trades-track { display: flex; gap: 56px; white-space: nowrap; animation: marquee 32s linear infinite; }
.trades-track span { font-family: var(--mono); font-size: 13px; letter-spacing:.14em; text-transform: uppercase; color: var(--mist-dim); display:inline-flex; align-items:center; gap:56px; }
.trades-track span::after { content:"◆"; color: var(--brass); font-size:8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- cards grid ---------- */
.grid { display: grid; gap: 22px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 4px;
  padding: 32px; transition: all .4s var(--ease); position: relative; overflow: hidden;
}
.card::before { content:""; position:absolute; top:0; left:0; width:100%; height:2px; background: linear-gradient(90deg, var(--brass), transparent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.card:hover { border-color: #2D4068; transform: translateY(-4px); background: var(--ink-3); }
.card:hover::before { transform: scaleX(1); }
.card .ico { width: 46px; height: 46px; border:1px solid var(--brass); border-radius:3px; display:grid; place-items:center; color: var(--brass-lt); margin-bottom: 22px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 21px; color: var(--white); margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--mist); }
.card .num { position:absolute; top: 22px; right: 26px; font-family: var(--mono); font-size: 12px; color: var(--mist-dim); }

/* paper card variant */
.paper .card { background: var(--white); border-color: var(--paper-2); }
.paper .card:hover { background: var(--white); border-color: var(--brass); }
.paper .card h3 { color: var(--ink-text); }
.paper .card p { color: var(--ink-soft); }

/* ---------- process timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; counter-reset: s; }
.step { padding: 30px 26px 30px 0; border-top: 1px solid var(--line); position: relative; }
.step .k { font-family: var(--mono); font-size: 12px; color: var(--brass); letter-spacing:.16em; }
.step h4 { font-size: 19px; margin: 16px 0 10px; color: var(--white); }
.step p { font-size: 14.5px; }
.step::after { content:""; position:absolute; top:-4px; left:0; width:7px; height:7px; background: var(--brass); border-radius:50%; }

/* ---------- split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: stretch; }
.split > .reveal:not(.ph) { align-self: center; }
.split .ph { height: 100%; min-height: 340px; }
.split .ph img { height: 100%; }
.figure-frame { border:1px solid var(--line); border-radius:4px; padding:14px; background: var(--ink-2); }
.figure-frame .inner { aspect-ratio: 4/3.4; border:1px solid var(--line); border-radius:3px; position: relative; overflow:hidden;
  background: radial-gradient(100% 80% at 50% 0, rgba(201,162,75,.08), transparent), var(--ink-3); }

/* ---------- fee table ---------- */
.fee-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.fee { background: var(--ink-2); border:1px solid var(--line); border-radius:4px; padding: 38px 30px; position: relative; transition:.4s var(--ease);
  display:flex; flex-direction:column; height:100%; }
.fee.feature { border-color: var(--brass); background: linear-gradient(180deg, rgba(201,162,75,.07), var(--ink-2)); }
.fee:hover { transform: translateY(-4px); }
.fee .tier { font-family: var(--mono); font-size: 12px; letter-spacing:.18em; text-transform:uppercase; color: var(--brass); min-height: 16px; }
.fee .price { font-family: var(--serif); font-size: 42px; color: var(--white); margin: 16px 0 4px; line-height:1.05; display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.fee .price small { font-size: 14px; color: var(--mist-dim); font-family: var(--mono); }
.fee .fee-desc { font-size: 14.5px; color: var(--mist); margin: 8px 0 0; min-height: 66px; }
.fee ul { list-style:none; margin: 22px 0; padding:0; display:grid; gap: 12px; }
.fee li { font-size: 14.5px; padding-left: 26px; position: relative; color: var(--mist); }
.fee li::before { content:"✓"; position:absolute; left:0; top:0; color: var(--brass); }
.fee .btn { margin-top:auto; width:100%; justify-content:center; }
.fee .ribbon { position:absolute; top:-1px; right: 24px; background: var(--brass); color:#2A2008; font-family:var(--mono); font-size:10px; letter-spacing:.14em; padding:5px 12px; border-radius:0 0 3px 3px; text-transform:uppercase; }

/* ---------- accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); position: relative; transition: background .4s var(--ease); padding-inline: 4px; border-radius: 6px; }
.acc-item::before { content:""; position:absolute; left:0; top:50%; transform:translateY(-50%); width:2px; height:0; background:var(--brass); transition: height .4s var(--ease); border-radius:2px; }
.acc-item.open { background: linear-gradient(90deg, rgba(201,162,75,.05), transparent 70%); }
.acc-item.open::before { height: calc(100% - 28px); }
.acc-q { width:100%; text-align:left; background:none; border:0; cursor:pointer; padding: 26px 14px; display:flex; justify-content:space-between; gap:20px; align-items:center; color: var(--white); font-family: var(--serif); font-size: clamp(18px,2.4vw,23px); transition: color .3s var(--ease); }
.acc-q:hover { color: var(--brass-lt); }
.acc-item.open .acc-q { color: var(--brass-lt); }
.acc-q .pm { flex: 0 0 auto; width: 32px; height: 32px; border:1px solid var(--line); border-radius:50%; display:grid; place-items:center; color: var(--brass); transition: transform .45s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); font-family: var(--sans); position:relative; }
.acc-q:hover .pm { border-color: var(--brass); }
.acc-item.open .pm { background: var(--brass); color:#2A2008; border-color:var(--brass); transform: rotate(135deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.acc-a > div { padding: 0 14px 28px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease) .05s, transform .5s var(--ease) .05s; }
.acc-item.open .acc-a > div { opacity: 1; transform: none; }
.acc-a p { max-width: 75ch; margin: 0; }

/* ---------- form ---------- */
.form-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.field { display:flex; flex-direction:column; gap:8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing:.14em; text-transform:uppercase; color: var(--mist); }
.field label .req { color: var(--brass); }
.field input, .field select, .field textarea {
  background: var(--ink-2); border:1px solid var(--line); border-radius:3px; color: var(--white);
  padding: 14px 16px; font-family: var(--sans); font-size: 15px; transition:.25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--mist-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201,162,75,.14); }
.field textarea { resize: vertical; min-height: 130px; }
.dropzone { border:1.5px dashed var(--line); border-radius:4px; padding: 34px; text-align:center; cursor:pointer; transition:.25s var(--ease); background: rgba(20,32,58,.4); }
.dropzone:hover, .dropzone.drag { border-color: var(--brass); background: rgba(201,162,75,.06); }
.dropzone .di { color: var(--brass); margin: 0 auto 12px; }
.dropzone small { display:block; color: var(--mist-dim); font-size: 13px; margin-top: 6px; }
.filelist { margin-top: 12px; display:grid; gap:8px; }
.filelist .f { display:flex; justify-content:space-between; align-items:center; gap:12px; background: var(--ink-2); border:1px solid var(--line); border-radius:3px; padding:10px 14px; font-size:13px; font-family: var(--mono); }
.filelist .f button { background:none; border:0; color: var(--mist-dim); cursor:pointer; font-size:16px; }
.form-note { font-size:13px; color: var(--mist-dim); margin-top: 18px; }
.form-success { display:none; text-align:center; padding: 40px; border:1px solid var(--brass); border-radius:4px; background: rgba(201,162,75,.07); }
.form-success.show { display:block; }

/* ---------- testimonials ---------- */
.quote { background: var(--ink-2); border:1px solid var(--line); border-radius:4px; padding: 34px; position: relative; height:100%; display:flex; flex-direction:column; }
.quote .mark { font-family: var(--serif); font-size: 60px; color: var(--brass); line-height: .4; opacity:.5; }
.quote p { font-size: 16px; color: var(--mist); margin: 18px 0 28px; font-style: italic; text-align: justify; text-justify: inter-word; }
.quote .who { display:flex; align-items:center; gap:14px; margin-top:auto; padding-top: 4px; }
.quote .who .av { width:42px; height:42px; flex:0 0 42px; border-radius:50%; background: linear-gradient(135deg,var(--brass-lt),var(--brass-dp)); display:grid; place-items:center; color:#2A2008; font-family: var(--serif); font-weight:600; }
.quote .who .nm { color: var(--white); font-size: 14.5px; }
.quote .who .rl { color: var(--mist-dim); font-size: 12.5px; font-family: var(--mono); }

/* ---------- stats band ---------- */
.band { background: var(--ink-2); border-block: 1px solid var(--line); }
.band .grid { gap: 0; }
.band .s { text-align:center; padding: 18px; border-right: 1px solid var(--line); display:flex; flex-direction:column; justify-content:flex-start; }
.band .s:last-child { border-right: 0; }
.band .s .n { font-family: var(--serif); font-size: clamp(30px,4vw,46px); color: var(--brass-lt); white-space: nowrap; line-height:1.1; min-height: 1.1em; display:flex; align-items:center; justify-content:center; }
.band .s .l { font-family: var(--mono); font-size: 11.5px; letter-spacing:.14em; text-transform:uppercase; color: var(--mist-dim); margin-top: 10px; }

/* photographic stat band — perfectly aligned row */
.stat-band .stat-row { display:grid; grid-template-columns: repeat(4,1fr); gap:0; }
.stat-band .s { text-align:center; padding: 20px 14px; display:flex; flex-direction:column; align-items:center; }
.stat-band .s .n { font-family: var(--serif); font-size: clamp(30px,4vw,48px); color: var(--brass-lt); white-space: nowrap; line-height:1.05; }
.stat-band .s .l { font-family: var(--mono); font-size: 11.5px; letter-spacing:.14em; text-transform:uppercase; color: var(--mist); margin-top: 12px; }

/* ---------- cta band ---------- */
.cta-band { text-align:center; background:
  radial-gradient(80% 140% at 50% 0%, rgba(201,162,75,.12), transparent 60%), var(--ink-2);
  border:1px solid var(--line); border-radius:6px; padding: clamp(48px,7vw,84px); }
.cta-band .eyebrow { margin-bottom: 22px; }
.cta-band h2 { font-size: clamp(30px,4.6vw,52px); margin-bottom: 20px; }
.cta-band .lead { margin: 0 auto 34px; }
.cta-band.on-light h2 { color: var(--ink-text); }
.cta-band.on-light .lead { color: var(--ink-soft); }
.cta-band.on-light .eyebrow { color: var(--brass-dp); }
.cta-actions { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink-2); border-top: 1px solid var(--line); padding-top: 72px; }
.foot-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing:.18em; text-transform:uppercase; color: var(--mist-dim); margin-bottom: 18px; }
.foot-col a, .foot-col p { display:block; font-size: 14.5px; color: var(--mist); margin-bottom: 11px; transition: color .25s; }
.foot-col a:hover { color: var(--brass-lt); }
.foot-brand .name { font-family: var(--serif); font-size: 22px; color: var(--white); margin: 16px 0 10px; }
.foot-brand .name b { color: var(--brass-lt); }
.foot-brand p { max-width: 34ch; }
.foot-bottom { border-top: 1px solid var(--line); padding: 24px 0; display:flex; justify-content:space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--mist-dim); font-family: var(--mono); }

/* ---------- page hero (interior) ---------- */
.page-hero { padding-top: clamp(70px,8vw,104px); padding-bottom: clamp(56px,6vw,80px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .ph-bg { position:absolute; inset:0; z-index:0; }
.page-hero .ph-bg img { width:100%; height:100%; object-fit:cover; filter: brightness(.5) saturate(.8); }
.page-hero .ph-bg::after { content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(11,18,32,.82), rgba(11,18,32,.62) 55%, rgba(11,18,32,.92)),
    linear-gradient(90deg, rgba(11,18,32,.85), rgba(11,18,32,.35) 75%),
    radial-gradient(90% 90% at 90% 10%, rgba(201,162,75,.14), transparent 60%); }
.page-hero .ph-bg::before { content:""; position:absolute; inset:0; opacity:.4;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 100% at 50% 0%, #000, transparent 80%);
          mask-image: radial-gradient(80% 100% at 50% 0%, #000, transparent 80%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(38px,6vw,68px); margin: 22px 0 20px; }
.crumb { font-family: var(--mono); font-size: 12px; letter-spacing:.12em; color: var(--mist-dim); text-transform: uppercase; }
.crumb a:hover { color: var(--brass-lt); }

/* ---------- reveal animation (premium roll-in) ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(.985); filter: blur(4px);
  transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; filter: none; }
/* directional variants */
.reveal-l { opacity:0; transform: translateX(-40px); filter: blur(4px);
  transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
.reveal-l.in { opacity:1; transform:none; filter:none; }
.reveal-r { opacity:0; transform: translateX(40px); filter: blur(4px);
  transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
.reveal-r.in { opacity:1; transform:none; filter:none; }

/* gentle continuous float (premium, subtle) */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.float { animation: floaty 6s ease-in-out infinite; }
.float-slow { animation: floaty 8.5s ease-in-out infinite; }
@keyframes floatyTag { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .menu, .nav-cta .btn { display: none; }
  .burger { display: block; }
  .menu.mobile-open {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(84vw, 360px);
    background: #0A1018; border-left: 1px solid var(--line);
    padding: 100px 24px 32px; gap: 0; overflow-y: auto; z-index: 80;
    box-shadow: -30px 0 70px -20px rgba(0,0,0,.7);
    animation: drawerIn .35s var(--ease);
    isolation: isolate;
  }
  .menu.mobile-open::before {
    content:""; position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 360px);
    background: #0A1018; z-index: -1;
  }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(6,10,18,.62);
    backdrop-filter: blur(2px); z-index: 70; border: 0;
    animation: fadeIn .35s var(--ease);
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
  .menu.mobile-open > a, .menu.mobile-open .has-sub > a {
    padding: 16px 4px; font-size: 17px; border-bottom: 1px solid var(--line); justify-content: space-between;
  }
  .menu.mobile-open > a::after, .menu.mobile-open .has-sub > a::after { display: none; }
  .menu.mobile-open .has-sub::before { display: none; }
  .menu.mobile-open .dropdown {
    position: static; opacity:1; visibility:visible; transform:none; box-shadow:none;
    border:0; background:none; padding: 4px 0 8px 12px; min-width: 0;
  }
  .menu.mobile-open .dropdown::before { display: none; }
  .menu.mobile-open .dropdown a { padding: 10px 8px; }
  .menu.mobile-open .dropdown a span { display: none; }
}
/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .blueprint { max-width: 460px; margin: 0 auto; }
  .cols-3, .cols-4, .fee-grid, .steps, .foot-grid, .stat-band .stat-row { grid-template-columns: repeat(2,1fr); }
  .steps .step { padding-right: 18px; }
}
@media (max-width: 760px) {
  .cols-3, .cols-4, .cols-2, .fee-grid, .steps, .form-grid, .foot-grid, .band .grid, .stat-band .stat-row { grid-template-columns: 1fr; }
  .band .s { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-meta { gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-l, .reveal-r { opacity: 1; transform: none; filter: none; }
  .float, .float-slow { animation: none; }
}

/* ---------- mobile drawer: escape backdrop-filter stacking trap ---------- */
@media (max-width: 1080px) {
  /* When the drawer is open, drop the header's backdrop-filter so the
     fixed-position drawer paints correctly in all engines. */
  .site-head:has(.menu.mobile-open) {
    backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent;
  }
  .menu.mobile-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ============================================================
   PHOTOGRAPHIC THEME LAYER — premium imagery treatments
   ============================================================ */

/* duotone-ish image frame: photos sit under a brass/ink wash so they
   feel art-directed rather than stock */
.ph { position: relative; overflow: hidden; border-radius: 6px; isolation: isolate; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.92) contrast(1.04) brightness(.92); transition: transform 1.1s var(--ease); }
.ph::after { content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(150deg, rgba(11,18,32,.30), rgba(11,18,32,.05) 40%, rgba(201,162,75,.16)); }
.ph:hover img { transform: scale(1.05); }
.ph .ph-tag { position:absolute; z-index:2; bottom:14px; left:16px;
  font-family: var(--mono); font-size:11px; letter-spacing:.18em; text-transform:uppercase;
  color:#fff; padding:7px 12px; background: rgba(8,12,20,.55); border:1px solid rgba(201,162,75,.4);
  border-radius:3px; backdrop-filter: blur(6px); animation: floatyTag 5.5s ease-in-out infinite; }

/* ---------- photographic hero ---------- */
.hero-photo { position: relative; min-height: 92vh; display:flex; align-items:center;
  overflow:hidden; border-bottom:1px solid var(--line); padding-block: clamp(110px, 14vh, 180px); }
.hero-photo .bg { position:absolute; inset:0; z-index:0; }
.hero-photo .bg img { width:100%; height:100%; object-fit:cover;
  filter: saturate(.85) contrast(1.05) brightness(.55); transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero-photo .bg::after { content:""; position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(7,11,20,.94) 0%, rgba(7,11,20,.78) 38%, rgba(7,11,20,.35) 70%, rgba(7,11,20,.55) 100%),
    radial-gradient(120% 80% at 0% 50%, rgba(201,162,75,.14), transparent 55%); }
.hero-photo .bg::before { content:""; position:absolute; inset:0; z-index:1; opacity:.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(80% 80% at 20% 50%, #000, transparent 75%);
          mask-image: radial-gradient(80% 80% at 20% 50%, #000, transparent 75%); }
.hero-photo .wrap { position:relative; z-index:2; width:100%; }
.hero-photo .inner { max-width: 760px; }
.hero-photo h1 { font-size: clamp(44px, 7.2vw, 92px); margin: 26px 0; }
.hero-photo h1 em { font-style: italic; color: var(--brass-lt); }
.hero-photo .lead { font-size: clamp(17px,2vw,21px); margin-bottom: 38px; max-width: 56ch; }
.hero-actions { display:flex; gap:16px; flex-wrap:wrap; }
.hero-photo .hero-meta { margin-top: 54px; }

/* floating credential chip on hero */
.hero-badge { position:absolute; z-index:3; right: var(--gut); bottom: 48px;
  display:flex; align-items:center; gap:14px; padding:16px 20px;
  background: rgba(10,15,26,.6); border:1px solid var(--line); border-radius:6px;
  backdrop-filter: blur(12px); max-width: 280px; }
.hero-badge .ic { width:42px;height:42px;flex:0 0 auto;border-radius:50%;
  background:linear-gradient(135deg,var(--brass-lt),var(--brass-dp)); display:grid;place-items:center;color:#2A2008; }
.hero-badge .tx b { color:#fff; font-family:var(--serif); font-size:15px; display:block; }
.hero-badge .tx span { color:var(--mist-dim); font-size:12px; }
@media (max-width: 900px){ .hero-badge{ display:none; } .hero-photo{ min-height:76vh; } }

/* ---------- editorial split with photo ---------- */
.media-split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,64px); align-items:center; }
.media-split .ph { aspect-ratio: 4/3.2; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.media-split.flip .copy { order:-1; }
@media (max-width: 900px){ .media-split{ grid-template-columns:1fr; } .media-split.flip .copy{ order:0; } }

/* ---------- trade gallery cards (photo) ---------- */
.trade-card { position:relative; overflow:hidden; border-radius:6px; aspect-ratio: 3/4; isolation:isolate;
  border:1px solid var(--line); }
.trade-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  filter: saturate(.9) brightness(.7); transition: transform 1s var(--ease), filter 1s var(--ease); z-index:0; }
.trade-card::after { content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(7,11,20,.15) 20%, rgba(7,11,20,.65) 58%, rgba(7,11,20,.96)); }
.trade-card:hover img { transform: scale(1.07); filter: saturate(1) brightness(.78); }
.trade-card .body { position:absolute; z-index:2; left:0; right:0; bottom:0; padding: 26px 24px; }
.trade-card .k { font-family:var(--mono); font-size:11px; letter-spacing:.18em; color:var(--brass-lt); text-transform:uppercase; display:block; min-height: 14px; }
.trade-card h3 { font-size:22px; color:#fff; margin:10px 0 8px; }
.trade-card p { font-size:13.5px; color:var(--mist); opacity:1; line-height:1.5; max-width: 40ch; min-height: 84px; margin:0; }
.trade-card:hover p { color:#cfd8e6; }
.trade-card .body::before { content:""; display:block; width:34px; height:2px; background:var(--brass); margin-bottom:16px; }

/* photo strip band */
.photo-band { position:relative; min-height: 360px; display:flex; align-items:center; overflow:hidden; }
.photo-band .bg { position:absolute; inset:0; z-index:0; }
.photo-band .bg img { width:100%;height:100%;object-fit:cover; filter: brightness(.4) saturate(.85); }
.photo-band .bg::after { content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(7,11,20,.9), rgba(7,11,20,.55)),
    radial-gradient(100% 100% at 100% 0, rgba(201,162,75,.18), transparent 60%); }
.photo-band .wrap { position:relative; z-index:1; }

/* ---------- justified body copy for neat block edges ---------- */
.split p:not(.lead), .split .lead,
.photo-band p, .photo-band .lead,
.media-split p, .media-split .lead { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }
/* don't justify very short single-line intros or list items */
.split li, .photo-band .eyebrow { text-align: left; -webkit-hyphens: none; hyphens: none; }

/* ---------- contact split: balanced columns ---------- */
.contact-split { align-items: start; }
.contact-info { display:flex; flex-direction:column; }
.contact-cards { display:flex; flex-direction:column; gap:16px; }
.contact-cards .card { padding:22px 24px; display:flex; flex-direction:column; gap:8px; }
.contact-cards .card .ico { margin-bottom: 4px; }
.contact-form { background:var(--ink-2); border:1px solid var(--line); border-radius:6px; padding:clamp(28px,4vw,44px); display:flex; flex-direction:column; position:sticky; top:100px; }
.contact-form form { display:flex; flex-direction:column; }
@media (max-width: 900px){
  .contact-form { position:static; }
}

/* ============================================================
   ESTIMATE SAMPLE DOCUMENTS (portfolio previews)
   ============================================================ */
.sample-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px){ .sample-grid { grid-template-columns: 1fr; } }

.doc {
  background: #FBFAF6; color: #1B2436; border-radius: 6px; overflow:hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); border:1px solid rgba(0,0,0,.08);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  display:flex; flex-direction:column; position:relative;
}
.doc:hover { transform: translateY(-6px); box-shadow: 0 44px 90px -34px rgba(0,0,0,.8); }
.doc-head { background: var(--ink); color:#fff; padding: 20px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.doc-head .dh-l { display:flex; align-items:center; gap:12px; }
.doc-head .dh-logo { width:54px; height:28px; flex:0 0 auto; }
.doc-head .dh-t { font-family: var(--serif); font-size:15px; line-height:1.1; }
.doc-head .dh-t span { display:block; font-family: var(--mono); font-size:9px; letter-spacing:.2em; color: var(--brass-lt); text-transform:uppercase; margin-top:3px; }
.doc-head .dh-tag { font-family: var(--mono); font-size:9.5px; letter-spacing:.16em; text-transform:uppercase; color:#2A2008; background: var(--brass-lt); padding:5px 9px; border-radius:3px; white-space:nowrap; }
.doc-meta { display:grid; grid-template-columns: repeat(3,1fr); gap:1px; background: rgba(0,0,0,.07); border-bottom:1px solid rgba(0,0,0,.08); }
.doc-meta div { background:#FBFAF6; padding: 11px 14px; }
.doc-meta .ml { font-family: var(--mono); font-size:8.5px; letter-spacing:.14em; text-transform:uppercase; color:#8A93A3; }
.doc-meta .mv { font-size:12.5px; font-weight:600; color:#1B2436; margin-top:3px; }
.doc-table { padding: 8px 24px 4px; flex:1 1 auto; }
.doc-row { display:grid; grid-template-columns: 1fr auto auto; gap:14px; padding:9px 0; border-bottom:1px solid rgba(0,0,0,.07); align-items:center; }
.doc-row.h { border-bottom:1.5px solid rgba(27,36,54,.25); padding-bottom:7px; }
.doc-row.h span { font-family: var(--mono); font-size:8.5px; letter-spacing:.12em; text-transform:uppercase; color:#8A93A3; }
.doc-row .desc { font-size:12.5px; color:#33405A; }
.doc-row .desc b { color:#1B2436; font-weight:600; }
.doc-row .qty { font-size:11.5px; color:#6A7488; font-variant-numeric: tabular-nums; text-align:right; white-space:nowrap; }
.doc-row .amt { font-size:12.5px; color:#1B2436; font-weight:600; font-variant-numeric: tabular-nums; text-align:right; white-space:nowrap; }
.doc-total { display:flex; align-items:center; justify-content:space-between; padding: 16px 24px; background: linear-gradient(90deg, rgba(201,162,75,.12), rgba(201,162,75,.04)); border-top:1.5px solid rgba(27,36,54,.22); }
.doc-total .tl { font-family: var(--mono); font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:#5A6378; }
.doc-total .tv { font-family: var(--serif); font-size:22px; color:#1B2436; font-variant-numeric: tabular-nums; }
.doc-foot { display:flex; align-items:center; justify-content:space-between; padding: 10px 24px; background:#F0ECE0; }
.doc-foot span { font-family: var(--mono); font-size:9px; letter-spacing:.12em; text-transform:uppercase; color:#8A93A3; }

/* small disclaimer ribbon */
.sample-note { font-size:13px; color:var(--mist-dim); text-align:center; margin-top:30px; }
.sample-note a { color: var(--brass-lt); }

/* ---------- brand logo: keep detail legible, scale on small screens ---------- */
@media (max-width: 520px) {
  .brand { gap: 11px; }
  .brand img { width: 82px; height: 43px; }
  .site-head.scrolled .brand img { width: 74px; height: 38px; }
  .brand .name { font-size: 21px; }
  .brand .sub { font-size: 8.5px; letter-spacing: .3em; margin-top: 5px; }
}
@media (max-width: 400px) {
  /* below this the wordmark and mark compete; drop the mark's stroke detail */
  .brand img { width: 70px; height: 36px; }
  .brand .sub { letter-spacing: .24em; }
}
