/* Legendary Pools & Outdoor Living — design system
   Palette from the Legendary Brand Guide (Nov 2026): Deep Ocean Blue #2E3D51, Pearl White #F5F5F2, Celestial Silver #B7BCC4, Soft Sand #D7C9B1, Teal Slate #4F707A, Storm Charcoal #333333.
   Type: Cormorant Garamond (display) / Jost (text). */
:root {
  --ink: #2e3d51;
  --ink-2: #263347;
  --ink-3: #3b4f68;
  --paper: #f5f5f2;
  --ivory: #f5f5f2;
  --stone: #e9e4da;
  --stone-2: #d7c9b1;
  --brass: #4f707a;
  --brass-2: #d7c9b1;
  --text: #333333;
  --muted: #5c6672;
  --line: rgba(30, 41, 56, .12);
  --line-light: rgba(245, 245, 242, .18);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ivory); color: var(--ink); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ── Type ─────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 96px); }
h2 { font-size: clamp(34px, 4.6vw, 62px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); }
h4 { font-size: 22px; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
em.it, .it { font-style: italic; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--brass); margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.65; color: var(--muted); max-width: 62ch; }
.dark .lede, .on-dark .lede { color: rgba(245, 245, 242, .78); }
.answer { border-left: 2px solid var(--brass); padding: 4px 0 4px 22px; font-size: 18px; max-width: 72ch; color: var(--text); }
.dark .answer { color: var(--ivory); }

