﻿:root{
  --navy:#121212;
  --gold:#CFB53B;
  --black:#000;
  --angle:0deg;
  /* Palette tokens */
  --brand: var(--navy);
  --accent: var(--gold);
  --text-primary:#ffffff;
  --text-muted:#ffffff;
  --surface:#0E1116;
  --border-subtle:rgba(255,255,255,.12);
  --veil-1:rgba(255,255,255,.04);
  --link-hover:#2a2a2a;
  --focus-ring:#CFB53B;
}
/* Ensure consistent box model across elements and pseudo-elements */
*,*::before,*::after{box-sizing:border-box}
html{min-height:100%;background:radial-gradient(circle at 50% 20%, #0F0F0F 0%, #050505 60%, #000000 100%)}
body{margin:0;color:var(--text-primary);background-attachment:fixed;font:16px/1.45 Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:1400px;margin:0 auto;padding:0 16px}
.mt1{margin-top:.75rem}.mt2{margin-top:1.5rem}.mt3{margin-top:2rem}.mt4{margin-top:2.5rem}
.tiny{font-size:.78rem}.muted{color:var(--text-muted)}
.row{display:flex;gap:.75rem;align-items:center}.between{justify-content:space-between}.end{justify-content:flex-end}.full{width:100%}
.grid{display:grid;gap:1.5rem}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}

.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5rem}
@media (max-width:900px){.grid3,.grid4,.grid2{grid-template-columns:1fr}}

/* Temporarily hide Estimate Genie step on home process grid */
#process .grid4 .card:first-child{display:none}
/* Hide permits blog card on home page (backup) */
#blogs .grid3 > article:nth-child(2){display:none}

/* Center the final step below the first two in process detail grid */
@media (min-width:901px){
  .grid2 .step-center{grid-column:1/-1;justify-self:center;max-width:calc((100% - 1.5rem)/2);width:100%}
}

