/* ==========================================================================
   CHR Builds — tokens
   Brand colors sampled directly from the original supplied CHR logo (navy/gold version):
     Navy   #0C203C  (darkest point of the CHR lettermark gradient)
     Steel  #4A5D74  (mid-tone of the same gradient)
     Gold   #B08D57  (the "CUSTOM HOMES RENOVATIONS LLC" wordmark color)
   Cinematic direction: one continuous navy-to-black field for the whole page,
   gold used as the "light source" (CTAs, the decision thread, focus/selection).
   ========================================================================== */
:root {
  color-scheme: dark;

  --color-ink: #05090F;
  --color-ink-2: #081424;
  --color-navy: #0C203C;
  --color-steel: #4A5D74;

  --color-gold: #B08D57;
  --color-gold-bright: #CDAA72;
  --color-gold-soft: rgba(176, 141, 87, 0.14);
  --color-gold-glow: rgba(176, 141, 87, 0.45);

  --color-text: #EEF1F5;
  --color-text-muted: #A9B3C1;
  --color-text-dim: #8794A5;
  --color-link: #D9BF8F;

  --surface-1: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.22);

  --color-error: #F2A99F;
  --color-error-bg: rgba(196, 72, 58, 0.16);
  --color-error-border: #D8715F;

  --color-focus: #FFFFFF;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --container-width: 1180px;
  --radius: 6px;
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 0 0 1px rgba(176, 141, 87, 0.55), 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 36px rgba(176, 141, 87, 0.16);

  --thread-offset: 30px;

  --transition-fast: 0.18s ease;
  --transition-base: 0.3s ease;
}

/* ==========================================================================
   Reset & base — a single flowing field, lit from the top right like a set
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--color-ink); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 60% 22% at 82% 4%, rgba(176, 141, 87, 0.16), transparent 70%),
    radial-gradient(ellipse 55% 18% at 8% 30%, rgba(74, 93, 116, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 16% at 92% 55%, rgba(176, 141, 87, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 16% at 15% 90%, rgba(176, 141, 87, 0.12), transparent 70%),
    linear-gradient(180deg, var(--color-ink) 0%, var(--color-ink-2) 14%, var(--color-navy) 42%, #0A1B33 72%, var(--color-ink) 100%);
}

/* Fine film grain over the whole frame */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 950;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  line-height: 1.12;
  margin: 0 0 0.6em;
  color: #FFFFFF;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 96;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 1em; color: var(--color-text); }

a { color: var(--color-link); }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 128px 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-gold);
  margin: 0 0 1.2em;
}

.body-lg { font-size: 1.18rem; color: var(--color-text-muted); }

.supporting-line { color: var(--color-text-dim); font-size: 0.95rem; }

.section-intro {
  max-width: 620px;
  color: var(--color-text-muted);
  font-size: 1.08rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-gold);
  color: var(--color-ink);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Focus — bright white ring reads on navy and on gold alike
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Reveal uses the individual `translate` property so hover `transform`s on the same
   element still work; the stagger delay (--rd) applies only to the entrance. */
.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition-property: opacity, translate, transform, box-shadow, border-color, background, color;
  transition-duration: 1s, 1.1s, 0.3s, 0.3s, 0.3s, 0.3s, 0.18s;
  transition-timing-function: ease, cubic-bezier(0.2, 0.7, 0.2, 1), ease, ease, ease, ease, ease;
  transition-delay: var(--rd, 0s), var(--rd, 0s), 0s, 0s, 0s, 0s, 0s;
}
.js .reveal.is-visible { opacity: 1; translate: none; }
.js .section-intro.reveal { --rd: 0.25s; }

/* ==========================================================================
   The decision thread — one line down the left gutter, from the hero to the
   estimate, lighting up as the visitor scrolls. Nodes mark each decision.
   ========================================================================== */
main { position: relative; }

main::before,
main::after {
  content: '';
  position: absolute;
  left: calc(max(0px, (100% - var(--container-width)) / 2) + 24px - var(--thread-offset) - 0.5px);
  top: var(--thread-top, 0px);
  width: 1px;
  pointer-events: none;
  z-index: 1;
}
main::before {
  height: var(--thread-height, 0px);
  background: linear-gradient(180deg, rgba(176, 141, 87, 0.05), rgba(176, 141, 87, 0.28) 8%, rgba(176, 141, 87, 0.28) 92%, rgba(176, 141, 87, 0.05));
}
main::after {
  height: var(--thread-fill, 0px);
  background: linear-gradient(180deg, rgba(205, 170, 114, 0.2), var(--color-gold-bright));
  box-shadow: 0 0 10px rgba(205, 170, 114, 0.6);
}

