/* Hallmark v2.0.0 | theme: custom Talton brand-locked | surface: daylight paper | genre: editorial | shape: outside-to-inside photographic journey | hero: cream shade against an unwashed porch exterior | nav: constant cream masthead | footer: cream mark and navy legal bar | job: enquire | copy: source-grounded | signature: daylight cut into the real timber porch */
/* Critique: pass-4 independent screenshot review 8.2/10; pass-5 independent visual gate remains open. */
:root {
  --navy: oklch(0.31842 0.08665 263.14); --navy-deep: oklch(0.22942 0.04754 263.73);
  --hunter: oklch(0.44148 0.07348 147.66); --hunter-dark: oklch(0.34505 0.05332 149.54);
  --white: oklch(1 0 0); --cream: oklch(0.96731 0.00697 88.64); --ink: oklch(0.25372 0.01351 253.07);
  --muted: oklch(0.50329 0.02552 256.79); --line: oklch(0.90935 0.00966 93.58);
  --veil: oklch(0.22942 0.04754 263.73 / .92);
  --shadow-soft: oklch(0.22942 0.04754 263.73 / .16); --shadow-cta: oklch(0.22942 0.04754 263.73 / .2); --daylight: oklch(1 0 0 / .13);
  --font: 'Poppins', system-ui, sans-serif; --font-display: 'Josefin Sans', 'Poppins', system-ui, sans-serif;
  --text-sm: .875rem; --text-base: 1rem; --text-lg: 1.125rem; --text-xl: 1.25rem; --text-title: 2rem;
  --text-section: clamp(2.25rem, 4.5vw, 4rem); --text-hero: clamp(3rem, 5vw, 4.5rem);
  --space-xs: .25rem; --space-sm: .5rem; --space-md: 1rem; --space-lg: 1.5rem; --space-xl: 2rem;
  --space-2xl: 3rem; --space-3xl: 4rem; --space-4xl: 5rem; --space-section: 6rem;
  --container: 82rem; --gutter: 2.5rem; --header-height: 5rem; --control-height: 3rem;
  --rule: 1px; --focus-width: 3px; --focus-offset: 3px; --control-radius: .375rem; --panel-radius: .75rem;
}
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/josefin-sans.woff2') format('woff2'); }
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: calc(var(--header-height) + var(--space-md)); }
body { margin: 0; overflow-x: clip; background: var(--white); color: var(--ink); font: 400 var(--text-base)/1.55 var(--font); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: var(--space-xs); }
a:hover { text-decoration-thickness: 2px; }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; background: var(--line); color: var(--muted); border-color: var(--line); }
:focus-visible { outline: var(--focus-width) solid var(--hunter); outline-offset: var(--focus-offset); }
h1,h2,h3,p,dl { margin: 0; }
h1,h2,h3 { min-width: 0; overflow-wrap: break-word; color: var(--navy); font-family: var(--font-display); line-height: 1.08; letter-spacing: -.01em; font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
p + p { margin-top: var(--space-md); }
.container { width: calc(100% - 2 * var(--gutter)); max-width: var(--container); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.skip { position: fixed; z-index: 12; top: var(--space-md); left: var(--space-md); padding: var(--space-md); background: var(--cream); color: var(--navy); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }
.header { position: sticky; top: 0; z-index: 10; height: var(--header-height); background: var(--cream); border-bottom: var(--rule) solid var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.brand { font-family: var(--font-display); text-transform: uppercase; display: inline-flex; align-items: center; gap: var(--space-sm); flex: 0 0 auto; color: var(--navy); text-decoration: none; font-size: var(--text-sm); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.brand img { width: 4.75rem; height: 3.65rem; object-fit: contain; }
.brand span { display: block; white-space: nowrap; }
.menu-button { display: none; min-height: var(--control-height); padding-inline: var(--space-md); border: var(--rule) solid var(--navy); border-radius: var(--control-radius); background: var(--cream); color: var(--navy); font-weight: 600; }
nav { display: flex; align-items: center; gap: var(--space-xl); }
nav a { display: inline-flex; align-items: center; min-height: var(--control-height); text-decoration: none; font-weight: 500; }
nav .nav-link:hover,nav .nav-link:focus-visible { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-height); padding: var(--space-sm) var(--space-lg); border: var(--rule) solid var(--hunter); border-radius: var(--control-radius); background: var(--hunter); color: var(--white); text-decoration: none; font-weight: 600; line-height: 1.2; }
.button:hover { background: var(--hunter-dark); border-color: var(--hunter-dark); text-decoration: none; }
.button:active { background: var(--navy-deep); }
.hero { display: grid; grid-template-columns: 42% 58%; min-height: min(45rem, calc(100svh - var(--header-height))); background: var(--cream); }
.hero-copy { display: flex; align-items: center; justify-content: flex-end; min-width: 0; padding: var(--space-3xl) var(--space-3xl) var(--space-3xl) var(--gutter); }
.hero-copy-inner { width: min(100%, 30rem); }
.hero h1 { font-size: var(--text-hero); max-width: 13ch; }
.hero p { margin-top: var(--space-xl); max-width: 24rem; font-size: var(--text-lg); }
.hero .button { margin-top: var(--space-2xl); }
.hero-media { display: block; overflow: hidden; min-width: 0; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.chapter-intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-lg); padding-block: var(--space-4xl) var(--space-2xl); }
.chapter-intro h2,.renovation-copy h2,.section-heading h1,.section-heading h2,.about h2,.contact h2 { font-size: var(--text-section); max-width: 17ch; }
.chapter-intro > p { font-size: var(--text-lg); max-width: 40rem; }
figure { margin: 0; }
.construction-photo { width: calc(100% - 2 * var(--gutter)); max-width: var(--container); margin-inline: auto; }
.construction-photo img { width: 100%; max-height: 43rem; aspect-ratio: 1.9; object-fit: cover; object-position: center 55%; }
figcaption { padding-top: var(--space-sm); color: var(--muted); font-size: var(--text-sm); }
.renovation-chapter { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: center; gap: var(--space-4xl); padding-block: var(--space-section); }
.renovation-copy h2 { max-width: 12ch; }
.renovation-copy > p { margin-top: var(--space-xl); max-width: 27rem; font-size: var(--text-lg); }
.renovation-copy > .accessibility-note { margin-top: var(--space-lg); font-size: var(--text-base); }
.renovation-chapter figure { width: 88%; justify-self: end; }
.renovation-chapter img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.projects { padding-top: var(--space-3xl); }
.section-heading { margin-bottom: var(--space-2xl); }
.section-heading > p:last-child { margin-top: var(--space-lg); color: var(--muted); max-width: 40rem; }
.gallery { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: var(--space-3xl) var(--space-xl); align-items: start; }
.project { min-width: 0; grid-column: span 6; }
.project:nth-child(1) { grid-column: span 8; }
.project:nth-child(2) { grid-column: span 4; margin-top: var(--space-4xl); }
.project:nth-child(3) { grid-column: span 5; }
.project:nth-child(4) { grid-column: span 7; margin-top: var(--space-3xl); }
.project-open { display: block; overflow: clip; background: var(--cream); }
.project img { width: 100%; }
.project:nth-child(2) img { aspect-ratio: 4/5; object-fit: cover; object-position: 55% center; }
.project figcaption { color: var(--navy); font-size: var(--text-lg); padding-top: var(--space-md); }
.gallery-expanded { display: block; columns: 3; column-gap: var(--space-xl); }
.gallery-expanded .project { margin: 0 0 var(--space-xl); break-inside: avoid; }
.gallery-expanded .project:nth-child(2) img { aspect-ratio: 4/3; }
.gallery-expanded figcaption { font-size: var(--text-sm); }
.gallery-toolbar { margin-top: var(--space-3xl); }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.filters button { min-height: var(--control-height); padding: var(--space-sm) var(--space-md); border: var(--rule) solid var(--muted); border-radius: var(--control-radius); background: var(--white); color: var(--ink); font-size: var(--text-sm); }
.filters button:hover,.filters button:focus-visible { border-color: var(--hunter); color: var(--hunter); }
.filters button[aria-pressed="true"] { background: var(--hunter); color: var(--white); border-color: var(--hunter); }
#gallery-count,.collection-note { font-variant-numeric: tabular-nums; margin-top: var(--space-lg); color: var(--muted); font-size: var(--text-sm); }
.gallery-more { margin-top: var(--space-lg); }
.about { background: var(--cream); padding-block: var(--space-4xl); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4xl); }
.about-inner > div:last-child { max-width: 34rem; font-size: var(--text-lg); }
.about .muted { color: var(--muted); font-size: var(--text-sm); }
.contact { background: var(--cream); padding-top: var(--space-xl); }
.contact-grid { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: var(--space-4xl); align-items: start; }
.contact-intro > p:not(.eyebrow) { margin-top: var(--space-lg); font-size: var(--text-lg); }
.contact dl { margin-top: var(--space-2xl); display: grid; grid-template-columns: max-content minmax(0,1fr); gap: var(--space-md) var(--space-lg); }
.contact dt { color: var(--muted); font-size: var(--text-sm); }
.contact dd { margin: 0; overflow-wrap: anywhere; }
.contact dd a { display: inline-flex; align-items: center; min-height: 2.75rem; }
#project-form { min-width: 0; padding: var(--space-2xl); border-radius: var(--panel-radius); background: var(--white); }
.form-intro { color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--space-xl); }
.form-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-group + .form-group { margin-top: var(--space-2xl); }
.form-group legend { float: left; width: 100%; padding: 0 0 var(--space-sm); margin-bottom: var(--space-lg); border-bottom: var(--rule) solid var(--line); color: var(--navy); font-size: var(--text-xl); font-weight: 500; }
.form-group .form-fields { clear: both; }
.form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-lg); }
label { display: flex; flex-direction: column; gap: var(--space-sm); font-size: var(--text-sm); line-height: 1.45; }
label.full { grid-column: 1/-1; }
input,select,textarea { width: 100%; min-width: 0; min-height: var(--control-height); padding: var(--space-sm) var(--space-md); border: var(--rule) solid var(--muted); border-radius: var(--control-radius); background: var(--white); color: var(--ink); font-size: var(--text-base); }
input:hover,select:hover,textarea:hover { border-color: var(--hunter); }
[aria-invalid="true"] { border: var(--focus-width) solid var(--hunter); }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.checkbox { flex-direction: row; align-items: center; min-height: var(--control-height); margin-top: var(--space-xl); cursor: pointer; }
.checkbox input { width: 1.25rem; height: 1.25rem; min-height: 0; accent-color: var(--hunter); flex: 0 0 auto; }
.form-disclosure { margin: var(--space-xl) 0 var(--space-md); padding-top: var(--space-lg); border-top: var(--rule) solid var(--line); color: var(--muted); font-size: var(--text-sm); }
#form-error { border: var(--rule) solid var(--hunter); padding: var(--space-md); margin-bottom: var(--space-lg); }
#form-success { padding-top: var(--space-xl); }
#form-success h3 { margin-bottom: var(--space-md); }
.text-link { display: inline-flex; align-items: center; min-height: var(--control-height); padding: 0; border: 0; background: none; color: var(--hunter); text-decoration: underline; font-weight: 600; }
.text-link:hover { color: var(--hunter-dark); }
.footer-cream { background: var(--cream); padding-block: var(--space-2xl); border-top: var(--rule) solid var(--line); }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.socials { display: flex; gap: var(--space-xl); }
.socials a { display: inline-flex; align-items: center; min-height: var(--control-height); color: var(--navy); font-size: var(--text-sm); }
.footer-legal { background: var(--navy-deep); color: var(--white); padding-block: var(--space-lg); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-lg); }
.footer-bottom p { font-size: var(--text-sm); }
dialog { border: 0; width: calc(100% - 2 * var(--gutter)); max-width: 72rem; max-height: calc(100svh - var(--space-xl)); padding: var(--space-lg); background: var(--navy-deep); color: var(--white); }
dialog::backdrop { background: var(--veil); }
.lightbox-top,.lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.lightbox-top { margin-bottom: var(--space-md); }
.lightbox-controls { margin-top: var(--space-md); }
dialog button { min-height: var(--control-height); padding: var(--space-sm) var(--space-md); border: 0; border-radius: var(--control-radius); background: var(--white); color: var(--navy); }
dialog button:hover { background: var(--cream); }
dialog :focus-visible { outline-color: var(--white); }
#lightbox-image { height: min(68svh,48rem); width: 100%; object-fit: contain; }
#lightbox-position { white-space: nowrap; }
@media (max-width: 900px) {
  :root { --gutter: 2rem; --space-section: 5rem; }
  .header-inner { gap: var(--space-md); }
  .brand { font-size: .78rem; gap: .4rem; }
  .brand img { width: 3.75rem; height: 3rem; }
  nav { gap: var(--space-md); }
  .header nav .button { padding-inline: var(--space-md); white-space: nowrap; }
  .hero-copy { padding-right: var(--space-xl); }
  .contact-grid { gap: var(--space-xl); }
}
@media (max-width: 700px) {
  :root { --gutter: 1.25rem; --header-height: 4.5rem; --space-section: 4rem; --text-hero: 2.7rem; }
  .header-inner { gap: var(--space-sm); }
  .brand { font-size: .75rem; gap: .35rem; }
  .brand img { width: 3.75rem; height: 3rem; }
  .menu-button:not([hidden]) { display: inline-flex; align-items: center; }
  .header nav { position: absolute; top: 100%; left: 0; width: 100%; max-height: calc(100svh - var(--header-height)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-sm) var(--gutter) var(--space-lg); background: var(--cream); border-bottom: var(--rule) solid var(--line); }
  .menu-button:not([hidden]) + nav:not(.is-open) { display: none; }
  .header nav a { min-height: var(--control-height); }
  .header nav .button { align-self: flex-start; margin-top: var(--space-sm); }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { display: block; padding: var(--space-3xl) var(--gutter) var(--space-2xl); }
  .hero-copy-inner { width: 100%; }
  .hero h1 { max-width: 11ch; }
  .hero p { margin-top: var(--space-lg); font-size: var(--text-base); }
  .hero .button { margin-top: var(--space-xl); }
  .hero-media { height: min(86vw,26rem); }
  .hero-image { object-position: center 52%; }
  .chapter-intro { padding-block: var(--space-3xl) var(--space-xl); }
  .chapter-intro > p { font-size: var(--text-base); }
  .construction-photo img { aspect-ratio: 4/3; }
  .renovation-chapter { grid-template-columns: minmax(0,1fr); gap: var(--space-2xl); }
  .renovation-chapter figure { width: 88%; }
  .projects { padding-top: 0; }
  .gallery { grid-template-columns: minmax(0,1fr); gap: var(--space-2xl); }
  .gallery .project { grid-column: auto; margin-top: 0; }
  .gallery .project:nth-child(even) { width: 88%; justify-self: end; }
  .project:nth-child(2) img { aspect-ratio: 4/3; }
  .project figcaption { font-size: var(--text-base); }
  .gallery-expanded { columns: 1; }
  .gallery-expanded .project { width: 100% !important; }
  .about-inner,.contact-grid { grid-template-columns: minmax(0,1fr); gap: var(--space-2xl); }
  .about-inner > div:last-child { font-size: var(--text-base); }
  .contact { padding-top: var(--space-xl); }
  #project-form { padding: var(--space-lg); }
  .footer-main,.footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom { gap: var(--space-sm); }
  dialog { padding: var(--space-md); }
  #lightbox-image { height: 56svh; }
}
@media (max-width: 380px) {
  .header-inner { gap: .35rem; }
  .brand img { width: 3rem; height: 2.4rem; }
  .brand { font-size: clamp(.62rem, 2.9vw, .72rem); gap: .3rem; }
  .menu-button { padding-inline: .75rem; }
  .form-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color 180ms ease, border-color 180ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Pass 6: distinct scales and reading paths, without text on the photographs. */
.chapter-intro { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); align-items: end; gap: var(--space-4xl); }
.chapter-intro > p { padding-bottom: var(--space-xs); }
.renovation-chapter { grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); align-items: end; gap: var(--space-4xl); }
.renovation-chapter figure { width: 100%; justify-self: start; }
.renovation-chapter img { aspect-ratio: 1.4; }
.renovation-copy { padding-bottom: var(--space-3xl); }
.gallery { gap: var(--space-xl); }
.project:nth-child(1),.project:nth-child(3) { grid-column: span 7; }
.project:nth-child(2),.project:nth-child(4) { grid-column: span 5; margin-top: 0; }
.project:nth-child(1) img,.project:nth-child(3) img { aspect-ratio: 1.45; object-fit: cover; }
.project:nth-child(2) img,.project:nth-child(4) img { aspect-ratio: 1.04; object-fit: cover; }
.project figcaption { font-size: var(--text-sm); padding-top: var(--space-sm); color: var(--muted); }
.contact-pending { margin-top: var(--space-lg); color: var(--muted); font-size: var(--text-sm); }
.contact-pending p + p { margin-top: var(--space-xs); }
@media (max-width: 700px) {
  .chapter-intro { display: flex; gap: var(--space-lg); }
  .renovation-chapter { grid-template-columns: minmax(0,1fr); gap: var(--space-xl); }
  .renovation-chapter figure { width: 88%; }
  .renovation-copy { padding: 0; }
  .gallery { gap: var(--space-xl); }
  .gallery .project:nth-child(even) { width: 100%; }
  .project:nth-child(1) img,.project:nth-child(2) img,.project:nth-child(3) img,.project:nth-child(4) img { aspect-ratio: auto 4/3; }
}
.gallery-expanded .project img { aspect-ratio: auto 4/3; object-fit: initial; }

