/* ============================================================
   Kanchh Industries — kanchhindustries.com
   Brand: Montserrat · Kanchh Blue #005190 · light-first
   One Azure accent per view · gradient only as thin strips
   ============================================================ */

:root {
  --blue: #005190;
  --ink: #131E29;
  --azure: #0082C8;
  --cerulean: #006DAB;
  --cobalt: #003378;
  --midnight: #001B4A;
  --frost: #F5F8FB;
  --glass: #E8EEF4;
  --silver: #C3CDD7;
  --slate: #33424F;
  --sky: #B9CBE0;
  --line: #DCE5EC;
  --grad: linear-gradient(135deg, #0082C8, #003378);
  --shadow-sm: 0 2px 10px rgba(19, 30, 41, .05);
  --shadow-md: 0 12px 32px rgba(0, 51, 120, .10);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  overflow-x: clip;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--cerulean); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--azure); }

.container { max-width: 1208px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3 { text-wrap: pretty; line-height: 1.2; }

.display { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -.5px; line-height: 1.14; }
.h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.h2 { font-size: 20px; font-weight: 600; }
.h3 { font-size: 16px; font-weight: 600; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--azure);
}

.body-lg { font-size: 16px; line-height: 1.75; color: var(--slate); }
.body { font-size: 15px; line-height: 1.7; color: var(--slate); }
.small { font-size: 13.5px; line-height: 1.65; color: var(--slate); }
.cap {
  font-size: 11px; font-weight: 500; letter-spacing: 1.6px;
  text-transform: uppercase; color: #69798a;
}
.num { font-size: 38px; line-height: 1; font-weight: 800; color: var(--blue); letter-spacing: -.5px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 28px; border-radius: 2px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--cerulean); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--silver); }
.btn-secondary:hover { border-color: var(--cerulean); color: var(--cerulean); }

.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--frost); color: var(--cobalt); }

.btn-sm { height: 44px; padding: 0 22px; font-size: 13.5px; }

/* trust microcopy shown beside CTAs */
.cta-trust { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--slate); }
.cta-trust svg { flex: none; }

/* ---------- gradient strip ---------- */
.gradstrip { height: 5px; background: var(--grad); }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--frost);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity .5s var(--ease), visibility .5s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.no-preload #preloader { display: none; }

.preloader-mark {
  width: 84px; height: auto;
  opacity: 0; transform: translateY(18px) scale(.96);
  animation: pl-rise .7s var(--ease) .15s forwards;
}

@keyframes pl-rise { to { opacity: 1; transform: translateY(0) scale(1); } }

.preloader-word { opacity: 0; animation: pl-fade .6s var(--ease) .55s forwards; }
.preloader-word .lk { font-size: 24px; letter-spacing: 4.4px; margin-right: -4.4px; }
.preloader-word .li { font-size: 11.4px; }
@keyframes pl-fade { to { opacity: 1; } }

