/* ═══════════════════════════════════════════════════════════════════════════
   GRAND COM CUSTOM FLOORING — design system
   Direction: "Gallery-grade monochrome craft" — ink-on-paper brand where the
   flooring photography is the only color. Carbon rebuild of the Streamline
   Essentials system (streamlineessentials.com) with the accent family swapped
   to ink black (matches the black & white logo) and a full scroll-reveal
   motion layer added.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* accent family — INK (monochrome brand). Swappable per STREAMLINED.md. */
  --ink-400: #3c362e;             /* accent-on-dark alt (rarely used; white carries dark) */
  --ink-500: #16130f;             /* PRIMARY brand: buttons, eyebrows, links, borders */
  --ink-600: #000000;             /* hover/pressed */

  /* warm greige neutral ramp (verbatim from reference) */
  --slate-50: #faf8f5;
  --slate-100: #f2efea;
  --slate-200: #e6e1d9;
  --slate-300: #d3cabe;
  --slate-400: #a39a8c;
  --slate-500: #7b7264;
  --slate-600: #5b5349;
  --slate-700: #3c362e;
  --slate-800: #292420;
  --slate-900: #1a1611;
  --slate-950: #0f0c09;

  --bg: #ffffff;
  --fg: var(--slate-700);
  --border: var(--slate-200);
  --destructive: #dc4d3a;
  --ring: var(--ink-500);

  --gradient-hero: linear-gradient(to right, rgba(15,12,9,.94), rgba(15,12,9,.74) 45%, rgba(15,12,9,.42));
  --gradient-dark: linear-gradient(180deg, var(--slate-900), var(--slate-800));

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-sans: 'Hanken Grotesk', system-ui, sans-serif;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 80px; --space-10: 112px;

  --radius-sm: 6px; --radius: 8px; --radius-lg: 12px; --radius-2xl: 16px; --radius-full: 9999px;

  /* warm-tinted elevation (never gray/black-on-color) */
  --shadow-sm: 0 1px 2px 0 rgba(26,22,17,.05);
  --shadow-md: 0 4px 6px -1px rgba(26,22,17,.10), 0 2px 4px -2px rgba(26,22,17,.10);
  --shadow-lg: 0 10px 15px -3px rgba(26,22,17,.10), 0 4px 6px -4px rgba(26,22,17,.10);
  --shadow-xl: 0 20px 25px -5px rgba(26,22,17,.12), 0 8px 10px -6px rgba(26,22,17,.10);
  --shadow-card: 0 4px 20px -2px rgba(26,22,17,.08);
  --shadow-card-hover: 0 12px 30px -6px rgba(26,22,17,.16);

  --dur-fast: 200ms;
  --dur-base: 300ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  --nav-h: 76px;
}

/* ── Reset / base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--slate-800); line-height: 1.1; letter-spacing: -0.02em; }
::selection { background: var(--ink-500); color: #fff; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb { background: rgba(123,114,100,.35); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(22,19,15,.6); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--slate-900); color: #fff; font-family: var(--font-display);
  font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: var(--radius);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }
.svg-sprite { position: absolute; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }
.section { padding: var(--space-9) 0; }
@media (max-width: 767px) { .section { padding: 56px 0; } }
/* anchored sections land clear of the sticky navbar (pages with a second sticky
   bar, e.g. the services subnav, override per-id with a larger value) */
.section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.bg-slate50 { background: var(--slate-50); }
.bg-dark { background: var(--gradient-dark); }
.bg-dark h2, .bg-dark h3 { color: #fff; }

.sec-head { max-width: 720px; margin-bottom: var(--space-8); }
.sec-head.center { margin-inline: auto; text-align: center; }
@media (max-width: 767px) { .sec-head { margin-bottom: var(--space-7); } }
.sec-title { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.sec-sub { font-size: clamp(16px, 2vw, 19px); color: var(--slate-500); line-height: 1.6; max-width: 60ch; margin-top: var(--space-4); }
.sec-head.center .sec-sub { margin-inline: auto; }
.bg-dark .sec-sub { color: var(--slate-300); }

.eyebrow {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500);
  margin-bottom: var(--space-3);
}
.bg-dark .eyebrow, .pagehead .eyebrow, .cta-banner .eyebrow, .on-dark .eyebrow,
.eyebrow.on-dark { color: rgba(255,255,255,.72); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.center { text-align: center; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  height: 46px; padding: 0 24px; border-radius: var(--radius);
  border: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink-500); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--ink-600); box-shadow: var(--shadow-lg); }
