/* Dan Milbourn Construction — self-hosted webfonts (latin subset).
   Served same-origin so no third-party chain blocks first paint.
   Oswald and Inter are licensed under the SIL Open Font License. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/oswald-300.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/oswald-400.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/oswald-500.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/oswald-600.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ==========================================================================
   DAN MILBOURN CONSTRUCTION — design system
   Architectural, tactile, restrained. Built for a masonry company est. 1969.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* palette */
  --limestone:   #F3F0E9;
  --charcoal:    #171717;
  --charcoal-2:  #262522;
  --brick:       #8A3F32;
  --brick-dark:  #6E3228;
  --stone:       #A99D8C;
  --mortar:      #CBC6BD;
  --white:       #FFFFFF;

  --text:        #1E1D1B;
  --text-muted:  #5A5750;
  --text-invert: #F3F0E9;
  --rule:        rgba(23,23,23,.14);
  --rule-invert: rgba(243,240,233,.18);

  /* type */
  --font-head: "Oswald", "Archivo Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --h1: clamp(2.75rem, 6vw, 5rem);      /* 44 → 80 */
  --h2: clamp(2rem, 4vw, 3.5rem);       /* 32 → 56 */
  --h3: clamp(1.5rem, 2.2vw, 2rem);     /* 24 → 32 */
  --body: clamp(1rem, 1.15vw, 1.1875rem);
  --small: .875rem;
  --eyebrow: .75rem;

  /* space */
  --section: clamp(3.5rem, 9vw, 8.75rem);   /* 56 → 140 */
  --gap: clamp(1.25rem, 2.5vw, 2.5rem);
  --max: 1320px;
  --read: 720px;
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 800ms;
}

@media (max-width: 767px) { :root { --header-h: 68px; } }

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.06; letter-spacing: -.01em; margin: 0; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.18; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.read { max-width: var(--read); }
.section { padding: var(--section) 0; }
.section--dark { background: var(--charcoal); color: var(--text-invert); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--stone { background: #EAE6DD; }

.eyebrow {
  font-family: var(--font-head);
  font-size: var(--eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::after { content: ""; height: 1px; width: 3rem; background: var(--brick); opacity: .5; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { content: ""; height: 1px; width: 3rem; background: currentColor; opacity: .5; }
.section--dark .eyebrow { color: var(--stone); }
.section--dark .eyebrow::after { background: var(--stone); }

.lede { font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); line-height: 1.62; color: var(--text-muted); }
.section--dark .lede { color: rgba(243,240,233,.78); }

/* ---------- 3. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-head); font-size: .875rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 1.0625rem 2rem; min-height: 52px;
  border: 1px solid transparent; cursor: pointer;
  transition: background 260ms var(--ease), color 260ms var(--ease), border-color 260ms var(--ease);
}
.btn--primary { background: var(--brick); color: var(--white); }
.btn--primary:hover { background: var(--brick-dark); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: var(--charcoal); color: var(--limestone); border-color: var(--charcoal); }
.section--dark .btn--ghost:hover { background: var(--limestone); color: var(--charcoal); border-color: var(--limestone); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-size: .8125rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brick);
  padding: .4rem 0;
}
.link-arrow span { transition: transform 400ms var(--ease); }
.link-arrow:hover span { transform: translateX(8px); }
.section--dark .link-arrow { color: var(--stone); }

/* ---------- 4. HEADER ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 380ms var(--ease), border-color 380ms var(--ease), height 380ms var(--ease);
}
.hdr__in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.hdr__logo img { height: 34px; width: auto; transition: filter 380ms var(--ease); }
.hdr--solid { background: var(--limestone); border-bottom-color: var(--rule); box-shadow: 0 1px 24px rgba(23,23,23,.06); }
.hdr--onhero:not(.hdr--solid) { color: var(--white); }
.hdr--onhero:not(.hdr--solid) .hdr__logo img { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.1rem); }
.nav a {
  font-family: var(--font-head); font-size: .8125rem; font-weight: 400;
  letter-spacing: .13em; text-transform: uppercase; padding: .5rem 0;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brick); transition: right 380ms var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

/* Phone and email ride the same transition as the header background: hidden
   while the header sits transparent over the hero, revealed as it goes solid. */
.hdr__contact {
  display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.6rem);
  margin-left: auto;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}
.hdr--solid .hdr__contact { opacity: 1; transform: none; pointer-events: auto; }
/* on pages with no hero the header is solid immediately, so show them at once */
.hdr:not(.hdr--onhero) .hdr__contact { opacity: 1; transform: none; pointer-events: auto; }

.hdr__contact a {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8125rem; font-weight: 500; color: var(--text);
  white-space: nowrap; transition: color 200ms var(--ease);
}
.hdr__contact a:hover { color: var(--brick); }
.hdr__contact svg { width: 15px; height: 15px; fill: var(--brick); flex: 0 0 15px; }

/* Shed the email label, then the email, then the block itself — the last step
   lands at 1023px where the desktop nav gives way to the drawer, which carries
   phone and email of its own, so there is no width without them. */
@media (max-width: 1400px) { .hdr__contact a:last-child span { display: none; } }
@media (max-width: 1300px) { .hdr__contact a:last-child { display: none; } }
@media (max-width: 1023px) { .hdr__contact { display: none; } }

.hdr__cta { white-space: nowrap; padding: .8125rem 1.4rem; min-height: 44px; font-size: .75rem; }

.hdr__burger {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.hdr__burger span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform 300ms var(--ease), opacity 200ms; }
.nav-open .hdr__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hdr__burger span:nth-child(2) { opacity: 0; }
.nav-open .hdr__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 890;
  background: var(--charcoal); color: var(--text-invert);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--header-h) 2rem 2rem;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease), visibility 380ms;
}
.nav-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer a {
  font-family: var(--font-head); font-size: clamp(1.75rem, 8vw, 2.75rem);
  text-transform: uppercase; letter-spacing: .02em;
  padding: .45rem 0; border-bottom: 1px solid var(--rule-invert);
}
.drawer a:last-of-type { border-bottom: 0; }
.drawer__meta { margin-top: 2.5rem; font-size: var(--small); color: var(--stone); }
.drawer__meta a { font-size: 1rem; font-family: var(--font-body); letter-spacing: 0; text-transform: none; border: 0; padding: .2rem 0; display: block; }

