@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plus-jakarta-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-800.woff2") format("woff2"); }
:root {
    --blue: #243F94;        /* hero overlay blue */
    --brand: #2D6CDF;       /* logo blue */
    --navy: #0F1F4B;
    --gold: #F6CA45;
    --gold-deep: #E9B824;
    --ink: #0F172A;
    --muted: #5B6476;
    --line: #E3E7EF;
    --mist: #F5F7FB;
    --white: #FFFFFF;
    --r: 18px;
    --wrap: 1200px;
    --gutter: clamp(1.15rem, 4vw, 2.5rem);
    --shadow: 0 18px 40px -22px rgba(15, 31, 75, .35);
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 90px; }
  body { margin: 0; font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
  img, video { max-width: 100%; height: auto; display: block; }
  picture { display: contents; }
  picture > source { display: none; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
  .dark :focus-visible { outline-color: var(--gold); }
  .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
  h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
  h2 { font-size: clamp(2rem, 4vw, 3rem); }
  h3 { font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: .5rem; }
  p { margin: 0 0 1rem; }
  section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
  .head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); text-align: center; }
  .head p { color: var(--muted); margin: 1rem auto 0; max-width: 60ch; }
  .eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 700; color: var(--brand); margin-bottom: 1rem; }
  .eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold-deep); }

  .btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
         padding: 1rem 1.9rem; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, transform .2s; }
  .btn:hover { transform: translateY(-1px); }
  .btn-gold { background: var(--gold); color: var(--ink); }
  .btn-gold:hover { background: #FFD45C; }
  .btn-glass { color: var(--white); border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
  .btn-glass:hover { background: rgba(255,255,255,.16); }
  .btn-blue { background: var(--blue); color: var(--white); }
  .btn-blue:hover { background: var(--navy); }
  .ico { width: 20px; height: 20px; flex: none; }

  /* Header */
  .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px);
                 background: rgba(255,255,255,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
                 border-bottom: 1px solid rgba(15,31,75,.06); transition: background-color .25s, box-shadow .25s; }
  .site-header.solid { background: rgba(255,255,255,.96); box-shadow: 0 8px 24px -18px rgba(15,31,75,.45); }
  .nav-row { display: flex; align-items: center; gap: 2rem; height: 82px; }
  .brand img { height: 58px; width: auto; }
  .nav { display: flex; gap: 1.9rem; margin: 0 auto; }
  .nav a { text-decoration: none; font-weight: 500; color: #3B4458; font-size: 1rem; }
  .nav a:hover { color: var(--blue); }
  .nav-phone { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; color: #3B4458; white-space: nowrap; }
  .site-header .btn { padding: .8rem 1.4rem; }
  @media (max-width: 1080px) { .nav { display: none; } .nav-row { justify-content: space-between; } }
  @media (max-width: 640px) { .nav-phone span { display: none; } .brand img { height: 48px; } .nav-row { height: 70px; gap: 1rem; } .site-header .btn { padding: .7rem 1rem; font-size: .9rem; } }

  /* Hero */
  .hero { position: relative; margin: 0 clamp(0rem, 1vw, .75rem); border-radius: 0 0 28px 28px; overflow: hidden; color: var(--white);
          min-height: min(100svh, 960px); display: grid; place-items: center; text-align: center; padding: 130px 0 70px; }
  .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
                  background: linear-gradient(115deg, rgba(36,63,148,.88) 0%, rgba(36,63,148,.78) 45%, rgba(20,34,84,.9) 100%); }
  .badge { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
           color: var(--gold); border: 1px solid rgba(246,202,69,.45); background: rgba(15,31,75,.35); margin-bottom: 2rem; }
  @media (max-width: 560px) { .badge { font-size: .8rem; padding: .5rem 1rem; } .hero-ctas .btn { width: 100%; } .hero { padding-top: 110px; } }
  .hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.75rem); line-height: 1.04; letter-spacing: -.035em; }
  .hero h1 span { display: block; }
  .hero h1 .gold { color: var(--gold); }
  .hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.4rem); color: rgba(255,255,255,.9); max-width: 50ch; margin: 1.75rem auto 2.5rem; line-height: 1.6; }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
  .hero-ctas .btn { padding: 1.15rem 2.2rem; font-size: 1.1rem; }
  .checks { list-style: none; padding: 0; margin: 3rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 2.25rem; font-weight: 500; color: rgba(255,255,255,.92); }
  .checks li { display: inline-flex; align-items: center; gap: .55rem; }

  /* Why us */
  .why-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
  @media (min-width: 960px) { .why-grid { grid-template-columns: 1.05fr 1fr; } }
  .why-photo { position: relative; }
  .why-photo img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
  .rating-chip { position: absolute; left: clamp(.75rem, 3vw, 1.5rem); bottom: clamp(.75rem, 3vw, 1.5rem); background: var(--white); border-radius: 14px; padding: .9rem 1.2rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .9rem; text-decoration: none; }
  .rating-chip b { font-size: 1.7rem; letter-spacing: -.02em; }
  .rating-chip small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.3; }
  .stars { color: var(--gold-deep); letter-spacing: 2px; font-size: .95rem; }
  .why-copy p.lead { color: var(--muted); font-size: 1.1rem; }
  .points { display: grid; gap: 1.5rem 2rem; margin-top: 2rem; }
  @media (min-width: 600px) { .points { grid-template-columns: 1fr 1fr; } }
  .point { display: flex; gap: .9rem; }
  .point .dot { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #EEF3FD; display: grid; place-items: center; color: var(--blue); }
  .point h3 { font-size: 1.02rem; margin-bottom: .2rem; }
  .point p { color: var(--muted); font-size: .94rem; margin: 0; line-height: 1.6; }

  /* Services */
  .services { background: var(--mist); }
  .svc-grid { display: grid; gap: 1.5rem; }
  @media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
  .svc { background: var(--white); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); }
  .svc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #DDE3EE; color: transparent; }
  .svc-body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; flex: 1; }
  .svc h3 { font-size: 1.4rem; }
  .svc p { color: var(--muted); font-size: .97rem; }
  .svc ul { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .95rem; }
  .svc li { padding: .45rem 0 .45rem 1.6rem; border-top: 1px solid var(--line); position: relative; }
  .svc li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-deep); }
  .svc .link { margin-top: auto; font-weight: 700; color: var(--blue); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
  .svc .link:hover { text-decoration: underline; text-underline-offset: 4px; }

  /* Before & after */
  .ba { display: grid; gap: 1rem; }
  @media (min-width: 800px) { .ba { grid-template-columns: 1fr 1fr; } }
  .ba figure { margin: 0; position: relative; }
  .ba img { border-radius: var(--r); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
  .ba .label { position: absolute; top: 1rem; left: 1rem; padding: .35rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--white); color: var(--ink); }
  .ba .label.after { background: var(--gold); }
  .ba-cap { text-align: center; color: var(--muted); margin-top: 1.25rem; font-size: .95rem; }

  /* Gallery */
  .gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin: clamp(4rem, 8vw, 6rem) 0 2rem; }
  .gallery-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; letter-spacing: -.02em; }
  .gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
  @media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; } }
  .gallery button { all: unset; cursor: zoom-in; position: relative; border-radius: 14px; overflow: hidden; display: block; }
  .gallery button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
  .gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .5s; }
  .gallery button:hover img { transform: scale(1.04); }
  .gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .85rem; font-size: .88rem; font-weight: 600; color: var(--white); background: linear-gradient(transparent, rgba(15,31,75,.85)); }
  @media (min-width: 900px) {
    .gallery img { aspect-ratio: auto; }
    .gallery .g-video { grid-column: span 2; grid-row: span 2; }
    .gallery .g-tall { grid-row: span 2; }
    .gallery .g-wide { grid-column: span 2; }
  }
  .g-video { border-radius: 14px; overflow: hidden; background: var(--navy); grid-column: 1 / -1; }
  .g-video video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
  @media (min-width: 900px) { .g-video video { aspect-ratio: auto; } }
  dialog { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); }
  dialog::backdrop { background: rgba(10,18,45,.88); }
  dialog img { max-height: 86vh; width: auto; border-radius: 12px; margin: 0 auto; }
  dialog p { color: var(--white); text-align: center; margin: .9rem 0 0; }
  .close { position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); font-size: 1.4rem; cursor: pointer; }

  /* Winter */

  /* Process */
  .process-img { width: 100%; aspect-ratio: 21 / 7; object-fit: cover; border-radius: var(--r); margin-bottom: 1.5rem; background: var(--mist); color: transparent; }
  @media (max-width: 700px) { .process-img { aspect-ratio: 16 / 9; } }
  .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: s; }
  @media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
  .steps li { counter-increment: s; border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; }
  .steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--gold-deep); margin-bottom: .75rem; line-height: 1; }
  .steps p { color: var(--muted); font-size: .95rem; margin: 0; }

  /* Reviews */
  .reviews { background: var(--mist); }
  .featured { max-width: 860px; margin: 0 auto 3rem; text-align: center; }
  .featured q { display: block; font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.35; quotes: "\201C" "\201D"; }
  .featured cite { display: block; font-style: normal; color: var(--muted); margin-top: 1rem; }
  .rev-grid { display: grid; gap: 1rem; }
  @media (min-width: 640px) { .rev-grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1000px) { .rev-grid { grid-template-columns: repeat(3, 1fr); } }
  .rev { background: var(--white); border-radius: 14px; padding: 1.5rem; }
  .rev h3 { font-size: 1.02rem; margin: .5rem 0 .35rem; }
  .rev p { color: var(--muted); font-size: .93rem; margin: 0 0 .6rem; line-height: 1.6; }
  .rev small { color: var(--muted); font-weight: 500; }
  .center { text-align: center; }
  .more-row { margin-top: 2.5rem; text-align: center; }

  /* FAQ */
  .faq { max-width: 860px; margin: 0 auto; }
  details { border-bottom: 1px solid var(--line); }
  summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; font-weight: 700; font-size: 1.08rem; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; color: var(--blue); font-size: 1.3rem; font-weight: 600; }
  details[open] summary::after { content: "\2212"; background: var(--gold); color: var(--ink); }
  details p { color: var(--muted); margin: 0 0 1.4rem; max-width: 70ch; }

  /* Contact */
  .contact { background: linear-gradient(135deg, var(--blue), var(--navy)); color: var(--white); }
  .contact-grid { display: grid; gap: 3rem; align-items: start; }
  @media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }
  .contact .eyebrow { color: var(--gold); }
  .contact h2 { margin-bottom: 1rem; }
  .contact .lead { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 46ch; }
  .contact-lines { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
  .contact-lines li { display: flex; align-items: center; gap: .8rem; font-weight: 600; }
  .contact-lines a { color: var(--white); text-decoration: none; }
  .contact-lines .dot { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--gold); flex: none; }
  .form-card { background: var(--white); color: var(--ink); border-radius: 22px; padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
  .form-card h3 { font-size: 1.45rem; margin-bottom: .35rem; }
  .form-card > p { color: var(--muted); font-size: .95rem; }
  form { display: grid; gap: 1rem; margin-top: 1.25rem; }
  .two { display: grid; gap: 1rem; }
  @media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
  label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .35rem; }
  .req { color: #C0362C; }
  input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .8rem .9rem; border: 1px solid #D5DBE6; border-radius: 10px; background: var(--white); }
  input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(45,108,223,.18); outline-offset: 0; }
  textarea { min-height: 110px; resize: vertical; }
  form .btn { width: 100%; padding: 1.1rem; font-size: 1.05rem; }
  .fine { text-align: center; font-size: .85rem; color: var(--muted); margin: .25rem 0 0; }
  .hp { position: absolute; left: -9999px; }

  /* Footer */
  footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 4rem 0 2rem; font-size: .95rem; }
  .foot { display: grid; gap: 2.5rem; }
  @media (min-width: 860px) { .foot { grid-template-columns: 1.4fr 1fr 1fr; } }
  footer .logo { width: 150px; margin-bottom: 1.25rem; }
  footer h3, footer .foot-title { color: var(--white); font-size: 1rem; margin-bottom: .9rem; letter-spacing: 0; }
  footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
  footer a { color: rgba(255,255,255,.72); text-decoration: none; }
  footer a:hover { color: var(--white); }
  .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; }

  /* Mobile sticky CTA */
  .sticky { display: none; }
  @media (max-width: 760px) {
    .sticky { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
              padding: .65rem .8rem calc(.65rem + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 -6px 20px -12px rgba(15,31,75,.5); }
    .sticky .btn { padding: .85rem .4rem; font-size: .92rem; }
    .sticky .call { border-color: var(--blue); color: var(--blue); }
    .lightbox-open .sticky { display: none; }
    body { padding-bottom: 80px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .gallery img { transition: none; }
    .btn:hover { transform: none; }
  }


/* ===== Shared additions ===== */
.nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.text-link { color: var(--blue); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: #EEF3FD; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-row.center { justify-content: center; }
.tag-note { font-size: .78rem; color: var(--muted); }

/* Landing page header: no menu, so visitors stay on the offer */
.lp-header .nav-row { justify-content: space-between; }
.lp-header .nav-phone span { display: inline; }
@media (max-width: 640px) { .lp-header .nav-phone span { display: none; } }

/* Landing page hero with form above the fold */
.lp-hero { position: relative; color: var(--white); overflow: hidden; margin: 0 clamp(0rem, 1vw, .75rem); border-radius: 0 0 28px 28px; padding: 132px 0 clamp(3.5rem, 6vw, 5rem); }
.lp-hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(15,31,75,.94) 0%, rgba(36,63,148,.86) 55%, rgba(36,63,148,.7) 100%); }
.lp-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 1000px) { .lp-grid { grid-template-columns: 1.1fr .9fr; } }
.lp-hero .badge { margin-bottom: 1.5rem; }
.lp-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
.lp-hero h1 span { display: block; }
.lp-hero h1 .gold { color: var(--gold); }
.lp-hero .lede { color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.5vw, 1.2rem); margin: 1.4rem 0 1.75rem; max-width: 54ch; }
.ticks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; }
@media (min-width: 560px) { .ticks { grid-template-columns: 1fr 1fr; } }
.ticks li { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.lp-hero .btn-row .btn { padding: 1rem 1.6rem; }
.lp-form { scroll-margin-top: 100px; }
.lp-form h2 { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: .3rem; }
.lp-form .sub { color: var(--muted); font-size: .95rem; margin: 0; }
.file-hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
input[type="file"] { padding: .6rem; background: var(--mist); }

/* Proof bar */
.proof { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 860px) { .proof ul { grid-template-columns: repeat(4, 1fr); } }
.proof b { display: block; font-size: 1.6rem; letter-spacing: -.02em; color: var(--blue); }
.proof span { color: var(--muted); font-size: .92rem; }

/* Image cards */
.idea-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .idea-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .idea-grid { grid-template-columns: repeat(4, 1fr); } }
.idea { border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(15,31,75,.5); }
.idea img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #DDE3EE; color: transparent; }
.idea div { padding: 1.25rem 1.35rem 1.5rem; }
.idea h3 { font-size: 1.08rem; }
.idea p { color: var(--muted); font-size: .93rem; margin: 0; line-height: 1.6; }