/* white-on-dark CTA (dark sections, cta-banner, footer) — replaces the old
   inline background/color hack that killed the hover feedback */
.btn-inverse { background: #fff; color: var(--slate-900); box-shadow: var(--shadow-md); }
.btn-inverse:hover { background: var(--slate-100); color: var(--slate-950); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--slate-700); border: 2px solid var(--slate-700); }
.btn-outline:hover { background: var(--slate-700); color: #fff; }
.btn-hero-out {
  background: rgba(255,255,255,.10); color: #fff;
  border: 2px solid rgba(255,255,255,.85); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.btn-hero-out:hover { background: #fff; color: var(--slate-800); }
.btn-ghost { background: none; color: var(--slate-600); }
.btn-ghost:hover { color: var(--ink-500); }
.btn-lg { height: 52px; padding: 0 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink-500);
  transition: color var(--dur-fast) var(--ease-out);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover { color: var(--ink-600); }
.link-arrow:hover svg { transform: translateX(3px); }
.on-dark .link-arrow, .bg-dark .link-arrow { color: #fff; }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
}
/* blur lives on a backdrop layer — backdrop-filter on .navbar itself would make it
   the containing block for the fixed mobile sheet, trapping the menu inside the bar */
.navbar::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: var(--space-4); }
.nav-logo img { height: 52px; width: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: 48px; border-radius: var(--radius-full); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b {
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  letter-spacing: -0.02em; color: var(--slate-800); font-style: normal;
}
.brand-text i {
  font-family: var(--font-display); font-weight: 600; font-size: 10.5px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--slate-500); font-style: normal;
}
.footer .brand-text b { color: #fff; }
.footer .brand-text i { color: var(--slate-400); }
@media (max-width: 380px) { .brand-text i { display: none; } }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--slate-600);
  padding: 8px 13px; border-radius: var(--radius);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--ink-600); }
.nav-links a[aria-current="page"] { color: var(--ink-600); font-weight: 700; }
.nav-cta { margin-left: var(--space-3); }
.nav-toggle { display: none; }
#navtoggle { position: absolute; opacity: 0; pointer-events: none; }
/* the checkbox itself is invisible — surface keyboard focus on the visible burger */
#navtoggle:focus-visible ~ .nav-inner .nav-toggle { outline: 2px solid var(--ring); outline-offset: 3px; }