.flow-node {
  display: block;
  position: relative;
  height: 0;
  --node-top: 16px;
}
.flow-node--eyebrow { --node-top: 2px; }
.flow-node--block { --node-top: -8px; }
.flow-node::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--thread-offset) - 5.5px);
  top: var(--node-top);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-ink);
  border: 1.5px solid rgba(176, 141, 87, 0.55);
  z-index: 2;
  transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.flow-node.is-lit::before {
  background: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  box-shadow: 0 0 0 5px rgba(176, 141, 87, 0.14), 0 0 20px 4px var(--color-gold-glow);
}

/* ==========================================================================
   Buttons — gold is the light source
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-gold);
  color: var(--color-ink);
  box-shadow: 0 10px 30px rgba(176, 141, 87, 0.18);
}
.btn-primary:hover {
  background: var(--color-gold-bright);
  box-shadow: 0 12px 36px rgba(205, 170, 114, 0.32);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--color-text); background: rgba(255, 255, 255, 0.06); }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--border-strong);
  width: 100%;
}
.btn-outline:hover { border-color: var(--color-gold); color: var(--color-gold-bright); }
.btn-outline[aria-pressed="true"] {
  background: var(--color-gold);
  color: var(--color-ink);
  border-color: var(--color-gold);
  font-weight: 700;
}

.btn-block { width: 100%; }

/* ==========================================================================
   Image placeholders — dark frames until real photography lands
   ========================================================================== */
.img-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.04), transparent 70%),
    repeating-linear-gradient(135deg, #0D1B2E, #0D1B2E 14px, #102238 14px, #102238 28px);
  border: 1px dashed rgba(176, 141, 87, 0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--color-text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  overflow: hidden;
  font-family: var(--font-body);
}

.img-placeholder-tall { aspect-ratio: 3 / 4; }

button.img-placeholder {
  cursor: pointer;
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}
button.img-placeholder:hover { box-shadow: var(--glow-gold); transform: translateY(-3px); }

.service-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.service-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.service-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 9, 15, 0.55));
}

.photo-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(5, 9, 15, 0.78);
  color: #fff;
  border: 1px solid rgba(176, 141, 87, 0.45);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 3px;
  z-index: 2;
}

/* ==========================================================================
   01. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: linear-gradient(180deg, rgba(5, 9, 15, 0.98), rgba(5, 9, 15, 0.95));
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), background var(--transition-base);
}
.site-header.is-scrolled {
  background: rgba(5, 9, 15, 0.95);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: padding var(--transition-base);
}
.site-header.is-scrolled .header-inner { padding-top: 9px; padding-bottom: 9px; }

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img {
  height: 56px;
  width: auto;
  transition: height var(--transition-base);
}
.site-header.is-scrolled .logo img { height: 44px; }

.main-nav {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  position: relative;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 6px 2px;
  transition: color var(--transition-fast);
}
.main-nav a:hover { color: #fff; }
.main-nav a.is-active { color: #fff; }

.header-cta { flex-shrink: 0; padding: 11px 22px; font-size: 0.9rem; }

.mobile-nav-cta { display: none; }
.main-nav a.mobile-nav-cta, .main-nav a.mobile-nav-cta:hover { color: var(--color-ink); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   02. Hero — the opening shot
   ========================================================================== */
.hero {
  padding: 72px 0 112px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero > .container { width: 100%; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 36px 0 22px;
}

.hero-media {
  position: relative;
  isolation: isolate;
}
.hero-media::before {
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid rgba(176, 141, 87, 0.35);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(5, 9, 15, 0.55));
  pointer-events: none;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 44% center; }

/* ==========================================================================
   03. Credibility strip — a quiet caption between scenes
   ========================================================================== */
.credibility-strip {
  padding: 0;
}
.credibility-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: 26px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.credibility-inner p {
  margin: 0;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.credibility-inner p::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}

/* ==========================================================================
   Shared glass surface
   ========================================================================== */
