/* RMC Construction — site styles
   Palette: warm paper / stone neutrals, ink text, muted bronze accent.
   All text/background pairs checked to WCAG AA (body 8.7:1, muted 4.9–5.4:1). */

:root {
  --paper: #f8f6f2;
  --stone: #eeeae3;
  --ink: #1d1b18;
  --ink-2: #2a2723;
  --text: #4b463f;
  --muted: #6b645b;
  --line: #d8d1c5;
  --accent: #7f6140;
  --on-dark: #e9e4dc;
  --on-dark-muted: #a39b8f;
  --ph: #f1e3bf;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 5vw, 72px);
  --section: clamp(88px, 11vw, 168px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}
@media (min-width: 960px) { :root { --header-h: 84px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 300 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -.005em;
  margin: 0;
}
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--stone { background: var(--stone); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 18px; text-decoration: none;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.on-dark :focus-visible, .site-header:not(.is-solid) :focus-visible { outline-color: currentColor; }

/* Placeholder marker — visible on purpose so unknowns are easy to spot and replace */
.ph {
  display: inline-block;
  background: var(--ph);
  color: var(--ink);
  font: 500 .78em/1.5 var(--sans);
  letter-spacing: .04em;
  text-transform: none;
  padding: 0 .45em;
  border-radius: 2px;
  white-space: nowrap;
  vertical-align: .08em;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block;
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.h-display { font-size: clamp(44px, 7.2vw, 108px); line-height: .98; }
.h-1 { font-size: clamp(44px, 6vw, 84px); }
.h-2 { font-size: clamp(36px, 4.4vw, 60px); }
.h-3 { font-size: clamp(28px, 3vw, 40px); }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.7; color: var(--text); max-width: 34em; }
.muted { color: var(--muted); }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 13px/1 var(--sans);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 10px 0 9px;
  border-bottom: 1px solid currentColor;
  transition: color .4s var(--ease), gap .4s var(--ease);
}
.link:hover { color: var(--accent); gap: 18px; }
.link .arrow { width: 18px; height: 10px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 34px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 0;
  font: 500 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }

/* Ornament rule: hairline — diamond — hairline */
.rule { display: flex; align-items: center; gap: 18px; color: var(--accent); margin-bottom: 40px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rule span { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); flex: none; }
.rule--left::before { flex: 0 0 0; display: none; }
.rule--short { max-width: 220px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.site-header.is-solid {
  background: rgba(248, 246, 242, .97);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-solid { background: rgba(248, 246, 242, .9); backdrop-filter: saturate(1.2) blur(14px); }
}
.site-header::before { /* soft shade so white nav reads over any photo */
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,16,14,.5), rgba(18,16,14,0));
  transition: opacity .5s var(--ease);
}
.site-header.is-solid::before { opacity: 0; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1; }
.brand-mark { font: 600 28px/1 var(--serif); letter-spacing: .16em; margin-right: -.16em; }
.brand-sub { font: 500 9px/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; margin-top: 6px; }
@media (min-width: 960px) { .brand-mark { font-size: 32px; } .brand-sub { font-size: 10px; } }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(22px, 2.6vw, 40px); }
.nav a {
  font: 400 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  padding: 10px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1px; }
.header-phone {
  display: none; align-items: center; gap: 10px;
  font: 500 14px/1 var(--sans); letter-spacing: .08em; text-decoration: none;
  padding-left: clamp(22px, 2.6vw, 40px); border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 35%, transparent);
}
.header-phone svg { width: 15px; height: 15px; }
@media (min-width: 960px) {
  .nav { display: flex; align-items: center; }
  .header-phone { display: inline-flex; }
}

.header-actions { display: flex; align-items: center; gap: 6px; }
@media (min-width: 960px) { .header-actions { display: none; } }
.call-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border: 1px solid currentColor; text-decoration: none;
  font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.call-btn svg { width: 14px; height: 14px; }
