/* ============================================================
   Shira Zimroni Designs — styles
   Soft modern · warm off-white · muted sage & taupe accents
============================================================ */

:root {
  /* color */
  --bg:            #efece4;   /* warm off-white */
  --bg-alt:        #e8e3d6;   /* slightly deeper */
  --bg-deep:       #2b2a25;   /* warm near-black (process section) */
  --bg-card:       #f5f2eb;
  --ink:           #26241f;
  --ink-soft:      #57534a;
  --ink-muted:     #8a8579;
  --rule:          #d8d2c4;
  --rule-soft:     #e3ddd0;
  --sage:          #7d8773;
  --sage-deep:     #5e6857;
  --taupe:         #a89b86;
  --on-deep-ink:   #efece4;
  --on-deep-soft:  #b6b1a3;
  --on-deep-rule:  #3d3b35;

  /* type */
  --ff-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-serif: "Instrument Serif", "Geist", serif; /* used only for one italic accent */

  /* layout */
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(56px, 7vw, 112px);
  --radius: 2px;

  /* nav height — set live by app.js so content can sit flush under nav */
  --nav-h: 70px;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  font-family: var(--ff-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ol, ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
dl, dd { padding: 0; }

::selection { background: var(--sage); color: var(--bg); }

/* ---------- reusable bits ---------- */

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-eyebrow .dash {
  width: 28px; height: 1px; background: currentColor; opacity: .6;
}
.section-eyebrow--light { color: var(--on-deep-soft); }

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.dot--sage { background: var(--sage); }

.muted { color: var(--ink-muted); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--sage-deep); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 16px 26px; font-size: 15px; }
.btn__arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   NAV
============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter);
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
  background: rgba(239, 236, 228, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.is-scrolled { /* legacy — nav stays constant */ }

/* Process page: nav already inherits */
.process-page .nav { color: var(--ink); }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.nav__brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.nav__brand-name {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav__cta:hover {
  background: currentColor;
}
.nav__cta:hover { color: var(--bg); }

.nav__menu-btn {
  display: none;
  justify-self: end;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid currentColor;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__menu-btn span {
  display: block;
  width: 14px; height: 1px;
  background: currentColor;
}

/* mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 22px;
  font-weight: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 6px 0; }
.mobile-menu__cta {
  margin-top: 12px;
  padding: 12px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
}

/* ============================================================
   HERO  (split: cream text panel left, photo right)
============================================================ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  /* start directly below the fixed nav — flush, no gap */
  margin-top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  min-height: 580px;
  background: var(--bg);
  overflow: hidden;
}

.hero__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 4vw, 56px);
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 6vw, 80px);
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  justify-items: center;
}

.hero__c-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__title {
  align-self: center;
  text-align: center;
  margin: 0;
  color: var(--ink);

  /* Wordmark: tracked caps w/ hairline rules above + below */
  font-family: "Tenor Sans", "Geist", serif;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 38px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  padding: clamp(20px, 2.4vw, 32px) 0;
}
.hero__title-mark {
  display: inline-block;
  /* tracking pushes text left of optical center; compensate */
  text-indent: 0.42em;
}
.hero__title::before,
.hero__title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(32px, 3.6vw, 56px);
  height: 1px;
  background: var(--ink);
  opacity: 0.5;
}
.hero__title::before { top: 0; }
.hero__title::after  { bottom: 0; }

.hero__c-bottom {
  align-self: end;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  min-width: 220px;
  text-align: center;
}