@media (max-width: 1023px) {
  .nav, .hdr__cta { display: none; }
  .hdr__burger { display: flex; }
}

/* ---------- 5. HERO ---------- */
.hero { position: relative; min-height: 680px; height: 86vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero--short { height: 70vh; min-height: 520px; }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); animation: heroSettle 1600ms var(--ease) forwards; }
@keyframes heroSettle { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,.82) 0%, rgba(15,15,15,.42) 42%, rgba(15,15,15,.12) 72%, rgba(15,15,15,.28) 100%);
}
.hero__body { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 7vw, 6rem); color: var(--white); }
.hero__body .eyebrow { color: var(--mortar); }
.hero__body .eyebrow::after { background: var(--mortar); }
.hero h1 { max-width: 16ch; margin-bottom: 1.4rem; }
.hero .lede { color: rgba(255,255,255,.9); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* split hero (About) */
.hero-split { display: grid; grid-template-columns: 55% 45%; min-height: 72vh; }
.hero-split__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-split__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 5vw, 5rem); }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } .hero-split__img { height: 46vh; } }

/* ---------- 6. CREDIBILITY STRIP ---------- */
.creds { background: var(--charcoal); color: var(--text-invert); }
.creds__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.creds__item { padding: clamp(1.6rem, 3vw, 2.4rem) 1.25rem; text-align: center; border-right: 1px solid var(--rule-invert); }
.creds__item:last-child { border-right: 0; }
.creds__k { display: block; font-family: var(--font-head); font-size: clamp(1.35rem, 2.4vw, 2rem); color: var(--white); letter-spacing: .02em; }
.creds__v { display: block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin-top: .35rem; }
@media (max-width: 767px) {
  .creds__grid { grid-template-columns: 1fr 1fr; }
  .creds__item:nth-child(2n) { border-right: 0; }
  .creds__item:nth-child(-n+2) { border-bottom: 1px solid var(--rule-invert); }
}