/* Nav */
.nav{position:sticky;top:0;z-index:50}
.nav-inner{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;margin-top:8px}
.brand{display:flex;gap:12px;align-items:center}
.logo{height:40px;width:auto;filter:drop-shadow(0 6px 24px rgba(207,181,59,.35))}
.brand-name{font-weight:700;letter-spacing:.02em}
.brand-sub{font-size:.75rem;color:#ffffff;margin-top:-4px}
.nav-links{display:none;gap:20px}@media (min-width:768px){.nav-links{display:flex}}
.nav-link{position:relative}
.nav-link::after{content:"";position:absolute;left:0;right:0;bottom:-8px;height:2px;background:linear-gradient(90deg,rgba(207,181,59,0),rgba(207,181,59,.9),rgba(207,181,59,0));transform:scaleX(0);transition:transform .25s;transform-origin:center}
.nav-link:hover::after,.nav-link.active::after{transform:scaleX(1)}
.nav-ctas{display:flex;gap:10px;align-items:center}
.nav-inner{flex-wrap:wrap}
@media (min-width:768px){.nav-inner{flex-wrap:nowrap}}

/* Mobile hamburger */
.hamburger{display:none; width:40px; height:40px; padding:0; border:1px solid var(--border-subtle); background:var(--veil-1); color:inherit; align-items:center; justify-content:center; cursor:pointer; flex-direction:column; gap:6px}
.hamburger:focus{outline:none; box-shadow:0 0 0 3px rgba(0,0,0,.55)}
.hamburger span{display:block; width:20px; height:2px; background:rgba(255,255,255,.9); margin:0; transition:transform .18s ease, opacity .18s ease}
@media (max-width:767px){
  .hamburger{display:inline-flex}
  /* Mobile dropdown menu */
  .nav.is-open .nav-links{
    display:flex; flex-direction:column; gap:6px;
    position:absolute; right:8px; top:calc(100% + 8px);
    padding:10px 12px;
    background:#000; /* opaque black */
    border:1px solid rgba(255,255,255,.14);
    z-index:60; min-width:200px
  }
  .nav.is-open .nav-links .nav-link{padding:6px 2px}
}
/* Open state: slide top/bottom into center and fade them, leaving one line */
/* With gap:6px and line height:2px, center-to-center offset is 8px */
.nav.is-open .hamburger span:nth-child(1){transform:translateY(8px);opacity:0}
.nav.is-open .hamburger span:nth-child(2){transform:translateY(0);opacity:1}
.nav.is-open .hamburger span:nth-child(3){transform:translateY(-8px);opacity:0}

.tel{padding:8px 10px;border:1px solid rgba(255,255,255,.1)}
.ico{font-size:14px;opacity:.9}

/* Hero */
.hero{position:relative;min-height:72vh;display:grid;place-items:center;padding-top:64px}
.hero-inner{position:relative;width:100%}
.hero-card{position:relative;z-index:2;max-width:780px;margin:0 auto;padding:24px 28px}
.super{display:inline-block;font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);font-weight:700;margin-bottom:.5rem}
.hero-title{font-weight:800;font-size:clamp(2.25rem,1.4rem + 3vw,4rem);line-height:1.05;letter-spacing:-.01em;text-shadow:0 6px 30px rgba(0,0,0,.35)}
.gold-gradient{background:linear-gradient(180deg,#fff,#f5e9b8 35%,var(--gold));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-copy{margin-top:.75rem;font-size:1.15rem;color:#ffffff}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.hero-proof{display:flex;gap:12px;align-items:center;margin-top:14px;color:#ffffff}.hero-proof .dot{display:none}@media(min-width:768px){.hero-proof .dot{display:inline}}

/* Bouncer */
.ring-bounds{position:absolute;inset:0;pointer-events:none;z-index:1}
.precision-diamond{position:absolute;top:0;left:0;width:clamp(140px,20vw,210px);height:clamp(140px,20vw,210px);transform-origin:center;
  clip-path:polygon(50% 0%,100% 50%,50% 100%,0% 50%);
  background:linear-gradient(135deg,#f3e6b0 0%,#CFB53B 60%,#9f8a2f 100%),linear-gradient(315deg,rgba(255,255,255,.25),rgba(0,0,0,.20));
  box-shadow:0 16px 48px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12)}
.diamond-glint{position:absolute;inset:-2px;clip-path:inherit;background:linear-gradient(45deg,rgba(255,255,255,.25),rgba(255,255,255,0) 40%),linear-gradient(225deg,rgba(0,0,0,.18),rgba(0,0,0,0) 55%);mix-blend-mode:screen;opacity:0}

/* Sections */
.section{position:relative}
.pad{padding-top:56px;padding-bottom:56px}
.card{display:block;padding:24px;border:1px solid rgba(255,255,255,.12)}
/* Consistent heading styles across pages */
.section-title{font-weight:800;letter-spacing:-.01em;line-height:1.15;font-size:clamp(1.6rem,1.1rem + 1.6vw,2.2rem);margin:0 0 8px}
.card-title{font-weight:800;letter-spacing:-.01em;line-height:1.2;font-size:clamp(1.1rem,1rem + 0.6vw,1.35rem);margin:0 0 6px}
.step{color:var(--gold);font-weight:800;margin-bottom:6px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-block;font-size:.8rem;padding:6px 10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);cursor:pointer;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .12s ease}
.chip:hover,.chip:focus{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.22);box-shadow:inset 0 0 12px rgba(255,255,255,.05)}
.area-header{text-align:center;margin-bottom:16px}
.area-header .chip{background:rgba(207,181,59,.2);border-color:rgba(207,181,59,.4);color:var(--gold)}

/* Area cards (areas.html) clickable arrow indicator */
.area-link{position:relative;display:block;padding-right:42px}
.area-link::after{
  content:'\203A';
  position:absolute;right:16px;top:50%;transform:translateY(-50%);
  font-size:20px;line-height:1;color:var(--gold);
  text-shadow:0 2px 6px rgba(0,0,0,.35);
  opacity:.9;transition:transform .15s ease, opacity .15s ease;
}
.area-link:hover::after,.area-link:focus-visible::after{transform:translateY(-50%) translateX(4px);opacity:1}

/* Gallery */
.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
.tile{display:block;overflow:hidden;border:1px solid rgba(255,255,255,.12)}
.tile img{height:220px;width:100%;object-fit:cover;transition:transform .3s}
.tile:hover img{transform:scale(1.03)}


/* Case study cards: uniform thumbnail sizes on main and work pages */
.grid3 .card img{
  width:100%;
  height:280px;
  object-fit:contain;
  display:block;
  background: rgba(0,0,0,0.1);
}

