/* Crown Electrical — shared styles for every page.
   The homepage keeps its hero scrub, preloader and intro inline; everything
   the pages have in common (nav, footer, cards, gallery, reviews, form, the
   entrance motion) lives here so a change lands on all six pages at once. */
:root{
  --navy:#112337; --navy-2:#0b1826; --blue:#204ce5; --blue-lt:#527EFF;
  --ink:#0d1b2a; --ink-soft:#5a6676; --mist:#f4f6fa; --line:#e3e8f0;
  --disp:"Barlow Condensed","Arial Narrow",system-ui,sans-serif;
  --maxw:1200px; --navh:70px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:auto;-webkit-text-size-adjust:100%}
body{font-family:"Inter",system-ui,-apple-system,sans-serif;color:var(--ink);background:#fff;
  line-height:1.6;overflow-x:hidden;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px}
.eyebrow{font-family:var(--disp);font-size:13px;letter-spacing:.3em;text-transform:uppercase;color:var(--blue);font-weight:600}
:focus-visible{outline:2px solid var(--blue-lt);outline-offset:3px}

/* ---------- NAV ---------- */
nav{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;align-items:center;
  justify-content:space-between;padding:14px 28px;min-height:var(--navh);
  transition:background .4s ease, box-shadow .4s ease;color:#fff}
nav.solid{background:rgba(255,255,255,.94);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 1px 0 var(--line);color:var(--ink)}
.brand{position:relative;flex:0 0 auto;line-height:0;z-index:2}
.brand img{width:164px;transition:opacity .3s}
.brand .blue{position:absolute;inset:0;opacity:0}
nav.solid .brand .white{opacity:0}
nav.solid .brand .blue{opacity:1}
.navlinks{display:flex;gap:28px;font-size:14px;font-weight:600;align-items:center}
.navlinks a{opacity:.88;transition:opacity .2s}
.navlinks a:hover{opacity:1}
.navlinks a[aria-current="page"]{opacity:1}
.navcta{border:1.5px solid currentColor;border-radius:100px;padding:9px 19px;font-size:13.5px;opacity:1!important}
nav.solid .navcta{color:var(--blue)}
/* nav links underline on hover; the current page keeps its underline */
.navlinks a:not(.navcta){position:relative}
.navlinks a:not(.navcta)::after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:1.5px;background:currentColor;
  transform:scaleX(0);transform-origin:left;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.navlinks a:not(.navcta):hover::after,.navlinks a[aria-current="page"]::after{transform:scaleX(1)}
/* burger + call button, phones only */
.navright{display:none;align-items:center;gap:6px;z-index:2}
.navphone{display:flex;width:40px;height:40px;align-items:center;justify-content:center;border-radius:50%;
  border:1.5px solid currentColor;color:inherit;opacity:.9}
.navphone svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.9}
.burger{display:flex;z-index:2;width:42px;height:42px;border:0;background:none;cursor:pointer;color:inherit;
  flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:50%}
