/* ============================================================
   Lynxury · design tokens & base
   ============================================================ */
:root {
  --obsidian: #0E0F12;
  --charcoal: #121317;
  --ink: #23211C;
  --light: #F6F2E9;
  --light-2: #EFEADD;
  --silver: #A9ABB1;
  --muted: #5D584C;
  --gold: #C9A24A;
  --gold-soft: rgba(201, 162, 74, .25);
  /* gold darkened for light surfaces: --gold itself only reaches 2.1:1 on ivory */
  --gold-ink: #7d611c;
  /* --muted is tuned for ivory backgrounds; this is its counterpart on obsidian */
  --muted-light: #948d7e;
  /* control boundaries, held at 3:1 against their surface (WCAG 1.4.11) */
  --line-light: #908a7a;
  --line-field: #989386;

  /* gold as *text*, and the focus ring, re-tinted per surface so both stay legible */
  --gold-text: var(--gold);
  --focus: var(--gold);

  --font-serif: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-label: 'Jost', system-ui, sans-serif;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--silver);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* announced by screen readers, absent from the visual layout */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* the page behind an open lightbox must not scroll under it */
body.is-locked { overflow: hidden; }

/* layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 9vw, 120px); }

/* typography */
.serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.5px; line-height: 1.05; }
.h-xl { font-family: var(--font-serif); font-weight: 500; letter-spacing: -1px; line-height: 1.02; font-size: clamp(44px, 8vw, 92px); }
.h-lg { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.5px; line-height: 1.05; font-size: clamp(30px, 4.5vw, 52px); }
.h-md { font-family: var(--font-serif); font-weight: 500; line-height: 1.1; font-size: clamp(22px, 3vw, 32px); }
.gold-em { color: var(--gold-text); font-style: italic; }
.vision-em { font-size: 1.12em; }
.vision-dot { color: var(--gold-text); }

.eyebrow, .tag {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 11px;
  font-weight: 400;
  margin: 0;
}
.tag { color: var(--gold); }
.eyebrow { color: var(--silver); }

/* section mark: a short gold tick replaces the floating kicker label */
.kicker { display: block; width: 40px; height: 3px; background: var(--gold); border-radius: 2px; margin: 0 0 22px; }
.difference .kicker { margin-inline: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-label); text-transform: uppercase;
  letter-spacing: .16em; font-size: 13px; font-weight: 500;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