.menu-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.menu-btn span { display: block; width: 24px; height: 1px; background: currentColor; position: relative; transition: background .3s; }
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 1px; background: currentColor;
  transition: transform .4s var(--ease);
}
.menu-btn span::before { transform: translateY(-7px); }
.menu-btn span::after { transform: translateY(7px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: rotate(45deg); }
.menu-open .menu-btn span::after { transform: rotate(-45deg); }

/* Mobile menu panel */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--on-dark);
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.menu-open .site-header { color: var(--on-dark); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .site-header::before { opacity: 0; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li + li { border-top: 1px solid rgba(233, 228, 220, .14); }
.mobile-nav a.big { display: block; padding: 16px 0; font: 500 38px/1.1 var(--serif); text-decoration: none; }
.mobile-nav .mn-foot { font-size: 15px; color: var(--on-dark-muted); }
.mobile-nav .mn-foot a { color: var(--on-dark); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 560px; height: 100vh; height: 100svh;
  color: #fff; overflow: hidden; background: var(--ink);
}
/* Slideshow: the new slide fades in over the old one, then the old one is hidden.
   Each active slide drifts slowly (scale 1.07 -> 1) for a quiet push-in. */
.hero-slides, .hero-slide, .hero-slide picture, .hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides { z-index: 0; overflow: hidden; } /* own stacking context, so the shade (::after) sits above every slide */
.hero-slide img { object-fit: cover; }
.hero-slide { opacity: 0; z-index: 0; }
.hero-slide.is-leaving { opacity: 1; z-index: 1; }
.hero-slide.is-active { opacity: 1; z-index: 2; transition: opacity 2.2s ease-in-out; }
html.js .hero-slide:not(.is-active):not(.is-leaving) { transition: none; }
html.js .hero-slide.is-active picture, html.js .hero-slide.is-leaving picture { animation: drift calc(var(--interval, 7s) + 2.6s) linear both; }
@keyframes drift { from { transform: scale(1.07); } to { transform: scale(1); } }
html.js .hero-slide:first-child img { animation: heroIn 2.6s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }
.hero.is-paused .hero-slide picture { animation-play-state: paused; }

.hero-controls {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 26px;
  display: flex; align-items: center; gap: 18px; color: #fff;
}
.hero-caption {
  display: none; align-items: center; gap: 12px; text-decoration: none;
  font: 400 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 0; transition: opacity .6s var(--ease);
}
.hero-caption .hc-label { color: rgba(255,255,255,.7); }
.hero-caption .hc-label::after { content: ""; display: inline-block; width: 18px; height: 1px; background: rgba(255,255,255,.5); vertical-align: middle; margin-left: 12px; }
.hero-caption .arrow { width: 18px; height: 10px; transition: transform .5s var(--ease); }
.hero-caption:hover .arrow { transform: translateX(4px); }
.hero-caption.is-swapping { opacity: 0; }
@media (min-width: 960px) { .hero-caption { display: inline-flex; margin-right: 10px; } }
.hero-dots { display: flex; gap: 4px; }
.hero-dot { width: 34px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.hero-dot i { display: block; height: 1px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero-dot i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active i::after { animation: dotfill var(--interval, 7s) linear both; }
.hero.is-paused .hero-dot.is-active i::after, .hero.no-auto .hero-dot.is-active i::after { animation: none; transform: none; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero-pause {
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: none; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #fff;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.hero-pause:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-pause svg { width: 16px; height: 16px; display: block; }
.hero-pause .ic-play, .hero.is-paused .hero-pause .ic-pause { display: none; }
.hero.is-paused .hero-pause .ic-play { display: block; }
.hero.no-auto .hero-pause { display: none; }
@media (max-width: 959px) {
  /* keep the scroll cue clear of the controls on phones */
  .hero .scroll-cue { left: var(--gutter); transform: none; align-items: flex-start; }
  .hero-content { padding-bottom: 136px; } /* clear the scroll cue + slide controls */
  .hero-dot { width: 24px; }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18,16,14,.35) 0%, rgba(18,16,14,0) 30%),
    linear-gradient(0deg, rgba(18,16,14,.78) 0%, rgba(18,16,14,.4) 45%, rgba(18,16,14,0) 72%),
    linear-gradient(90deg, rgba(18,16,14,.35) 0%, rgba(18,16,14,0) 60%);
}
.hero-content {
  position: absolute; z-index: 2; inset: auto 0 0 0;
  padding-bottom: clamp(96px, 14vh, 150px);
}
.hero .eyebrow { color: rgba(255,255,255,.88); }
.hero h1 { color: #fff; max-width: 9.5em; }
.hero-intro { margin: 26px 0 0; max-width: 30em; font-size: clamp(17px, 1.4vw, 19px); font-weight: 400; color: #fff; text-shadow: 0 1px 18px rgba(0,0,0,.35); }
html.js .hero-content > * { animation: rise 1.6s var(--ease) both; }
html.js .hero-content > :nth-child(1) { animation-delay: .5s; }
html.js .hero-content > :nth-child(2) { animation-delay: .7s; }
html.js .hero-content > :nth-child(3) { animation-delay: .95s; }
html.js .hero-content > :nth-child(4) { animation-delay: 1.2s; }
.hero-trust {
  display: flex; align-items: center; gap: 14px; margin: 26px 0 0;
  font: 500 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.9);
}
.hero-trust::before { content: ""; width: 28px; height: 1px; background: rgba(255,255,255,.6); flex: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
  font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; margin-right: -.3em;
}
.scroll-cue i { display: block; width: 1px; height: 46px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: #fff;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(48px, 6vw, 88px); }
.section-head .rule { max-width: 420px; margin-inline: auto; }

/* ---------- Project cards ---------- */
.card-grid { display: grid; gap: 56px clamp(16px, 2.6vw, 40px); }
@media (min-width: 720px) {
  .card-grid { grid-template-columns: 1fr 1fr; row-gap: clamp(56px, 7vw, 104px); }
  .card-grid--stagger > :nth-child(even) { margin-top: clamp(64px, 9vw, 140px); }
}
@media (min-width: 1200px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; text-decoration: none; color: inherit; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.8s var(--ease), filter 1.2s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 22px; }
.card-title { font-size: clamp(26px, 2.4vw, 34px); }
.card-town { display: block; margin-top: 8px; font: 400 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card-cat { font: 400 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.card .arrow { width: 22px; height: 12px; color: var(--accent); flex: none; transform: translateX(-6px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.card:hover .arrow, .card:focus-visible .arrow { transform: none; opacity: 1; }
.center-link { text-align: center; margin-top: clamp(56px, 7vw, 96px); }

/* ---------- Craft ---------- */
.craft { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .craft { grid-template-columns: 5fr 6fr; } }
.craft-media { aspect-ratio: 4 / 5; overflow: hidden; }
.craft-media img { width: 100%; height: 100%; object-fit: cover; }
.craft-copy { max-width: 560px; }
.craft-copy h2 { margin-bottom: 32px; }
.craft-copy .link { margin-top: 30px; }

/* ---------- Services ---------- */
.services { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 900px) { .services { grid-template-columns: 4fr 8fr; align-items: start; } .services > :first-child { position: sticky; top: calc(var(--header-h) + 48px); } }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: clamp(24px, 4vw, 64px); }
@media (min-width: 640px) { .service-list { grid-template-columns: 1fr 1fr; } }
.service-list li { border-top: 1px solid var(--line); padding: 26px 0 30px; }
.service-list h3 { font-size: clamp(24px, 2.1vw, 28px); margin-bottom: 8px; }
.service-list p { font-size: 15.5px; font-weight: 400; line-height: 1.65; color: var(--muted); max-width: 30em; }
.service-list .num { display: block; font: 400 12px/1 var(--sans); letter-spacing: .2em; color: var(--accent); margin-bottom: 14px; }

/* ---------- Tri-City division ---------- */
.division {
  display: grid; gap: 0; border: 1px solid var(--line); background: #fff;
}
@media (min-width: 900px) { .division { grid-template-columns: 5fr 7fr; } }
.division-media { position: relative; min-height: 280px; overflow: hidden; }
.division-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.division-copy { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.division-logo { width: 150px; height: auto; margin-bottom: 30px; mix-blend-mode: multiply; }
.division-copy h2 { margin-bottom: 18px; }
.division-copy p { max-width: 32em; }
.division-copy .link { margin-top: 26px; align-self: flex-start; }

/* ---------- Contact / form ---------- */
.contact { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 960px) { .contact { grid-template-columns: 5fr 7fr; } }
.contact-copy h2 { margin-bottom: 24px; }
.details { margin: 40px 0 0; display: grid; gap: 22px; }
.details div { border-top: 1px solid var(--line); padding-top: 16px; }
.details dt { font: 500 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.details dd { margin: 0; font-size: 18px; color: var(--ink); }
.details a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.details a:hover { background-size: 100% 1px; }

.form { display: grid; gap: 28px 28px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field label { display: block; font: 500 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.field label .opt { color: var(--muted); letter-spacing: .08em; text-transform: none; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 0;
  font: 300 17px/1.4 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid #8e867b; border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d1b18' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px; cursor: pointer;
}
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 1px solid var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #9b2c1f; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.form-note { font-size: 14px; font-weight: 400; color: var(--muted); margin: 0; }
.hp { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(72px, 9vw, 120px) 0 36px; font-size: 15.5px; font-weight: 400; }
.footer-top { display: grid; gap: 48px; padding-bottom: clamp(56px, 7vw, 88px); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 4fr 3fr 3fr 2fr; } }
.site-footer .brand { color: #fff; margin-bottom: 22px; }
.footer-tag { color: var(--on-dark-muted); max-width: 22em; }
.f-head { font: 500 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.site-footer a:hover { background-size: 100% 1px; }
.social { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(233,228,220,.28); background: none; transition: border-color .4s var(--ease); }
.social a:hover { border-color: var(--on-dark); }
.social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(233, 228, 220, .14); padding-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  font-size: 13.5px; color: var(--on-dark-muted);
}

/* ---------- Interior page header ---------- */
.page-head { padding: calc(var(--header-h) + clamp(64px, 9vw, 128px)) 0 clamp(48px, 6vw, 88px); }
.page-head h1 { margin-bottom: 26px; }
.breadcrumb { font: 400 12.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-hidden] { margin: 0 10px; }

/* ---------- Project page ---------- */
.project-intro { display: grid; gap: 32px 64px; align-items: end; }
@media (min-width: 900px) { .project-intro { grid-template-columns: 7fr 5fr; } }
.project-intro h1 { margin-bottom: 14px; }
.project-town { font: 400 14px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.project-hero { display: grid; gap: clamp(12px, 1.6vw, 24px); }
.project-hero--pair { grid-template-columns: 1fr 1fr; }
.project-hero button { aspect-ratio: 3 / 2; }
.project-hero--pair button { aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .project-hero--single button { aspect-ratio: 16 / 9; } }
.project-body { display: grid; gap: 40px 64px; padding-block: clamp(64px, 8vw, 120px); }
@media (min-width: 900px) { .project-body { grid-template-columns: 7fr 5fr; } }
.project-body .lede { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; color: var(--ink); font-weight: 500; max-width: 24em; }
.scope { margin: 0; display: grid; gap: 0; }
.scope div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; border-top: 1px solid var(--line); padding: 16px 0; }
.scope dt { font: 500 11.5px/1.7 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.scope dd { margin: 0; color: var(--ink); }
.scope ul { list-style: none; margin: 0; padding: 0; }

.gallery { columns: 1; column-gap: clamp(12px, 1.6vw, 24px); }
@media (min-width: 640px) { .gallery { columns: 2; } }
.gallery--single { columns: 1 !important; max-width: 860px; margin-inline: auto; }
.gallery li { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 24px); }
.gallery ul, ul.gallery { list-style: none; margin: 0; padding: 0; }
.zoom {
  display: block; width: 100%; padding: 0; border: 0; background: var(--stone);
  cursor: zoom-in; overflow: hidden; position: relative;
}
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), opacity .6s var(--ease); }
.zoom:hover img { transform: scale(1.025); }

.next-project { border-top: 1px solid var(--line); margin-top: clamp(64px, 8vw, 120px); }
.next-project a {
  display: grid; gap: 28px; align-items: center; padding-block: clamp(56px, 7vw, 96px); text-decoration: none;
}
@media (min-width: 720px) { .next-project a { grid-template-columns: 1fr 260px; } }
.next-project .np-title { font: 500 clamp(36px, 5vw, 68px)/1 var(--serif); color: var(--ink); transition: color .4s var(--ease); }
.next-project a:hover .np-title { color: var(--accent); }
.next-project .np-img { aspect-ratio: 4 / 3; overflow: hidden; }
.next-project .np-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Lightbox (native <dialog>) ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(18, 16, 14, .97); color: var(--on-dark);
}
.lightbox::backdrop { background: rgba(18, 16, 14, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); min-height: 64px; }
.lb-count { font: 400 13px/1 var(--sans); letter-spacing: .2em; color: var(--on-dark-muted); }
.lb-stage { position: relative; min-height: 0; overflow: hidden; }
.lb-stage img {
  position: absolute; inset: 0 clamp(8px, 6vw, 96px); margin: auto;
  max-width: calc(100% - 2 * clamp(8px, 6vw, 96px)); max-height: 100%; width: auto; height: auto;
  object-fit: contain; transition: opacity .35s var(--ease);
}
.lb-caption { font-size: 15px; color: var(--on-dark-muted); max-width: 60em; margin: 0; }
.lb-btn {
  width: 48px; height: 48px; display: grid; place-items: center; flex: none;
  background: none; border: 1px solid rgba(233, 228, 220, .3); color: var(--on-dark); cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.lb-btn:hover { border-color: var(--on-dark); background: rgba(255,255,255,.06); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-nav { display: flex; gap: 10px; }
.lightbox :focus-visible { outline: 2px solid var(--on-dark); outline-offset: 3px; }

/* ---------- About ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.split-media { aspect-ratio: 4 / 3; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { max-width: 560px; }
.split-copy h2 { margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 4vw, 56px); } }
.steps li { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.steps h3 { font-size: clamp(26px, 2.4vw, 32px); margin: 0 0 12px; }
.steps .num { display: block; font: 400 12px/1 var(--sans); letter-spacing: .2em; color: var(--accent); margin-bottom: 18px; }
.steps p { color: var(--muted); }
.duo { display: grid; gap: clamp(12px, 1.6vw, 24px); }
@media (min-width: 720px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo figure { margin: 0; }
.duo .m { aspect-ratio: 4 / 3; overflow: hidden; }
.duo img { width: 100%; height: 100%; object-fit: cover; }
.towns { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 0; }
.towns li { font: 500 clamp(24px, 2.4vw, 32px)/1.2 var(--serif); color: var(--ink); }
.towns li:not(:last-child)::after { content: "·"; color: var(--accent); margin: 0 .55em; }

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 22px; }
.cta-band p { margin: 0 auto 36px; max-width: 32em; }

/* Testimonials (off by default; see SHOW_TESTIMONIALS in tools/build_site.py) */
.quotes { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { margin: 0; border-top: 1px solid var(--line); padding-top: 32px; }
.quote blockquote { margin: 0 0 22px; }
.quote blockquote p { font: 500 clamp(22px, 2vw, 28px)/1.4 var(--serif); color: var(--ink); }
.quote .q-name { display: block; font: 500 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.quote .q-town { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Simple centered message pages */
.message { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 64px) 0 96px; }
.message h1 { margin-bottom: 22px; }
.message p { max-width: 30em; margin: 0 auto 34px; }

/* ---------- Reveal on scroll (JS adds .js to <html>) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

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

/* rmc-site-final: keep the one-word "CONSTRUCTION" hero title on screen on the narrowest phones */
@media (max-width: 380px) { .hero .h-display { font-size: 11.4vw; } }
