/* Self-hosted fonts (latin subset), downloaded from Google Fonts. Licensed under the SIL Open Font License. */
@font-face{
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/assets/fonts/big-shoulders-display.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jost-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Kalin Group LLC — site styles
   Tokens and sizes follow design_handoff_kalin_group_website/README.md.
   Desktop sizes are the design's 1440px values; clamp() scales them down. */

:root {
  --sand: #F4EEE3;
  --card: #FBF8F2;
  --alt: #EBE3D5;
  --ph: #E8DFCF;
  --stripe: #DDD2BF;
  --ink: #27221C;
  --black: #1E1B17;
  --body: #4A4238;
  --muted: #6E6456;
  --label: #8A6B4A;
  --accent: #3A7CB8;          /* coastal blue: headline accents, numbers, buttons */
  --link: #255C8C;            /* links and small accent text on the sand background */
  --accent-on-dark: #6FA8DC;  /* lighter blue so small labels stay readable on dark bands */
  --grad-from: #5B9BD5;       /* light end of the gradient button */
  --on-accent: #FFFFFF;       /* text on accent-colored buttons */
  --hdr-bg: #1E1B17; --logo: #FFFFFF; --sub: var(--accent-on-dark);
  --menu-line: #F4EEE3; --cta-bg: var(--accent); --cta-fg: #FFFFFF;
  --rule: #CFC3AE;
  --on-dark: #D3C9B8;
  --rule-dark: #4A4238;
  --error: #9B2C1F;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --px: clamp(20px, 4.45vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; transition: color .15s; }
a:hover { color: var(--black); }
h1, h2, h3, p { margin: 0; }
/* Keyword H1 styled as the small label above the big headline (the headline itself is an H2) */
h1.eyebrow { font-weight: 400; line-height: 1.4; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
input, textarea, select, button { font: inherit; }
main, .site-footer { max-width: 1440px; margin: 0 auto; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--black); color: #fff; padding: 12px 16px; border-radius: 2px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Type ---------- */
.d { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .9; }
.d-700 { font-weight: 700; }
.t-104 { font-size: clamp(50px, 7.22vw, 104px); line-height: .88; }
.t-96  { font-size: clamp(48px, 6.67vw, 96px);  line-height: .88; }
.t-80  { font-size: clamp(44px, 5.56vw, 80px);  line-height: .9; }
.t-72  { font-size: clamp(42px, 5vw, 72px);     line-height: .9; }
.t-64  { font-size: clamp(40px, 4.45vw, 64px);  line-height: .92; }
.t-56  { font-size: clamp(36px, 3.9vw, 56px);   line-height: .92; }
.t-48  { font-size: clamp(34px, 3.34vw, 48px);  line-height: .95; }
.t-44  { font-size: clamp(32px, 3.06vw, 44px);  line-height: 1; }
.t-40  { font-size: clamp(30px, 2.78vw, 40px);  line-height: .95; }
.t-32  { font-size: clamp(26px, 2.23vw, 32px);  line-height: 1; }
.accent { color: var(--accent); }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--label); text-transform: uppercase; }
.band-dark .eyebrow { color: var(--accent); }
.label { font-family: var(--mono); font-size: 11px; color: var(--label); text-transform: uppercase; }

.p-21 { font-size: 21px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.p-19 { font-size: 19px; line-height: 1.6;  color: var(--body); text-wrap: pretty; }
.p-18 { font-size: 18px; line-height: 1.6;  color: var(--body); text-wrap: pretty; }
.p-17 { font-size: 17px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.p-16 { font-size: 16px; line-height: 1.65; color: var(--body); }
.p-15 { font-size: 15px; line-height: 1.6;  color: var(--body); }
.lh-17 { line-height: 1.7; }
.band-dark .p-16, .band-dark .p-17 { color: var(--on-dark); }
.strong { font-weight: 600; }

/* ---------- Layout helpers ---------- */
.sec { padding: var(--py, 112px) var(--px); }
.py-144 { --py: clamp(72px, 10vw, 144px); }
.py-128 { --py: clamp(72px, 8.9vw, 128px); }
.py-112 { --py: clamp(64px, 7.8vw, 112px); }
.py-96  { --py: clamp(56px, 6.67vw, 96px); }
.py-80  { --py: clamp(56px, 5.56vw, 80px); }

.stack { display: flex; flex-direction: column; gap: var(--s, 24px); }
.grid { display: grid; gap: var(--gap, 64px); }
.g-4-8 { grid-template-columns: 4fr 8fr; }
.g-1-1 { grid-template-columns: 1fr 1fr; }
.g-5-7 { grid-template-columns: 5fr 7fr; }
.g-3   { grid-template-columns: repeat(3, 1fr); }
.al-end { align-items: end; }
.al-center { align-items: center; }

.band-dark { background: var(--ink); color: var(--sand); }
.band-alt  { background: var(--alt); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 30px; font-weight: 600; font-size: 16px; line-height: 1.2;
  border: 0; border-radius: 2px; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, filter .15s, color .15s;
}
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #3A332B; color: #fff; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { filter: brightness(1.08); color: var(--on-accent); }
/* Design used white text on the gradient; dark text is used here for contrast (README suggestion). */
.btn-gradient { background: linear-gradient(135deg, var(--grad-from) 0%, var(--accent) 100%); color: var(--on-accent); }
.btn-gradient:hover { filter: brightness(1.06); color: var(--on-accent); }
.btn-text { padding: 18px 8px; color: var(--ink); font-weight: 500; }
.btn-text:hover { color: var(--link); }
.btn-block { width: 100%; padding: 18px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn {
  background: none; border: 0; padding: 0; color: var(--link); font-size: 15px;
  cursor: pointer; font-family: var(--sans); align-self: flex-start;
}
.link-btn:hover { color: var(--black); }

/* ---------- Header ---------- */
.band-dark :is(.eyebrow, .proc-n, .quote-by, .step-n) { color: var(--accent-on-dark); }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--hdr-bg); }
.site-header .bar {
  position: relative; max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px 28px; padding: 18px clamp(20px, 4vw, 64px);
}
/* Logo 5A: mark + wordmark. The wordmark matches the logo files (Jost, widely spaced). */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 46px; height: 46px; flex: none; }
.logo-text { display: flex; flex-direction: column; gap: 5px; }
.logo-name {
  font-family: 'Jost', var(--sans); font-weight: 500; font-size: 22px; line-height: 1;
  letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; white-space: nowrap; color: var(--logo);
}
.logo-sub {
  font-family: var(--mono); font-weight: 500; font-size: 10.5px;
  letter-spacing: .38em; text-transform: uppercase; color: #C9A26A;
}
.nav-panel { display: contents; }
.nav {
  display: flex; flex-wrap: wrap; gap: 8px clamp(16px, 2.2vw, 40px);
  font-family: var(--display); font-weight: 700; font-size: 21px;
  letter-spacing: .06em; text-transform: uppercase;
}
.nav a { color: #fff; padding-bottom: 3px; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .45); }
.nav a[aria-current="page"] { border-bottom-color: #fff; }
.hdr-actions { display: flex; gap: 12px; align-items: center; }
.btn-cta {
  background: var(--cta-bg); color: var(--cta-fg);
  padding: 12px 20px; font-weight: 600; border-radius: 2px; white-space: nowrap;
  transition: filter .15s;
}
.btn-cta:hover { color: var(--cta-fg); filter: brightness(1.15); }
.menu-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1.5px solid var(--menu-line); color: var(--logo);
  padding: 10px 14px; border-radius: 2px; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.site-header.open .menu-icon { background: transparent; }
.site-header.open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.site-header.open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Tablets keep the full menu, just tighter. */
@media (min-width: 768px) and (max-width: 1180px) {
  .site-header .bar { gap: 12px 18px; }
  .logo { gap: 9px; }
  .logo-mark { width: 38px; height: 38px; }
  .logo-name { font-size: 16px; letter-spacing: .2em; margin-right: -.2em; }
  .logo-sub { font-size: 8.5px; letter-spacing: .3em; }
  .nav { gap: 6px clamp(12px, 1.6vw, 24px); font-size: clamp(16px, 1.75vw, 20px); letter-spacing: .04em; }
  .btn-cta { padding: 10px 14px; font-size: 14px; }
}
/* Phones: menu behind the button. */
@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; }
  .nav-panel {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--hdr-bg); padding: 8px clamp(20px, 4vw, 64px) 32px;
    flex-direction: column; gap: 28px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .site-header.open .nav-panel { display: flex; }
  .nav { flex-direction: column; gap: 0; font-size: 30px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .18); }
  .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
  .hdr-actions { flex-wrap: wrap; }
  .hdr-actions a { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 420px) {
  .logo-mark { width: 38px; height: 38px; }
  .logo-name { font-size: 17px; letter-spacing: .24em; }
  .logo-sub { font-size: 9px; letter-spacing: .3em; }
  .menu-toggle .menu-word { display: none; }
}

/* ---------- Placeholders & photos ---------- */
.ph {
  background-color: var(--ph);
  background-image: repeating-linear-gradient(135deg, var(--stripe) 0 1px, transparent 1px 14px);
  border-radius: 4px; display: flex; align-items: flex-end; padding: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  position: relative; overflow: hidden;
}
.ph-12 { font-size: 12px; padding: 20px; }
.ph-dark {
  background-color: #3A332B;
  background-image: repeating-linear-gradient(135deg, var(--rule-dark) 0 1px, transparent 1px 14px);
  color: #B8AD9B;
}
.ph-alt {
  background-color: #E0D6C4;
  background-image: repeating-linear-gradient(135deg, #D4C8B3 0 1px, transparent 1px 14px);
  font-size: 12px;
}
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
/* Fills a positioned placeholder box edge to edge (hero, bands). */
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-45 { aspect-ratio: 4 / 5; }
.ar-11 { aspect-ratio: 1 / 1; }
.ar-32 { aspect-ratio: 3 / 2; }
.ar-167 { aspect-ratio: 16 / 7; }
.ar-1610 { aspect-ratio: 16 / 10; }

/* ---------- Residential home ---------- */
/* Hero illustration: the finished render, with an architect's blueprint sketch of the same house over the left half. */
.plan-build { --split: 50%; background: #1F4E86; }
.blueprint {
  position: absolute; inset: 0; isolation: isolate;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  background-color: #1F4E86;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.plan-build .split { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: rgba(255,255,255,.9); }
.pb-btn {
  position: absolute; bottom: 24px; z-index: 2; padding: 9px 14px; border-radius: 2px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pb-design { left: 24px; color: #fff; background: rgba(31, 78, 134, .55); border: 1px solid rgba(255, 255, 255, .7); }
.pb-design:hover, .pb-design[aria-pressed="true"] { background: #fff; color: #1F4E86; border-color: #fff; }
.pb-build { right: 24px; color: var(--ink); background: rgba(244, 238, 227, .9); border: 1px solid transparent; }
.pb-build:hover, .pb-build[aria-pressed="true"] { background: var(--ink); color: #fff; }
/* After the intro, the Design/Build buttons set clip-path and the split position directly (see site.js). */
.plan-build.ready { animation: none; }
.plan-build.ready .blueprint { transition: clip-path .9s cubic-bezier(.65, 0, .35, 1); }
.plan-build.ready .split { transition: left .9s cubic-bezier(.65, 0, .35, 1); }
@property --split { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@keyframes build-in { from { --split: 100%; } to { --split: 50%; } }
@media (prefers-reduced-motion: no-preference) {
  .plan-build { animation: build-in 1.8s cubic-bezier(.65, 0, .35, 1) .4s both; }
}
/* Full-width, never taller than the screen so the Design/Build buttons stay in view.
   The render is square: keep the house and steps in frame, trimming mostly sky. */
.res-hero .ph { border-radius: 0; padding: 32px; font-size: 12px; height: clamp(360px, min(58vw, calc(100svh - 110px)), 860px); }
.res-hero .plan-build .cover { object-position: 50% 78%; }
.quote { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.02; }
/* Founder quote, broken into lead-in, three promises and a closing line */
.quote-split { margin: 0; display: flex; flex-direction: column; gap: 24px; }
.quote-lead, .quote-close { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--on-dark); max-width: 640px; }
.quote-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.quote-points li { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1; font-size: clamp(34px, 3.9vw, 56px); color: #F4EEE3; }
.quote-by { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.feature { border-top: 1px solid var(--ink); padding-top: 64px; }
.partners { border-top: 1px solid var(--rule); padding-top: 48px; }
.partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.partner-list li { border: 1px solid var(--rule); border-radius: 2px; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--rule); padding-top: 18px; font-size: 15px; }
.facts > div > div:last-child { margin-top: 6px; }
.team-card { display: flex; flex-direction: column; gap: 14px; }
.team-card .role { font-size: 15px; font-weight: 600; }
.image-band { padding: 0 32px; }
.image-band .ph { height: clamp(280px, 36vw, 520px); padding: 28px; font-size: 12px; }
.sign-wall svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.values-row {
  display: grid; grid-template-columns: 72px 1fr 1.4fr; gap: 24px;
  padding: 32px 0; border-top: 1px solid var(--ink); align-items: baseline;
}
.values-row .n { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--accent); }

/* ---------- Commercial home ---------- */
.com-hero-wrap { padding: 0 32px; }
.com-hero {
  position: relative; height: clamp(460px, 44.5vw, 640px); overflow: hidden;
  align-items: flex-start; justify-content: flex-end; padding: 28px; font-size: 12px;
}
.com-hero-panel {
  position: absolute; left: 0; bottom: 0;
  /* Frosted glass: the photo shows through, blurred just enough to keep the headline readable. */
  background: rgba(244, 238, 227, .45);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  padding: 48px 56px 40px 32px; max-width: 720px; border-top-right-radius: 4px;
  color: var(--ink); font-family: var(--sans);
}
.com-intro { padding: 48px var(--px) clamp(64px, 6.67vw, 96px); }
.com-intro .btn-row { justify-content: flex-end; }
.rows { display: flex; flex-direction: column; }
.svc-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding: 32px 0; border-top: 1px solid var(--ink); align-items: start;
}
.svc-row a { color: var(--ink); }
.svc-row a:hover { color: var(--link); }
.g-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; }
.step { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--rule-dark); padding-top: 20px; }
.step-head { display: flex; gap: 14px; align-items: baseline; }
.step-n { font-family: var(--display); font-size: 24px; color: var(--accent); }
.list-rule { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.list-rule .label { padding: 14px 0 4px; }
.list-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px;
}
.list-row > :first-child { font-weight: 500; }
.list-row > :last-child { color: var(--muted); text-align: right; }
.pipe-card { display: flex; flex-direction: column; gap: 14px; }
.pipe-card .meta { font-size: 14px; color: var(--muted); }
/* Home page service cards: the whole card links to that service. */
.svc-card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.svc-card .ph img { transition: transform .5s cubic-bezier(.2, .6, .2, 1); }
.svc-card:hover .ph img { transform: scale(1.04); }
.svc-card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 6px 0 0; }
.svc-card h3::after { content: "→"; font-family: var(--sans); font-size: 20px; font-weight: 500; color: var(--link); transition: transform .2s; }
.svc-card:hover h3 { color: var(--link); }
.svc-card:hover h3::after { transform: translateX(4px); }
.svc-wide { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; border-top: 1px solid var(--rule); padding-top: 48px; }
.svc-wide h3 { margin: 0; }
.svc-card .for { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.qa { padding: 24px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.qa h3 { font-size: 19px; font-weight: 600; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); padding: 48px; border-radius: 4px; }
.form-card.pad-40 { padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.span-2 { grid-column: span 2; }
.field {
  width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--rule);
  background: transparent; color: var(--ink); font-size: 16px; border-radius: 0;
  transition: border-color .15s;
}
.field::placeholder { color: var(--muted); opacity: 1; }
.field:focus { outline: none; border-bottom-color: var(--ink); }
.field:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--ink); }
textarea.field { resize: vertical; min-height: 60px; }
select.field {
  -webkit-appearance: none; appearance: none; color: var(--body); cursor: pointer; padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A4238' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.field.invalid { border-bottom-color: var(--error); }
.form-error { color: var(--error); font-size: 14px; line-height: 1.5; }
.form-error:empty { display: none; }
.honeypot { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.pills legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; }
.pill { position: relative; display: inline-flex; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span {
  padding: 10px 16px; border: 1px solid var(--ink); border-radius: 40px;
  font-size: 14px; color: var(--ink); background: transparent; transition: background-color .15s, color .15s;
}
.pill:hover span { background: rgba(39, 34, 28, .06); }
.pill input:checked + span { background: var(--ink); color: var(--sand); }
.pill input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.form-success { display: flex; flex-direction: column; gap: 20px; padding: 40px 0; }
.form-success[hidden] { display: none; }
.form-success h2:focus, .form-success h3:focus { outline: none; }

/* ---------- Services pages ---------- */
.svc { border-top: 1px solid var(--ink); }
.svc-code { font-family: var(--display); font-size: 22px; color: var(--label); }
.svc-items { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.svc-item { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--rule); padding-top: 16px; }
.svc-item h3 { font-size: 18px; font-weight: 600; }
.photo-fig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.photo-credit { font-size: 12px; line-height: 1.5; color: var(--muted); }
.photo-credit a { color: inherit; }
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.area-card { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ink); padding-top: 18px; color: inherit; text-decoration: none; }
.area-card:hover h3 { color: var(--link); }
@media (max-width: 900px) { .areas-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .areas-grid { grid-template-columns: 1fr; } }
.disciplines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.disciplines li { border-top: 1px solid var(--rule); padding: 12px 0; font-size: 16px; }
@media (max-width: 900px) { .disciplines { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .disciplines { grid-template-columns: 1fr; } }
.svc-more { font-weight: 500; color: var(--link); text-decoration: none; }
.svc-more:hover { text-decoration: underline; }
.cross-link {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--ink); padding: 40px var(--px);
}
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 40px; }

/* ---------- Process page ---------- */
.proc-band { padding: 32px var(--px) clamp(64px, 6.67vw, 96px); }
.proc-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px;
  padding: clamp(40px, 4.45vw, 64px) 0; border-bottom: 1px solid var(--rule-dark);
}
.proc-n { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 5vw, 72px); color: var(--accent); line-height: 1; }
.proc-list { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.proc-list li { border-top: 1px solid var(--rule-dark); padding-top: 12px; font-size: 16px; color: var(--sand); }
.commit { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ink); padding-top: 18px; }
.commit h3 { font-size: 18px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-group { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--ink);
}
.faq-q:hover { color: var(--link); }
.faq-sign { font-family: var(--mono); color: var(--link); font-size: 20px; flex: none; }
.faq-a p { margin: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--body); max-width: 680px; }
.js .faq-item:not(.open) .faq-a { display: none; }
html:not(.js) .faq-sign { display: none; }