/* Pass 7: Porch Shade / Openings, the locked project direction. */
:root { --navy: #1A305E; --hunter: #355E3B; --white: #FFFFFF; --motion-ease: cubic-bezier(.22,1,.36,1); }
.hero { grid-template-columns: minmax(0,44fr) minmax(0,56fr); background: var(--navy); color: var(--white); }
.hero h1, .about h2, .renovation-copy h2 { color: var(--white); }
.hero .button { background: var(--white); border-color: var(--white); color: var(--navy); }
.hero .button:hover { background: var(--cream); border-color: var(--cream); }
.hero :focus-visible, .renovation-chapter :focus-visible, .about :focus-visible { outline-color: var(--white); }
.chapter-intro { padding-block: var(--space-3xl) var(--space-xl); }
.construction-photo img { aspect-ratio: 1.9; object-position: center 55%; }
.renovation-chapter { display: block; background: var(--hunter); color: var(--white); margin-top: var(--space-section); padding-block: var(--space-section); }
.renovation-inner { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); align-items: center; gap: var(--space-4xl); }
.renovation-chapter figure { width: 100%; }
.renovation-copy { padding: 0; }
.project:nth-child(1) { grid-column: span 7; }
.project:nth-child(2) { grid-column: span 5; }
.project:nth-child(3), .project:nth-child(4) { grid-column: span 6; }
.project:nth-child(1) img,.project:nth-child(2) img,.project:nth-child(3) img,.project:nth-child(4) img { aspect-ratio: 4/3; object-fit: cover; }
.gallery-expanded .project img { aspect-ratio: auto; object-fit: initial; }
.about { background: var(--navy); color: var(--white); padding-block: var(--space-3xl); }
.contact { background: var(--white); padding-block: var(--space-section); }
#project-form { background: var(--cream); }
.form-fields label:has(select) { grid-column: 1 / -1; }
.footer-cream { background: var(--white); }
@media (prefers-reduced-motion: no-preference) { .button { transition: background-color 200ms var(--motion-ease), border-color 200ms var(--motion-ease), color 200ms var(--motion-ease); } }
@media (max-width: 700px) {
 .hero { grid-template-columns: minmax(0,1fr); }
 .renovation-inner { grid-template-columns: minmax(0,1fr); gap: var(--space-xl); }
 .renovation-copy { order: -1; }
 .renovation-chapter figure { width: 100%; }
 .gallery:not(.gallery-expanded) .project { grid-column: 1 / -1; width: 100%; }
 .gallery:not(.gallery-expanded) .project img { aspect-ratio: auto; }
}
/* Keep a fallback ratio while lazy archive images decode. */
.gallery-expanded .project img { aspect-ratio: auto 4/3; }
.contact dl { display: block; }
.contact dd a { min-height: var(--control-height); }
@media (max-width: 700px) {
  .projects { padding-top: var(--space-section); }
  .header:has(nav.is-open) { height: auto; }
  .header-inner:has(nav.is-open) { min-height: var(--header-height); flex-wrap: wrap; }
  .header nav.is-open { position: static; flex-basis: 100%; max-height: calc(100svh - var(--header-height)); margin-inline: calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); }
}