.service-card,
.decision-col,
.estimate-form-wrap {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

/* ==========================================================================
   04. Services
   ========================================================================== */
.service-grid {
  display: grid;
  gap: 24px;
  margin-top: 52px;
}
.service-grid-primary { grid-template-columns: repeat(4, 1fr); }
.service-grid-secondary {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.service-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}
.service-card:hover, .service-card:focus-within {
  box-shadow: var(--glow-gold);
  transform: translateY(-4px);
  border-color: rgba(176, 141, 87, 0.5);
}
.service-card.is-selected {
  border-color: var(--color-gold);
  background: linear-gradient(180deg, rgba(176, 141, 87, 0.16), rgba(176, 141, 87, 0.05));
  box-shadow: var(--glow-gold);
}
.service-card h3 { margin-bottom: 0; }
.service-card p { color: var(--color-text-muted); font-size: 0.93rem; flex-grow: 1; margin-bottom: 4px; }
.service-card .img-placeholder { border-style: solid; border-color: var(--border-subtle); }

.service-card-compact { padding: 24px; }

/* Photo-backed card: real project image behind the copy, under a dark scrim */
.service-card-feature {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 300px;
  justify-content: flex-end;
}
.service-card-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 9, 15, 0.15) 0%, rgba(5, 9, 15, 0.72) 55%, rgba(5, 9, 15, 0.94) 100%),
    url('assets/outdoor-living.jpg') center 30% / cover no-repeat;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-card-feature:hover::before { transform: scale(1.05); }
.service-card-feature p { flex-grow: 0; color: #C9D1DC; }

.selected-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-teaser {
  margin-top: 36px;
  padding: 22px 0 0 22px;
  border-left: 1px solid var(--color-gold);
  max-width: 640px;
}
.blog-teaser p { color: var(--color-text-muted); margin-bottom: 8px; }
.blog-teaser a {
  display: flex;
  width: fit-content;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 141, 87, 0.5);
  padding-bottom: 2px;
}
.blog-teaser a + a { margin-top: 14px; }
.blog-teaser a::after { content: '\2192'; color: var(--color-gold-bright); transition: translate 0.3s ease; }
.blog-teaser a:hover::after { translate: 5px 0; }

.section-footnote {
  margin-top: 40px;
  color: var(--color-text-dim);
  font-size: 0.92rem;
  max-width: 620px;
}

/* ==========================================================================
   05. Homeowner's decision
   ========================================================================== */
.decision-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.decision-col {
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
}
.decision-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent 80%);
}
.decision-col h3 { color: #fff; font-size: 1.2rem; }
.decision-col p { color: var(--color-text-muted); margin-bottom: 0; }

html:not(.js) .sp-entry { display: none; }

/* ==========================================================================
   06. Project gallery
   ========================================================================== */
.project-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 36px 0 8px;
}
.filter-btn {
  min-height: 44px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover { border-color: var(--color-gold); color: #fff; }
.filter-btn[aria-pressed="true"] {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
  font-weight: 600;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
  margin: 32px 0 56px;
}
.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-card.is-filtered-out { display: none; }
.project-card .img-placeholder { padding: 0; }

.project-title { margin-bottom: 0; }
.project-location, .project-scope { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 0; }
.project-title:empty, .project-location:empty, .project-scope:empty,
.lightbox-title:empty, .lightbox-scope:empty { display: none; }

.project-open-link {
  background: none;
  border: none;
  padding: 2px 0;
  color: var(--color-link);
  font-weight: 500;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
}
.project-open-link:hover { color: #fff; }

.projects-closing {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 22px;
}

/* ---- Before / after comparison slider ---- */
.compare-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: none;
  border: 1px solid var(--border-subtle);
}
.compare-layer {
  position: absolute;
  inset: 0;
}
.compare-layer img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.compare-after { clip-path: inset(0 0 0 50%); }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  cursor: ew-resize;
}
.compare-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--color-gold-bright);
  box-shadow: 0 0 12px var(--color-gold-glow);
}
.compare-handle-grip {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 0 0 5px rgba(176, 141, 87, 0.2), var(--shadow-md);
  border: none;
  cursor: ew-resize;
}
.compare-handle-grip:hover { background: var(--color-gold-bright); }
.compare-label {
  position: absolute;
  top: 12px;
  z-index: 2;
  background: rgba(5, 9, 15, 0.78);
  color: #fff;
  border: 1px solid rgba(176, 141, 87, 0.45);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 3px;
}
.compare-label-before { left: 12px; }
.compare-label-after { right: 12px; }