/* no lift on hover; the buttons shift colour instead */
.btn--gold { background: var(--gold); color: var(--obsidian); }
/* gold: brighten and bloom into a luminous ring */
.btn--gold:hover { background: #ecc163; box-shadow: 0 0 0 4px var(--gold-soft), 0 0 26px 2px rgba(201, 162, 74, .55); }
.btn--ink { background: var(--ink); color: var(--light); }
/* ink: pick up the gold accent, echoing the nav */
.btn--ink:hover { border-color: var(--gold); color: var(--gold); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .25); color: var(--light); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* skip link: the fixed header repeats 5 nav items on every page (WCAG 2.4.1) */
.skip-link { position: absolute; top: 0; left: 50%; transform: translate(-50%, -140%); z-index: 100; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; background: var(--gold); color: var(--obsidian); padding: 12px 22px; border-radius: 0 0 10px 10px; transition: transform .18s var(--ease); }
/* :focus, not :focus-visible — a skip link is only ever reached by keyboard, and
   the focus-visible heuristic can miss a link focused on first tab into a page. */
.skip-link:focus { transform: translate(-50%, 0); outline-offset: -4px; }

/* focus */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* On ivory surfaces --gold reads at 2.0-2.2:1 — under even the 3:1 large-text
   bar — so every scope with a light background swaps in the darkened tone for
   text and focus rings. Gold as a *fill* (buttons, rails, dots) is untouched. */
.page-light, .process, .cta-band, .achap--4, .contact-main, .gallery-hero {
  --gold-text: var(--gold-ink);
  --focus: var(--gold-ink);
}

/* ============================================================
   Before/after reveal slider
   ============================================================ */
.ba { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; user-select: none; touch-action: pan-y; background: #2a2a2a; cursor: grab; }
.ba.is-dragging { cursor: grabbing; }
.ba__before, .ba__after { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba__after { clip-path: inset(0 0 0 calc(var(--pos, 50) * 1%)); }
.ba__before { clip-path: inset(0 calc((100 - var(--pos, 50)) * 1%) 0 0); }
.ba__label { position: absolute; bottom: 12px; z-index: 3; font-family: var(--font-label); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 5px 11px; border-radius: 6px; background: rgba(14, 15, 18, .8); border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.ba__label--before { left: 12px; }
.ba__label--after { right: 12px; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: calc(var(--pos, 50) * 1%);
  transform: translateX(-50%); width: 44px; border: none; background: transparent; cursor: ew-resize; padding: 0;
}
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: var(--gold); }
.ba__handle::after { content: "\2039 \203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--gold); color: var(--obsidian); font-size: 13px; letter-spacing: -1px; padding: 7px 9px; border-radius: 999px; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
/* the gold knob swells and lifts while the reveal is being dragged */
.ba.is-dragging .ba__handle::after { transform: translate(-50%, -50%) scale(1.14); box-shadow: 0 0 0 6px var(--gold-soft); }

/* ============================================================
   Site header / nav
   ============================================================ */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s var(--ease), backdrop-filter .3s; }
/* dark top fade so nav links stay legible over the hero while the header is transparent */
/* .85 at the top, not .7: the gold active-link marker only reached 3.6:1 against
   a bright patch of hero photo through the lighter fade. */
.site-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 200%; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(10, 11, 14, .85) 0%, rgba(10, 11, 14, .38) 50%, transparent 100%); transition: opacity .3s var(--ease); }
.site-head.is-scrolled::before { opacity: 0; }
.site-head.is-scrolled { background: rgba(14, 15, 18, .82); backdrop-filter: blur(12px); }
.site-head__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.nav a { position: relative; color: var(--light); opacity: .85; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; color: var(--gold); }
.nav a.is-active { opacity: 1; color: var(--gold); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); border-radius: 2px; }
/* Solid gold, not a translucent wash: the pill floats over the hero photo, so a
   25% tint left the ivory label reading against whatever pixel sat behind it
   (1.3:1 over a bright window pane). An opaque fill carries its own contrast
   (7.99:1) at any scroll position, and matches the .btn--gold language the
   primary CTA uses on every other surface. */
/* `.nav a` outranks a bare `.nav__cta`, so the colour is set at that specificity */
.nav a.nav__cta { color: var(--obsidian); opacity: 1; font-weight: 500; border: 1px solid var(--gold); background: var(--gold); padding: 9px 18px; border-radius: 999px; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.nav a.nav__cta:hover { color: var(--obsidian); background: #ecc163; border-color: #ecc163; box-shadow: 0 0 0 4px var(--gold-soft); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--light); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 100vh; overflow: hidden; background: var(--obsidian); }
/* the before/after fills the whole hero */
.hero__ba { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.hero__ba .ba__before { filter: grayscale(.5) brightness(.62); }
.hero__ba .ba__label { bottom: 22px; }
.hero__ba .ba__label--before { left: 22px; }
.hero__ba .ba__label--after { right: 22px; }
/* scrim: dark on the left (for text) and across the top (for nav) */
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 11, 14, .86) 0%, rgba(10, 11, 14, .35) 42%, rgba(10, 11, 14, 0) 72%),
    linear-gradient(180deg, rgba(10, 11, 14, .6) 0%, rgba(10, 11, 14, 0) 20% 72%, rgba(10, 11, 14, .5) 100%); }
/* text lockup: clicks pass through to the slider except on the CTA */
.hero__overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; padding-inline: var(--pad); pointer-events: none; }
.hero__lockup { width: 100%; max-width: var(--maxw); margin-inline: auto; }
.hero__title { color: var(--light); margin: 0; max-width: 13ch; text-shadow: 0 2px 40px rgba(0, 0, 0, .55); }
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  margin-top: 32px; pointer-events: auto;
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: .2em; font-size: 13px;
  color: var(--light); padding-bottom: 6px; border-bottom: 1px solid var(--gold);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.hero__cta:hover { gap: 16px; color: #fff; }
.hero__cta-ar { color: var(--gold); }
.hero__hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; margin: 0; pointer-events: none;
  font-family: var(--font-label); font-weight: 500; text-transform: uppercase; letter-spacing: .22em; font-size: 11px; color: #fff;
  padding: 8px 16px; border-radius: 999px; background: rgba(14, 15, 18, .8); border: 1px solid rgba(255, 255, 255, .16);
  animation: hint-breathe 3.4s ease-in-out infinite; }