/* ── Layout ───────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section.tight { padding: clamp(56px, 7vw, 96px) 0; }
.dark { background: var(--ink); color: var(--ivory); }
.ivory { background: var(--ivory); }
.stone { background: var(--stone); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.split-head p { margin: 0; }
@media (max-width: 900px) { .grid-2, .split-head { grid-template-columns: 1fr; } }

/* ── Buttons ──────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 30px; border: 1px solid currentColor; border-radius: var(--radius); font: 500 12.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); background: transparent; }
.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.btn-solid:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn-light { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { color: var(--ivory); border-color: rgba(245, 245, 242, .5); }
.btn-ghost-light:hover { background: rgba(245, 245, 242, .1); border-color: var(--ivory); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.link { font: 500 12.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Header ───────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--ivory); transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); }
.site-header.solid, body.no-hero .site-header { background: rgba(245, 245, 242, .94); color: var(--ink); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand .logo-navy { display: none; }
.site-header.solid .logo-ivory, body.no-hero .site-header .logo-ivory { display: none; }
.site-header.solid .logo-navy, body.no-hero .site-header .logo-navy { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font: 500 19px/1 var(--serif); letter-spacing: .32em; text-transform: uppercase; }
.brand-text span { font: 400 9.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; margin-top: 7px; opacity: .8; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav > a, .nav .dd > button { font: 400 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; background: none; border: 0; padding: 10px 0; cursor: pointer; position: relative; }
.nav > a::after, .nav .dd > button::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav > a:hover::after, .nav > a[aria-current]::after, .nav .dd:hover > button::after { right: 0; }
.dd { position: relative; }
.dd-menu { position: absolute; top: 100%; left: -28px; min-width: 300px; padding: 18px 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(30, 41, 56, .35); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .3s var(--ease); }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: block; padding: 10px 28px; text-decoration: none; font-size: 15px; }
.dd-menu a:hover { background: var(--ivory); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font: 400 13px/1 var(--sans); letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.header-cta .btn { padding: 14px 22px; }
.site-header:not(.solid) .header-cta .btn { border-color: rgba(245, 245, 242, .6); }
body.no-hero .site-header .header-cta .btn, .site-header.solid .header-cta .btn { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 7px 0; transition: transform .3s var(--ease); }
@media (max-width: 1180px) { .header-phone { display: none; } }
@media (max-width: 1020px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: block; }
}
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--ivory); padding: 28px var(--gutter) 40px; display: flex; flex-direction: column; overflow-y: auto; transform: translateX(100%); transition: transform .5s var(--ease); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.drawer-close { background: none; border: 0; font-size: 34px; line-height: 1; cursor: pointer; color: var(--ivory); }
.drawer nav a { display: block; font: 400 34px/1.35 var(--serif); text-decoration: none; }
.drawer nav .sub a { font: 400 16px/2.1 var(--sans); opacity: .8; padding-left: 4px; }
.drawer .btn { margin-top: 32px; align-self: flex-start; }
.drawer-contact { margin-top: auto; padding-top: 40px; font-size: 15px; opacity: .85; }
.drawer-contact a { display: block; text-decoration: none; }

/* ── Hero ─────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--ivory); overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: drift 24s var(--ease) both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 41, 56, .78) 0%, rgba(30, 41, 56, .45) 42%, rgba(30, 41, 56, 0) 70%), linear-gradient(180deg, rgba(30, 41, 56, .55) 0%, rgba(30, 41, 56, 0) 28%, rgba(30, 41, 56, .15) 60%, rgba(30, 41, 56, .85) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 9vh, 110px); padding-top: calc(var(--header-h) + 60px); }
.hero h1 { font-size: clamp(44px, 5.6vw, 84px); max-width: 16ch; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--brass-2); }
.hero .lede { max-width: 54ch; margin-bottom: 38px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line-light); font: 400 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(245, 245, 242, .75); }
.hero-meta b { display: block; font: 400 30px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ivory); margin-bottom: 8px; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(56px, 9vh, 110px); z-index: 2; writing-mode: vertical-rl; font: 400 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(245, 245, 242, .7); display: flex; align-items: center; gap: 14px; }
.scroll-cue::after { content: ''; width: 1px; height: 64px; background: linear-gradient(var(--ivory), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* Page hero (inner pages) */
.page-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; color: var(--ivory); background: var(--ink); overflow: hidden; }
.page-hero.short { min-height: 0; padding-top: calc(var(--header-h) + clamp(60px, 9vw, 120px)); padding-bottom: clamp(48px, 6vw, 80px); align-items: flex-start; }
.page-hero .hero-media img { animation-duration: 18s; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 41, 56, .6), rgba(30, 41, 56, 0) 65%), linear-gradient(180deg, rgba(30, 41, 56, .5), rgba(30, 41, 56, .05) 35%, rgba(30, 41, 56, .85)); }
.page-hero.short::after { display: none; }
.page-hero .wrap { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 80px); padding-bottom: clamp(48px, 7vw, 90px); }
.page-hero.short .wrap { padding-top: 0; padding-bottom: 0; }
.page-hero h1 { font-size: clamp(42px, 6vw, 84px); max-width: 18ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font: 400 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 26px; color: rgba(245, 245, 242, .7); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ivory); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ── Trust strip ──────────────────────── */
.trust { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 34px 28px; border-left: 1px solid var(--line); display: flex; gap: 18px; align-items: center; }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item b { font: 400 40px/1 var(--serif); color: var(--ink); }
.trust-item span { font: 400 12px/1.45 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trust-item img { width: 92px; }
@media (max-width: 900px) { .trust .wrap { grid-template-columns: 1fr 1fr; } .trust-item:nth-child(3) { border-left: 0; padding-left: 0; } .trust-item { border-top: 1px solid var(--line); } .trust-item:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 520px) { .trust-item { padding: 24px 0 24px 16px; } .trust-item b { font-size: 32px; } }

/* ── Statement ────────────────────────── */
.statement { font: 400 clamp(30px, 3.6vw, 50px)/1.22 var(--serif); letter-spacing: -.01em; max-width: 24ch; color: var(--ink); margin: 0; }
.statement em { color: var(--brass); }
.dark .statement { color: var(--ivory); }
.dark .statement em { color: var(--brass-2); }

/* ── Image helpers ────────────────────── */
.frame { position: relative; overflow: hidden; background: var(--stone); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ar-4x5 { aspect-ratio: 4/5; } .ar-3x2 { aspect-ratio: 3/2; } .ar-16x9 { aspect-ratio: 16/9; } .ar-1 { aspect-ratio: 1; } .ar-3x4 { aspect-ratio: 3/4; } .ar-21x9 { aspect-ratio: 21/9; }
a:hover .frame img, .frame.zoom:hover img { transform: scale(1.04); }
figure { margin: 0; }
figcaption { font: 400 12px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

/* Intro collage */
.collage { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: end; }
.collage .frame:last-child { margin-bottom: -64px; }
@media (max-width: 900px) { .collage .frame:last-child { margin-bottom: 0; } }

/* ── Services grid ────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.svc-card { position: relative; display: block; text-decoration: none; color: var(--ivory); overflow: hidden; }
.svc-card .frame { aspect-ratio: 4/5; }
.svc-card .frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(30, 41, 56, .85)); transition: opacity .5s var(--ease); }
.svc-card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px; z-index: 2; }
.svc-card .n { font: 400 12px/1 var(--sans); letter-spacing: .24em; color: var(--brass-2); }
.svc-card h3 { margin: 12px 0 10px; font-size: clamp(26px, 2.4vw, 34px); }
.svc-card p { font-size: 15px; line-height: 1.6; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s var(--ease); color: rgba(245, 245, 242, .85); }
.svc-card:hover p, .svc-card:focus-visible p { max-height: 120px; opacity: 1; }
@media (hover: none) { .svc-card p { max-height: none; opacity: 1; } }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } .svc-card .frame { aspect-ratio: 4/3.6; } }

/* ── Featured project ─────────────────── */
.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; background: var(--ink); color: var(--ivory); }
.feature .frame { min-height: 620px; }
.feature-body { padding: clamp(40px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.feature-body h2 { font-size: clamp(34px, 3.8vw, 54px); }
.spec { list-style: none; padding: 0; margin: 10px 0 36px; border-top: 1px solid var(--line-light); }
.spec li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); font-size: 15px; }
.spec li span:first-child { font: 400 11.5px/1.9 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-2); }
.light-spec { border-top-color: var(--line); }
.light-spec li { border-bottom-color: var(--line); }
.light-spec li span:first-child { color: var(--brass); }
@media (max-width: 1000px) { .feature { grid-template-columns: 1fr; } .feature .frame { min-height: 0; aspect-ratio: 4/3; } }

/* Project cards */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.proj-card { text-decoration: none; display: block; }
.proj-card .frame { aspect-ratio: 4/5; margin-bottom: 22px; }
.proj-card .kicker { font: 400 11.5px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.proj-card h3 { margin: 10px 0 10px; }
.proj-card p { color: var(--muted); font-size: 15.5px; }
.dark .proj-card p { color: rgba(245, 245, 242, .72); }
@media (max-width: 1000px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .proj-grid { grid-template-columns: 1fr; } }

/* Gallery (masonry-ish) */
.gallery { columns: 3 320px; column-gap: 16px; }
.gallery button { all: unset; display: block; cursor: zoom-in; margin-bottom: 16px; break-inside: avoid; position: relative; overflow: hidden; width: 100%; }
.gallery button img { width: 100%; transition: transform 1s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(10, 6, 26, .92); }
dialog.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; }
dialog.lightbox p { color: var(--ivory); font-size: 14px; margin: 12px 0 0; }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%); background: none; border: 1px solid rgba(245, 245, 242, .4); color: var(--ivory); width: 54px; height: 54px; cursor: pointer; font-size: 22px; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { position: fixed; top: 18px; right: 18px; background: none; border: 0; color: var(--ivory); font-size: 40px; cursor: pointer; }