/* Split feature */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split.media-lg { grid-template-columns: 1.15fr .85fr; } .split.flip > :first-child { order: 2; } }
.split h2 { margin-bottom: 1rem; }
.split .lead { color: var(--muted); font-size: 1.08rem; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.photo-pair img { border-radius: var(--r); width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.photo-single img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); background: #DDE3EE; color: transparent; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: .2rem; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%230F172A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.checklist.two { grid-template-columns: 1fr; }
@media (min-width: 640px) { .checklist.two { grid-template-columns: 1fr 1fr; } }

/* Note card */
.note { background: #EEF3FD; border-left: 4px solid var(--brand); border-radius: 12px; padding: 1.1rem 1.3rem; color: #27324A; font-size: .95rem; margin-bottom: 1.75rem; }
.note b { color: var(--ink); }

/* Owner band */
.owner { background: var(--mist); }
.owner-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .owner-grid { grid-template-columns: .8fr 1.2fr; } }
.owner-grid img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }

/* Other services strip */
.more-work { display: grid; gap: 1rem; }
@media (min-width: 760px) { .more-work { grid-template-columns: repeat(3, 1fr); } }
.more-work a { position: relative; display: block; border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--white); }
.more-work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.more-work a:hover img { transform: scale(1.04); }
.more-work span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.25rem 1.1rem; font-weight: 700; font-size: 1.1rem; background: linear-gradient(transparent, rgba(15,31,75,.88)); }
.more-work small { display: block; font-weight: 500; font-size: .85rem; opacity: .85; }

