/* ==========================================================================
   Beyond Cabinets by Mueller - homepage concept
   Design language: Soft Luxury (skills/design-direction/languages.md #9)
   supplies TYPE, SPACING, COMPOSITION and MOTION only.
   Palette is Beyond Cabinets' own: amber #EFA531 and ink #231F20 sampled from
   their logo file (Logo-final.png), amber #F2B229 from their live site CSS,
   warm cream #ECD8B6 from the logo plaque ground.
   ========================================================================== */

:root {
  /* Ink family, deepened from the logo's own text black #231F20 */
  --ink:            #231f20;
  --ink-deep:       #171314;
  --ink-soft:       #322b2c;
  --ink-line:       rgba(255, 255, 255, 0.14);

  /* Warm light family, from the logo plaque ground #ECD8B6 */
  --cream-pale:     #faf5ec;
  --cream:          #f4ead9;
  --cream-deep:     #ecd8b6;
  --cream-line:     rgba(35, 31, 32, 0.13);

  /* Their amber, from the logo wordmark and their site CSS */
  --amber:          #efa531;
  --amber-site:     #f2b229;
  --amber-deep:     #8a5514;   /* accent text on the light bands, 5.85:1 on cream */
  --amber-glow:     rgba(239, 165, 49, 0.24);
  --amber-veil:     rgba(239, 165, 49, 0.10);

  /* Text */
  --text-dark:        #231f20;
  --text-body:        #56504c;
  --text-muted:       #6e6560;
  --text-light:       rgba(255, 255, 255, 0.88);
  --text-light-body:  rgba(255, 255, 255, 0.72);
  --text-light-muted: rgba(255, 255, 255, 0.62);

  /* Type, from Soft Luxury */
  --font-display: 'Tenor Sans', 'Times New Roman', serif;
  --font-body:    'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --wrap:      min(90%, 1180px);
  --wrap-wide: min(94%, 1480px);
  --gutter:    clamp(1.5rem, 4vw, 3rem);
  --nav-h:     84px;

  /* Soft Luxury spatial rhythm and motion */
  --band:   clamp(4.5rem, 9vw, 8.5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --slow:   900ms;
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream-pale);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.0625rem);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.14;
  letter-spacing: 0.005em;
  margin: 0;
}
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.wrap      { width: var(--wrap);      margin-inline: auto; }
.wrap-wide { width: var(--wrap-wide); margin-inline: auto; }
.band      { padding-block: var(--band); }
.band-dark { background: var(--ink);      color: var(--text-light-body); }
.band-deep { background: var(--ink-deep); color: var(--text-light-body); }
.band-lite { background: var(--cream-pale); }
.band-warm { background: var(--cream); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4,
.band-deep h1, .band-deep h2, .band-deep h3, .band-deep h4 { color: var(--text-light); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; padding: 0.8rem 1.2rem;
}
.skip:focus { left: 0; }

/* -------------------------------------------------------------- eyebrow */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--eyebrow, var(--amber-deep));
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::after {
  content: "";
  flex: 0 0 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.band-dark, .band-deep { --eyebrow: var(--amber); }

.lede {
  font-size: clamp(1.06rem, 0.5vw + 0.98rem, 1.22rem);
  line-height: 1.72;
  font-weight: 300;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.02rem 1.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  transition: background var(--slow) var(--ease), color var(--slow) var(--ease),
              border-color var(--slow) var(--ease), transform 700ms var(--ease);
}
.btn__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: 0.75;
  transition: transform 700ms var(--ease);
}
.btn:hover .btn__dot { transform: scale(1.9); }

.btn--amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn--amber:hover { background: var(--amber-site); }

.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-soft); }

.btn--ghost-dark { background: transparent; color: var(--text-light); border-color: var(--ink-line); }
.btn--ghost-dark:hover { border-color: var(--amber); color: var(--amber); }

.btn--ghost-lite { background: transparent; color: var(--text-dark); border-color: var(--cream-line); }
.btn--ghost-lite:hover { border-color: var(--ink); }