/* ---------- Experience ---------- */
.g-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.past-card { display: flex; flex-direction: column; gap: 14px; }
.past-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.past-head .meta { font-size: 14px; color: var(--muted); white-space: nowrap; }
.past-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--rule); padding-top: 12px; font-size: 14px; }
.past-facts > div > div:last-child { margin-top: 4px; }
/* Experience page */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.stat-n { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 5.6vw, 80px); line-height: .9; color: var(--accent-on-dark); }
.stat-l { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--on-dark); max-width: 220px; }
.tally-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--rule); font-size: 17px; color: var(--ink); }
.tally-row:last-child { border-bottom: 1px solid var(--rule); }
.tally-n { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--accent); }
.work-card { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ink); padding-top: 22px; }
.work-meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.work-meta .status { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--link); white-space: nowrap; }
.career-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px 40px; padding: 28px 0; border-top: 1px solid var(--ink); }
.career-row > div { display: flex; flex-direction: column; gap: 6px; }
.career-row .xp-yr { font-family: var(--mono); font-size: 12px; color: var(--link); }
.pipe-row { display: grid; grid-template-columns: 2fr 1.4fr 1fr; padding: 22px 0; border-top: 1px solid var(--ink); font-size: 17px; gap: 16px; }
.pipe-row > :first-child { font-weight: 600; }
.pipe-row > :nth-child(2) { color: var(--body); }
.pipe-row > :last-child { font-family: var(--mono); font-size: 12px; color: var(--link); text-align: right; align-self: center; }