/* Gallery page */
.page-hero { background: linear-gradient(135deg, var(--blue), var(--navy)); color: var(--white); padding: 140px 0 4rem; text-align: center; margin: 0 clamp(0rem, 1vw, .75rem); border-radius: 0 0 28px 28px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.035em; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 58ch; margin: 1rem auto 0; font-size: 1.1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.25rem; }
.filters button { min-height: 44px; font: inherit; font-weight: 600; font-size: .95rem; padding: .6rem 1.15rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.masonry { columns: 1; column-gap: 1rem; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1000px) { .masonry { columns: 3; } }
.masonry .item { break-inside: avoid; margin: 0 0 1rem; }
.masonry button { all: unset; cursor: zoom-in; display: block; position: relative; border-radius: 14px; overflow: hidden; width: 100%; }
.masonry button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.masonry img { width: 100%; height: auto; transition: transform .5s; }
.masonry button:hover img { transform: scale(1.03); }
.masonry .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .85rem; font-size: .88rem; font-weight: 600; color: var(--white); background: linear-gradient(transparent, rgba(15,31,75,.85)); }
.masonry .item[hidden] { display: none; }
.pairs { display: grid; gap: 3rem; }

/* Lightbox with prev and next */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(8,15,38,.94); display: none; align-items: center; justify-content: center; padding: 4rem 4.5rem; }
.lb.open { display: flex; }
.lb figure { margin: 0; text-align: center; }
.lb img { max-width: 100%; max-height: 80vh; width: auto; border-radius: 12px; margin: 0 auto; }
.lb figcaption { color: var(--white); margin-top: .9rem; }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lb .lb-close { top: 1rem; right: 1rem; }
.lb .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb { padding: 4rem .75rem 5.5rem; } .lb .lb-prev, .lb .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* Minimal footer for landing pages */
.lp-footer { padding: 2.5rem 0 2rem; }
.lp-footer .row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.lp-footer img { width: 120px; }

