/* ==========================================================
   Crestline Constructions — site styles
   Brand kit: Yellow #F5B301 · Black #1A1A18 · White #FAFAF8 · Gray #6B6B66
   Display: Oswald · Body: Source Sans (Pro)
   ========================================================== */

:root {
  --yellow: #F5B301;
  --yellow-deep: #DDA000;
  --black: #1A1A18;
  --black-2: #242422;
  --black-3: #2E2E2B;
  --white: #FAFAF8;
  --tint: #F0EFEA;
  --gray: #6B6B66;
  --gray-on-dark: #B9B9B1;   /* lighter tint of Crestline Gray, keeps 4.5:1+ on black */
  --line: #E2E1DA;
  --line-dark: rgba(250, 250, 248, .14);

  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 32px;
  --r-pill: 999px;

  --gutter: 24px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
.contact :focus-visible { outline-color: var(--black); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--yellow); color: var(--black); padding: 10px 18px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

.ico { width: 1.15em; height: 1.15em; }

/* ---------- Typography ---------- */
.section-title, .hero-title, .card-title, .foot-title, .foot-big, .brand-name, .step-num, .loc-state, .chip, .tag {
  font-family: var(--font-display);
}
.section-title {
  font-weight: 700;
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .005em;
  text-wrap: balance;
}
.title-yellow { color: var(--yellow); }
.title-light { color: var(--white); }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--gray); max-width: 56ch; }
.section-dark .lead { color: var(--gray-on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: .8125rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--black);
  margin-bottom: 18px;
}
.eyebrow-dot { width: 22px; height: 4px; background: var(--yellow); display: inline-block; }
.eyebrow-light, .eyebrow-dark { color: var(--white); }
.eyebrow-yellow { color: var(--black); }
.eyebrow-yellow .eyebrow-dot { background: var(--black); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border-radius: var(--r-pill); border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none; line-height: 1.1;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding-inline: 32px; }
.btn-block { width: 100%; }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--white); }
.section:not(.section-dark) .btn-yellow:hover { background: var(--black); color: var(--yellow); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--yellow); color: var(--black); }
.contact .btn-dark:hover { background: var(--black-3); color: var(--white); }
.btn-ghost { border-color: rgba(250, 250, 248, .6); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-ghost-dark { border-color: var(--black); color: var(--black); }
.btn-ghost-dark:hover { background: var(--black); color: var(--white); }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

.link-under { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); }
.link-under:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black); color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); }
.brand-mark { width: 62px; height: 26px; color: var(--white); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.6rem; letter-spacing: .05em; text-transform: uppercase; }
.brand-sub { font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gray-on-dark); margin-top: 6px; }

.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav ul { display: flex; gap: 30px; }
.primary-nav ul a { position: relative; text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .04em; padding: 8px 0; color: var(--gray-on-dark); transition: color .2s; }
.primary-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav ul a:hover { color: var(--white); }
.primary-nav ul a:hover::after { transform: scaleX(1); }
.nav-cta { min-height: 44px; padding: 10px 22px; font-size: .9rem; }

.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; position: relative; border-radius: var(--r-sm); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle-bars { top: 23px; }
.nav-toggle-bars::before { left: 0; right: 0; top: -8px; }
.nav-toggle-bars::after { left: 0; right: 0; top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--black); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(26, 26, 24, .82) 0%, rgba(26, 26, 24, .45) 48%, rgba(26, 26, 24, .12) 100%),
  linear-gradient(180deg, rgba(26, 26, 24, .25) 0%, rgba(26, 26, 24, 0) 35%, rgba(26, 26, 24, .55) 100%); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 6vw, 80px); }
.hero-title { font-weight: 700; font-size: clamp(4rem, 12vw, 9.5rem); line-height: .92; text-transform: uppercase; letter-spacing: -.005em; margin-bottom: 26px; }
.hero-title .hl { color: var(--yellow); }
.hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--white); margin-bottom: 36px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Floating card (echoes reference 1) */
.hero-card {
  background: var(--white); color: var(--black);
  border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 32px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  max-width: 600px; justify-self: end; width: 100%;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  min-height: 40px; padding: 6px 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--black); background: transparent; color: var(--black);
  font-weight: 500; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { background: var(--tint); }
.chip.is-active { background: var(--black); color: var(--yellow); }
.tab-panel { animation: panelIn .35s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card-title { font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.08; text-transform: uppercase; }
.card-sub { color: var(--gray); margin: 8px 0 20px; max-width: 40ch; }
.card-photo { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; background: var(--tint); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.hotspot { position: absolute; right: 22%; top: 46%; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(245, 179, 1, .35); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 179, 1, .6); } 80%, 100% { box-shadow: 0 0 0 20px rgba(245, 179, 1, 0); } }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; font-size: .9rem; border-bottom: 2px solid var(--yellow); padding-bottom: 3px; }
.card-link:hover { border-bottom-color: var(--black); }

