/* ============================================================
   Brooks Brothers Cabinetry Inc. - homepage concept
   Design language: Industrial Edge (#7) for type, spacing,
   composition and motion ONLY.
   Palette: Brooks Brothers Cabinetry's own published colors,
   read out of their site CSS and logo.
     #422928 espresso  (their h2/h3, footer bar, button fill)
     #877f71 taupe     (their h1 colour, footer background)
     #eae5de bone      (their page + navbar background)
     #cabba1 tan       (their image borders)
     #e8c99d wheat     (their tile borders)
     #d2985e caramel   (their button hover) -> accent
     #9e9688 taupe-lt  (their link hover)
   ============================================================ */

:root {
  /* Their palette, deepened within family where contrast demands it */
  --espresso:      #422928;
  --espresso-mid:  #33211f;
  --espresso-deep: #241614;
  --ink:           #191010;

  --taupe:         #877f71;
  --taupe-light:   #9e9688;
  --bone:          #eae5de;
  --bone-2:        #f3f0eb;
  --tan:           #cabba1;
  --wheat:         #e8c99d;

  --caramel:       #d2985e;   /* accent on dark bands and fills */
  --caramel-lift:  #e0ac74;   /* hover on dark */
  --caramel-deep:  #8a5520;   /* accent for text on light bands */
  --caramel-glow:  rgba(210,152,94,0.28);

  /* Text */
  --text-dark:        #24160f;
  --text-body:        #443430;
  --text-muted:       #63514b;
  --text-light:       rgba(255,255,255,0.90);
  --text-light-muted: rgba(255,255,255,0.66);

  /* Type */
  --font-display: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', system-ui, -apple-system, sans-serif;

  /* Layout */
  --wrap:      min(90%, 1240px);
  --wrap-wide: min(94%, 1560px);
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --nav-h:     72px;

  /* Motion: Industrial Edge is quick and mechanical */
  --ease-mech: cubic-bezier(0.4, 0, 0.6, 1);
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);

  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.075rem);
  font-weight: 400;
  line-height: 1.62;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 0.94;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }

.wrap      { width: var(--wrap);      margin-inline: auto; }
.wrap-wide { width: var(--wrap-wide); margin-inline: auto; }

.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;
}

