/* Imperial refresh: navy + metallic gold + royal blue (from the logo), plus motion.
   Loaded after styles.css. Remove this file's <link> to go back to the original look. */

:root {
  --navy-950: #050d1f;
  --navy-900: #081630;
  --navy-800: #0d2145;
  --navy-700: #15305f;
  --royal: #1d5bc9;
  --royal-deep: #133f94;
  --gold: #dcae4a;
  --gold-hover: #f0c768;
  --gold-text: #8a5c0c;
  --gold-grad: linear-gradient(135deg, #f6d987 0%, #e0b04c 45%, #b9842a 100%);
  --coal: var(--navy-900);
  --ink: #0e1a30;
  --paper: #ffffff;
  --white: #ffffff;
  --sand: #f1f4f9;
  --line: #dde3ed;
  --muted: #56617a;
  --blue: var(--royal);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow-sm: 0 2px 6px #0b1a3a12, 0 8px 22px #0b1a3a10;
  --shadow-lg: 0 6px 16px #0b1a3a18, 0 24px 48px #0b1a3a22;
}

html { scroll-behavior: smooth; background: var(--navy-950); overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-x: none; }
main, .site-footer { overflow-x: clip; }
body { background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection { background: #f0c76866; }
h1, h2 { letter-spacing: -.038em; }
h3 { letter-spacing: -.025em; }
:focus-visible { outline-color: var(--royal); }
.eyebrow { color: var(--gold-text); display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--gold-grad); border-radius: 2px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 3px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--navy-900);
  transition: transform .45s var(--ease), background-color .3s ease, padding .3s ease;
}
.home-page .topbar { position: fixed; inset: 0 0 auto; background: transparent; }
.topbar.is-hidden { transform: translateY(-115%); }
.topbar.is-scrolled { padding-block: .55rem; }
.home-page .topbar.is-scrolled { background: linear-gradient(#050d1fcc, #050d1f00); }
.topbar-inner {
  border-color: #e0b04c40;
  background: #0d2145e6;
  box-shadow: inset 0 1px 0 #ffffff1f, 0 .8rem 2.2rem #02081a52;
  transition: min-height .3s ease, background-color .3s ease;
}
@supports (backdrop-filter: blur(12px)) {
  .topbar-inner { background: linear-gradient(116deg, #12295ad1, #081630c4); }
  .topbar.is-scrolled .topbar-inner { background: linear-gradient(116deg, #12295af2, #081630ee); }
}
.topbar.is-scrolled .topbar-inner { min-height: 3.9rem; }
.brand img { transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand-name strong { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.navigation a { position: relative; padding-block: .35rem; }
.navigation > a::after, .services-nav > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.navigation > a:hover::after, .navigation > a[aria-current]::after,
.services-nav > a:hover::after, .services-nav > a[aria-current]::after { transform: scaleX(1); }
.service-links { background: #0d2145f5; border-color: #e0b04c40; }
.service-links:not([hidden]) { animation: drop-in .25s var(--ease); }
.service-links a { transition: background-color .2s, padding .2s; }
.service-links a:hover { background: #ffffff12; padding-left: 1rem; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } }
.menu-button:not([hidden]) { border-color: #e0b04c66 !important; }

/* ---------- Buttons ---------- */
.button {
  position: relative; isolation: isolate;
  border-radius: .6rem;
  transition: transform .25s var(--ease), box-shadow .25s ease, background-color .2s, border-color .2s, color .2s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button-gold { background: var(--gold-grad); color: #1d1405; box-shadow: 0 6px 18px #c8922f40, inset 0 1px 0 #fff7; }
.button-gold:hover { background: var(--gold-grad); box-shadow: 0 10px 26px #c8922f5c, inset 0 1px 0 #fff8; }
.button-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, #ffffff8c 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0;
}
.button-gold:hover::after { background-position: -30% 0; transition: background-position .8s ease; }
.button-dark { background: var(--navy-900); color: #fff; }
.button-dark:hover { background: var(--navy-700); box-shadow: var(--shadow-sm); }
.button-border { border-color: #b9c3d6; color: var(--ink); }
.button-border:hover { background: var(--sand); border-color: var(--navy-700); }

/* ---------- Hero ---------- */
.hero { background: var(--navy-950); min-height: clamp(40rem, 94vh, 58rem); }
.hero-photos { inset: 0; background: var(--navy-900); will-change: transform; overflow: hidden; }
.hero-photo { transition: opacity 1.4s ease; transform-origin: 60% 50%; }
.hero-photo.is-visible { animation: kenburns 8s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero::after {
  background:
    linear-gradient(90deg, #050d1ff7 0%, #081630eb 30%, #0d2145a6 55%, #0d214533 80%, #0d214514 100%),
    linear-gradient(0deg, #050d1fcc, transparent 35%, transparent 70%, #050d1f99);
}
.hero-inner { padding-block: 9.5rem 7.5rem; }
.hero .eyebrow { color: #f0c768; }
.hero h1 span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: #dbe3f2; }
.hero-checks { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; color: #e6ecf8; font-weight: 600; font-size: .95rem; }
.hero-checks li { display: flex; align-items: center; gap: .5rem; }
.hero-checks svg { width: 1.3rem; height: 1.3rem; padding: .2rem; border-radius: 50%; background: var(--gold-grad); fill: none; stroke: #1d1405; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-caption { padding-inline: .8rem; bottom: 7.5rem; background: #081630c7; border-color: #ffffff3d; }
.hero-content > * { animation: slide-left 1.2s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .24s; }
.hero-content > :nth-child(4) { animation-delay: .36s; }
.hero-content > :nth-child(5) { animation-delay: .48s; }
.hero-content > :nth-child(6) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.intro-wait .hero-content > *, .intro-wait .page-intro .wrap > *, .intro-wait .detail-hero-layout > div:first-child > *, .intro-wait .detail-cover { animation-play-state: paused; }
.intro-reset .hero-content > *, .intro-reset .page-intro .wrap > *, .intro-reset .detail-hero-layout > div:first-child > *, .intro-reset .detail-cover { animation: none !important; }
@keyframes slide-left { from { opacity: 0; transform: translateX(-80px); } }
@keyframes slide-right { from { opacity: 0; transform: translateX(80px); } }
/* inner-page intros: slide in from the left on every load and stay */
.page-intro .wrap > *, .detail-hero-layout > div:first-child > * { animation: slide-left 1.1s var(--ease) both; }
.page-intro .wrap > :nth-child(2), .detail-hero-layout > div:first-child > :nth-child(2) { animation-delay: .12s; }
.page-intro .wrap > :nth-child(3), .detail-hero-layout > div:first-child > :nth-child(3) { animation-delay: .24s; }
.page-intro .wrap > :nth-child(4), .detail-hero-layout > div:first-child > :nth-child(4) { animation-delay: .36s; }
.page-intro .wrap > :nth-child(5), .detail-hero-layout > div:first-child > :nth-child(5) { animation-delay: .48s; }
.detail-cover { animation: slide-right 1.2s var(--ease) .2s both; }

/* Overlapping highlight cards (like ARG’s stat cards) */
.hero-cards { position: relative; z-index: 3; margin-top: -5.2rem; padding-bottom: clamp(3rem, 5vw, 4.5rem); }
.hero-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.hero-card { display: flex; gap: 1rem; align-items: flex-start; padding: clamp(1.3rem, 2.4vw, 2rem); background: #fff; border-left: 1px solid var(--line); transition: background-color .3s; }
.hero-card:hover { background: #f7f9fd; }
.hero-card h3 { font-size: 1.15rem; }
.hero-card p { margin-top: .3rem; color: var(--muted); font-size: .95rem; }
.hero-card-gold { background: var(--navy-800); color: #fff; border-left: 0; }
.hero-card-gold:hover { background: var(--navy-700); }
.hero-card-gold p { color: #c8d3ea; }
.hc-icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .75rem; background: var(--gold-grad); box-shadow: 0 6px 14px #c8922f40; transition: transform .4s var(--ease); }
.hero-card:hover .hc-icon { transform: translateY(-3px) rotate(-6deg); }
.hc-icon svg, .why-icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: #1d1405; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Section headings ---------- */
.section-heading { align-items: end; }
.section-heading h2 { margin-top: .1rem; }

/* ---------- Cards (all pages) ---------- */
.service-card, .project-card {
  position: relative; border-radius: 1rem; border-color: var(--line); background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.service-card:hover, .project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #e0b04c80; }
.card-image { position: relative; background: var(--navy-800); }
.card-image img { transition: transform .9s var(--ease), filter .5s; }
:is(.service-card, .project-card):hover img { transform: scale(1.07); }
.card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #081630a6, transparent 55%); opacity: 0; transition: opacity .4s; }
:is(.service-card, .project-card):hover .card-image::after { opacity: 1; }
.card-copy h3 a { text-decoration: none; }
.card-copy h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-copy h3 a { transition: color .3s; }
:is(.service-card, .project-card):hover h3 a { color: var(--gold-text); }
.section-dark :is(.service-card):hover h3 a { color: #f0c768; }
.card-copy h3 a:hover { color: inherit; }
.category { color: var(--royal); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }

/* Dark services band on the homepage */
.section-dark { color: #fff; }
.section-dark .eyebrow { color: #f0c768; }
.section-dark .section-heading > p { color: #b9c5dd; }
.section-dark .service-card { background: #0f2449; border-color: #ffffff17; box-shadow: none; }
.section-dark .service-card:hover { border-color: #e0b04c99; box-shadow: 0 24px 50px #00000059; }
.section-dark .card-copy > p:last-child { color: #b9c5dd; }
.section-dark .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- About / why ---------- */
.trust-section { background: #fff; padding-block: clamp(4rem, 7vw, 7rem); }
.trust-layout { align-items: stretch; }
.trust-photo { position: relative; isolation: isolate; border-radius: 1.1rem; overflow: visible; background: none; }
.trust-photo img { height: 100%; min-height: 26rem; border-radius: 1.1rem; box-shadow: var(--shadow-lg); }
.trust-photo::before { content: ""; position: absolute; z-index: -1; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border-radius: 1.1rem; border: 2px solid #e0b04c88; }
.trust-badge { position: absolute; left: -1rem; bottom: 1.6rem; padding: .9rem 1.2rem; border-radius: .8rem; background: var(--navy-900); color: #dbe3f2; font-size: .92rem; box-shadow: var(--shadow-lg); }
.trust-badge strong { display: block; font: 800 1.5rem/1.1 var(--display); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.why-item { display: flex; gap: .85rem; padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: #fff; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #e0b04c80; }
.why-item h3 { font-size: 1.02rem; }
.why-item p { margin-top: .2rem !important; font-size: .92rem; color: var(--muted); }
.why-icon { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .7rem; background: #fdf4df; }
.why-icon svg { width: 1.3rem; height: 1.3rem; stroke: var(--gold-text); }
.trust-copy > .button { margin-top: 1.6rem; }

/* ---------- Process band ---------- */
.process { position: relative; color: #fff; background: linear-gradient(160deg, var(--royal) 0%, var(--royal-deep) 55%, var(--navy-800) 100%); padding-block: clamp(5.5rem, 9vw, 8rem); overflow: hidden; }
.curve { position: absolute; left: 0; width: 100%; height: clamp(28px, 4vw, 60px); fill: #fff; }
.curve-top { top: -1px; } .curve-bottom { bottom: -1px; }
.process-head { text-align: center; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.process-head .eyebrow { color: #f6d987; justify-content: center; }
.process-head .eyebrow::after { content: ""; width: 1.6rem; height: 2px; background: var(--gold-grad); border-radius: 2px; }
.process-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.2rem); margin: 0; padding: 0; list-style: none; }
.process-step { text-align: center; }
.process-step h3 { font-size: 1.2rem; margin-top: 1.1rem; }
.process-step p { margin-top: .5rem; color: #d6e1f7; font-size: .95rem; max-width: 17rem; margin-inline: auto; }
.step-dot { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; font: 800 1.25rem var(--display); color: #fff; background: #1c4aa8; border: 2px solid #ffffff59; transition: background .5s, color .5s, border-color .5s, transform .5s var(--ease), box-shadow .5s; }
.process-steps::before, .process-steps::after { content: ""; position: absolute; z-index: -1; top: 1.7rem; left: 12.5%; right: 12.5%; height: 2px; background: #ffffff33; }
.process-steps::after { background: var(--gold-grad); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .25s linear; }
.process-step.is-on .step-dot { background: var(--gold-grad); color: #1d1405; border-color: transparent; transform: scale(1.08); box-shadow: 0 0 0 8px #f0c76826; }

/* ---------- Projects marquee ---------- */
.home-projects { background: #fff; }
.marquee { overflow: hidden; padding-block: .5rem 1.5rem; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 1.1rem; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-track a { position: relative; flex: none; width: clamp(15rem, 26vw, 23rem); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s; }
.marquee-track a:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.marquee-track img { aspect-ratio: 4 / 3; transition: transform .9s var(--ease); }
.marquee-track a:hover img { transform: scale(1.07); }
.marquee-track span { position: absolute; left: .7rem; bottom: .7rem; padding: .38rem .7rem; border-radius: .5rem; background: #081630d9; color: #fff; font-size: .84rem; font-weight: 700; backdrop-filter: blur(8px); }
@keyframes marquee { to { transform: translateX(calc(-50% - .55rem)); } }
.home-projects .section-action { margin-top: 1rem; }

/* ---------- Area, FAQ, contact strip ---------- */
.area-band { background: var(--sand); border-color: var(--line); }
.area-content .icon { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--navy-900); color: #f0c768; font-size: 1.8rem; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.faq-section { background: #fff; }
.faq-cta { margin-top: 1.4rem; }
.faq-list { border-top: 0; display: grid; gap: .7rem; }
.faq-list details { border: 1px solid var(--line); border-radius: .9rem; padding-inline: 1.2rem; background: #fff; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.faq-list details:hover { border-color: #c4cde0; }
.faq-list details[open] { border-color: #e0b04c99; box-shadow: var(--shadow-sm); background: #fffdf7; }
.faq-list summary { padding-block: 1.1rem; }
.faq-list summary .icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sand); color: var(--navy-800); transition: transform .35s var(--ease), background-color .3s; }
.faq-list details[open] summary .icon { background: var(--gold-grad); color: #1d1405; }
.faq-list details p { padding-bottom: 1.2rem; }
.contact-strip { background: var(--navy-900); border-top: 0; position: relative; isolation: isolate; overflow: hidden; }
.contact-strip-photo { padding-block: clamp(3.5rem, 7vw, 6rem); }
.contact-strip-photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/imperial/hallway-finishing.webp") center / cover; }
.contact-strip-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, #050d1ff2 10%, #0d2145d9 55%, #133f94b3); }
.contact-strip p { color: #c8d3ea; }

/* ---------- Footer & floating contact ---------- */
.site-footer { background: var(--navy-950); position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gold-grad); }
.footer-grid h2 { color: #f0c768; }
.footer-grid p, .footer-bottom { color: #a9b6d1; }
.footer-grid a:not(.brand) { color: #d3dcee; transition: color .2s, transform .25s var(--ease); }
.footer-grid a:not(.brand):hover { transform: translateX(4px); color: #f0c768; }
.footer-bottom { border-top-color: #ffffff1a; }
.floating-contact { background: #081630e0; border-color: #e0b04c55; transition: transform .45s var(--ease), opacity .3s; }
.floating-contact .quick-text { background: var(--royal); border-color: #ffffff33; }
.floating-contact .quick-text:hover { background: #2a6be0; }
.floating-contact .quick-call { background: var(--gold-grad); color: #1d1405; border-color: transparent; }
.floating-contact .quick-call:hover { background: var(--gold-grad); filter: brightness(1.06); }
.floating-contact a { transition: transform .25s var(--ease), filter .2s; }
.floating-contact a:hover { transform: translateY(-2px); }
.floating-contact.is-tucked { transform: translateY(calc(100% + 1.5rem)); opacity: 0; }

/* ---------- Inner pages ---------- */
.page-intro { position: relative; overflow: hidden; color: #fff; background: var(--navy-900); padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.page-intro::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--gold-grad); opacity: .8; }
.page-intro .eyebrow { color: #f0c768; }
.page-intro .page-lead { color: #c8d3ea; }
.section-after-intro { padding-top: clamp(3rem, 6vw, 5.5rem); }
.section-muted { background: var(--sand); }
.detail-hero { background: radial-gradient(50rem 26rem at 90% -10%, #1d5bc94d, transparent 60%), var(--navy-900); border-bottom: 3px solid #e0b04c; }
.detail-hero .page-lead { color: #c8d3ea; }
.back-link { color: #f0c768; }
.detail-cover { border-radius: 1rem; border-color: #e0b04c55; box-shadow: 0 24px 50px #0000004d; }
.detail-grid article { border-top: 3px solid transparent; border-image: var(--gold-grad) 1; }
.scope-panel { background: var(--sand); border-radius: 1rem; }
.estimate-panel { border-radius: 1rem; box-shadow: var(--shadow-sm); }
.estimate-panel :is(input, select, textarea) { background: #fff; border-color: #c3cbdb; border-radius: .55rem; transition: border-color .2s, box-shadow .2s; }
.estimate-panel :is(input, select, textarea):focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px #1d5bc926; }
.contact-side .icon { color: var(--royal); }
.link-button { color: var(--royal); }
.gallery-track { scrollbar-color: var(--gold) var(--sand); }
.gallery-track figure { border-radius: .9rem; }
.gallery-track img { transition: transform .9s var(--ease); }
.gallery-track a:hover img { transform: scale(1.05); }
.gallery-controls button { border-color: #c3cbdb; border-radius: .6rem; background: #fff; transition: background-color .2s, transform .2s; }
.gallery-controls button:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); }

/* ---------- Dialogs ---------- */
.mobile-menu { background: #0d2145f2; border-color: #e0b04c55; }
@supports (backdrop-filter: blur(12px)) { .mobile-menu { background: #0d2145e0; } }
.mobile-menu[open] { animation: drawer-in .45s var(--ease); }
.mobile-menu.is-closing { animation: drawer-out .3s ease-in forwards; }
.mobile-menu[open]::backdrop { animation: fade-in .35s ease; background: #050d1f99; }
.mobile-menu nav a { transition: color .2s, padding .25s var(--ease); }
.mobile-menu nav a:hover { padding-left: .4rem; }
.mobile-menu[open] nav a { animation: rise .5s var(--ease) both; }
.mobile-menu[open] nav a:nth-child(2) { animation-delay: .05s; } .mobile-menu[open] nav a:nth-child(3) { animation-delay: .1s; }
.mobile-menu[open] nav a:nth-child(4) { animation-delay: .15s; } .mobile-menu[open] nav a:nth-child(5) { animation-delay: .2s; }
.mobile-menu[open] nav a:nth-child(6) { animation-delay: .25s; }
@keyframes drawer-in { from { transform: translateX(108%); } }
@keyframes drawer-out { to { transform: translateX(108%); } }
@keyframes fade-in { from { opacity: 0; } }
.imperial-lightbox { border-color: #e0b04c66; background: var(--navy-950); }
.imperial-lightbox[open] { animation: zoom-in .4s var(--ease); }
.imperial-lightbox[open]::backdrop { animation: fade-in .3s ease; background: #050d1fe6; }
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } }

/* ---------- Scroll reveal (added by motion.js) ---------- */
.motion-ready [data-reveal] { opacity: 0; transition: opacity .8s ease, transform .9s var(--ease); transition-delay: var(--d, 0s); }
.motion-ready [data-reveal="up"] { transform: translateY(34px); }
.motion-ready [data-reveal="left"] { transform: translateX(-40px); }
.motion-ready [data-reveal="right"] { transform: translateX(40px); }
.motion-ready [data-reveal="zoom"] { transform: scale(.94); }
.motion-ready .service-card[data-reveal="left"], .motion-ready .project-card[data-reveal="left"] { transform: translateX(-90px); }
.motion-ready .service-card[data-reveal="right"], .motion-ready .project-card[data-reveal="right"] { transform: translateX(90px); }
.motion-ready [data-reveal].is-in { opacity: 1; transform: none; }
.motion-ready [data-reveal].is-done { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, background-color .3s; transition-delay: 0s; }
.motion-ready .service-card.is-in:hover, .motion-ready .project-card.is-in:hover { transform: translateY(-6px); transition-delay: 0s; }
.motion-ready .why-item.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ---------- Breathing: small ambient motion so the page feels alive ---------- */
/* gold headline shimmer */
/* gold headline text is a static gradient (animating it repainted the page constantly and caused lag) */
/* main estimate buttons: soft halo that breathes (opacity + scale only, so it stays smooth) */
.header-estimate::before, .hero .button-gold::before, .contact-strip .button-gold::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: .85rem; pointer-events: none;
  box-shadow: 0 0 0 4px #f0c7683d, 0 0 26px 6px #f0c76859; opacity: 0; will-change: opacity, transform;
  animation: halo 4s ease-in-out infinite;
}
@keyframes halo { 0%, 100% { opacity: 0; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.06); } }
/* call button ripple */
.floating-contact .quick-call { position: relative; overflow: visible; }
.floating-contact .quick-call::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #f0c768; animation: ripple 2.6s ease-out infinite; pointer-events: none; }
@keyframes ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35, 1.6); } }
/* live status dot */
.live-chip { display: flex; width: fit-content; align-items: center; gap: .55rem; margin-bottom: 1.1rem; padding: .4rem .85rem .4rem .7rem; border-radius: 999px; background: #ffffff12; border: 1px solid #ffffff2e; color: #e6ecf8; font-size: .85rem; font-weight: 600; backdrop-filter: blur(10px); }
.live-chip i { position: relative; width: .55rem; height: .55rem; border-radius: 50%; background: #3ddc84; }
.live-chip i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ddc84; animation: ping 2s ease-out infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
/* icons float gently, out of step with each other */
.hc-icon svg, .why-icon svg { animation: float 4.5s ease-in-out infinite; }
.hero-card:nth-child(2) .hc-icon svg, .why-item:nth-child(2) .why-icon svg { animation-delay: -1.5s; }
.hero-card:nth-child(3) .hc-icon svg, .why-item:nth-child(3) .why-icon svg { animation-delay: -3s; }
.why-item:nth-child(4) .why-icon svg { animation-delay: -2.2s; }
@keyframes float { 50% { transform: translateY(-3px) rotate(-4deg); } }
/* drifting light in the dark and blue sections */
.section-dark, .page-intro, .contact-strip, .hero-cards { position: relative; isolation: isolate; }
.section-dark, .page-intro { overflow: hidden; }
.section-dark::before, .page-intro::before, .process::before {
  content: ""; position: absolute; z-index: -1; width: 60rem; height: 60rem; border-radius: 50%;
  background: radial-gradient(circle, #1d5bc94d 0%, transparent 62%);
  top: -30rem; right: -20rem; animation: drift 16s ease-in-out infinite alternate; pointer-events: none;
}
.process::before { background: radial-gradient(circle, #ffffff26 0%, transparent 60%); top: -24rem; left: -22rem; right: auto; }
.section-dark::after { content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem; border-radius: 50%; background: radial-gradient(circle, #dcae4a1f 0%, transparent 62%); bottom: -26rem; left: -16rem; animation: drift 20s ease-in-out infinite alternate-reverse; pointer-events: none; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-14rem, 9rem) scale(1.15); } }
.section-dark { background: var(--navy-900); }
/* cursor spotlight on cards */
.service-card, .project-card, .why-item, .hero-card { background-image: radial-gradient(22rem circle at var(--mx, -40rem) var(--my, -40rem), #dcae4a1c, transparent 45%); }
.section-dark .service-card { background-image: radial-gradient(24rem circle at var(--mx, -40rem) var(--my, -40rem), #f0c76826, transparent 45%); }
/* scroll cue at the bottom of the hero */
.scroll-cue { position: absolute; left: 50%; bottom: 7.2rem; translate: -50% 0; width: 1.6rem; height: 2.6rem; border: 2px solid #ffffff80; border-radius: 1rem; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: .45rem; width: 4px; height: .55rem; margin-left: -2px; border-radius: 2px; background: #f0c768; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(.9rem); } }
@media (max-width: 860px) { .scroll-cue { display: none; } }


/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .section-dark .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
  .process-steps::before, .process-steps::after { display: none; }
}
@media (max-width: 860px) {
  .hero-cards-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card { border-left: 0; border-top: 1px solid var(--line); }
  .hero-card-gold { border-top: 0; }
  .why-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .home-page .topbar { position: fixed; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .hero { min-height: auto; }
  .hero-photos { inset: auto; margin-top: 0; }
  .hero::after { background: linear-gradient(180deg, #050d1f, #050d1f00 30%, #050d1f00 70%, #050d1fb3); }
  .hero-inner { padding-block: 7rem 1.6rem; }
  .hero-caption { bottom: 4.4rem; }
  .hero-cards { margin-top: -3rem; padding-bottom: 2.5rem; }
  .section-dark .service-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-photo img { min-height: 0; aspect-ratio: 1.3; }
  .trust-photo::before { inset: .9rem -.6rem -.9rem .9rem; }
  .trust-badge { left: .8rem; bottom: .8rem; }
  .process-steps { grid-template-columns: minmax(0, 1fr); }
  .process-step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; text-align: left; }
  .process-step .step-dot { grid-row: span 2; }
  .process-step h3 { margin-top: .55rem; }
  .process-step p { margin-inline: 0; }
  .marquee-track a { width: 72vw; }
  .faq-list details { padding-inline: 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo.is-visible, .hero-content > *, .page-intro .wrap > *, .detail-hero-layout > div:first-child > *, .detail-cover, .area-content .icon,
  .mobile-menu[open], .mobile-menu[open] nav a, .imperial-lightbox[open] { animation: none; }
  .marquee { overflow-x: auto; -webkit-mask: none; mask: none; }
  .marquee-track { animation: none; }
  .header-estimate::before, .hero .button-gold::before, .contact-strip .button-gold::before,
  .floating-contact .quick-call::after, .live-chip i::after, .hc-icon svg, .why-icon svg,
  .section-dark::before, .section-dark::after, .page-intro::before, .process::before,
  .scroll-cue::after { animation: none; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Performance: no live blur behind moving content (it re-renders every scroll frame) ---------- */
.topbar-inner, .floating-contact, .hero-caption, .button-glass, .live-chip, .marquee-track span, .service-links { -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar-inner { background: linear-gradient(116deg, #12295afa, #081630f5); }
.floating-contact { background: #081630f5; }
.hero-caption { background: #081630e8; }
.live-chip { background: #0d2145d9; }
.marquee-track span { background: #081630ee; }
.service-links { background: #0d2145fc; }

/* quiet email link in the footer */
.footer-bottom { flex-wrap: wrap; row-gap: .4rem; }
.footer-bottom .footer-email { opacity: .6; font-size: .85rem; margin-left: auto; transition: opacity .2s; }
.footer-bottom .footer-email:hover, .footer-bottom .footer-email:focus-visible { opacity: 1; }
@media (max-width: 640px) { .footer-bottom .footer-email { margin-left: 0; flex-basis: 100%; } }

.form-error { color: #b3261e; font-weight: 700; }
.estimate-result h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
