/* ==========================================================================
   Flossys Building Services LLC — pro1 design system
   Charcoal + cream + gold · Cormorant Garamond (display) + Outfit (body)
   ========================================================================== */

/* Self-hosted fonts (Google Fonts, SIL Open Font License), latin subset */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/outfit-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Metric-matched fallbacks to limit layout shift while web fonts load */
@font-face { font-family: "Cormorant Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos"); size-adjust: 92.3%; ascent-override: 100%; descent-override: 31%; line-gap-override: 0%; }
@font-face { font-family: "Outfit Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"), local("Helvetica"); size-adjust: 97.8%; ascent-override: 102%; descent-override: 27%; line-gap-override: 0%; }
:root {
  /* Color */
  --ink: #0f1011;
  --ink-2: #151719;
  --ink-3: #1c1f22;
  --ink-4: #262a2e;
  --line: rgba(245, 240, 232, 0.1);
  --line-strong: rgba(245, 240, 232, 0.18);
  --cream: #f5f0e8;
  --cream-2: #ece5d8;
  --cream-3: #e2d9c8;
  --text: #ddd6c9;
  --muted: #a9a294;
  --gold: #c9a85c;
  --gold-bright: #dcbd72;
  --gold-deep: #9a7b3c;
  --gold-ink: #6f5621;           /* gold for text on cream (AA) */
  --paper-text: #1b1d1f;
  --paper-muted: #4f4a42;
  --danger: #f2a49b;
  --danger-ink: #a3261a;
  --success: #3d8b6e;

  /* Legacy aliases (legal pages / older markup) */
  --charcoal: var(--ink-3);
  --charcoal-deep: var(--ink);
  --charcoal-soft: var(--ink-4);
  --cream-muted: var(--cream-2);
  --cream-dim: var(--text);

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --font-body: "Outfit", "Outfit Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--2: 0.78rem;
  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.8rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);
  --step-5: clamp(2.6rem, 1.9rem + 3.6vw, 4.8rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* Shape & motion */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1200px;
  --max-narrow: 760px;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--cream); font-weight: 600; line-height: 1.12; letter-spacing: -0.005em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--gold); color: var(--ink); padding: 0.75rem 1.25rem; font-weight: 600; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, var(--max-narrow)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 16, 17, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled { background: rgba(15, 16, 17, 0.94); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); transition: height 0.3s var(--ease); }
.site-header.is-scrolled .header-inner { height: 3.6rem; }
.logo { display: inline-flex; align-items: center; gap: 0.65rem; margin-right: auto; min-width: 0; }
.logo-mark {
  flex: none; width: 1.4rem; height: 1.4rem;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  clip-path: polygon(50% 0%, 100% 34%, 100% 100%, 0% 100%, 0% 34%);
}
.logo-text { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--cream); line-height: 1.1; letter-spacing: 0.01em; min-width: 0; }
/* fix5: full legal name everywhere. Stacked "Flossys" / "BUILDING SERVICES LLC" by default; one line on wide screens. */
.logo-name, .logo-sub { display: block; }
.logo-name { white-space: nowrap; }
.logo-sub { font-family: var(--font-body); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-2); margin-top: 3px; line-height: 1.2; white-space: nowrap; }
@media (min-width: 1100px) {
  .site-header .logo-text { display: flex; align-items: baseline; gap: 0.3em; white-space: nowrap; }
  .site-header .logo-sub { font-family: var(--font-display); font-size: 1em; font-weight: 600; letter-spacing: 0.01em; text-transform: none; color: var(--cream); margin-top: 0; line-height: inherit; }
}

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--text); padding: 0.5rem 0.7rem; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--cream); background: rgba(245, 240, 232, 0.06); }
.nav a.nav-cta, .nav-cta { margin-left: 0.4rem; background: var(--gold); color: var(--ink); font-weight: 600; padding: 0.55rem 1.05rem; }
.nav a.nav-cta:hover, .nav a.nav-cta:focus-visible { background: var(--gold-bright); color: var(--ink); }
.nav-lang { font-size: 0.85rem; color: var(--muted); }

.lang-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; flex: none; }
.lang-toggle button { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; padding: 0.35rem 0.6rem; border-radius: 999px; color: var(--muted); min-width: 2.4rem; min-height: 2rem; }
.lang-toggle button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.lang-toggle button:hover { color: var(--cream); }
.lang-toggle button[aria-pressed="true"]:hover { color: var(--ink); }
.lang-link { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.4rem 0.8rem; flex: none; }
.lang-link:hover { color: var(--cream); border-color: var(--gold); }