/* Card slider styles */
.card-slider {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 16px;
}

.card-slider .before-image,
.card-slider .after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-slider .after-image {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  -webkit-clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  transition: clip-path 0.3s ease, -webkit-clip-path 0.3s ease;
  will-change: clip-path;
}

/* Disable transition during active drag for immediate response */
.card-slider.dragging .after-image {
  transition: none !important;
}

.card-slider .slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: var(--gold);
  cursor: ew-resize;
  transform: translateX(-50%) translateZ(0);
  z-index: 10;
  box-shadow: 0 0 8px rgba(207, 181, 59, 0.6);
}

.card-slider .slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.card-slider .slider-handle::after {
  content: '\2194';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: -1px;
}

.card-slider .before-label,
.card-slider .after-label {
  position: absolute;
  top: 12px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  z-index: 5;
  pointer-events: none;
}

.card-slider .before-label {
  left: 12px;
}

.card-slider .after-label {
  right: 12px;
}

@media (max-width: 900px) {
  .card-slider {
    height: 240px;
  }
}
@media (max-width:900px){
  .grid3 .card img{height:240px}
}

/* Testimonials coverflow */
.t-wrap{position:relative;margin-top:16px;outline:none;overflow:hidden}
.t-deck{position:relative;height:480px}
.t-anchor{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
.t-card{width:clamp(220px,30vw,260px);height:clamp(360px,50vw,440px);padding:16px;border:1px solid rgba(255,255,255,.12);display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 14px 50px rgba(0,0,0,.35), inset 0 0 40px rgba(255,255,255,.02);background:linear-gradient(to bottom right,rgba(255,255,255,.10),rgba(255,255,255,.04));transition:transform .45s cubic-bezier(.22,.8,.28,1), filter .45s, opacity .45s}
.t-stars{color:var(--gold)}
.t-meta{color:#ffffff;font-size:.8rem;margin-top:12px}
.deck-btn{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border:1px solid rgba(255,255,255,.18);background:linear-gradient(135deg,rgba(255,255,255,.2),rgba(255,255,255,.06));color:#fff;cursor:pointer}
.prev{left:-6px}.next{right:-6px}

/* Inputs & modal */
.input, .file, textarea.input{padding:10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#fff}
.area{min-height:120px}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.7);display:none;place-items:center;padding:16px;z-index:60}
.modal.show{display:grid}
.modal-body{width:min(720px,94vw);padding:20px;border:1px solid rgba(255,255,255,.12)}

/* Buttons */
.btn-keycap{position:relative;cursor:pointer;color:#000;background:linear-gradient(180deg,#f3e6b0 0%,#CFB53B 70%,#9f8a2f 100%);padding:.9rem 1.15rem;font-weight:800;letter-spacing:.02em;border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.35), 0 0 0 1px rgba(207,181,59,.35);transform:translateY(0);transition:transform .06s ease, filter .12s ease, box-shadow .12s ease}
.btn-keycap:hover{filter:brightness(1.04);transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.25)}
.btn-keycap:active{transform:translateY(0);box-shadow:inset 0 2px 0 rgba(0,0,0,.5), inset 0 0 10px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.15)}
.btn-keycap:focus{outline:none;box-shadow:0 0 0 3px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.35)}
.btn-keycap::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.75),rgba(255,255,255,0) 35%);pointer-events:none;opacity:.9;transition:opacity .12s}
.btn-keycap:active::before{opacity:.4}
.btn-ghost{padding:.8rem 1rem;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);backdrop-filter:blur(10px)}

