/* ===== Design Tokens ===== */
:root {
  --font-serif: 'Bodoni Moda', Georgia, serif;
  --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  --color-cream: #F4F0E8;
  --color-cream-2: #ECE5D8;
  --color-charcoal: #24262B;
  --color-charcoal-2: #34363C;
  --color-charcoal-soft: #4A4D54;
  --color-taupe: #C9BCAC;
  --color-taupe-light: #E1D7C8;
  --color-sage: #77805F;
  --color-sage-dark: #5C6349;
  --color-terracotta: #B5714B;
  --color-terracotta-dark: #8A5236;
  --color-terracotta-light: #EAD9CC;
  --color-white: #FFFFFF;
  --color-border: rgba(36, 38, 43, 0.12);
  --color-border-light: rgba(255, 255, 255, 0.16);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(36, 38, 43, 0.08);
  --shadow-md: 0 12px 32px rgba(36, 38, 43, 0.14);
  --shadow-lg: 0 24px 60px rgba(36, 38, 43, 0.22);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --duration-base: 280ms;

  --container-width: 1240px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body, h1, h2, h3, h4, p, figure, ul, li { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button { touch-action: manipulation; }
input, textarea, select { font: inherit; }

body {
  font-family: var(--font-sans);
  background: var(--color-cream);
  color: var(--color-charcoal);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-4); }
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  margin-bottom: var(--space-2);
}
.eyebrow.center { text-align: center; }
.hero .eyebrow {
  color: var(--color-taupe-light);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.section-title { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-bottom: var(--space-2); }
.section-title.center { text-align: center; }
.section-sub {
  max-width: 640px;
  color: var(--color-charcoal-soft);
  margin-bottom: var(--space-6);
}
.section-sub.center { margin-inline: auto; text-align: center; }

:focus-visible {
  outline: 3px solid var(--color-sage-dark);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
  min-height: 44px;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-sage-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-sage); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-border-light);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--color-white); }

.btn-block { width: 100%; }

.text-link {
  display: inline-block;
  margin-top: var(--space-2);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.text-link:hover { opacity: 0.7; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: var(--space-2);
  transition: background var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), padding var(--duration-base) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(244, 240, 232, 0.88);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  padding-block: 0.65rem;
}
/* Fallback: if backdrop-filter isn't supported, use a near-opaque bar (no per-frame blur cost) */
@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .site-header.is-scrolled { background: rgba(244, 240, 232, 0.98); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.brand-mark { width: 40px; height: 40px; }
.brand-mark-wrap {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.brand-mark-wrap .brand-mark {
  position: absolute;
  inset: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.brand-mark-dark { opacity: 0; }
.site-header.is-scrolled .brand-mark-light { opacity: 0; }
.site-header.is-scrolled .brand-mark-dark { opacity: 1; }
.brand-word {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  transition: color var(--duration-fast) var(--ease-out);
}
.site-header.is-scrolled .brand-word { color: var(--color-charcoal); }
.brand-word-sub {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-taupe-light);
  transition: color var(--duration-fast) var(--ease-out);
}
.site-header.is-scrolled .brand-word-sub { color: var(--color-sage-dark); }

.main-nav ul { display: flex; gap: var(--space-5); }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-white);
  position: relative;
  padding-block: 0.3rem;
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.site-header.is-scrolled .nav-link { color: var(--color-charcoal); }
.site-header.is-scrolled .nav-link::after { background: var(--color-sage-dark); }

.btn-nav { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin-inline: auto;
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
}
.site-header.is-scrolled .nav-toggle span { background: var(--color-charcoal); }

@media (max-width: 900px) {
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--color-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform var(--duration-base) var(--ease-out), visibility var(--duration-base);
  }
  .main-nav.is-open {
    visibility: visible;
    transform: translateY(0);
  }
  .main-nav ul { flex-direction: column; align-items: center; gap: var(--space-4); }
  .main-nav .nav-link { color: var(--color-white); font-size: 1.4rem; font-family: var(--font-serif); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle.is-open span { background: var(--color-white); }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,19,22,0.68) 0%, rgba(24,26,30,0.5) 16%, rgba(24,26,30,0.55) 40%, rgba(24,26,30,0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-3);
}
.serif-strong { font-weight: 700; }
.serif-light { font-weight: 400; font-style: italic; color: var(--color-taupe-light); }
.hero-sub {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--color-taupe-light);
  margin-bottom: var(--space-5);
  max-width: 58ch;
  margin-inline: auto;
}
@media (max-width: 480px) {
  .hero-sub { font-size: 0.95rem; }
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }

