/* ==========================================================================
   Keitz Construction, LLC - homepage concept
   Design language: Earthy Organic (type scale, spacing, composition, motion only)
   Palette: Keitz Construction's own brand colors, measured from their logo files
            and their project photography. See PROJECT_RULES.md.
   Structural idea: the ledger. Label column left, substance column right,
            hairline rules between. Used for the record, the services and the
            contact block instead of card rows.
   ========================================================================== */

:root {
  /* Ink family: their logo black, warmed toward the oak and brick in their photos */
  --ink:            #16120f;
  --ink-2:          #221c17;
  --ink-3:          #2e2620;

  /* Brand red, measured from k-Logo-2014 and the embroidered polos in their team photo */
  --brick:          #a8180c;
  --brick-deep:     #8a1108;
  --brick-lit:      #e05545;   /* lightened within hue for text on the ink bands */

  /* Light grounds pulled from their own material world: limestone pavers, painted walls */
  --limestone:      #f0ede7;
  --greige:         #dfd9cf;
  --white:          #ffffff;

  --rule:           rgba(22, 18, 15, 0.14);
  --rule-light:     rgba(246, 243, 238, 0.16);

  --text-dark:      #16120f;
  --text-body:      #4a423b;
  --text-muted:     #5c5249;   /* deepened 7/28: #6b6058 measured 4.35:1 on --greige at 12px */
  --text-light:     #f6f3ee;
  --text-light-muted: rgba(246, 243, 238, 0.66);

  --font-display:   'Petrona', Georgia, 'Times New Roman', serif;
  --font-body:      'Rubik', 'Helvetica Neue', Arial, sans-serif;

  --wrap:           min(90%, 1180px);
  --wrap-narrow:    min(90%, 880px);
  --gutter:         clamp(1.25rem, 4vw, 3rem);
  --band:           clamp(3.5rem, 7vw, 5.5rem);
  --nav-h:          78px;

  --ease:           cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin: 0;
}
p { margin: 0 0 1.1em; max-width: 68ch; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.wrap-narrow { width: var(--wrap-narrow); margin-inline: auto; }
.band { padding-block: var(--band); }
.band--ink { background: var(--ink); color: var(--text-light-muted); }
.band--ink h1, .band--ink h2, .band--ink h3, .band--ink h4 { color: var(--text-light); }
.band--ink2 { background: var(--ink-2); color: var(--text-light-muted); }
.band--ink2 h2, .band--ink2 h3 { color: var(--text-light); }
.band--greige { background: var(--greige); }
.band--limestone { background: var(--limestone); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 1.4rem;
}
.band--ink .eyebrow, .band--ink2 .eyebrow { color: var(--brick-lit); }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.65; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.7rem;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn--solid { background: var(--brick); color: #fff; }
.btn--solid:hover { background: var(--brick-deep); }
.btn--ghost { background: transparent; color: var(--text-light); border-color: var(--rule-light); }
.btn--ghost:hover { border-color: var(--text-light); }
.btn--ghost-dark { background: transparent; color: var(--text-dark); border-color: var(--rule); }
.btn--ghost-dark:hover { border-color: var(--text-dark); }
.btn__arrow { width: 16px; height: 10px; flex: none; }

.txtlink {
  display: inline-block;
  color: var(--brick);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.band--ink .txtlink, .band--ink2 .txtlink { color: var(--brick-lit); }

/* --------------------------------------------------------------- nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
/* At rest the nav floats over the hero photograph, whose right side is bright sky and white
   siding. Without a scrim the light nav links measured 1.08:1 there. The scrim keeps the
   floating look and carries the links. */
.nav:not(.is-solid) {
  background: linear-gradient(180deg,
    rgba(22, 18, 15, 0.95) 0%,
    rgba(22, 18, 15, 0.88) 55%,
    rgba(22, 18, 15, 0.55) 85%,
    rgba(22, 18, 15, 0) 100%);
}
.nav.is-solid { background: var(--ink); border-bottom-color: var(--rule-light); }
.nav__inner { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
/* Their horizontal white lockup renders its wordmark illegibly small at nav height and the
   anniversary seal dominates it, so the nav pairs their K mark with a set wordmark instead.
   The mark itself is untouched and unstretched (skill rule 31). */
.nav__logo img { width: auto; height: 38px; max-width: 38px; object-fit: contain; }
.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 500; letter-spacing: 0.005em;
  color: var(--text-light); white-space: nowrap;
}
.nav__links { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.1rem); }
.nav__link {
  color: rgba(246, 243, 238, 0.82);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.3s var(--ease);
}
.nav__link:hover { color: var(--text-light); }
.nav__cta { padding: 0.7rem 1.25rem; min-height: 42px; }
.nav__burger {
  display: none;
  width: 46px; height: 46px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 320;
}
.nav__burger span {
  display: block;
  width: 24px; height: 1.5px;
  margin: 5px auto;
  background: var(--text-light);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__link {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.7rem);
  color: var(--text-light);
  text-decoration: none;
  display: block;
  padding-block: 0.42rem;
}
.menu__link:hover { color: var(--brick-lit); }
.menu__rule { height: 1px; background: var(--rule-light); margin: 1.8rem 0; }
.menu__meta { color: var(--text-light-muted); font-size: 0.92rem; }
.menu__meta a { color: var(--text-light); text-decoration: none; display: inline-block; padding-block: 0.4rem; }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative;
  background: var(--ink);
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: stretch;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) clamp(1.5rem, 4.4vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  padding-left: max(clamp(1.5rem, 4.4vw, 4.5rem), calc((100vw - min(90vw, 1180px)) / 2));
}
.hero__meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  margin-bottom: 1.8rem;
}
.hero__meta span { position: relative; }
.hero__meta span + span::before {
  content: "";
  position: absolute;
  left: -0.85rem; top: 50%;
  width: 3px; height: 3px;
  background: var(--brick-lit);
  transform: translateY(-50%);
}
.hero__title {
  color: var(--text-light);
  font-size: clamp(2.1rem, 4.35vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin-bottom: 1.5rem;
  max-width: 15ch;
}
.hero__title .l2 { display: block; color: var(--brick-lit); }
.hero__sub {
  color: var(--text-light-muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
  max-width: 46ch;
  margin-bottom: 2.3rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__media { position: relative; overflow: hidden; min-height: 46svh; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
/* scrim starts at the text seam and is fully clear by 48% so the photo reads (rule 53c) */
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(22,18,15,0.42) 22%, rgba(22,18,15,0) 48%);
  pointer-events: none;
}
.hero__tag {
  position: absolute;
  left: clamp(1rem, 2.4vw, 2rem);
  bottom: clamp(1rem, 2.4vw, 2rem);
  max-width: calc(100% - 2rem);
  background: rgba(22, 18, 15, 0.82);
  color: var(--text-light);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.62rem 1rem;
}

/* --------------------------------------------------------------- ledger */
.ledger { border-top: 1px solid var(--rule); }
.band--ink .ledger, .band--ink2 .ledger { border-top-color: var(--rule-light); }
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.75rem);
  padding-block: clamp(1.5rem, 2.6vw, 2.1rem);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.band--ink .ledger__row, .band--ink2 .ledger__row { border-bottom-color: var(--rule-light); }
.ledger__label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.42rem;
}
.band--ink .ledger__label, .band--ink2 .ledger__label { color: var(--brick-lit); }
.ledger__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.35vw, 1.95rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.35rem;
  color: var(--text-dark);
}
.band--ink .ledger__title, .band--ink2 .ledger__title { color: var(--text-light); }
.ledger__note { margin: 0; font-size: 0.98rem; max-width: 62ch; }
.ledger__list { display: flex; flex-direction: column; gap: 0.42rem; }
.ledger__item { font-size: 1.02rem; color: var(--text-light); line-height: 1.45; }
.ledger__item i {
  font-style: normal;
  color: var(--text-light-muted);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  display: block;
}