/* Lightbox / image viewer */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 10, 0.94);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-content { max-width: 560px; width: 100%; position: relative; }
#lightbox-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 72vh;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-meta { color: #fff; text-align: center; margin-top: 18px; }
.lightbox-status {
  display: inline-block;
  background: transparent;
  color: var(--color-gold-bright);
  border: 1px solid rgba(176, 141, 87, 0.6);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.lightbox-title { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.lightbox-scope { color: var(--color-text-muted); margin-bottom: 0; font-size: 0.95rem; }
.lightbox-close {
  position: absolute;
  top: -20px;
  right: -8px;
  background: #fff;
  border: none;
  color: var(--color-ink);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.lightbox-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.lightbox-nav-btn:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-ink); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ==========================================================================
   07. Process
   ========================================================================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 52px 0 48px;
  position: relative;
}
/* Horizontal link between steps on desktop — the thread branches sideways */
.process-steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(176, 141, 87, 0.6), rgba(176, 141, 87, 0.15));
}
.process-step { position: relative; }
.step-number {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-ink);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-bright);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 22px;
  box-shadow: 0 0 18px rgba(176, 141, 87, 0.2);
}
.process-step p { color: var(--color-text-muted); }

/* ==========================================================================
   08. About
   ========================================================================== */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.about-media { position: relative; isolation: isolate; }
.about-media::before {
  content: '';
  position: absolute;
  inset: -22px -22px 22px 22px;
  border: 1px solid rgba(176, 141, 87, 0.3);
  border-radius: var(--radius);
  z-index: -1;
}
.about-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 35%, transparent 50%, rgba(5, 9, 15, 0.5)), linear-gradient(180deg, transparent 65%, rgba(5, 9, 15, 0.45));
  pointer-events: none;
}
.about-copy p:not(.eyebrow) { color: var(--color-text-muted); }
.about-copy .btn { margin-top: 12px; }

/* ==========================================================================
   10. Service area
   ========================================================================== */
.service-area { text-align: center; }
.service-area p { color: var(--color-text-muted); max-width: 660px; margin-left: auto; margin-right: auto; }
.service-area .supporting-line { color: var(--color-text-dim); }

/* ==========================================================================
   11. FAQs
   ========================================================================== */
.accordion { margin-top: 44px; border-top: 1px solid var(--border-subtle); max-width: 880px; }

.accordion-item { border-bottom: 1px solid var(--border-subtle); }
.accordion-item h3 { margin: 0; font-size: 1rem; }

.accordion-trigger {
  width: calc(100% + 32px);
  text-align: left;
  background: none;
  border: none;
  padding: 24px 16px;
  margin: 0 -16px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.accordion-trigger:hover { background: rgba(255, 255, 255, 0.035); color: #fff; }
.accordion-trigger[aria-expanded="true"] { color: #fff; }

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--color-text);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background var(--transition-fast), transform 0.25s ease;
}
.accordion-icon::before { width: 11px; height: 1.5px; }
.accordion-icon::after { width: 1.5px; height: 11px; }
.accordion-trigger[aria-expanded="true"] .accordion-icon { border-color: var(--color-gold); background: var(--color-gold); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::before,
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { background: var(--color-ink); }

.accordion-panel { padding: 0 60px 26px 0; max-width: 760px; }
.accordion-panel p { color: var(--color-text-muted); margin-bottom: 0; }

/* ==========================================================================
   12. Estimate section — the final frame
   ========================================================================== */
.estimate { padding-bottom: 144px; }
.estimate-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: flex-start;
}
.estimate-invite p:not(.supporting-line) { color: var(--color-text-muted); font-size: 1.08rem; }

.estimate-form-wrap {
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(176, 141, 87, 0.08);
}
.estimate-form-wrap::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--color-gold-bright), transparent);
}
.form-heading { margin-bottom: 26px; font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; }

.form-heading:focus { outline: none; }

.typeform-embed {
  width: 100%;
  height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(5, 9, 15, 0.45);
}
.typeform-embed .tf-v1-widget,
.typeform-embed iframe { width: 100%; height: 100%; border-radius: var(--radius); }

