/* Mars Pools — site styles. Mobile first, no framework. */

:root {
  --ink: #0b1b2b;
  --ink-2: #1e3142;
  --muted: #5b6977;
  --line: #e5ddd0;
  --sand: #f7f2ea;
  --sand-2: #efe6d8;
  --paper: #ffffff;
  --sea: #0a6a7e;
  --lagoon: #18b0c1;
  --lagoon-soft: #dcf3f5;
  --mars: #d4532c;
  --mars-dark: #b0401d;
  --mars-soft: #fbe7df;
  --ok: #1f8a5b;
  --danger: #b42318;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", var(--sans);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 43, .06), 0 4px 12px -6px rgba(11, 27, 43, .12);
  --shadow: 0 1px 2px rgba(11, 27, 43, .05), 0 18px 40px -18px rgba(11, 27, 43, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #e9eef2; }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mars);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.h1, .h2, .h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; margin: 0; font-variation-settings: "opsz" 144; }
.h1 { font-size: clamp(44px, min(7.4vw, 10.5vh), 96px); line-height: .98; }
.h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.h1 em, .h2 em, .h3 em { font-style: italic; color: var(--mars); font-weight: 400; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr .9fr; gap: 48px; } }

/* Buttons */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--mars { --bg: var(--mars); box-shadow: 0 10px 24px -10px rgba(212, 83, 44, .7); }
.btn--mars:hover { --bg: var(--mars-dark); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(11, 27, 43, .2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--glass { --bg: rgba(255, 255, 255, .14); --fg: #fff; border-color: rgba(255, 255, 255, .38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { --bg: rgba(255, 255, 255, .24); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--mars); padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(247, 242, 234, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(11, 27, 43, .07);
  transition: background-color .3s, border-color .3s, color .3s;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-header[data-over-hero]:not(.is-scrolled):not(.nav-open) { background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Logo: Mike's snorkel alien + the "Mars Pools" lettering, both cut from his original logo */
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: inherit; }
.brand-alien { flex: none; width: auto; height: 58px; transform-origin: 50% 90%; transition: transform .45s var(--ease); }
.brand:hover .brand-alien { transform: rotate(-7deg); }
.brand-lockup { display: grid; gap: 7px; }
.brand-word { width: auto; height: clamp(17px, 5.4vw, 22px); }
.brand-lockup small { font: 600 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; opacity: .7; }
.site-header[data-over-hero]:not(.is-scrolled):not(.nav-open) .brand-word { filter: brightness(0) invert(1); }
.site-header[data-over-hero]:not(.is-scrolled):not(.nav-open) .brand-alien { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .6)); }
@media (min-width: 980px) {
  .brand-alien { height: 66px; }
  .brand-word { height: 25px; }
}
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .86; padding: 8px 2px; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mars); border-radius: 2px; }
.header-call { display: none; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 15px; }
.header-call svg { width: 16px; height: 16px; }
.header-cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid currentColor; border-color: rgba(127, 127, 127, .35); background: transparent; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor; transition: .2s; }
.nav-open .menu-btn span { box-shadow: none; transform: rotate(45deg); }
.nav-open .menu-btn span::after { content: ""; display: block; width: 18px; height: 2px; background: currentColor; transform: rotate(-90deg); }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--sand); color: var(--ink);
  padding: 28px var(--gutter) 40px; display: none; flex-direction: column; gap: 4px; overflow-y: auto;
}
.nav-open + .mobile-nav { display: flex; }
.mobile-nav a:not(.btn) { font: 500 32px/1.2 var(--serif); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 24px; }
.mobile-nav .mobile-call { margin-top: 18px; font-weight: 700; color: var(--muted); text-decoration: none; }
@media (max-width: 559px) { .header-cta { display: none; } }
@media (min-width: 980px) {
  .nav { display: flex; gap: 28px; }
  .nav a { white-space: nowrap; }
  .header-call { display: inline-flex; white-space: nowrap; }
  .menu-btn, .mobile-nav { display: none !important; }
}
/* Five nav links + phone only fit side by side from 1180px; below that the CTA carries the call. */
@media (min-width: 980px) and (max-width: 1179px) {
  .nav { gap: 20px; }
  .header-call { display: none; }
}
main { display: block; }
.page-top { padding-top: var(--header-h); }

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; background: #0d1d27; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.04); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(6, 17, 26, .82) 0%, rgba(6, 17, 26, .55) 38%, rgba(6, 17, 26, .08) 72%),
  linear-gradient(0deg, rgba(6, 17, 26, .78) 0%, rgba(6, 17, 26, 0) 46%),
  linear-gradient(180deg, rgba(6, 17, 26, .5) 0%, rgba(6, 17, 26, 0) 22%); }