.scroll-cue {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 28px;
  height: 44px;
  border: 2px solid var(--color-border-light);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--color-white);
  border-radius: 50%;
  transform: translate(-50%, 0);
  animation: scrollCue 1.8s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes scrollCue {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 18px); }
  100% { opacity: 0; transform: translate(-50%, 18px); }
}

/* ===== Overlap Triptych ===== */
.overlap {
  position: relative;
  margin-top: -7rem;
  z-index: 2;
  padding-bottom: var(--space-6);
}
.overlap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 900px) {
  .overlap-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.overlap-card {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
}
.overlap-dark {
  background: var(--color-charcoal);
  color: var(--color-taupe-light);
}
.overlap-dark h3 { color: var(--color-white); margin-bottom: var(--space-2); }
.overlap-dark p { font-size: 0.92rem; }
.overlap-card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-3);
  aspect-ratio: 16 / 10;
}
.overlap-card-media img { width: 100%; height: 100%; object-fit: cover; }

.overlap-light {
  background: var(--color-white);
  border: 1px solid var(--color-border);
}
.overlap-light h3 { margin-bottom: var(--space-3); }
.expertise-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-block: var(--space-2);
  border-top: 1px solid var(--color-border);
}
.expertise-list li:first-child { border-top: none; padding-top: 0; }
.expertise-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  color: var(--color-sage-dark);
}
.expertise-list li:nth-child(even) .expertise-icon { color: var(--color-terracotta-dark); }
.expertise-icon svg { width: 100%; height: 100%; }
.expertise-list h4 { font-size: 0.95rem; font-weight: 600; font-family: var(--font-sans); margin-bottom: 0.15rem; }
.expertise-list p { font-size: 0.85rem; color: var(--color-charcoal-soft); }

.teaser-projects { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-1); }
.teaser-project {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.teaser-project img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--duration-base) var(--ease-out);
}
.teaser-project:hover img { transform: scale(1.06); }
.teaser-project span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  color: var(--color-white);
}

/* ===== Overview ===== */
.overview { padding-block: var(--space-7); }
.overview-header { margin-bottom: var(--space-4); }
.overview-header h2 { margin-top: var(--space-1); }
.overview-grid { display: block; }
.overview-page + .overview-page { margin-top: var(--space-5); }
.overview-page p { color: var(--color-charcoal-soft); margin-bottom: var(--space-3); }

.overview-media {
  aspect-ratio: 1 / 1;
  margin-top: var(--space-4);
}
.overview-media img { width: 100%; height: 100%; object-fit: contain; }

.overview-dots { display: none; }

@media (min-width: 960px) {
  .overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* min-content (not auto) keeps each paragraph's row sized to its own
       text -- with auto rows, the spanning .overview-media item forces its
       full height into the first row instead of distributing evenly.
       3 rows = the 3 paragraphs across both pages; update if that count changes. */
    grid-template-rows: repeat(3, min-content);
    column-gap: var(--space-6);
    align-items: center;
  }
  .overview-page { display: contents; }
  .overview-page + .overview-page { margin-top: 0; }
  .overview-page p { grid-column: 1; }
  .overview-media {
    grid-column: 2;
    grid-row: 1 / -1;
    margin-top: 0;
    width: 340px;
    margin-inline: auto;
  }
}

@media (max-width: 639px) {
  .overview-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--space-3) * -1);
  }
  .overview-grid::-webkit-scrollbar { display: none; }
  .overview-page {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding-inline: var(--space-3);
  }
  .overview-page + .overview-page { margin-top: 0; }
  .overview-media { max-width: 220px; margin-inline: auto; }

  .overview-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-3);
  }
  .overview-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-1);
  }
  .overview-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-taupe);
    transition: background var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
  }
  .overview-dot.is-active { background: var(--color-sage-dark); transform: scale(1.3); }

  .overview-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-charcoal-soft);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
  }
  .overview-arrow svg { width: 16px; height: 16px; }
  .overview-arrow:hover { background: var(--color-taupe-light); border-color: var(--color-taupe); }
  .overview-arrow:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
}

@media (min-width: 640px) {
  .overview-nav { display: none; }
}

/* ===== Services ===== */
.services { padding-block: var(--space-7); background: var(--color-cream-2); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-taupe-light);
  color: var(--color-sage-dark);
  margin-bottom: var(--space-3);
}
.service-card:nth-child(even) .service-icon {
  background: var(--color-terracotta-light);
  color: var(--color-terracotta-dark);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: var(--space-1); }