/* Medallion */
.medal{position:relative;width:56px;height:56px;display:grid;place-items:center;clip-path:polygon(50% 0%,100% 50%,50% 100%,0% 50%);background:linear-gradient(135deg,rgba(207,181,59,.9),rgba(207,181,59,.25)),linear-gradient(315deg,rgba(255,255,255,.35),rgba(0,0,0,.20));border:1px solid rgba(255,255,255,.22);box-shadow:inset 0 0 0 1px rgba(255,255,255,.15), 0 12px 28px rgba(0,0,0,.35)}
.medal::before{content:"";position:absolute;inset:8px;clip-path:inherit;background:repeating-linear-gradient(45deg,rgba(255,255,255,.12) 0,rgba(255,255,255,.12) 1px,rgba(255,255,255,0) 3px);box-shadow:inset 0 6px 18px rgba(0,0,0,.35)}
.medal::after{content:"";position:absolute;inset:0;clip-path:inherit;box-shadow:0 0 22px rgba(207,181,59,.35)}
.medal svg{width:22px;height:22px;color:#fff}
.medal:hover{transform:translateY(-1px);filter:brightness(1.05) saturate(1.02);transition:transform .15s, filter .15s}

/* Glass */
.glass{
  -webkit-backdrop-filter:blur(14px) saturate(120%);
  backdrop-filter:blur(14px) saturate(120%);
  /* Subtle frost texture layered over the base gradient */
  background:
    /* Soft glint near top-left */
    radial-gradient(16rem 12rem at 20% 15%, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 60%),
    /* Diagonal sheen */
    linear-gradient(115deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 56%),
    /* Micro-lines for frosted texture */
    repeating-linear-gradient(110deg, rgba(255,255,255,.015) 0 1px, rgba(255,255,255,0) 1px 7px),
    /* Base glass gradient */
    linear-gradient(to bottom right, rgba(255,255,255,.10), rgba(255,255,255,.04));
}
.glass-xl{
  -webkit-backdrop-filter:blur(18px) saturate(130%);
  backdrop-filter:blur(18px) saturate(130%);
  background:
    radial-gradient(18rem 14rem at 20% 15%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(115deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 56%),
    repeating-linear-gradient(110deg, rgba(255,255,255,.02) 0 1px, rgba(255,255,255,0) 1px 7px),
    linear-gradient(to bottom right, rgba(255,255,255,.14), rgba(255,255,255,.06));
}
.hero-plate{border:1px solid rgba(255,255,255,.14);box-shadow:0 20px 80px rgba(0,0,0,.45), inset 0 0 40px rgba(255,255,255,.02)}

/* Background */
.fixed-bg{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.flow-bg{position:absolute;inset:0;transform-origin:50% 50%;will-change:transform;background:
  radial-gradient(120rem 120rem at 5% -20%, rgba(20,54,89,.24), transparent 75%),
  radial-gradient(110rem 110rem at 95% 0%, rgba(20,54,89,.18), transparent 75%),
  radial-gradient(110rem 110rem at 30% 120%, rgba(20,54,89,.12), transparent 75%),
  radial-gradient(100rem 100rem at 70% 100%, rgba(20,54,89,.06), transparent 75%);
  animation: shift 18s ease-in-out infinite alternate}
@keyframes shift{0%{background-position:0 0,0 0,0 0,0 0}100%{background-position:18% 8%,-10% 5%,10% -12%,0 0}}
.blob{display:none}
.b1{background:radial-gradient(circle at 40% 40%, rgba(207,181,59,.24), transparent 60%);top:-24%;left:-24%}
.b2{background:radial-gradient(circle at 60% 60%, rgba(207,181,59,.16), transparent 60%);top:33%;right:-32%}
.b3{background:radial-gradient(circle at 50% 50%, rgba(255,255,255,.12), transparent 60%);bottom:-10%;left:25%}
.vignette{display:none}

/* v1.2.14: simplify to one consistent gradient background on main page */
.fixed-bg{display:block}


/* Footer + socials */
.footer{display:flex;gap:24px;align-items:flex-start;justify-content:space-between}
.footer-logo{height:40px;filter:drop-shadow(0 6px 20px rgba(207,181,59,.35))}
.links{display:flex;gap:14px;align-items:center}
.social{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.soc{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;
     background:linear-gradient(180deg,#f4e7b2 0%, #CFB53B 68%, #8f7b27 100%);
     border:1px solid rgba(255,255,255,.2);
     box-shadow:0 10px 26px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.45);
     transition:transform .08s ease}
.soc svg{width:22px;height:22px;display:block}
.soc:hover{transform:translateY(-2px)}
.soc:active{transform:translateY(0)}

/* FAB */
.fab{position:fixed;bottom:18px;right:18px;z-index:70}

/* v1.2.9 additions */
.scheduler.boxed{max-width:860px;margin:16px auto 8px}
.scheduler{--sched-h:760px; overflow:hidden; padding:8px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(to bottom right,rgba(255,255,255,.10),rgba(255,255,255,.04));
  backdrop-filter:blur(14px) saturate(120%);
}
.scheduler iframe,.calendly-inline-widget{width:100%;height:var(--sched-h);border:0}
@media (max-width:1200px){.scheduler.boxed{max-width:92vw}}
@media (max-width:900px){ .scheduler{--sched-h:1020px;padding:6px} }
@media (max-width:600px){ .scheduler{--sched-h:1120px;padding:6px} }

@media (max-width:900px){
  .hero{min-height:76vh;padding-top:56px}
  .hero-card{max-width:680px;padding:18px 16px}
  .hero-actions{flex-direction:column;align-items:stretch;gap:8px}
  .btn-keycap,.btn-ghost{width:100%;text-align:center}
  .t-deck{height:420px}
  .tile img{height:200px}
}
@media (max-width:600px){
  .hero-title{font-size:clamp(2rem,1.2rem + 4.5vw,3rem)}
  .t-deck{height:380px}
  .precision-diamond{width:34vw;height:34vw}
  .footer{flex-direction:column;gap:16px}
  .links{flex-wrap:wrap}
  .soc{width:40px;height:40px}
}

/* Mobile tweak: make Yvonne's testimonial text even smaller to fit */
@media (max-width:600px){
  .t-card[data-idx="0"] p{font-size:.75rem;line-height:1.3}
}

/* Fold phone (unfolded) tweak: keep box same size, tighten text */
@media (min-width:600px) and (max-width:920px){
  .t-card[data-idx="0"] p{font-size:.78rem;line-height:1.32;margin:6px 0}
  .t-card[data-idx="0"] .t-meta{margin-top:8px;font-size:.78rem}
}

/* --- v1.2.12: Estimate Genie banner + card --- */
.genie-banner{display:flex;gap:12px;align-items:center;margin-top:12px;color:#ffffff}
.genie-banner .tag{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);font-weight:800}
.genie-card{display:grid;grid-template-columns:160px 1fr;gap:16px;align-items:center;margin-top:18px;
  border:1px solid rgba(255,255,255,.14);padding:12px 14px;background:linear-gradient(to bottom right,rgba(255,255,255,.10),rgba(255,255,255,.04));
  backdrop-filter:blur(12px) saturate(120%);
}

/* --- v1.2.14: Palette wiring (navy demoted, charcoal canvas) --- */
.btn-ghost:focus{outline:none;box-shadow:0 0 0 3px rgba(0,0,0,.55)}
.footer .links a:hover{color:var(--gold)}
.genie-ill{width:150px;height:auto;align-self:center;filter:drop-shadow(0 10px 30px rgba(0,0,0,.45))}
@media (max-width:700px){
  .genie-card{grid-template-columns:1fr;text-align:center}
  .genie-ill{margin:0 auto;width:140px}
}

/* v1.2.13: Genie video media */
.genie-media{width:150px;height:auto;align-self:center;display:block;
  border-radius:0;overflow:hidden;
  box-shadow:0 12px 36px rgba(0,0,0,.45);
}
@media (max-width:700px){ .genie-media{margin:0 auto;width:140px} }


/* --- Background reset: single fixed gradient, no blobs/vignette --- */
.fixed-bg{display:block}
.flow-bg{background:
  /* Symmetric edge vignette: lighter center, darker toward all edges */
  radial-gradient(140rem 140rem at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,.14) 100%),
  /* Focal highlight pin at the parallax center */
  radial-gradient(2rem 2rem at var(--cx,50%) var(--cy,40%), rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%),
  /* Symmetric center shadow basin */
  radial-gradient(36rem 28rem at var(--cx,50%) var(--cy,40%), rgba(0,0,0,.22) 0%, rgba(0,0,0,.10) 45%, rgba(0,0,0,0) 75%),
  /* Core glow (navy #04268E) */
  radial-gradient(12rem 12rem at var(--cx,50%) var(--cy,40%), rgba(4,38,142,.30) 0%, rgba(4,38,142,.14) 10%, rgba(4,38,142,.03) 22%, rgba(4,38,142,0) 34%),
  /* Broader navy field (navy #04268E) */
  radial-gradient(90rem 90rem at var(--cx,50%) var(--cy,40%), rgba(4,38,142,.10) 0%, rgba(4,38,142,.04) 26%, rgba(4,38,142,0) 46%),
  radial-gradient(140rem 140rem at var(--cx,50%) var(--cy,40%), rgba(4,38,142,.02) 0%, rgba(4,38,142,0) 70%),
  /* Grayscale base */
  radial-gradient(120rem 120rem at var(--cx,50%) var(--cy,45%), #0B0B0B 0%, #060606 60%, #020202 100%);
  animation:none;filter:saturate(0.75) brightness(1.22); opacity:.88}

/* Glassmorphic sheen overlay tied to parallax centerpoint (with frosted blur) */
.flow-bg::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  /* Very subtle glass glare + micro-texture; rotates with .flow-bg */
  background:
    /* Soft glint near the moving focal point */
    radial-gradient(16rem 12rem at var(--cx,50%) var(--cy,35%), rgba(255,255,255,.08) 0%, rgba(255,255,255,.035) 38%, rgba(255,255,255,0) 62%),
    /* Diagonal sheen */
    linear-gradient(115deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 56%),
    /* Faint micro-lines for a glass texture */
    repeating-linear-gradient(110deg, rgba(255,255,255,.015) 0 1px, rgba(255,255,255,0) 1px 7px);
  opacity:.46;
  mix-blend-mode:screen;
  /* Frosted blur applies to the backdrop (the parallax gradients beneath this layer) */
  -webkit-backdrop-filter: blur(6px) saturate(115%);
  backdrop-filter: blur(6px) saturate(115%);
}

/* Rotating drop shadow below the parallax (follows rotation and centerpoint) */
.flow-bg::before{
  content:"";
  position:absolute;
  inset:-8% -10% -4% -10%;
  pointer-events:none;
  /* Shadow wedge pointing "down" relative to the element; rotation applied by .flow-bg */
  background:
    conic-gradient(from 90deg at var(--cx,50%) var(--cy,40%),
      rgba(0,0,0,.32) 0deg,
      rgba(0,0,0,.22) 18deg,
      rgba(0,0,0,.12) 44deg,
      rgba(0,0,0,0) 92deg,
      rgba(0,0,0,0) 360deg);
  filter: blur(28px);
  opacity:.28;
  mix-blend-mode:multiply;
}


/* Non-rotating vertical vignette overlay: darkest top/bottom, lightest center */
.fixed-bg::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(140rem 140rem at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,.14) 100%);
}

.blob,.vignette{display:none}


/* --- Before/After Slider --- */
.before-after-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.before-after-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-slider .after-image {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  transition: clip-path 0.3s ease;
  will-change: clip-path;
}

.before-after-slider.dragging .after-image {
  transition: none !important;
}

/* Hint the browser that handle position will change */
.card-slider .slider-handle,
.before-after-slider .slider-handle {
  will-change: left;
}

.before-after-slider .slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--gold);
  cursor: ew-resize;
  transform: translateX(-50%) translateZ(0);
  z-index: 10;
  box-shadow: 0 0 10px rgba(207, 181, 59, 0.5);
}

