/* ============================
   EZ Maintenance Styles (Cobalt/Charcoal)
   ============================ */
   :root{
    --bg: #0c0f14;                       /* charcoal with blue hint */
    --surface: rgba(20,24,31,.6);        /* glassy overlay */
    --text: #e9edf3;                     /* off-white */
    --muted: #b3bdc9;                    /* cool gray */
    --brand: #4ea3ff;                    /* cobalt/azure (primary) */
    --brand-ink: #0a1b2e;                /* dark navy for text on brand */
    --accent: #f59e0b;                   /* warm amber accent for script */
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --radius: 16px;
    --container-pad: clamp(12px, 2.5vw, 24px);
  }
  
  *{box-sizing:border-box}
  html,body{height:100%}
  html, body { overflow-x: hidden; }
  html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: calc(var(--header-offset, 80px) + 8px); }

/* =========================
   Global Buttons (Gold + Black Outline on Hover)
   ========================= */

/* Theme tokens (tweak as needed) */
:root{
  --btn-gold: #ffd166;
  --btn-ink:  #2f2310;
}

/* Base: covers <button>, <a class="btn">, <input type="submit">, etc. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a.btn,
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: .65rem 1rem;
  border-radius: 999px;
  border: 2px solid transparent;

  background: var(--btn-gold);
  color: var(--btn-ink);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;

  transition: border-color .15s ease, transform .08s ease;
  min-height: 40px; /* comfy target */
}

/* Hover: only add a black outline; keep gold fill */
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
a.btn:hover,
.btn:hover {
  border-color: #000;           /* black outline */
}

/* Focus: accessible, clear ring */
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
a.btn:focus-visible,
.btn:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* Active: tiny press feedback */
button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active,
a.btn:active,
.btn:active {
  transform: translateY(1px);
}

/* Disabled */
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled,
.btn[aria-disabled="true"],
a.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Size helpers (optional) */
.btn-sm,
a.btn.btn-sm {
  padding: .5rem .8rem;
  min-height: 36px;
  font-weight: 600;
}

.btn-lg,
a.btn.btn-lg {
  padding: .8rem 1.2rem;
  min-height: 46px;
  font-weight: 800;
}

/* Block (full width) */
.btn-block,
a.btn.btn-block {
  width: 100%;
}

/* Ghost variant (transparent by default; hover gets same black outline) */
.btn-ghost,
a.btn.btn-ghost {
  background: transparent;
  color: var(--btn-ink);
  border-color: transparent;
}
.btn-ghost:hover,
a.btn.btn-ghost:hover {
  border-color: #000;  /* black outline on hover */
}
/* Visible Secondary (light button with strong contrast) */
.btn-secondary,
a.btn.btn-secondary {
  background: #ffffff;
  color: #0b1219;
  border: 2px solid #000;     /* clearly visible at rest */
}
.btn-secondary:hover,
a.btn.btn-secondary:hover {
  /* keep it clean—no fill change, outline already visible via border */
  filter: brightness(1.02);
}


  body{
    margin:0;
    font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
    color:var(--text);
    background:#0b0f15; /* deeper charcoal */
    line-height:1.5;
  }
  
  img{max-width:100%;display:block;height:auto}
  a{color:inherit;text-decoration:none}
  .container{width:min(1200px,94%);margin-inline:auto;padding-inline:var(--container-pad)}
  .skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
  .skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;background:#000;color:#fff;padding:.5rem .75rem;border-radius:.5rem;z-index:9999}
  
  
/* ========= Header (light, compact, 150px logo without negative margins) ========= */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:40;
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.78));
  color:#0b1219;
  backdrop-filter:saturate(120%) blur(8px);
  transition:background .25s ease, box-shadow .25s ease, transform .25s ease;
  padding-top: env(safe-area-inset-top);
  overflow:visible; /* allow visual overhang of the logo */
}
.site-header.scrolled{
  background:rgba(255,255,255,.98);
  box-shadow:0 6px 24px rgba(0,0,0,.08);
}

/* Compact row */
.nav-row{
  --navH: 82px;                 /* compact bar height */
  display:flex; align-items:center; gap:.6rem;
  padding:.2rem 0;
  min-height:var(--navH);
}

/* Brand: reserve width, keep height to nav height, absolutely place logo */
.brand{
  position:relative;
  display:flex; align-items:center;
  gap:.6rem;
  height:var(--navH);          /* keeps header compact */
  min-width:190px;             /* space so nav doesn’t collide with logo */
}

/* Logo: full 150px centered vertically; does not grow header */
.brand-logo{
  position:absolute; left:0; top:50%;
  transform:translateY(-50%);
  height:150px; width:auto; display:block;
}