.service-card p { font-size: 0.92rem; color: var(--color-charcoal-soft); }

/* Toggle button reset -- shared by service-card and service-highlight.
   Block display keeps normal document flow, so desktop layout is
   unaffected by the extra button/body wrapper elements. */
.service-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: default;
}
.service-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
}
.service-chevron {
  display: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-charcoal-soft);
  transition: transform var(--duration-base) var(--ease-out);
}
.service-chevron svg { width: 100%; height: 100%; }
.service-body { overflow: hidden; }

.service-highlight {
  margin-top: var(--space-4);
  background: var(--color-terracotta-light);
  border: 1.5px dashed var(--color-terracotta);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}
.service-highlight-icon {
  margin-bottom: 0;
  flex-shrink: 0;
  background: var(--color-white);
  color: var(--color-terracotta-dark);
}
.service-highlight-copy { flex: 1 1 380px; }
.service-highlight-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-terracotta-dark);
  margin-bottom: 0.3rem;
}
.service-highlight h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.service-highlight p { font-size: 0.92rem; color: var(--color-charcoal-soft); max-width: 60ch; }
.service-highlight-cta { flex-shrink: 0; margin-top: 0; white-space: nowrap; }

@media (max-width: 639px) {
  .services-grid { gap: var(--space-1); }
  .service-card { padding: var(--space-3); }

  .service-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }
  .service-toggle .service-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .service-toggle .service-icon svg { width: 20px; height: 20px; }
  .service-toggle .service-toggle-row { flex: 1; min-width: 0; }
  .service-toggle h3 { margin-bottom: 0; }

  .service-highlight-icon { width: 36px; height: 36px; }
  .service-highlight-icon svg { width: 20px; height: 20px; }

  .service-chevron { display: inline-flex; }
  .service-card.is-open .service-chevron,
  .service-highlight.is-open .service-chevron { transform: rotate(180deg); }

  .service-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-base) var(--ease-out);
  }
  .service-card.is-open .service-body,
  .service-highlight.is-open .service-body { max-height: 500px; }
  .service-card .service-body-inner p,
  .service-highlight .service-body-inner p { margin-top: var(--space-2); margin-bottom: 0; }

  .service-highlight { margin-top: var(--space-2); padding: var(--space-3); }
  .service-highlight-cta { display: none; }
  .service-highlight.is-open .service-highlight-cta {
    display: block;
    width: 100%;
    margin-top: var(--space-2);
  }
}

@media (min-width: 640px) {
  .service-highlight {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "eyebrow eyebrow"
      "icon    title"
      ".       body"
      ".       cta";
    column-gap: var(--space-3);
    row-gap: var(--space-1);
    align-items: start;
  }
  .service-highlight-eyebrow { grid-area: eyebrow; margin-bottom: var(--space-1); }
  .service-highlight-copy,
  .service-highlight .service-toggle { display: contents; }
  .service-highlight-icon { grid-area: icon; }
  .service-highlight .service-toggle-row { grid-area: title; }
  .service-highlight .service-body { grid-area: body; overflow: visible; }
  .service-highlight-cta {
    grid-area: cta;
    display: inline-block;
    margin-top: var(--space-2);
    white-space: normal;
  }
}

/* ===== Exterior Designs Grid ===== */
.projects { padding-block: var(--space-7); }
@media (max-width: 639px) {
  .projects { padding-bottom: var(--space-4); }
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 639px) {
  .projects-grid {
    display: flex;
    grid-template-columns: none;
    gap: var(--space-3);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--space-3);
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-3);
    margin-inline: calc(var(--space-3) * -1);
    padding-inline: var(--space-3);
    scrollbar-width: thin;
    scrollbar-color: var(--color-charcoal) var(--color-cream-2);
  }
  .projects-grid::-webkit-scrollbar { height: 6px; }
  .projects-grid::-webkit-scrollbar-track { background: var(--color-cream-2); border-radius: 999px; }
  .projects-grid::-webkit-scrollbar-thumb { background: var(--color-charcoal); border-radius: 999px; }
  .projects-grid .project-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

.project-media {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-sm);
}
.project-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--duration-base) var(--ease-out);
  transform: translateZ(0);
  backface-visibility: hidden;
}
.project-card:hover .project-media img { transform: scale(1.05); }
.project-card h3 { font-size: 1.1rem; }