.hero__photo {
  position: relative;
  height: 100%;
  padding: 0;
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* At narrower split widths, blurred backdrop already fills the frame —
   contain mode keeps the full photo visible without cropping. */
@media (max-width: 1100px) and (min-width: 721px) {
  .hero__photo img { object-position: center; }
}

/* ============================================================
   ABOUT
============================================================ */

.about {
  padding: var(--section-y) var(--gutter);
}
.about__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.about__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about__portrait {
  display: grid;
  gap: 14px;
  align-self: start;
}
.about__portrait img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 34% 45%;
  border-radius: var(--radius);
  background: var(--bg-alt);
  /* warm, soft, editorial grade to match the interior photography */
  filter: saturate(0.86) contrast(0.95) brightness(1.05) sepia(0.12);
}
.about__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.about__caption .muted { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.about__copy { display: grid; gap: 28px; }
.about__title {
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: pretty;
  max-width: 620px;
}
.about__title-em {
  font-family: inherit;
  font-style: normal;
  font-weight: 300;
  color: var(--ink-muted);
}
.about__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 580px;
}
.about__stats {
  margin-top: 16px;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.about__stats > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.about__stats dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.about__stats dd { font-size: 14px; color: var(--ink); }

/* ============================================================
   SERVICES (compact 4-column grid)
============================================================ */

.services {
  padding: clamp(48px, 6vw, 80px) var(--gutter);
  background: var(--bg-alt);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.services__inner { max-width: var(--maxw); margin: 0 auto; }
.services__header { display: grid; gap: 8px; max-width: 760px; margin-bottom: 36px; }
.services__title {
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.services__lede {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  max-width: 62ch;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.service {
  display: grid;
  align-content: start;
  padding-right: 8px;
}
.service__num {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.service__name {
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 18px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 10px;
}
.service__desc {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 980px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .service-list { grid-template-columns: 1fr; gap: 24px; }
}

.services__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(36px, 4vw, 56px);
  background: #D5CDBA;
  border-radius: 6px;
  flex-wrap: wrap;
}
.services__footer-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0;
}
.services__footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  white-space: nowrap;
}
.services__footer-cta .btn__arrow { transition: transform 0.25s ease; }
.services__footer-cta:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   PROCESS TEASER (deprecated \u2014 kept for backwards compat)
============================================================ */

.process-teaser {
  padding: var(--section-y) var(--gutter);
}
.process-teaser__card {
  display: grid;
  gap: 22px;
  justify-items: start;
  background: #D5CDBA;
  color: var(--ink);
  padding: clamp(48px, 7vw, 96px) clamp(32px, 6vw, 96px);
  border-radius: 6px;
  max-width: var(--maxw);
  margin: 0 auto;
  transition: transform 0.3s ease;
}
.process-teaser__card:hover { transform: translateY(-2px); }
.process-teaser__card:hover .process-teaser__cta .btn__arrow { transform: translateX(4px); }

.process-teaser__title {
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 52px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: pretty;
  max-width: 18ch;
}
.process-teaser__em {
  font-family: inherit;
  font-style: normal;
  font-weight: 300;
  color: var(--ink-muted);
}
.process-teaser__lede {
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 52ch;
  line-height: 1.65;
}
.process-teaser__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  padding-bottom: 6px;
  width: fit-content;
}
.process-teaser__cta .btn__arrow { transition: transform 0.25s ease; }

/* ============================================================
   PROCESS PAGE  (dedicated /process.html)
============================================================ */

.process-page {
  background: #efece4;
  color: var(--ink);
  --bg-deep: #efece4;
  --on-deep-ink: #26241f;
  --on-deep-soft: #5a564e;
  --on-deep-rule: #d8d2c4;
}

/* Light-bg adjustments */
.process-page .step__photo-frame {
  background:
    radial-gradient(120% 80% at 25% 25%, rgba(0,0,0,0.04), transparent 60%),
    linear-gradient(135deg, #d8d2c4, #b9b1a0);
  border-color: rgba(0,0,0,0.08);
}
.process-page .step__photo-label {
  color: rgba(0,0,0,0.45);
  border-color: rgba(0,0,0,0.15);
}
.process-page .process-cta .btn--primary {
  background: var(--ink);
  color: var(--bg);
}

.process-hero {
  padding: 130px var(--gutter) 64px;
  border-bottom: 1px solid var(--on-deep-rule);
}
.process-hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: end;
}
.process-hero__left { display: grid; gap: 24px; max-width: 880px; }
.process-hero__title {
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.process-hero__title-em {
  font-family: inherit;
  font-style: normal;
  font-weight: 300;
  color: var(--on-deep-soft);
}
.process-hero__lede {
  color: var(--on-deep-soft);
  font-size: 17px;
  max-width: 520px;
  line-height: 1.65;
}
.process-hero__meta {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--on-deep-rule);
  padding-top: 24px;
  max-width: 460px;
  justify-self: end;
  width: 100%;
}
.process-hero__meta dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-deep-soft);
  margin-bottom: 4px;
}
.process-hero__meta dd { color: var(--on-deep-ink); font-size: 14.5px; }
.process-hero__meta > div + div { border-top: 1px solid var(--on-deep-rule); padding-top: 16px; }