.txtlink {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.19em;
  text-transform: uppercase; text-decoration: none;
  color: var(--amber-deep);
  padding-block: 0.35rem;
  transition: gap 600ms var(--ease);
}
.txtlink::after { content: ""; width: 22px; height: 1px; background: currentColor; }
.txtlink:hover { gap: 0.95rem; }
.band-dark .txtlink, .band-deep .txtlink { color: var(--amber); }

/* ------------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
}
.nav__inner {
  width: var(--wrap-wide); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav.is-solid {
  background: rgba(250, 245, 236, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--cream-line);
}

/* Typographic lockup: their exact name, in their exact amber and ink.
   Their photographic plaque logo appears at full fidelity in the footer. */
.brand { text-decoration: none; display: block; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.5vw, 1.42rem);
  letter-spacing: 0.055em;
  color: var(--text-dark);
  white-space: nowrap;
}
.brand__name b { font-weight: 400; color: var(--amber-deep); }
.brand__sub {
  display: block; margin-top: 0.36rem;
  font-size: 0.575rem; font-weight: 500;
  letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--text-body);
}

.nav__links { display: flex; align-items: center; gap: clamp(1.4rem, 2.4vw, 2.5rem); }
.nav__links a {
  font-size: 0.735rem; font-weight: 400; letter-spacing: 0.2em;
  text-transform: uppercase; text-decoration: none; color: var(--text-dark);
  padding-block: 0.55rem;
  position: relative;
  transition: color 600ms var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0.15rem;
  width: 100%; height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 700ms var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: inline-flex; }

.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--cream-line); border-radius: 50%;
  cursor: pointer; padding: 0;
  position: relative; z-index: 200;
}
.burger span {
  display: block; width: 17px; height: 1px; background: var(--text-dark);
  position: relative; transition: background 400ms var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1px;
  background: var(--text-dark);
  transition: transform 600ms var(--ease), top 400ms var(--ease);
}
.burger span::before { top: -5.5px; }
.burger span::after  { top:  5.5px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg);  background: #fff; }
.burger.is-open span::after  { top: 0; transform: rotate(-45deg); background: #fff; }
.burger.is-open { border-color: var(--ink-line); }

/* ---------------------------------------------------------- mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--ink-deep);
  display: flex; flex-direction: column;
  justify-content: center; gap: 0.4rem;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 3rem;
  opacity: 0; visibility: hidden;
  transition: opacity var(--slow) var(--ease), visibility var(--slow);
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.5rem);
  color: var(--text-light); text-decoration: none;
  padding-block: 0.55rem;
  transition: color 600ms var(--ease);
}
.menu a:hover { color: var(--amber); }
.menu__rule { height: 1px; background: var(--ink-line); margin: 1.6rem 0; }
.menu__meta { font-size: 0.9rem; color: var(--text-light-muted); }
.menu__meta a { font-size: 1rem; display: block; padding-block: 0.5rem; }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  /* rule 53: minmax(0,Nfr), never bare fr, or the display headline starves the photo */
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  background: var(--cream-pale);
}
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) clamp(2rem, 5vw, 5.5rem)
           clamp(3rem, 6vw, 5rem) max(var(--gutter), calc((100vw - min(94vw, 1480px)) / 2));
}
.hero__title {
  font-size: clamp(2.4rem, 4vw, 4.05rem);
  line-height: 1.09;
  max-width: 15ch;
  margin: 0 0 1.5rem;
}
.hero__title em { font-style: normal; color: var(--amber-deep); }
.hero__sub {
  max-width: 46ch;
  color: var(--text-body);
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.8rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem;
  padding-top: 1.7rem; border-top: 1px solid var(--cream-line);
  font-size: 0.735rem; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--text-muted);
}
.hero__media { position: relative; overflow: hidden; }
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
/* Scrim starts at the text seam and clears well before the far edge (rule 53c) */
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(250, 245, 236, 0.55) 0%,
    rgba(250, 245, 236, 0.14) 26%,
    rgba(250, 245, 236, 0) 48%);
}
.hero__tag {
  position: absolute; left: clamp(1rem, 2vw, 2rem); bottom: clamp(1rem, 2vw, 2rem);
  z-index: 2; max-width: calc(100% - 2rem);
  background: rgba(23, 19, 20, 0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text-light);
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__tag b { font-weight: 400; color: var(--amber); }
.hero__tag-sep { display: inline-block; padding-inline: 0.55rem; opacity: 0.45; }

/* ---------------------------------------------------------------- intro */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.intro__title { font-size: clamp(1.95rem, 3.2vw, 3.1rem); max-width: 13ch; }
.intro__facts {
  list-style: none; margin: 2.6rem 0 0; padding: 0;
  display: grid; gap: 1px; background: var(--ink-line);
  border-block: 1px solid var(--ink-line);
}
.intro__facts li { background: var(--ink); padding: 1.15rem 0; }
.intro__facts b {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: 1.28rem; color: var(--amber); margin-bottom: 0.15rem;
}
.intro__facts span {
  font-size: 0.72rem; letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--text-light-muted);
}