@media (max-width: 1039px) {
  .nav-links a.nav-cta-mobile { display: block; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1.5px solid var(--border); border-radius: var(--radius-full);
    cursor: pointer; color: var(--slate-800);
    transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  }
  .nav-toggle:active { transform: scale(.94); }
  .nav-toggle .i-close,
  #navtoggle:checked ~ .nav-inner .nav-toggle .i-menu,
  html.nav-open .nav-toggle .i-menu { display: none; }
  #navtoggle:checked ~ .nav-inner .nav-toggle .i-close,
  html.nav-open .nav-toggle .i-close { display: block; }
  /* full-screen sheet (the iPhone moment) */
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 59;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: var(--space-5) 20px calc(var(--space-6) + env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out),
                visibility 0s linear var(--dur-base);
    overflow-y: auto;
  }
  #navtoggle:checked ~ .nav-inner .nav-links,
  #navtoggle:checked ~ .nav-links,
  html.nav-open .nav-links {
    opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s;
  }
  .nav-links a {
    font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--slate-800);
    padding: 18px 4px; border-radius: 0; border-bottom: 1px solid var(--border);
  }
  #navtoggle:checked ~ .nav-inner .nav-links a,
  html.nav-open .nav-links a { animation: sheetItem 420ms var(--ease-out) backwards; }
  #navtoggle:checked ~ .nav-inner .nav-links a:nth-child(2),
  html.nav-open .nav-links a:nth-child(2) { animation-delay: 40ms; }
  #navtoggle:checked ~ .nav-inner .nav-links a:nth-child(3),
  html.nav-open .nav-links a:nth-child(3) { animation-delay: 80ms; }
  #navtoggle:checked ~ .nav-inner .nav-links a:nth-child(4),
  html.nav-open .nav-links a:nth-child(4) { animation-delay: 120ms; }
  #navtoggle:checked ~ .nav-inner .nav-links a:nth-child(5),
  html.nav-open .nav-links a:nth-child(5) { animation-delay: 160ms; }
  #navtoggle:checked ~ .nav-inner .nav-links a:nth-child(6),
  html.nav-open .nav-links a:nth-child(6) { animation-delay: 200ms; }
  .nav-links .nav-cta {
    margin: var(--space-5) 0 0; border: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 17px; color: #fff; height: 54px; border-radius: var(--radius-lg);
  }
  body:has(#navtoggle:checked) { overflow: hidden; }
  html.nav-open, html.nav-open body { overflow: hidden; }
}
@keyframes sheetItem { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 1040px) { .nav-links .nav-cta { color: #fff; } }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; display: flex; align-items: center; min-height: min(88vh, 780px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: clamp(96px, 14vh, 160px) 0; }
.hero h1 {
  color: #fff; font-size: clamp(38px, 6.4vw, 64px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.02;
}
.hero h1 .accent { color: var(--slate-300); }
.hero p.lead { color: rgba(255,255,255,.88); font-size: clamp(17px, 2.4vw, 21px); margin-top: var(--space-5); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--space-6); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-6); margin-top: var(--space-7); }
.hero-trust li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: 14.5px; font-weight: 500; }
.hero-trust svg { width: 20px; height: 20px; color: #fff; flex-shrink: 0; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.ctile {
  background: #fff; border: 2px solid var(--ink-500); border-radius: var(--radius-2xl);
  padding: 32px 26px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.ctile:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.ctile-icon {
  width: 72px; height: 72px; border-radius: var(--radius-2xl); background: var(--slate-100);
  display: flex; align-items: center; justify-content: center; color: var(--slate-600);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.ctile-icon svg { width: 34px; height: 34px; }
.ctile:hover .ctile-icon { background: var(--slate-900); color: #fff; }
.ctile h3 { font-size: 21px; font-weight: 700; }
.ctile p { font-size: 15px; color: var(--slate-600); flex: 1; }

.fcard {
  background: #fff; border-radius: var(--radius-2xl); padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.fcard-icon {
  width: 60px; height: 60px; border-radius: var(--radius-2xl); background: var(--slate-100);
  color: var(--ink-500); display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.fcard-icon svg { width: 30px; height: 30px; }
.fcard h3 { font-size: 20px; font-weight: 700; margin-bottom: var(--space-2); }
.fcard p { font-size: 15px; color: var(--slate-500); }
.fcard .step-num {
  font-family: var(--font-display); font-weight: 900; font-size: 15px;
  letter-spacing: .08em; color: var(--slate-400); display: block; margin-bottom: var(--space-2);
}

.pcard {
  background: #fff; border: 1px solid var(--slate-300); border-radius: var(--radius-2xl);
  overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.pcard-img { aspect-ratio: 16/11; background: var(--slate-100); overflow: hidden; position: relative; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-base) var(--ease-out); }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--ink-500); color: #fff; font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  padding: 5px 12px; border-radius: var(--radius-full);
}
.pcard-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard-cat { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-500); }
.pcard h3 { font-size: 19px; font-weight: 700; transition: color var(--dur-base) var(--ease-out); }
.pcard:hover h3 { color: var(--slate-500); }
.pcard p { font-size: 14.5px; color: var(--slate-600); flex: 1; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600; color: var(--slate-600);
  background: var(--slate-100); padding: 5px 10px; border-radius: var(--radius-full);
}

/* projects/portfolio card */
.proj {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-2xl);
  overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.proj:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.proj-img { aspect-ratio: 4/3; background: var(--slate-100); overflow: hidden; position: relative; }
.proj-img img, .proj-img video { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-base) var(--ease-out); }
.proj:hover .proj-img img, .proj:hover .proj-img video { transform: scale(1.05); }
.proj-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: #fff;
  background: rgba(15,12,9,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: 6px 12px; border-radius: var(--radius-full);
}
.proj-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1;
}
.proj-play span {
  width: 62px; height: 62px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 22px rgba(15,12,9,.35), inset 0 0 0 1px rgba(15,12,9,.08);
  display: flex; align-items: center; justify-content: center; color: var(--ink-500);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.proj-play svg { width: 24px; height: 24px; }
.proj:hover .proj-play span { transform: scale(1.08); background: var(--ink-500); color: #fff; }
.proj-body { padding: var(--space-5); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj h3 { font-size: 20px; font-weight: 700; }
.proj-meta { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--slate-500); }
.proj-meta svg { width: 15px; height: 15px; color: var(--ink-500); }
.proj p { font-size: 14.5px; color: var(--slate-600); flex: 1; }
.proj-materials { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--border); padding-top: var(--space-4); }

/* ── Full-range grid (services) ───────────────────────────────────────────── */
.range-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px 32px; }
.range-grid li { display: flex; gap: 12px; font-size: 15.5px; color: var(--slate-600); }
.range-grid .ic {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: var(--radius-full);
  background: var(--slate-100); display: flex; align-items: center; justify-content: center;
  color: var(--ink-500); margin-top: 1px;
}
.range-grid .ic svg { width: 15px; height: 15px; }
.range-grid b { color: var(--slate-800); font-weight: 600; }
@media (max-width: 900px) { .range-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .range-grid { grid-template-columns: 1fr; } }