/* Pass 8: a progressive-enhancement starting frame; ordinary content stays visible. */
@media (prefers-reduced-motion: no-preference) {
  html.motion-ok .js-reveal { opacity: 0; transform: translateY(48px); }
  html.motion-ok .js-reveal:focus-within, html.motion-ok .js-reveal:focus-visible { opacity: 1; transform: none; }
}

/* Pass 9: daylight and depth within the established brand surfaces. */
.header { background: linear-gradient(110deg, var(--cream), var(--white)); transition: box-shadow 250ms var(--motion-ease); }
.header.is-scrolled { box-shadow: 0 .35rem 1.25rem var(--shadow-soft); }
.hero-copy { background: radial-gradient(ellipse at 100% 38%, var(--daylight), transparent 46%), linear-gradient(135deg, var(--navy-deep), var(--navy) 74%); }
.construction-chapter { background: linear-gradient(180deg, var(--cream), var(--white) 32%); }
.renovation-chapter { background: linear-gradient(125deg, var(--hunter-dark), var(--hunter) 65%, var(--hunter-dark)); }
.projects { background: linear-gradient(180deg, var(--cream), var(--white) 18rem); }
.about { background: linear-gradient(120deg, var(--navy-deep), var(--navy) 72%); }
#project-form { background: linear-gradient(145deg, var(--cream), var(--white)); }
.button:not(:disabled) { background-image: linear-gradient(115deg, var(--hunter-dark), var(--hunter), var(--hunter-dark)); background-size: 200% 100%; background-position: 0 50%; }
.button:not(:disabled):hover, .button:not(:disabled):focus-visible { background-position: 100% 50%; }
.hero .button:not(:disabled) { background-image: linear-gradient(115deg, var(--white), var(--cream), var(--white)); }
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-position 350ms var(--motion-ease), border-color 200ms var(--motion-ease), transform 200ms var(--motion-ease), box-shadow 200ms var(--motion-ease); }
  .button:not(:disabled):hover { box-shadow: 0 .3rem .7rem var(--shadow-cta); }
  .button:not(:disabled):active { transform: scale(.98); box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .header { transition: none; } }