/* a slow, quiet breath inviting the eye to the reveal; floor stays readable */
@keyframes hint-breathe { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }

/* Mobile hero: keep the reveal fully landscape (no portrait crop) by setting it
   as a centered band with cinematic obsidian space above/below, title beneath.
   Desktop keeps the full-bleed hero. The hint lives inside .hero__ba, so on
   desktop (where the band fills the hero) it is unchanged, and here it rides the
   bottom of the band. */
@media (max-width: 720px) {
  .hero { display: flex; flex-direction: column; justify-content: center; gap: 30px; padding-block: 84px 44px; }
  .hero__ba { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 0; }
  .hero__scrim { display: none; }
  .hero__overlay { position: static; inset: auto; display: block; pointer-events: auto; padding-inline: var(--pad); }
}

/* ============================================================
   Differentiator
   ============================================================ */
.difference { background: var(--obsidian); text-align: center; }
.difference__inner { max-width: 760px; margin-inline: auto; }
.difference .tag { margin-bottom: 18px; }
.difference__title { color: var(--light); margin: 0; }
.difference__lead { color: var(--silver); font-size: clamp(15px, 1.7vw, 18px); max-width: 56ch; margin: 24px auto 0; }

/* ============================================================
   Services
   ============================================================ */
.services { background: var(--charcoal); }
.services__title { color: var(--light); margin: 10px 0 40px; }
/* editorial rows with a polished-obsidian sheen */
.services__rows { display: flex; flex-direction: column; gap: 10px; }
.svc-row {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 24px;
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 28px);
  border-radius: 12px;
  background: linear-gradient(145deg, #1b1c22, #0c0d10);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
/* gold underline, lit on hover */
.svc-row::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0), transparent);
  transition: background .35s var(--ease);
}
/* diagonal sheen that sweeps across on hover */
.svc-row::before {
  content: ""; position: absolute; top: -50%; left: -60%; width: 70%; height: 200%;
  background: linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 45%);
  transform: rotate(8deg); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), left .6s var(--ease);
}
.svc-row:hover { transform: translateY(-2px); border-color: rgba(201, 162, 74, .35); }
.svc-row:hover::before { opacity: 1; left: 80%; }
.svc-row:hover::after { background: linear-gradient(90deg, transparent, rgba(201, 162, 74, .8), transparent); }
.svc-row__name { position: relative; z-index: 1; flex: 0 0 34%; color: var(--light); font-size: clamp(18px, 2.2vw, 24px); transition: color .25s var(--ease); }
.svc-row:hover .svc-row__name { color: #fff; }
.svc-row__desc { position: relative; z-index: 1; flex: 1; color: var(--silver); font-size: 15px; }
.svc-row__ar { position: relative; z-index: 1; color: var(--gold); font-size: 18px; transition: transform .25s var(--ease); }
.svc-row:hover .svc-row__ar { transform: translateX(4px); }

/* ============================================================
   Before/after teaser + Eclipse transition (dark -> light)
   ============================================================ */
.reveal-teaser { position: relative; background: var(--charcoal); padding-block: clamp(56px, 9vw, 120px); }
/* Hard split: glowing gold seam where the dark page meets the light section */
.reveal-teaser::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold);
  box-shadow: 0 0 26px 6px rgba(201, 162, 74, .55), 0 0 64px 16px rgba(201, 162, 74, .22);
  z-index: 2;
}
.reveal-teaser__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.reveal-teaser__title { color: var(--light); margin: 10px 0 16px; }
.reveal-teaser__lead { color: var(--silver); max-width: 42ch; margin: 0 0 26px; }
.reveal-teaser .ba { box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }

/* ============================================================
   Process + CTA (light)
   ============================================================ */