/* --------------------------------------------------------------- section head */
.head { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.head__title { font-size: clamp(1.75rem, 3.3vw, 2.85rem); max-width: 20ch; margin-bottom: 1rem; }
.head__sub { max-width: 58ch; margin: 0; }
.head--wide .head__title { max-width: 26ch; }

/* --------------------------------------------------------------- intro */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.intro__title { font-size: clamp(1.8rem, 3.4vw, 2.9rem); max-width: 16ch; }
.intro__body p:last-child { margin-bottom: 0; }
.intro__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.45;
  color: var(--brick);
  border-left: 1px solid var(--brick);
  padding-left: 1.4rem;
  margin: 2rem 0 0;
  max-width: 34ch;
}

/* --------------------------------------------------------------- record */
.record__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.record__title { font-size: clamp(1.75rem, 3.4vw, 2.85rem); max-width: 19ch; }
.record__aside p { margin-bottom: 0.85rem; font-size: 0.98rem; }
.record__aside p:last-child { margin-bottom: 0; }
.record__aside strong { color: var(--text-light); font-weight: 500; }
.record__foot {
  margin: 2.2rem 0 0;
  font-size: 0.95rem;
  max-width: 74ch;
  color: var(--text-light-muted);
}

/* --------------------------------------------------------------- services */
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.services__media { position: sticky; top: calc(var(--nav-h) + 2rem); margin: 0; }
.services__media img { width: 100%; height: auto; }
.services__cap {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

/* --------------------------------------------------------------- pull band */
.pull { position: relative; min-height: 62svh; display: grid; place-items: center; overflow: hidden; }
.pull img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pull::after { content: ""; position: absolute; inset: 0; background: rgba(22, 18, 15, 0.56); }
.pull__inner { position: relative; z-index: 2; text-align: center; padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.pull__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.85rem, 5vw, 3.4rem);
  line-height: 1.2;
  color: var(--text-light);
  margin: 0 auto 1.1rem;
  max-width: 16ch;
}
.pull__attr {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  margin: 0;
}