/* Pass 11: a single calm project sequence and a shorter contact route. */
.carousel-topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-xl); }
.gallery-toolbar { margin: 0; }
.gallery { display: flex; align-items: start; gap: var(--space-md); max-width: 64rem; margin-inline: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery .project { flex: 0 0 100%; width: 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.gallery .project-open { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10; }
.gallery .project .project-open img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.gallery .project figcaption { padding-top: var(--space-md); color: var(--navy); font-size: var(--text-base); }
.project-carousel.is-enhanced .gallery { overflow: hidden; scroll-snap-type: none; touch-action: pan-y pinch-zoom; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin: 0; }
.carousel-controls button { min-height: var(--control-height); padding: var(--space-sm) var(--space-lg); border: var(--rule) solid var(--hunter); border-radius: var(--control-radius); background: var(--white); color: var(--hunter-dark); font-weight: 600; }
.carousel-controls button:hover { background: var(--cream); }
#gallery-count { margin: 0; text-align: center; color: var(--ink); }
.contact-teaser { background: var(--cream); }
.contact-teaser-inner { display: flex; align-items: end; justify-content: space-between; gap: var(--space-xl); }
.contact-teaser h2, .contact-intro h1 { font-size: var(--text-section); }
.contact-teaser p { margin-top: var(--space-md); font-size: var(--text-lg); }
.contact { padding-block: var(--space-3xl); }
.contact-intro h1 { max-width: 12ch; }
.footer-cream { padding-block: var(--space-xl); }
.footer-legal { padding-block: var(--space-md); }
.footer-main { flex-wrap: wrap; gap: var(--space-lg); }
.footer-nav { flex-wrap: wrap; gap: 0 var(--space-xl); }
.footer-nav a { font-size: var(--text-sm); }
.socials { gap: var(--space-sm); }
.socials a { justify-content: center; min-width: var(--control-height); min-height: var(--control-height); color: var(--navy); }
.socials svg { display: block; width: 1.5rem; height: 1.5rem; }
#form-success h2 { font-size: var(--text-xl); }
@media (max-width: 700px) {
  .carousel-controls { width: 100%; }
  .gallery .project { width: 100%; margin: 0; }
  .gallery .project-open { aspect-ratio: 4 / 3; }
  .contact-teaser-inner { align-items: start; flex-direction: column; }
  .footer-nav { justify-content: flex-start; }
}

/* Pass 12: let the house fill the hero while copy stays on a legible navy veil. */
:root {
  --hero-veil: oklch(0.22942 0.04754 263.73 / .86);
  --hero-veil-end: oklch(0.22942 0.04754 263.73 / .68);
}
.hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr); min-height: min(43rem, calc(100svh - var(--header-height))); overflow: clip; }
.hero-media { position: absolute; inset: 0; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero-veil) 0%, var(--hero-veil) 43%, var(--hero-veil-end) 100%); pointer-events: none; }
.hero-copy { z-index: 1; width: calc(100% - 2 * var(--gutter)); max-width: var(--container); margin-inline: auto; padding: var(--space-3xl) 0; justify-content: flex-start; background: none; }
.hero-copy-inner { width: min(100%, 33rem); }
.hero h1 { max-width: 13ch; }
.accessibility-note a { text-decoration-thickness: 1px; }
/* Same ordered, multi-visible strip is usable without JavaScript. */
.gallery { max-width: none; }
.gallery .project { flex-basis: calc((100% - 2 * var(--space-md)) / 2.1428571429); width: calc((100% - 2 * var(--space-md)) / 2.1428571429); }
.gallery .project-open { aspect-ratio: 4 / 3; }
.gallery .project .project-open img { object-fit: cover; }
.gallery .project figcaption { font-size: var(--text-sm); }
.carousel-controls { flex-wrap: wrap; justify-content: flex-start; gap: var(--space-sm); }
.carousel-controls button { padding-inline: var(--space-md); }
.carousel-controls button:disabled { color: var(--muted); border-color: var(--line); background: var(--cream); }
@media (max-width: 700px) {
  .hero { display: grid; min-height: min(38rem, calc(100svh - var(--header-height))); }
  .hero::after { background: linear-gradient(90deg, var(--hero-veil), var(--hero-veil) 65%, var(--hero-veil-end)); }
  .hero-copy { display: flex; padding-block: var(--space-3xl); }
  .hero-media { height: auto; }
  .hero-image { object-position: 57% center; }
  .gallery .project { flex-basis: calc((100% - var(--space-md)) / 1.4285714286); width: calc((100% - var(--space-md)) / 1.4285714286); }
}