.burger span{display:block;width:22px;height:2px;background:currentColor;border-radius:2px;transition:transform .3s,opacity .3s}
nav.open .burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
nav.open .burger span:nth-child(2){opacity:0}
nav.open .burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(max-width:1023px){
  .brand img{width:138px}
  .navright{display:flex}
  nav{padding:12px 18px}
  .navlinks{position:fixed;inset:0;background:var(--navy);color:#fff;flex-direction:column;justify-content:center;
    gap:8px;padding:90px 28px 40px;font-family:var(--disp);font-size:34px;font-weight:600;letter-spacing:.01em;
    opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .3s,transform .3s,visibility .3s}
  nav.open .navlinks{opacity:1;visibility:visible;transform:none}
  /* the open state drops the blur: a backdrop-filter on nav would turn the
     fixed drawer's containing block into the 70px bar and clip it */
  nav.open{color:#fff;background:var(--navy);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
  nav.open .brand .white{opacity:1}nav.open .brand .blue{opacity:0}
  .navlinks a:not(.navcta)::after{display:none}
  .navlinks .navcta{margin-top:26px;font-family:"Inter",system-ui,sans-serif;font-size:17px;padding:13px 26px;border-color:#fff;color:#fff!important}
  body.menu-open{overflow:hidden}
}

/* ---------- PAGE HERO (inner pages) ---------- */
.phero{position:relative;isolation:isolate;overflow:hidden;background:var(--navy);color:#fff;padding:176px 0 92px}
.phero .bg{position:absolute;inset:0;z-index:-2}
.phero .bg img{width:100%;height:100%;object-fit:cover}
.phero .bg::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(11,24,38,.82) 0%,rgba(11,24,38,.7) 55%,rgba(17,35,55,.96) 100%)}
.phero .glow{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(70% 90% at 18% 0%,rgba(82,126,255,.38) 0%,rgba(17,35,55,0) 65%)}
.phero .lines{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.5;
  background-image:linear-gradient(to right,rgba(255,255,255,.055) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(255,255,255,.055) 1px,transparent 1px);background-size:68px 68px}
.phero .eyebrow{color:#a9c6ff}
.phero h1{font-family:var(--disp);font-weight:600;font-size:clamp(42px,6.2vw,80px);line-height:1.02;letter-spacing:.005em;max-width:20ch;margin-top:14px}
.phero h1 .bolt{color:var(--blue-lt)}
.phero .lead{margin-top:20px;max-width:52ch;font-size:clamp(16px,1.5vw,19px);color:rgba(255,255,255,.78)}
.phero .actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.phero .navcta{border-color:#fff;color:#fff;padding:12px 26px;font-weight:600}
.phero .navcta.fill{background:#fff;color:var(--navy)}
@media(max-width:640px){.phero{padding:128px 0 64px}}

/* ---------- SECTION HEADS / GENERIC ---------- */
.sec{padding:110px 0}
.sec.mist{background:var(--mist)}
.sec.tight{padding:80px 0}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:48px;flex-wrap:wrap}
.sec-head h2{font-family:var(--disp);font-weight:600;font-size:clamp(32px,4.4vw,56px);line-height:1.02}
.sec-head p{max-width:36ch;color:var(--ink-soft)}
h2.big{font-family:var(--disp);font-weight:600;font-size:clamp(32px,4.4vw,56px);line-height:1.02}
.btn{display:inline-flex;align-items:center;gap:10px;background:var(--blue);color:#fff;border-radius:100px;padding:14px 26px;
  font-family:var(--disp);font-weight:600;font-size:18px;letter-spacing:.04em;transition:background .25s,transform .15s}
.btn:hover{background:var(--blue-lt)}
.btn:active{transform:scale(.99)}
.btn.ghost{background:none;border:1.5px solid currentColor;color:inherit}
.btn.ghost:hover{background:rgba(32,76,229,.06)}
.link{color:var(--blue);font-weight:600;display:inline-flex;align-items:center;gap:6px}
.link:hover{text-decoration:underline}
@media(max-width:640px){.sec{padding:72px 0}.sec.tight{padding:56px 0}.sec-head{margin-bottom:32px}}

/* ---------- STORY (about) ---------- */
.story{display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center}
.story .lead{font-family:var(--disp);font-weight:500;font-size:clamp(28px,3.6vw,48px);line-height:1.12;max-width:20ch;margin-top:16px}
.story .lead b{font-weight:700;color:var(--blue)}
.story p.sub{margin-top:22px;max-width:52ch;color:var(--ink-soft);font-size:17px}
.story figure{position:relative;border-radius:22px;overflow:hidden;background:var(--line);aspect-ratio:4/3}
.story figure img{width:100%;height:100%;object-fit:cover;object-position:50% 30%}
.story figcaption{position:absolute;left:18px;bottom:16px;right:18px;color:#fff;font-size:13px;letter-spacing:.02em;
  text-shadow:0 1px 14px rgba(0,0,0,.6)}
.story figure::after{content:"";position:absolute;inset:auto 0 0 0;height:46%;pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(9,20,32,.72))}
@media(max-width:1023px){.story{grid-template-columns:1fr;gap:34px}}

/* ---------- STATS ---------- */
.stats{display:flex;gap:44px;margin-top:46px;flex-wrap:wrap}
.stat .n{font-family:var(--disp);font-weight:700;font-size:46px;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}
.stat .l{font-size:13px;color:var(--ink-soft);margin-top:6px}
.statband{background:var(--navy);color:#fff;padding:54px 0}
.statband .stats{margin:0;justify-content:space-between;gap:24px}
.statband .stat{flex:1 1 160px}
.statband .stat .n{color:#fff;font-size:54px}
.statband .stat .l{color:rgba(255,255,255,.62);font-size:14px}
@media(max-width:820px){.stats{gap:30px}.statband .stat .n{font-size:42px}}

/* ---------- SERVICE CARDS (dark, homepage) ---------- */
.cards{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.card{background:var(--navy);color:#fff;border-radius:22px;padding:40px 34px;position:relative;overflow:hidden;
  transition:transform .35s ease, box-shadow .35s ease}
.card:hover{transform:translateY(-6px);box-shadow:0 22px 50px -28px rgba(17,35,55,.7)}
.card::after{content:"";position:absolute;right:-40px;top:-40px;width:160px;height:160px;border-radius:50%;
  background:radial-gradient(circle,rgba(82,126,255,.3),transparent 68%)}
.card h3{font-family:var(--disp);font-weight:600;font-size:30px;margin-bottom:10px}
.card > p{color:rgba(255,255,255,.72);font-size:15.5px;margin-bottom:22px}
.card ul{list-style:none;display:flex;flex-direction:column;gap:11px}
.card li{display:flex;gap:11px;align-items:flex-start;font-size:14.5px;color:rgba(255,255,255,.92)}
.card li svg{flex:0 0 auto;margin-top:4px}
.card .more{margin-top:26px;color:#fff;font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:8px;position:relative}
.card .more::after{content:"→";transition:transform .25s}
.card:hover .more::after{transform:translateX(4px)}
@media(max-width:820px){.cards{grid-template-columns:1fr}}

/* ---------- SERVICE DETAIL (residential / commercial) ---------- */
.svc{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.svc-item{background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px 30px;display:flex;flex-direction:column;
  transition:transform .3s,box-shadow .3s}
.svc-item:hover{transform:translateY(-5px);box-shadow:0 18px 44px rgba(17,35,55,.1)}
.svc-item .num{font-family:var(--disp);font-weight:600;font-size:13px;letter-spacing:.24em;color:var(--blue)}
.svc-item h3{font-family:var(--disp);font-weight:600;font-size:27px;line-height:1.08;margin:12px 0 10px}
.svc-item p{color:var(--ink-soft);font-size:15px}
.svc-item ul{list-style:none;margin-top:14px;display:flex;flex-direction:column;gap:8px}
.svc-item li{display:flex;gap:10px;align-items:flex-start;font-size:14.5px}
.svc-item li::before{content:"";flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:var(--blue-lt);margin-top:9px}
@media(max-width:820px){.svc{grid-template-columns:1fr}}

/* ---------- WHY CARDS ---------- */
.cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:48px}
.cards4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:48px}
.why-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px 26px;
  transition:transform .3s,box-shadow .3s}
.why-card:hover{transform:translateY(-5px);box-shadow:0 18px 44px rgba(17,35,55,.1)}
.why-card h3{font-family:var(--disp);font-weight:600;font-size:22px;margin:16px 0 8px}
.why-card p{color:var(--ink-soft);font-size:14.5px}
.ico{width:46px;height:46px;border-radius:13px;background:rgba(32,76,229,.1);
  display:flex;align-items:center;justify-content:center}
.ico svg{width:23px;height:23px;stroke:var(--blue);fill:none;stroke-width:1.7}
@media(max-width:1000px){.cards4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.cards3{grid-template-columns:1fr}}
@media(max-width:560px){.cards4{grid-template-columns:1fr}}

/* ---------- PROCESS STEPS ---------- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:48px;counter-reset:step}
.step{position:relative;padding:28px 26px 30px;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1)}
.step .k{font-family:var(--disp);font-weight:700;font-size:46px;line-height:1;color:var(--blue-lt)}
.step h3{font-family:var(--disp);font-weight:600;font-size:23px;margin:14px 0 8px;color:#fff}
.step p{color:rgba(255,255,255,.7);font-size:14.5px}
@media(max-width:1000px){.steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.steps{grid-template-columns:1fr}}

/* ---------- GALLERY (homepage teaser) ---------- */
.gallery{padding:110px 0;background:var(--mist)}
.grid{display:grid;grid-template-columns:repeat(6,1fr);grid-auto-rows:180px;gap:14px}
.grid figure{overflow:hidden;border-radius:16px;position:relative;background:var(--line)}
.grid img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.1s cubic-bezier(.2,.7,.2,1)}
.grid figure:hover img{transform:scale(1.06)}
.grid .a{grid-column:span 4;grid-row:span 2}
.grid .b,.grid .c,.grid .d,.grid .e{grid-column:span 2;grid-row:span 2}
/* the two portrait shots sit in landscape tiles; keep their subject in frame */
.grid .a img{object-position:50% 45%}
.grid .e img{object-position:50% 38%}
.grid figcaption{position:absolute;left:16px;right:16px;bottom:14px;color:#fff;font-size:13px;font-weight:500;letter-spacing:.02em;
  text-shadow:0 1px 14px rgba(0,0,0,.6);opacity:0;transform:translateY(6px);transition:.3s}
.grid figure::after{content:"";position:absolute;inset:auto 0 0 0;height:46%;pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(9,20,32,.72));opacity:0;transition:opacity .3s}
.grid figure:hover figcaption,.grid figure:hover::after{opacity:1;transform:none}
@media(max-width:820px){
  .grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:170px}
  .grid .a,.grid .b,.grid .c,.grid .d,.grid .e{grid-column:span 1;grid-row:span 1}
  .grid .a{grid-column:span 2;grid-row:span 2}
  /* No hover on touch, and a 170px tile can't carry a three-line overlay:
     only the big tile keeps its caption on phones; the rest are just photos. */
  .grid .a figcaption,.grid .a::after{opacity:1;transform:none}
  .grid .b figcaption,.grid .c figcaption,.grid .d figcaption,.grid .e figcaption,
  .grid .b::after,.grid .c::after,.grid .d::after,.grid .e::after{display:none}
}

/* ---------- PROJECTS (full page) ---------- */
.pgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.pgrid figure{display:flex;flex-direction:column;gap:12px}
.pgrid .ph{overflow:hidden;border-radius:18px;background:var(--line);aspect-ratio:4/3;position:relative}
.pgrid .ph.tall{aspect-ratio:3/4}
.pgrid img{width:100%;height:100%;object-fit:cover;transition:transform 1.1s cubic-bezier(.2,.7,.2,1)}
.pgrid figure:hover img{transform:scale(1.05)}
.pgrid figcaption{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:0 4px}
.pgrid figcaption b{font-family:var(--disp);font-weight:600;font-size:19px;letter-spacing:.01em}
.pgrid figcaption span{font-size:13px;color:var(--ink-soft);white-space:nowrap}
@media(max-width:1000px){.pgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.pgrid{grid-template-columns:1fr;gap:26px}.pgrid figcaption{flex-direction:column;gap:2px}}
/* photo strip (3 up) */
.strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:48px}
.strip figure{border-radius:18px;overflow:hidden;background:var(--line);aspect-ratio:4/3;position:relative}
.strip img{width:100%;height:100%;object-fit:cover;transition:transform 1.1s cubic-bezier(.2,.7,.2,1)}
.strip figure:hover img{transform:scale(1.05)}
.strip figcaption{position:absolute;left:16px;right:16px;bottom:14px;color:#fff;font-size:13px;font-weight:500;text-shadow:0 1px 14px rgba(0,0,0,.6)}
.strip figure::after{content:"";position:absolute;inset:auto 0 0 0;height:50%;pointer-events:none;background:linear-gradient(180deg,transparent,rgba(9,20,32,.72))}
@media(max-width:820px){.strip{grid-template-columns:1fr}.strip figure{aspect-ratio:16/10}}

/* ---------- REVIEWS ---------- */
.quote{padding:120px 0;background:var(--navy-2);color:#eef2f8;text-align:center}
.quote blockquote{font-family:var(--disp);font-weight:500;font-size:clamp(26px,3.6vw,44px);line-height:1.2;max-width:24ch;margin:0 auto}
.quote .who{margin-top:28px;font-size:14px;letter-spacing:.04em;color:rgba(238,242,248,.75)}
.quote .stars{color:#ffd98a;letter-spacing:4px;margin-bottom:24px;font-size:15px}
.reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:48px}
.review{background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px 28px;display:flex;flex-direction:column;gap:16px}
.review .stars{color:#e8a92a;letter-spacing:3px;font-size:14px}
.review blockquote{font-size:15.5px;line-height:1.55;color:var(--ink);flex:1}
.review .who{font-size:13.5px;color:var(--ink-soft)}
.review .who b{display:block;color:var(--ink);font-weight:600;font-size:14.5px}
.dark .review{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.1)}
.dark .review blockquote{color:#eef2f8}
.dark .review .who{color:rgba(255,255,255,.6)}
.dark .review .who b{color:#fff}
@media(max-width:1000px){.reviews{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.reviews{grid-template-columns:1fr}}

/* ---------- EMERGENCY BAND ---------- */
.emerg{background:var(--blue);color:#fff;padding:64px 0}
.emerg .row{display:flex;justify-content:space-between;align-items:center;gap:28px;flex-wrap:wrap}
.emerg h2{font-family:var(--disp);font-weight:600;font-size:clamp(30px,4vw,50px);line-height:1.04}
.emerg p{color:rgba(255,255,255,.82);margin-top:8px;max-width:48ch}
.emerg .navcta{border-color:#fff;color:#fff;padding:14px 28px;font-size:18px;font-family:var(--disp);font-weight:600;letter-spacing:.04em;background:rgba(255,255,255,.08)}
.emerg .navcta:hover{background:#fff;color:var(--blue)}

/* ---------- OFFICES ---------- */
.offices{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:48px}
.office{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px 24px;display:flex;flex-direction:column;gap:6px}
.office h3{font-family:var(--disp);font-weight:600;font-size:24px}
.office p{color:var(--ink-soft);font-size:14.5px;line-height:1.5}
.office a{margin-top:auto;padding-top:12px}
@media(max-width:1000px){.offices{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.offices{grid-template-columns:1fr}}
.cities{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.cities span{border:1px solid var(--line);border-radius:100px;padding:7px 15px;font-size:13.5px;color:var(--ink)}

/* ---------- CTA / FORM ---------- */
.cta{padding:120px 0;background:#fff}
.ctagrid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.cta h2{font-family:var(--disp);font-weight:600;font-size:clamp(34px,4.6vw,58px);line-height:1.02}
.cta .sub{margin-top:20px;color:var(--ink-soft);font-size:17px;max-width:44ch}
.contact-row{display:flex;align-items:center;gap:12px;margin-top:20px;font-size:16px}
.contact-row svg{width:19px;height:19px;stroke:var(--blue);fill:none;stroke-width:1.7;flex:0 0 auto}
.contact-row a:hover{color:var(--blue)}
form{background:#fff;border:1px solid var(--line);border-radius:24px;padding:34px;box-shadow:0 24px 60px -40px rgba(17,35,55,.35)}
form label{display:block;font-size:13px;font-weight:600;margin-bottom:7px;color:var(--ink-soft)}
form .field{margin-bottom:18px}
form input,form select,form textarea{width:100%;border:1px solid var(--line);background:var(--mist);
  border-radius:12px;padding:13px 15px;font:inherit;font-size:15px;color:var(--ink);transition:border .2s, box-shadow .2s;
  -webkit-appearance:none;appearance:none}
form select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6676' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;padding-right:40px}
form input:focus,form select:focus,form textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(32,76,229,.15)}
form textarea{resize:vertical;min-height:96px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
button.submit{width:100%;background:var(--blue);color:#fff;border:none;border-radius:100px;padding:16px;
  font-family:var(--disp);font-weight:600;font-size:19px;letter-spacing:.04em;cursor:pointer;transition:background .25s, transform .15s}
button.submit:hover{background:var(--blue-lt)}
button.submit:active{transform:scale(.99)}
.formnote{font-size:12.5px;color:var(--ink-soft);text-align:center;margin-top:14px}
.sent{display:none;text-align:center;padding:18px 0}
.sent.show{display:block}
.sent .check{width:58px;height:58px;border-radius:50%;background:var(--blue);margin:0 auto 16px;
  display:flex;align-items:center;justify-content:center}
.sent .check svg{width:28px;height:28px;stroke:#fff;fill:none;stroke-width:2.4}
.sent h3{font-family:var(--disp);font-weight:600;font-size:24px}
.sent p{color:var(--ink-soft);margin-top:6px}
@media(max-width:820px){.ctagrid{grid-template-columns:1fr;gap:36px}.two{grid-template-columns:1fr}.cta{padding:80px 0}}
@media(max-width:480px){form{padding:24px 20px}}

/* ---------- FOOTER ---------- */
footer{background:var(--navy);color:rgba(255,255,255,.7);padding:60px 0 40px}
.foot{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap;align-items:flex-start}
.foot .flogo{width:170px;margin-bottom:16px}
.foot a{color:rgba(255,255,255,.7);font-size:14px;display:block;margin:7px 0;transition:color .2s}
.foot a:hover{color:#fff}
.foot h4{color:#fff;font-family:var(--disp);font-size:14px;letter-spacing:.16em;text-transform:uppercase;margin-bottom:14px;font-weight:600}
.legal{margin-top:48px;padding-top:24px;border-top:1px solid rgba(255,255,255,.12);font-size:12.5px;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;color:rgba(255,255,255,.5)}
@media(max-width:640px){.foot{display:grid;grid-template-columns:1fr 1fr;gap:28px 20px}.foot > div:first-child{grid-column:1/-1}}

/* ---------- ELEMENT MOTION ----------
   Scroll-triggered entrance motion on page elements. The hero scrub is
   untouched by any of it. */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1)}
.reveal.from-left{transform:translateX(-36px)}
.reveal.from-right{transform:translateX(36px)}
.reveal.pop{transform:translateY(22px) scale(.97)}
.reveal.in{opacity:1;transform:none}
/* children of a .stagger group enter one after another */
.stagger > .reveal{transition-delay:calc(var(--i,0) * 110ms)}
/* eyebrow labels draw a short rule in from the left as they enter */
.eyebrow{display:inline-flex;align-items:center}
.eyebrow::before{content:"";width:0;height:2px;border-radius:2px;background:currentColor;margin-right:0;
  transition:width .55s cubic-bezier(.2,.7,.2,1) .2s, margin-right .55s cubic-bezier(.2,.7,.2,1) .2s}
.in .eyebrow::before,.eyebrow.in::before{width:26px;margin-right:10px}
@media(prefers-reduced-motion:reduce){
  .reveal,.reveal.from-left,.reveal.from-right,.reveal.pop{opacity:1;transform:none;transition:none}
  .stagger > .reveal{transition-delay:0s}
  .eyebrow::before{width:26px;margin-right:10px;transition:none}
  .navlinks{transition:none}
}