/* --------------------------------------------------------------- work */
.work__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.6rem);
}
.work__item { position: relative; }
.work__item img { width: 100%; height: 100%; object-fit: cover; }
.work__item figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}
.work__item figcaption span { color: var(--text-muted); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; }
.work__item--a { grid-column: span 4; }
.work__item--a img { aspect-ratio: 16 / 10; }
.work__item--b figcaption, .work__item--c figcaption,
.work__item--d figcaption, .work__item--e figcaption {
  flex-direction: column; align-items: flex-start; gap: 0.2rem;
}
.work__item--b { grid-column: span 2; }
.work__item--b img { aspect-ratio: 3 / 4; }
.work__item--c { grid-column: span 2; }
.work__item--c img { aspect-ratio: 4 / 5; }
.work__item--d { grid-column: span 2; }
.work__item--d img { aspect-ratio: 4 / 5; }
.work__item--e { grid-column: span 2; }
.work__item--e img { aspect-ratio: 4 / 5; }
.work__item--f { grid-column: span 6; }
.work__item--f img { aspect-ratio: 21 / 8; }

/* --------------------------------------------------------------- reviews */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.75rem, 3.4vw, 3rem);
}
.review { border-top: 1px solid var(--rule-light); padding-top: 1.5rem; }
.review__quote {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  line-height: 1.5;
  color: var(--text-light);
  margin: 0 0 1rem;
}
.review__name {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick-lit);
}

/* --------------------------------------------------------------- team */
.team__lead { margin-bottom: clamp(2rem, 4vw, 3rem); }
.team__lead img { width: 100%; height: auto; }
.team__cap { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--text-muted); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.8rem);
}
.member img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 25%; }
.member__name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 500; margin: 1rem 0 0.2rem; color: var(--text-dark); }
.member__role {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
}
.member__note { margin: 0; font-size: 0.92rem; line-height: 1.6; }

/* --------------------------------------------------------------- community */
.community__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.community__title { font-size: clamp(1.7rem, 3.1vw, 2.5rem); max-width: 14ch; }