.hero-inner { padding: calc(var(--header-h) + 48px) 0 32px; display: grid; gap: 24px; }
.hero .pill { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mars); box-shadow: 0 0 0 4px rgba(212, 83, 44, .3); }
.hero .h1 { max-width: 13ch; text-wrap: balance; }
.hero .h1 em { color: #ffb08f; }
.hero .lead { color: rgba(255, 255, 255, .84); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .22); }
.hero-facts div { padding: 18px 14px 4px 0; }
.hero-facts b { display: block; font: 500 clamp(22px, 3vw, 34px)/1 var(--serif); }
.hero-facts span { display: block; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .72); line-height: 1.35; }
@media (max-width: 520px) { .hero-facts span { font-size: 12px; } }

/* Intro */
.intro-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1.05fr .95fr; gap: 72px; } }
.intro-photo { position: relative; }
.intro-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.intro-badge {
  position: absolute; left: -12px; bottom: 28px; background: var(--paper); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.intro-badge b { font: 500 38px/1 var(--serif); color: var(--mars); }
.intro-badge span { font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (min-width: 960px) { .intro-badge { left: -36px; } }
.pillars { display: grid; gap: 14px; margin-top: 36px; }
.pillar { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
.pillar-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--lagoon-soft); color: var(--sea); }
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { margin: 2px 0 4px; font-size: 17px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Featured work (bento) */
.bento { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento > a { display: block; margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--sand-2); min-height: 180px; color: #fff; text-decoration: none; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento > a:hover img { transform: scale(1.04); }
.bento .cap { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; font-weight: 600; font-size: 14px; line-height: 1.3; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.bento .cap small { display: block; font-size: 12px; font-weight: 600; opacity: .82; margin-top: 2px; }
.bento > a::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent); pointer-events: none; }
.bento .cap { z-index: 1; }
.bento .b1 { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.bento .b2, .bento .b3, .bento .b4, .bento .b5 { aspect-ratio: 1; }
@media (min-width: 860px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 260px); gap: 16px; }
  .bento .b1 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .bento .b2, .bento .b3, .bento .b4, .bento .b5 { aspect-ratio: auto; }
  .bento .cap { font-size: 15px; left: 18px; bottom: 16px; }
}
@media (min-width: 1120px) { .bento { grid-template-rows: repeat(2, 300px); } }
.after-bento { margin-top: 28px; display: flex; justify-content: flex-end; }

/* Services */
.services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { background: var(--paper); padding: 30px 28px 32px; display: grid; gap: 12px; align-content: start; transition: background-color .25s; }
.service:hover { background: #fffdf9; }
.service-icon { width: 44px; height: 44px; color: var(--mars); }
.service h3 { margin: 6px 0 0; font: 500 23px/1.2 var(--serif); }
.service p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Shapes teaser (PoolQuote catalog) */
.shapes { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.shapes::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .shapes { grid-auto-columns: 40%; } }
@media (min-width: 1040px) { .shapes { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; } }
.shape { scroll-snap-align: start; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; display: grid; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.shape:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.shape img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.shape span { padding: 14px 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 15px; }
.shape span svg { width: 16px; height: 16px; color: var(--mars); flex: none; }
.shapes-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); font-size: 15px; }

/* Process */
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.step::before { counter-increment: step; content: "0" counter(step); font: 500 15px/1 var(--display); color: #ff9d78; letter-spacing: .08em; }
.step h3 { margin: 18px 0 8px; font: 500 24px/1.2 var(--serif); color: #fff; }
.step p { margin: 0; color: rgba(233, 238, 242, .72); font-size: 15.5px; }
.section--ink .h2 { color: #fff; }
.section--ink .lead { color: rgba(233, 238, 242, .72); }

/* Finishes */
.finishes { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .finishes { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.finish { margin: 0; }
.finish img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.finish figcaption { margin-top: 12px; font-weight: 700; font-size: 15px; }
.finish figcaption small { display: block; font-weight: 500; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.brands { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.brands span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14px; }

/* Financing band */
.finance { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); background: radial-gradient(120% 140% at 100% 0%, #1b4a5c 0%, var(--ink) 55%); color: #fff; padding: clamp(36px, 6vw, 72px); display: grid; gap: 28px; isolation: isolate; }
.finance::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6995f, var(--mars) 45%, #6f200c 100%); opacity: .9; filter: saturate(1.05); }
.finance .h2 { color: #fff; max-width: 14ch; }
.finance p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 52ch; }
.finance-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .finance { grid-template-columns: 1.2fr .8fr; align-items: end; } .finance-actions { justify-content: flex-end; } }

/* Visit */
.visit { display: grid; gap: 20px; }
@media (min-width: 960px) { .visit { grid-template-columns: .9fr 1.1fr; gap: 28px; } }
.visit-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); display: grid; gap: 22px; align-content: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.contact-list .ci { width: 40px; height: 40px; border-radius: 12px; background: var(--mars-soft); color: var(--mars); display: grid; place-items: center; }
.contact-list .ci svg { width: 18px; height: 18px; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.contact-list a, .contact-list span { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--mars); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 360px; background: var(--sand-2); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: saturate(.85); }

/* Page heads */
.page-head { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(36px, 5vw, 56px); }
.page-head .lead { margin-top: 18px; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: .2s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter b { font-weight: 600; opacity: .55; margin-left: 4px; }
.masonry { columns: 2 160px; column-gap: 12px; }
@media (min-width: 760px) { .masonry { columns: 3; column-gap: 16px; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }
.tile { break-inside: avoid; margin: 0 0 12px; display: block; width: 100%; padding: 0; border: 0; background: var(--sand-2); border-radius: 12px; overflow: hidden; cursor: zoom-in; position: relative; }
@media (min-width: 760px) { .tile { margin-bottom: 16px; } }
.tile img { width: 100%; height: auto; transition: transform .7s var(--ease), opacity .4s; }
.tile:hover img { transform: scale(1.035); }
.tile[hidden] { display: none; }
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 12, 18, .94); color: #fff; }
.lightbox::backdrop { background: rgba(5, 12, 18, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); font-size: 14px; color: rgba(255, 255, 255, .75); }
.lb-stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; border-radius: 8px; }
.lb-stage video { background: #000; }
.lb-count { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 12px; }
.lb-caption { text-align: center; padding: 14px var(--gutter) 22px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.lb-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff; display: inline-grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (max-width: 700px) { .lb-nav { top: auto; bottom: 18px; transform: none; } }

/* Projects: one card per property, grouped by design */
.project-group { margin-top: clamp(44px, 6vw, 72px); }
.filters + .project-group { margin-top: 12px; }
.group-head { display: grid; gap: 8px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .group-head { grid-template-columns: auto 1fr; align-items: baseline; gap: 28px; } }
.group-head span { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 5px 10px; border-radius: 999px; background: var(--sand-2); font: 700 13px/1 var(--sans); color: var(--muted); }
.group-head p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.project-grid { display: grid; gap: 22px; }
@media (min-width: 860px) { .project-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.project { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; align-content: start; }
.project:target { outline: 3px solid var(--lagoon); outline-offset: 3px; }
.project-media { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 3 / 2; }
.project-media[data-count="1"] { grid-template-columns: 1fr; }
.pm { position: relative; min-height: 0; padding: 0; border: 0; overflow: hidden; background: var(--sand-2); cursor: zoom-in; }
.pm:first-child, .project-media[data-count="2"] .pm:nth-child(2) { grid-row: span 2; }
.pm img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pm:hover img { transform: scale(1.04); }
.pm--video { cursor: pointer; }
.pm--video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 17, 26, .55), rgba(6, 17, 26, 0) 60%); pointer-events: none; }
.pm-play { position: absolute; z-index: 1; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border-radius: 999px; background: rgba(11, 27, 43, .82); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; max-width: calc(100% - 12px); overflow: hidden; }
.pm-play svg { width: 14px; height: 14px; color: #ff9d78; }
.pm-count { position: absolute; left: 12px; bottom: 12px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow-sm); }
.project-body { padding: 20px 22px 24px; display: grid; gap: 10px; }
.project-meta { margin: 0; display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mars); }
.project-meta svg { width: 14px; height: 14px; flex: none; }
.project-title { margin: 0; font: 500 clamp(22px, 2.2vw, 26px)/1.2 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.project-features { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.project-features li { padding: 6px 11px; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.projects-more { margin: clamp(40px, 6vw, 64px) 0 0; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--muted); }

/* About */
.about-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.prose p { margin: 0 0 18px; color: var(--ink-2); font-size: 18px; }
.prose p:first-child::first-letter { font: 500 64px/.8 var(--serif); float: left; padding: 6px 10px 0 0; color: var(--mars); }
.about-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.signature { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.signature-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 500 22px/1 var(--serif); font-style: italic; }
.signature b { display: block; font-size: 17px; }
.signature span { color: var(--muted); font-size: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-size: 15.5px; }
.checklist svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 2px; }
.classic { display: grid; gap: 28px; align-items: center; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
@media (min-width: 860px) { .classic { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.classic img { border-radius: 12px; width: 100%; }
.classic p { color: var(--muted); margin: 14px 0 0; }

/* CTA band */
.cta-band { text-align: center; display: grid; justify-items: center; gap: 22px; }
.cta-band .h2 { max-width: 18ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(233, 238, 242, .74); padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .brand { display: inline-block; padding: 12px 16px; background: #fff; border-radius: 16px; }
.site-footer .brand-logo { width: 220px; height: auto; }
.footer-tag { margin: 18px 0 0; max-width: 34ch; font-family: var(--serif); font-size: 20px; line-height: 1.35; color: #fff; }
.footer-tag em { color: #ff9d78; }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13.5px; }
.pq-badge { display: inline-flex; align-items: center; gap: 8px; }
.pq-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--lagoon); }

/* Mobile sticky call bar */
.callbar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 8px; background: rgba(11, 27, 43, .92); border-radius: 999px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(140%); transition: transform .35s var(--ease); }
.callbar.is-visible { transform: none; }
.callbar .btn { flex: 1; min-height: 46px; font-size: 15px; padding: 0 14px; }
.callbar .btn--ghost { --fg: #fff; border-color: rgba(255, 255, 255, .25); }
@media (min-width: 760px) { .callbar { display: none; } }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