/* -------------------------------------------- signature: the design desk */
.desk__head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem 2.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.desk__title { font-size: clamp(1.95rem, 3.2vw, 3.1rem); max-width: 14ch; }
.desk__note { max-width: 34ch; color: var(--text-muted); font-size: 0.97rem; margin: 0; }

.desk {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
.desk__list { list-style: none; margin: 0; padding: 0; }
.desk__item { border-bottom: 1px solid var(--cream-line); }
.desk__item:first-child { border-top: 1px solid var(--cream-line); }
.desk__btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: inherit; color: inherit;
  padding: clamp(1.3rem, 2.4vw, 1.9rem) 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.35rem 1.5rem;
  align-items: baseline;
  transition: opacity 700ms var(--ease);
}
.desk__num {
  grid-row: 1 / span 2;
  font-size: 0.7rem; letter-spacing: 0.16em;
  color: var(--amber-deep);   /* full opacity: 0.75 alpha composited to 3.42:1 and failed the gate */
  padding-top: 0.35rem;
}
.desk__name {
  font-family: var(--font-display); font-size: clamp(1.28rem, 2.1vw, 1.75rem);
  color: var(--text-dark); line-height: 1.2;
  transition: color 700ms var(--ease);
}
.desk__copy {
  grid-column: 2;
  font-size: 0.95rem; line-height: 1.65; color: var(--text-muted);
  max-width: 42ch;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height var(--slow) var(--ease), opacity var(--slow) var(--ease),
              margin-top var(--slow) var(--ease);
}
.desk__item.is-on .desk__name { color: var(--amber-deep); }
.desk__item.is-on .desk__copy { max-height: 12rem; opacity: 1; margin-top: 0.7rem; }
.desk__btn:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 4px; }

.desk__stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.35;
  background: var(--cream);
  box-shadow: 0 30px 70px -34px rgba(35, 31, 32, 0.4);
}
.desk__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.045);
  transition: opacity 1100ms var(--ease), transform 1600ms var(--ease);
}
.desk__stage img.is-on { opacity: 1; transform: scale(1); }
.desk__bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: rgba(255, 255, 255, 0.28);
}
.desk__bar i {
  display: block; height: 100%; width: 25%;
  background: var(--amber);
  transition: transform 900ms var(--ease);
}

/* ------------------------------------------------------------- gallery */
.gal__head { max-width: 38ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.gal__title { font-size: clamp(1.95rem, 3.2vw, 3.1rem); }
.gal {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
}
.gal figure {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--ink-soft);
}
.gal figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1600ms var(--ease);
}
.gal figure:hover img { transform: scale(1.05); }
.gal figcaption {
  position: absolute; left: 0.85rem; bottom: 0.85rem;
  max-width: calc(100% - 1.7rem);
  background: rgba(23, 19, 20, 0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--text-light);
  border-radius: 999px; padding: 0.5rem 1rem;
  font-size: 0.63rem; letter-spacing: 0.19em; text-transform: uppercase;
}
.g-a { grid-column: span 4; aspect-ratio: 16 / 10; }
.g-b { grid-column: span 2; aspect-ratio: 4 / 5; }
.g-c { grid-column: span 2; aspect-ratio: 4 / 5; }
.g-d { grid-column: span 2; aspect-ratio: 4 / 5; }
.g-e { grid-column: span 2; aspect-ratio: 4 / 5; }
.g-f { grid-column: span 3; aspect-ratio: 16 / 10; }
.g-g { grid-column: span 3; aspect-ratio: 16 / 10; }