/* ---------- eyebrow / rules ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow-color, var(--caramel-deep));
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.15rem;
}
.eyebrow::after {
  content: "";
  flex: 0 0 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* ---------- buttons: Industrial Edge, squared with a hard icon block ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease-mech), color .25s var(--ease-mech), border-color .25s var(--ease-mech);
  min-height: 46px;
}
.btn__icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  border-radius: 2px;
  flex: 0 0 22px;
  transition: transform .3s var(--ease-mech);
}
.btn__icon svg { width: 11px; height: 11px; display: block; }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--fill        { background: var(--caramel); color: #24160f; border-color: var(--caramel); }
.btn--fill:hover  { background: var(--caramel-lift); border-color: var(--caramel-lift); }

.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,0.42); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.10); border-color: #fff; }

.btn--dark        { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.btn--dark:hover  { background: var(--espresso-deep); border-color: var(--espresso-deep); }

.btn--ghost-dark  { color: var(--espresso); border-color: rgba(66,41,40,0.38); }
.btn--ghost-dark:hover { background: rgba(66,41,40,0.07); border-color: var(--espresso); }

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  /* Solid from the start: the nav sits over the hero photo on the right,
     and a transparent bar puts white links on light pixels (contrast gate). */
  background: var(--espresso-deep);
  border-bottom: 1px solid rgba(210,152,94,0.18);
  transition: background .3s var(--ease-mech), border-color .3s var(--ease-mech);
}
.nav.is-solid {
  background: var(--ink);
  border-bottom-color: rgba(210,152,94,0.34);
}
.nav__inner {
  width: var(--wrap-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.nav__logo {
  width: auto;
  height: 42px;
  max-width: 150px;
  object-fit: contain;
}
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 2rem); }
.nav__link {
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.93);
  padding-block: 0.5rem;
  transition: color .2s var(--ease-mech);
}
.nav__link:hover { color: var(--caramel); }
.nav__cta { padding: 0.7rem 1.15rem; min-height: 42px; color: #24160f; }

.nav__burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 320;
}
.nav__burger span {
  display: block;
  width: 20px; height: 1.5px;
  background: #fff;
  position: relative;
  transition: background .2s var(--ease-mech);
}
.nav__burger span::before,
.nav__burger span::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 1.5px; background: #fff;
  transition: transform .28s var(--ease-mech), top .28s var(--ease-mech);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__burger span::after  { top: 0; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--espresso-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem;
  transform: translateY(-100%);
  transition: transform .4s var(--ease-mech);
  overflow-y: auto;
}
body.menu-open .mobile-menu { transform: translateY(0); }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 9vw, 3.2rem);
  line-height: 1.06;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding-block: 0.42rem;
  border-bottom: 1px solid rgba(255,255,255,0.13);
}
.mobile-menu__link:last-of-type { border-bottom: 0; }
.mobile-menu__foot { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.mobile-menu__meta {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

/* ============================================================
   HERO - split, dark panel left, their photo right
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  background: var(--espresso-deep);
}

.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vh, 5rem)) clamp(1.5rem, 4.4vw, 4.5rem) clamp(2.5rem, 5vh, 4rem)
           calc((100vw - min(94vw, 1560px)) / 2 + 0px);
  position: relative;
  z-index: 3;
}
.hero__panel > * { max-width: 33rem; }

.hero h1 {
  font-size: clamp(3.3rem, 5.9vw, 5.25rem);
  line-height: 0.9;
  text-wrap: balance;
  color: #fff;
  margin-bottom: 1.35rem;
}
.hero h1 .accent { color: var(--caramel); display: block; }

.hero__sub {
  color: var(--text-light);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.16rem);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 31rem;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.4rem; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(210,152,94,0.34);
  padding-top: 1.15rem;
  gap: 0.75rem;
  max-width: 33rem;
}
.hero__fact-k {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--caramel);
  line-height: 1;
  display: block;
}
.hero__fact-v {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  display: block;
  margin-top: 0.35rem;
  line-height: 1.35;
}

.hero__media { position: relative; overflow: hidden; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Scrim starts at the text seam and is fully clear well before mid-image */
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--espresso-deep) 0%, rgba(36,22,20,0.55) 16%, rgba(36,22,20,0) 44%);
  pointer-events: none;
}
.hero__tag {
  position: absolute;
  left: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 2;
  max-width: calc(100% - 2rem);
  background: rgba(25,16,16,0.82);
  border-left: 2px solid var(--caramel);
  padding: 0.6rem 0.95rem;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
}

/* ============================================================
   INDEX STRIP - their five product lines
   ============================================================ */