.preloader-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--glass); overflow: hidden; }
.preloader-bar::before {
  content: ""; position: absolute; inset: 0; transform-origin: left;
  background: var(--grad); transform: scaleX(0);
  animation: pl-bar 1.4s var(--ease) .1s forwards;
}
@keyframes pl-bar { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  #preloader { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.logo { display: flex; align-items: center; gap: 13px; }
.logo-mk { height: 42px; width: auto; }
/* wordmark: INDUSTRIES letter-justified to the exact width of KANCHH */
.logo-word { display: flex; flex-direction: column; gap: 5px; }
.logo-word .lk { font-size: 20px; font-weight: 400; letter-spacing: 3.2px; margin-right: -3.2px; color: var(--ink); line-height: 1; }
.logo-word .li { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 600; color: var(--ink); line-height: 1; }
.logo-invert { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--azure); transition: width .25s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--azure); }
.nav .btn { margin-left: 8px; }
/* the CTA inside the nav is a button, not a nav link */
.nav a.btn { padding: 0 24px; color: #fff; }
.nav a.btn:hover { color: #fff; }
.nav a.btn::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle .nt-box { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.nav-toggle .nt-line {
  height: 2px; width: 100%; background: var(--ink);
  transition: transform .32s var(--ease), opacity .25s var(--ease);
}
.nav-toggle.open .nt-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nt-line:nth-child(2) { opacity: 0; }
.nav-toggle.open .nt-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(19, 30, 41, .45);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

.nav-extra { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--frost); overflow: hidden; }

.hero-watermark {
  position: absolute; right: -160px; bottom: -240px;
  width: 680px; height: auto; opacity: .06; pointer-events: none;
}

.hero-inner {
  position: relative; display: flex; align-items: center; gap: 64px;
  padding: 92px 24px 76px;
}
.hero-copy { flex: 1; display: flex; flex-direction: column; gap: 22px; }
.hero-copy .body-lg { max-width: 500px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

.hero-visual { width: 440px; flex: none; position: relative; height: 420px; }
.hero-pane {
  position: absolute; border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, .65);
  background: linear-gradient(150deg, rgba(214, 231, 243, .85), rgba(143, 184, 217, .55));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(4px);
}
.hero-pane.p1 { inset: 46px 96px auto auto; width: 300px; height: 340px; transform: rotate(-4deg); }
.hero-pane.p2 { inset: 24px 48px auto auto; width: 300px; height: 350px; transform: rotate(2deg); opacity: .75; }
.hero-pane.p3 { inset: 0 0 auto auto; width: 300px; height: 360px; transform: rotate(7deg); opacity: .45; }
.hero-pane .k { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 118px; height: auto; }

.hero-stats {
  position: relative; border-top: 1px solid var(--glass);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px;
  padding: 36px 24px 46px;
}
.stat { display: flex; flex-direction: column; gap: 9px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-frost { background: var(--frost); border-top: 1px solid var(--glass); border-bottom: 1px solid var(--glass); }
.section-glasstint { background: var(--glass); }

.panegrid {
  background-image:
    linear-gradient(to right, rgba(195, 205, 215, .35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(195, 205, 215, .35) 1px, transparent 1px);
  background-size: 96px 96px;
}

.sechead { display: flex; flex-direction: column; gap: 14px; max-width: 660px; margin-bottom: 48px; }
.sechead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.sechead-row .sechead { margin-bottom: 0; }
.link-arrow { font-size: 14px; font-weight: 600; color: var(--cerulean); white-space: nowrap; }

/* page head (inner pages) */
.pagehead { background: var(--frost); border-bottom: 1px solid var(--glass); padding: 68px 0; }
.pagehead .container { display: flex; flex-direction: column; gap: 16px; }
.pagehead .body-lg { max-width: 580px; }

/* ---------- cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: 30px; display: flex; flex-direction: column; gap: 13px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--silver); }
.card .dash { width: 26px; height: 3px; background: var(--blue); margin-top: auto; }
.card .icon { color: var(--ink); }

.specrow {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; line-height: 1.5;
  border-top: 1px solid var(--glass); padding-top: 10px;
}
.specrow .k { color: #69798a; font-weight: 500; }
.specrow .v { color: var(--ink); font-weight: 600; text-align: right; }

/* spec table */
.spectable { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 8px 32px; }
.spectable .specrow { padding: 18px 0; }
.spectable .specrow:first-child { border-top: 0; }

/* ---------- process line ---------- */
.process-line { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.process-step {
  display: flex; flex-direction: column; gap: 12px; padding: 0 22px;
  border-left: 1px solid var(--glass);
}
.process-step:first-child { border-left: 0; padding-left: 0; }
.process-step .pnum { font-size: 26px; font-weight: 800; color: var(--silver); line-height: 1; }

/* ---------- project cards ---------- */
.proj-card {
  border: 1px solid var(--line); border-radius: 2px; background: #fff;
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.proj-visual { height: 220px; position: relative; overflow: hidden; }
.proj-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .35) 0%, transparent 40%);
  transform: translateX(-70%); transition: transform .6s var(--ease);
}
.proj-card:hover .proj-visual::after { transform: translateX(70%); }
.proj-meta { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.proj-meta .cap { color: var(--azure); }

/* glass-look placeholder visuals */
.ph-facade   { background-image: repeating-linear-gradient(to right, rgba(255,255,255,.55) 0 2px, transparent 2px 44px), repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 2px, transparent 2px 34px), linear-gradient(115deg, #CFE2F0, #8FB8D9 60%, #5E93BF); }
.ph-doors    { background-image: repeating-linear-gradient(to right, rgba(255,255,255,.5) 0 2px, transparent 2px 84px), linear-gradient(160deg, #E2EDF6, #AFCDE4 70%, #7FA9CC); }
.ph-interior { background-image: repeating-linear-gradient(100deg, rgba(255,255,255,.45) 0 2px, transparent 2px 26px), linear-gradient(115deg, #DCEAF5, #A9CBE3 65%, #7FA9CC); }
.ph-canopy   { background-image: repeating-linear-gradient(to right, rgba(255,255,255,.5) 0 2px, transparent 2px 60px), linear-gradient(200deg, #E8F1F8, #B9D4E8 55%, #89B1D1); }
.ph-stack    { background-image: repeating-linear-gradient(to right, rgba(255,255,255,.6) 0 3px, rgba(140,180,210,.35) 3px 9px), linear-gradient(180deg, #D7E7F3, #9FC2DC); }
.ph-industry { background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 0 2px, transparent 2px 30px), linear-gradient(130deg, #D2E3F0, #98BEDA 65%, #6B9BC2); }

/* project filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  height: 40px; padding: 0 20px; border-radius: 2px; cursor: pointer;
  background: #fff; border: 1px solid var(--silver);
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--cerulean); color: var(--cerulean); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.proj-card.hidden { display: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--midnight); padding: 88px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-band .h1 { color: #fff; }
.cta-band .body { color: var(--sky); max-width: 520px; margin-top: 12px; }
.cta-band .cta-trust { color: var(--sky); margin-top: 14px; }

/* ---------- forms ---------- */
.quote-form {
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: 40px; display: flex; flex-direction: column; gap: 22px;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea {
  height: 48px; border: 1px solid var(--silver); border-radius: 2px;
  padding: 0 14px; font-family: inherit; font-size: 14px; color: var(--ink);
  background: #fff; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { height: 120px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(0, 130, 200, .12);
}
.field input::placeholder, .field textarea::placeholder { color: #8496a5; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.form-success {
  display: none; background: var(--frost); border: 1px solid var(--line); border-left: 3px solid var(--azure);
  padding: 20px 24px; font-size: 14px; color: var(--slate);
}
.form-success.show { display: block; }

.file-drop {
  border: 1px dashed var(--silver); border-radius: 2px; padding: 18px;
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  font-size: 13.5px; color: var(--slate);
}
.file-drop:hover { border-color: var(--azure); background: var(--frost); }

/* contact side */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.side-card {
  background: var(--frost); border: 1px solid var(--line); border-radius: 2px;
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.map-embed {
  position: relative; border: 1px solid var(--line); border-radius: 2px;
  overflow: hidden; background: var(--glass);
}
.map-embed iframe {
  display: block; width: 100%; height: 250px; border: 0;
  filter: saturate(.82) contrast(1.02);
}
.map-directions {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: 8px 14px; font-size: 12.5px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: color .2s var(--ease), border-color .2s var(--ease);
}
.map-directions:hover { color: var(--cerulean); border-color: var(--cerulean); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 24px; padding: 22px 4px;
  font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--azure); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .body { padding: 0 4px 24px; max-width: 720px; }

/* ---------- footer ---------- */
.site-footer { background: var(--midnight); color: #fff; }
.footer-cols { display: flex; gap: 64px; padding: 68px 0 48px; }
.fcol { display: flex; flex-direction: column; gap: 12px; }
.fcol a { color: var(--sky); font-size: 13.5px; }
.fcol a:hover { color: #fff; }
.fhead { font-size: 11px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: #7E96B5; margin-bottom: 6px; }
.fbody { color: var(--sky); font-size: 13.5px; line-height: 1.75; }
.footer-brand { width: 320px; flex: none; gap: 18px; }
.logo-white .lk, .logo-white .li { color: #fff; }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.footer-bar .cap { color: #7E96B5; }

/* ---------- floating contact ---------- */
.float-wa {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(19, 30, 41, .22);
  transition: transform .25s var(--ease);
}
.float-wa:hover { transform: translateY(-3px) scale(1.05); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- custom dropdowns (enhanced selects) ---------- */
.dropdown { position: relative; }
.dropdown > select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none;
}
.dropdown-toggle {
  height: 48px; width: 100%; border: 1px solid var(--silver); border-radius: 2px;
  padding: 0 14px; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: inherit; font-size: 14px; color: var(--ink); text-align: left;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.dropdown-toggle .dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-toggle .dd-label.placeholder { color: #8496a5; }
.dropdown-toggle .dd-chev { flex: none; color: #69798a; transition: transform .25s var(--ease); }
.dropdown.open .dropdown-toggle,
.dropdown-toggle:focus-visible {
  outline: none; border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(0, 130, 200, .12);
}
.dropdown.open .dd-chev { transform: rotate(180deg); }
.dropdown-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  box-shadow: var(--shadow-md); max-height: 264px; overflow: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  padding: 6px 0; margin: 0; list-style: none;
}
.dropdown.open .dropdown-list { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-option {
  padding: 11px 14px; font-size: 14px; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.dropdown-option:hover, .dropdown-option.hl { background: var(--frost); color: var(--cerulean); }
.dropdown-option.selected { color: var(--blue); font-weight: 600; }
.dropdown-option.selected .dd-check { display: block; }
.dropdown-option .dd-check { display: none; flex: none; }

/* ---------- lead capture modal ---------- */
.lead-modal {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lead-modal.show { opacity: 1; visibility: visible; }
.lead-backdrop {
  position: absolute; inset: 0;
  background: rgba(19, 30, 41, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.lead-card {
  position: relative; background: #fff; border-radius: 2px;
  max-width: 460px; width: 100%; padding: 38px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 24px 64px rgba(0, 27, 74, .3);
  transform: translateY(24px) scale(.98);
  transition: transform .4s var(--ease);
}
.lead-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad);
}
.lead-modal.show .lead-card { transform: translateY(0) scale(1); }
.lead-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #69798a; transition: color .2s var(--ease);
}
.lead-close:hover { color: var(--ink); }
.lead-card .field input, .lead-card .field select { width: 100%; }
.lead-skip {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 12.5px; color: #69798a; text-decoration: underline; padding: 4px;
}
.lead-skip:hover { color: var(--slate); }
@media (max-width: 520px) { .lead-card { padding: 28px 22px; } }

/* ---------- page transitions (View Transitions API, progressive) ---------- */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out .22s var(--ease) forwards; }
::view-transition-new(root) { animation: vt-in .4s var(--ease); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* header, CTA underline and the WhatsApp button persist across pages */
.site-header { view-transition-name: site-header; }
.float-wa { view-transition-name: float-wa; }
.nav a.active::after { view-transition-name: nav-underline; }

/* browsers without cross-document transitions get a simple entry fade */
@supports not (view-transition-name: none) {
  main { animation: vt-in .45s var(--ease); }
}

/* ---------- entrance & ambient animations ---------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.pagehead .eyebrow, .pagehead .display, .pagehead .body-lg,
.hero-copy > * {
  opacity: 0; animation: rise-in .6s var(--ease) forwards;
}
.pagehead .display, .hero-copy > :nth-child(2) { animation-delay: .08s; }
.pagehead .body-lg, .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }

.hero-visual { opacity: 0; animation: rise-in .7s var(--ease) .2s forwards; }
.hero-pane.p1 { animation: pane-drift-1 9s ease-in-out 1s infinite alternate; }
.hero-pane.p2 { animation: pane-drift-2 11s ease-in-out 1s infinite alternate; }
@keyframes pane-drift-1 {
  from { transform: rotate(-4deg) translateY(0); }
  to { transform: rotate(-4deg) translateY(-10px); }
}
@keyframes pane-drift-2 {
  from { transform: rotate(2deg) translateY(0); }
  to { transform: rotate(2deg) translateY(8px); }
}

/* project cards ease in — re-runs when filters unhide them */
.proj-card { animation: rise-in .35s var(--ease); }

/* FAQ answers ease open */
.faq details[open] .body { animation: rise-in .35s var(--ease); }

/* mobile nav items cascade in */
.nav.open a { animation: rise-in .35s var(--ease) backwards; }
.nav.open a:nth-child(2) { animation-delay: .04s; }
.nav.open a:nth-child(3) { animation-delay: .08s; }
.nav.open a:nth-child(4) { animation-delay: .12s; }
.nav.open a:nth-child(5) { animation-delay: .16s; }
.nav.open a:nth-child(6) { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  main, .pagehead .eyebrow, .pagehead .display, .pagehead .body-lg,
  .hero-copy > *, .hero-visual, .hero-pane.p1, .hero-pane.p2,
  .proj-card, .faq details[open] .body, .nav.open a {
    animation: none !important; opacity: 1 !important;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-visual { width: 360px; height: 360px; }
  .hero-pane.p1, .hero-pane.p2, .hero-pane.p3 { width: 250px; height: 300px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .process-step { border-left: 0; padding: 0; }
  .footer-cols { flex-wrap: wrap; gap: 40px; }
}

@media (max-width: 860px) {
  /* backdrop-filter on the header made it the containing block for the
     fixed drawer (which clipped it) — plain white header on mobile */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 99;
    width: min(340px, 86vw); height: 100dvh;
    flex-direction: column; align-items: flex-start; gap: 2px;
    background: #fff;
    padding: 104px 28px 28px; overflow-y: auto;
    box-shadow: -24px 0 60px rgba(0, 27, 74, .22);
    transform: translateX(110%); transition: transform .42s var(--ease);
  }
  .nav::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--grad);
  }
  .nav.open { transform: translateX(0); }
  .nav-extra {
    display: flex; flex-direction: column; gap: 12px;
    margin-top: auto; padding-top: 22px; width: 100%;
    border-top: 1px solid var(--glass);
  }
  .nav-extra .cap { font-size: 10px; }
  .nav-extra a { font-size: 15px; font-weight: 600; color: var(--ink); padding: 0; border: 0; }
  .nav a { font-size: 17px; padding: 14px 0; width: 100%; }
  .nav a:not(.btn) { border-bottom: 1px solid var(--glass); }
  .nav a::after { display: none; }
  .nav .btn { margin: 12px 0 0; width: 100%; }
  .nav-toggle { display: block; }

  .hero-inner { flex-direction: column; align-items: flex-start; padding: 56px 24px 48px; }
  .hero-visual { width: 100%; height: 300px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  /* keep iOS from auto-zooming into 14px form fields */
  .field input, .field select, .field textarea, .dropdown-toggle { font-size: 16px; }
  .quote-form { padding: 28px 20px; }
  .footer-brand { width: 100%; }
  .float-wa { width: 52px; height: 52px; right: 18px; bottom: 18px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .sechead-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-cols { flex-direction: column; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .spectable { padding: 4px 20px; }
}

/* ---------- small phones ---------- */
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: 1fr; }
  .display { font-size: 30px; }
  .pagehead { padding: 48px 0; }
  .section { padding: 56px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { height: 270px; }
  .hero-pane.p1 { right: 44px; }
  .hero-pane.p2 { right: 20px; }
  .hero-pane.p3 { right: 0; }
  .spectable { padding: 2px 16px; }
  .specrow { flex-direction: column; gap: 2px; }
  .specrow .v { text-align: left; }
  .cta-band { padding: 64px 0; }
  .footer-cols { padding: 48px 0 36px; }
  .lead-card { max-height: 86vh; overflow-y: auto; }
}