.before-after-slider .slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.before-after-slider .slider-handle::after {
  content: '\2194';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: -2px;
}

.before-after-slider .before-label,
.before-after-slider .after-label {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 5;
  pointer-events: none;
}

/* (reverted) */

.before-after-slider .before-label {
  left: 20px;
}

.before-after-slider .after-label {
  right: 20px;
}



/* Make case study cards clickable */
.case-study-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-study-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.case-study-card .card-title::after {
  content: ' \203A';
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.case-study-card:hover .card-title::after {
  opacity: 1;
}

/* Blog page styles */
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(207, 181, 59, 0.15);
  border: 1px solid rgba(207, 181, 59, 0.3);
  color: var(--gold);
  border-radius: 12px;
  font-weight: 500;
}

/* Ensure proper spacing for blog cards only */
.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.blog-card .btn-ghost {
  margin-top: auto;
}

/* Areas section now uses standard padding for consistency */

.areas-cta {
  margin-top: 24px;
  text-align: center;
}



@media (max-width: 768px) {
  .before-after-slider {
    height: 450px;
  }
  
  .before-after-slider .before-label,
  .before-after-slider .after-label {
    font-size: 12px;
    padding: 6px 12px;
  }
}


/* --- Zoom-out accommodations (VisualViewport-aware) --- */
html.vv-zoomed-out .nav-inner{flex-wrap:wrap;gap:8px;padding:8px 10px}
html.vv-zoomed-out .brand-sub{display:none}
html.vv-zoomed-out .logo{height:32px}
html.vv-zoomed-out .nav-ctas{flex:1 1 auto;gap:8px}
html.vv-zoomed-out .tel{padding:6px 8px}
html.vv-zoomed-out .btn-keycap{padding:.7rem .9rem}
html.vv-zoomed-out .hero{padding-top:58px}
html.vv-zoomed-out .genie-card{grid-template-columns:1fr;text-align:center}
html.vv-zoomed-out .genie-media{width:140px;margin:0 auto}
html.vv-zoomed-out .t-deck{height:400px}
html.vv-zoomed-out .t-card{width:clamp(200px,28vw,240px);height:clamp(320px,44vw,400px);padding:14px}
html.vv-zoomed-out .t-meta{font-size:.78rem}