/* Pass 13: an illustrative construction comparison and a sliding project strip. */
.compare-stage { --compare-split: 50%; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--cream); }
.construction-photo .compare-stage img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: center; }
.compare-finished { position: absolute; inset: 0; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--compare-split)) 0 0); }
.compare-label { position: absolute; top: var(--space-md); z-index: 1; padding: var(--space-sm) var(--space-md); border-radius: var(--control-radius); background: var(--navy-deep); color: var(--white); font-size: var(--text-sm); font-weight: 600; }
.compare-label-before { left: var(--space-md); }
.compare-label-after { right: var(--space-md); }
.compare-stage[data-edge="before"] .compare-label-before,.compare-stage[data-edge="after"] .compare-label-after { display: none; }
.compare-divider { position: absolute; z-index: 2; inset-block: 0; left: var(--compare-split); width: var(--focus-width); background: var(--white); transform: translateX(-50%); pointer-events: none; }
.compare-handle { position: absolute; z-index: 2; top: 50%; left: clamp(2rem, var(--compare-split), calc(100% - 2rem)); pointer-events: none; display: grid; place-items: center; width: var(--control-height); height: var(--control-height); border: 2px solid var(--white); border-radius: 50%; background: var(--navy-deep); color: var(--white); font-size: var(--text-xl); line-height: 1; transform: translate(-50%, -50%); }
.compare-stage:focus-within .compare-handle { outline: var(--focus-width) solid var(--hunter); outline-offset: var(--focus-offset); }
.compare-range { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare-range:disabled { cursor: default; }
.gallery-track { display: flex; align-items: start; gap: var(--space-md); width: 100%; }
.project-carousel.is-enhanced .gallery-track { will-change: transform; }
@media (max-width: 700px) {
  .compare-label { top: var(--space-sm); padding: var(--space-xs) var(--space-sm); }
  .compare-label-before { left: var(--space-sm); }
  .compare-label-after { right: var(--space-sm); }
}

/* Pass 14: the options follow the introduction across the entire content width. */

/* Pass 15: the image layers move within their own cropped frames, never the comparison. */
@media (prefers-reduced-motion: no-preference) {
  .has-photo-parallax .renovation-chapter figure { overflow: clip; }
  .has-photo-parallax .hero-media,
  .has-photo-parallax .renovation-chapter figure > img,
  .has-photo-parallax .gallery .project-open img {
    transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.08);
  }
}