/* ===== Mobile refinements ===== */
.nav-phone { min-height: 44px; min-width: 44px; justify-content: center; }
footer li a { display: inline-block; padding: .3rem 0; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; padding: 0; flex: none; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); background: var(--white); padding: .5rem var(--gutter) 1.25rem; max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { display: block; padding: .95rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.mobile-nav .btn { width: 100%; margin-top: 1.1rem; }
@media (max-width: 1080px) { .menu-btn { display: block; } }
@media (min-width: 1081px) { .mobile-nav { display: none !important; } }
@media (max-width: 640px) { .site-header:not(.lp-header) .btn-gold { padding: .65rem .85rem; font-size: .85rem; } }
@media (max-width: 380px) { .site-header:not(.lp-header) .btn-gold { display: none; } }

/* ===== Content sections v2 ===== */
.title-line { font-weight: 700; color: var(--blue); margin: .9rem 0 1rem; font-size: 1.05rem; }
.owner-grid .lead { margin-top: 0; }
.fine-print { text-align: center; color: var(--muted); font-size: .88rem; max-width: 70ch; margin: 1.75rem auto 0; }

/* On-this-page chips */
.chips { display: flex; gap: .55rem; overflow-x: auto; padding-top: 1.5rem; padding-bottom: .5rem; scrollbar-width: none; justify-content: center; flex-wrap: wrap; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .6rem 1rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.chips a:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 760px) { .chips { flex-wrap: nowrap; justify-content: flex-start; } }

/* Price and time tiers */
.tiers { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } .tiers.two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; } }
.tier { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; display: flex; flex-direction: column; }
.tier.tier-featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.tier-name { font-weight: 700; color: var(--blue); margin: 0 0 .4rem; }
.price { font-size: clamp(2rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; margin: 0; line-height: 1.1; }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tier-sub { color: var(--muted); margin: .5rem 0 0; }
.tier .checklist { margin: 1.25rem 0; }
.example { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 600; font-size: .95rem; }

/* Factor cards */
.factors { display: grid; gap: 1rem; }
@media (min-width: 680px) { .factors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .factors { grid-template-columns: repeat(3, 1fr); } .factors.four { grid-template-columns: repeat(4, 1fr); } }
.factor { border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.5rem; background: var(--white); border-top: 4px solid var(--gold); }
.factor h3 { font-size: 1.08rem; }
.factor p { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.6; }
@media (min-width: 680px) { .factor.wide { grid-column: span 2; } }
@media (min-width: 1000px) { .factor.wide { grid-row: span 2; grid-column: span 1; } }
.lights { margin: .25rem 0 0; display: grid; gap: .8rem; }
.lights dt { font-weight: 700; font-size: .95rem; }
.lights dd { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* Permit process infographic */
.phase-key { display: flex; gap: .6rem; justify-content: center; margin-bottom: 1.75rem; }
.phase-key .k { font-size: .82rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; }
.k.plan, .flow .plan .tag { background: #E7EEFC; color: var(--blue); }
.k.approve, .flow .approve .tag { background: #FFF3CC; color: #7A5A00; }
.k.build, .flow .build .tag { background: #DFF3E7; color: #1D6B3F; }
.flow { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 0; position: relative; max-width: 860px; }
.flow li { display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; position: relative; padding-bottom: 1.1rem; align-items: start; }
.flow li > div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.35rem; }
.flow li::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: var(--line); }
.flow li:last-child::before { display: none; }
.flow .n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; background: var(--blue); color: var(--white); position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--mist); }
.flow .approve .n { background: var(--gold-deep); color: var(--ink); }
.flow .build .n { background: #1D6B3F; }
.flow .tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; margin: 0 0 .4rem; }
.flow h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.flow li p:not(.tag) { color: var(--muted); font-size: .97rem; margin: 0; line-height: 1.6; }
.flow h3 { font-size: 1.12rem; }


/* Look-for cards */
.look-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .look-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) and (max-width: 1099px) { .look-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .look-grid.four { grid-template-columns: repeat(4, 1fr); } }
.look { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; }
.look h3 { font-size: 1.15rem; }
.look > p { color: var(--muted); font-size: .95rem; }
.look .checklist { margin: 1rem 0 0; gap: .6rem; font-size: .95rem; }