.process, .cta-band { background: var(--light); color: var(--ink); }
.process__title { color: var(--ink); margin: 10px 0 48px; }
/* journey line: a grey to gold rail from uncertainty to certainty */
.process__steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process__steps::before { content: ""; position: absolute; top: 8px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg, var(--line-light), var(--gold)); }
.process__step { position: relative; text-align: center; }
.process__dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--line-light); border: 3px solid var(--light); margin: 0 auto 20px; box-shadow: 0 0 0 1px var(--line-light); }
/* gold marker that follows the cursor and snaps to the nearest dot (js/process-timeline.js) */
.process__marker { position: absolute; top: 0; left: 87.5%; width: 18px; height: 18px; margin: 0; transform: translateX(-50%); border-radius: 50%; background: var(--gold); border: 3px solid var(--light); box-shadow: 0 0 0 1px var(--gold-ink), 0 0 16px 3px rgba(201, 162, 74, .5); transition: left .18s var(--ease); pointer-events: none; z-index: 2; }
.process__step h3 { color: var(--ink); margin: 0 0 6px; font-size: 19px; }
.process__step p { color: var(--muted); margin: 0; font-size: 14px; }
.cta-band { background: var(--light-2); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: var(--ink); margin: 0; max-width: 18ch; }

/* ============================================================
   Footer
   ============================================================ */
.site-foot { background: var(--ink); color: var(--light); padding-block: 48px 28px; }
.site-foot__inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.site-foot__brand img { height: 200px; margin-bottom: 10px; }
.site-foot__brand p { font-family: var(--font-serif); font-style: italic; color: var(--silver); margin: 0; }
.site-foot__nav, .site-foot__social { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.site-foot__nav a:hover, .site-foot__social a:hover { color: var(--gold); }
.site-foot__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-family: var(--font-label); letter-spacing: .1em; font-size: 12px; color: var(--silver); }
/* Mobile: desktop space-between leaves the columns stranded at the left edge.
   Center everything into a single column — brand up top, then nav and social as
   centered rows — so the footer reads as composed rather than scattered. */
@media (max-width: 600px) {
  .site-foot { padding-block: 44px 24px; }
  .site-foot__inner { flex-direction: column; align-items: center; text-align: center; gap: 30px; }
  .site-foot__brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .site-foot__brand img { height: 124px; margin-bottom: 0; }
  .site-foot__nav, .site-foot__social { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px 24px; }
  .site-foot__legal { text-align: center; }
}

/* ============================================================
   Gallery
   ============================================================ */
.page-light { background: var(--light); color: var(--ink); }
.gallery-main { padding-top: 92px; }
.gallery-hero { background: var(--light); padding: clamp(40px, 7vw, 90px) 0 10px; }
.gallery-hero h1 { color: var(--ink); margin: 8px 0 14px; }
.gallery-hero__lead { color: var(--muted); max-width: 56ch; }

.featured__frame { position: relative; border-radius: var(--radius); overflow: hidden; }
.featured__ba { aspect-ratio: 16 / 9; border-radius: 0; }
.featured__ba .ba__label { top: 16px; bottom: auto; }
/* caption sits as a solid bar beneath the image — text never competes with the photo */
.featured__cap { padding: 20px 28px 24px; background: var(--obsidian); }
.featured__tag { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; color: #f0e9da; }
.featured__cap h2 { color: #fff; margin: 6px 0 0; }
.featured__desc { color: var(--muted); max-width: 62ch; margin: 22px 0 0; font-size: 15px; }
/* dim the "before" side of every gallery reveal */
.gallery-main .ba__before, .lightbox__ba .ba__before { filter: grayscale(.5) brightness(.62); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
/* the border is the chip's only boundary, so it has to clear 3:1 on ivory */
.chip { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-light); background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--gold-ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--light); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--obsidian); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(35, 33, 28, .22); }
.card[hidden] { display: none; }
.card .ba { border-radius: 0; }
.card__expand { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 999px; border: none; background: rgba(14, 15, 18, .55); color: var(--light); font-size: 15px; cursor: pointer; backdrop-filter: blur(4px); }
.card__expand:hover { background: var(--gold); color: var(--obsidian); }
.card__cap { padding: 13px 16px 16px; background: var(--obsidian); }
.card__cat { display: block; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; color: #f0e9da; margin-bottom: 3px; }
.card__cap h3 { color: #fff; font-size: 17px; margin: 0; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(8, 9, 11, .82); backdrop-filter: blur(6px); padding: var(--pad); }
.lightbox[hidden] { display: none; }
.lightbox__panel { position: relative; width: min(900px, 100%); background: var(--charcoal); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.lightbox__panel h2 { color: var(--light); margin: 0 0 16px; }
.lightbox__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--light); font-size: 15px; cursor: pointer; }
.lightbox__close:hover { background: var(--gold); color: var(--obsidian); border-color: var(--gold); }
.lightbox__ba { aspect-ratio: 16 / 9; }

/* ============================================================
   Contact
   ============================================================ */
.contact-main { padding-top: 110px; padding-bottom: 80px; }
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact__intro h1 { color: var(--ink); margin: 10px 0 16px; }
.contact__intro p { color: var(--muted); max-width: 42ch; }
.contact__next-h { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--gold-text); margin: 30px 0 0; }
.contact__next { list-style: none; padding: 0; margin: 14px 0 0; max-width: 44ch; display: grid; gap: 13px; }
.contact__next li { padding-left: 22px; position: relative; color: var(--muted); font-size: 14px; }
.contact__next li::before { content: "\2192"; position: absolute; left: 0; color: var(--gold-text); }