.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; border-radius: 999px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); flex: none; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.1rem; height: 1.5px; background: var(--cream); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: var(--s-3) 1.25rem var(--s-5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.05rem; padding: 0.85rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a[aria-current="page"] { background: none; color: var(--gold-bright); }
  .nav a.nav-cta { margin: var(--s-4) 0 0; text-align: center; border-radius: 999px; border: 0; padding: 0.9rem 1rem; }
  .no-js .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; box-shadow: none; padding: 0; }
}
@media (max-width: 520px) {
  .header-inner { gap: 0.6rem; }
  .logo { gap: 0.5rem; }
  .logo-mark { width: 1.25rem; height: 1.25rem; }
  .logo-text { font-size: 1.1rem; }
  .logo-sub { font-size: 0.64rem; letter-spacing: 0.08em; margin-top: 2px; }
  .lang-toggle button { min-width: 2.1rem; padding: 0.3rem 0.45rem; }
  .lang-link { padding: 0.4rem 0.65rem; }
}
@media (max-width: 374px) {
  .logo-sub { letter-spacing: 0.04em; white-space: normal; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.975rem; letter-spacing: 0.01em;
  padding: 0.9rem 1.5rem; min-height: 3rem; border-radius: 999px; border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer; text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px rgba(201, 168, 92, 0.22); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--gold-bright); }