/* --------------------------------------------------------------- contact */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact__title { font-size: clamp(1.85rem, 3.6vw, 3rem); max-width: 15ch; margin-bottom: 1.2rem; }
.contact__sub { color: var(--text-light-muted); max-width: 44ch; margin-bottom: 2rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.contact .ledger__row { grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); padding-block: 1.15rem; }
.contact__val { margin: 0; color: var(--text-light); font-size: 1.02rem; line-height: 1.55; }
.contact__val a { color: var(--text-light); text-decoration: none; border-bottom: 1px solid var(--rule-light); }
.contact__val a:hover { border-bottom-color: var(--brick-lit); }
.contact__val small { display: block; font-size: 0.86rem; color: var(--text-light-muted); }

/* --------------------------------------------------------------- footer */
.footer { background: var(--ink-2); color: var(--text-light-muted); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-light);
}
.footer__logo { display: flex; flex-direction: column; align-items: flex-start; }
.footer__mark { display: flex; align-items: center; gap: 0.8rem; }
.footer__mark img { width: auto; height: 44px; max-width: 44px; object-fit: contain; }
.footer__wordmark { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--text-light); }
.footer__tag { margin: 1.1rem 0 0; font-size: 0.92rem; max-width: 34ch; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: 1.25rem 1.5rem; }
.footer__h {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 0.85rem;
}
.footer__cols li a, .footer__cols li {
  color: var(--text-light-muted);
  text-decoration: none;
  font-size: 0.92rem;
  display: block;
  padding-block: 0.65rem;
}
.footer__cols li a:hover { color: var(--text-light); }
.footer__bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------- 404 */
.error { min-height: 100vh; min-height: 100svh; background: var(--ink); display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem; }
/* 0.28 alpha read as a watermark but measured 1.43:1 on ink; 0.78 measures 3.42:1 (rule 51). */
.error__code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); line-height: 1; color: rgba(224, 85, 69, 0.78); margin-bottom: 0.5rem; }
.error__title { color: var(--text-light); font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.error__body { color: var(--text-light-muted); max-width: 46ch; margin: 0 auto 2rem; }

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

/* --------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .hero__copy { padding-left: var(--gutter); padding-right: var(--gutter); width: min(90%, 1180px); margin-inline: auto; padding-top: calc(var(--nav-h) + 3rem); }
  .hero__media { min-height: 58svh; order: 2; }
  .hero__media::after { background: linear-gradient(0deg, rgba(22,18,15,0.5) 0%, rgba(22,18,15,0) 42%); }
  .intro__grid, .record__top, .services__grid, .community__grid, .contact__grid, .footer__top { grid-template-columns: minmax(0, 1fr); }
  .record__top { align-items: start; }
  .services__media { position: static; }
  .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work__item--a, .work__item--f { grid-column: span 6; }
  .work__item--b, .work__item--c, .work__item--d, .work__item--e { grid-column: span 3; }
}

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

@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .work__item--a, .work__item--b, .work__item--c, .work__item--d, .work__item--e, .work__item--f { grid-column: span 1; }
  .work__item--b img, .work__item--c img, .work__item--d img, .work__item--e img { aspect-ratio: 4 / 3; }
  .work__item--f img { aspect-ratio: 16 / 9; }
  .ledger__row { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .ledger__label { padding-top: 0; }
  .contact .ledger__row { grid-template-columns: minmax(0, 1fr); }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__meta { flex-wrap: wrap; gap: 0.35rem 1.5rem; }
  /* the row wraps at this width, which would leave the dot separator stranded at the margin */
  .hero__meta span + span::before { display: none; }
  .btn { width: 100%; justify-content: center; }
  .nav__cta { width: auto; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- 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. */
#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(246, 243, 238);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
#menu .mnav-close::before,
#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;
}
#menu .mnav-close::before { transform: rotate(45deg); }
#menu .mnav-close::after { transform: rotate(-45deg); }
#menu .mnav-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
