/* ==========================================================================
   Macon Renovation Group — public site
   1. Tokens  2. Base  3. Type  4. Motion system  5. Layout helpers  6. Buttons
   7. Navigation  8. Hero  9. Homepage sections  10. Portfolio & project pages
   11. Footer, lightbox, mobile bar  12. Responsive  13. Calm mode (reduced motion)
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* brand navy (from the client's design) */
  --navy-950: #070d1a;
  --navy-900: #0f1a30;
  --navy-800: #1a2744;
  --navy-700: #243156;
  /* warm architectural neutrals */
  --ivory: #f7f4ee;
  --stone: #ece7de;
  --sand: #d9cfbf;
  --taupe: #8c8373;
  --line: #e1dbd0;
  --line-dark: rgba(255, 255, 255, .14);
  --ink: #161c2b;
  --body: #4b5061;
  --muted: #7b7e88;
  /* restrained brass accent */
  --brass: #b8955c;
  --brass-light: #cfb07a;
  --brass-deep: #8a6b3b;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-font: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif; /* navigation bar + top bar */

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(88px, 11vw, 168px);
  --radius: 2px;
  --nav-h: 88px;
  --nav-top: 40px;        /* info strip above the navigation (desktop only) */

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .3s;
  --t-base: .7s;
  --t-reveal: 1.1s;
  --shift: 34px;          /* how far elements travel as they reveal (0 in calm mode) */
  --stagger: 90ms;        /* delay between items in a group */
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
[id] { scroll-margin-top: 76px; }
[hidden] { display: none !important; }
section[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: #fff; color: var(--navy-900); padding: 12px 18px; font-weight: 600; }
.skip-link:focus { left: 0; }
::selection { background: var(--brass-light); color: var(--navy-950); }

/* 3. Type ------------------------------------------------------------------ */
.eyebrow { display: inline-flex; align-items: center; gap: 16px; font-size: .78rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 1.4rem; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow-light { color: var(--brass-light); }
.display, .h2, .h3, .hero-title, .page-title { font-family: var(--serif); font-weight: 500; color: var(--navy-900); letter-spacing: -.015em; }
.display { font-size: clamp(2.3rem, 5.4vw, 5.2rem); line-height: 1.06; }
.display em, .hero-title em { font-style: italic; color: var(--brass-deep); }
.display-light, .section-dark .h2, .section-dark .display { color: #fff; }
.h2 { font-size: clamp(2.1rem, 4.2vw, 3.7rem); line-height: 1.08; }
.h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.25; margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.75; color: var(--body); font-weight: 300; }
.section-intro { max-width: 30rem; color: var(--body); font-size: 1.05rem; }
.section-dark .section-intro, .section-dark .lead { color: rgba(255, 255, 255, .72); }

.link-arrow { display: inline-flex; align-items: center; gap: .8rem; padding-bottom: 6px; border-bottom: 1px solid var(--brass); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--navy-900); transition: gap var(--t-fast) var(--ease-out), color var(--t-fast); }
.link-arrow::after { content: '→'; font-size: 1rem; letter-spacing: 0; transition: transform var(--t-fast) var(--ease-out); }
.link-arrow:hover { gap: 1.15rem; color: var(--brass-deep); }
.link-arrow-sm { font-size: .74rem; letter-spacing: .14em; }
.link-arrow-light { color: #fff; }
.link-arrow-light:hover { color: var(--brass-light); }

/* 4. Motion system ----------------------------------------------------------
   data-reveal            fade + rise when scrolled into view
   data-reveal="lines"    each .line slides up out of a mask
   data-reveal="mask"     image wipes open from the bottom while settling from a zoom
   data-stagger           children reveal one after another (JS sets --i)
   data-parallax="0.08"   drifts with scroll (desktop only)
   data-pointer           image leans slightly toward the pointer (desktop only)
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, var(--shift), 0); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--i, 0) * var(--stagger)); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; }
.js [data-reveal="lines"] { opacity: 1; transform: none; }
.js [data-reveal="lines"] .line > span { transform: translate3d(0, 108%, 0); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--li, 0) * 120ms); }
.js [data-reveal="lines"].is-in .line > span { transform: none; }
.line:nth-child(2) > span { --li: 1; }
.line:nth-child(3) > span { --li: 2; }
.line:nth-child(4) > span { --li: 3; }

.js [data-reveal="mask"] { opacity: 1; transform: none; --rz: 1.16; }
.js [data-reveal="mask"]::before { content: ''; position: absolute; inset: 0; z-index: 3; background: var(--curtain, #fff); transform-origin: 50% 0; transition: transform 1.35s var(--ease-in-out); pointer-events: none; }
.js [data-reveal="mask"].is-in { --rz: 1; }
.js [data-reveal="mask"].is-in::before { transform: scaleY(0); }

/* every animated photo shares one transform so reveal zoom, hover zoom and pointer lean combine */
.zoomable img, .frame img, .service-media img, .project-media img, .gallery-item img {
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(calc(var(--zoom, 1) * var(--rz, 1)));
  transition: transform 1.6s var(--ease-out);
  will-change: transform;
}
[data-parallax] { will-change: transform; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translate3d(0, var(--shift), 0); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translate3d(0, 108%, 0); } to { transform: none; } }

/* page-to-page transitions (browsers with View Transitions support) */
::view-transition-old(root) { animation: .35s var(--ease-in-out) both vtOut; }
::view-transition-new(root) { animation: .55s var(--ease-out) both vtIn; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: var(--ease-in-out); }

/* 5. Layout helpers -------------------------------------------------------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding: var(--section) 0; }
.section-dark { background: var(--navy-900); color: #fff; --curtain: var(--navy-900); }
.section-ivory { background: var(--ivory); --curtain: var(--ivory); }
.section-stone { background: var(--stone); --curtain: var(--stone); }
.section-head { margin-bottom: clamp(48px, 6vw, 92px); }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; flex-wrap: wrap; }
.section-head .h2 { margin: 0; }
.frame { position: relative; overflow: hidden; background: var(--stone); }
.frame-inner { position: relative; height: 114%; margin-top: -7%; }
.frame-inner img { width: 100%; height: 100%; object-fit: cover; }

/* 6. Buttons --------------------------------------------------------------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; overflow: hidden; padding: 17px 32px; border: 1px solid transparent; border-radius: var(--radius); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; text-align: center; isolation: isolate; transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 12px 22px; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light::before { background: var(--brass-light); }
.btn-light:hover { color: var(--navy-950); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover { color: var(--navy-900); border-color: #fff; }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark::before { background: var(--brass); }
.btn-dark:hover { color: var(--navy-950); }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--sand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.round-btn:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.round-btn:active { transform: scale(.94); }

/* 7. Navigation ------------------------------------------------------------ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; color: #fff; transition: transform .55s var(--ease-out), background .45s, box-shadow .45s; animation: fadeIn .9s ease .35s backwards; }
.nav::before { content: ''; position: absolute; inset: 0 0 -40px 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 13, 26, .55), rgba(7, 13, 26, 0)); pointer-events: none; transition: opacity .45s; }
.nav.is-solid { background: var(--navy-900); box-shadow: 0 1px 0 var(--line-dark), 0 18px 40px rgba(7, 13, 26, .22); }
.nav.is-solid::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-100%); box-shadow: none; }
.nav.is-solid { border-bottom: 1px solid rgba(207, 176, 122, .22); }

/* Info strip */
.nav-top { display: flex; align-items: center; gap: 2rem; height: var(--nav-top); padding: 0 var(--gutter); overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .1); font-family: var(--nav-font); font-size: .8rem; font-weight: 400; letter-spacing: .01em; color: rgba(255, 255, 255, .7); transition: height .45s var(--ease-out), opacity .3s, border-color .3s; }
.nav.is-solid .nav-top { height: 0; opacity: 0; border-color: transparent; }
.nav-top-item { display: flex; align-items: center; gap: .7rem; white-space: nowrap; }
.nav-top-mark { width: 6px; height: 6px; background: var(--brass-light); transform: rotate(45deg); }
.nav-top-areas, .nav-top-license { padding-left: 2rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.nav-top-license { font-weight: 600; letter-spacing: .04em; color: #fff; }
.nav-top-right { margin-left: auto; gap: 1.6rem; }
.nav-top-right span { color: var(--brass-light); }
.nav-top a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color var(--t-fast); }
.nav-top a:hover { color: #fff; }

/* Main bar */
.nav-bar { height: var(--nav-h); display: flex; align-items: center; gap: 2rem; padding: 0 var(--gutter); transition: height .45s var(--ease-out); }
.nav.is-solid .nav-bar { height: 74px; }
.nav-logo { display: flex; align-items: center; gap: 15px; text-decoration: none; flex-shrink: 0; position: relative; z-index: 2; }
.nav-box, .foot-box { display: block; flex-shrink: 0; height: auto; }
.nav-box { width: 46px; color: #fff; }
.nav-pipe { width: 1px; height: 42px; background: linear-gradient(180deg, transparent, rgba(207, 176, 122, .7), transparent); }
.nav-text { display: flex; flex-direction: column; gap: 6px; }
.nav-text .macon { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1; letter-spacing: .1em; }
.nav-text .dev { font-size: 9px; font-weight: 500; letter-spacing: .34em; line-height: 1; color: rgba(255, 255, 255, .78); }
.nav-menu { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 1.9vw, 2.2rem); }
.nav-links a { position: relative; display: block; padding: 12px 0; font-family: var(--nav-font); font-size: 15px; font-weight: 500; letter-spacing: .01em; text-decoration: none; white-space: nowrap; color: rgba(255, 255, 255, .86); transition: color var(--t-fast); }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--brass-light); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav-links a::before { content: ''; position: absolute; left: 50%; top: 0; width: 4px; height: 4px; margin-left: -2px; background: var(--brass-light); transform: rotate(45deg) scale(0); transition: transform .35s var(--ease-out); }
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active::before { transform: rotate(45deg) scale(1); }
.nav-menu-foot { display: none; }
.nav-actions { display: flex; align-items: center; gap: 1.6rem; position: relative; z-index: 2; }
.nav-phone { display: flex; align-items: center; gap: .75rem; padding-left: 1.8rem; border-left: 1px solid rgba(255, 255, 255, .16); text-decoration: none; color: #fff; white-space: nowrap; }
.nav-phone-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(207, 176, 122, .55); border-radius: 50%; color: var(--brass-light); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.nav-phone-text { display: flex; flex-direction: column; gap: 4px; }
.nav-phone-label { font-size: .68rem; font-weight: 500; letter-spacing: .2em; line-height: 1; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.nav-phone-number { font-family: var(--serif); font-size: 1.08rem; line-height: 1; letter-spacing: .02em; font-variant-numeric: lining-nums; }
.nav-phone:hover .nav-phone-icon { background: var(--brass-light); border-color: var(--brass-light); color: var(--navy-950); }
.nav-phone:hover .nav-phone-number { color: var(--brass-light); }
.nav-cta { padding: 15px 24px; white-space: nowrap; }
.btn-arrow { transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.nav-toggle { display: none; width: 46px; height: 46px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

/* 8. Hero ------------------------------------------------------------------ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--navy-950); isolation: isolate; }
.hero-media, .page-hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; animation: heroReveal 1.6s var(--ease-in-out) both; }
.hero-media-inner { position: absolute; inset: 0; transform: scale(1.04); transform-origin: 50% 40%; }
.hero-poster, .hero-video, .page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster, .page-hero-img { animation: heroZoom 2.6s var(--ease-out) both; }
.hero-video { opacity: 0; transition: opacity 1.4s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(7, 13, 26, .7) 0%, rgba(7, 13, 26, .34) 45%, rgba(7, 13, 26, .04) 100%),
  linear-gradient(0deg, rgba(7, 13, 26, .78) 0%, rgba(7, 13, 26, 0) 45%),
  linear-gradient(180deg, rgba(7, 13, 26, .5) 0%, rgba(7, 13, 26, 0) 22%); }
@keyframes heroReveal { from { clip-path: inset(9% 7% 9% 7%); } to { clip-path: inset(0); } }
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero-inner { padding-top: calc(var(--nav-h) + var(--nav-top) + 3rem); }
.hero-content { max-width: 64rem; }
.hero-title { font-size: clamp(2.8rem, min(6vw, 10.5vh), 6.2rem); line-height: 1.02; color: #fff; margin-bottom: 1.6rem; }
.hero-title .line > span { animation: lineUp 1.25s var(--ease-out) both; animation-delay: calc(.5s + var(--li, 0) * .13s); }
.hero-eyebrow { animation: riseIn 1s var(--ease-out) .35s both; }
.hero-lead { max-width: 36rem; font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.7; font-weight: 300; color: rgba(255, 255, 255, .84); margin-bottom: 2.2rem; animation: riseIn 1.1s var(--ease-out) .85s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; animation: riseIn 1.1s var(--ease-out) 1s both; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.6rem 0 1.8rem; margin-top: clamp(2rem, 5vh, 3.5rem); border-top: 1px solid rgba(255, 255, 255, .16); animation: fadeIn 1.2s ease 1.25s both; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.hero-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--brass-light); }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .7); }
.scroll-cue i { position: relative; width: 1px; height: 36px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: var(--brass-light); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-16px); } 100% { transform: translateY(36px); } }
.hero-pause { width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background var(--t-fast), border-color var(--t-fast); }
.hero-pause:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.hero-pause .i-play, .hero-pause.is-paused .i-pause { display: none; }
.hero-pause.is-paused .i-play { display: block; }

/* 9. Homepage sections ----------------------------------------------------- */
/* A. Introduction */
.intro-statement { font-size: clamp(2.1rem, 4.3vw, 4.4rem); margin-bottom: clamp(56px, 7vw, 110px); }
.intro-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(24px, 3vw, 48px); align-items: center; }
.intro-media { grid-column: 1 / span 6; aspect-ratio: 4 / 4.6; }
.intro-copy { grid-column: 8 / span 5; }
.phases { display: grid; grid-template-columns: 1fr 1fr; margin: 2.6rem 0 2.8rem; border-top: 1px solid var(--line); }
.phases li { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 1rem 1.4rem 0; border-bottom: 1px solid var(--line); }
.phases li:nth-child(odd) { border-right: 1px solid var(--line); }
.phases li:nth-child(even) { padding-left: 1.6rem; }
.phase-num { font-size: .76rem; letter-spacing: .16em; color: var(--brass-deep); font-weight: 500; }
.phase-name { font-family: var(--serif); font-size: 1.3rem; color: var(--navy-900); }

/* B. Trust band */
.trust { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 2.6rem 1.8rem; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-value { display: block; font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.6rem); color: var(--navy-900); margin-bottom: .35rem; }
.trust-label { font-size: .85rem; color: var(--muted); }

/* C. Services */
.services { background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 5vw, 76px) clamp(20px, 2.4vw, 36px); }
/* Four cards in two staggered rows: wide + narrow, then narrow + wide */
.service-card { grid-column: span 5; }
.service-card:nth-child(4n+1), .service-card:nth-child(4n) { grid-column: span 7; }
.service-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3.6; background: var(--stone); }
.service-card:nth-child(4n+1) .service-media, .service-card:nth-child(4n) .service-media { aspect-ratio: 16 / 10.4; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 13, 26, .25), transparent 55%); opacity: 0; transition: opacity .6s var(--ease-out); }
.service-card:hover .service-media { --zoom: 1.06; }
.service-card:hover .service-media::after { opacity: 1; }
.service-body { padding-top: 1.6rem; display: grid; grid-template-columns: 3.2rem 1fr; column-gap: .4rem; }
.service-body > *:not(.service-num) { grid-column: 2; }
.service-num { font-size: .78rem; font-weight: 500; letter-spacing: .14em; color: var(--brass-deep); padding-top: .55rem; }
.service-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 1.9vw, 1.8rem); line-height: 1.2; color: var(--navy-900); margin-bottom: .5rem; transition: color var(--t-fast); }
.service-card:hover .service-title { color: var(--brass-deep); }
.service-desc { color: var(--body); font-size: .98rem; margin-bottom: 1.1rem; max-width: 34rem; }