/* ── Process ──────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.dark .steps { border-top-color: var(--line-light); }
.step { padding: 36px 28px 0 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.dark .step + .step { border-left-color: var(--line-light); }
.step .n { font: italic 400 64px/1 var(--serif); color: var(--brass); display: block; margin-bottom: 26px; }
.dark .step .n { color: var(--brass-2); }
.step h3 { font-size: 26px; }
.step p { font-size: 15.5px; color: var(--muted); }
.dark .step p { color: rgba(245, 245, 242, .72); }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(3) { border-left: 0; padding-left: 0; } .step { padding-bottom: 28px; } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .dark .step + .step { border-top-color: var(--line-light); } }

/* ── Pillars ──────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.pillar { padding: 40px 40px 40px 0; border-top: 1px solid var(--line); }
.pillar:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.pillar h3 { font-size: 28px; }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillar, .pillar:nth-child(even) { padding: 30px 0; border-left: 0; } }

/* ── Reviews ──────────────────────────── */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 46%); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; scrollbar-width: thin; scrollbar-color: var(--brass) transparent; }
.review { scroll-snap-align: start; padding: 44px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.dark .review { background: var(--ink-2); border-color: var(--line-light); }
.review blockquote { margin: 0 0 28px; font: 400 clamp(21px, 1.9vw, 26px)/1.4 var(--serif); }
.review blockquote::before { content: '“'; display: block; font: 400 72px/0.6 var(--serif); color: var(--brass); margin-bottom: 14px; }
.review .full { font-size: 15px; color: var(--muted); margin-bottom: 26px; }
.dark .review .full { color: rgba(245, 245, 242, .7); }
.review cite { margin-top: auto; font: 500 12px/1.5 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; }
.review cite span { display: block; font-weight: 400; color: var(--brass); letter-spacing: .14em; }
.stars { color: var(--brass); letter-spacing: .25em; font-size: 14px; margin-bottom: 18px; }
@media (max-width: 700px) { .reviews { grid-auto-columns: 88%; } .review { padding: 30px; } }

/* ── Areas list ───────────────────────── */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.areas a, .areas span { padding: 22px 0; border-bottom: 1px solid var(--line-light); font: 400 24px/1.2 var(--serif); text-decoration: none; display: flex; justify-content: space-between; align-items: center; margin-right: 28px; }
.areas a::after { content: '→'; font: 400 16px var(--sans); opacity: .5; transition: transform .3s var(--ease), opacity .3s; }
.areas a:hover::after { transform: translateX(4px); opacity: 1; }
.areas span { opacity: .65; }
.ivory .areas, .paper .areas { border-top-color: var(--line); }
.ivory .areas a, .ivory .areas span { border-bottom-color: var(--line); }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr 1fr; } }