/* ------------------------------------------------------------- reviews */
/* Head and the lead quote share one editorial row so the band does not sit half empty */
.rev__top {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-bottom: clamp(2.75rem, 5vw, 4rem);
}
.rev__head { max-width: 30ch; }
.rev__title { font-size: clamp(1.95rem, 3.2vw, 3.1rem); }
.rev__lead {
  border-left: 2px solid var(--amber);
  padding-left: clamp(1.4rem, 3vw, 2.6rem);
  margin: 0;
}
.rev__lead q {
  display: block; quotes: none;
  font-family: var(--font-display);
  font-size: clamp(1.26rem, 1.85vw, 1.7rem);
  line-height: 1.46; color: var(--text-dark);
  margin-bottom: 1.2rem;
}
.rev__who {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber-deep);
}
/* Two columns on desktop: four auto-fit tracks squeezed the quotes to ~20 characters a line */
.rev__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.rev__card {
  background: var(--cream-pale);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 2.6vw, 2.15rem);
  display: flex; flex-direction: column; gap: 1.15rem;
}
.rev__card q {
  quotes: none; font-size: 0.965rem; line-height: 1.7; color: var(--text-body);
}
.rev__card cite {
  font-style: normal; margin-top: auto;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
}

/* -------------------------------------------------------------- studio */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2.5rem, 5.5vw, 5rem);
  align-items: center;
}
.studio__portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 34px 80px -38px rgba(0, 0, 0, 0.75);
}
.studio__portrait img { width: 100%; aspect-ratio: 4 / 4.9; object-fit: cover; object-position: 50% 20%; }
.studio__title { font-size: clamp(1.95rem, 3.2vw, 3.1rem); margin-bottom: 1.7rem; max-width: 16ch; }
.studio__quote {
  margin: 2.2rem 0 0;
  border-top: 1px solid var(--ink-line);
  padding-top: 2.2rem;
}
.studio__quote q {
  quotes: none; display: block;
  font-family: var(--font-display);
  font-size: clamp(1.14rem, 1.9vw, 1.5rem);
  line-height: 1.5; color: var(--amber);
  margin-bottom: 1rem;
}
.studio__quote cite {
  font-style: normal; font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-light-muted);
}
.studio__cred {
  margin-top: 2rem; padding: 1.15rem 1.4rem;
  border: 1px solid var(--ink-line); border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text-light-body);
}

/* ---------------------------------------------------------- affiliations */
.aff { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(2rem, 6vw, 5rem); }
.aff img { height: clamp(38px, 5vw, 52px); width: auto; max-width: 190px; object-fit: contain; opacity: 0.9; }
.aff__label {
  width: 100%; text-align: center; justify-content: center;
  margin-bottom: 0.5rem;
}
.aff__label::after { display: none; }

/* ------------------------------------------------------------------ cta */
.cta { position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 82% 8%, var(--amber-veil) 0%, rgba(239,165,49,0) 62%);
  pointer-events: none;
}
.cta__inner { position: relative; }
.cta__title { font-size: clamp(2.1rem, 3.6vw, 3.45rem); max-width: 17ch; margin-bottom: 1.4rem; }
.cta__sub { max-width: 50ch; color: var(--text-light-body); margin-bottom: 2.6rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3.4rem; }
.cta__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1px; background: var(--ink-line);
  border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden;
}
.cta__cell { background: var(--ink); padding: clamp(1.4rem, 2.4vw, 1.9rem); }
.cta__cell h3 {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.85rem;
}
.cta__cell p, .cta__cell a { font-size: 0.97rem; color: var(--text-light-body); }
.cta__cell a { text-decoration: none; display: block; padding-block: 0.3rem; }
.cta__cell a:hover { color: var(--amber); }