/* Timeline factors */
.time-factors { max-width: 900px; margin: 2.5rem auto 0; background: var(--white); border-radius: var(--r); padding: 1.75rem 2rem; border: 1px solid var(--line); }
.time-factors h3 { font-size: 1.15rem; }
.time-factors .checklist { margin: 1rem 0 0; }

/* Consulting phases */
.phases { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .phases { grid-template-columns: repeat(3, 1fr); } }
.phase-card { background: var(--white); border-radius: var(--r); padding: 1.75rem; border-top: 5px solid var(--blue); }
.phase-card .checklist { margin: 1rem 0 0; }

/* Homepage consulting callout */
.callout { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin-top: 1.5rem; padding: 1.4rem 1.75rem; border-radius: var(--r); background: var(--white); border: 1px dashed #B9C4DA; text-decoration: none; color: var(--ink); }
.callout:hover { border-color: var(--blue); }
.callout b { color: var(--blue); }
.callout-cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--blue); white-space: nowrap; }

/* Nuheat band */
.nuheat { display: grid; gap: 0; border-radius: 22px; overflow: hidden; background: var(--navy); color: var(--white); }
@media (min-width: 900px) { .nuheat { grid-template-columns: .9fr 1.1fr; } }
.nuheat-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .nuheat-img img { aspect-ratio: auto; min-height: 100%; } }
.nuheat-copy { padding: clamp(1.75rem, 4vw, 3rem); align-self: center; }
.nuheat-copy .lead { color: rgba(255,255,255,.82); margin: 1rem 0 1.75rem; }
.nuheat .btn-outline { border-color: rgba(255,255,255,.6); color: var(--white); }
.nuheat .btn-outline:hover { background: rgba(255,255,255,.1); }
.badge-light { display: inline-block; font-weight: 700; font-size: .85rem; color: var(--gold); border: 1px solid rgba(246,202,69,.5); border-radius: 999px; padding: .35rem .9rem; margin: 0 0 1rem; }
.nuheat :focus-visible { outline-color: var(--gold); }