/* --- Slider refinements (pointer events, touch, a11y) --- */
/* Ensure slider glyphs render in white */
.card-slider .slider-handle::after, .before-after-slider .slider-handle::after { color:#fff !important; }
/* Prevent default touch gestures on sliders to remove drag latency */
.card-slider, .before-after-slider { touch-action: none; user-select: none; }
/* Improve touch/drag interactions on handle */
.card-slider .slider-handle, .before-after-slider .slider-handle { touch-action: none; user-select: none; }
/* Ensure arrow renders consistently across encodings */
.card-slider .slider-handle::after, .before-after-slider .slider-handle::after { content: '\2194' !important; }

/* --- Mobile Animation Speedups (≤768px) --- */
@media (max-width: 767px){
  /* Faster underline reveal */
  .nav-link::after{ transition: transform .15s ease; }

  /* Snappier hamburger bars */
  .hamburger span{ transition: transform .12s ease, opacity .12s ease; }

  /* Quicker image hover */
  .tile img{ transition: transform .18s ease; }

  /* Before/After sliders: faster clip-path */
  .card-slider .after-image{ transition: clip-path .18s ease, -webkit-clip-path .18s ease; }
  .before-after-slider .after-image{ transition: clip-path .18s ease, -webkit-clip-path .18s ease; }

  /* Testimonials cards settle quicker */
  .t-card{ transition: transform .28s cubic-bezier(.22,.8,.28,1), filter .28s ease, opacity .28s ease; }

  /* Buttons feel more responsive */
  .btn-keycap{ transition: transform .05s ease, filter .08s ease, box-shadow .08s ease; }
  .btn-keycap::before{ transition: opacity .08s ease; }

  /* Medallion hover polish */
  .medal:hover{ transition: transform .12s ease, filter .12s ease; }

  /* Clickable card effects speed up */
  .case-study-card{ transition: transform .12s ease, box-shadow .12s ease; }
  .case-study-card .card-title::after{ transition: opacity .12s ease; }

  /* Chips animate a bit faster */
  .chip{ transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, transform .10s ease; }

  /* Background parallax animation cycles faster */
  .flow-bg{ animation-duration: 12s; }
}

/* --- Mobile Performance Tweaks (≤768px) --- */
@media (max-width: 767px){
  /* Reduce heavy backdrop blur/saturation on glass surfaces */
  .glass{
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    backdrop-filter: blur(8px) saturate(110%);
  }
  .glass-xl{
    -webkit-backdrop-filter: blur(10px) saturate(115%);
    backdrop-filter: blur(10px) saturate(115%);
  }
  /* Genie card uses blur as well */
  .genie-card{
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    backdrop-filter: blur(8px) saturate(110%);
  }

  /* Tone down moving overlays to reduce repaint cost */
  .flow-bg::after{
    -webkit-backdrop-filter: blur(3px) saturate(110%);
    backdrop-filter: blur(3px) saturate(110%);
    mix-blend-mode: normal;
    opacity: .36;
  }
  .flow-bg::before{
    filter: blur(18px);
    opacity: .20;
  }

  /* Promote frequently animated items to their own layers */
  .t-card, .tile img, .case-study-card, .hamburger span { will-change: transform; transform: translateZ(0); }

  /* Slightly lighter shadows on cards to reduce raster cost */
  .t-card{ box-shadow: 0 10px 36px rgba(0,0,0,.30), inset 0 0 32px rgba(255,255,255,.02); }
}