/* D. Featured projects */
.projects .section-head .h2 { color: #fff; }
.project-feature { position: relative; display: block; overflow: hidden; aspect-ratio: 21 / 9; color: #fff; text-decoration: none; background: var(--navy-800); }
.project-feature .project-media { position: absolute; inset: -6% 0; }
.project-feature .project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 13, 26, .88) 0%, rgba(7, 13, 26, .2) 55%, rgba(7, 13, 26, .05) 100%); }
.project-feature-info { position: absolute; z-index: 2; left: clamp(24px, 4vw, 64px); right: clamp(24px, 4vw, 64px); bottom: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: .7rem; max-width: 46rem; transition: transform .8s var(--ease-out); }
.project-feature-title { font-family: var(--serif); font-size: clamp(1.9rem, 4.2vw, 3.8rem); line-height: 1.05; }
.project-feature:hover .project-media { --zoom: 1.05; }
.project-feature:hover .project-feature-info { transform: translateY(-6px); }
.project-meta { font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-light); }
.project-more { display: inline-flex; align-items: center; gap: .6rem; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.project-more::after { content: '→'; font-size: .95rem; letter-spacing: 0; transition: transform var(--t-fast) var(--ease-out); }
a:hover .project-more::after { transform: translateX(6px); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 64px); margin-top: clamp(48px, 6vw, 96px); }
.project-grid .project-card:nth-child(even) { margin-top: clamp(60px, 9vw, 150px); }
.project-card { display: block; text-decoration: none; color: inherit; margin-bottom: clamp(48px, 6vw, 90px); }
.project-card .project-media { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.project-grid .project-card:nth-child(4n+1) .project-media, .project-grid .project-card:nth-child(4n) .project-media { aspect-ratio: 4 / 5; }
.project-card .project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-card:hover .project-media { --zoom: 1.06; }
.project-info { display: flex; flex-direction: column; gap: .45rem; padding-top: 1.4rem; }
.project-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.2; color: inherit; }
.project-summary { color: var(--body); font-size: .95rem; }
.section-dark .project-summary { color: rgba(255, 255, 255, .66); }
.project-card .project-meta { color: var(--brass-deep); }
.section-dark .project-card .project-meta { color: var(--brass-light); }
.project-card .project-more { opacity: 0; transform: translateX(-10px); transition: opacity var(--t-fast), transform .45s var(--ease-out); margin-top: .3rem; }
.project-card:hover .project-more, .project-card:focus-visible .project-more { opacity: 1; transform: none; }