/* ── Feature list ─────────────────────── */
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.checks li { padding: 15px 0 15px 34px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 25px; width: 18px; height: 1px; background: var(--brass); }
.dark .checks li { border-bottom-color: var(--line-light); }
@media (max-width: 700px) { .checks { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.dark .faq { border-top-color: var(--line-light); }
.faq details { border-bottom: 1px solid var(--line); }
.dark .faq details { border-bottom-color: var(--line-light); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative; font: 400 clamp(21px, 2vw, 26px)/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: linear-gradient(currentColor, currentColor) center/16px 1px no-repeat, linear-gradient(currentColor, currentColor) center/1px 16px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 28px; max-width: 78ch; color: var(--muted); }
.dark .faq .a { color: rgba(245, 245, 242, .75); }
.faq-group { margin-top: 64px; }
.faq-group h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 22px; }

/* ── Prose (articles/guides) ──────────── */
.prose { font-size: 18px; line-height: 1.8; max-width: 72ch; }
.prose h2 { font-size: clamp(30px, 3vw, 42px); margin: 1.8em 0 .55em; }
.prose h3 { font-size: 26px; margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brass); }
.prose .ask { background: var(--ivory); padding: 20px 24px; border-left: 2px solid var(--brass); font-size: 16.5px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.8em; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.post-meta { font: 400 12px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(245, 245, 242, .7); }
.toc { position: sticky; top: calc(var(--header-h) + 30px); font-size: 14.5px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--ink); }
.article-layout { display: grid; grid-template-columns: 1fr 260px; gap: clamp(40px, 6vw, 100px); align-items: start; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .toc { display: none; } }

/* ── Team ─────────────────────────────── */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.team .frame { aspect-ratio: 3/4; margin-bottom: 22px; }
.team .frame img { filter: grayscale(.25); }
.team h3 { margin-bottom: 4px; }
.team .role { font: 400 12px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; display: block; }
.team p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; max-width: 520px; } }

/* ── Offer band ───────────────────────── */
.offer { position: relative; color: var(--ivory); background: var(--ink); overflow: hidden; }
.offer .frame { position: absolute; inset: 0; background: none; }
.offer .frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 41, 56, .95) 0%, rgba(30, 41, 56, .75) 50%, rgba(30, 41, 56, .25)); }
.offer .wrap { position: relative; z-index: 2; }
.offer-box { max-width: 620px; }
.offer small { display: block; font-size: 13px; color: rgba(245, 245, 242, .65); margin-top: 18px; }

/* ── Lead form ────────────────────────── */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; } }
.lead-form { background: var(--paper); color: var(--text); padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line); }
.dark .lead-form { border: 0; }
.lead-form h3 { font-size: 32px; margin-bottom: 6px; }
.lead-form .sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font: 500 11px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 0 12px; border: 0; border-bottom: 1px solid var(--stone-2); background: transparent; border-radius: 0; font-size: 16px; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c6672'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 24px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--ink); }
.field input:user-invalid, .field select:user-invalid { border-bottom-color: #a33; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; border: 1px solid var(--stone-2); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--text); transition: all .25s; }
.chips input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-top: 30px; }
.form-foot small { color: var(--muted); font-size: 12.5px; max-width: 34ch; line-height: 1.5; }
.form-status { margin-top: 18px; font-size: 15px; }
.form-status.err { color: #9b2c2c; }
.lead-form.sent .fields, .lead-form.sent .form-foot { display: none; }
.lead-form button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--line-light); }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.contact-list small { display: block; font: 400 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 6px; }
.contact-list a, .contact-list b { font: 400 24px/1.3 var(--serif); text-decoration: none; }
.ivory .contact-list, .paper .contact-list { border-top-color: var(--line); }
.ivory .contact-list li { border-bottom-color: var(--line); }
.ivory .contact-list small { color: var(--brass); }