/* form grouped into two blocks with deliberate rhythm: tight within, generous between */
.contact-form { display: grid; gap: clamp(36px, 5vw, 52px); }
/* the display:grid above would otherwise beat [hidden]'s display:none on submit */
.contact-form[hidden] { display: none; }
.form-block { display: grid; gap: 20px; }
.form-block__h { display: flex; align-items: center; gap: 16px; margin: 0; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 500; color: var(--gold-text); }
.form-block__h::after { content: ""; flex: 1; height: 1px; background: rgba(35, 33, 28, .12); }
.form-block--details { grid-template-columns: 1fr 1fr; gap: 18px; }
.form-block--details .form-block__h,
.form-block--details [data-field="phone"],
.form-block--details [data-field="message"] { grid-column: 1 / -1; }
.field { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.field legend, .field > label { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--ink); padding: 0; }
.muted-note { text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
/* the field's border is the only thing marking it as an input, so it carries 3:1 */
.contact-form input, .contact-form textarea { font-family: var(--font-body); font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line-field); border-radius: 10px; padding: 13px 15px; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold-ink); outline: none; box-shadow: 0 0 0 3px rgba(125, 97, 28, .28); }
.field.has-error input, .field.has-error textarea { border-color: #b4452f; }
.field.has-error .chips { outline: 1px dashed #b4452f; outline-offset: 6px; border-radius: 6px; }
.field-error { color: #b4452f; font-size: 13px; margin: 2px 0 0; font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.contact-form__submit { justify-self: start; }
.form-success { background: var(--light-2); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.form-success:not([hidden]) { animation: success-rise .7s cubic-bezier(.22, 1, .36, 1) both; }
.form-success h2 { color: var(--ink); margin: 8px 0 10px; }
.form-success p { color: var(--muted); margin: 0; }
/* a quiet gold seal that draws itself, not a confetti burst */
.form-success__check { display: block; width: 54px; height: 54px; margin: 0 0 20px; }
.form-success__ring { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: .35; }
.form-success__tick { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 44; stroke-dashoffset: 44; }
.form-success:not([hidden]) .form-success__tick { animation: tick-draw .55s .3s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes success-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }

/* ============================================================
   Services page
   ============================================================ */
.svc-intro { background: var(--obsidian); color: var(--light); padding: clamp(120px, 16vw, 180px) 0 clamp(40px, 7vw, 90px); }
.svc-intro h1 { color: var(--light); margin: 0; max-width: 16ch; }
.svc-intro p { color: var(--silver); max-width: 60ch; margin: 22px 0 0; font-size: clamp(15px, 1.8vw, 18px); }

.svc-tag { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .22em; font-size: 11px; color: var(--gold); }
.svc-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.svc-list li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.5; }
.svc-list li::before { content: "\2192"; position: absolute; left: 0; color: var(--gold-text); }
.svc-note { display: inline-block; margin-top: 18px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; padding: 7px 13px; border: 1px solid var(--gold-soft); border-radius: 999px; color: var(--gold); }

/* Alternating cinematic chapters: Eclipse gradient down the page */
.achap { padding-block: clamp(48px, 8vw, 104px); scroll-margin-top: 80px; }
.achap__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.achap--flip .achap__visual { order: 2; }
.achap__visual { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background-color: #26241f; background-size: cover; background-position: center; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
/* shimmer skeleton, held until js/media.js confirms the photo is loaded */
.achap__visual::after { content: ""; position: absolute; inset: 0; background-color: #26241f; background-image: linear-gradient(100deg, transparent 30%, rgba(246, 242, 233, .12) 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 1.5s ease-in-out infinite; transition: opacity .5s var(--ease); }
.achap__visual.is-loaded::after { opacity: 0; animation: none; }
@keyframes shimmer { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.achap__name { margin: 14px 0 0; }
.achap__lead { margin: 18px 0 0; font-size: clamp(15px, 1.7vw, 17px); line-height: 1.6; }
.achap--1 { background: var(--obsidian); }
.achap--2 { background: var(--charcoal); }
.achap--3 { background: #3a3730; }
.achap--4 { background: var(--light); }
.achap--1 .achap__name, .achap--2 .achap__name, .achap--3 .achap__name { color: var(--light); }
.achap--1 .achap__lead, .achap--2 .achap__lead, .achap--3 .achap__lead,
.achap--1 .svc-list, .achap--2 .svc-list, .achap--3 .svc-list { color: var(--silver); }
.achap--4 .achap__name { color: var(--ink); }
.achap--4 .achap__lead, .achap--4 .svc-list { color: var(--muted); }

/* ============================================================
   Scroll reveal
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   Estimator (configurator)
   ============================================================ */
.est-section { background: var(--charcoal); padding-block: clamp(48px, 8vw, 96px); }

/* shared control atoms */
.ctl-label { display: block; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .22em; font-size: 11px; color: var(--silver); margin: 0 0 12px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { font-family: var(--font-label); font-size: 14px; letter-spacing: .04em; color: var(--silver); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.seg button:hover { color: var(--light); border-color: rgba(255, 255, 255, .3); }
.seg button[aria-pressed="true"] { color: var(--obsidian); background: var(--gold); border-color: var(--gold); }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 14px; color: var(--silver); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); padding: 10px 16px; border-radius: 10px; cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.toggle:hover { color: var(--light); border-color: rgba(255, 255, 255, .3); }
.toggle__box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--silver); position: relative; transition: background .2s var(--ease), border-color .2s var(--ease); }
.toggle[aria-pressed="true"] { color: var(--light); border-color: var(--gold-soft); background: rgba(201, 162, 74, .1); }
.toggle[aria-pressed="true"] .toggle__box { background: var(--gold); border-color: var(--gold); }
.toggle[aria-pressed="true"] .toggle__box::after { content: "\2713"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--obsidian); font-size: 11px; font-weight: 700; }
.included { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--gold); }
.included::before { content: "\2726"; }

.est input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--gold) 0 var(--fill, 30%), rgba(255, 255, 255, .14) var(--fill, 30%) 100%); cursor: pointer; }
.est input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 3px solid var(--light); box-shadow: 0 0 0 1px var(--gold), 0 0 14px 2px rgba(201, 162, 74, .5); cursor: grab; }
.est input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 3px solid var(--light); }
.est input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }

