/* GraySky Renovations — "Storm" design, dark default with a light mode.
   All theming rides these tokens; never hardcode a surface/ink color below. */

:root {
  --bg: #1c1e22;
  --bg-2: #26282d;
  --bg-card: #232529;
  --bg-deep: #141619;
  --ink: #edecea;
  --ink-2: #bcbcb8;
  --ink-3: #a5a5a1;
  --muted: #8c8c88;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.08);
  --accent: #5b7183;          /* mockup slate button */
  --on-accent: #ffffff;
  --accent-text: #97aabb;     /* colored text on background */
  --hero-grad: var(--bg);
  /* full-bleed hero photo overlay: strong dark left where the text sits,
     open middle, slight re-darken at the right edge (mockup treatment) */
  --hero-l1: rgba(12, 13, 15, 0.93);
  --hero-l2: rgba(18, 20, 23, 0.48);
  --hero-l3: rgba(14, 16, 19, 0.32);
  --hero-veil: rgba(15, 16, 18, 0.86);  /* mobile full-bleed veil */
  --hero-top-scrim: rgba(12, 13, 15, 0.55);
  --header-bg: rgba(18, 20, 23, 0.72);
  --ba-before: linear-gradient(160deg, #2b2e33 0%, #222429 100%);
  --ba-after: linear-gradient(160deg, #474c54 0%, #343940 100%);
  --scrollbar: #3c4148;
  --ghost-ink: rgba(255, 255, 255, 0.055);
  --grain-o: 0.06;
  --tex-o: 0.17;                        /* cloud-mottle strength per section */
  --glow: rgba(138, 162, 181, 0.05);    /* steel wash behind sections */
  --card-grad: linear-gradient(170deg, #2a2c31 0%, #232529 60%);
  --skyline: #35383e;
  --skyline-cloud: rgba(255, 255, 255, 0.05);
  --frame-line: rgba(216, 211, 202, 0.38);
  --frame-line-2: rgba(216, 211, 202, 0.16);
  /* large-scale storm mottle; same tile both themes, opacity does the theming */
  --clouds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='900' height='900' filter='url(%23c)'/%3E%3C/svg%3E");
  --cta-grad:
    radial-gradient(ellipse 800px 360px at 82% 115%, rgba(106, 138, 166, 0.06), transparent 60%),
    radial-gradient(ellipse 1000px 400px at 50% 120%, #303338 0%, #202226 70%);
  --ph-grad: linear-gradient(165deg, #34373d 0%, #2a2d32 55%, #222429 100%);
  --shadow-hero: 0 2px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg: #f5f4f2;
  --bg-2: #ffffff;
  --bg-card: #ffffff;
  --bg-deep: #ffffff;
  --ink: #16181b;
  --ink-2: #40454a;
  --ink-3: #5c6167;
  --muted: #6d7378;
  --line: #e3e1dd;
  --line-2: #eae8e4;
  --accent: #54718a;
  --on-accent: #ffffff;
  --accent-text: #4d6a85;
  --hero-grad: var(--bg);
  --hero-l1: rgba(243, 242, 240, 0.95);
  --hero-l2: rgba(244, 243, 241, 0.55);
  --hero-l3: rgba(243, 242, 240, 0.35);
  --hero-veil: rgba(245, 244, 242, 0.88);
  --hero-top-scrim: rgba(245, 244, 242, 0.6);
  --header-bg: rgba(245, 244, 242, 0.78);
  --ba-before: linear-gradient(160deg, #c6c9cc 0%, #b7bbbe 100%);
  --ba-after: linear-gradient(160deg, #f4f3f0 0%, #e3e3e0 100%);
  --scrollbar: #c3c5c8;
  --ghost-ink: rgba(20, 22, 25, 0.05);
  --grain-o: 0.04;
  --tex-o: 0.05;
  --glow: rgba(84, 113, 138, 0.07);
  --card-grad: linear-gradient(170deg, #ffffff 0%, #f7f6f3 70%);
  --skyline: #d2d5d7;
  --skyline-cloud: rgba(22, 24, 27, 0.05);
  --frame-line: rgba(40, 45, 50, 0.35);
  --frame-line-2: rgba(40, 45, 50, 0.14);
  --cta-grad:
    radial-gradient(ellipse 800px 360px at 82% 115%, rgba(84, 113, 138, 0.08), transparent 60%),
    radial-gradient(ellipse 1000px 400px at 50% 120%, #e2e4e5 0%, #f5f4f2 70%);
  --ph-grad: linear-gradient(165deg, #dcdddc 0%, #c9cccd 55%, #b3b8bc 100%);
  --shadow-hero: none;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
html { scrollbar-width: thin; scrollbar-color: var(--scrollbar) transparent; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar); border-radius: 6px;
  border: 3px solid transparent; background-clip: content-box;
}

.disp {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
}
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* Site-wide texture: fine film grain fixed over everything… */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: var(--grain-o); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
/* …and large-scale storm mottle behind every section */
.services, .projects, .about, .contact, footer { position: relative; }
.services::before, .projects::before, .about::before, .contact::before, footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--clouds); background-size: 1100px 1100px;
  opacity: var(--tex-o); mix-blend-mode: overlay;
}
.kicker { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase; font-weight: 600; font-size: 16px; letter-spacing: 0.24em; color: var(--accent-text); }
.section-title { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase; font-weight: 700; font-size: clamp(30px, 4vw, 44px); letter-spacing: 0.02em; }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-weight: 700; font-size: 17px; letter-spacing: 0.1em;
  padding: 15px 28px; min-height: 44px; cursor: pointer; text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, filter 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transition: none; transform: none; box-shadow: none; }
}

/* ---- Header: transparent over the hero, frosted once scrolled ---- */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
#site-header.scrolled, #site-header.nav-open {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-2);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; max-width: 1360px; margin: 0 auto; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { display: block; height: 42px; width: auto; }
[data-theme="light"] .mark-light { display: none; }
:root:not([data-theme="light"]) .mark-dark { display: none; }
.wordmark {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 600; font-size: 13px; letter-spacing: 0.26em; color: var(--ink);
  text-transform: uppercase; line-height: 1;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  position: relative;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-weight: 600; font-size: 16px; letter-spacing: 0.12em; color: var(--ink-2);
  padding: 10px 2px;
  transition: color 0.2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 5px; height: 1.5px;
  background: var(--accent-text); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover, .nav a.active { color: var(--ink); text-decoration: none; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .nav a::after { transition: none; } }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent; color: var(--ink);
  border: none; cursor: pointer; border-radius: 50%;
  transition: background 0.2s ease;
}
.icon-btn:hover { background: var(--line-2); }
.header-phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 600; font-size: 17px; letter-spacing: 0.1em; color: var(--ink);
  padding: 10px 4px;
}
.header-phone:hover { color: var(--accent-text); text-decoration: none; }
.header-phone svg { flex: none; }
@media (max-width: 560px) { .header-phone { display: none; } }
#theme-toggle .sun { display: none; }
#theme-toggle .moon { display: block; }
[data-theme="light"] #theme-toggle .sun { display: block; }
[data-theme="light"] #theme-toggle .moon { display: none; }
#menu-toggle { display: none; }

/* ---- Hero (full-bleed photo, mockup treatment) ---- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-grad);
  padding: 190px 24px 110px;
  min-height: 660px; display: flex; align-items: center;
}
.hero-art { position: absolute; inset: 0; z-index: 1; }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 24%; display: block;
  filter: saturate(0.92);
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--hero-l1) 0%, var(--hero-l1) 14%, var(--hero-l2) 52%, transparent 76%, var(--hero-l3) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 15%),
    linear-gradient(to bottom, var(--hero-top-scrim) 0%, transparent 130px);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: rise 0.7s ease-out both; }
  .hero-in > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-in > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-in > *:nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
.hero-in {
  position: relative; z-index: 3; width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  gap: 22px; max-width: 1240px; margin: 0 auto;
}
.hero h1 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-weight: 700; font-size: clamp(44px, 6.8vw, 80px); line-height: 1.0;
  letter-spacing: 0.005em; text-shadow: var(--shadow-hero);
}
.hero .sub { font-size: 21px; color: var(--ink-2); letter-spacing: 0.01em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.hero-cred {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: 0.3em; margin-top: 2px;
}
@media (max-width: 900px) {
  .hero { padding: 150px 20px 76px; min-height: 0; }
  .hero-art::after { background: var(--hero-veil); }
  .hero-in { align-items: center; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-cred { letter-spacing: 0.2em; }
}

/* ---- Services band (mockup: ruled heading, divided icon row) ---- */
.services {
  padding: 66px 0 58px;
  background: var(--bg-2);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.band-head { display: flex; align-items: center; gap: 28px; margin-bottom: 48px; }
.band-head::before, .band-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.band-title {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-weight: 600; font-size: 19px; letter-spacing: 0.34em; color: var(--ink-2);
  white-space: nowrap;
}
.band-title-solo { display: block; text-align: center; }
.svc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  padding: 10px 12px; border-left: 1px solid var(--line);
}
.svc:first-child { border-left: none; }
.svc svg { color: var(--ink-2); display: block; transition: transform 0.25s ease, color 0.25s ease; }
.svc:hover svg { transform: translateY(-4px); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .svc svg, .svc:hover svg { transition: none; transform: none; } }
.svc svg .acc { stroke: var(--accent-text); }
.svc h3 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-weight: 600; font-size: 17px; letter-spacing: 0.3em; color: var(--ink);
}
@media (max-width: 760px) {
  .svc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .svc:nth-child(odd) { border-left: none; }
}

/* ---- Selected projects ---- */
.projects { padding: 100px 0 112px; background: var(--bg); }
.proj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.frame {
  position: relative; aspect-ratio: 4 / 3; background: var(--ph-grad);
  border: 1px solid var(--frame-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.frame::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--frame-line-2); pointer-events: none; }
.ph-label {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
  letter-spacing: 0.16em; font-weight: 600; color: var(--muted); font-size: 12px;
}
.frame small { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- About ---- */
.about {
  background: radial-gradient(900px 420px at 88% 4%, var(--glow), transparent 60%), var(--bg-2);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 112px 0;
}
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.about-copy { display: flex; flex-direction: column; gap: 20px; }
.about h2.section-title { line-height: 1.02; }
.about .lede { color: var(--ink-2); line-height: 1.65; }
.pull-quote { border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; margin-top: 6px; }
.pull-quote p { font-size: 18px; line-height: 1.55; font-style: italic; color: var(--ink); }
.pull-quote cite {
  display: block; font-style: normal; font-size: 14px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--accent-text); text-transform: uppercase; margin-top: 8px;
}
.about-art { border: 1px solid var(--line); display: block; width: 100%; height: auto; }

/* ---- Closing band (mockup footer band: skyline corners + slogan) ---- */
.closer { position: relative; padding: 76px 24px 64px; overflow: hidden; }
.closer-in {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
  text-align: center;
}
.closer h2 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-weight: 700; font-size: clamp(26px, 3.6vw, 40px); letter-spacing: 0.04em;
}
.vrule { width: 1px; height: 34px; background: var(--line); }
.closer .loc {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-weight: 600; font-size: 15px; letter-spacing: 0.32em; color: var(--ink-2);
}
.corner-sky { position: absolute; bottom: -4px; width: 340px; max-width: 38vw; opacity: 0.65; pointer-events: none; }
.corner-sky svg { display: block; width: 100%; height: auto; }
.corner-sky .sk { fill: var(--skyline); }
.corner-sky .towers { filter: blur(1.1px); }
.corner-sky .fog { fill: var(--skyline-cloud); filter: blur(12px); }
.corner-sky.left { left: -14px; }
.corner-sky.right { right: -14px; transform: scaleX(-1); }

/* ---- Contact / CTA ---- */
.contact { background: var(--cta-grad); border-top: 1px solid var(--line-2); padding: 0 0 108px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 16px; }
.contact-copy .sub { color: var(--ink-2); max-width: 480px; }
.contact-lines { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.contact-line { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--ink); }
.contact-line svg { color: var(--accent-text); flex: none; }
.contact-line a { color: var(--ink); font-weight: 600; }
.estimate {
  background: var(--card-grad); border: 1px solid var(--line); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.estimate h3 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-weight: 700; font-size: 22px; letter-spacing: 0.06em;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-2); text-transform: uppercase; font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; }
.field input, .field textarea {
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  padding: 12px 14px; font: inherit; font-size: 16px; min-height: 44px;
  transition: border-color 0.2s ease;
}
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 0; border-color: transparent; }
.estimate .note { font-size: 13px; color: var(--muted); }

/* ---- Footer (statement footer: giant ghosted brand line above the columns) ---- */
footer { background: radial-gradient(900px 300px at 50% -60px, var(--glow), transparent 60%), var(--bg-deep); overflow: hidden; }
.footer-state {
  position: relative; z-index: 1;
  max-width: 1360px; margin: 0 auto; padding: 72px 24px 0;
}
.footer-state span {
  display: block;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-weight: 700; font-size: clamp(56px, 8.6vw, 124px); line-height: 0.92;
  letter-spacing: 0.01em; color: var(--ghost-ink);
  user-select: none;
}
.footer-in { position: relative; z-index: 1; padding: 56px 24px 48px; max-width: 1360px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.footer-brand .mark { height: 56px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-weight: 700; font-size: 15px; letter-spacing: 0.16em; color: var(--ink-2);
}
.footer-col span, .footer-col a { font-size: 15px; color: var(--ink-3); }
.footer-bar { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 16px 24px; max-width: 1360px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bar span, .footer-bar a { font-size: 13px; color: var(--muted); }

/* ---- Scroll reveals (JS adds html.js; content always visible without it) ---- */
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Before / after compare slider ---- */
.ba {
  position: relative; aspect-ratio: 21 / 9; margin-bottom: 18px;
  border: 1px solid var(--frame-line); overflow: hidden; touch-action: none;
}
.ba::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--frame-line-2); pointer-events: none; }
.ba-pane {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.ba-before { background: var(--ba-before); }
.ba-after { background: var(--ba-after); clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-after .ph-label { color: var(--ink-3); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: var(--ink); transform: translateX(-50%); pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba:focus-within { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ba-tag {
  position: absolute; bottom: 14px;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-weight: 600; font-size: 13px; letter-spacing: 0.22em; color: var(--ink-3);
  pointer-events: none;
}
.ba-tag-l { left: 18px; }
.ba-tag-r { right: 18px; }
@media (max-width: 700px) { .ba { aspect-ratio: 4 / 3; } }

/* ---- Sticky mobile call bar ---- */
.callbar { display: none; }
@media (max-width: 900px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: flex; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-2);
  }
  .callbar .btn { flex: 1; font-size: 15px; padding: 13px 10px; }
  body { padding-bottom: 76px; }
}

/* ---- Mobile rhythm (tighter than desktop's generous air) ---- */
@media (max-width: 900px) {
  .services { padding: 48px 0 44px; }
  .projects { padding: 64px 0 72px; }
  .about { padding: 72px 0; }
  .closer { padding: 56px 20px 48px; }
  .contact { padding-bottom: 72px; }
  .footer-state { padding-top: 48px; }
}

/* ---- Legal pages ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase; font-size: 40px; margin-bottom: 16px; }
.legal h2 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase; font-size: 22px; margin: 28px 0 8px; }
.legal p { margin-bottom: 12px; color: var(--ink-2); }

/* ---- Simple holding/404 ---- */
.holding { min-height: 60svh; display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.holding h1 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase; font-size: clamp(28px, 5vw, 44px); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-deep); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-2); }
  .nav-open .nav { display: flex; }
  #menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  .wordmark { font-size: 16px; letter-spacing: 0.12em; }
  .brand .mark { height: 36px; }
  .hero { padding: 72px 20px 64px; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas { flex-direction: column; align-self: stretch; }
  .estimate { padding: 22px; }
}