/* ---------- 7. EDITORIAL TWO-COLUMN ---------- */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.editorial h2 { max-width: 14ch; }
@media (max-width: 900px) { .editorial { grid-template-columns: 1fr; gap: 1.75rem; } .editorial h2 { max-width: none; } }

/* ---------- 8. SERVICE CARDS ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.4vw, 2.25rem); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

.svc { display: block; background: none; }
.svc__media { display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--mortar); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.svc:hover .svc__media img { transform: scale(1.055); }
.svc__title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.1rem 0 .4rem; transition: transform 420ms var(--ease); }
.svc:hover .svc__title { transform: translateX(4px); }
.svc__title h3 { font-size: 1.375rem; }
.svc__arrow { color: var(--brick); font-family: var(--font-head); transition: transform 420ms var(--ease); }
.svc:hover .svc__arrow { transform: translateX(9px); }
.svc p { font-size: .9375rem; color: var(--text-muted); margin: 0; }

/* ---------- 9. FEATURED PROJECT ROWS ---------- */
.feat { display: grid; grid-template-columns: 62% 1fr; gap: clamp(1.75rem, 4vw, 4rem); align-items: center; }
.feat + .feat { margin-top: var(--section); }
.feat--rev { grid-template-columns: 1fr 62%; }
.feat--rev .feat__media { order: 2; }
.feat--wide { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .feat, .feat--rev { grid-template-columns: 1fr; }
  .feat--rev .feat__media { order: 0; }
}
.feat__num { font-family: var(--font-head); font-size: clamp(2.5rem, 5vw, 4rem); color: var(--brick); opacity: .28; line-height: 1; }
.feat__label { font-family: var(--font-head); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin: .5rem 0 .9rem; }
.section--dark .feat__label { color: var(--stone); }
.feat h3 { margin-bottom: .9rem; }

/* project media: reveal + hover */
.pmedia { position: relative; overflow: hidden; display: block; width: 100%; background: var(--mortar); cursor: pointer; border: 0; padding: 0; }
.pmedia img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.pmedia:hover img, .pmedia:focus-visible img { transform: scale(1.035); }
.pmedia::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,.55), rgba(15,15,15,0) 55%);
  opacity: 0; transition: opacity 600ms var(--ease);
}
.pmedia:hover::after, .pmedia:focus-visible::after { opacity: 1; }
.pmedia__view {
  position: absolute; right: 1.1rem; bottom: 1.1rem; z-index: 2;
  font-family: var(--font-head); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--white); background: rgba(20,20,20,.55); backdrop-filter: none;
  padding: .55rem .9rem; opacity: 0; transform: translateY(10px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.pmedia:hover .pmedia__view, .pmedia:focus-visible .pmedia__view { opacity: 1; transform: none; }

/* ---------- 9b. FEATURED WORK CARDS (uniform row) ---------- */
.fwork { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.4vw, 2.25rem); align-items: stretch; }
@media (max-width: 900px) { .fwork { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fwork { grid-template-columns: 1fr; } }

/* each card is a column: fixed-ratio media, then text that fills the rest,
   so every card in the row starts and ends at the same height */
.fcard { display: flex; flex-direction: column; height: 100%; }
/* All three project photographs are exactly 2.4:1 (1440x600 and 1920x800), so a
   12/5 box keeps every card identical while cropping nothing at all. */
.fcard .pmedia { aspect-ratio: 12 / 5; width: 100%; flex: 0 0 auto; }
.fcard .pmedia img { width: 100%; height: 100%; object-fit: cover; }
.fcard__body { display: flex; flex-direction: column; flex: 1 1 auto; padding-top: 1.1rem; }
/* full-strength brick rather than a faded tint: at .32 opacity this failed
   contrast against the limestone background */
.fcard__num { font-family: var(--font-head); font-size: 1.5rem; line-height: 1; color: var(--brick); margin: 0 0 .45rem; }
.fcard__label { font-family: var(--font-head); font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 .5rem; min-height: 1.1em; }
.section--dark .fcard__label { color: var(--stone); }
.fcard h3 { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); margin: 0 0 .6rem; }
.fcard p { font-size: .9375rem; color: var(--text-muted); margin: 0; }