/* Desktop nav tighter to fit beside the big logo */
.nav-desktop{ margin-left:auto; }
.nav-list{
  display:flex; gap:.85rem; list-style:none; padding:0; margin:0;
}
.nav-list a{
  font-size:1rem; line-height:1;
  color:#0e1620; opacity:.9;
  transition:opacity .15s ease, color .15s ease;
}
.nav-list a:hover{ opacity:1; color:#000; }

/* Desktop CTA (compact) */
.nav-cta{ margin-left:.5rem; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  padding:.44rem .75rem; border-radius:999px; border:1px solid transparent;
  font-weight:600; min-height:36px;
  transition:transform .12s ease, background .2s ease, border-color .2s ease, filter .2s ease;
}
.btn-cta{ background:#ffd166; color:#2f2310; }

/* Subtle divider under white header */
.site-header::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(0,0,0,.06), transparent);
}

/* ========================
   Mobile pill toggle (clean)
   ======================== */
#navToggle.hamburger{
  display:none !important;                 /* shown below ≤1024px */
  background:transparent !important;
  border:2px solid var(--cta, #ffd166);    /* yellow outline */
  border-radius:999px;
  min-height:42px; min-width:60px;
  padding:8px 14px;
  box-shadow:none !important;
  position:relative; z-index:65;
  line-height:0; cursor:pointer;
  -webkit-appearance:none; appearance:none;

  display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
}
#navToggle.hamburger .bar{
  width:22px; height:2px;
  background:#0b1219;                      /* dark bars vs light header */
  border-radius:2px; opacity:1 !important; transform:none !important;
}
#navToggle.hamburger:hover{ background:rgba(255,209,102,.08) !important; }
#navToggle.hamburger:active{ transform:translateY(1px); }
#navToggle.hamburger:focus-visible{
  outline:3px solid rgba(255,209,102,.6); outline-offset:2px;
}
#navToggle[aria-expanded="true"] .bar{ transform:none !important; opacity:1 !important; }

/* ========================
   Drawer / Scrim
   ======================== */
.scrim{
  position:fixed; inset:0; background:rgba(0,0,0,.75); backdrop-filter:blur(2px);
  z-index:80; opacity:0; visibility:hidden; transition:opacity .2s ease;
}
.scrim.active{ opacity:1; visibility:visible; }

.drawer{
  position:fixed; top:0; right:0; left:0; width:100vw; height:auto; max-height:100vh; overflow-y:auto;
  background:#0a0f17 !important; color:var(--text, #e8eef6); z-index:90;
  transform:translateX(100%); transition:transform .25s ease;
  display:flex; flex-direction:column; padding-bottom: env(safe-area-inset-bottom);
}
.drawer.open{ transform:translateX(0); }

/* Drawer header: sticky, readable, no logo */
.drawer-header{
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #0a0f17; /* matches drawer bg for seamless stickiness */
  color: #fff;
}

/* Title styling */
.drawer-title{
  font-size: 1rem; font-weight: 700; letter-spacing: .01em;
  line-height: 1; user-select: none;
}

/* Close button: big target, clean focus, hover */
.icon-btn{
  background: transparent; border: 0; color: #fff; cursor: pointer;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px; /* 44px min touch target */
  transition: background .15s ease, transform .12s ease;
}
.icon-btn:hover{ background: rgba(255,255,255,.08); }
.icon-btn:active{ transform: translateY(1px); }
.icon-btn:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255,209,102,.6); /* yellow focus ring to match brand CTA */
}

/* Slightly bolder “X” for legibility on dark bg */
.icon-btn--close span{ font-size: 1.15rem; line-height: 1; }

/* Keep footer logo nicely separated */
.drawer-footer{
  padding: 1rem; border-top: 1px solid rgba(255,255,255,.08);
}
.drawer-footer .drawer-brand{
  display: grid; place-items: center; padding-top: .75rem; opacity: .9;
}
.drawer-footer .drawer-brand .brand-logo--drawer{ height: 40px; }

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce){
  .icon-btn{ transition: none !important; }
}


