/* Layout: one centered column; deep pool-water hero and bands joined to light sections by curved wave edges */
:root {
  --bg: #F7F8FD;        /* white with a lavender hint */
  --surface: #FFFFFF;
  --ink: #1B1F3B;       /* deep indigo ink */
  --muted: #555B7D;
  --line: #E1E3F1;
  --ocean: #1E5BB8;
  --lagoon: #2AA7CF;
  --violet: #6A4CC7;
  --deep: #241C63;      /* hero top */
  --night: #161A36;     /* footer */
  --tint-top: #ECEBFB;  /* lilac */
  --tint-bottom: #E5F2FB; /* pool mist */
  --on-dark: #F4F6FF;
  --on-dark-muted: #C9D3F2;

  --display: "Outfit", "Segoe UI", "Trebuchet MS", sans-serif;
  --body: "Nunito Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --gutter: 20px;
  --wave: 56px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; max-width: 65ch; }
.small { font-size: 0.95rem; color: var(--muted); }

.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet); }

/* Header */
.site-header { background: var(--surface); box-shadow: 0 1px 0 var(--line); position: relative; z-index: 3; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 14px; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 48px; height: 48px; flex: none; border-radius: 12px; box-shadow: 0 4px 12px rgba(36,28,99,0.18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.7rem; }
.brand-sub { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.nav a { font-family: var(--display); font-weight: 500; font-size: 1.05rem; color: var(--ink); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ocean); }
.nav a[aria-current="page"] { border-bottom-color: var(--lagoon); }
.nav-call { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.05rem; font-weight: 600; text-decoration: none; white-space: nowrap; background: linear-gradient(120deg, var(--ocean), var(--violet)); color: var(--on-dark); padding: 7px 16px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.nav-call:hover { color: var(--on-dark); filter: brightness(1.1); }
.nav-call svg { width: 17px; height: 17px; flex: none; }
.call-word { display: none; }
@media (max-width: 999px) {
  .nav { order: 3; flex-basis: 100%; }
}
@media (max-width: 700px) {
  .site-header .wrap { padding-block: 12px 6px; gap: 8px 16px; }
  .nav { flex-wrap: nowrap; gap: 4px 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav::after { content: ""; flex: none; width: 40px; }
  .nav a { flex: none; font-size: 1rem; }
  .nav a[href="home.html"] { display: none; }
  .call-num { display: none; }
  .call-word { display: inline; }
}

/* Hero: light on the pool floor */
.hero {
  position: relative; color: var(--on-dark);
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(42,167,207,0.45), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(106,76,199,0.55), transparent 70%),
    linear-gradient(180deg, var(--deep), var(--ocean));
}
.hero .wrap { padding-block: 60px calc(64px + var(--wave)); display: grid; gap: 20px; position: relative; z-index: 1; }
.hero .eyebrow { color: #B9E6F4; }
.hero p { font-size: 1.15rem; color: var(--on-dark-muted); }
.hero h1 { max-width: 20ch; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--wave);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23F7F8FD' d='M0,44 C300,92 620,4 960,34 C1180,54 1320,50 1440,30 L1440,80 L0,80 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1.1rem; padding: 12px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; font-variant-numeric: tabular-nums; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--surface); color: var(--ocean); box-shadow: 0 6px 20px rgba(22,26,54,0.25); }
.btn-primary:hover { color: var(--violet); }
.btn-ghost { border-color: rgba(244,246,255,0.7); color: var(--on-dark); }
.btn-ghost:hover { color: var(--on-dark); background: rgba(244,246,255,0.12); }

/* Fact card floating over the wave */
.facts { position: relative; z-index: 2; margin-top: -48px; padding-inline: var(--gutter); }
.facts ul.wrap {
  list-style: none; margin: 0 auto; max-width: calc(var(--wrap) - 2 * var(--gutter));
  padding: 22px 28px; background: var(--surface); border-radius: 22px;
  box-shadow: 0 12px 36px rgba(36,28,99,0.12);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 24px;
}
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; background: linear-gradient(120deg, var(--ocean), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.facts span { font-size: 0.92rem; color: var(--muted); }

/* Sections */
.section { padding-block: 64px; position: relative; }
.section-head { display: grid; gap: 10px; margin-bottom: 30px; }
.lede { font-size: 1.12rem; color: var(--muted); }
.stack { display: grid; gap: 16px; align-content: start; }

/* Tinted bands with wave edges top and bottom */
.tint { background: linear-gradient(180deg, var(--tint-top), var(--tint-bottom)); margin-block: var(--wave); }
.tint::before, .tint::after { content: ""; position: absolute; left: 0; right: 0; height: var(--wave); pointer-events: none; }
.tint::before {
  bottom: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ECEBFB' d='M0,50 C240,6 520,10 760,42 C1000,74 1220,70 1440,28 L1440,80 L0,80 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.tint::after {
  top: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23E5F2FB' d='M0,0 L1440,0 L1440,26 C1120,78 820,8 500,42 C300,62 130,54 0,30 Z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
}
.tint:has(+ .cta)::after, main > .tint:last-child::after { display: none; }
.tint:has(+ .cta), main > .tint:last-child { margin-bottom: 0; }
/* when a page ends on a tinted band, let the CTA wave sit on the band instead of a white strip */
main:has(> .tint:last-child) + .cta, main:has(> .tint:last-child) + .site-footer { margin-top: 0; }
main > .tint:last-child { padding-bottom: calc(64px + var(--wave)); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 40px; }
.grid-2 > * { min-width: 0; }

.service { display: grid; gap: 10px; align-content: start; padding: 26px; background: var(--surface); border-radius: 22px; box-shadow: 0 6px 24px rgba(36,28,99,0.07); }
.service h3 { color: var(--ocean); }
.service a.more { font-weight: 700; }

.callout { background: linear-gradient(160deg, var(--surface), var(--tint-top)); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; display: grid; gap: 12px; align-content: start; }
.tint .callout { background: var(--surface); border-color: transparent; box-shadow: 0 6px 24px rgba(36,28,99,0.07); }

ul.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
ul.ticks li { padding-left: 28px; position: relative; max-width: 65ch; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(135deg, var(--lagoon), var(--violet)); }

ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
ol.steps li { counter-increment: s; display: grid; gap: 8px; min-width: 0; align-content: start; }
ol.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-family: var(--display); font-weight: 700; color: var(--on-dark); background: linear-gradient(135deg, var(--ocean), var(--violet)); }

/* Service area */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 40px; }
.tier { display: grid; gap: 14px; align-content: start; min-width: 0; }
.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.areas a, .areas span { display: inline-block; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.areas a { color: var(--ocean); border-color: rgba(30,91,184,0.35); }
.areas a:hover { background: var(--ocean); color: var(--on-dark); }
.regions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.regions li { display: grid; gap: 2px; padding: 14px 18px; background: var(--surface); border-radius: 16px; border: 1px solid var(--line); }
.regions strong { font-family: var(--display); font-weight: 600; color: var(--violet); }
.regions span { color: var(--muted); }

.quote { margin: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--lagoon); font-size: 1.1rem; font-style: italic; max-width: 65ch; display: grid; gap: 12px; }
.signoff { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--violet); }