/* ── FAQ (contact) ────────────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 22px; font-family: var(--font-display); font-weight: 700;
  font-size: 16.5px; color: var(--slate-800);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-500); transition: transform var(--dur-fast) ease; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list details p { padding: 0 22px 20px; font-size: 15.5px; color: var(--slate-600); }

/* ── Checklist ────────────────────────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; font-size: 15.5px; color: var(--slate-600); }
.checklist .ic {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: var(--radius-full);
  background: var(--slate-100); display: flex; align-items: center; justify-content: center;
  color: var(--ink-500); margin-top: 2px;
}
.checklist .ic svg { width: 15px; height: 15px; }
.checklist b { color: var(--slate-800); font-weight: 600; }
.bg-dark .checklist li { color: var(--slate-300); }
.bg-dark .checklist b { color: #fff; }
.bg-dark .checklist .ic { background: rgba(255,255,255,.1); color: #fff; }

/* ── Split section ────────────────────────────────────────────────────────── */
.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.reverse .split-media { order: 2; } }
.split-media { position: relative; }
.frame { aspect-ratio: 4/3; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-card); background: var(--slate-100); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.split-badge {
  position: absolute; bottom: -22px; right: -10px;
  background: var(--ink-500); color: #fff; border-radius: var(--radius-2xl);
  padding: 20px 24px; box-shadow: var(--shadow-lg); max-width: 210px;
}
.split-badge .big { font-family: var(--font-display); font-weight: 900; font-size: 34px; letter-spacing: -0.03em; line-height: 1; display: block; }
.split-badge .small { font-size: 13px; opacity: .85; display: block; margin-top: 4px; }
@media (max-width: 520px) {
  .split-badge { position: static; margin: var(--space-4) auto 0; text-align: center; }
}