.form-message {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 0.94rem;
}
.form-message p { margin-bottom: 0.4em; color: inherit; }
.form-message p:last-child { margin-bottom: 0; }
.form-message-error { background: var(--color-error-bg); color: var(--color-error); border: 1px solid rgba(242, 169, 159, 0.3); }
.form-message-error a { color: #fff; font-weight: 600; }

.form-alt-contact {
  text-align: center;
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   13. Footer — the page fades back to black
   ========================================================================== */
.site-footer {
  color: var(--color-text-muted);
  padding: 72px 0 0;
  border-top: 1px solid var(--border-subtle);
}
.site-footer a { color: var(--color-text); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--color-gold-bright); }
.site-footer .footer-logo { height: 76px; width: auto; margin-bottom: 18px; }
.footer-company-name { font-weight: 600; margin-bottom: 4px; color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-subtle);
}
.footer-inner p { color: var(--color-text-muted); }
.footer-contact p { margin-bottom: 8px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.95rem; }
.footer-bottom { padding: 24px 0; }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--color-text-dim); }

/* ==========================================================================
   Mobile sticky CTA
   ========================================================================== */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  background: var(--color-gold);
  color: var(--color-ink);
  text-align: center;
  padding: 15px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 24px rgba(176, 141, 87, 0.25);
  transition: transform 0.25s ease, opacity 0.25s ease;
  min-height: 44px;
}
.mobile-sticky-cta.is-hidden { transform: translateY(130%); opacity: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1260px) {
  :root { --thread-offset: 14px; }
}

@media (max-width: 980px) {
  section { padding: 104px 0; }
  .service-grid-primary,
  .service-grid-secondary { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .decision-columns { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .process-steps::before { display: none; }
  .about-inner,
  .estimate-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero { min-height: 0; padding-top: 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; }
  .lightbox-nav-btn { width: 44px; height: 44px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: var(--header-height, 64px);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-ink);
    border-top: 1px solid var(--border-subtle);
    padding: 24px;
    gap: 8px;
    overflow-y: auto;
  }
  .site-header.nav-open .main-nav a:not(.mobile-nav-cta) {
    padding: 14px 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    border-bottom: 1px solid var(--border-subtle);
  }
  .site-header.nav-open .main-nav a.is-active::after { display: none; }
  .site-header.nav-open .main-nav a.is-active { color: var(--color-gold-bright); }
  .site-header.nav-open .mobile-nav-cta {
    display: inline-block;
    text-align: center;
    margin-top: 16px;
  }
}

@media (max-width: 760px) {
  section { padding: 80px 0; }
  .estimate { padding-bottom: 96px; }
  .hero { padding-bottom: 80px; }

  .service-grid-primary,
  .service-grid-secondary,
  .project-grid { grid-template-columns: 1fr; }

  .credibility-inner { flex-direction: column; align-items: flex-start; }

  .hero-media::before { inset: 14px -10px -14px 14px; }
  .about-media::before { inset: -14px -10px 14px 14px; }

  .estimate-form-wrap { padding: 28px 22px; }
  .typeform-embed { height: 540px; }
  .accordion-panel { padding-right: 16px; }

  .footer-inner { grid-template-columns: 1fr; }

  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 76px; }

  .lightbox-nav-btn { position: absolute; top: auto; bottom: -64px; transform: none; }
  .lightbox-prev { left: 50%; margin-left: -56px; }
  .lightbox-next { right: 50%; margin-right: -56px; }
}

/* ==========================================================================
   Motion layer — the decision thread as a travelling light source
   ========================================================================== */
main { overflow-x: clip; }

/* The spark rides the tip of the thread and carries a pool of warm light */
.thread-spark {
  position: absolute;
  left: calc(max(0px, (100% - var(--container-width)) / 2) + 24px - var(--thread-offset));
  top: calc(var(--thread-top, 0px) + var(--thread-fill, 0px));
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #FFF3DC;
  box-shadow: 0 0 6px 2px rgba(255, 236, 200, 0.9), 0 0 24px 8px rgba(205, 170, 114, 0.55);
  z-index: 3;
  pointer-events: none;
  animation: spark-breathe 2.8s ease-in-out infinite;
}
.thread-spark::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 960px;
  height: 960px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 170, 114, 0.12) 0%, rgba(176, 141, 87, 0.05) 30%, transparent 62%);
  mix-blend-mode: screen;
}
@keyframes spark-breathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.35; }
}