/* ---------- 10. TESTIMONIAL CAROUSEL (centred, fixed frame) ---------- */
.quotes { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
/* a fixed frame so the section never jumps between reviews of different length */
.quotes__stage { position: relative; min-height: 340px; display: flex; }
@media (max-width: 900px) { .quotes__stage { min-height: 420px; } }
@media (max-width: 560px) { .quotes__stage { min-height: 460px; } }
.quote { display: none; width: 100%; flex-direction: column; }
.quote[data-active] { display: flex; animation: qIn 460ms var(--ease); }
@keyframes qIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* stars pinned to the top, name pinned to the bottom, text between */
.quote__stars { color: #E0A21A; letter-spacing: 4px; font-size: 1.0625rem; margin: 0 0 1.5rem; flex: 0 0 auto; }
.quote blockquote {
  margin: 0; flex: 1 1 auto;
  font-family: var(--font-head); font-weight: 300;
  font-size: clamp(1.1875rem, 2.1vw, 1.625rem); line-height: 1.44; letter-spacing: -.005em;
}
.quote__who { margin: 1.6rem 0 0; flex: 0 0 auto; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.section--dark .quote__who { color: var(--stone); }
.quotes__nav { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
/* paired arrows are SVG so left and right are exact mirrors */
.ico-arrow {
  width: 20px; height: 20px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.qbtn { width: 48px; height: 48px; border: 1px solid var(--rule); background: none; cursor: pointer; display: grid; place-items: center; transition: background 260ms var(--ease), border-color 260ms; }
.section--dark .qbtn { border-color: var(--rule-invert); }
.qbtn:hover { background: var(--brick); border-color: var(--brick); color: var(--white); }
.quotes__count { font-family: var(--font-head); font-size: .8125rem; letter-spacing: .14em; color: var(--text-muted); margin-left: .5rem; }
.section--dark .quotes__count { color: var(--stone); }

/* ---------- 11. BEFORE / AFTER SLIDER ---------- */
/* slider + story side by side on desktop, stacked on mobile */
.ba-row { display: grid; grid-template-columns: 52% 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ba-row + .ba-row { margin-top: var(--section); }
@media (max-width: 860px) { .ba-row { grid-template-columns: 1fr; gap: 1.5rem; } }

/* source photographs are square, so the frame is square — nothing is cropped away */
.ba { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--mortar); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--white); transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.ba__handle {
  position: absolute; top: 50%; left: var(--pos, 50%); transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 0;
  display: grid; place-items: center; cursor: ew-resize; box-shadow: 0 3px 16px rgba(0,0,0,.3);
  font-family: var(--font-head); font-size: 1rem; color: var(--charcoal);
}
.ba__tag { position: absolute; bottom: 1rem; font-family: var(--font-head); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--white); background: rgba(20,20,20,.6); padding: .4rem .75rem; pointer-events: none; }
.ba__tag--b { left: 1rem; } .ba__tag--a { right: 1rem; }
.ba--placeholder { display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--text-muted); }
.ba--placeholder .ba__note { font-family: var(--font-head); letter-spacing: .12em; text-transform: uppercase; font-size: .8125rem; }

/* ---------- 11b. REVIEW GRID (About) ----------
   A real grid rather than masonry columns: cards on the same row stretch to a
   shared height, so the rows read straight. Rows still size to their own
   content, so no review is ever truncated to force a match. */
.rgrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.8vw, 1.5rem);
  list-style: none; margin: 0; padding: 0;
}
@media (max-width: 980px) { .rgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rgrid { grid-template-columns: 1fr; } }
.rgrid > li {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--rule);
  padding: clamp(1.4rem, 2.2vw, 1.75rem);
}
.rgrid .quote__stars { margin: 0 0 .75rem; font-size: .9rem; flex: 0 0 auto; }
.rgrid__text { font-size: .9375rem; line-height: 1.62; margin: 0; flex: 1 1 auto; }
.rgrid .quote__who { margin: 1.1rem 0 0; font-size: .75rem; flex: 0 0 auto; }