.btn-ghost, .btn-secondary { border-color: rgba(245, 240, 232, 0.35); color: var(--cream); background: rgba(15,16,17,0.2); }
.btn-ghost:hover, .btn-ghost:focus-visible, .btn-secondary:hover { border-color: var(--cream); background: rgba(245,240,232,0.08); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover, .btn-dark:focus-visible { background: var(--ink-4); }
.btn-outline-dark { border-color: rgba(27,29,31,0.35); color: var(--paper-text); }
.btn-outline-dark:hover { border-color: var(--paper-text); background: rgba(27,29,31,0.05); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.03rem; min-height: 3.4rem; }
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.text-link { color: var(--gold-bright); font-weight: 600; display: inline-flex; gap: 0.4rem; align-items: center; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.text-link:hover, .text-link:focus-visible { border-bottom-color: currentColor; }
.section--paper .text-link, .paper .text-link { color: var(--gold-ink); }

/* ---------- Section rhythm ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.section--ink2 { background: var(--ink-2); }
.section--paper { background: var(--cream); color: var(--paper-muted); }
.section--paper h2, .section--paper h3, .section--paper h4 { color: var(--paper-text); }
.section--line { border-top: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--step--2); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: 0.7; }
.section--paper .eyebrow { color: var(--gold-ink); }
.section-intro { max-width: 46rem; margin-bottom: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }
.section-intro--center { margin-inline: auto; text-align: center; }
.section-intro--center .eyebrow { justify-content: center; }
.section-intro h2 { font-size: var(--step-4); margin-bottom: var(--s-4); }
.section-sub, .lead { font-size: var(--step-1); line-height: 1.6; color: var(--text); }
.section--paper .section-sub, .section--paper .lead { color: var(--paper-muted); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: min(92svh, 860px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; margin-top: calc(var(--header-h) * -1); }
.hero-slides { position: absolute; inset: 0; z-index: -2; background: var(--ink-3); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease-in-out; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero-slide.is-active img { animation: kenburns 14s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(15,16,17,0.55) 0%, rgba(15,16,17,0.1) 28%, rgba(15,16,17,0.35) 58%, rgba(15,16,17,0.92) 100%),
  linear-gradient(90deg, rgba(15,16,17,0.7) 0%, rgba(15,16,17,0.05) 65%); }
.hero-content { padding: calc(var(--header-h) + 5rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); max-width: var(--max); }
.hero-content > * { max-width: 44rem; }
.hero h1 { font-size: var(--step-5); line-height: 1.02; margin-bottom: var(--s-4); letter-spacing: -0.015em; }
.tagline { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); color: var(--gold-bright); margin-bottom: var(--s-4); }
.hero-lead { font-size: var(--step-1); color: var(--cream-2); line-height: 1.6; margin-bottom: var(--s-6); max-width: 38rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: var(--s-6); font-size: var(--step--1); color: var(--cream-2); }
.hero-meta li { list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-caption { position: absolute; right: 1.25rem; bottom: 1.1rem; font-size: 0.75rem; color: rgba(245,240,232,0.75); letter-spacing: 0.04em; }
.hero-dots { position: absolute; right: 1.25rem; bottom: 2.6rem; display: flex; gap: 6px; }
.hero-dots span { width: 22px; height: 2px; background: rgba(245,240,232,0.35); transition: background 0.4s; }
.hero-dots span.is-active { background: var(--gold); }
@media (max-width: 640px) { .hero { min-height: 88svh; } .hero-caption, .hero-dots { display: none; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-hero--image { min-height: min(70svh, 620px); display: flex; align-items: flex-end; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,16,17,0.45) 0%, rgba(15,16,17,0.35) 40%, rgba(15,16,17,0.94) 100%); }
.page-hero--plain { background: radial-gradient(1200px 400px at 10% 0%, rgba(201,168,92,0.12), transparent 60%), var(--ink); }
.page-hero h1 { font-size: var(--step-5); max-width: 18ch; margin-bottom: var(--s-4); }
.page-hero .lead { max-width: 42rem; color: var(--cream-2); }
.page-hero .btn-row { margin-top: var(--s-6); }
.status-pill { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 0.8rem; border-radius: 999px; background: rgba(15,16,17,0.6); border: 1px solid var(--line-strong); color: var(--cream); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.status-pill--done::before { background: #6fcf97; }
.status-pill--next::before { background: #8ab4f8; }
.fact-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--s-5); }
.fact-list li { list-style: none; font-size: var(--step--1); padding: 0.4rem 0.8rem; border-radius: 999px; background: rgba(245,240,232,0.07); border: 1px solid var(--line); color: var(--cream-2); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--s-5); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; opacity: 0.5; }
.breadcrumb a { color: var(--cream-2); border-bottom: 1px solid transparent; }
.breadcrumb a:hover { border-bottom-color: currentColor; }
.breadcrumb [aria-current="page"] { color: var(--gold-bright); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--ink-2); border-block: 1px solid var(--line); }
.trust-bar ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-bar li { padding: 1.35rem 1rem; display: flex; gap: 0.8rem; align-items: center; font-size: var(--step--1); color: var(--cream-2); line-height: 1.35; }
.trust-bar li + li { border-left: 1px solid var(--line); }
.trust-bar svg { width: 1.6rem; height: 1.6rem; color: var(--gold); flex: none; }
.trust-bar strong { display: block; color: var(--cream); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 900px) { .trust-bar ul { grid-template-columns: repeat(2, 1fr); } .trust-bar li:nth-child(3) { border-left: 0; } .trust-bar li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .trust-bar li { padding: 1rem 0.5rem; gap: 0.6rem; } }

/* ---------- Split / story ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split h2 { font-size: var(--step-4); margin-bottom: var(--s-5); }
.split p + p { margin-top: var(--s-4); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.value-list { list-style: none; margin-top: var(--s-6); display: grid; gap: var(--s-4); }
.value-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-4); align-items: start; }
.value-list .value-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: rgba(201,168,92,0.12); color: var(--gold); }
.value-list .value-icon svg { width: 1.25rem; height: 1.25rem; }
.value-list h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; margin-bottom: 0.15rem; color: var(--cream); letter-spacing: 0; }
.value-list p { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* Before/after */
.ba-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.ba-duo--stack { grid-template-columns: 1fr; }
.ba-shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.ba-shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ba-shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 0.9rem 0.8rem; font-size: 0.8rem; color: var(--cream); background: linear-gradient(transparent, rgba(15,16,17,0.85)); }
.ba-label { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px; background: rgba(15,16,17,0.75); color: var(--cream); }
.ba-shot--after .ba-label { background: var(--gold); color: var(--ink); }
/* fix1: overlaid caption/label must not swallow taps meant for the lightbox link underneath */
.ba-shot figcaption, .ba-label { pointer-events: none; }
/* fix2: Before/After labels are links to the project's stage gallery; only the label/word itself is clickable,
   the rest of the photo still opens the viewer (fix #2 kept: figcaption and non-link labels stay pointer-events:none). */
.ba-shot a.ba-label, .ba-shot figcaption a { pointer-events: auto; }
a.ba-label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: background 0.2s, color 0.2s; }
a.ba-label:hover, a.ba-label:focus-visible { background: var(--cream); color: var(--ink); }
.ba-shot--after a.ba-label:hover, .ba-shot--after a.ba-label:focus-visible { background: var(--cream); }
a.ba-label:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.stage-link { text-decoration: underline; text-decoration-color: rgba(201,168,92,0.6); text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 600; }
.stage-link:hover, .stage-link:focus-visible { color: var(--gold); text-decoration-color: currentColor; }
.section--paper .stage-link:hover, .section--paper .stage-link:focus-visible { color: var(--gold-ink); }
.ba-shot figcaption .stage-link:hover, .ba-shot figcaption .stage-link:focus-visible { color: var(--gold); }
h3 > .stage-link { text-decoration-thickness: 2px; }
.lightbox-caption .stage-link { color: var(--cream); }
.lightbox-caption .stage-link:hover, .lightbox-caption .stage-link:focus-visible { color: var(--gold); }
.stage-nav { font-size: var(--step--1); color: var(--cream-2); margin: var(--s-3) 0 0; }
.stage-count { color: var(--muted); font-weight: 400; }
.stage-switch { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 var(--s-5); }
.stage-switch-link { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid rgba(245,240,232,0.25); color: var(--cream); font-size: var(--step--1); font-weight: 600; transition: border-color 0.2s, background 0.2s; }
.stage-switch-link:hover, .stage-switch-link:focus-visible { border-color: var(--gold); background: rgba(201,168,92,0.08); }
.stage-empty { border: 1px dashed rgba(245,240,232,0.25); border-radius: 12px; padding: var(--s-5); color: var(--cream-2); max-width: 46rem; }
.stage-empty p + p { margin-top: var(--s-4); }
.filter-stage-links { font-size: var(--step--1); color: var(--cream-2); margin: -0.5rem 0 var(--s-4); }
.card-stages { margin-top: 0.4rem; }
/* fix3: a Before/After-labeled photo (homepage + project pages) and before/after tiles in project galleries are ONE link to
   the project's stage gallery. The link's ::after stretches over the whole figure, so the image, badge and caption all navigate.
   Stage pages and the /projects/ hub grid keep the lightbox. */