/* ── Stats band ───────────────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: rgba(255,255,255,.1); border-radius: var(--radius-2xl); overflow: hidden;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: var(--slate-900); padding: 36px 24px; text-align: center; }
.stat-num {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 6vw, 56px);
  letter-spacing: -0.03em; line-height: 1; color: #fff;
}
.stat-label { font-size: 14.5px; color: var(--slate-300); margin-top: var(--space-2); }

/* ── Comparison table ─────────────────────────────────────────────────────── */
.compare-wrap { border-radius: var(--radius-2xl); box-shadow: var(--shadow-card); border: 1px solid var(--border); overflow-x: auto; background: #fff; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 22px; font-size: 15px; text-align: left; border-bottom: 1px solid var(--border); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare thead th { font-family: var(--font-display); font-weight: 700; background: var(--slate-50); color: var(--slate-800); }
.compare thead th.us { background: var(--ink-500); color: #fff; }
.compare thead th.us .kicker { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.compare td.us { background: var(--slate-50); font-weight: 600; color: var(--slate-800); }
.compare td { color: var(--slate-600); }
.compare .yes, .compare .no { display: inline-flex; align-items: center; gap: 8px; }
.compare .yes svg { width: 18px; height: 18px; color: var(--ink-500); }
.compare .no svg { width: 18px; height: 18px; color: var(--slate-400); }
/* under 640px the table linearizes: each row becomes a block with the two
   columns labeled inline — nothing side-scrolls at 390px */
@media (max-width: 639px) {
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .compare tr { display: block; padding: 16px 18px; border-bottom: 1px solid var(--border); }
  .compare tr:last-child { border-bottom: none; }
  .compare th[scope="row"], .compare td { display: block; padding: 0; border-bottom: none; }
  .compare th[scope="row"] { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 8px; }
  .compare td { position: relative; padding-left: 94px; font-size: 14.5px; min-height: 20px; }
  .compare td + td { margin-top: 8px; }
  .compare td::before { position: absolute; left: 0; top: 2px; width: 86px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .compare td.us { background: none; }
  .compare td.us::before { content: "Grand Com"; color: var(--ink-500); }
  .compare td:not(.us)::before { content: "Rushed job"; color: var(--slate-500); }
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.faq details[open] { box-shadow: var(--shadow-card); border-color: var(--slate-300); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 22px 24px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--slate-800);
  transition: color var(--dur-fast) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--slate-500); }
.faq summary svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--ink-500); transition: transform var(--dur-base) var(--ease-out); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .faq-body { padding: 0 24px 24px; font-size: 15.5px; color: var(--slate-600); line-height: 1.7; max-width: 70ch; }

/* ── CTA banner / pagehead ────────────────────────────────────────────────── */
.cta-banner {
  position: relative; background: var(--slate-900); border-radius: var(--radius-2xl);
  padding: clamp(40px, 6vw, 72px); text-align: center; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.10), transparent 60%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: #fff; }
.cta-banner p { color: var(--slate-300); font-size: clamp(16px, 2vw, 19px); max-width: 56ch; margin: var(--space-4) auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: var(--space-6); }

.pagehead {
  position: relative; background: var(--slate-900); padding: clamp(56px, 9vw, 96px) 0; overflow: hidden;
}
.pagehead::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.08), transparent 55%);
}
.pagehead .container { position: relative; z-index: 1; max-width: 1240px; }
.pagehead-content { max-width: 760px; }
.pagehead h1 { color: #fff; font-size: clamp(32px, 5.5vw, 54px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.pagehead .lead { color: var(--slate-300); font-size: clamp(16px, 2.2vw, 19px); margin-top: var(--space-4); max-width: 60ch; }
.breadcrumb {
  display: flex; align-items: center; gap: 6px; margin-bottom: var(--space-5);
  font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--slate-400);
}
.breadcrumb a { transition: color var(--dur-fast) var(--ease-out); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; }

/* ── Sticky sub-nav ───────────────────────────────────────────────────────── */
.subnav {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.subnav .container { display: flex; flex-wrap: wrap; gap: 10px; padding-block: var(--space-4); }
.subnav .btn-outline { height: 40px; border-width: 1.5px; font-size: 14px; padding: 0 18px; }
.subnav .btn-outline svg { width: 17px; height: 17px; }
.subnav .btn-outline.active { background: var(--slate-700); color: #fff; }
/* under 640px the subnav rides as ONE row that scrolls sideways instead of
   wrapping into a tall sticky block; chips hit the 44px mobile tap minimum */
@media (max-width: 639px) {
  .subnav .container {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; scroll-snap-type: x proximity; padding-right: 36px;
  }
  .subnav .container::-webkit-scrollbar { display: none; }
  .subnav .btn-outline { flex-shrink: 0; height: 44px; scroll-snap-align: start; }
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card); padding: clamp(24px, 4vw, 40px);
}
.form-card > h2 { font-size: 26px; font-weight: 800; }
.form-reassure { font-size: 14.5px; color: var(--slate-500); margin: var(--space-2) 0 var(--space-6); }
.form-grid { display: grid; gap: var(--space-5); }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .col-2 { grid-column: span 2; } }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--slate-700); margin-bottom: 7px; }
.field .req { color: var(--destructive); }
.field .hint { font-size: 13px; color: var(--slate-500); margin-top: 6px; } /* slate-400 was ≈3:1 on white, below AA */
.field input, .field select, .field textarea {
  width: 100%; font-size: 15px; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--slate-800);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink-500); box-shadow: 0 0 0 3px rgba(22,19,15,.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237b7264' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form-note { font-size: 13.5px; color: var(--slate-500); margin-top: var(--space-4); } /* slate-400 was ≈3:1 on white, below AA */
.form-status { display: none; margin-top: var(--space-4); padding: 14px 16px; border-radius: var(--radius); font-size: 14.5px; font-weight: 500; }
.form-status.ok { display: block; background: var(--slate-100); color: var(--slate-800); border: 1px solid var(--slate-300); }
.form-status.err { display: block; background: rgba(220,77,58,.08); color: var(--destructive); border: 1px solid rgba(220,77,58,.35); }

/* option cards (≤5 options → exposed cards, per house rules) */
.optcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.optcard { position: relative; }
.optcard input { position: absolute; opacity: 0; pointer-events: none; }
.optcard span {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px 10px;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--slate-600);
  cursor: pointer; background: #fff;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.optcard svg { width: 26px; height: 26px; }
.optcard span:hover { border-color: var(--slate-400); }
.optcard span:active { transform: scale(.97); }
.optcard input:checked + span { border-color: var(--ink-500); background: var(--slate-900); color: #fff; }
.optcard input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 3px; }

/* wizard progress */
.wizard-progress { display: flex; gap: 8px; margin-bottom: var(--space-3); }
.wizard-progress span { height: 4px; flex: 1; border-radius: var(--radius-full); background: var(--slate-200); overflow: hidden; position: relative; }
.wizard-progress span::after {
  content: ""; position: absolute; inset: 0; background: var(--ink-500);
  transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out);
}
.wizard-progress span.done::after { transform: scaleX(1); }
.wizard-step-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500);
  margin-bottom: var(--space-5);
}
.wizard-pane[hidden] { display: none; }
.wizard-nav { display: flex; justify-content: space-between; gap: var(--space-4); border-top: 1px solid var(--border); padding-top: var(--space-5); margin-top: var(--space-6); }