/* Hero foot (echoes reference 1 bottom strip) */
.hero-foot { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; padding-bottom: 0; }
.foot-panel {
  position: relative; background: var(--yellow); color: var(--black);
  border-radius: 0 var(--r-lg) 0 0; padding: 34px 36px 36px;
  display: grid; gap: 6px;
}
.foot-mark { width: 84px; height: 36px; color: var(--black); margin-bottom: 14px; }
.foot-mark rect { fill: var(--black); }
.foot-title { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.02; text-transform: uppercase; }
.foot-text { font-weight: 600; margin-top: 10px; }
.foot-statement { padding-bottom: 40px; display: grid; gap: 22px; justify-items: start; }
.foot-big { font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.08; text-transform: uppercase; max-width: 22ch; text-wrap: balance; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 136px); }
.section-dark { background: var(--black); color: var(--white); }
.section-tint { background: var(--tint); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section-note { max-width: 44ch; color: var(--gray); font-size: 1.1rem; }
.section-dark .section-note { color: var(--gray-on-dark); }

/* Services */
.statement { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.25; max-width: 30ch; margin: 28px 0 clamp(40px, 6vw, 72px) auto; text-wrap: pretty; }
.statement em { font-style: normal; color: var(--yellow); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card { background: var(--black-2); border: 1px solid var(--line-dark); border-radius: var(--r-md); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(245, 179, 1, .6); }
.service-photo { aspect-ratio: 16 / 9; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-photo img { transform: scale(1.04); }
.service-body { padding: 26px 28px 30px; }
.service-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.service-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; text-transform: uppercase; line-height: 1.1; }
.service-body p { color: var(--gray-on-dark); }
.read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); font-weight: 700; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 6px 0; }
.read-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* About / process */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.split-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.split-copy .lead { margin: 24px 0 26px; }
.values { display: grid; gap: 10px; margin-bottom: 34px; font-weight: 600; }
.values li { display: flex; align-items: center; gap: 12px; }
.values .ico, .ticks .ico { color: var(--black); background: var(--yellow); border-radius: 50%; width: 24px; height: 24px; padding: 4px; }
.steps { display: grid; gap: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 30px 0; border-top: 2px solid var(--black); }
.step:last-child { border-bottom: 2px solid var(--black); }
.step-num { font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--yellow); -webkit-text-stroke: 1.5px var(--black); paint-order: stroke fill; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; text-transform: uppercase; margin-bottom: 6px; }
.step p { color: var(--gray); max-width: 46ch; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 22vw, 290px); gap: 16px; }
.g { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--black-2); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.g:hover img { transform: scale(1.05); }
.g-cap { position: absolute; left: 14px; bottom: 14px; background: var(--yellow); color: var(--black); font-family: var(--font-display); font-weight: 500; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill); }
.g-a { grid-column: 1; grid-row: 1 / span 2; }
.g-b { grid-column: 2; grid-row: 1; }
.g-c { grid-column: 3; grid-row: 1 / span 2; }
.g-d { grid-column: 2; grid-row: 2; }
.g-e { grid-column: 1 / span 2; grid-row: 3; }
.g-f { grid-column: 3; grid-row: 3; }

/* Build with us */
.bwu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bwu-card { display: flex; flex-direction: column; background: var(--black); color: var(--white); border-radius: var(--r-lg); overflow: hidden; }
.bwu-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.bwu-photo img { width: 100%; height: 100%; object-fit: cover; }
.bwu-body { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex: 1; }
.bwu-body h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.02; text-transform: uppercase; }
.bwu-body > p:not(.tag) { color: var(--gray-on-dark); }
.tag { display: inline-block; background: var(--yellow); color: var(--black); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }
.tag-dark { background: var(--black); color: var(--yellow); }
.ticks { display: grid; gap: 10px; margin: 6px 0 14px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.bwu-body .btn { margin-top: auto; }

/* Locations */
.loc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.loc-card { position: relative; overflow: hidden; background: var(--white); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); border-top: 8px solid var(--yellow); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-height: 340px; }
.loc-state { position: absolute; right: -6px; top: -30px; font-weight: 700; font-size: clamp(8rem, 16vw, 12rem); line-height: 1; color: var(--tint); user-select: none; pointer-events: none; }
.loc-card > *:not(.loc-state) { position: relative; }
.loc-card h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); text-transform: uppercase; line-height: 1.02; }
.loc-card > p:not(.loc-state):not(.tag) { color: var(--gray); max-width: 34ch; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 12px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.faq-intro .lead { margin: 22px 0 28px; }
.faq-list { border-top: 2px solid var(--black); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 16px 0; font-weight: 700; font-size: 1.15rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gray); }
.faq-ico { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--yellow); color: var(--black); transition: transform .25s var(--ease); }
.faq[open] .faq-ico { transform: rotate(45deg); }
.faq p { color: var(--gray); padding: 0 48px 22px 0; max-width: 62ch; }