.ba-shot--link .ba-shot-link { display: block; }
.tile-stage { position: relative; }
.gallery .tile-stage > a.tile-stage-link { position: static; cursor: pointer; }
.ba-shot--link .ba-shot-link::after, .tile-stage-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.ba-shot-link:focus-visible, .tile-stage-link:focus-visible { outline: none; }
.ba-shot--link:focus-within, .tile-stage:has(.tile-stage-link:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.ba-shot--link img { transition: transform 0.6s var(--ease, ease); }
.ba-shot--link:hover img { transform: scale(1.03); }
.tile-stage:hover figcaption, .tile-stage:focus-within figcaption { color: var(--cream); }
.ba-wide .ba-shot img { aspect-ratio: 4 / 3; }

/* ---------- Steps ---------- */
.how-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); counter-reset: step; }
.how-step { position: relative; padding: var(--s-6); border-radius: var(--radius-lg); background: var(--ink-3); border: 1px solid var(--line); display: flex; flex-direction: column; }
.how-num { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: var(--gold); opacity: 0.9; margin-bottom: var(--s-4); }
.how-step h3 { font-size: var(--step-2); margin-bottom: var(--s-3); }
.how-step p { color: var(--text); font-size: 0.97rem; }
.how-step ul { margin-top: var(--s-4); padding-left: 0; list-style: none; display: grid; gap: 0.5rem; font-size: 0.92rem; color: var(--muted); }
.how-step ul li { padding-left: 1.3rem; position: relative; }
.how-step ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.55rem; height: 1px; background: var(--gold); }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }
.how-disclaimer, .quiz-disclaimer { font-size: 0.85rem; line-height: 1.6; color: var(--muted); }
.how-disclaimer { max-width: 52rem; margin: var(--s-6) auto 0; text-align: center; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } .card-grid--2 { grid-template-columns: 1fr; } }
@media (min-width: 620px) and (max-width: 900px) { .card-grid--auto { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.section--paper .card { background: #fff; border-color: rgba(27,29,31,0.08); color: var(--paper-muted); }
.section--paper .card:hover { box-shadow: var(--shadow-soft); }
.card-media { position: relative; overflow: hidden; background: var(--ink-4); }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card-media img { transform: scale(1.035); }
.card-media .status-pill { position: absolute; top: 0.85rem; left: 0.85rem; }
.card-body { padding: var(--s-5) var(--s-5) var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.card-kicker { font-size: var(--step--2); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.section--paper .card-kicker { color: var(--gold-ink); }
.card h3 { font-size: var(--step-2); }
.card p { font-size: 0.96rem; }
.card .text-link { margin-top: auto; padding-top: var(--s-3); align-self: flex-start; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: rgba(201,168,92,0.12); color: var(--gold); margin-bottom: var(--s-2); }
.section--paper .card-icon { color: var(--gold-ink); background: rgba(154,123,60,0.12); }
.card-icon svg { width: 1.4rem; height: 1.4rem; }

/* Project feature (home) */
.project-feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); margin-bottom: var(--s-5); position: relative; }
.project-feature .card-media img { aspect-ratio: auto; height: 100%; min-height: 360px; }
.project-feature .card-body { padding: clamp(1.5rem, 1rem + 2vw, 3rem); justify-content: center; }
.project-feature h3 { font-size: var(--step-3); }
@media (max-width: 880px) { .project-feature { grid-template-columns: 1fr; } .project-feature .card-media img { min-height: 0; aspect-ratio: 3/2; } }

/* ---------- Trust grid ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(27,29,31,0.1); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(27,29,31,0.1); }
.trust-item { background: var(--cream); padding: var(--s-6); }
.trust-item h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; margin-bottom: var(--s-2); letter-spacing: 0; }
.trust-item p { font-size: 0.95rem; }
.trust-item .card-icon { margin-bottom: var(--s-4); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: 1.35rem 0; font-size: var(--step-1); font-weight: 500; color: var(--cream); min-height: 3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 1.8rem; line-height: 1; color: var(--gold); transition: transform 0.3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 1.5rem; max-width: 46rem; color: var(--text); }
.faq .faq-a p + p { margin-top: var(--s-3); }
.faq a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); background: var(--ink-3); border: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr auto; gap: var(--s-6); align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 300px at 100% 0%, rgba(201,168,92,0.18), transparent 70%); }
.cta-band h2 { font-size: var(--step-3); margin-bottom: var(--s-3); }
.cta-band p { color: var(--text); max-width: 40rem; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Prose (subpages) ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-3); margin: var(--s-7) 0 var(--s-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-2); margin: var(--s-6) 0 var(--s-3); }
.prose p { margin-bottom: var(--s-4); }
.prose ul, .prose ol { margin: 0 0 var(--s-5) 1.2rem; display: grid; gap: 0.5rem; }
.prose a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--cream); font-weight: 600; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 1.5rem); border-radius: var(--radius-lg); background: var(--ink-3); border: 1px solid var(--line); padding: var(--s-6); }
.aside-card h2, .aside-card h3 { font-size: var(--step-2); margin-bottom: var(--s-3); }
.aside-card p { font-size: 0.95rem; margin-bottom: var(--s-4); }
.aside-card dl { display: grid; gap: 0.75rem; margin-bottom: var(--s-5); font-size: 0.92rem; }
.aside-card dt { font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.aside-card dd { color: var(--cream); }
.aside-card .btn { width: 100%; }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } .aside-card { position: static; } }
.note { font-size: 0.85rem; color: var(--muted); border-left: 2px solid var(--gold-deep); padding: 0.25rem 0 0.25rem 1rem; margin-top: var(--s-5); }

/* ---------- Gallery + lightbox ---------- */
.gallery-section + .gallery-section { margin-top: var(--s-7); }
.gallery-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-4); flex-wrap: wrap; }
.gallery-head h2, .gallery-head h3 { font-size: var(--step-3); }
.gallery-head p { color: var(--muted); font-size: var(--step--1); }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s-3); }
.gallery--lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.gallery li { margin: 0; }
.gallery figure { margin: 0; }
.gallery figure > a, .zoom { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s var(--ease), opacity 0.3s; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }
.gallery--plans a { background: #fff; }
.gallery--plans img { object-fit: contain; padding: 0.5rem; }
.gallery figcaption { font-size: 0.82rem; color: var(--muted); padding: 0.55rem 0.15rem 0; line-height: 1.4; }
.zoom-icon { position: absolute; right: 0.6rem; bottom: 0.6rem; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(15,16,17,0.7); display: grid; place-items: center; opacity: 0; transition: opacity 0.3s; color: var(--cream); }
.gallery a:hover .zoom-icon, .gallery a:focus-visible .zoom-icon { opacity: 1; }
.zoom-icon svg { width: 1rem; height: 1rem; }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 9, 10, 0.96); display: none; flex-direction: column; }
.lightbox.is-open { display: flex; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; color: var(--muted); font-size: 0.85rem; }
.lightbox-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 4rem; position: relative; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-stage img.is-plan { background: #fff; }
.lightbox-caption { text-align: center; padding: 0.9rem 1.25rem 1.25rem; color: var(--cream-2); font-size: 0.92rem; min-height: 3.2rem; }
.lb-btn { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: rgba(245,240,232,0.08); color: var(--cream); border: 1px solid var(--line-strong); transition: background 0.2s; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(245,240,232,0.18); }
.lb-btn svg { width: 1.25rem; height: 1.25rem; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 0.75rem; }
.lb-next { right: 0.75rem; }
@media (max-width: 640px) { .lightbox-stage { padding: 0 0.5rem; } .lb-prev, .lb-next { top: auto; bottom: -3.8rem; transform: none; } .lb-prev { left: 1rem; } .lb-next { right: 1rem; } .lightbox-caption { padding-inline: 4.5rem; } }
body.lb-open { overflow: hidden; }

/* Project prev/next */
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.project-nav a { display: flex; flex-direction: column; gap: 0.3rem; padding: var(--s-5); border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-3); transition: border-color 0.25s; }
.project-nav a:hover, .project-nav a:focus-visible { border-color: var(--gold); }
.project-nav span { font-size: var(--step--2); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.project-nav strong { font-family: var(--font-display); font-size: var(--step-2); color: var(--cream); font-weight: 600; }
.project-nav .next { text-align: right; }
@media (max-width: 600px) { .project-nav { grid-template-columns: 1fr; } .project-nav .next { text-align: left; } }

/* Timeline (case study) */
.timeline { list-style: none; border-left: 1px solid var(--line-strong); margin: var(--s-5) 0 var(--s-5) 0.4rem; padding-left: var(--s-5); display: grid; gap: var(--s-5); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1 * var(--s-5) - 5px); top: 0.55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; margin: 0 0 0.2rem; color: var(--cream); letter-spacing: 0; }
.timeline p { margin: 0; font-size: 0.96rem; }