.strip {
  background: var(--espresso);
  border-top: 1px solid rgba(210,152,94,0.24);
  border-bottom: 1px solid rgba(210,152,94,0.24);
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.strip__item {
  padding: 1.15rem clamp(0.75rem, 1.6vw, 1.5rem);
  border-right: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.strip__item:last-child { border-right: 0; }
.strip__n {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--caramel);
  letter-spacing: 0.06em;
}
.strip__t {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}

/* ============================================================
   SECTION SHELL
   ============================================================ */

.section { padding-block: clamp(3.2rem, 6.5vw, 5.6rem); }
.section--tight { padding-block: clamp(2.6rem, 5vw, 4.2rem); }

.section--dark {
  background: var(--espresso-deep);
  color: var(--text-light);
  --eyebrow-color: var(--caramel);
}
.section--ink {
  background: var(--ink);
  color: var(--text-light);
  --eyebrow-color: var(--caramel);
}
.section--light { background: var(--bone); color: var(--text-body); }
.section--light-2 { background: var(--bone-2); color: var(--text-body); }

.section--dark h2, .section--ink h2 { color: #fff; }
.section--light h2, .section--light-2 h2 { color: var(--espresso); }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3.5vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.section__head h2 { font-size: clamp(2.35rem, 5vw, 4rem); }
.section__lede {
  font-size: clamp(0.98rem, 0.95rem + 0.2vw, 1.09rem);
  line-height: 1.62;
  font-weight: 300;
}
.section--dark .section__lede, .section--ink .section__lede { color: var(--text-light); }
.section--light .section__lede, .section--light-2 .section__lede { color: var(--text-body); }

/* ============================================================
   LINEAGE - 1935 / 2004 / today
   ============================================================ */

.lineage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.75rem);
  border-top: 1px solid rgba(66,41,40,0.20);
  padding-top: clamp(1.5rem, 3vw, 2.4rem);
}
.lineage__item { position: relative; padding-top: 0.4rem; }
.lineage__item::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 42px; height: 3px;
  background: var(--caramel);
}
.lineage__year {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  color: var(--espresso);
  line-height: 1;
  display: block;
  margin-bottom: 0.55rem;
}
.lineage__body { font-size: 0.98rem; line-height: 1.6; color: var(--text-body); }

/* ============================================================
   OWNERS - all three, exactly as their site lists them
   ============================================================ */

.owners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.9rem);
}
.owner {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.owner__img {
  width: 100%;
  aspect-ratio: 356 / 259;
  object-fit: cover;
  filter: saturate(0.92);
}
.owner__body { padding: clamp(1rem, 1.8vw, 1.5rem); }
.owner__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.owner__role {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 600;
  display: block;
  margin-bottom: 0.85rem;
}
.owner__note {
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--text-light-muted);
  font-weight: 300;
}

/* ============================================================
   STAGES - four numbered 50/50 rows
   ============================================================ */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3.5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(1.8rem, 3.4vw, 3rem);
  border-top: 1px solid rgba(66,41,40,0.16);
}
.stage:first-of-type { border-top: 0; }
.stage:nth-child(even) .stage__media { order: -1; }

.stage__n {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--caramel-deep);
  display: block;
  margin-bottom: 0.7rem;
}
.stage h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  color: var(--espresso);
  margin-bottom: 0.85rem;
}
.stage__body { font-size: 1rem; line-height: 1.62; color: var(--text-body); }
.stage__list {
  list-style: none;
  margin: 1.05rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.stage__list li {
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--espresso);
  border: 1px solid rgba(66,41,40,0.26);
  border-radius: 2px;
  padding: 0.4rem 0.65rem;
  background: rgba(202,187,161,0.20);
}
.stage__media { position: relative; }
.stage__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(66,41,40,0.14);
}
.stage__cap {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   SIGNATURE: the finish spec plate
   ============================================================ */

.plate {
  border: 1px solid rgba(210,152,94,0.30);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.030);
  overflow: hidden;
}
.plate__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 2vw, 1.6rem);
  border-bottom: 1px solid rgba(210,152,94,0.30);
  background: rgba(210,152,94,0.07);
}
.plate__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.05em;
}
.plate__std {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 600;
}
.plate__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.plate__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.62rem clamp(0.85rem, 1.7vw, 1.35rem);
  border-bottom: 1px solid rgba(255,255,255,0.075);
  border-right: 1px solid rgba(255,255,255,0.075);
}
.plate__sub {
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 300;
}
.plate__val {
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
}
.plate__val[data-r="5"] { color: #24160f; background: var(--caramel); }
.plate__val[data-r="4"] { color: var(--caramel); border: 1px solid rgba(210,152,94,0.55); }
.plate__note {
  padding: 0.95rem clamp(1rem, 2vw, 1.6rem);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-light-muted);
  font-weight: 300;
}
.finishes {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.finishes li {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--caramel);
  border: 1px solid rgba(210,152,94,0.42);
  border-radius: 2px;
  padding: 0.45rem 0.7rem;
}