.project-zoom {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(36, 38, 43, 0.7);
  color: var(--color-white);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.project-zoom svg { width: 18px; height: 18px; }
.project-media:hover .project-zoom,
.project-media:focus-visible .project-zoom { opacity: 1; transform: scale(1); }

/* ===== Interior Designs ===== */
.interiors { padding-block: var(--space-7); }
@media (max-width: 639px) {
  .interiors { padding-top: var(--space-4); }
}
/* CSS Grid, not multi-column: WebKit/Safari (incl. iPadOS) has a long-standing
   bug where `columns` masonry items can overflow their column box height and
   spill into the next section. Grid with a fixed aspect-ratio per card renders
   identically and predictably across every browser and viewport. */
.interior-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) { .interior-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .interior-gallery { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 639px) {
  .interior-gallery {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--space-3);
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-3);
    margin-inline: calc(var(--space-3) * -1);
    padding-inline: var(--space-3);
    scrollbar-width: thin;
    scrollbar-color: var(--color-charcoal) var(--color-cream-2);
  }
  .interior-gallery::-webkit-scrollbar { height: 6px; }
  .interior-gallery::-webkit-scrollbar-track { background: var(--color-cream-2); border-radius: 999px; }
  .interior-gallery::-webkit-scrollbar-thumb { background: var(--color-charcoal); border-radius: 999px; }
  .interior-gallery .interior-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

.interior-item { margin: 0; }
.interior-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.interior-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-base) var(--ease-out);
}
.interior-media:hover img,
.interior-media:focus-visible img { transform: scale(1.05); }
.interior-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-5) var(--space-3) var(--space-2);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.28) 55%, transparent 100%);
  color: var(--color-white);
}
.interior-caption span {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ===== Structural Steel Fabrication ===== */
.fabrication {
  position: relative;
  background: #14161B;
  color: #C4CDD9;
  padding-block: var(--space-7);
  overflow: hidden;
}
.fab-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 155, 200, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 155, 200, 0.09) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
}
.fabrication-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 960px) {
  .fabrication-inner { grid-template-columns: 0.92fr 1.08fr; }
}
.fabrication .eyebrow { color: #6EA8D8; }
.fabrication-copy h2 {
  color: var(--color-white);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  margin-bottom: var(--space-3);
}
.fabrication-lead { color: #A6B0BE; margin-bottom: var(--space-4); max-width: 48ch; }

.fab-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.4rem;
}
.fab-legend li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: #C9D2DE;
}
.fab-dot {
  width: 7px; height: 7px;
  border-radius: 2px;
  background: #6EA8D8;
  box-shadow: 0 0 8px rgba(110, 168, 216, 0.75);
  flex-shrink: 0;
}
.fab-plate {
  position: relative;
  display: block;
  width: 100%;
  padding: 10px;
  background: #0E1013;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid rgba(140, 175, 215, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.fab-plate img { width: 100%; height: auto; display: block; border-radius: 6px; }
.fab-plate-tab {
  position: absolute;
  top: 0; left: 22px;
  transform: translateY(-50%);
  background: #6EA8DF;
  color: #0E1013;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.32rem 0.7rem;
  border-radius: 4px;
}
.fab-plate-hint {
  position: absolute;
  bottom: 18px; right: 18px;
  display: inline-flex;
  align-items: center;
  background: rgba(14, 16, 19, 0.85);
  color: #DBE6F2;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 175, 215, 0.3);
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.fab-plate:hover .fab-plate-hint,
.fab-plate:focus-visible .fab-plate-hint { background: #6EA8DF; color: #0E1013; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 13, 15, 0.9);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  animation: lbFade var(--duration-base) var(--ease-out);
}
.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: lbZoom var(--duration-base) var(--ease-out);
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  color: #E8E2D7;
  font-family: var(--font-serif);
  font-size: 1rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  width: 48px; height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-close svg { width: 22px; height: 22px; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out);
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { left: var(--space-3); }
.lightbox-next { right: var(--space-3); }
@media (max-width: 639px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: var(--space-2); }
  .lightbox-next { right: var(--space-2); }
}

.lightbox-counter {
  color: #A6B0BE;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin: 0;
}

body.lightbox-open { overflow: hidden; }

@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbZoom { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .lightbox-backdrop, .lightbox-figure { animation: none; }
}

/* ===== CTA Band ===== */
.cta-band {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding-block: var(--space-6);
}
.cta-band-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); max-width: 30ch; color: var(--color-white); }

/* ===== Contact ===== */
.contact { padding-block: var(--space-7); background: var(--color-cream-2); }
.contact-grid { display: block; }

