:root {
  --bg: #f5f2ed;
  --bg-soft: #efebe5;
  --bg-strong: #d9d4ce;
  --surface: #fbf8f4;
  --surface-strong: #ffffff;
  --text: #2f3b45;
  --text-strong: #1f2932;
  --muted: #5f6772;
  --line: rgba(31, 59, 92, 0.12);
  --primary: #1f3b5c;
  --primary-hover: #18304b;
  --accent: #4e7bb6;
  --brown: #6b4a2b;
  --brown-soft: rgba(107, 74, 43, 0.08);
  --shadow-soft: 0 14px 36px rgba(17, 28, 42, 0.06);
  --shadow-card: 0 24px 60px rgba(17, 28, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1200px;
}

html[data-theme="dark"] {
  --bg: #102031;
  --bg-soft: #13263b;
  --bg-strong: #182e45;
  --surface: #16283c;
  --surface-strong: #1b3148;
  --text: #eff2f4;
  --text-strong: #ffffff;
  --muted: #c3cbd4;
  --line: rgba(239, 242, 244, 0.12);
  --primary: #4e7bb6;
  --primary-hover: #6b92c6;
  --accent: #8aadcf;
  --brown: #c49a73;
  --brown-soft: rgba(196, 154, 115, 0.12);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.24);
  --shadow-card: 0 26px 70px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section-soft { background: linear-gradient(180deg, transparent 0%, var(--bg-soft) 100%); }
.eyebrow {
  margin: 0 0 0.95rem;
  color: var(--brown);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}
h1, h2, h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text-strong);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 600;
}
h1 { font-size: clamp(3rem, 5vw, 5.25rem); }
h2 { font-size: clamp(2.2rem, 3.8vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 2.1vw, 2rem); }
p { margin: 0; color: var(--muted); }
strong { color: var(--text-strong); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand-lockup {
  gap: 0.9rem;
}
.brand-mark-wrap {
  position: relative;
  width: 84px;
  height: 64px;
  flex: 0 0 auto;
}
.brand-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-mark-dark { display: none; }
html[data-theme="dark"] .brand-mark-light { display: none; }
html[data-theme="dark"] .brand-mark-dark { display: block; }
.brand-wordmark {
  display: grid;
  gap: 0.08rem;
  line-height: 1;
}
.brand-wordmark-top {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.brand-wordmark-bottom {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.site-nav a:not(.button) {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
}
.site-nav a:not(.button):hover,
.text-link:hover,
.footer-copy a:hover { color: var(--primary); }
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-soft);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--text-strong);
}
.theme-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-strong);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.button:hover { transform: translateY(-1px); background: var(--primary-hover); }
.button-small { min-height: 46px; padding: 0.72rem 1.05rem; }
.button-outline {
  background: transparent;
  border-color: color-mix(in srgb, var(--primary) 22%, var(--line));
  color: var(--primary);
}
.button-outline:hover { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.button-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.button-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.text-link {
  color: var(--primary);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: min(90vh, 880px);
  display: grid;
  align-items: end;
  overflow: clip;
  background: #0f1b29;
}
.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-video { object-fit: cover; }
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(8, 16, 26, 0.10) 0%, rgba(8, 16, 26, 0.28) 32%, rgba(8, 16, 26, 0.72) 100%),
    linear-gradient(90deg, rgba(16, 31, 48, 0.88) 0%, rgba(16, 31, 48, 0.58) 40%, rgba(16, 31, 48, 0.18) 74%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  text-align: left;
  gap: 0.2rem;
  padding: clamp(7rem, 15vw, 9rem) 0 clamp(4rem, 8vw, 5rem);
  max-width: 720px;
  margin-inline: 0 auto;
  color: #ffffff;
}
.hero-brand {
  margin-bottom: 1.15rem;
}
.hero-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.hero-mark {
  width: 138px;
  height: 102px;
  object-fit: contain;
  flex: 0 0 auto;
}
.hero-wordmark {
  display: grid;
  gap: 0.1rem;
  line-height: 1;
}
.hero-wordmark-top {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffffff;
}
.hero-wordmark-bottom {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(244, 238, 230, 0.92);
}
.hero .eyebrow,
.page-hero .eyebrow { color: rgba(244, 238, 230, 0.84); }
.hero h1,
.page-hero h1 { color: #ffffff; }
.hero p,
.page-hero p { color: rgba(244, 238, 230, 0.88); }
.hero-text { font-size: clamp(1rem, 1.3vw, 1.1rem); max-width: 40rem; }
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.1rem;
}
.two-column-head {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: end;
}
.narrow-head { max-width: 760px; }

.feature-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 1.25rem;
}
.stack-grid,
.gallery-grid { display: grid; gap: 1.25rem; }
.media-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  box-shadow: var(--shadow-card);
}
.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: inherit;
  pointer-events: none;
}
.media-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.media-card:hover img { transform: scale(1.02); }
.media-tall { aspect-ratio: 4 / 5; }
.media-wide { aspect-ratio: 16 / 9; }
.feature-grid .stack-grid .media-card { aspect-ratio: 16 / 10; }