/* ── Info / hours cards (contact) ─────────────────────────────────────────── */
.contact-grid { display: grid; gap: var(--space-6); }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.info-card { background: var(--slate-900); border-radius: var(--radius-2xl); padding: clamp(28px, 4vw, 40px); }
.info-card h3 { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: var(--space-5); }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.info-row .chip {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--radius-2xl);
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: #fff;
}
.info-row .chip svg { width: 22px; height: 22px; }
.info-row .lbl { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-400); display: block; }
.info-row .val { color: #fff; font-size: 16px; }
.info-row a.val { transition: color var(--dur-fast) var(--ease-out); }
.info-row a.val:hover { color: var(--slate-300); }
.hours-card { background: var(--slate-50); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: clamp(24px, 3vw, 32px); margin-top: var(--space-5); }
.hours-card h3 { font-size: 18px; font-weight: 700; margin-bottom: var(--space-3); }
.hours-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.hours-row:last-of-type { border-bottom: none; }
.hours-row .day { color: var(--slate-600); font-weight: 500; }
.hours-row .time { font-family: var(--font-display); font-weight: 600; color: var(--slate-800); }

/* ── Before/after slider ──────────────────────────────────────────────────── */
.ba { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-card); touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff;
  box-shadow: 0 0 12px rgba(15,12,9,.5); cursor: ew-resize;
}
.ba-handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: var(--radius-full); background: #fff; color: var(--slate-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--shadow-lg);
}
.ba-tag {
  position: absolute; top: 14px; font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: #fff;
  background: rgba(15,12,9,.72); backdrop-filter: blur(4px); padding: 6px 12px; border-radius: var(--radius-full);
  z-index: 2; pointer-events: none;
}
.ba-tag.before { left: 14px; } .ba-tag.after { right: 14px; }

/* ── Filter bar (portfolio) ───────────────────────────────────────────────── */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: var(--space-6); }
.filterbar .flabel { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-500); margin-right: 4px; }
.fchip {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--slate-600);
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-full);
  padding: 8px 18px; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.fchip:hover { border-color: var(--slate-500); color: var(--slate-800); }
.fchip:active { transform: scale(.96); }
.fchip.active { background: var(--ink-500); border-color: var(--ink-500); color: #fff; box-shadow: var(--shadow-md); }
.fcount { margin-left: auto; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); }
/* phone ergonomics: ≥44px chips, result count on its own row */
@media (max-width: 767px) {
  .fchip { min-height: 44px; padding: 10px 16px; }
  .filterbar { gap: 8px; }
  .filterbar .fcount { flex-basis: 100%; margin-left: 0; }
}
/* gallery fallback — visible only while the grid is empty (loading / no-JS);
   requires the grid element to stay literally empty in the markup */