/* E. Process — sticky storytelling */
.process-layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.process-aside { position: sticky; top: 120px; }
.process-counter { display: flex; align-items: baseline; gap: .7rem; margin: 2.2rem 0 1.2rem; font-family: var(--serif); color: var(--navy-900); }
.process-current { display: inline-block; font-size: clamp(5rem, 10vw, 9rem); line-height: .9; }
.process-current.flip { animation: flip .6s var(--ease-out); }
@keyframes flip { 0% { opacity: 0; transform: translateY(40%); } 100% { opacity: 1; transform: none; } }
.process-total { font-size: 1.3rem; color: var(--muted); }
.process-bar { height: 2px; background: var(--line); margin-bottom: 2.6rem; max-width: 22rem; }
.process-bar i { display: block; height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(var(--progress, .2)); transition: transform .8s var(--ease-out); }
.process-step { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; min-height: 34vh; padding: 3rem 0; border-top: 1px solid var(--line); transition: opacity .6s var(--ease-out); }
.process-step:last-child { border-bottom: 1px solid var(--line); }
.js .process-step.is-in:not(.is-active) { opacity: .32; }
.step-num { font-family: var(--serif); font-size: 1.3rem; color: var(--brass-deep); }
.step-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.1; color: var(--navy-900); margin-bottom: .8rem; }
.step-desc { font-size: 1.1rem; color: var(--body); max-width: 28rem; }