/* ---------- Quiz ---------- */
.quiz-section { background: var(--ink-2); border-top: 1px solid var(--line); }
.quiz-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.quiz-intro h2 { font-size: var(--step-4); margin-bottom: var(--s-4); }
.quiz-sub { font-size: var(--step-1); color: var(--text); margin-bottom: var(--s-5); }
.quiz-points { list-style: none; display: grid; gap: 0.65rem; margin-bottom: var(--s-5); }
.quiz-points li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--cream-2); font-size: 0.97rem; }
.quiz-points svg { width: 1.2rem; height: 1.2rem; color: var(--gold); flex: none; margin-top: 0.2rem; }
.quiz-disclaimer { margin-top: var(--s-4); }
@media (max-width: 960px) { .quiz-wrap { grid-template-columns: 1fr; } }

.quiz-card { background: var(--cream); color: var(--paper-text); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 1rem); }
.progress { height: 6px; background: rgba(27,29,31,0.1); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 999px; transition: width 0.5s var(--ease); }
.step-label { font-size: var(--step--2); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin: var(--s-4) 0 var(--s-2); }
.quiz-panel { min-height: 16rem; }
.question-block { animation: qIn 0.35s var(--ease) both; }
.question-block.is-exiting { animation: qOut 0.2s ease both; }
@keyframes qIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes qOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-6px); } }
.question-text { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; line-height: 1.15; color: var(--paper-text); margin-bottom: var(--s-5); }
.quiz-hint { font-size: 0.85rem; color: var(--paper-muted); margin: calc(-1 * var(--s-3)) 0 var(--s-5); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--s-3); }
.choice-btn {
  min-height: 3.6rem; padding: 0.9rem 1.2rem; border-radius: var(--radius); background: #fff; color: var(--paper-text);
  border: 1.5px solid rgba(27,29,31,0.14); font-size: 1.05rem; font-weight: 500; text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.choice-btn::after { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1.5px solid rgba(27,29,31,0.25); flex: none; transition: all 0.2s; }
.choice-btn:hover { border-color: var(--gold-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(27,29,31,0.08); }
.choice-btn:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.choice-btn.selected { border-color: var(--gold-deep); background: #fbf6ea; }
.choice-btn.selected::after { background: var(--gold-deep); border-color: var(--gold-deep); box-shadow: inset 0 0 0 3px #fbf6ea; }
.quiz-nav { margin-top: var(--s-5); display: flex; justify-content: space-between; align-items: center; }
.back-btn { font-size: 0.92rem; font-weight: 500; color: var(--paper-muted); padding: 0.6rem 0.25rem; min-height: 2.75rem; }
.back-btn:hover:not(:disabled) { color: var(--paper-text); }
.back-btn:disabled { opacity: 0.35; cursor: default; }
.celebrate-block { text-align: center; padding: var(--s-6) 0; }
.celebrate-text { font-size: var(--step-4); color: var(--gold-ink); }

.result-block, .form-success { animation: qIn 0.4s var(--ease) both; }
.result-badge { display: inline-block; font-size: var(--step--2); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.4rem 0.8rem; border-radius: 999px; margin-bottom: var(--s-4); }
.result-badge.ready { background: rgba(61,139,110,0.14); color: #226149; }
.result-badge.talk { background: rgba(154,123,60,0.14); color: var(--gold-ink); }
.result-spark { color: var(--gold-deep); margin-right: 0.5rem; }
.result-headline { font-size: var(--step-3); color: var(--paper-text); margin-bottom: var(--s-3); }
.result-copy { color: var(--paper-muted); margin-bottom: var(--s-5); }
.contact-form { display: grid; gap: var(--s-4); }
.form-group { display: grid; gap: 0.35rem; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--paper-text); }
.form-group input {
  width: 100%; min-height: 3.2rem; padding: 0.8rem 1rem; font: inherit; font-size: 1rem; color: var(--paper-text);
  background: #fff; border: 1.5px solid rgba(27,29,31,0.18); border-radius: var(--radius-sm); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder { color: #8a8378; }
.form-group input:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(201,168,92,0.28); }
.form-group input[aria-invalid="true"] { border-color: var(--danger-ink); }
.field-error { font-size: 0.82rem; color: var(--danger-ink); font-weight: 500; }
.form-hint { font-size: 0.82rem; color: var(--paper-muted); }
.form-disclaimer { font-size: 0.82rem; line-height: 1.5; color: var(--paper-muted); }
.form-acceptance { font-size: 0.85rem; line-height: 1.5; color: var(--paper-muted); }
.form-acceptance a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.form-consent { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1rem; border-radius: var(--radius-sm); background: rgba(27,29,31,0.04); border: 1px solid rgba(27,29,31,0.08); }
.form-consent input[type="checkbox"] { margin-top: 0.15rem; flex-shrink: 0; width: 1.25rem; height: 1.25rem; accent-color: var(--gold-deep); cursor: pointer; }
.form-consent label { font-size: 0.85rem; line-height: 1.5; color: var(--paper-text); cursor: pointer; font-weight: 400; }
.form-consent-error { font-size: 0.85rem; color: var(--danger-ink); font-weight: 500; margin-top: -0.5rem; }
.form-actions .btn { width: 100%; }
.form-error { color: var(--danger-ink) !important; font-weight: 500; }
.restart-link { margin-top: var(--s-4); font-size: 0.9rem; color: var(--paper-muted); text-decoration: underline; text-underline-offset: 3px; min-height: 2.75rem; }
.restart-link:hover { color: var(--paper-text); }
.form-success { text-align: left; }
.success-icon { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: rgba(61,139,110,0.14); color: #226149; font-size: 1.5rem; margin-bottom: var(--s-4); }
.form-success h3 { font-size: var(--step-3); color: var(--paper-text); margin-bottom: var(--s-3); }
.form-success p { color: var(--paper-muted); }
.success-steps-title { margin-top: var(--s-5); }
.success-steps { list-style: none; counter-reset: s; display: grid; gap: var(--s-3); margin: var(--s-3) 0 var(--s-5); padding: var(--s-5); background: rgba(27,29,31,0.04); border-radius: var(--radius); }
.success-steps-title { font-weight: 600; color: var(--paper-text); font-size: 0.95rem; }
.success-steps li { counter-increment: s; display: grid; grid-template-columns: 1.8rem 1fr; gap: 0.6rem; font-size: 0.95rem; color: var(--paper-text); }
.success-steps li::before { content: counter(s); width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: 0.8rem; font-weight: 600; display: grid; place-items: center; }

/* Mobile floating CTA */
.mobile-quiz-fab { display: none; }
@media (max-width: 760px) {
  .mobile-quiz-fab {
    display: inline-flex; position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90;
    justify-content: center; align-items: center; min-height: 3.25rem; border-radius: 999px; background: var(--gold); color: var(--ink);
    font-weight: 700; box-shadow: 0 14px 40px rgba(0,0,0,0.45); transition: transform 0.35s var(--ease), opacity 0.35s;
  }
  .mobile-quiz-fab.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .has-hero:not(.past-hero) .mobile-quiz-fab { transform: translateY(140%); opacity: 0; pointer-events: none; }
  /* fix1: Netlify injects a fixed bottom-right "Powered by Netlify" badge (iframe#nl-badge-frame); keep our fixed controls clear of it */
  body:has(> #nl-badge-frame) .mobile-quiz-fab { bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.25rem); }
}
@media (max-width: 640px) { body:has(> #nl-badge-frame) .lightbox { padding-bottom: 4.5rem; } }

/* ---------- Footer ---------- */
.site-footer { background: #0b0c0d; border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-6); font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; margin-bottom: var(--s-4); }
.footer-brand .logo-text { font-size: 1.35rem; }
.footer-brand .logo-sub { font-size: 0.68rem; margin-top: 4px; }
.footer-tag { color: var(--text); max-width: 22rem; margin-bottom: var(--s-4); }
.footer-area, .footer-insurance { color: var(--muted); font-size: 0.88rem; }
.footer-contact { margin: var(--s-3) 0; }
.footer-contact a { color: var(--gold-bright); font-weight: 500; border-bottom: 1px solid transparent; }
.footer-contact a:hover { border-bottom-color: currentColor; }
.footer-col h2 { font-family: var(--font-body); font-size: var(--step--2); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); margin-bottom: var(--s-4); font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--muted); transition: color 0.2s; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--cream); }
.footer-bottom { padding-top: var(--s-5); display: grid; gap: 0.6rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.footer-links a { color: var(--text); }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.footer-sep { opacity: 0.4; }
.footer-privacy { font-size: 0.82rem; max-width: 48rem; }
.footer-privacy a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.footer-note { font-size: 0.82rem; }
.footer-inner { text-align: left; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .site-footer { padding-bottom: 6rem; } }

/* ---------- Legal pages (content untouched) ---------- */
.legal-main { padding: var(--s-7) 0 var(--s-8); min-height: 60vh; }
.legal-wrap { max-width: 48rem; }
.legal-back { margin-bottom: var(--s-5); font-size: 0.9rem; }
.legal-back a { color: var(--gold); }
.legal-back a:hover, .legal-back a:focus-visible { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.legal-back-bottom { margin-top: 2.5rem; margin-bottom: 0; }
.legal-doc h1 { font-size: var(--step-4); margin-bottom: 1rem; }
.legal-doc h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.legal-doc h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: var(--cream-2); letter-spacing: 0; }
.legal-doc p, .legal-doc li { color: var(--text); font-size: 0.98rem; line-height: 1.7; margin-bottom: 0.85rem; }
.legal-doc ul, .legal-doc ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-doc li { margin-bottom: 0.4rem; }
.legal-doc a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { color: var(--text); margin-bottom: 0.75rem; }
.legal-doc code { font-size: 0.88em; background: rgba(245,240,232,0.06); padding: 0.1em 0.35em; border-radius: 4px; }
.legal-caps { font-size: 0.92rem; letter-spacing: 0.01em; }
.legal-table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.legal-table th, .legal-table td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: top; }
.legal-table th { color: var(--cream); font-weight: 600; background: rgba(245,240,232,0.04); }
.legal-table tr:last-child td { border-bottom: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: var(--s-8) 0; }
.notfound .big { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: 1; color: var(--gold); opacity: 0.85; }
.notfound h1 { font-size: var(--step-4); margin: var(--s-3) 0; }
.notfound .btn-row { justify-content: center; margin-top: var(--s-6); }

/* ---------- Area / service extras ---------- */
.checklist { list-style: none; display: grid; gap: 0.7rem; margin: var(--s-4) 0 var(--s-5); }
.checklist li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; }
.checklist li::before { content: ""; width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; border-radius: 50%; background: rgba(201,168,92,0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a85c' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 0.7rem no-repeat; }
.inline-cta { margin-top: var(--s-6); padding: var(--s-5); border-radius: var(--radius); background: rgba(201,168,92,0.08); border: 1px solid rgba(201,168,92,0.25); }
.inline-cta p { margin-bottom: var(--s-3); color: var(--cream-2); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-slide.is-active img { animation: none; }
}
@media print { .site-header, .mobile-quiz-fab, .lightbox { display: none !important; } body { background: #fff; color: #000; } }

/* Transparent header over the home hero until scrolled */
.has-hero .site-header:not(.is-scrolled) { background: linear-gradient(180deg, rgba(15,16,17,0.7), rgba(15,16,17,0)); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 960px) { .has-hero .site-header.menu-open { background: var(--ink-2); } }

/* pro1 refinements */
.page-hero--image .breadcrumb, .page-hero--image .eyebrow, .page-hero--image .lead { text-shadow: 0 1px 10px rgba(0,0,0,0.65); }
.page-hero--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,16,17,0.7) 0%, rgba(15,16,17,0.25) 60%, rgba(15,16,17,0) 100%); }
.aside-card a[aria-current="page"] { color: var(--gold); font-weight: 600; }

/* pro2: filterable showcase */
.filter-bar { display: grid; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-3); margin-bottom: var(--s-4); }
.filter-bar[hidden] { display: none; }
.filter-group { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s-3); align-items: center; }
.filter-label { font-size: var(--step--2); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.filter-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--cream-2); font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.filter-btn:hover { border-color: var(--gold); color: var(--cream); }
.filter-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.filter-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.filter-count { font-size: 0.75rem; min-width: 1.6rem; padding: 0.1rem 0.4rem; border-radius: 999px; background: rgba(245,240,232,0.1); text-align: center; }
.filter-btn[aria-pressed="true"] .filter-count { background: rgba(15,16,17,0.15); }
.filter-status { font-size: var(--step--1); color: var(--cream-2); margin: 0 0 var(--s-4); }
.filter-empty { text-align: center; padding: var(--s-7) var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); margin-bottom: var(--s-5); }
.filter-empty p { margin-bottom: var(--s-4); color: var(--cream-2); }
.filter-empty[hidden] { display: none; }
.gallery--showcase { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.gallery--showcase .tile[hidden] { display: none; }
.tile--plan figure > a { background: #fff; }
.tile--plan img { object-fit: contain; padding: 0.4rem; }
.gallery--showcase figcaption { display: grid; gap: 0.2rem; }
.tile-meta { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.tile-cap { color: var(--cream-2); }
.tile-link { color: var(--gold); font-weight: 600; font-size: 0.8rem; text-decoration: none; width: fit-content; padding: 0.25rem 0; }
.tile-link:hover, .tile-link:focus-visible { text-decoration: underline; }
.tile-in { animation: tileIn 0.45s var(--ease) both; }
@keyframes tileIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.25rem; margin: 0; }
.card-sublink { position: relative; z-index: 2; color: var(--cream-2); font-weight: 600; font-size: 0.9rem; text-decoration: underline; text-decoration-color: rgba(201,168,92,0.5); text-underline-offset: 3px; padding: 0.35rem 0; }
.card-sublink:hover, .card-sublink:focus-visible { color: var(--gold); }
@media (max-width: 600px) {
  .gallery--showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) 0.6rem; }
  .gallery--showcase .tile-cap { font-size: 0.78rem; }
  .filter-group { grid-template-columns: 1fr; gap: 0.5rem; }
  .filter-bar { padding: var(--s-4); }
  .filter-btn { font-size: 0.86rem; padding: 0.4rem 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { .tile-in { animation: none; } }

/* fix4: owner videos (portrait drive-by). Plays in place, never wrapped in a link; capped height, centred, no stretching. */
.video-list { display: grid; gap: var(--s-5); margin-top: var(--s-5); justify-items: center; }
.video-figure { margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
.video-frame { width: 100%; display: flex; justify-content: center; }
.video-frame video { display: block; width: auto; height: auto; max-width: 100%; max-height: 80vh; background: #000; border-radius: var(--radius); object-fit: contain; }
.video-figure figcaption { max-width: 46ch; text-align: center; font-size: 0.85rem; color: var(--muted); padding: 0.6rem 0.25rem 0; line-height: 1.45; }
.gallery--showcase .tile--video { grid-column: 1 / -1; }
.tile--video .video-frame video { max-height: min(70vh, 640px); }
.gallery--showcase .tile--video figcaption { justify-items: center; text-align: center; max-width: 46ch; }