/* Shower build sequence */
.build-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .build-steps { grid-template-columns: repeat(4, 1fr); } }
.build-steps li { display: flex; flex-direction: column; }
.build-steps button { all: unset; cursor: zoom-in; position: relative; display: block; border-radius: 14px; overflow: hidden; }
.build-steps button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.build-steps img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s; }
.build-steps button:hover img { transform: scale(1.03); }
.build-steps .stage { position: absolute; top: .75rem; left: .75rem; padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--white); color: var(--ink); }
.build-steps .stage.after { background: var(--gold); }
.build-steps h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; margin: 1rem 0 .35rem; }
.build-steps h3 span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); font-size: .85rem; }
.build-steps p { color: var(--muted); font-size: .93rem; margin: 0; line-height: 1.6; }
@media (max-width: 520px) { .build-steps p { font-size: .88rem; } }

/* Workmanship collage */
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr .8fr; gap: .75rem; aspect-ratio: 4 / 5; }
.collage button { all: unset; cursor: zoom-in; display: block; position: relative; overflow: hidden; border-radius: 14px; box-shadow: var(--shadow); }
.collage button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.collage button:hover img { transform: scale(1.04); }
.collage .c-shower { grid-column: 1; grid-row: 1 / 3; }
.collage .c-vanity { grid-column: 2; grid-row: 1 / 3; }
.collage .c-vanity img { object-position: center 60%; }
.collage .c-kitchen { grid-column: 1; grid-row: 3; }
.collage .c-kitchen img { object-position: center 30%; }
.collage .c-powder { grid-column: 2; grid-row: 3; }
.why-photo .rating-chip { z-index: 2; }
@media (max-width: 520px) { .collage { gap: .5rem; } }
.why-photo .rating-chip { left: 50%; right: auto; bottom: 0; transform: translate(-50%, 50%); white-space: nowrap; }
.why-photo { margin-bottom: 2.25rem; }