/* Contact */
.contact { background: var(--yellow); color: var(--black); margin-top: 60px; padding-top: clamp(56px, 8vw, 110px); }
.ridge-edge { position: absolute; left: 0; top: -79px; width: 100%; height: 80px; fill: var(--yellow); display: block; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 7vw, 100px); align-items: start; }
.contact .lead { color: var(--black); margin: 22px 0 28px; opacity: .85; }
.contact-branches { display: grid; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.contact-branches li { display: flex; align-items: center; gap: 10px; }

.form-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 24px 60px rgba(26, 26, 24, .2); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-card label { font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.opt { color: var(--gray); font-weight: 400; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--white); border: 1.5px solid #B8B7AE; border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s;
}
.form-card textarea { resize: vertical; min-height: 130px; }
.form-card input:hover, .form-card select:hover, .form-card textarea:hover { border-color: var(--black); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px var(--yellow); }
.form-card [aria-invalid="true"] { border-color: #B3261E; }
.err { color: #B3261E; font-size: .9rem; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.form-status { font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #E8F4E6; color: #1E5B1A; padding: 14px 16px; border-radius: var(--r-sm); }
.form-status.is-error { background: #FBE9E7; color: #8C1D18; padding: 14px 16px; border-radius: var(--r-sm); }
.btn:disabled { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-tag { margin-top: 20px; color: var(--gray-on-dark); }
.footer-h { font-family: var(--font-display); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--yellow); margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer nav a, .site-footer ul a { color: var(--gray-on-dark); text-decoration: none; padding: 4px 0; display: inline-block; }
.site-footer ul a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--yellow); }
.footer-base { border-top: 1px solid var(--line-dark); padding-block: 24px; color: var(--gray-on-dark); font-size: .92rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .primary-nav ul { gap: 20px; }
  .primary-nav { gap: 22px; }
}

/* Build With Us: 3 cards side by side, then stacked with photo beside text */
@media (max-width: 1100px) {
  .bwu-grid { grid-template-columns: 1fr; }
  .bwu-card { flex-direction: row; }
  .bwu-photo { flex: 0 0 40%; aspect-ratio: auto; }
}
@media (max-width: 700px) {
  .bwu-card { flex-direction: column; }
  .bwu-photo { flex: none; aspect-ratio: 16 / 10; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); padding: 8px var(--gutter) 28px;
    border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
    max-height: calc(100vh - var(--header-h)); overflow: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .primary-nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul a { display: block; padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line-dark); color: var(--white); }
  .primary-nav ul a::after { display: none; }
  .nav-cta { margin-top: 20px; min-height: 52px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { justify-self: stretch; max-width: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(26, 26, 24, .7) 0%, rgba(26, 26, 24, .55) 50%, rgba(26, 26, 24, .92) 100%); }
  .hero-foot { grid-template-columns: 1fr; gap: 0; }
  .foot-panel { border-radius: 0 var(--r-lg) 0 0; margin-right: 40px; }
  .foot-statement { order: -1; padding-bottom: 36px; }

  .service-grid, .loc-grid { grid-template-columns: 1fr; }
  .split, .faq-wrap, .contact-grid { grid-template-columns: 1fr; }
  .split-copy { position: static; }
  .statement { margin-left: 0; max-width: 34ch; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .g-a, .g-b, .g-c, .g-d, .g-e, .g-f { grid-column: auto; grid-row: auto; }
  .g-a { grid-row: span 2; }
  .g-c { grid-row: span 2; }
  .g-e { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .brand-mark { width: 50px; height: 21px; }
  .brand-name { font-size: 1.35rem; }
  .brand-sub { font-size: .56rem; letter-spacing: .36em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .chip { padding-inline: 14px; font-size: .82rem; }
  .field-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 64px 1fr; gap: 14px; }
  .step-num { font-size: 2.6rem; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .g-a, .g-c { grid-row: span 1; }
  .g-e { grid-column: auto; }
  .foot-panel { margin-right: 0; padding: 28px 24px 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq p { padding-right: 0; }
  .loc-actions .btn { flex: 1 1 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