/* ---------- 12. MASONRY GRID (notable work) ---------- */
/* Uniform tiles. The source photographs range from 389x800 to 1280x720, so a
   fixed square keeps the grid even; the full uncropped image is available in
   the lightbox on click. */
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.8vw, 1.5rem); }
@media (max-width: 900px) { .mgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mgrid { grid-template-columns: 1fr; } }
.tile {
  position: relative; overflow: hidden; display: block;
  width: 100%; aspect-ratio: 1 / 1;
  border: 0; padding: 0; background: var(--mortar); cursor: pointer;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,15,15,.78) 0%, rgba(15,15,15,.1) 55%, transparent 100%); opacity: 0; transition: opacity 600ms var(--ease); }
.tile:hover .tile__veil, .tile:focus-visible .tile__veil { opacity: 1; }
.tile__cap { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; color: var(--white); text-align: left; transform: translateY(12px); opacity: 0; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }
.tile__cap strong { display: block; font-family: var(--font-head); font-size: 1.0625rem; font-weight: 500; letter-spacing: .01em; }
.tile__cap span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mortar); }
/* touch devices have no hover: keep captions visible */
@media (hover: none) {
  .tile__veil { opacity: 1; }
  .tile__cap { opacity: 1; transform: none; }
  .pmedia__view { opacity: 1; transform: none; }
}

/* ---------- 13. LIGHTBOX ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(14,14,13,.97); display: none; }
.lb[open], .lb.is-open { display: grid; grid-template-rows: auto 1fr auto; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(1rem, 3vw, 2rem); color: var(--mortar); }
.lb__count { font-family: var(--font-head); font-size: .8125rem; letter-spacing: .16em; }
.lb__close { width: 48px; height: 48px; background: none; border: 1px solid var(--rule-invert); color: var(--limestone); cursor: pointer; font-size: 1.25rem; }
.lb__close:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
.lb__stage { display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center; padding: 0 clamp(1rem, 4vw, 3rem); overflow: auto; }
.lb__fig { margin: 0; max-width: 1200px; width: 100%; }
.lb__fig img { width: 100%; height: auto; max-height: 66vh; object-fit: contain; margin: 0 auto; }
.lb__cap { color: var(--limestone); padding: 1.25rem 0 0; max-width: 74ch; }
.lb__cap h3 { color: var(--white); margin-bottom: .5rem; }
.lb__cap p { color: rgba(243,240,233,.75); font-size: .9375rem; }
.lb__scope { font-family: var(--font-head); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin-bottom: .6rem; }
.lb__nav { display: flex; justify-content: center; gap: .75rem; padding: 1rem 0 1.5rem; }
.lb__nav button { width: 52px; height: 52px; background: none; border: 1px solid var(--rule-invert); color: var(--limestone); cursor: pointer; }
.lb__nav button:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
body.lb-open { overflow: hidden; }

/* ---------- 14. ALTERNATING SERVICE ROWS ---------- */
.srow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.srow + .srow { margin-top: var(--section); }
.srow--rev .srow__media { order: 2; }
@media (max-width: 900px) { .srow, .srow--rev { grid-template-columns: 1fr; } .srow--rev .srow__media { order: 0; } }
.srow__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mortar); }
.srow__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.srow__media:hover img { transform: scale(1.03); }