/* ── Journal ──────────────────────────── */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 56px); }
.post-card { text-decoration: none; display: block; }
.post-card .frame { aspect-ratio: 3/2; margin-bottom: 22px; }
.post-card time { font: 400 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.post-card h3 { margin: 14px 0 12px; }
.post-card p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }

/* ── CTA band ─────────────────────────── */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-band .lede { margin: 0 auto 36px; }
.cta-band .btn-row { justify-content: center; }

/* ── Footer ───────────────────────────── */
.site-footer { background: var(--ink); color: rgba(245, 245, 242, .78); padding: clamp(70px, 9vw, 120px) 0 36px; font-size: 15px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--line-light); }
.foot-brand img { width: 74px; margin-bottom: 22px; }
.foot-brand p { max-width: 34ch; }
.site-footer h4 { font: 500 11.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 22px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
.foot-big { font: 400 clamp(40px, 6.5vw, 96px)/1 var(--serif); color: var(--ivory); letter-spacing: -.01em; padding: 60px 0; border-bottom: 1px solid var(--line-light); display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.foot-big a { text-decoration: none; }
.foot-big em { color: var(--brass-2); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 13px; color: rgba(245, 245, 242, .55); }
.socials { display: flex; gap: 14px; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line-light); display: grid; place-items: center; border-radius: 50%; }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Mobile sticky action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); border-top: 1px solid var(--line-light); padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); transition: transform .4s var(--ease); }
  .mobile-bar.show { transform: none; }
  .mobile-bar a { padding: 17px 10px; text-align: center; color: var(--ivory); font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
  .mobile-bar a + a { background: var(--ivory); color: var(--ink); }
  body { padding-bottom: 54px; }
}

/* ── Reveal ───────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.note { font-size: 14px; color: var(--muted); }
.two-col-text { columns: 2 320px; column-gap: 60px; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 40px); }

@media (max-height: 820px) and (min-width: 900px) { .hero h1 { font-size: clamp(40px, 4.6vw, 68px); } .hero .lede { margin-bottom: 26px; } .hero-meta { margin-top: 34px; } }
.feature .frame img { object-position: 50% 85%; }
.hero .lede, .page-hero .lede { color: rgba(245, 245, 242, .86); }
.page-hero .lede a { color: var(--ivory); }
.page-hero h1 { font-size: clamp(38px, 4.8vw, 72px); }
.page-hero .eyebrow { color: var(--brass-2); }

/* ─── Scroll-built hero (home). Without WebGL/JS it stays the photo hero. ─── */
.build-hero .bh-stage { display: contents; }
.build-hero .bh-steps, .build-hero .bh-caps, .build-hero .bh-final, .build-hero .bh-bar, .build-hero .bh-skip, .build-hero .bh-hint, .build-hero .bh-shade { display: none; }
.build-hero.is-3d { display: block; min-height: 0; height: 900vh; overflow: visible; }
.build-hero.is-3d::after, .build-hero.is-3d .scroll-cue { display: none; }
.build-hero.is-3d .bh-stage { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.bh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.build-hero.is-3d .hero-media { transition: opacity 1s var(--ease); z-index: 1; }
.build-hero.is-3d.ready .hero-media { opacity: 0; pointer-events: none; }
.build-hero.is-3d .bh-shade { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--shade, 1);
  background: linear-gradient(90deg, rgba(30, 41, 56, .78) 0%, rgba(30, 41, 56, .42) 42%, rgba(30, 41, 56, 0) 72%), linear-gradient(180deg, rgba(30, 41, 56, .5) 0%, rgba(30, 41, 56, 0) 26%, rgba(30, 41, 56, 0) 60%, rgba(30, 41, 56, .7) 100%); }