/* Before/after comparison slider */
.compare-grid { display: grid; gap: 1.5rem 1.75rem; max-width: 1100px; margin: 0 auto; }
@media (min-width: 760px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-wrap { margin: 0; min-width: 0; }
@media (min-width: 760px) { .compare-grid > .compare-wrap:only-child { grid-column: 1 / -1; width: 100%; max-width: 540px; margin: 0 auto; } }
.compare-wrap .ba-cap { margin-top: .9rem; font-weight: 600; color: var(--ink); }
.compare { --pos: 50%; position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--mist); touch-action: pan-y; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .c-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.c-label { position: absolute; top: .75rem; padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; pointer-events: none; z-index: 2; }
.c-label-before { left: .75rem; background: var(--white); color: var(--ink); }
.c-label-after { right: .75rem; background: var(--gold); color: var(--ink); }
.c-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; z-index: 2; }
.c-knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--white); color: var(--blue); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; -webkit-appearance: none; appearance: none; background: transparent; }
.compare:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 4px; }
.compare:has(input:focus-visible) .c-knob { box-shadow: 0 0 0 4px var(--gold), 0 4px 16px rgba(0,0,0,.3); }
@media (max-width: 640px) { .compare { border-radius: 14px; } .c-knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; } }

/* "Drag to compare" hint under the handle */
.c-hint { position: absolute; top: calc(50% + 30px); left: var(--pos); transform: translateX(-50%); z-index: 3; pointer-events: none; white-space: nowrap;
  background: rgba(15,31,75,.88); color: var(--white); font-size: .78rem; font-weight: 700; padding: .32rem .75rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: opacity .35s; }
.compare.used .c-hint { opacity: 0; }
.compare:hover .c-knob { transform: scale(1.08); }
.c-knob { transition: transform .2s; }

/* Stage switcher under a comparison slider */
.c-stages { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .85rem; flex-wrap: wrap; }
.c-stages button { font: inherit; font-size: .85rem; font-weight: 700; min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.c-stages button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.c-stages-after { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: .2rem; }

/* Compact FAQ */
.faq-more { text-align: center; margin-top: 1.75rem; }
details[open] summary { color: var(--blue); }
details p { animation: faqIn .25s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { details p { animation: none; } }

.reviews.plain { background: var(--white); }
.reviews.plain .rev { border: 1px solid var(--line); }

/* Basement videos and photo grid */
.video-pair { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .video-pair { grid-template-columns: 1fr 1fr; } }
.video-pair figure { margin: 0; }
.video-pair video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--navy); box-shadow: var(--shadow); display: block; }
.video-pair figcaption { text-align: center; font-weight: 600; margin-top: .8rem; }
.sub-head { text-align: center; font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -.02em; margin: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.photo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-grid button { all: unset; cursor: zoom-in; position: relative; display: block; border-radius: 14px; overflow: hidden; }
.photo-grid button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.photo-grid button:hover img { transform: scale(1.04); }
.photo-grid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.25rem .9rem .75rem; font-size: .85rem; font-weight: 600; color: var(--white); background: linear-gradient(transparent, rgba(15,31,75,.85)); }
@media (max-width: 520px) { .photo-grid .cap { font-size: .75rem; padding: 1.75rem .6rem .55rem; } }

/* Basement work bento grid */
.bento { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
.bento button { all: unset; cursor: zoom-in; position: relative; display: block; border-radius: 14px; overflow: hidden; }
.bento button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.bento img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform .5s; }
.bento .b-a img, .bento .b-f img { aspect-ratio: 16 / 9; }
.bento .b-a, .bento .b-f { grid-column: 1 / -1; }
.bento button:hover img { transform: scale(1.03); }
.bento .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.25rem .9rem .75rem; font-size: .85rem; font-weight: 600; color: var(--white); background: linear-gradient(transparent, rgba(15,31,75,.85)); }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; }
  .bento img, .bento .b-a img, .bento .b-f img { aspect-ratio: auto; }
  .bento .b-a { grid-column: 1 / 3; grid-row: 1; }
  .bento .b-b { grid-column: 3; grid-row: 1 / 3; }
  .bento .b-c { grid-column: 1; grid-row: 2 / 4; }
  .bento .b-d { grid-column: 2; grid-row: 2 / 4; }
  .bento .b-e { grid-column: 3; grid-row: 3; }
  .bento .b-f { grid-column: 1 / -1; grid-row: 4; }
  .bento { grid-template-rows: 230px 230px 230px 340px; }
  .bento .b-b img { object-position: center 35%; }
}
@media (max-width: 520px) { .bento .cap { font-size: .75rem; padding: 1.75rem .6rem .55rem; } }