/* F. About */
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(24px, 3vw, 48px); align-items: center; }
.about-media { grid-column: 1 / span 6; aspect-ratio: 4 / 4.8; overflow: visible; background: none; }
.about-media .frame-inner { overflow: hidden; height: 100%; margin: 0; }
.about-badge { position: absolute; right: -24px; bottom: 48px; z-index: 2; background: var(--navy-900); color: #fff; padding: 1.3rem 1.7rem; text-align: center; box-shadow: 0 24px 50px rgba(7, 13, 26, .28); }
.about-badge span { display: block; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-light); }
.about-badge strong { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.15; white-space: nowrap; }
.about-copy { grid-column: 8 / span 5; }
.about-copy .h2 { margin-bottom: 1.6rem; }
.about-copy .lead { margin-bottom: 1.2rem; }
.about-text { margin-bottom: 1rem; color: var(--body); }
.about-commit { margin-top: 2rem; padding: 1.6rem 0 0; border-top: 1px solid var(--line); }
.about-commit-title { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--navy-900); margin-bottom: .6rem; }
.about-commit p { color: var(--body); }
.core-values { margin-top: clamp(64px, 7vw, 104px); }
.core-values-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: var(--navy-900); margin-bottom: 1.8rem; }
.core-values-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.core-value { padding: 1.8rem 1.6rem 0 0; }
.core-value + .core-value { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.core-value-num { display: block; font-size: .76rem; font-weight: 500; letter-spacing: .14em; color: var(--brass-deep); margin-bottom: .7rem; }
.core-value-title { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--navy-900); margin-bottom: .6rem; }
.core-value-text { font-size: .95rem; line-height: 1.7; color: var(--body); }

/* G. Service areas */
.areas-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.areas-intro .h2 { margin-bottom: 1.6rem; }
.areas-intro p { color: var(--body); margin-bottom: 1.4rem; max-width: 30rem; }
.areas-call { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.areas-call .link-arrow { margin-top: .8rem; font-size: .8rem; }
.county-list { border-top: 1px solid var(--line); }
.county { display: grid; grid-template-columns: 17rem 1fr; gap: 1.5rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); transition: padding-left .5s var(--ease-out); }
.county:hover { padding-left: .8rem; }
.county-name { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--navy-900); }
.county-towns { color: var(--body); padding-top: .3rem; }
.county-towns a { color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; transition: color var(--t-fast); }
.county-towns a:hover { color: var(--brass-deep); }
/* City pages: nearby communities under the article */
.nearby-heading { margin-top: 3rem; }
.nearby-towns { max-width: 46rem; margin: .8rem 0 1rem; color: var(--body); }
.nearby-more { max-width: 46rem; color: var(--body); }
.nearby-more a { color: var(--navy-900); text-decoration-color: var(--brass); text-underline-offset: 4px; }

/* H. Testimonials */
.testi-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.testi-media { aspect-ratio: 4 / 5; }
.testi-quote-mark { font-family: var(--serif); font-size: 7rem; line-height: .6; color: var(--brass); margin: .6rem 0 1.4rem; }
.testi-slides { display: grid; }
.testi-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), visibility .8s; }
.testi-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.testi-text { font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 2.6vw, 2.3rem); line-height: 1.45; color: var(--navy-900); margin-bottom: 2rem; }
.testi-author { font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-900); }
.testi-author span { display: block; margin-top: .4rem; font-weight: 400; color: var(--muted); letter-spacing: .18em; }
.testi-controls { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.6rem; }
.testi-count { font-size: .8rem; letter-spacing: .2em; color: var(--muted); min-width: 3.5rem; text-align: center; }
.testi-stars { display: flex; gap: .2rem; margin-bottom: 1.2rem; font-size: 1.05rem; line-height: 1; color: var(--brass); }
.testi-stars .off { color: rgba(11, 22, 44, .16); }
.testi-project { margin-top: 1.6rem; }
/* each testimonial's own photo lies over the section photo and fades in with its quote */
.frame .testi-photo { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .9s var(--ease-out), transform 1.6s var(--ease-out); }
.frame .testi-photo.is-active { opacity: 1; }

/* I. FAQ */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq-aside { position: sticky; top: 120px; }
.faq-aside .h2 { margin-bottom: 1.6rem; }
.faq-aside p { color: var(--body); }
.faq-aside a { color: var(--navy-900); font-weight: 600; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.7rem 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--navy-900); transition: color var(--t-fast); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--brass-deep); }
.faq-icon { position: relative; flex-shrink: 0; width: 38px; height: 38px; border: 1px solid var(--sand); border-radius: 50%; transition: background var(--t-fast), border-color var(--t-fast), transform .5s var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--navy-900); transition: transform .5s var(--ease-out), background var(--t-fast); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--navy-900); border-color: var(--navy-900); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-a { overflow: hidden; }
.faq-a-inner { padding: 0 4rem 1.9rem 0; color: var(--body); font-size: 1.02rem; }