.process-body {
  padding: clamp(40px, 5vw, 72px) var(--gutter);
}
.process-body__inner { max-width: var(--maxw); margin: 0 auto; }

.timeline {
  display: grid;
}
.step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) clamp(160px, 18vw, 220px);
  gap: 0;
  padding: clamp(22px, 2.6vw, 36px) 0;
  border-top: 1px solid var(--on-deep-rule);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--on-deep-rule); }
.step__num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--on-deep-soft);
  padding-top: 8px;
  font-weight: 500;
}
.step__rail {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 12px;
}
.step__rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--on-deep-rule);
  transform: translateX(-50%);
}
.step__rail--last::before { height: 28px; }
.step__dot {
  position: relative;
  z-index: 1;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--bg-deep);
}
.step__content {
  display: grid;
  gap: 14px;
  max-width: 560px;
  padding-left: 24px;
  padding-right: clamp(20px, 4vw, 48px);
}
.step__title {
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
}
.step__body p {
  color: var(--on-deep-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

.step__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
}
.step__photo--plan {
  background: #fff;
  border: 1px solid var(--on-deep-rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.step__photo--plan img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.step__photo--photo {
  border-radius: var(--radius);
  overflow: hidden;
}
.step__photo--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.step__photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 25% 25%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(135deg, #4a4c44, #2f3530);
  border: 1px solid var(--on-deep-rule);
  overflow: hidden;
  display: grid;
  place-items: end start;
  padding: 14px;
}
.step__photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.step__photo-label {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-deep-soft);
  padding: 4px 10px;
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 999px;
}

.process-cta {
  padding: clamp(56px, 6vw, 80px) var(--gutter);
  border-top: 1px solid var(--on-deep-rule);
}
.process-cta__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.process-cta__title {
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: pretty;
  max-width: 720px;
}
.process-cta__title-em {
  font-family: inherit;
  font-style: normal;
  font-weight: 300;
  color: var(--on-deep-soft);
}
.process-cta .btn--primary { background: var(--on-deep-ink); color: var(--ink); }
.process-cta .btn--primary:hover { background: var(--sage); color: var(--on-deep-ink); }

@media (max-width: 980px) {
  .process-hero__inner { grid-template-columns: 1fr; align-items: start; }
  .process-hero__meta { justify-self: start; }
  .step { grid-template-columns: 56px minmax(0, 1fr) clamp(140px, 18vw, 200px); }
  .step__content { grid-template-columns: 1fr; padding-left: 16px; }
  .process-cta__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   GALLERY
============================================================ */

.gallery { padding: var(--section-y) var(--gutter); }
.gallery__inner { max-width: var(--maxw); margin: 0 auto; }
.gallery__header { display: grid; gap: 18px; margin-bottom: 36px; max-width: 700px; }
.gallery__title {
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.gallery__lede { color: var(--ink-soft); font-size: 16px; }

/* filter bar */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.filter {
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter:hover { color: var(--ink); border-color: var(--ink-soft); }
.filter.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.gallery__grid {
  --gal-gap: clamp(10px, 1.4vw, 18px);
  /* Fallback (no-JS): balanced multi-column masonry */
  column-count: 3;
  column-gap: var(--gal-gap);
}
/* JS masonry: absolute, shortest-column packing — zero gaps */
.gallery__grid.is-masonry {
  position: relative;
  column-count: initial;
}
.gal {
  margin: 0 0 var(--gal-gap);
  position: relative;
  border-radius: var(--radius);
  break-inside: avoid;
  display: block;
  cursor: zoom-in;
}
.gallery__grid.is-masonry .gal {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  width: 32%;            /* real width assigned by JS */
}
.gal[hidden] { display: none; }
/* .gal--wide is a marker the masonry reads to span two columns */
.gal__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  transition: opacity 0.25s ease;
}
.gal:hover .gal__img { opacity: 0.88; }
.gal__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  padding: 5px 10px;
  background: rgba(20, 18, 14, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gal:hover .gal__caption { opacity: 1; }

/* ============================================================
   BEFORE / AFTER COMPARE
============================================================ */
/* Gallery tile variant */
.gal--compare {
  --pos: 33.33%;   /* default: 1/3 before (left), 2/3 after (right) */
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;       /* let the page scroll vertically; we own horizontal */
  user-select: none;
}
.gal--compare .gal__img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.ba__before {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* reveal only the left --pos slice of the BEFORE image */
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__before img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  transform: translateX(-50%);
  width: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ba__line {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(20, 18, 14, 0.18);
}
.ba__grip {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(20, 18, 14, 0.28);
}
.gal--compare .ba__grip { width: 34px; height: 34px; }
.ba__tag {
  position: absolute;
  bottom: 12px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 18, 14, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 9px;
  border-radius: 999px;
  pointer-events: none;
}
.ba__tag--before { left: 12px; }
.ba__tag--after  { right: 12px; }
.gal--compare .gal__caption {
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  opacity: 1;          /* always show the "drag to compare" hint */
}
/* hide the hint once the user has interacted */
.gal--compare.is-touched .gal__caption { opacity: 0; }

/* Fullscreen compare overlay */
.compare-lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(18, 16, 12, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.compare-lb.is-open { display: flex; }
.compare-lb__stage {
  display: grid;
  gap: 16px;
  justify-items: center;
}
.ba--full {
  --pos: 33.33%;   /* default: 1/3 before (left), 2/3 after (right) */
  position: relative;
  aspect-ratio: 1400 / 933;
  width: min(92vw, calc(84vh * 1400 / 933));
  max-height: 84vh;
  overflow: hidden;
  border-radius: 3px;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.ba--full .ba__afterimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
.compare-lb__cap {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(236, 232, 223, 0.8);
}
@media (max-width: 560px) {
  .ba--full { width: 92vw; max-height: 80vh; }
}

.gal--tall, .gal--square { display: block; }

.gallery__note {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.gallery__note a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}
.gallery__note a:hover { border-bottom-color: var(--ink); }

/* ============================================================
   LIGHTBOX
============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 13, 10, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 56px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__stage {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  gap: 14px;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  width: 100%;
  max-width: 720px;
  color: rgba(245, 241, 232, 0.78);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lightbox__count { color: rgba(245, 241, 232, 0.55); }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: transparent;
  border: 0;
  color: rgba(245, 241, 232, 0.85);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 2;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(245, 241, 232, 0.1);
  color: #f5f1e8;
}
.lightbox__close {
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  font-size: 32px;
  font-weight: 200;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  font-weight: 200;
}
.lightbox__nav--prev { left: clamp(12px, 2vw, 24px); }
.lightbox__nav--next { right: clamp(12px, 2vw, 24px); }

@media (max-width: 720px) {
  .lightbox__nav { font-size: 36px; width: 40px; height: 40px; }
  .lightbox__img { max-height: calc(100vh - 140px); }
}

/* ============================================================
   CONTACT
============================================================ */

.contact {
  padding: var(--section-y) var(--gutter);
  background: var(--bg-alt);
  border-top: 1px solid var(--rule-soft);
}
.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact__left { display: grid; gap: 24px; }
.contact__title {
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.contact__lede {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 460px;
  line-height: 1.65;
}
.contact__details {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.contact__details dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.contact__details dd { font-size: 15px; color: var(--ink); }
.contact__details a { border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.contact__details a:hover { border-bottom-color: var(--ink); }

/* form */
.contact__form {
  background: var(--bg-card);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.field .optional { font-weight: 400; color: var(--ink-muted); text-transform: none; letter-spacing: 0.02em; }

.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0 12px;
  font: inherit;
  color: var(--ink);
  outline: 0;
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--ink); }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); }

.select { position: relative; }
.select__arrow {
  position: absolute;
  right: 0; bottom: 12px;
  pointer-events: none;
  color: var(--ink-soft);
  font-size: 12px;
}
.field select { appearance: none; cursor: pointer; padding-right: 24px; }

.form-footer {
  grid-column: 1 / -1;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.form-footer__note { color: var(--ink-muted); font-size: 13px; margin: 0; }

.form-success {
  grid-column: 1 / -1;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(125, 135, 115, 0.12);
  border: 1px solid rgba(125, 135, 115, 0.4);
  border-radius: 4px;
  color: var(--sage-deep);
  font-size: 14px;
}
.form-success:not([hidden]) { display: flex; }

/* ============================================================
   FOOTER
============================================================ */

.footer {
  background: #2b2a25;
  color: #efece4;
  padding: 80px var(--gutter) 36px;
  --on-deep-ink: #efece4;
  --on-deep-soft: #b6b1a3;
  --on-deep-rule: #3d3b35;
}
.footer__top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: clamp(40px, 6vw, 100px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--on-deep-rule);
}
.footer__mark {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.footer__tag { color: var(--on-deep-soft); font-size: 14px; max-width: 320px; }
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__nav h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-deep-soft);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer__nav a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: var(--on-deep-ink);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.footer__nav a:hover { opacity: 1; }

.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--on-deep-soft);
  letter-spacing: 0.04em;
}

/* ============================================================
   SCROLL REVEAL
============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line::after { animation: none; }
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__menu-btn { display: inline-flex; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__brand-name { display: none; }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    /* iPhone: start the hero directly under the fixed nav so nothing is
       hidden behind it, and size it tightly so there's no dead space at
       the bottom of the panel. */
    margin-top: var(--nav-h);
    height: calc(100svh - var(--nav-h));
    min-height: 0;
    max-height: 640px;
    position: relative;
  }
  .hero__panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    color: #ece8df;
    /* tighter top padding now that nav no longer overlaps */
    padding: clamp(20px, 5vw, 28px) clamp(20px, 5vw, 32px) clamp(22px, 5vw, 32px);
    /* title centered up top, two meta lines side-by-side at the bottom */
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 0;
    row-gap: 14px;
    text-align: center;
  }
  .hero__title {
    grid-row: 1;
    grid-column: 1 / -1;
    color: #fff;
    /* original option-4 treatment — tracked caps with hairline rules */
    font-size: clamp(15px, 4vw, 20px);
    letter-spacing: 0.34em;
    padding: clamp(14px, 3.4vw, 20px) 0;
    align-self: start;
    justify-self: center;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
  }
  .hero__title-mark {
    font-weight: 500;
  }
  .hero__title::before,
  .hero__title::after {
    background: #fff;
    opacity: 0.9;
    width: clamp(24px, 5.4vw, 40px);
    height: 1.5px;
  }

  /* Both meta lines in row 3, side-by-side w/ a divider between
     Order: INTERIOR DESIGNER · AUSTIN, TEXAS */
  .hero__c-top,
  .hero__c-bottom {
    grid-row: 3;
    margin: 0;
    padding: 0;
    border: 0;
    width: auto;
    min-width: 0;
    color: rgba(236, 232, 223, 0.92);
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-align: center;
    align-self: end;
  }
  /* c-bottom (Interior Designer) sits on the LEFT */
  .hero__c-bottom {
    grid-column: 1;
    justify-self: end;
    padding-right: 14px;
    border-right: 1px solid rgba(236, 232, 223, 0.35);
  }
  /* c-top (Austin, Texas) sits on the RIGHT */
  .hero__c-top {
    grid-column: 2;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 14px;
  }

  .hero__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    padding: 0;
  }
  .hero__photo img {
    border-radius: 0;
    object-fit: cover;
    object-position: center;
  }
  .hero__mobile-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
      linear-gradient(180deg,
        rgba(20, 18, 14, 0.55) 0%,
        rgba(20, 18, 14, 0.15) 18%,
        rgba(20, 18, 14, 0.0) 38%,
        rgba(20, 18, 14, 0.75) 100%);
  }
}

@media (max-width: 980px) {
  .step { grid-template-columns: 64px minmax(0, 1fr) clamp(140px, 22vw, 200px); }
  .step__content { padding-left: 16px; padding-right: 16px; }

  .gallery__grid {
    column-count: 2;
  }

  .contact__inner { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 760px) {
  .filters { gap: 6px; }
  .filter { padding: 7px 12px; font-size: 12px; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__portrait img { aspect-ratio: 4/3; }

  .step { grid-template-columns: 48px minmax(0, 1fr); }
  .step__content { padding-left: 12px; padding-right: 0; }
  .step__photo { grid-column: 1 / -1; max-width: 220px; margin: 20px 0 0 calc(48px + 12px); }
}

@media (max-width: 560px) {
  .hero { padding-top: 100px; }
  .gallery__grid {
    column-count: 1;
  }

  .about__stats > div { grid-template-columns: 1fr; gap: 2px; }
  .contact__details { grid-template-columns: 1fr; }
}