.est { display: grid; grid-template-columns: 1.15fr .85fr; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.est__controls { background: var(--charcoal); padding: clamp(24px, 4vw, 44px); display: grid; gap: 30px; }
.est__sqft-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.est__sqft-row .ctl-label { margin: 0; }
.est__sqft-val { font-family: var(--font-serif); font-size: 26px; color: var(--light); }
.est__sqft-val span { font-size: 14px; color: var(--silver); font-family: var(--font-label); letter-spacing: .1em; }
.est__estimate { background: var(--obsidian); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; }
.est__label { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .26em; font-size: 11px; color: var(--silver); margin: 0 0 14px; }
/* sized so a 7-digit to 7-digit range stays on one line; nowrap guards the rest */
.est__range { font-family: var(--font-serif); font-weight: 500; color: var(--gold); line-height: 1.05; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.5px; white-space: nowrap; }
.est__range .dash { color: var(--muted-light); padding: 0 4px; }
.est__items { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 12px; font-size: 14px; }
.est__items li { display: flex; justify-content: space-between; gap: 12px; }
.est__items .lbl { color: var(--silver); }
.est__items .amt { color: var(--light-2); font-variant-numeric: tabular-nums; }
.est__items li.is-soft .lbl, .est__items li.is-soft .amt { color: var(--gold); }
.est__items .est__empty { color: var(--muted-light); font-style: italic; }
.est__foot { margin-top: auto; padding-top: 28px; }
.est__disclaimer { font-size: 12px; color: var(--muted-light); margin: 0 0 18px; }
.est .btn { width: 100%; justify-content: center; white-space: nowrap; }

/* quiet "try the estimator" prompt, reused beneath the timeline and on contact */
.est-prompt { margin-top: clamp(32px, 4vw, 48px); font-size: 14.5px; color: var(--muted); }
/* --gold-ink, not --gold: this link only ever sits on ivory, where plain gold
   reads at 2.1:1. */
.est-prompt a { color: var(--gold-ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(125, 97, 28, .4); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
.est-prompt a:hover { text-decoration-color: var(--gold-ink); }
.est-prompt--note { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(35, 33, 28, .12); }

/* ============================================================
   House lynx · cinematic chapter band
   ============================================================ */
/* a slow, almost-imperceptible drift keeps the still feeling alive */
@keyframes lynx-drift { from { transform: scale(1.06); } to { transform: scale(1.12) translateY(-1.5%); } }

.lynx-band { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(360px, 58vh, 560px); display: grid; align-items: end; }
.lynx-band__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.lynx-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 42%; transform-origin: 60% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .lynx-band__media img { animation: lynx-drift 22s ease-in-out infinite alternate; }
}
/* On narrow screens the tall min-height goes near-square and zooms the still in.
   Hold a wide cinematic letterbox instead (cropping top/bottom) so the framing
   reads like the desktop strip rather than a zoomed-in close-up. */
@media (max-width: 640px) {
  .lynx-band { min-height: 0; aspect-ratio: 2 / 1; }
}
/* obsidian wash: heavy at the base for the lockup, soft along the left edge */
.lynx-band__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 11, 14, .55) 0%, rgba(10, 11, 14, 0) 32%, rgba(10, 11, 14, .28) 60%, rgba(10, 11, 14, .9) 100%),
    linear-gradient(90deg, rgba(10, 11, 14, .7) 0%, rgba(10, 11, 14, 0) 55%);
}
.lynx-band__inner { padding-block: clamp(44px, 7vw, 92px); }
.lynx-band__tag { display: inline-block; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .26em; font-size: 11px; color: var(--gold); margin: 0 0 16px; }
.lynx-band__title { color: var(--light); margin: 0; max-width: 18ch; text-shadow: 0 2px 40px rgba(0, 0, 0, .5); }
.lynx-band__lead { color: var(--light-2); max-width: 48ch; margin: 18px 0 0; font-size: clamp(15px, 1.7vw, 17px); }