/* ============================================================
   WORK GRID
   ============================================================ */

.work {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.2vw, 1rem);
}
.work__cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--espresso-deep);
}
.work__cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.work__cell:hover img { transform: scale(1.04); }
.work__cell::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(180deg, rgba(25,16,16,0) 0%, rgba(25,16,16,0.78) 100%);
  pointer-events: none;
}
.work__tag {
  position: absolute;
  left: 0.85rem; bottom: 0.8rem;
  z-index: 2;
  max-width: calc(100% - 1.7rem);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  border-left: 2px solid var(--caramel);
  padding-left: 0.55rem;
}
.work__cell--a { grid-column: span 4; aspect-ratio: 16 / 10; }
.work__cell--b { grid-column: span 2; aspect-ratio: 4 / 5; }
.work__cell--c { grid-column: span 2; aspect-ratio: 1 / 1; }
.work__cell--d { grid-column: span 2; aspect-ratio: 1 / 1; }
.work__cell--e { grid-column: span 2; aspect-ratio: 1 / 1; }
.work__cell--f { grid-column: span 3; aspect-ratio: 16 / 9; }
.work__cell--g { grid-column: span 3; aspect-ratio: 16 / 9; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.9rem);
}
.quote {
  border-left: 2px solid var(--caramel);
  padding: 0.35rem 0 0.35rem clamp(1rem, 1.8vw, 1.5rem);
}
.quote__text {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 1rem;
}
.quote__who {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 600;
}
.quote__src {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  font-weight: 400;
}

/* ============================================================
   SHOWROOMS
   ============================================================ */

.rooms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.4vw, 2.2rem);
}
.room {
  border: 1px solid rgba(66,41,40,0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.room img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.room__body { padding: clamp(1.1rem, 2vw, 1.6rem); }
.room__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--espresso);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.room__addr {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-body);
  font-style: normal;
  margin-bottom: 0.9rem;
}
.room__hours {
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid rgba(66,41,40,0.14);
  padding-top: 0.8rem;
}

/* ============================================================
   CTA
   ============================================================ */

.cta { background: var(--espresso); color: #fff; }
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
}
.cta h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); color: #fff; margin-bottom: 0.9rem; }
.cta__sub { color: var(--text-light); font-weight: 300; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

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

.footer { background: var(--ink); color: var(--text-light-muted); padding-block: clamp(2.6rem, 5vw, 4rem) 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: clamp(1.4rem, 3vw, 3rem);
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer__logo { width: auto; height: 60px; max-width: 180px; object-fit: contain; margin-bottom: 1rem; }
.footer__tag {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--caramel);
}
.footer__h {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  margin: 0 0 0.9rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list a {
  display: inline-block;
  padding-block: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-light-muted);
  text-decoration: none;
  transition: color .2s var(--ease-mech);
}
.footer__list a:hover { color: var(--caramel); }
.footer__contact { font-size: 0.92rem; line-height: 1.75; font-style: normal; }
.footer__contact a { color: var(--text-light-muted); text-decoration: none; display: inline-block; padding-block: 0.4rem; }
.footer__contact a:hover { color: var(--caramel); }
.footer__bottom {
  padding-block: 1.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}

/* ============================================================
   404
   ============================================================ */

.error-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--espresso-deep);
  padding-top: var(--nav-h);
}
.error__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 15rem);
  line-height: 0.85;
  color: rgba(210,152,94,0.26);
  margin-bottom: 0.6rem;
}
.error__title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); color: #fff; margin-bottom: 1rem; }
.error__body { color: var(--text-light); font-weight: 300; max-width: 34rem; margin-bottom: 1.8rem; }

/* ============================================================
   REVEAL ANIMATION (progressive, no-JS safe)
   ============================================================ */