/* Links stack and scroll if needed */
.drawer-body{
  display:flex; flex-direction:column; padding:1rem; gap:.25rem;
  background:transparent !important; flex:1 1 auto; /* pushes footer to bottom */
}
.drawer-link{ padding:.9rem 1rem; border-radius:.8rem; opacity:.95; color:#e8eef6; min-height:44px; }
.drawer-link:hover{ background:rgba(255,255,255,.08); opacity:1; }

/* Footer stays at bottom; contains CTA + small logo */
.drawer-footer{
  padding:1rem; border-top:1px solid rgba(255,255,255,.08);
}
.drawer-footer .drawer-brand{
  display:grid; place-items:center; padding-top:.75rem; opacity:.9;
}
.brand-logo--drawer{ height:40px; width:auto; display:block; }

/* ========================
   Responsive
   ======================== */
@media (max-width:1024px){
  #navToggle.hamburger{ display:inline-flex !important; }
  .nav-desktop{ display:none !important; }
  .nav-cta{ display:none !important; }
  .nav-row > #navToggle{ margin-left:auto; } /* push toggle to right on mobile */
}

@media (max-width:560px){
  .nav-row{ --navH: 54px; }
  .brand{ min-width:160px; }
  /* keep 150px; if it crowds, set 130–140px here instead */
  .brand-logo{ height:150px; }
}

/* Screen-reader helper */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
/* Slightly smaller logo on small phones */
@media (max-width: 560px){
  .brand-logo{
    height: 106px;      /* was 150px */
    max-height: 140px;  /* gentle cap */
  }
  .brand{ min-width: 150px; } /* keep nav from colliding */
}


  /* Hero */
  .hero{position:relative;min-height:88vh;display:grid;align-items:end}
  .hero-media{
    position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
    filter:saturate(108%) contrast(1.05) brightness(.9)
  }
  .hero-overlay{
    position:absolute;inset:0;background:
      radial-gradient(1200px 60% at 15% 60%, rgba(4,7,12,.233), rgba(4,7,12,.26)),
      linear-gradient(180deg, rgba(6,9,14,.534) 0%, rgba(6,9,14,.651) 60%, rgba(6,9,14,.92) 100%);
  }
  .hero-inner{position:relative;padding:18vh 0 8vh}
  .hero-tag{
    display:inline-flex;gap:.5rem;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);
    padding:.35rem .65rem;border-radius:999px;font-size:.85rem;color:var(--muted);backdrop-filter:blur(4px)
  }
  .hero-title{font-size:clamp(1.85rem,6vw,3.75rem);margin:.6rem 0 0;font-weight:800;letter-spacing:-.02em}
  .hero-title .script{
    font-family:"Playfair Display", serif;font-style:italic;font-weight:700;color:var(--accent);
    text-shadow:0 4px 22px rgba(245,158,11,.25)
  }
  .hero-title .amp{opacity:.75;font-weight:600}
  .hero-title .strong{color:#fff}
  .hero-subtext{max-width:62ch;color:var(--muted);margin:1rem 0 1.25rem}
  .hero-actions{display:flex;gap:.75rem;flex-wrap:wrap}
  
  /* Stat card */
  .stat-card{
    position:absolute;right:2rem;bottom:2rem;background:var(--surface);
    border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(8px);border-radius:var(--radius);
    display:flex;align-items:center;gap:1rem;padding:.9rem;box-shadow:var(--shadow)
  }
  .stat-icon{font-size:1.25rem}
  .stat-copy{display:grid;line-height:1}
  .stat-number{font-weight:800;font-size:1.25rem}
  .stat-label{font-size:.85rem;color:var(--muted)}
  .stat-figure{width:54px;height:54px;border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,.15)}
  .stat-figure img{width:100%;height:100%;object-fit:cover;transform:scale(1.2)}
  
  /* Sections */
  .section{padding:5rem 0;background:linear-gradient(180deg, rgba(12,16,22,1), rgba(12,16,22,.92))}
  .section.alt{background:linear-gradient(180deg, rgba(11,15,22,1), rgba(11,15,22,.92))}
  .section h2{font-size:clamp(1.35rem,3.2vw,2rem);margin:0 0 .5rem}
  .section p{color:var(--muted);margin:0}
  
  /* Contact grid */
  .contact-grid{
    display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-top:1rem
  }
  .contact-grid label{display:grid;gap:.4rem}
  .contact-grid input,.contact-grid textarea{
    width:100%;padding:.85rem 1rem;border-radius:.9rem;border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.02);color:var(--text);font-size:16px
  }
  .contact-grid .full{grid-column:1/-1}
  
  /* Footer */
  .site-footer{padding:2rem 0;background:#0a0f17;border-top:1px solid rgba(255,255,255,.08);color:var(--muted)}
  .footer-row{display:flex;justify-content:space-between;gap:1rem}
  
  /* Palettes */
  .section.cream{background:#f7f7f4;color:#1f2430}
  .section.cream p{color:#4a5568}
  .section.forest{background:#121826} /* deep navy */
  
  /* Eyebrow label */
  .eyebrow{display:inline-flex;align-items:center;gap:.5rem;font-size:.9rem;font-weight:600;color:var(--brand)}
  .eyebrow::before{content:"";width:.55rem;height:.55rem;border-radius:999px;background:var(--brand)}
  .eyebrow.center{justify-content:center}
  
/* ==============================
   WHY — Visual Upgrade (bigger visual + mobile polish)
   ============================== */

   .why-grid{
    /* give the figure more real estate */
    display:grid;
    grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); /* copy | figure */
    grid-template-areas:"copy figure";
    gap:clamp(1.25rem,3vw,2.25rem);
    align-items:center;
  }
  
  /* copy */
  .why-copy{ grid-area:copy; }
  .why-copy h2{
    font-size:clamp(1.7rem,1.1rem + 2.2vw,2.6rem);
    line-height:1.18;
    margin:.2rem 0 .85rem;
    letter-spacing:-.01em;
  }
  .why-copy .btn-cta{ margin:.9rem 0 1.35rem }
  
  /* figure */
  .why-figure{
    grid-area:figure;
    position:relative;
    border-radius:20px;
    overflow:hidden;
    border:1px solid transparent;
    background:
      linear-gradient(#0000,#0000) padding-box,
      linear-gradient(135deg, rgba(78,163,255,.45), rgba(245,158,11,.35)) border-box;
    box-shadow:0 18px 40px rgba(0,0,0,.28);
  
    /* make the visual larger & taller by default */
    aspect-ratio: 16/9;
    min-height:clamp(360px, 48vh, 640px);
    isolation:isolate;
  }
  
  /* image feel: slight zoom + soft edge mask */
  .why-figure img{
    width:100%;height:100%;object-fit:cover;
    transform:scale(1.03);
    transition:transform .5s ease, filter .35s ease;
  }
  .why-figure::before{
    content:"";
    position:absolute;inset:0;
    /* vignette helps text contrast when stacked on mobile */
    background:
      radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0) 50%, rgba(0,0,0,.15) 100%);
    pointer-events:none;
  }
  .why-figure:hover img{ transform:scale(1.07); }
  
  /* ambient glow */
  .why-figure::after{
    content:"";
    position:absolute; inset:auto -18% -26% -18%;
    height:58%; z-index:-1;
    background:radial-gradient(50% 60% at 50% 100%,
               rgba(78,163,255,.20) 0%, transparent 70%);
    pointer-events:none;
  }
  
  /* mini-cards */
  .why-cards{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:clamp(.8rem, 2.4vw, 1.1rem);
    margin-top:.6rem;
  }
  .mini-card{
    position:relative;
    border-radius:14px;
    padding:1rem 1.1rem 1.05rem;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.12);
    box-shadow:var(--shadow);
    transition:transform .15s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  }
  .mini-card:hover{
    transform:translateY(-3px);
    border-color:rgba(78,163,255,.45);
    background:rgba(255,255,255,.06);
    box-shadow:0 12px 28px rgba(0,0,0,.22);
  }
  .mini-card::before{
    content:"";
    position:absolute; top:12px; left:16px;
    width:30px; height:4px; border-radius:8px;
    background:linear-gradient(90deg, var(--brand), rgba(245,158,11,.9));
    opacity:.95;
  }
  .mini-card h3{ margin:.55rem 0 .35rem; font-size:1.07rem; }
  .mini-card p{ margin:0; color:var(--muted); }
  
  /* Light/cream adjustments */
  .section.cream .why-figure{
    background:
      linear-gradient(#fff,#fff) padding-box,
      linear-gradient(135deg, rgba(78,163,255,.32), rgba(245,158,11,.22)) border-box;
    box-shadow:0 10px 28px rgba(0,0,0,.08);
  }
  .section.cream .why-figure::before{
    background:radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0) 55%, rgba(0,0,0,.10) 100%);
  }
  .section.cream .mini-card{
    background:#fff;border-color:rgba(0,0,0,.08);
    box-shadow:0 8px 20px rgba(0,0,0,.06);
  }
  .section.cream .mini-card:hover{ border-color:rgba(78,163,255,.32) }
  .section.cream .mini-card p{ color:#5b6574 }
  
  /* ===== Responsive ===== */
  @media (max-width: 1180px){
    .why-grid{
      grid-template-columns:1fr;
      grid-template-areas:
        "figure"
        "copy";
    }
    .why-figure{
      /* taller + slightly squarer when stacked */
      aspect-ratio: 4/3;
      min-height:clamp(360px, 52vh, 680px);
    }
  }
  
  @media (max-width: 720px){
    .why-figure{
      border-radius:18px;
      aspect-ratio: 3/2;               /* bigger look on phones */
      min-height:clamp(320px, 56vh, 700px);
    }
    .why-figure img{ transform:scale(1.04); }
    .why-cards{ grid-template-columns:1fr; }
  }
  
  /* Motion-safe */
  @media (prefers-reduced-motion: reduce){
    .why-figure img{ transition:none; transform:none; }
    .mini-card{ transition:none; }
  }
  
  @media (max-width: 720px){
    /* make the figure full-bleed and taller on phones */
    #why .container{ padding-inline: clamp(10px, 4vw, 18px); }
    .why-figure{
      width: 100vw;
      margin-left: calc(50% - 50vw);
      border-radius: 0;              /* comment out if you prefer rounded on mobile */
      aspect-ratio: 3 / 2;
      min-height: clamp(320px, 54vh, 600px);
    }
    .why-figure::after{ inset: auto -6% -18% -6%; }
    .why-cards{ grid-template-columns: 1fr; }
    .why-figure img{ transform: scale(1.01); }
  }
  /* ===== WHY — Mobile fixes: bigger, tighter, touches hero ===== */
@media (max-width: 720px){

  /* Reduce top padding so WHY section hugs the hero */
  #why.section{ padding-top: 1.25rem; }

  /* Make the figure visually connect to the hero */
  #why .why-figure{
    margin-top: -6vw;                 /* pulls image up toward hero */
    aspect-ratio: 4 / 3;              /* nicer phone proportion */
    min-height: clamp(260px, 52vh, 560px);
    /* optional: full-bleed image on mobile for a hero-y feel */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);    /* edge-to-edge without changing markup */
  }

  /* Show the upper part of the photo; lighter zoom */
  #why .why-figure img{
    object-fit: cover;
    object-position: 50% 25%;         /* focus upper third */
    transform: scale(1.01);
  }

  /* Remove heavy vignette on phones for a cleaner look */
  #why .why-figure::before{ background: none; }

  /* Tighten gaps when stacked */
  .why-grid{
    gap: clamp(.8rem, 2.5vw, 1.1rem);
    grid-template-columns: 1fr;
    grid-template-areas:
      "figure"
      "copy";
  }

  /* Cards stack, with a touch more breathing room below image */
  .why-cards{ grid-template-columns: 1fr; }
}

  
  /* PROCESS timeline */
  #process .center{text-align:center}
  .process{
    margin:2.25rem auto 0;list-style:none;padding:0;display:grid;
    grid-template-columns:repeat(4,1fr);gap:1.5rem;position:relative;max-width:1000px
  }
  .process::before{
    content:"";position:absolute;left:6%;right:6%;top:48%;
    height:2px;background:rgba(255,255,255,.15)
  }
  .step{position:relative;text-align:center;padding:1rem .5rem;color:#dbe3ee}
  .step h3{margin:.6rem 0 .35rem;color:#fff}
  .step p{margin:0;color:#c9d3e1}
  .step-icon{
    width:46px;height:46px;border-radius:999px;background:var(--brand);color:var(--brand-ink);
    display:grid;place-items:center;font-weight:800;margin-inline:auto;box-shadow:0 6px 18px rgba(78,163,255,.35)
  }
  /* =========================
   GALLERY — Polished layout
   ========================= */

/* Container breathing on mobile/desktop + safe-area */
#gallery .container {
  padding-inline: clamp(10px, 3vw, 28px);
  padding-left: max(10px, env(safe-area-inset-left));
  padding-right: max(10px, env(safe-area-inset-right));
}

/* Head + toolbar */
.gallery-head{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.75rem;
  margin:.25rem 0 1rem;
}
.gallery-toolbar{
  display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap;
}

/* CHIP SCROLLER (default: desktop/tablet) */
.gallery-toolbar .filters{
  --chip-gap: .5rem;
  display:flex; gap:.4rem; flex-wrap:nowrap;           /* single line */
  overflow-x:auto; overflow-y:hidden; max-width:100%;
  -webkit-overflow-scrolling:touch; overscroll-behavior-inline:contain;
  padding-inline:6px; scrollbar-width:none; scroll-snap-type: x proximity;
  /* subtle edge fade */
  mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.gallery-toolbar .filters::-webkit-scrollbar{ display:none; }

/* Chips: clearer active/focus */
.chip{
  flex:0 0 auto; scroll-snap-align:start;
  padding: clamp(.44rem, 1.4vw, .52rem) clamp(.7rem, 2.2vw, .9rem);
  border-radius:999px; border:1px solid rgba(0,0,0,.12);
  background:#fff; color:#1f2430; font-weight:600; font-size:clamp(.86rem, 1.6vw, .92rem);
  cursor:pointer; line-height:1; white-space:nowrap; text-overflow:ellipsis; max-width:100%;
  transition:transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.chip:hover{ transform:translateY(-1px) }
.chip:focus-visible{ outline:0; box-shadow:0 0 0 3px color-mix(in oklab, var(--brand) 40%, #fff 60%); }
.chip.is-active{
  background:var(--brand); color:var(--brand-ink); border-color:transparent;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
}
.btn-sm{ padding:.5rem .8rem; border-radius:999px; font-size:.9rem }

/* keep your current mobile/tablet single-line scroller as-is */

/* Desktop: 2–3 row horizontal scroller */
@media (min-width: 1024px){
  .gallery-toolbar .filters{
    display: grid;
    grid-auto-flow: column;              /* fill top-to-bottom, then next column */
    grid-auto-columns: max-content;      /* column width fits the widest chip in that column */
    grid-template-rows: repeat(2, max-content); /* default: 2 visible rows */
    gap: .5rem .5rem;

    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-inline: 6px;
    mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }

  /* modifier to show 3 rows instead of 2 */
  .gallery-toolbar .filters.rows-3{
    grid-template-rows: repeat(3, max-content);
  }

  /* chips no longer need flex sizing inside grid */
  .chip{
    flex: initial;
    scroll-snap-align: start;
  }
}


/* Grid (balanced, denser on wide screens) */
.gallery-grid{
  --gap: 14px;
  --tile-min: clamp(240px, 26vw, 320px);
  display:grid;
  gap:var(--gap);
  grid-template-columns:repeat(auto-fit, minmax(var(--tile-min), 1fr));
  grid-auto-flow:dense;
}

/* Optional "patterned" layout: auto feature tiles without editing HTML */
.gallery-grid.patterned .tile:nth-child(12n + 1){ grid-column:span 2; }
.gallery-grid.patterned .tile:nth-child(12n + 4){ grid-row:span 2; aspect-ratio:4/5; }
.gallery-grid.patterned .tile:nth-child(12n + 8){ grid-column:span 2; }

/* Tiles */
.tile{
  position:relative; overflow:hidden; border-radius:16px; background:#0b0f14;
  border:1px solid rgba(0,0,0,.06);
  aspect-ratio:5/4;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  cursor:zoom-in;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.12); border-color:rgba(0,0,0,.12); }
.tile:focus-within{ outline:0; box-shadow:0 0 0 3px color-mix(in oklab, var(--brand) 35%, #000 0%); }

/* Images */
.tile img{
  width:100%; height:100%; object-fit:cover; object-position:center;
  transform:scale(1.02);
  transition:transform .45s ease, filter .3s ease;
}
.tile:hover img{ transform:scale(1.06) }

/* Overlay softens; darker on hover only */
.tile::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(0,0,0,.35));
  opacity:.85; pointer-events:none; transition:opacity .2s ease;
}
.tile:hover::after{ opacity:.95 }

/* Caption (hidden by default, reveal on hover/focus) */
.tile figcaption{
  position:absolute; left:10px; right:10px; bottom:10px;
  color:#fff; font-size:.92rem; font-weight:700; letter-spacing:.01em;
  background:rgba(0,0,0,.35); padding:.45rem .7rem; border-radius:10px;
  backdrop-filter:blur(2px);
  transform:translateY(6px); opacity:0; transition:opacity .18s ease, transform .18s ease;
}
.tile:hover figcaption,
.tile:focus-within figcaption{ opacity:1; transform:translateY(0) }

/* Manual size modifiers if you want to tag a few tiles in HTML */
.tile.feature,.tile.w2{ grid-column:span 2; }
.tile.tall,.tile.h2{ grid-row:span 2; aspect-ratio:4/5; }

/* Light theme tweaks */
.section.cream .chip{ border-color:rgba(0,0,0,.12) }
.section.cream .gallery-grid .tile{ box-shadow:0 6px 18px rgba(0,0,0,.06) }
.section.cream .tile::after{ opacity:.8 }

/* Filter hiding */
.tile.is-hidden{ display:none !important; }

/* === LIGHTBOX OVERLAY (fixed) === */
.lightbox[hidden]{ display:none !important; }

.lightbox{
  position: fixed; inset: 0;
  display: grid; place-items: center;
  /* Fallback (always visible) */
  background: rgba(0,0,0,.72);
}
@supports (background: color-mix(in oklab, black 70%, transparent)){
  .lightbox{ background: color-mix(in oklab, #000 70%, transparent); }
}

.lightbox{
  z-index: 10000;
  padding: clamp(12px, 3vw, 24px);
  opacity: 0; transform: scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}
.lightbox.is-open{
  opacity: 1; transform: scale(1);
}

.lb-figure{
  max-width: min(96vw, 1200px);
  max-height: min(92vh, 1200px);
  display: grid; gap: .75rem;
  background: #fff; border-radius: 14px;
  padding: clamp(.75rem, 1.6vw, 1rem);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
#lbImg{ max-width:100%; max-height:76vh; object-fit:contain; border-radius:8px; }

/* Buttons */
.lb-btn{
  position:absolute; top: clamp(10px, 3vh, 20px);
  width:40px; height:40px; border-radius:999px; border:0;
  background: rgba(255,255,255,.9); color:#111; display:grid; place-items:center;
  cursor:pointer; box-shadow:0 6px 20px rgba(0,0,0,.25);
  transition: transform .12s ease, background .15s ease;
}
.lb-btn:hover{ transform: translateY(-1px); background:#fff; }
.lb-close{ right: clamp(10px, 3vw, 24px); }
.lb-prev{  left:  clamp(10px, 3vw, 18px); top:50%; transform:translateY(-50%); }
.lb-next{  right: clamp(10px, 3vw, 18px); top:50%; transform:translateY(-50%); }

/* Page scroll lock helper (HTML class toggled in JS) */
html.no-scroll{ overflow:hidden; }




/* =========================
   RESPONSIVE
   ========================= */

/* Large tablets: pack more columns smoothly */
@media (max-width: 1200px){
  .gallery-grid{ --tile-min: clamp(220px, 32vw, 300px); }
}

/* Tablet: two-up stable, avoid awkward spans */
@media (max-width: 1024px){
  .gallery-grid{ --tile-min: 240px; }
  .gallery-grid.patterned .tile:nth-child(12n + 1),
  .gallery-grid.patterned .tile:nth-child(12n + 8),
  .tile.feature,.tile.w2{ grid-column: span 1; }
  .gallery-grid.patterned .tile:nth-child(12n + 4),
  .tile.tall,.tile.h2{ grid-row: span 1; aspect-ratio: 5/4; }
}

/* ===== Mobile: chips wrap into 3-per-row, then 2-per-row on smaller phones ===== */
@media (max-width: 820px){
  .gallery-toolbar{
    flex-direction:column; align-items:stretch; gap:.6rem;
  }
  .gallery-toolbar .filters{
    display:flex; flex-wrap:wrap; gap:var(--chip-gap);
    overflow:visible; padding:0; margin:0;
    mask-image:none; -webkit-mask-image:none;   /* remove desktop fade mask */
  }
  .gallery-toolbar .chip{
    flex: 1 1 calc((100% - 2 * var(--chip-gap)) / 3);
    max-width: calc((100% - 2 * var(--chip-gap)) / 3);
    text-align:center; justify-content:center;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    padding-inline:.7rem; font-size:.9rem; line-height:1.1;
  }
  #galleryLoadMore{ align-self:flex-end; }
}

@media (max-width: 560px){
  .gallery-toolbar .chip{
    flex: 1 1 calc((100% - var(--chip-gap)) / 2);
    max-width: calc((100% - var(--chip-gap)) / 2);
    font-size:.88rem; padding-inline:.62rem;
  }
}

/* Tiny devices or very long labels: allow 2 lines gracefully */
@media (max-width: 380px){
  .gallery-toolbar .chip{
    white-space:normal; line-height:1.15; min-height:2.35rem;
  }
}

/* Phablet/Phone: single column tiles, taller frames */
@media (max-width: 820px){
  .gallery-grid{
    grid-template-columns:1fr !important;
    --tile-min: 100%;
    gap:12px;
  }
  .tile{ aspect-ratio:4/3; border-radius:14px; }
  .tile figcaption{ font-size:.98rem; padding:.5rem .75rem; }
}

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce){
  .chip, .tile, .tile img, .tile::after, .tile figcaption{ transition:none !important; }
}

/* ABOUT — short, mobile friendly */
.about-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:2rem;
  align-items:center;
}
.about-figure{ border-radius:18px; overflow:hidden; box-shadow:var(--shadow); }
.about-figure img{ width:100%; height:100%; object-fit:cover; }
.about-cta{ margin-top:1rem; display:flex; gap:.6rem; flex-wrap:wrap; }

/* Stack on tablets/phones */
@media (max-width: 1024px){
  .about-grid{ grid-template-columns:1fr; }
}


/* Small phones: even taller images for impact */
@media (max-width: 420px){
  .tile{ aspect-ratio: 3 / 2; }               /* more vertical space */
  .chip{ font-size:.88rem; padding:.48rem .85rem; }
}
/* ===== Services grid (responsive, light + dark aware) ===== */
.svc-grid{
  --svc-gap: 1rem;
  display:grid;
  gap: var(--svc-gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1rem;
}

.svc-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .2s ease, background .2s ease;
}
.svc-card:hover{ transform: translateY(-2px); }

.section.cream .svc-card{
  background: #fff;
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.svc-card h3{
  margin: .35rem 0 .25rem;
  font-size: 1.05rem;
}
.svc-card p{
  margin: 0;
  color: var(--muted);
}

/* Icon pill */
.svc-icon{
  width: 40px; height: 40px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: rgba(78,163,255,.12);
  color: var(--brand);
  font-size: 1.05rem;
  border: 1px solid rgba(78,163,255,.25);
}

/* CTA row */
.svc-cta{
  margin-top: 1.25rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

  /* ===== Before & After — Mobile-friendly upgrades ===== */
.ba-compare{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  aspect-ratio:16/10;
  background:#0a0f17;

  /* Let horizontal drag work smoothly on touch,
     but still allow vertical page scrolling. */
  touch-action: pan-y;
}

/* Images */
.ba-compare img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
}

/* Reveal window and divider line (thicker for visibility) */
.ba-before-wrap{
  position:absolute; inset:0;
  width:calc(var(--pos,50) * 1%);
  overflow:hidden;
  border-right:3px solid var(--brand);     /* was 2px */
}

/* Divider line */
.ba-compare::after{
  content:"";
  position:absolute; top:0; bottom:0;
  left:calc(var(--pos,50) * 1%);
  width:3px;                                /* was 2px */
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);    /* adds contrast on bright images */
}

/* Handle — larger, obvious, with ↔ icon */
.ba-compare::before{
  content:"↔";
  position:absolute; top:50%;
  left:calc(var(--pos,50) * 1%);
  transform:translate(-50%,-50%);
  width:40px; height:40px;                  /* bigger handle */
  border-radius:999px;
  display:grid; place-items:center;
  font-size:16px; font-weight:800;
  color:#0a1b2e;                             /* dark text on brand */
  background: var(--brand);
  border:2px solid rgba(255,255,255,.9);
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  animation: ba-pulse 1.6s ease-out 2;       /* call attention briefly */
}

@keyframes ba-pulse{
  0%   { box-shadow: 0 0 0 0 rgba(78,163,255,.35); }
  100% { box-shadow: 0 0 0 18px rgba(78,163,255,0); }
}

/* Coarse pointers (phones/tablets): make it even easier */
@media (pointer: coarse){
  .ba-compare::before{ width:48px; height:48px; font-size:18px; }
  .ba-compare::after{ width:4px; }
  .ba-before-wrap{ border-right-width:4px; }
}

/* Visual feedback while dragging */
.ba-compare.dragging::before{
  transform:translate(-50%,-50%) scale(1.05);
}
.ba-compare.dragging::after{
  box-shadow: 0 0 0 2px rgba(0,0,0,.3);
}

/* Range overlay — keep full-area control, improve cursors on desktop */
.ba-slider{
  position:absolute; inset:0;
  width:100%; height:100%;
  opacity:0;
  cursor: ew-resize;
}
@media (pointer: fine){
  .ba-slider{ cursor: grab; }
  .ba-compare.dragging .ba-slider{ cursor: grabbing; }
}

/* Card + meta keep your existing styles */
.ba-card{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:.75rem .75rem 1rem;
  box-shadow:var(--shadow);
}
.section.cream .ba-card{ background:#fff; border-color:rgba(0,0,0,.08) }

.ba-meta{
  display:flex; justify-content:space-between; align-items:center;
  gap:.5rem; margin-top:.75rem;
}
.section.cream .ba-meta strong{ color:#1f2430 }
.ba-tag{
  font-size:.8rem; font-weight:600;
  padding:.25rem .55rem; border-radius:999px;
  background:rgba(0,0,0,.06); color:inherit;
}
.section.cream .ba-tag{ background:#eef1f6; color:#334155 }

/* Grid responsiveness for the BA section */
.ba-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:1.25rem;
}
@media (max-width: 1024px){
  .ba-grid{ grid-template-columns:repeat(2,1fr) }
}
@media (max-width: 720px){
  .ba-grid{ grid-template-columns:1fr }
  .ba-compare{ aspect-ratio: 4/3; } /* a bit taller on phones */
}

  /* =========================
     RESPONSIVE POLISH
     ========================= */
  
  /* Hero comfort */
  @media (max-width:720px){
    .hero{min-height:72vh;align-items:end}
    .hero-inner{padding:18vh 0 9vh}
    .hero-subtext{font-size:.98rem}
    .hero-actions .btn{flex:1 1 auto}
  }
  
  /* Stat card avoid overlap */
  @media (max-width:640px){
    .stat-card{position:static !important;margin-top:1rem;width:100%;justify-content:space-between}
  }
  
  /* Why + Process collapse */
  @media (max-width:1024px){
    .why-grid{grid-template-columns:1fr !important}
    .process{grid-template-columns:repeat(2,1fr) !important}
  }
  @media (max-width:720px){
    .process{grid-template-columns:1fr !important;max-width:680px}
    .process::before{display:none !important}
  }
  
  /* Contact form single column earlier */
  @media (max-width:900px){
    .contact-grid{grid-template-columns:1fr !important}
  }
  
  /* Testimonials columns */
  @media (max-width:1024px){
    .testi-grid{grid-template-columns:repeat(2,1fr) !important}
  }
  @media (max-width:720px){
    .testi-grid{grid-template-columns:1fr !important}
  }
  
  /* Gallery responsiveness */
  @media (max-width:1024px){
    .gallery-grid{--tile-min:220px}
    .tile.feature,.tile.w2{grid-column:span 1 !important}
    .tile.tall,.tile.h2{grid-row:span 1 !important;aspect-ratio:5/4 !important}
  }
  @media (max-width:720px){
    .gallery-grid{--tile-min:160px}
    .lb-prev,.lb-next{width:38px;height:38px}
  }
  
  /* Before & After grid */
  @media (max-width:1024px){
    .ba-grid{grid-template-columns:repeat(2,1fr) !important}
  }
  @media (max-width:720px){
    .ba-grid{grid-template-columns:1fr !important}
    .ba-compare{aspect-ratio:4/3}
  }
  
  /* Footer stack */
  @media (max-width:720px){
    .footer-row{flex-direction:column;align-items:flex-start;gap:.5rem}
  }
  
  /* Nav visibility helper (legacy) */
  @media (max-width:1024px){
    .nav-desktop{display:none}
    .hamburger{display:inline-flex}
    .nav-cta{display:none}
    .stat-card{right:1rem;bottom:1rem}
  }
  