/* --------------------------------------------------------------- footer */
.foot { background: var(--ink-deep); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2.2rem, 5vw, 4rem);
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--ink-line);
}
.foot__logo {
  height: auto; width: auto; max-width: 240px;
  border-radius: 8px; margin-bottom: 1.5rem;
}
.foot__blurb { font-size: 0.94rem; color: var(--text-light-muted); max-width: 38ch; }
.foot h4 {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot ul a, .foot ul span {
  display: block; text-decoration: none;
  font-size: 0.94rem; color: var(--text-light-muted);
  padding-block: 0.65rem;   /* QA: keeps footer tap targets at 44px on mobile */
  transition: color 600ms var(--ease);
}
.foot ul a:hover { color: var(--amber); }
.foot__social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.foot__social a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ink-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-light-muted);
  transition: border-color 600ms var(--ease), color 600ms var(--ease);
}
.foot__social a:hover { border-color: var(--amber); color: var(--amber); }
.foot__social svg { width: 16px; height: 16px; }
.foot__base {
  padding-top: 1.9rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between;
  font-size: 0.79rem; color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------------ 404 */
.err {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--ink); color: var(--text-light-body);
  padding-top: var(--nav-h);
}
.err__inner { width: var(--wrap); margin-inline: auto; max-width: 56ch; }
.err__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 11rem); line-height: 1;
  color: var(--amber); opacity: 0.28; margin-bottom: 0.6rem;
}
.err__title { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.2rem; }
.err__body { margin-bottom: 2.2rem; color: var(--text-light-body); }

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

/* ============================ responsive ================================= */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: inline-flex; }
  /* The hero photograph sits directly under the nav at these widths, so the bar is
     always solid: over live photography the wordmark cannot be contrast-guaranteed. */
  .nav {
    background: rgba(250, 245, 236, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--cream-line);
  }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__text {
    padding: calc(var(--nav-h) + 2.6rem) var(--gutter) 2.8rem;
    order: 2;
  }
  .hero__media { order: 1; height: min(62svh, 460px); }
  .hero__media::after {
    background: linear-gradient(180deg,
      rgba(250,245,236,0.32) 0%, rgba(250,245,236,0) 46%);
  }
  .hero__title { max-width: 18ch; }
  .intro__grid, .desk, .studio, .rev__top { grid-template-columns: minmax(0, 1fr); }
  .studio__portrait { max-width: 400px; }
  .foot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g-a { grid-column: span 4; }
  .g-b, .g-c, .g-d, .g-e { grid-column: span 2; }
  .g-f, .g-g { grid-column: span 4; }
}

@media (max-width: 768px) {
  .desk__stage { aspect-ratio: 4 / 3; }
  .rev__grid { grid-template-columns: minmax(0, 1fr); }
  .cta__actions .btn, .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 620px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-a, .g-f, .g-g { grid-column: span 2; aspect-ratio: 4 / 3; }
  .g-b, .g-c, .g-d, .g-e { grid-column: span 1; }
  .foot__top { grid-template-columns: minmax(0, 1fr); }
  .desk__btn { grid-template-columns: minmax(0, 1fr); }
  .desk__num { grid-row: auto; padding-top: 0; margin-bottom: 0.2rem; }
  .desk__copy { grid-column: 1; }
}

@media (max-width: 480px) {
  .hero__media { height: min(52svh, 360px); }
  .hero__meta { gap: 0.5rem 1.1rem; font-size: 0.68rem; }
  .btn { padding: 0.95rem 1.4rem; font-size: 0.73rem; letter-spacing: 0.14em; }
  .foot__base { flex-direction: column; }
}

/* First-fold correction: keep the complete hero inside one mobile viewport. */
@media (max-width: 720px) {
  .hero { grid-template-rows: 34svh minmax(0, 1fr); }
  .hero__media { height: auto; min-height: 0; }
  .hero__text { padding: 1rem var(--gutter) 1.1rem; overflow: hidden; }
  .hero__title { font-size: clamp(1.95rem, 9vw, 2.45rem); line-height: 1.02; margin-bottom: .7rem; }
  .hero__sub { font-size: .9rem; line-height: 1.38; margin-bottom: .8rem; }
  .hero__actions { gap: .55rem; margin-bottom: .7rem; }
  .hero__actions .btn { min-height: 42px; padding: .68rem .8rem; }
  .hero__meta { padding-top: .6rem; gap: .35rem .8rem; font-size: .61rem; }
}