.minor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 860px) { .minor { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .minor { grid-template-columns: 1fr; } }
.minor__item { background: var(--limestone); padding: clamp(1.4rem, 3vw, 2.1rem); }
.minor__item h3 { font-size: 1.1875rem; margin-bottom: .4rem; }
.minor__item p { font-size: .9375rem; color: var(--text-muted); margin: 0; }

/* ---------- 15. TIMELINE ---------- */
.tl { position: relative; padding-left: 2.25rem; }
.tl::before { content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 1px; background: var(--mortar); }
.tl__item + .tl__item { margin-top: clamp(2rem, 4vw, 3.25rem); }
.tl__item { position: relative; }
.tl__item::before { content: ""; position: absolute; left: -2.25rem; top: .55rem; width: 15px; height: 15px; border-radius: 50%; background: var(--limestone); border: 2px solid var(--mortar); transition: background 500ms var(--ease), border-color 500ms var(--ease); }
.tl__item.is-in::before { background: var(--brick); border-color: var(--brick); }
.tl__yr { font-family: var(--font-head); font-size: 1.5rem; color: var(--brick); line-height: 1; }
.tl__item h3 { font-size: 1.25rem; margin: .45rem 0 .5rem; }
.tl__item p { color: var(--text-muted); font-size: .9375rem; margin: 0; }

/* ---------- 16. TEAM ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }
.team__m {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.team__m:last-child { border-right: 0; }
@media (max-width: 760px) { .team__m { border-right: 0; padding-left: 0; padding-right: 0; } }
.team__role {
  font-family: var(--font-head); font-size: .6875rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brick);
  margin: 0 0 .65rem;
}
.team__m h3 { font-size: clamp(1.25rem, 2.1vw, 1.625rem); margin: 0; }

/* ---------- 17. COMMITMENTS ---------- */
.commit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule-invert); }
@media (max-width: 860px) { .commit { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .commit { grid-template-columns: 1fr; } }
.commit__i { padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.75rem); border-right: 1px solid var(--rule-invert); border-bottom: 1px solid var(--rule-invert); }
.commit__i:last-child { border-right: 0; }
.commit__n { font-family: var(--font-head); font-size: .75rem; letter-spacing: .2em; color: var(--stone); }
.commit__i h3 { font-size: 1.25rem; margin: .7rem 0 .55rem; }
.commit__i p { font-size: .9375rem; color: rgba(243,240,233,.72); margin: 0; }

/* ---------- 18. FORM ---------- */
.form-wrap { display: grid; grid-template-columns: 58% 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.f-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fgrid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; }
.field label { font-family: var(--font-head); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; }
.field .req { color: var(--brick); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  border: 1px solid var(--rule); padding: .9rem 1rem; min-height: 54px; width: 100%;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(138,63,50,.16); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.f-err { color: #B3261E; font-size: .8125rem; margin-top: .4rem; min-height: 1px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.15rem; font-size: .9375rem; margin-bottom: 1.25rem; }
.alert:empty { display: none; }
.alert--ok { background: #E7F4EA; border: 1px solid #B7DDC1; color: #1C5F2C; }
.alert--bad { background: #FDECEC; border: 1px solid #F3C0C0; color: #B3261E; }

.info__row { padding: 1.15rem 0; border-top: 1px solid var(--rule); }
.info__row:last-child { border-bottom: 1px solid var(--rule); }
.info__k { font-family: var(--font-head); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .3rem; }
.info__v { font-size: 1.0625rem; }
.info__v a:hover { color: var(--brick); }

/* ---------- 19. FOOTER ---------- */
.ftr { background: var(--charcoal); color: rgba(243,240,233,.72); font-size: .9375rem; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(1.75rem, 4vw, 3.5rem); padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(1.75rem, 3vw, 2.5rem); }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr h2 { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); font-weight: 500; margin-bottom: 1.1rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: .55rem; }
.ftr a:hover { color: var(--brick); }
.ftr__logo { width: 132px; margin-bottom: 1.1rem; }
.ftr__blurb { max-width: 34ch; }
.ftr__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.ftr__social a { width: 40px; height: 40px; border: 1px solid var(--rule-invert); display: grid; place-items: center; }
.ftr__social a:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
.ftr__social svg { width: 17px; height: 17px; fill: currentColor; }
.ftr__bar { background: var(--white); }
.ftr__bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; padding: 1.05rem 0; }
.ftr__copy { color: #55595C; font-size: .8125rem; margin: 0; }
.ftr__by img { width: 190px; }
.ftr__by:hover { opacity: .72; }

/* ---------- 20. SCROLL REVEAL ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-mask] { clip-path: inset(0 100% 0 0); transition: clip-path 1100ms var(--ease); }
.js [data-reveal-mask].is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], [data-reveal-mask] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero__img img { animation: none; transform: none; }
}

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; z-index: 1200; background: var(--brick); color: #fff; padding: .9rem 1.25rem; }
.skip:focus { left: 1rem; top: 1rem; }