/* J. Consultation */
.contact { position: relative; padding: var(--section) 0; color: #fff; isolation: isolate; overflow: hidden; background: var(--navy-950); }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg > div { position: absolute; inset: -10% 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7, 13, 26, .96) 0%, rgba(7, 13, 26, .86) 50%, rgba(15, 26, 48, .78) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact-info .display { margin-bottom: 1.6rem; }
.contact-lead { font-size: 1.15rem; font-weight: 300; color: rgba(255, 255, 255, .78); margin-bottom: 2.4rem; }
.contact-phone { display: inline-block; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.2rem); text-decoration: none; color: #fff; margin-bottom: 2.4rem; background: linear-gradient(var(--brass-light), var(--brass-light)) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out), color var(--t-fast); }
.contact-phone:hover { background-size: 100% 1px; color: var(--brass-light); }
.contact-details { border-top: 1px solid var(--line-dark); }
.contact-details div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-dark); }
.contact-details dt { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .62); padding-top: .25rem; }
.contact-details dd { color: rgba(255, 255, 255, .88); overflow-wrap: anywhere; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--brass-light); }
.contact-panel { background: rgba(7, 13, 26, .72); border: 1px solid var(--line-dark); padding: clamp(28px, 3.5vw, 52px); }
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin-bottom: .4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: .5rem; }
.finput { width: 100%; padding: 14px 0 12px; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .28); border-radius: 0; color: #fff; font-family: var(--sans); font-size: 1rem; transition: border-color var(--t-fast), background var(--t-fast); }
.finput:focus { outline: none; border-color: var(--brass-light); background: linear-gradient(0deg, rgba(207, 176, 122, .08), transparent); }
.finput.is-invalid { border-color: #ffab98; }
select.finput { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23cfb07a' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 26px; }
select.finput option { color: var(--navy-900); background: #fff; }
textarea.finput { resize: vertical; min-height: 96px; }
.field-error { display: block; font-size: .82rem; color: #ffb6a5; margin-top: .4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fsubmit { margin-top: .8rem; }
.fsubmit .spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.fsubmit.is-loading .spinner { display: inline-block; }
.fsubmit[disabled] { cursor: progress; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-msg { font-size: .92rem; color: #ffb6a5; }
.form-note { font-size: .8rem; color: rgba(255, 255, 255, .55); text-align: center; }
.form-success { padding: 3rem 1rem; text-align: center; animation: riseIn .8s var(--ease-out) both; }
.form-success-mark { width: 64px; height: 64px; border: 1px solid var(--brass-light); border-radius: 50%; color: var(--brass-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.6rem; }
.form-success h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin-bottom: .8rem; }
.form-success p { color: rgba(255, 255, 255, .78); }
.form-success a { color: var(--brass-light); }

/* 10. Portfolio & project pages -------------------------------------------- */
.page-hero { position: relative; min-height: clamp(460px, 64vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-950); isolation: isolate; }
.page-hero-project { min-height: clamp(520px, 82vh, 900px); }
.page-hero-inner { padding: calc(var(--nav-h) + var(--nav-top) + 4rem) 0 clamp(48px, 7vw, 96px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .72); margin-bottom: 1.8rem; animation: fadeIn 1s ease .4s both; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.page-hero .eyebrow { animation: riseIn 1s var(--ease-out) .45s both; }
.page-title { font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 1.04; color: #fff; margin-bottom: 1.2rem; max-width: 18ch; }
.page-title .line > span { animation: lineUp 1.2s var(--ease-out) .55s both; }
.page-lead { max-width: 38rem; font-size: 1.15rem; font-weight: 300; color: rgba(255, 255, 255, .82); animation: riseIn 1.1s var(--ease-out) .8s both; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(40px, 5vw, 72px); }
.chip { padding: 11px 20px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-900); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.chip span { margin-left: .4rem; color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--navy-900); }
.chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip.is-active span { color: var(--brass-light); }
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 64px); }
.portfolio-grid .project-card { transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
.portfolio-grid .project-card.is-wide { grid-column: 1 / -1; }
.portfolio-grid .project-card.is-wide .project-media { aspect-ratio: 21 / 9; }
.portfolio-grid .project-card.is-leaving { opacity: 0; transform: scale(.97); }
.empty-note { font-size: 1.1rem; color: var(--body); }
.portfolio-section { padding-top: clamp(56px, 6vw, 96px); }

.project-layout { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.project-facts { position: sticky; top: 110px; }
.project-facts dl { border-top: 1px solid var(--line); margin-bottom: 1.8rem; }
.project-facts dl div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.project-facts dt { font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.project-facts dd { font-family: var(--serif); font-size: 1.25rem; color: var(--navy-900); }
.project-call { text-decoration: none; }
.project-call:hover { color: var(--brass-deep); }
.contact-phone, .nav-menu-phone, .project-call { font-variant-numeric: lining-nums; }
.project-layout.no-story { grid-template-columns: 1fr; }
.project-layout.no-story .project-facts { position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.project-layout.no-story .project-facts dl { display: flex; flex-wrap: wrap; gap: 0 3rem; margin: 0; border: 0; }
.project-layout.no-story .project-facts dl div { border: 0; }
.project-story .lead { margin-bottom: 1.6rem; color: var(--navy-900); }
.project-story p { color: var(--body); margin-bottom: 1.3rem; max-width: 46rem; }
.project-story .h3 { margin-top: 3rem; }
/* Service pages: banner buttons, sidebar links, photo inside the article */
.page-hero-actions { margin-top: 2rem; animation-delay: .95s; }
.aside-title { margin: 2.2rem 0 .7rem; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.aside-links li { border-bottom: 1px solid var(--line); }
.aside-links a { display: block; padding: .75rem 0; font-family: var(--serif); font-size: 1.1rem; color: var(--navy-900); text-decoration: none; transition: color var(--t-fast); }
.aside-links a:hover { color: var(--brass-deep); }
.rich-figure { max-width: 46rem; margin: 2.4rem 0; }
.rich-figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.rich-figure figcaption { margin-top: .7rem; font-size: .85rem; color: var(--muted); }
.service-title a { color: inherit; text-decoration: none; }
.service-more { margin-right: 1.4rem; }
.section-intro a { color: var(--navy-900); text-decoration-color: var(--brass); text-underline-offset: 4px; }
.section-intro a:hover { color: var(--brass-deep); }
/* Remodeling guides: long H1s, consultation box inside the article, 404 links */
.page-title-guide { font-size: clamp(2.2rem, 4.6vw, 4.2rem); max-width: 22ch; }
.inline-cta { max-width: 46rem; margin: 2.8rem 0; padding: clamp(24px, 3vw, 40px); background: var(--ivory); border-left: 2px solid var(--brass); }
.rich-text .inline-cta p { color: var(--body); margin-bottom: 1rem; font-size: 1rem; font-weight: 400; }
.rich-text .inline-cta .inline-cta-title { font-family: var(--serif); font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.25; color: var(--navy-900); margin-bottom: .6rem; }
.rich-text .inline-cta .inline-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin: 1.4rem 0 0; }
.rich-text .inline-cta a.btn { color: #fff; text-decoration: none; }
.rich-text .inline-cta a.link-arrow { text-decoration: none; }
.not-found-lead { color: rgba(255, 255, 255, .75); margin: 1.2rem 0 2rem; }
.not-found-links { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin-bottom: 2.6rem; }
.not-found-links a { font-family: var(--serif); font-size: 1.25rem; color: #fff; text-decoration-color: var(--brass-light); text-underline-offset: 5px; }
.not-found-links a:hover { color: var(--brass-light); }
/* Project description written in the admin editor */
.rich-text > :first-child { margin-top: 0; }
.rich-text > p:first-child { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.75; font-weight: 300; color: var(--navy-900); margin-bottom: 1.6rem; }
.rich-text h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -.015em; color: var(--navy-900); margin: 2.8rem 0 1rem; }
.rich-text h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 1.6vw, 1.45rem); line-height: 1.25; color: var(--navy-900); margin: 2.2rem 0 .8rem; }
.rich-text h4 { font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-deep); margin: 1.8rem 0 .6rem; }
.rich-text ul, .rich-text ol { max-width: 46rem; margin: 0 0 1.5rem; padding-left: 1.3rem; color: var(--body); }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: .45rem; padding-left: .3rem; }
.rich-text li::marker { color: var(--brass); }
.rich-text blockquote { max-width: 46rem; margin: 2.2rem 0; padding-left: 1.6rem; border-left: 2px solid var(--brass); font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.6; color: var(--navy-900); }
.rich-text blockquote p { color: inherit; }
.rich-text a { color: var(--navy-900); text-decoration-color: var(--brass); text-underline-offset: 4px; }
.rich-text a:hover { color: var(--brass-deep); }
.rich-text strong { font-weight: 600; color: var(--navy-900); }
.rich-text hr { max-width: 46rem; border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.scope-list { border-top: 1px solid var(--line); max-width: 46rem; }
.scope-list li { position: relative; padding: .95rem 0 .95rem 2rem; border-bottom: 1px solid var(--line); color: var(--navy-900); }
.scope-list li::before { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--brass); }

.before-after { margin-top: clamp(64px, 8vw, 120px); }
.ba-frame { position: relative; overflow: hidden; background: var(--stone); user-select: none; touch-action: pan-y; }
.ba-after { width: 100%; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { width: 100%; height: 100%; object-fit: cover; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--navy-900); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; letter-spacing: .1em; box-shadow: 0 10px 30px rgba(7, 13, 26, .3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-frame:focus-within .ba-handle::after { outline: 2px solid var(--brass); outline-offset: 3px; }
.ba-tag { position: absolute; top: 1rem; padding: 6px 12px; background: rgba(7, 13, 26, .7); color: #fff; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; pointer-events: none; }
.ba-tag-before { left: 1rem; }
.ba-tag-after { right: 1rem; }
.before-after figcaption { margin-top: .9rem; font-size: .85rem; color: var(--muted); }

.gallery-heading { margin-top: clamp(64px, 8vw, 120px); }
.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.gallery-item { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); cursor: zoom-in; }
.gallery-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover { --zoom: 1.06; }

/* photo gallery on service and city pages (Admin → Page Photos) */
.page-gallery-lead { max-width: 40rem; margin-top: 1.4rem; }
.page-gallery-empty { padding: 3rem 1.5rem; border: 1px dashed rgba(11, 22, 44, .25); text-align: center; color: var(--muted); }

.project-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; padding: 2.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: var(--section); }
.pager-link { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; }
.pager-link span { font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pager-link strong { font-family: var(--serif); font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: var(--navy-900); transition: color var(--t-fast); }
.pager-link:hover strong { color: var(--brass-deep); }
.pager-next { text-align: right; align-items: flex-end; }
.pager-all { font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 12px 20px; border: 1px solid var(--line); transition: background var(--t-fast), color var(--t-fast); }
.pager-all:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.related { margin-top: calc(var(--section) * -1); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 44px); }
.related-grid .project-card { margin-bottom: 0; }

.cta-band { padding: clamp(80px, 10vw, 140px) 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem 4rem; flex-wrap: wrap; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.not-found { padding: calc(var(--nav-h) + var(--nav-top) + 120px) 0 var(--section); background: var(--navy-900); }
.not-found .display, .not-found .lead { color: #fff; }
.not-found .lead { margin: 1rem 0 2.4rem; color: rgba(255, 255, 255, .75); }
.not-found .btn-dark { background: #fff; color: var(--navy-900); }

/* Sections added in the website editor (includes/editable.php) */
.ed-narrow { max-width: 860px; }
.ed-sec .h2 { margin-bottom: 1.6rem; }
.ed-sec .rich-text { max-width: 46rem; }
.ed-sec-actions { margin-top: 2rem; }
.ed-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.ed-split-right .ed-split-media { order: 2; }
.ed-split-media { overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--stone); }
.ed-split-media img { width: 100%; height: 100%; object-fit: cover; }
.ed-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.ed-col { padding-top: 1.6rem; border-top: 1px solid var(--line); }
.ed-col-num { display: block; margin-bottom: 1rem; font-size: .78rem; font-weight: 500; letter-spacing: .14em; color: var(--brass-deep); }
.ed-col p { color: var(--body); }
.ed-band-copy { max-width: 46rem; }
.ed-band-text { margin-top: 1rem; font-size: 1.1rem; font-weight: 300; color: rgba(255, 255, 255, .78); }
.section-dark.ed-sec .rich-text p, .section-dark.ed-sec .rich-text li, .section-dark .ed-col p { color: rgba(255, 255, 255, .75); }
.section-dark.ed-sec .rich-text h2, .section-dark.ed-sec .rich-text h3, .section-dark.ed-sec .rich-text strong, .section-dark .ed-col .h3 { color: #fff; }
.section-dark.ed-sec .rich-text a { color: var(--brass-light); }
.section-dark .ed-col { border-color: var(--line-dark); }
.section-dark .ed-col-num { color: var(--brass-light); }
@media (max-width: 900px) {
  .ed-split { grid-template-columns: 1fr; }
  .ed-split-right .ed-split-media { order: 0; }
  .ed-cols { grid-template-columns: 1fr; }
}

/* 11. Footer, lightbox, mobile bar ------------------------------------------ */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); padding: clamp(72px, 8vw, 120px) 0 2.2rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 3rem; margin-bottom: 3.4rem; border-bottom: 1px solid var(--line-dark); }
.foot-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.foot-box { width: 42px; color: rgba(255, 255, 255, .9); }
.foot-pipe { width: 1px; height: 34px; background: rgba(255, 255, 255, .2); }
.foot-text { display: flex; flex-direction: column; }
.foot-text .macon { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .1em; color: #fff; }
.foot-text .dev { font-size: 8.5px; font-weight: 500; letter-spacing: .3em; color: rgba(255, 255, 255, .62); }
.footer-tag { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-light); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.1fr auto; gap: 2.6rem; padding-bottom: 3.4rem; }
.foot-desc { font-size: .92rem; line-height: 1.8; max-width: 22rem; color: rgba(255, 255, 255, .62); }
.foot-social { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.4rem; }
.foot-social a { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-light); text-decoration: none; }
.foot-title { font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 1.2rem; }
.foot-links li { margin-bottom: .6rem; }
.foot-links a { display: inline-block; font-size: .9rem; color: rgba(255, 255, 255, .68); text-decoration: none; overflow-wrap: anywhere; transition: color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.foot-links a:hover { color: #fff; transform: translateX(3px); }
.foot-note { font-size: .85rem; color: rgba(255, 255, 255, .5); }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; border-top: 1px solid var(--line-dark); font-size: .78rem; color: rgba(255, 255, 255, .45); }
.to-top { text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; color: rgba(255, 255, 255, .65); }
.to-top:hover { color: var(--brass-light); }

.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(7, 13, 26, .96); display: flex; align-items: center; justify-content: center; padding: 4.5rem 5rem; animation: fadeIn .35s ease; }
.lb-figure { width: 100%; max-width: 1240px; text-align: center; }
.lb-figure img { max-height: calc(100vh - 12rem); max-width: 100%; margin: 0 auto; object-fit: contain; animation: riseIn .5s var(--ease-out); }
.lb-figure figcaption { margin-top: 1.2rem; color: #fff; display: flex; flex-direction: column; gap: .3rem; align-items: center; }
.lb-figure strong { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.lb-figure span { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-light); }
.lb-figure .lb-count { color: rgba(255, 255, 255, .5); }
.lb-close, .lb-nav { position: absolute; color: #fff; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 2rem; line-height: 1; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; transition: background var(--t-fast), border-color var(--t-fast); }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.lb-close { top: 1.3rem; right: 1.3rem; }
.lb-prev { left: 1.3rem; top: 50%; margin-top: -25px; }
.lb-next { right: 1.3rem; top: 50%; margin-top: -25px; }

.mobile-bar { display: none; }

/* 12. Responsive ----------------------------------------------------------- */
@media (max-width: 1300px) {
  .nav-top-areas { display: none; }
}
@media (max-width: 1360px) {
  .nav-phone { display: none; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .nav-bar { gap: 1.4rem; }
  .nav-links { gap: 1.05rem; }
  .nav-links a { font-size: 14px; letter-spacing: 0; }
  .nav-cta { padding: 13px 18px; }
  .nav-text .dev { letter-spacing: .26em; }
}
@media (max-width: 1080px) {
  :root { --nav-h: 76px; --nav-top: 0px; }
  .nav-top { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-actions { margin-left: auto; } /* the menu panel leaves the flow, so push the button right */
  .nav-menu { position: fixed; inset: 0; z-index: 1; margin: 0; background: var(--navy-950); display: flex; flex-direction: column; justify-content: center; padding: 110px var(--gutter) 40px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-in-out), visibility .7s; overflow-y: auto; }
  body.nav-open .nav-menu { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line-dark); opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
  body.nav-open .nav-links li { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * 70ms); }
  .nav-links a { padding: 1.2rem 0; font-family: var(--serif); font-size: clamp(1.7rem, 6vw, 2.4rem); letter-spacing: 0; text-transform: none; color: #fff; }
  .nav-links a::after { display: none; }
  .nav-menu-foot { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.4rem; opacity: 0; transition: opacity .6s ease .5s; }
  body.nav-open .nav-menu-foot { opacity: 1; }
  .nav-menu-phone { font-family: var(--serif); font-size: 1.5rem; color: #fff; text-decoration: none; text-align: center; }
  .nav-menu-email { text-align: center; font-size: .9rem; color: rgba(255, 255, 255, .6); text-decoration: none; }
  .nav-menu-license { text-align: center; font-family: var(--nav-font); font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--brass-light); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { background: transparent; box-shadow: none; transform: none; }

  .process-layout, .areas-grid, .faq-grid, .testi-grid { grid-template-columns: 1fr; }
  .process-aside, .faq-aside { position: static; }
  .process-counter, .process-bar { display: none; }
  .process-step { min-height: 0; padding: 2.2rem 0; }
  .js .process-step.is-in:not(.is-active) { opacity: 1; }
  .testi-media { aspect-ratio: 16 / 10; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .intro-grid, .about-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .intro-media, .intro-copy, .about-media, .about-copy { grid-column: 1 / -1; }
  .intro-media { aspect-ratio: 4 / 3.4; }
  .about-media { aspect-ratio: 4 / 3.4; }
  .about-badge { right: 1rem; bottom: 1rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 1.8rem 1.2rem; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(n) { grid-column: auto; }
  .service-card:nth-child(n) .service-media { aspect-ratio: 4 / 3; }
  .core-values-list { grid-template-columns: 1fr 1fr; }
  .core-value:nth-child(n) { padding: 1.6rem 1.4rem 1.6rem 0; border-left: 0; }
  .core-value:nth-child(even) { padding-left: 1.4rem; border-left: 1px solid var(--line); }
  .core-value:nth-child(n+3) { border-top: 1px solid var(--line); }
  .project-feature { aspect-ratio: 4 / 3; }
  .project-grid .project-card:nth-child(even) { margin-top: 0; }
  .project-grid .project-card:nth-child(n) .project-media { aspect-ratio: 4 / 3; }
  .county { grid-template-columns: 1fr; gap: .3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .project-layout { grid-template-columns: 1fr; }
  .project-facts { position: static; }
  .project-gallery { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem 1.6rem; }
  .related-grid .project-card:nth-child(3) { display: none; }

  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--navy-900); border-top: 1px solid var(--line-dark); transform: translateY(100%); transition: transform .5s var(--ease-out); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { padding: 16px 8px; text-align: center; font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #fff; }
  .mobile-bar a.primary { background: var(--brass-light); color: var(--navy-950); }
  .footer { padding-bottom: 6rem; }
  .lightbox { padding: 4.5rem 1rem 6rem; }
  .lb-nav { top: auto; bottom: 1.2rem; margin: 0; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { right: calc(50% - 62px); }
}
/* Phones and portrait tablets: the narrow crop of the video reads darker, so lift the footage a little,
   keep the band above the text clear, and shade evenly behind the words instead of from the left. */
@media (max-width: 820px) and (orientation: portrait) {
  .hero-video, .hero-poster { filter: brightness(1.12) contrast(1.04); }
  .hero-shade { background: linear-gradient(180deg, rgba(7, 13, 26, .45) 0%, rgba(7, 13, 26, .1) 13%, rgba(7, 13, 26, .44) 22%, rgba(7, 13, 26, .52) 60%, rgba(7, 13, 26, .82) 100%); }
  .hero-eyebrow, .hero-title, .hero-lead, .hero-meta { text-shadow: 0 1px 14px rgba(7, 13, 26, .45); }
}
@media (max-width: 640px) {
  .nav-pipe { display: none; }
  .nav-box { width: 40px; }
  .nav-text .macon { font-size: 18px; }
  .hero-title { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-foot { padding: 1.6rem 0 1.4rem; margin-top: 2.4rem; }
  .hero-meta { gap: .6rem; font-size: .68rem; letter-spacing: .14em; }
  .scroll-cue { display: none; }
  .phases { grid-template-columns: 1fr; }
  .phases li:nth-child(odd) { border-right: 0; }
  .phases li:nth-child(even) { padding-left: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:nth-child(n) { border-left: 0; padding: 1.4rem 0; }
  .trust-item:nth-child(n+2) { border-top: 1px solid var(--line); }
  .service-grid, .project-grid, .portfolio-grid, .related-grid { grid-template-columns: 1fr; }
  .portfolio-grid .project-card.is-wide .project-media { aspect-ratio: 4 / 3; }
  .related-grid .project-card:nth-child(3) { display: block; }
  .core-values-list { grid-template-columns: 1fr; }
  .core-value:nth-child(n) { padding: 1.4rem 0; border-left: 0; }
  .core-value:nth-child(n+2) { border-top: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }
  .contact-details div { grid-template-columns: 1fr; gap: .2rem; }
  .project-gallery { grid-template-columns: 1fr; }
  .gallery-item:nth-child(5n+1) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .project-pager { grid-template-columns: 1fr 1fr; }
  .pager-all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .faq-a-inner { padding-right: 0; }
  .cta-band-actions, .cta-band-actions .btn { width: 100%; }
}

/* Touch devices: no pointer lean or hover-only effects */
@media (hover: none) {
  .project-card .project-more { opacity: 1; transform: none; }
}

/* 13. Calm mode -------------------------------------------------------------
   Applies only when the owner chooses "Calm version" (Admin → Settings → Banner & Video)
   AND the visitor's device asks for reduced motion. Fades stay; movement goes; no delays. */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-full) { --shift: 0px; --stagger: 0ms; --t-reveal: .45s; }
  html:not(.motion-full) .js [data-reveal], html.js:not(.motion-full) [data-reveal] { transition-delay: 0ms; }
  html.js:not(.motion-full) [data-reveal="lines"] .line > span { transform: none; transition: none; }
  html.js:not(.motion-full) [data-reveal="mask"] { --rz: 1; }
  html.js:not(.motion-full) [data-reveal="mask"]::before { transform: none; transition: opacity .45s ease; }
  html.js:not(.motion-full) [data-reveal="mask"].is-in::before { opacity: 0; }
  html:not(.motion-full) .hero-media, html:not(.motion-full) .page-hero-media, html:not(.motion-full) .hero-poster,
  html:not(.motion-full) .page-hero-img, html:not(.motion-full) .scroll-cue i::after { animation: none; }
  html:not(.motion-full) .hero-title .line > span, html:not(.motion-full) .page-title .line > span,
  html:not(.motion-full) .hero-eyebrow, html:not(.motion-full) .hero-lead, html:not(.motion-full) .hero-actions,
  html:not(.motion-full) .hero-foot, html:not(.motion-full) .page-lead, html:not(.motion-full) .breadcrumb,
  html:not(.motion-full) .page-hero .eyebrow { animation: fadeIn .4s ease both; }
  html:not(.motion-full) .hero-media-inner { transform: none; }
  html:not(.motion-full) .btn:active, html:not(.motion-full) .round-btn:active { transform: none; }
  html:not(.motion-full) .zoomable img, html:not(.motion-full) .frame img, html:not(.motion-full) .service-media img,
  html:not(.motion-full) .project-media img, html:not(.motion-full) .gallery-item img { transform: none; transition: none; }
  html:not(.motion-full) ::view-transition-group(*), html:not(.motion-full) ::view-transition-old(root),
  html:not(.motion-full) ::view-transition-new(root) { animation: none; }
}

/* 14. Photo layout chosen in the website editor --------------------------------
   The photo window saves shape, fit, focus and width; they arrive as data-* on the <img>. */
img[data-fit="contain"] { object-fit: contain !important; background: var(--stone); }
img[data-focus="top"] { object-position: 50% 10% !important; }
img[data-focus="bottom"] { object-position: 50% 90% !important; }
img[data-focus="left"] { object-position: 10% 50% !important; }
img[data-focus="right"] { object-position: 90% 50% !important; }

/* Shape: the frame takes the chosen proportions and the photo fills it. */
:is(.frame, .service-media, .ed-split-media):has(img[data-shape="landscape"]) { aspect-ratio: 4 / 3 !important; }
:is(.frame, .service-media, .ed-split-media):has(img[data-shape="wide"]) { aspect-ratio: 16 / 9 !important; }
:is(.frame, .service-media, .ed-split-media):has(img[data-shape="square"]) { aspect-ratio: 1 / 1 !important; }
:is(.frame, .service-media, .ed-split-media):has(img[data-shape="portrait"]) { aspect-ratio: 4 / 5 !important; }
.rich-figure img[data-shape="landscape"] { aspect-ratio: 4 / 3; }
.rich-figure img[data-shape="wide"] { aspect-ratio: 16 / 9; }
.rich-figure img[data-shape="square"] { aspect-ratio: 1 / 1; }
.rich-figure img[data-shape="portrait"] { aspect-ratio: 4 / 5; }
/* The photo's own shape: nothing is cropped and the frame follows the photo. */
:is(.frame, .service-media, .ed-split-media):has(img[data-shape="natural"]) { aspect-ratio: auto !important; }
.frame:has(img[data-shape="natural"]) .frame-inner { height: auto; margin-top: 0; transform: none !important; }
:is(.frame, .service-media, .ed-split-media, .rich-figure) img[data-shape="natural"] { height: auto !important; aspect-ratio: auto; }

/* Full width: the photo takes the whole row and the text moves below it. */
.intro-grid:has(.intro-media img[data-width="full"]) { row-gap: clamp(32px, 4vw, 56px); }
.intro-grid:has(.intro-media img[data-width="full"]) > .intro-media,
.intro-grid:has(.intro-media img[data-width="full"]) > .intro-copy { grid-column: 1 / -1; }
.about-grid:has(.about-media img[data-width="full"]) { row-gap: clamp(32px, 4vw, 56px); }
.about-grid:has(.about-media img[data-width="full"]) > .about-media,
.about-grid:has(.about-media img[data-width="full"]) > .about-copy { grid-column: 1 / -1; }
.service-card:has(img[data-width="full"]) { grid-column: 1 / -1 !important; }
.ed-split:has(img[data-width="full"]) { grid-template-columns: 1fr; }
.ed-split:has(img[data-width="full"]) .ed-split-media { order: 0; }
.rich-figure:has(img[data-width="full"]) { max-width: none; }
/* A full-width photo left on "as designed" turns wide, so it does not become very tall. */
:is(.intro-media, .about-media, .service-media, .ed-split-media):has(img[data-width="full"]:not([data-shape])) { aspect-ratio: 16 / 9 !important; }