html.js .reveal { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   RESPONSIVE - written alongside the desktop rules
   ============================================================ */

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }
  .hero__panel {
    order: 2;
    padding: clamp(2rem, 6vw, 3rem) var(--gutter) clamp(2.4rem, 6vw, 3.2rem);
  }
  .hero__panel > * { max-width: none; }
  .hero__sub, .hero__facts { max-width: none; }
  .hero__media {
    order: 1;
    min-height: 58svh;
    padding-top: var(--nav-h);
  }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(36,22,20,0.72) 0%, rgba(36,22,20,0.18) 34%, rgba(36,22,20,0) 62%);
  }

  .section__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .cta__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .strip__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip__item:nth-child(3) { border-right: 0; }
  .strip__item:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,0.12); }

  .lineage { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .owners  { grid-template-columns: minmax(0, 1fr); }
  .quotes  { grid-template-columns: minmax(0, 1fr); }
  .rooms   { grid-template-columns: minmax(0, 1fr); }

  .stage { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .stage:nth-child(even) .stage__media { order: 0; }

  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work__cell--a { grid-column: span 2; aspect-ratio: 16 / 10; }
  .work__cell--b { grid-column: span 1; aspect-ratio: 4 / 5; }
  .work__cell--c,
  .work__cell--d,
  .work__cell--e { grid-column: span 1; aspect-ratio: 1 / 1; }
  .work__cell--f,
  .work__cell--g { grid-column: span 2; aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  .hero h1 { font-size: clamp(2.9rem, 13vw, 4rem); }
  .hero__media { min-height: 48svh; }
  .hero__facts { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .hero__fact-v { margin-top: 0.2rem; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }

  .strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip__item { border-right: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12); }
  .strip__item:nth-child(2n) { border-right: 0; }
  .strip__item:last-child { grid-column: span 2; border-bottom: 0; }

  .plate__grid { grid-template-columns: minmax(0, 1fr); }
  .plate__row { border-right: 0; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; }

  .cta__actions .btn { width: 100%; justify-content: space-between; }
}

@media (max-width: 400px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .work__cell--a,
  .work__cell--b,
  .work__cell--c,
  .work__cell--d,
  .work__cell--e,
  .work__cell--f,
  .work__cell--g { grid-column: span 1; aspect-ratio: 4 / 3; }
}

/* ---------- Mobile drawer close control ---------- */
/* The burger doubles as the close (X), but the nav's own z-index traps it in a
   stacking context below the drawer, so it is painted over and cannot be tapped.
   This control lives inside the drawer, so it is always visible and always hits. */
#mobile-menu .mnav-close {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top, 0px));
  right: 0.85rem;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: rgb(255, 255, 255);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
#mobile-menu .mnav-close::before,
#mobile-menu .mnav-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21px;
  height: 1.5px;
  margin: -0.75px 0 0 -10.5px;
  background: currentColor;
  border-radius: 2px;
}
#mobile-menu .mnav-close::before { transform: rotate(45deg); }
#mobile-menu .mnav-close::after { transform: rotate(-45deg); }
#mobile-menu .mnav-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* Samoya QA: keep the homepage hero to exactly one browser viewport. */
.hero{height:100vh;height:100svh;min-height:0;max-height:100svh;overflow:hidden}
@media(max-width:640px){
  .hero__media{min-height:32svh;height:32svh}
  .hero__panel{padding:.8rem var(--gutter) 1rem}
  .hero h1{font-size:clamp(2.3rem,10.5vw,2.7rem);margin-bottom:.6rem}
  .hero__sub{font-size:.9rem;line-height:1.4;margin-bottom:.75rem}
  .hero__facts{display:none}
  .hero__ctas{flex-wrap:nowrap;gap:.45rem;margin-bottom:0}
  .hero__ctas .btn{width:auto;padding:.7rem .75rem;font-size:.78rem}
}