/* Nodes ripple once as the light reaches them */
.flow-node::after {
  content: '';
  position: absolute;
  left: calc(-1 * var(--thread-offset) - 5.5px);
  top: var(--node-top);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--color-gold-bright);
  opacity: 0;
  pointer-events: none;
}
.flow-node.is-lit::after { animation: node-ripple 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1; }
@keyframes node-ripple {
  0% { opacity: 0.9; scale: 1; }
  100% { opacity: 0; scale: 5.5; }
}

/* Headlines rise word by word from behind a mask */
.js .reveal.split { opacity: 1; translate: none; }
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.06em 0 0.16em;
  margin: -0.06em 0 -0.16em;
}
.split .wi {
  display: inline-block;
  translate: 0 115%;
  transition: translate 1.05s cubic-bezier(0.2, 0.75, 0.15, 1);
  transition-delay: calc(var(--wi, 0) * 45ms + var(--rd, 0s));
}
.split.is-visible .wi { translate: none; }

/* Photos open like a cut: a curtain wipe plus a slow push-in */
.js .wipe {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.18, 1);
  transition-delay: var(--rd, 0s);
}
.js .wipe--x { clip-path: inset(0 100% 0 0); }
/* Final inset is negative so drop shadows aren't clipped once revealed */
.js .wipe.is-visible { clip-path: inset(-80px -80px -80px -80px); }
.js .wipe img {
  scale: 1.18;
  transition: scale 2.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--rd, 0s);
}
.js .wipe.is-visible img { scale: 1; }

/* Parallax drift (hero + portrait); a little extra scale gives room to move */
[data-parallax] { translate: 0 var(--py, 0px); }
.js .wipe [data-parallax] { scale: 1.3; }
.js .wipe.is-visible [data-parallax] { scale: 1.1; }

/* Gold offset frames draw in after their photo */
.js .frame-in::before {
  opacity: 0;
  scale: 0.94;
  transition: opacity 1.2s ease 0.8s, scale 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.8s;
}
.js .frame-in.is-visible::before { opacity: 1; scale: 1; }

/* Process: the thread branches across the steps, each number ignites in turn */
.js .process-steps::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.35s;
}
.js .process-steps.is-visible::before { transform: scaleX(1); }
.js .step-number {
  transition: border-color 0.6s ease, color 0.6s ease;
  transition-delay: var(--ignite, 0s);
}
.js .process-step:not(.is-visible) .step-number { border-color: rgba(176, 141, 87, 0.3); color: var(--color-text-dim); }
.js .process-step.is-visible .step-number { animation: ignite 1.2s ease-out var(--ignite, 0s) 1 both; }
@keyframes ignite {
  0% { box-shadow: 0 0 0 0 rgba(205, 170, 114, 0.75), 0 0 0 rgba(176, 141, 87, 0); }
  100% { box-shadow: 0 0 0 18px rgba(205, 170, 114, 0), 0 0 18px rgba(176, 141, 87, 0.2); }
}

/* One gold underline that glides between nav items */
.main-nav { position: relative; }
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1.5px;
  width: var(--ni-w, 0px);
  translate: var(--ni-x, 0px) 0;
  background: var(--color-gold);
  box-shadow: 0 0 8px var(--color-gold-glow);
  opacity: 0;
  pointer-events: none;
  transition: translate 0.6s cubic-bezier(0.65, 0, 0.35, 1), width 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
}
.nav-indicator.is-on { opacity: 1; }
.site-header.nav-open .nav-indicator { display: none; }

/* Soft light follows the cursor across cards (pointer devices only, added by JS) */
.spotlight { position: relative; }
.spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(205, 170, 114, 0.13), transparent 50%);
}
.spotlight:hover::after { opacity: 1; }

/* A light sheen crosses the gold buttons on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  translate: -120% 0;
  transition: translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.btn-primary:hover::after { translate: 120% 0; }

/* Filtered gallery cards settle back in */
.project-card.is-entering { animation: card-enter 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes card-enter {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: none; }
}

/* Homepage process: link to the kitchen remodel timeline guide */
.process-teaser { margin: 0 0 40px; }

/* Homepage process: the estimate and the How It Works explorer side by side */
.process-actions { display: flex; flex-wrap: wrap; gap: 12px; }