.gallery-fallback { display: none; }
#work-grid:empty + .gallery-fallback { display: block; max-width: 60ch; }

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(15,12,9,.92);
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; animation: lbIn 300ms var(--ease-out) backwards; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox img, .lightbox video { max-width: min(1100px, 94vw); max-height: 86vh; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); animation: lbMedia 300ms var(--ease-out) backwards; }
@keyframes lbMedia { from { opacity: 0; transform: scale(.96); } }
.lightbox-close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px;
  width: 46px; height: 46px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.5); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-close:active { transform: scale(.94); }
.lightbox-close svg { width: 22px; height: 22px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: var(--slate-800); color: var(--slate-400); padding: var(--space-9) 0 var(--space-7); }
.footer-grid { display: grid; gap: var(--space-7); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2.2fr 1fr 1fr 1.4fr; } }
.footer-logo img { height: 52px; width: 52px; border-radius: var(--radius-full); }
.footer-blurb { font-size: 15px; max-width: 38ch; margin-top: var(--space-4); }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-5); }
.footer-social a {
  width: 42px; height: 42px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.07); color: var(--slate-300);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.footer-social a svg { width: 19px; height: 19px; }
.footer-social a:hover { background: #fff; color: var(--slate-900); }
.footer-social a:active { transform: scale(.94); }
.footer h4 { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: var(--space-5); }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 15px; transition: color var(--dur-fast) var(--ease-out); }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: #fff; flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid var(--slate-700); margin-top: var(--space-8); padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  font-size: 13.5px; color: var(--slate-500);
}
.footer-bottom a:hover { color: #fff; }

/* ── Flagship feature card (services page) ────────────────────────────────── */
/* 2px ink-border split card built from existing tokens — media pane on slate-50,
   product/photo left, body right (stacks media-first on mobile). */
.product-feature {
  display: grid; background: #fff;
  border: 2px solid var(--ink-500); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card); overflow: hidden;
}
@media (min-width: 880px) { .product-feature { grid-template-columns: 1.05fr .95fr; } }
.product-feature .pf-media { position: relative; background: var(--slate-100); min-height: 300px; overflow: hidden; }
.product-feature .pf-media img { width: 100%; height: 100%; object-fit: cover; }
.pf-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--ink-500); color: #fff; font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--radius-full);
}
.product-feature .pf-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: var(--space-4); }
.product-feature .pf-body h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.03em; }
.product-feature .pf-body p { font-size: 16px; color: var(--slate-600); }
.product-feature .pf-body .btn { align-self: flex-start; margin-top: var(--space-2); }

/* ═══════════════════════════════════════════════════════════════════════════
   MOTION LAYER — scroll reveals + word-by-word headline reveals
   (Requires assets/js/motion.js; everything degrades gracefully without it.)
   ═══════════════════════════════════════════════════════════════════════════ */

/* scroll reveal: elements with [data-reveal] start hidden ONLY once JS has
   confirmed it's running (html.js) — no-JS visitors see everything. */
html.js [data-reveal] {
  opacity: 0; transform: translateY(24px); filter: blur(8px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].revealed { opacity: 1; transform: translateY(0); filter: blur(0); }

/* word-by-word headline: motion.js wraps words in spans */
html.js [data-words] .w {
  display: inline-block; opacity: 0; transform: translateY(.55em); filter: blur(6px);
  animation: wordIn 600ms var(--ease-out) forwards;
  animation-delay: calc(var(--wi) * 70ms + var(--words-delay, 0ms));
}
@keyframes wordIn { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

/* stat counter pop */
html.js .stat-num[data-count] { transition: opacity 300ms var(--ease-out); }

/* hero photo slow settle (Ken Burns, marketing surface only) */
html.js .hero-bg img, html.js .hero-bg video { animation: heroSettle 1400ms var(--ease-out) backwards; }
@keyframes heroSettle { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ── Reduced motion: kill everything ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  html { scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; filter: none; }
  html.js [data-words] .w { opacity: 1; transform: none; filter: none; animation: none; }
}

/* "Show all" reveal button under the capped work grid */
.gallery-more { display: flex; margin: var(--space-6) auto 0; }