.build-hero.is-3d .bh-stage::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(30, 41, 56, .45) 0%, rgba(30, 41, 56, 0) 18%); }
.build-hero.is-3d .bh-intro { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; opacity: var(--intro, 1); transform: translateY(calc((1 - var(--intro, 1)) * -36px)); }
.build-hero.is-3d.intro-off .bh-intro, .build-hero.is-3d:not(.final-on) .bh-final { visibility: hidden; }
.bh-hint { margin: 26px 0 0; font: 500 11.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(245, 245, 242, .78); display: flex; align-items: center; gap: 14px; }
.build-hero.is-3d .bh-hint { display: flex; }
.bh-hint::before { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--brass-2), transparent); animation: cue 2.4s var(--ease) infinite; }
.build-hero.is-3d .bh-caps { display: block; position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(40px, 8vh, 84px); width: min(440px, calc(100% - 2 * var(--gutter))); height: 230px; opacity: var(--caps, 0); pointer-events: none; }
.bh-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px 24px; color: var(--ivory); background: rgba(30, 41, 56, .66); border: 1px solid rgba(215, 201, 177, .28); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.bh-cap.on { opacity: 1; transform: none; }
.bh-cap .bh-n { display: block; font: 500 11.5px/1 var(--sans); letter-spacing: .24em; color: var(--brass-2); margin-bottom: 14px; }
.bh-cap h2 { font-size: clamp(28px, 2.6vw, 38px); margin: 0 0 10px; color: var(--ivory); }
.bh-cap p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(245, 245, 242, .86); }
.build-hero.is-3d .bh-steps { display: flex; flex-direction: column; gap: 14px; position: absolute; z-index: 2; right: var(--gutter); top: 50%; transform: translateY(-50%); margin: 0; padding: 18px 18px 18px 22px; list-style: none; opacity: var(--caps, 0); background: rgba(30, 41, 56, .5); border: 1px solid rgba(215, 201, 177, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bh-steps li { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font: 500 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(245, 245, 242, .5); transition: color .4s var(--ease); }
.bh-steps li span { order: 2; display: inline-block; width: 26px; text-align: right; }
.bh-steps li::after { content: ''; order: 3; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; transition: all .4s var(--ease); }
.bh-steps li.done { color: rgba(245, 245, 242, .72); }
.bh-steps li.done::after { background: currentColor; }
.bh-steps li.on { color: var(--brass-2); }
.bh-steps li.on::after { background: var(--brass-2); transform: scale(1.5); }
.build-hero.is-3d .bh-final { display: block; position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 10vh, 110px); max-width: 680px; color: var(--ivory); opacity: var(--final, 0); transform: translateY(calc((1 - var(--final, 0)) * 24px)); }
.bh-final-title { font: 400 clamp(38px, 4.8vw, 70px)/1.06 var(--serif); letter-spacing: -.01em; margin: 0 0 30px; max-width: 15ch; text-wrap: balance; }
.build-hero.is-3d .bh-bar { display: block; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(245, 245, 242, .14); }
.bh-bar i { display: block; height: 100%; background: var(--brass-2); transform-origin: left; transform: scaleX(0); }
.build-hero.is-3d .bh-skip { display: block; position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 18px; font: 500 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(245, 245, 242, .7); text-decoration: none; opacity: var(--caps, 0); padding: 8px 0; }
.build-hero.is-3d .bh-skip:hover { color: var(--ivory); }
@media (max-width: 1100px) { .build-hero.is-3d .bh-steps { display: none; } }
@media (max-width: 760px) {
  .build-hero.is-3d { height: 800vh; }
  .build-hero.is-3d .hero-meta { display: none; }
  .build-hero.is-3d h1 { font-size: clamp(36px, 10.5vw, 46px); margin-bottom: 16px; }
  .build-hero.is-3d .bh-intro .lede { font-size: 16px; line-height: 1.55; margin-bottom: 24px; }
  .build-hero.is-3d .bh-intro { padding-bottom: 36px; }
  .build-hero.is-3d .bh-intro .eyebrow { margin-bottom: 14px; }
  .build-hero.is-3d .bh-caps { left: 16px; right: 16px; width: auto; bottom: 70px; height: 210px; }
  .bh-cap { padding: 20px 20px 18px; }
  .bh-cap h2 { font-size: 26px; }
  .bh-cap p { font-size: 15px; }
  .build-hero.is-3d .bh-skip { left: 16px; right: auto; bottom: 26px; transform: none; }
  .build-hero.is-3d .bh-final { bottom: 64px; }
}
@media (max-height: 820px) and (min-width: 761px) {
  .build-hero.is-3d .hero-meta { display: none; }
  .build-hero.is-3d h1 { font-size: clamp(40px, 4.6vw, 64px); }
  .build-hero.is-3d .bh-intro .lede { margin-bottom: 28px; }
  .build-hero.is-3d .bh-hint { margin-top: 20px; }
}