.contact-lead { color: var(--color-charcoal-soft); margin-bottom: var(--space-4); max-width: 44ch; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: 0;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.contact-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-details a { font-weight: 600; }
.contact-details a:hover { color: var(--color-sage-dark); }
.contact-details-rest { margin-top: var(--space-2); }

.contact-row-ticket { padding: 0; overflow: hidden; }
.contact-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: var(--space-3);
  background: none;
  border: none;
  border-radius: inherit;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.contact-toggle strong { flex: 1; font-weight: 600; }
.contact-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-charcoal-soft);
  transition: transform var(--duration-base) var(--ease-out);
}
.contact-chevron svg { width: 100%; height: 100%; }
#contactGrid.is-open .contact-chevron { transform: rotate(180deg); }

.contact-form-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--duration-base) var(--ease-out);
}
#contactGrid.is-open .contact-form-wrap { max-height: 1400px; margin-top: var(--space-4); }

@media (min-width: 960px) {
  /* Flexbox, not grid: a grid item spanning multiple min-content rows
     (the form, next to the shorter intro+rest column) makes browsers dump
     its extra height unevenly into one row, opening a visible gap. Flexbox
     has no row-spanning, so the taller open form just sits beside the
     shorter list with no track-sizing math involved. */
  .contact-grid {
    display: flex;
    align-items: flex-start;
    gap: 0;
    transition: gap var(--duration-base) var(--ease-out);
  }
  .contact-left { flex: 1 1 auto; min-width: 0; }
  .contact-details-rest { margin-top: var(--space-2); }
  .contact-form-wrap {
    flex: 0 0 0%;
    max-height: none;
    overflow: hidden;
    min-width: 0;
    margin-top: 0;
    transition: flex-grow var(--duration-base) var(--ease-out);
  }
  #contactGrid.is-open { gap: var(--space-6); }
  #contactGrid.is-open .contact-left { flex: 0.9 1 0%; }
  #contactGrid.is-open .contact-form-wrap { flex: 1.1 1 0%; }
  .contact-chevron { transform: rotate(-90deg); }
  #contactGrid.is-open .contact-chevron { transform: rotate(90deg); }
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-taupe-light);
  color: var(--color-sage-dark);
}
.contact-icon svg { width: 22px; height: 22px; }

.contact-qr-media {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out);
}
.contact-qr-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.contact-qr-media:hover,
.contact-qr-media:focus-visible { transform: scale(1.08); }
.contact-qr-copy {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--color-charcoal-soft);
}
.contact-qr-label {
  font-weight: 600;
  color: var(--color-charcoal);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: var(--space-3); display: flex; flex-direction: column; }
.field-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.req { color: #B4483C; margin-left: 0.2rem; }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: var(--color-cream);
  color: var(--color-charcoal);
  min-height: 44px;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--color-sage-dark);
  outline: none;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #B4483C;
}
.field-error {
  font-size: 0.78rem;
  color: #B4483C;
  margin-top: 0.3rem;
  min-height: 1em;
}
.form-status {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
  white-space: pre-line;
}
.form-status.is-success { color: var(--color-sage-dark); }
.form-status.is-error { color: #B4483C; }

.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-taupe-light);
  padding-top: var(--space-7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
.footer-brand .brand-word { color: var(--color-white); }
.footer-brand p { margin-top: var(--space-2); font-size: 0.9rem; color: var(--color-taupe); max-width: 32ch; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}
.footer-links a, .footer-contact a {
  display: block;
  font-size: 0.9rem;
  color: var(--color-taupe);
  padding-block: 0.3rem;
  transition: color var(--duration-fast) var(--ease-out);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--color-white); }
.footer-contact p { font-size: 0.9rem; color: var(--color-taupe); padding-block: 0.3rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-3);
  font-size: 0.8rem;
  color: var(--color-taupe);
}

@media (max-width: 639px) {
  .site-footer { padding-top: var(--space-4); }
  .footer-inner {
    gap: var(--space-4);
    padding-bottom: var(--space-3);
  }
  .footer-links a, .footer-contact a, .footer-contact p { padding-block: 0.15rem; }
  .footer-links h4, .footer-contact h4 { margin-bottom: var(--space-1); }
  .footer-bottom { padding-block: var(--space-2); }
}

/* ===== Rendering performance ===== */
/* Isolate media-heavy cards onto their own compositor layers so hover-scale
   and scroll compositing don't trigger full repaints of large images. */
.interior-media img,
.teaser-project img,
.overview-media img,
.fab-plate img {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