/* Uniform basement photo grid: every photo the same size */
.photo-grid.uniform img { aspect-ratio: 4 / 3; height: auto; }
.photo-grid.uniform .b-b img { object-position: center 45%; }
.photo-grid.uniform .b-c img { object-position: center 62%; }
.photo-grid.uniform .b-d img { object-position: center 60%; }
@media (max-width: 520px) { .photo-grid.uniform .cap { font-size: .7rem; padding: 1.4rem .55rem .45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

.owner.plain-bg { background: var(--white); }

/* Bathroom design collage */
.bath-collage .c-tl { grid-column: 1; grid-row: 1 / 3; }
.bath-collage .c-tr { grid-column: 2; grid-row: 1 / 3; }
.bath-collage .c-tr img { object-position: center 55%; }
.bath-collage .c-bl { grid-column: 1; grid-row: 3; }
.bath-collage .c-bl img { object-position: center 62%; }
.bath-collage .c-br { grid-column: 2; grid-row: 3; }
.bath-collage .c-br img { object-position: center 70%; }

/* Thank-you page */
.thanks-hero { padding-bottom: 5rem; }
.next-steps { text-align: left; max-width: 30rem; margin: 0 auto 1.5rem; color: rgba(255,255,255,.88); }
.next-steps li { margin-bottom: .35rem; }
.inline-gold { color: var(--gold); font-weight: 700; }

/* Skip link for keyboard and screen-reader users */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--white); color: var(--ink); padding: .75rem 1.1rem; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 1rem; top: 1rem; outline: 3px solid var(--brand); }

/* Gallery page: sticky, scrollable filter bar */
.filter-bar { position: sticky; top: 82px; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: .7rem 0; }
@media (max-width: 640px) { .filter-bar { top: 70px; } }
.filter-bar .filters { margin: 0; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding: .1rem .1rem .2rem; scroll-snap-type: x proximity; }
.filter-bar .filters::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .filter-bar .filters { justify-content: safe center; } .filter-bar .filters button { padding: .45rem .85rem; font-size: .88rem; } .filter-bar .filters { gap: .45rem; } .filter-bar .wrap { max-width: 1320px; } }
.filter-bar .filters button { flex: none; scroll-snap-align: start; white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; }
.filters .n { font-size: .75rem; font-weight: 700; background: var(--mist); color: var(--muted); border-radius: 999px; padding: .05rem .5rem; }
.filters button[aria-pressed="true"] .n { background: rgba(255,255,255,.2); color: var(--white); }
.gallery-group[hidden] { display: none; }
.photo-grid .item[hidden] { display: none; }
.photo-count { font-weight: 600; }
#transformations, #videos, #photos { scroll-margin-top: 150px; }

/* Transformation videos: one portrait video beside two landscape videos */
.video-feature { display: grid; gap: 1.5rem; }
.video-feature figure { margin: 0; }
.video-feature video { display: block; width: 100%; border-radius: 16px; background: var(--navy); box-shadow: var(--shadow); }
.video-feature .v-land video { aspect-ratio: 16 / 9; }
.video-feature .v-portrait video { aspect-ratio: 9 / 16; height: min(75vh, 680px); width: auto; max-width: 100%; margin: 0 auto; }
.video-feature figcaption { text-align: center; font-weight: 600; margin-top: .8rem; }
@media (min-width: 900px) {
  .video-feature { grid-template-columns: 1fr 1.58fr; align-items: start; }
  .video-feature .v-portrait { grid-row: span 2; }
  .video-feature .v-portrait video { height: auto; width: 100%; }
}

/* Fade the edge of the filter row when more filters are off-screen */
.filter-bar .filters.fade-right { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
.filter-bar .filters.fade-left { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent); mask-image: linear-gradient(to left, #000 82%, transparent); }
.filter-bar .filters.fade-left.fade-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); }
/* Let the browser skip rendering gallery sections until they're near the screen */
#videos, #photos { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