/* Pass 17A: a clear path and direct contact without changing the gallery. */
.truth-bar { background: var(--cream); color: var(--navy); padding-block: var(--space-lg); text-align: center; }
.truth-bar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm) var(--space-xl); }
.process { background: var(--white); }
.process h2 { font-size: var(--text-section); }
.process ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-xl); list-style: none; padding: 0; margin: var(--space-2xl) 0 0; }
.process li { border-top: var(--rule) solid var(--hunter); padding-top: var(--space-lg); }
.process strong,.process li span { display: block; }
.process strong { color: var(--navy); font-size: var(--text-xl); }
.process li span { margin-top: var(--space-sm); }
.mobile-call { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
  .mobile-call { position: fixed; z-index: 9; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: var(--space-sm) var(--space-md) calc(var(--space-sm) + env(safe-area-inset-bottom)); background: var(--hunter-dark); color: var(--white); font-weight: 600; text-decoration: none; }
  .mobile-call:focus-visible { outline-offset: -4px; outline-color: var(--white); }
  .process ol { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
  html { scroll-padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
  #project-form button, #project-form input, #project-form select, #project-form textarea { scroll-margin-bottom: calc(4rem + env(safe-area-inset-bottom)); }
}

/* Pass 17: matte frame, an illustrated line and a single project sequence. */
.hero-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 clamp(.5rem, 1.2vw, 1rem) var(--navy); }
.paths { padding-block: var(--space-2xl); background: var(--cream); }
.paths h2 { font-size: var(--text-title); }
.paths nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-lg); align-items: stretch; }
.paths a { display: flex; flex-direction: column; align-items: stretch; min-width: 0; background: var(--navy); color: var(--white); text-decoration: none; }
.paths a img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.paths a > span { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: var(--control-height); padding: var(--space-md) var(--space-lg); font-size: var(--text-lg); font-weight: 600; }
.paths a:hover > span, .paths a:focus-visible > span { text-decoration: underline; }
.paths a:focus-visible { outline-color: var(--hunter-dark); }
@media (max-width: 700px) { .paths nav { grid-template-columns: minmax(0, 1fr); } }
.process-mark { display: block; width: 7.5rem; height: auto; margin-bottom: var(--space-lg); fill: none; stroke: var(--hunter); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .process-mark.is-drawing path { stroke-dasharray: 300; animation: line-draw 3s ease-out both; }
  @keyframes line-draw { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
}
.job-story { background: var(--cream); }
.story-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-xl); }
.story-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) { .story-grid { grid-template-columns: minmax(0,1fr); } }

/* Pass 18: Work is its own page; the home teaser links to it. */
nav .nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--hunter); text-decoration-thickness: 2px; }
.see-all { margin-top: var(--space-2xl); }
.page-work .projects { padding-top: var(--space-3xl); }
