:root {
  --primary: #313C96;
  --navy: #1D245A;
  --accent: #838AC0;
  --tint: #D6D8EA;
  --deep: #0F122D;
  --paper: #F5F6FB;
  --silver: #B8B8B8;
}
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { font-family: 'Manrope', system-ui, sans-serif; color: var(--deep); background: #fff; -webkit-font-smoothing: antialiased; }
.font-display { font-family: 'Archivo', system-ui, sans-serif; font-stretch: 112%; }
.font-serif-i { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; }

.t-hero { font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4.6rem); line-height: .98; letter-spacing: -0.035em; }
.t-1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; }
.t-2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.1rem); line-height: 1.04; letter-spacing: -0.025em; }
.t-3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.65rem); line-height: 1.15; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); line-height: 1.7; }
.prose-ahc p { line-height: 1.8; margin-bottom: 1.1em; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }

/* header */
.site-header { transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(15,18,45,.45); background-color: rgba(255,255,255,.88); }
.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.dropdown { visibility: hidden; opacity: 0; transform: translateY(6px); transition: all .2s ease; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { visibility: visible; opacity: 1; transform: translateY(0); }

#sticky-cta.cta-hidden { transform: translateY(160%); opacity: 0; pointer-events: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; border-radius: 999px; font-weight: 700; padding: .95rem 1.6rem; min-height: 48px; transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 14px 30px -14px rgba(49,60,150,.8); }
.btn-primary:hover { background: #28327f; }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* decorative */
.grid-lines { background-image: linear-gradient(rgba(131,138,192,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(131,138,192,.14) 1px, transparent 1px); background-size: 56px 56px; }
.roofline { clip-path: polygon(0 18%, 50% 0, 100% 18%, 100% 100%, 0 100%); }
.hero-photo { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
@media (max-width: 1023px) { .hero-photo { clip-path: none; } }

/* cards */
.card-lift { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(15,18,45,.5); }
.zoom-img { overflow: hidden; }
.zoom-img img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.zoom-img:hover img, .group:hover .zoom-img img { transform: scale(1.06); }

/* reveal */
/* Content is always visible by default. With JS running (html.js) and motion allowed,
   a section that scrolls in from below plays a one-off fade-up. Nothing is ever left hidden. */
@keyframes reveal-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
html.js .reveal.is-revealing { animation: reveal-up .8s cubic-bezier(.2,.7,.2,1) both; }
html.js .reveal-delay-1.is-revealing { animation-delay: .1s; }
html.js .reveal-delay-2.is-revealing { animation-delay: .2s; }
html.js .reveal-delay-3.is-revealing { animation-delay: .3s; }

/* gallery + lightbox */
.masonry { columns: 2 220px; column-gap: 1rem; }
.masonry > * { break-inside: avoid; margin-bottom: 1rem; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(15,18,45,.94); display: none; align-items: center; justify-content: center; padding: 4rem 1rem; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(1200px, 100%); border-radius: .75rem; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.filter-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* forms */
.field { width: 100%; border: 1.5px solid #dcdeee; background: #fff; border-radius: .9rem; padding: .9rem 1rem; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(49,60,150,.14); }
.label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .45rem; color: var(--navy); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.grecaptcha-badge { visibility: hidden; }
.form-msg { display: none; }
.form-msg.is-shown { display: flex; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

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