/* ============================================================
   House lynx · estimator banner (image-only)
   A cinematic exhale beneath the numbers — no copy, just the lynx.
   ============================================================ */
.est-banner { position: relative; overflow: hidden; border-radius: var(--radius); margin-top: 18px; height: clamp(200px, 24vw, 300px); box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.est-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; }
/* a whisper of obsidian at the edges so the still settles onto the dark section */
.est-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 70px 12px rgba(10, 11, 14, .5); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
  .est { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .reveal-teaser__inner { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .process__steps::before { display: none; }
  /* Stacked steps can't host the cursor-following rail marker; rest the gold
     accent statically on the journey's endpoint instead. */
  .process__marker { display: none; }
  .process__step:last-child .process__dot { background: var(--gold); border-color: var(--light); box-shadow: 0 0 0 1px var(--gold-ink), 0 0 16px 3px rgba(201, 162, 74, .5); }
}
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .achap__inner { grid-template-columns: 1fr; }
  .achap--flip .achap__visual { order: 0; }
}
@media (max-width: 720px) {
  .svc-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .svc-row__name { flex: none; }
  /* visibility, not just transform: translating the panel off-screen left its
     links in the tab order, so keyboard users landed on invisible items. */
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 20px; background: rgba(14, 15, 18, .97); padding: 22px var(--pad) 28px; transform: translateY(-130%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s var(--ease); align-items: flex-start; border-top: 1px solid rgba(255, 255, 255, .08); }
  /* room so the active-link underline never touches the next item */
  .nav a { padding-block: 2px; }
  /* set the CTA apart from the links so its pill doesn't crowd the underline above */
  .nav__cta { margin-top: 8px; }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav-toggle { display: flex; }
}
@media (max-width: 480px) {
  .process__steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .form-block--details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