/* ---------- Contact ---------- */
.contact-rows { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.contact-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-rows dt { color: var(--muted); }
.contact-rows dd { margin: 0; font-weight: 500; text-align: right; }
.contact-rows dd a { color: var(--ink); }
.contact-rows dd a:hover { color: var(--link); }
.map { padding: 0 32px 32px; }
.map .ph { height: clamp(240px, 25vw, 360px); padding: 20px; font-size: 12px; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.12); }

/* ---------- Trades ---------- */
.ask-list { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule); padding-top: 16px; font-size: 15px; color: var(--body); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px var(--px) 40px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px 32px; font-size: 14px; color: var(--muted);
  border-top: 1px solid var(--rule);
}
.site-footer a { color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-h { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin-bottom: 4px; }
.foot-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.foot-legal {
  grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding-top: 24px; border-top: 1px solid var(--rule); font-size: 13px;
}
@media (max-width: 1100px) { .site-footer { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
main:has(> .band-dark:last-child, > .band-alt:last-child, > .map:last-child) + .site-footer { border-top: 0; }
.foot-name { font-size: 22px; color: var(--ink); }
.foot-brand { display: flex; flex-direction: column; gap: 4px; }
.foot-slogan { font-size: 13px; color: var(--muted); }
/* Slogan strip directly under the home page hero picture */
.slogan {
  margin: 0; background: var(--hdr-bg); color: #fff; text-align: center;
  padding: 22px var(--px);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(20px, 2.3vw, 32px); letter-spacing: .06em; line-height: 1.15;
}
.slogan .accent { color: var(--accent-on-dark); }

/* ---------- Estimate pop-up ---------- */
html.em-lock { overflow: hidden; }
.estimate-modal {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh;
  margin: 0; padding: clamp(12px, 4vh, 48px) 16px; border: 0; background: transparent;
  overflow-y: auto; overscroll-behavior: contain; color: var(--ink);
}
.estimate-modal[open] { display: grid; }
.estimate-modal::backdrop { background: rgba(30, 27, 23, 0); backdrop-filter: blur(0); transition: background-color .25s, backdrop-filter .25s; }
.estimate-modal.em-in::backdrop { background: rgba(30, 27, 23, .72); backdrop-filter: blur(3px); }
.em-box {
  position: relative; margin: auto; width: 100%; max-width: 760px;
  background: var(--sand); border-radius: 6px; padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .25s, transform .25s;
}
.estimate-modal.em-in .em-box { opacity: 1; transform: none; }
.em-box h2 { padding-right: 44px; font-size: clamp(38px, 4.2vw, 60px); }
.em-close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 2px;
  background: none; color: var(--ink); cursor: pointer; transition: background-color .15s;
}
.em-close:hover { background: rgba(39, 34, 28, .08); }
.em-note { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.em-box .form-success { padding: 24px 0 8px; }
@media (max-width: 640px) {
  .estimate-modal { padding: 0; }
  .em-box { border-radius: 0; min-height: 100dvh; padding: 28px 20px 40px; }
  .em-close { top: 12px; right: 10px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .g-4-8, .g-1-1, .g-5-7 { grid-template-columns: 1fr; --gap: 32px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .svc-wide { grid-template-columns: 1fr; gap: 16px; padding-top: 32px; }
  .g-3 { grid-template-columns: 1fr 1fr; --gap: 32px; }
  .feature { padding-top: 40px; }
  .com-intro .btn-row { justify-content: flex-start; }
  .proc-row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .proc-row > :first-child { grid-column: 1 / -1; }
  .cta-band { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cta-band br { display: none; }
  .p-21 { font-size: 19px; }
  .form-card { padding: 36px 28px; }
}

@media (max-width: 640px) {
  .g-3, .g-2, .g-2x2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .svc-items { grid-template-columns: 1fr; gap: 20px; }
  .svc-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .values-row { grid-template-columns: 44px 1fr; gap: 8px 16px; padding: 24px 0; }
  .values-row > :last-child { grid-column: 2; }
  .proc-row { grid-template-columns: 1fr; }
  .past-head { flex-direction: column; gap: 4px; }
  .pipe-row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .tally-row { grid-template-columns: 96px 1fr; gap: 16px; }
  .tally-n { font-size: 32px; }
  .career-row { grid-template-columns: 1fr; }
  .pipe-row > :nth-child(2) { grid-row: 2; font-size: 15px; }
  .pipe-row > :last-child { grid-row: 1 / span 2; grid-column: 2; }
  .list-row { flex-direction: column; gap: 2px; }
  .list-row > :last-child { text-align: left; }
  .com-hero-wrap, .image-band, .map { padding-left: 12px; padding-right: 12px; }
  .com-hero { padding: 16px; }
  .com-hero-panel { padding: 28px 24px 24px 16px; max-width: calc(100% - 20px); }
  .res-hero .ph, .image-band .ph { padding: 20px; }
  /* Keep the whole wall sign in frame on phones: a slightly shorter band shows more of the wall's width. */
  .image-band .sign-wall { height: 56vw; }
  .p-19, .p-21 { font-size: 17px; }
  .p-18 { font-size: 17px; }
  .form-card, .form-card.pad-40 { padding: 28px 20px; }
  .contact-rows > div { flex-direction: column; gap: 2px; }
  .contact-rows dd { text-align: left; }
  .btn { padding: 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .plan-build .blueprint, .plan-build .split { transition: none !important; }
}