.contact-card { align-self: start; background: var(--surface); border-radius: 22px; box-shadow: 0 10px 32px rgba(36,28,99,0.1); padding: 28px; display: grid; gap: 18px; align-content: start; }
.contact-row { display: grid; gap: 2px; }
.contact-row .eyebrow { color: var(--muted); }
.contact-row a, .contact-row strong { font-family: var(--display); font-size: 1.4rem; font-weight: 600; word-break: break-word; font-variant-numeric: tabular-nums; }

/* CTA band */
.cta { position: relative; color: var(--on-dark); margin-top: var(--wave);
  background: radial-gradient(ellipse 50% 80% at 90% 100%, rgba(42,167,207,0.4), transparent 70%), linear-gradient(180deg, #2A1F6E, var(--ocean)); }
.cta::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--wave);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%232A1F6E' d='M0,36 C260,80 560,74 820,40 C1060,8 1260,12 1440,46 L1440,80 L0,80 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.cta .wrap { padding-block: 40px calc(48px + var(--wave)); display: grid; gap: 14px; }
.cta p { color: var(--on-dark-muted); }
.cta a:not(.btn) { color: var(--on-dark); }

/* Footer */
.site-footer { position: relative; background: var(--night); color: #B6BEDF; font-size: 0.95rem; margin-top: var(--wave); }
.cta + .site-footer { margin-top: 0; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--wave);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23161A36' d='M0,52 C320,10 640,14 900,44 C1140,70 1300,62 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.site-footer .wrap { padding-block: 36px; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h3 { color: var(--on-dark); font-size: 1.1rem; margin-bottom: 8px; }
.site-footer a { color: #E4E8FF; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fineprint { border-top: 1px solid #2B3058; }
.fineprint .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 16px; font-size: 0.85rem; }

@media (max-width: 520px) {
  :root { --gutter: 16px; --wave: 36px; }
  .section { padding-block: 44px; }
  main > .tint:last-child { padding-bottom: calc(44px + var(--wave)); }
  .hero .wrap { padding-block: 40px calc(52px + var(--wave)); }
  .facts ul.wrap { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Service area rings */
.rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.ring { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 26px; background: var(--surface); border-radius: 22px; box-shadow: 0 6px 24px rgba(36,28,99,0.07); }
.ring-tag { justify-self: start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; color: var(--on-dark); background: linear-gradient(120deg, var(--ocean), var(--violet)); }
.ring:nth-child(3) .ring-tag { background: var(--tint-top); color: var(--violet); }
.regions a { display: grid; gap: 2px; text-decoration: none; color: inherit; }
.regions li:has(a):hover { border-color: var(--ocean); }

/* ===== Photos (images are served from Cloudinary, sized per screen) ===== */

/* Photo hero: picture behind the text, shaded indigo on the text side */
.hero.photo { background: var(--deep); overflow: hidden; }
.hero-media { position: absolute; inset: 0; margin: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(24,19,74,0.9) 0%, rgba(30,24,92,0.74) 34%, rgba(30,70,160,0.3) 64%, rgba(30,91,184,0.05) 100%); }
.hero.photo::after { z-index: 2; }
.hero.photo .wrap { min-height: clamp(480px, 72vh, 680px); align-content: center; }
.hero.photo.compact .wrap { min-height: clamp(380px, 52vh, 480px); }
.hero.photo h1, .hero.photo p { text-shadow: 0 2px 18px rgba(10,8,40,0.35); }

/* Buttons on light backgrounds */
.btn-solid { background: linear-gradient(120deg, var(--ocean), var(--violet)); color: var(--on-dark); box-shadow: 0 8px 22px rgba(36,28,99,0.22); }
.btn-solid:hover { color: var(--on-dark); filter: brightness(1.08); }
.more { font-weight: 700; }
.mt { margin-top: 22px; }
.align-center { align-items: center; }
.sub-head { margin: 44px 0 18px; color: var(--ink); }

/* Figures */
.figure { margin: 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.figure a { display: block; border-radius: 22px; }
.figure img { width: 100%; height: auto; border-radius: 22px; background: var(--tint-top); box-shadow: 0 14px 36px rgba(36,28,99,0.14); }
.figure.portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.figure.square img { aspect-ratio: 1; object-fit: cover; }
.figure figcaption { font-size: 0.92rem; color: var(--muted); padding-inline: 4px; }
.media-stack { display: grid; gap: 22px; align-content: start; min-width: 0; }

/* Service cards with photos */
.cards-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.photo-card { position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: 0 8px 28px rgba(36,28,99,0.09); transition: transform .2s ease, box-shadow .2s ease; }
.photo-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(36,28,99,0.16); }
.photo-card:focus-within { outline: 3px solid var(--lagoon); outline-offset: 3px; }
.pc-media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint-top); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-card:hover .pc-media img { transform: scale(1.04); }
.pc-body { display: grid; gap: 10px; padding: 22px 24px 26px; align-content: start; }
.pc-body h3 { color: var(--ocean); }
.pc-body h3 a { color: inherit; text-decoration: none; }
.pc-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.pc-body h3 a:focus-visible { outline: none; }
.pc-more { font-weight: 700; color: var(--ocean); }
.chip { position: absolute; left: 14px; top: 14px; z-index: 1; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.94); color: var(--violet); box-shadow: 0 4px 12px rgba(22,26,54,0.18); }

/* Before, during, after */
.sequence { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sequence li { position: relative; min-width: 0; }
.sequence a { display: block; position: relative; border-radius: 20px; overflow: hidden; background: var(--tint-top); box-shadow: 0 12px 30px rgba(36,28,99,0.13); }
.sequence img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s ease; }
.sequence a:hover img { transform: scale(1.04); }

/* Photo grid */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery.pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* Before/after shots are two photos in one image, so they never get shrunk into small tiles */
.grid-2.ba-pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.grid-2.split-lg { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
@media (max-width: 900px) { .gallery.cols-4, .gallery.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery li { min-width: 0; }
.gallery figure { margin: 0; display: grid; gap: 8px; }
.gallery a { display: block; border-radius: 18px; overflow: hidden; background: var(--tint-top); box-shadow: 0 8px 24px rgba(36,28,99,0.1); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { font-size: 0.88rem; color: var(--muted); padding-inline: 4px; }

/* Family photo mosaic */
.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; aspect-ratio: 5 / 4; min-width: 0; }
.mosaic figure { margin: 0; min-height: 0; border-radius: 20px; overflow: hidden; background: var(--tint-top); box-shadow: 0 12px 32px rgba(36,28,99,0.14); }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic picture { display: block; height: 100%; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }

/* Meet the owner */
.meet { display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; }
.meet .figure { max-width: 440px; }

/* CTA band over pool water */
.cta { background:
  linear-gradient(180deg, #2A1F6E 0, rgba(42,31,110,0.9) 22%, rgba(38,50,148,0.8) 62%, rgba(30,91,184,0.86) 100%),
  url("https://res.cloudinary.com/dopx4qbkw/image/upload/ar_16:9,c_fill,g_auto,w_1600/f_auto/q_auto:eco/stock-sparkling-pool-water-pexels-1147124") center / cover no-repeat,
  #2A1F6E; }

/* Photo viewer */
.lightbox { border: 0; padding: 0; margin: auto; background: transparent; width: min(1100px, 94vw); max-width: none; max-height: none; overflow: visible; }
.lightbox::backdrop { background: rgba(14,12,40,0.9); }
.lightbox figure { margin: 0; text-align: center; }
/* plain block layout + object-fit keeps the photo's shape in every browser, iPhone Safari included */
.lightbox img { margin: 0 auto; max-width: 100%; max-height: 80vh; max-height: 80svh; width: auto; height: auto; object-fit: contain; border-radius: 14px; background: #1B1F3B; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox figcaption { margin-top: 12px; color: #E4E8FF; font-size: 1rem; text-align: center; }
.lb-btn { position: fixed; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--ink); font: 700 1.7rem/1 var(--display); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.lb-btn[hidden] { display: none; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Phones and tablets: the header photo sits on top at full width, with the text below it */
@media (max-width: 999px) {
  .hero.photo { background: linear-gradient(180deg, var(--deep) 0, var(--deep) 55%, var(--ocean) 100%); }
  .hero-media { position: relative; inset: auto; display: block; height: clamp(300px, 56.25vw, 560px); max-height: 64vh; }
  .hero-media::after { background: linear-gradient(180deg, rgba(36,28,99,0) 58%, rgba(36,28,99,0.55) 84%, var(--deep) 100%); }
  .hero.photo .wrap, .hero.photo.compact .wrap { min-height: 0; margin-top: -44px; padding-top: 0; }
  /* family mosaic: one wide photo on top, two below */
  .mosaic { aspect-ratio: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .mosaic figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .mosaic picture { height: auto; }
  .mosaic img { height: auto; aspect-ratio: 4 / 3; }
  .mosaic figure:first-child img { aspect-ratio: 3 / 2; }
}
/* Tablets: no lone item on the last row */
@media (min-width: 600px) and (max-width: 899px) {
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 > .photo-card:nth-child(3):last-child { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; align-items: center; }
}
@media (min-width: 521px) and (max-width: 999px) {
  ol.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hero-media { height: clamp(240px, 75vw, 420px); max-height: 66vh; }
  .meet { grid-template-columns: 1fr; }
  .meet .figure { max-width: 330px; }
  .sequence { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; }
  .sequence li { scroll-snap-align: start; }
  .sequence { padding-bottom: 24px; }
  .sequence a { box-shadow: 0 8px 18px rgba(36,28,99,0.12); }
  .gallery, .gallery.cols-3, .gallery.cols-4, .gallery.cols-5, .gallery.pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery.wide { grid-template-columns: 1fr; }
  .gallery li.ba { grid-column: 1 / -1; }
  .gallery figcaption { font-size: 0.82rem; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}
@media (max-width: 520px) {
  .brand { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
  .brand-name { font-size: 1.4rem; }
  .brand-sub { font-size: 0.68rem; letter-spacing: 0.1em; }
  .nav-call { padding: 7px 14px; }
}
@media (max-width: 340px) {
  .brand-sub { display: none; }
}