.project-grid-home {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.project-card {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.project-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: 1.14fr 0.86fr;
}
.project-card .media-card,
.project-card .media-card img {
  border-radius: 0;
  box-shadow: none;
}
.project-card .media-card::after { border-radius: 0; }
.project-card-copy {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1.55rem;
}

.reason-grid,
.contact-cards,
.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.reason-card,
.testimonial-card,
.contact-card {
  display: grid;
  gap: 0.75rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.55rem;
  box-shadow: var(--shadow-soft);
}
.reason-card h3,
.contact-card h3 { font-size: 1.5rem; }
.testimonial-card p {
  color: var(--text);
  font-size: 1.02rem;
}
.testimonial-card footer {
  display: grid;
  gap: 0.15rem;
  color: var(--brown);
}
.testimonial-card footer strong {
  color: var(--text-strong);
  font-size: 0.98rem;
}
.testimonial-card footer span {
  color: var(--brown);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-cta { padding-top: 0; }
.contact-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--bg-strong) 85%, transparent));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.page-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  overflow: clip;
  background: #0f1b29;
}
.page-hero-media,
.page-hero-overlay {
  position: absolute;
  inset: 0;
}
.page-hero-media img { height: 100%; object-fit: cover; }
.page-hero-overlay {
  background: linear-gradient(180deg, rgba(10, 19, 29, 0.16), rgba(10, 19, 29, 0.76)),
              linear-gradient(90deg, rgba(10,19,29,0.62), rgba(10,19,29,0.18));
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 8rem 0 4rem;
}

.project-section + .project-section { border-top: 1px solid var(--line); }
.gallery-vanity { grid-template-columns: 0.88fr 1.12fr; }
.gallery-vanity .media-card:nth-child(2),
.gallery-vanity .media-card:nth-child(3) { aspect-ratio: 16 / 10; }
.gallery-understair { grid-template-columns: 1.22fr 0.78fr; }
.gallery-single-wide { grid-template-columns: 1fr; }
.gallery-single-tall { max-width: 580px; }

.contact-page-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: start;
}
.contact-copy { display: grid; gap: 1rem; }
.contact-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.service-list span {
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--brown-soft) 35%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}

.site-footer {
  padding: 2.4rem 0 3rem;
  background: color-mix(in srgb, var(--primary) 10%, var(--bg));
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}
.footer-brand {
  justify-content: center;
}
.footer-brand .brand-mark-wrap {
  width: 96px;
  height: 72px;
}
.footer-brand .brand-wordmark-top {
  font-size: 0.96rem;
}
.footer-brand .brand-wordmark-bottom {
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}
.footer-copy { display: grid; gap: 0.35rem; }
.footer-legal {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  width: min(100%, 720px);
  color: var(--muted);
  font-size: 0.92rem;
}
.trust-note {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
  color: var(--text-strong);
  font-size: 0.92rem;
}
.trust-note.left { justify-self: start; }

.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(6, 11, 18, 0.92);
  z-index: 100;
}
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

.inline-note { font-size: 0.92rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .media-card img { transition: none; }
}

@media (max-width: 980px) {
  .two-column-head,
  .feature-grid,
  .project-card-wide,
  .gallery-vanity,
  .gallery-understair,
  .contact-page-grid,
  .reason-grid,
  .testimonial-grid,
  .contact-cards,
  .contact-list,
  .project-grid-home { grid-template-columns: 1fr; }
  .contact-cta-inner { align-items: start; }
  .gallery-single-tall { max-width: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
  }
  .site-nav.open { display: flex; }
  .site-nav .button,
  .site-nav .button-outline { width: 100%; }
  .brand-mark-wrap { width: 72px; height: 54px; }
  .brand-wordmark-top { font-size: 0.82rem; letter-spacing: 0.2em; }
  .brand-wordmark-bottom { font-size: 0.92rem; letter-spacing: 0.03em; }
  .hero-mark { width: 104px; height: 78px; }
  .hero-wordmark-top { font-size: 0.92rem; letter-spacing: 0.2em; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 1.25rem), var(--container)); }
  .hero { min-height: 84vh; }
  .hero-content { padding-top: 7rem; }
  .hero-content {
    justify-items: center;
    text-align: center;
    margin-inline: auto;
  }
  .hero-lockup {
    gap: 0.72rem;
  }
  .hero-mark {
    width: 90px;
    height: 68px;
  }
  .hero-wordmark-top {
    font-size: 0.84rem;
    letter-spacing: 0.18em;
  }
  .hero-wordmark-bottom {
    font-size: 1rem;
    letter-spacing: 0.03em;
  }
  .hero-actions { justify-content: center; }
  .button,
  .button-small { width: 100%; }
  .hero-actions,
  .contact-actions { align-items: stretch; }
  .contact-actions.left { flex-direction: column; }
  .section { padding: 4rem 0; }
  .reason-card,
  .testimonial-card,
  .contact-card,
  .project-card-copy { padding: 1.2rem; }
}


@media (min-width: 641px) {
  .hero-content {
    justify-items: start;
    text-align: left;
    margin-inline: 0 auto;
  }
  .hero-actions { justify-content: flex-start; }
}
