/* ==========================================================================
   Ryandan Construction & Carpentry — homepage
   Idea: the oak ledged-and-braced door. Vertical boards, V-joints, iron straps.
   Palette is sampled from the work: painted navy island, oak, Cotswold stone,
   limewash walls and forged iron.
   ========================================================================== */

:root {
  --navy: #1b2b3b;
  --navy-deep: #131f2b;
  --oak: #b98445;
  --oak-hi: #dcab70;
  --oak-deep: #7a4f28;
  --stone: #cdb994;
  --stone-deep: #b9a278;
  --lime: #e9e7e0;
  --lime-deep: #dcd9ce;
  --iron: #16181b;

  --font-display: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --font-text: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --font-ui: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(20px, 4.4vw, 68px);
  --max: 1400px;
  --section: clamp(76px, 10.5vw, 160px);
  --header-h: 76px;
  --ledge-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--lime);
  color: var(--iron);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd, p { margin: 0; }

:focus-visible { outline: 2px solid var(--oak-hi); outline-offset: 3px; }
.on-lime :focus-visible, .on-stone :focus-visible { outline-color: var(--oak-deep); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 300;
  background: var(--lime); color: var(--navy); padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  letter-spacing: -.012em;
  text-wrap: balance;
}
em { font-family: var(--font-text); font-style: italic; }

.section { padding-block: var(--section); }
.on-lime { background: var(--lime); color: var(--iron); }
.on-navy { background: var(--navy); color: var(--lime); }
.on-stone { background: var(--stone); color: var(--navy); }

.eyebrow, .place {
  font: 600 .75rem/1.2 var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Iron strap: buttons + tags ---------- */
.strap {
  --strap-bg: var(--iron);
  --strap-fg: var(--lime);
  position: relative;
  display: inline-flex; align-items: center; gap: .8em;
  margin-right: 18px;
  padding: 1.05em 1.5em 1.05em 1.7em;
  background: var(--strap-bg);
  color: var(--strap-fg);
  font: 600 .8125rem/1 var(--font-ui);
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 0; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, color .25s;
}
.strap::before {                               /* rivet */
  content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,255,255,.08) 70%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.strap::after {                                /* spearhead tip */
  content: ''; position: absolute; top: 0; bottom: 0; left: 100%; width: 18px;
  background: var(--strap-bg);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: width .35s var(--ease), background-color .25s;
}
.strap span { font-weight: 700; }
.strap:hover { transform: translateX(4px); }
.strap:hover::after { width: 26px; }
.strap--lime { --strap-bg: var(--lime); --strap-fg: var(--navy); }
.strap--lime::before { background: radial-gradient(circle at 35% 30%, #fff, rgba(27,43,59,.35) 70%); }
.strap--oak { --strap-bg: var(--oak); --strap-fg: var(--iron); }
.strap--oak::before { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.8), rgba(0,0,0,.25) 75%); }
.strap--sm { padding: .85em 1.2em .85em 1.4em; font-size: .75rem; }
.strap--btn { font-family: var(--font-ui); }
.on-lime .strap:not(.strap--lime):not(.strap--oak):hover { --strap-bg: var(--navy); }

.tag {
  position: relative; display: inline-block; vertical-align: middle;
  margin-right: 12px; padding: .5em .8em .5em .9em;
  background: var(--iron); color: var(--lime);
  font: 600 .6875rem/1 var(--font-ui);
  letter-spacing: .14em; text-transform: uppercase;
}
.tag::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 100%; width: 9px;
  background: var(--iron); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.tag--oak { background: var(--oak); color: var(--iron); }
.tag--oak::after { background: var(--oak); }
.on-navy .tag:not(.tag--oak) { background: var(--lime); color: var(--navy); }
.on-navy .tag:not(.tag--oak)::after { background: var(--lime); }
.on-stone .tag { background: var(--navy); color: var(--lime); }
.on-stone .tag::after { background: var(--navy); }
.place { opacity: .8; vertical-align: middle; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .8125rem/1 var(--font-ui); letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; padding: .6em 0;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
  transition: background-size .3s var(--ease), gap .3s var(--ease);
}
.link-arrow::after { content: '\2193'; font-size: 1.1em; transition: transform .3s var(--ease); }
.link-arrow:hover { gap: .9em; }
.link-arrow:hover::after { transform: translateY(2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--lime);
  transition: background-color .35s, box-shadow .35s;
}
.site-header::before {
  content: ''; position: absolute; inset: 0 0 -28px 0; pointer-events: none;
  background: linear-gradient(rgba(19,31,43,.72), rgba(19,31,43,0));
  transition: opacity .35s;
}
.site-header.is-solid { background: var(--navy); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header.is-solid::before { opacity: 0; }
.site-header .bar {
  position: relative; height: var(--header-h);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
}
.brand { display: block; flex: none; line-height: 0; margin-right: auto; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  font: 500 .8125rem/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: .6em 0;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size .35s var(--ease);
}
.nav a:hover, .nav a:focus-visible { background-size: 100% 1px; }
.header-call { margin-right: 18px; }
.menu-btn { display: none; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy); color: var(--lime);
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { display: grid; gap: 4px; }
.mobile-nav nav a {
  font: 400 clamp(2.4rem, 11vw, 3.6rem)/1.15 var(--font-display);
  text-decoration: none; padding: .12em 0;
  border-bottom: 1px solid rgba(233,231,224,.14);
}
.mobile-nav-contact { display: grid; gap: 22px; justify-items: start; padding-top: 36px; }
.plain-link { font-size: 1rem; word-break: break-word; }

/* ---------- Hero: three boards, one ledge ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(660px, 100vh); min-height: max(660px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--navy-deep); color: var(--lime);
}
.boards {
  position: absolute; inset: 0 0 var(--ledge-h) 0; z-index: -1;
  display: grid; grid-template-columns: 1.2fr 1fr .8fr;
}
.boards::after {                               /* legibility wash */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(19,31,43,.5) 0, rgba(19,31,43,0) 24%),
    linear-gradient(0deg, rgba(19,31,43,.9) 0, rgba(19,31,43,.55) 36%, rgba(19,31,43,0) 66%);
}
.board { position: relative; overflow: hidden; background: var(--navy); }
.board img { width: 100%; height: 100%; object-fit: cover; }
.board + .board::before {                      /* the V-joint */
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; z-index: 2;
  background: linear-gradient(90deg, rgba(8,12,16,.7) 0 1px, rgba(255,255,255,.28) 1px 2px, rgba(8,12,16,.35) 2px 3px);
}

.hero-copy { position: relative; padding-top: calc(var(--header-h) + 120px); padding-bottom: clamp(36px, 5vw, 64px); }
.hero h1 {
  font-size: clamp(2.9rem, 7.6vw, 7.8rem);
  line-height: .98; letter-spacing: -.02em;
  max-width: 12.5em;
  text-wrap: balance;
}
.hero h1 em { color: var(--oak-hi); }
.hero-sub { margin-top: clamp(18px, 2vw, 28px); max-width: 38em; font-size: clamp(1.02rem, 1.35vw, 1.25rem); line-height: 1.55; color: rgba(233,231,224,.92); }
.hero-actions { margin-top: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }

.ledge { position: relative; height: var(--ledge-h); background: var(--iron); color: rgba(233,231,224,.8); }
.ledge-row { height: 100%; display: grid; grid-template-columns: 1.2fr 1fr .8fr; align-items: center; padding-inline: 0; max-width: none; }
.ledge-row p {
  display: flex; align-items: center; gap: .9em;
  padding-inline: var(--gutter) 12px;
  font: 500 .75rem/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
}
.ledge-row p::before {
  content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.6), rgba(255,255,255,.08) 70%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.ledge-row p + p { border-left: 1px solid rgba(233,231,224,.1); padding-left: clamp(16px, 1.8vw, 28px); }

/* page-load: boards are fitted one after another */
@keyframes board-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes board-img { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.js .board { animation: board-in 1.15s var(--ease) both; }
.js .board--2 { animation-delay: .12s; }
.js .board--3 { animation-delay: .24s; }
.js .board img { animation: board-img 1.9s var(--ease) both; }
.js .board--2 img { animation-delay: .12s; }
.js .board--3 img { animation-delay: .24s; }
.js .hero h1, .js .hero-sub, .js .hero-actions { animation: rise .9s var(--ease) both; }
.js .hero h1 { animation-delay: .65s; }
.js .hero-sub { animation-delay: .8s; }
.js .hero-actions { animation-delay: .95s; }
.js .site-header .bar, .js .ledge { animation: fade .9s ease both; animation-delay: .9s; }

/* ---------- Lead ---------- */
.lead-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 56px; align-items: start; }
.lead-text { grid-column: 1 / span 7; }
.lead-statement {
  font-family: var(--font-text); font-size: clamp(1.65rem, 3.05vw, 3rem); line-height: 1.24; letter-spacing: -.018em;
}
.lead-statement em { color: var(--oak-deep); }
.lead-body { margin-top: clamp(28px, 3vw, 44px); max-width: 34em; font-size: 1.125rem; }
.lead-links { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.plate--lead { grid-column: 9 / span 4; margin-top: clamp(0px, 4vw, 72px); }

/* ---------- Plates ---------- */
.plate-media { position: relative; background: var(--stone-deep); overflow: hidden; }
.plate-media > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1s var(--ease); }
@media (hover: hover) { .rail .plate:hover .plate-media > img { transform: scale(1.035); } }
.plate figcaption, .plate-body { font-size: .9375rem; line-height: 1.55; }
.plate--lead figcaption { margin-top: 18px; display: grid; gap: 8px; justify-items: start; }
.plate--lead figcaption strong { font: 400 1.5rem/1.2 var(--font-display); }
.plate--lead figcaption .tag { margin-bottom: 4px; }

.inset {
  position: absolute; left: 12px; bottom: 12px; width: 31%; aspect-ratio: 1;
  border: 3px solid var(--lime); background: var(--lime); overflow: hidden;
  box-shadow: 0 6px 18px rgba(19,31,43,.28);
}
.inset img { width: 100%; height: 100%; object-fit: cover; }
.inset span {
  position: absolute; left: 0; bottom: 0; padding: 5px 7px 4px;
  background: var(--iron); color: var(--lime);
  font: 600 .625rem/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- Work features ---------- */
.work-anchor { height: 0; }
.work-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 14px; margin-bottom: clamp(40px, 6vw, 88px); align-items: baseline; }
.work-head .eyebrow { grid-column: 1 / span 4; color: var(--oak-hi); }
.work-note { grid-column: 5 / span 6; font-size: 1.0625rem; max-width: 34em; color: rgba(233,231,224,.8); }

.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 56px; align-items: start; }
.feature-text { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); }
.feature-text h2 { font-size: clamp(2.2rem, 4.4vw, 4.4rem); line-height: 1.03; margin-top: 22px; }
.feature--roof h2 em { color: var(--oak-hi); }
.feature-body { margin-top: 22px; max-width: 30em; font-size: 1.0625rem; }
.feature-body--quiet { opacity: .75; font-size: .9375rem; margin-top: 14px; }

.spec { margin-top: 34px; max-width: 32em; border-top: 1px solid rgba(233,231,224,.2); }
.spec > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(233,231,224,.2); font-size: .9375rem; }
.spec dt { font: 600 .6875rem/1.7 var(--font-ui); letter-spacing: .15em; text-transform: uppercase; color: var(--oak-hi); }
.spec dd { line-height: 1.45; }

.notes { margin-top: 36px; display: flex; align-items: center; gap: 18px; }
.notes img { width: 84px; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--lime); }
.notes figcaption { font: 400 1.0625rem/1.3 var(--font-text); font-style: italic; opacity: .85; }

.feature-plates { grid-column: 7 / span 6; display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.fp img { width: 100%; object-fit: cover; background: var(--navy-deep); }
.fp figcaption { margin-top: 10px; font-size: .8125rem; opacity: .7; }
.fp--a { grid-row: 1 / span 2; }
.fp--a img { aspect-ratio: 3 / 4.15; }
.fp--b img, .fp--c img { aspect-ratio: 4 / 5; }
.fp--b { margin-top: 12%; }

/* before / after */
.feature--doors .feature-grid--flip .ba-wrap { grid-column: 1 / span 5; }
.feature--doors .feature-text { grid-column: 7 / span 5; }
.feature--doors h2 em { color: var(--oak-deep); }
.feature--doors .feature-text { position: static; align-self: center; }

.ba { position: relative; overflow: hidden; background: var(--stone-deep); aspect-ratio: 3 / 4; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba-label {
  position: absolute; top: 14px; padding: 6px 9px 5px; background: var(--iron); color: var(--lime);
  font: 600 .6875rem/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; pointer-events: none;
}
.ba-label--before { left: 14px; }
.ba-label--after { right: 14px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 0; pointer-events: none; }
.ba-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; background: var(--iron); box-shadow: 0 0 0 1px rgba(233,231,224,.5); }
.ba-handle span {
  position: absolute; top: 50%; left: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  background: var(--iron); color: var(--lime); display: grid; place-items: center;
  box-shadow: 0 0 0 2px rgba(233,231,224,.55), 0 8px 20px rgba(19,31,43,.35);
}
.ba-handle span::before { content: '\2039\00a0\203A'; font: 400 1.5rem/1 var(--font-text); letter-spacing: .02em; transform: translateY(-2px); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; appearance: none; -webkit-appearance: none; }
.ba:focus-within .ba-handle span { box-shadow: 0 0 0 2px var(--oak-hi), 0 8px 20px rgba(19,31,43,.35); }
.ba-hint { margin-top: 14px; font-size: .875rem; opacity: .75; }

/* ---------- Rail ---------- */
.rail-section { overflow: hidden; }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 52px); }
.rail-head h2 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.05; }
.rail-controls { display: flex; gap: 10px; }
.rail-btn {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--iron); color: var(--lime); border: 0; cursor: pointer; font-size: 1.25rem;
  transition: background-color .25s, opacity .25s, transform .3s var(--ease);
}
.rail-btn:hover:not(:disabled) { background: var(--navy); transform: translateY(-2px); }
.rail-btn:disabled { opacity: .3; cursor: default; }

.rail {
  display: flex; gap: clamp(16px, 1.8vw, 28px);
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail.is-dragging * { pointer-events: none; }
.rail .plate { flex: 0 0 clamp(268px, 27vw, 396px); scroll-snap-align: start; }
.rail .plate-body { padding-top: 18px; display: grid; gap: 10px; justify-items: start; }
.rail .plate-body h3 { font-size: 1.75rem; line-height: 1.12; }
.rail .plate-body p:last-child { color: rgba(22,24,27,.82); }
.rail .plate-body > p:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; }
.rail:focus-visible { outline-offset: -4px; }

.rail-progress { margin-top: 36px; height: 3px; background: rgba(22,24,27,.14); position: relative; }
.rail-progress span { position: absolute; top: 0; bottom: 0; left: 0; width: 20%; background: var(--iron); transition: left .12s linear; }
.rail-more { margin-top: 22px; font-size: .9375rem; }
.rail-more a { text-underline-offset: 3px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 48px; align-items: start; }
.services-list { grid-column: 1 / span 7; }
.services-list header { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 44px); }
.services-list h2 { font-size: clamp(2.2rem, 4.4vw, 4.4rem); line-height: 1.03; }
.services-note { font-size: .9375rem; opacity: .7; }
.svc { position: relative; padding: clamp(22px, 2.4vw, 34px) 0; border-top: 1px solid rgba(233,231,224,.2); transition: padding .4s var(--ease); }
.svc:last-child { border-bottom: 1px solid rgba(233,231,224,.2); }
.svc h3 { font-size: clamp(1.75rem, 3vw, 2.9rem); line-height: 1.08; color: rgba(233,231,224,.62); transition: color .3s, transform .4s var(--ease); }
.svc p { margin-top: 12px; max-width: 34em; color: rgba(233,231,224,.78); }
.svc.is-active h3 { color: var(--lime); transform: translateX(36px); }
.svc::before {                                 /* strap pointer on the active row */
  content: ''; position: absolute; left: 0; top: clamp(34px, 3.4vw, 50px); width: 0; height: 10px;
  background: var(--oak); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  transition: width .4s var(--ease);
}
.svc.is-active::before { width: 22px; }
.svc-thumb { display: none; }

.svc-preview { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 32px); }
.svc-stack { position: relative; aspect-ratio: 4 / 5; background: var(--navy-deep); overflow: hidden; }
.svc-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.svc-stack img.is-active { opacity: 1; }
.svc-preview figcaption { margin-top: 12px; font-size: .8125rem; letter-spacing: .02em; opacity: .75; min-height: 1.5em; }

/* ---------- Reviews ---------- */
.eyebrow-h { font: 600 .75rem/1.2 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; margin-bottom: clamp(36px, 5vw, 72px); }
.reviews-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 56px; align-items: end; }
.quote { display: grid; gap: 24px; }
.quote--big { grid-column: 1 / span 7; }
.quote:not(.quote--big) { grid-column: 9 / span 4; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--font-text); font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.32; letter-spacing: -.012em; }
.quote--big p { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 3.5rem); line-height: 1.12; letter-spacing: -.018em; text-wrap: balance; }
.quote p::before { content: '\201C'; margin-left: -.5em; display: inline-block; width: .5em; }
.quote p::after { content: '\201D'; }
.quote figcaption { font-size: .9375rem; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; }

/* ---------- Enquire ---------- */
.enquire-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 56px; align-items: start; }
.enquire-text { grid-column: 1 / span 5; }
.enquire h2 { font-size: clamp(2.5rem, 5.4vw, 5.4rem); line-height: 1; }
.enquire h2 em { color: var(--oak-deep); }
.enquire-lead { margin-top: 26px; max-width: 28em; font-size: 1.125rem; }
.contact-list { margin-top: 40px; border-top: 1px solid rgba(22,24,27,.2); max-width: 30em; }
.contact-list > div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(22,24,27,.2); }
.contact-list dt { font: 600 .6875rem/1.9 var(--font-ui); letter-spacing: .15em; text-transform: uppercase; color: var(--oak-deep); }
.contact-list a { text-underline-offset: 3px; word-break: break-word; }

.form { grid-column: 7 / span 6; display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field label { font: 600 .6875rem/1 var(--font-ui); letter-spacing: .15em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; padding: .7em 0 .75em; background: transparent; border: 0; border-radius: 0;
  border-bottom: 1.5px solid rgba(22,24,27,.45);
  font-size: 1.125rem; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 7.5em; }
.field input::placeholder { color: rgba(22,24,27,.45); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--oak-deep); box-shadow: 0 1.5px 0 var(--oak-deep); }
.field.has-error input, .field.has-error textarea { border-bottom-color: #9b2c1f; box-shadow: 0 1.5px 0 #9b2c1f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.form-hint { font-size: .875rem; opacity: .75; max-width: 20em; }
.form-status { font-size: 1rem; min-height: 1.6em; }
.form-status.is-ok { color: #2b5a35; }
.form-status.is-error { color: #9b2c1f; }
.form-status a { text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--iron); color: rgba(233,231,224,.78); padding-top: clamp(56px, 7vw, 96px); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 40px; align-items: start; }
.footer-brand { grid-column: 1 / span 5; }
.footer-brand img { width: min(340px, 78%); height: auto; }
.footer-brand p { margin-top: 22px; max-width: 24em; }
.footer-nav { grid-column: 7 / span 2; display: grid; gap: 10px; align-content: start; }
.footer-contact { grid-column: 9 / span 4; display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer-nav a, .footer-contact a { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .3s var(--ease), color .2s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--lime); background-size: 100% 1px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 80px); padding-block: 24px; border-top: 1px solid rgba(233,231,224,.14); font-size: .8125rem; }
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--lime); }

/* ---------- Mobile call bar ---------- */
.call-bar { display: none; }

/* ======================= Responsive ======================= */
@media (max-width: 1100px) {
  .lead-text { grid-column: 1 / span 12; }
  .plate--lead { grid-column: 1 / span 6; margin-top: 0; }
  .feature-text { grid-column: 1 / span 6; }
  .feature-plates { grid-column: 7 / span 6; }
  .feature--doors .feature-grid--flip .ba-wrap { grid-column: 1 / span 6; }
  .feature--doors .feature-text { grid-column: 8 / span 5; }
  .services-list { grid-column: 1 / span 8; }
  .svc-preview { grid-column: 9 / span 4; }
  .quote--big { grid-column: 1 / span 12; }
  .quote:not(.quote--big) { grid-column: 1 / span 8; }
  .enquire-text { grid-column: 1 / span 12; }
  .form { grid-column: 1 / span 12; }
  .footer-brand { grid-column: 1 / span 12; }
  .footer-nav { grid-column: 1 / span 5; }
  .footer-contact { grid-column: 6 / span 7; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; --ledge-h: 56px; }
  .nav, .header-call { display: none; }
  .brand img { height: 40px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 12px; padding: 10px 0 10px 14px;
    background: none; border: 0; cursor: pointer; color: inherit;
    font: 600 .75rem/1 var(--font-ui); letter-spacing: .15em; text-transform: uppercase;
    position: relative; z-index: 120;
  }
  .menu-icon { position: relative; width: 24px; height: 18px; display: block; }
  .menu-icon i { position: absolute; left: 1px; width: 22px; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
  .menu-icon i:nth-child(1) { top: 4px; }
  .menu-icon i:nth-child(2) { top: 12px; }
  .menu-btn[aria-expanded="true"] .menu-icon i:nth-child(1) { top: 8px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon i:nth-child(2) { top: 8px; transform: rotate(-45deg); }
  body.is-locked .site-header { background: var(--navy); }
  body.is-locked .site-header::before { opacity: 0; }

  .boards { grid-template-columns: 1fr; }
  .board--2, .board--3 { display: none; }
  .ledge-row { grid-template-columns: 1fr; }
  .ledge-row p:nth-child(n+2) { display: none; }
  .hero-copy { padding-top: calc(var(--header-h) + 80px); }

  .lead-grid, .feature-grid, .work-head, .services-grid, .reviews-grid, .enquire-grid { display: block; }
  .work-note { margin-top: 10px; }
  .plate--lead { margin-top: 56px; max-width: 460px; }
  .feature-text { position: static; margin-bottom: 40px; }
  .feature--doors .feature-text { margin-top: 40px; margin-bottom: 0; }
  .feature-plates { margin-top: 8px; }
  .ba-wrap { max-width: 520px; }

  .rail-btn { width: 46px; height: 46px; }
  .rail .plate { flex-basis: min(76vw, 340px); }

  .services-list header { margin-bottom: 20px; }
  .svc { display: grid; grid-template-columns: 1fr 88px; column-gap: 20px; align-items: start; }
  .svc h3, .svc.is-active h3 { color: var(--lime); transform: none; }
  .svc h3 { grid-column: 1; }
  .svc p { grid-column: 1; }
  .svc-thumb { display: block; grid-column: 2; grid-row: 1 / span 2; }
  .svc-thumb img { width: 88px; aspect-ratio: 3 / 4; object-fit: cover; }
  .svc::before { display: none; }
  .svc-preview { display: none; }

  .quote + .quote { margin-top: 48px; }
  .form { margin-top: 48px; }
  .contact-list { max-width: none; }

  .call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: flex; gap: 6px; justify-content: space-between; align-items: center;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--navy-deep); box-shadow: 0 -1px 0 rgba(255,255,255,.1);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .call-bar.is-visible { transform: none; }
  .call-bar .strap { flex: 1 1 0; justify-content: center; margin-right: 18px; }
  .site-footer { padding-bottom: 76px; }
}

@media (min-width: 640px) and (max-width: 900px) {
  /* portrait tablets: keep the before/after beside its text instead of stacking */
  .feature--doors .feature-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); align-items: center; }
  .feature--doors .ba-wrap { max-width: none; }
  .feature--doors .feature-text { margin-top: 0; }
  .lead-grid { display: grid; grid-template-columns: 1fr; }
  .plate--lead { max-width: 420px; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.7rem, 13.4vw, 3.6rem); }
  .hero-actions { gap: 10px 28px; }
  .spec > div { grid-template-columns: 1fr; gap: 2px; }
  .lead-statement { font-size: 1.55rem; }
  .feature-plates { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fp--a { grid-column: 1 / span 2; grid-row: auto; }
  .fp--a img { aspect-ratio: 4 / 4.4; }
  .fp--b { margin-top: 0; }
  .contact-list > div { grid-template-columns: 1fr; gap: 0; }
  .footer-nav, .footer-contact { grid-column: 1 / span 12; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .board, .board img { clip-path: none !important; transform: none !important; }
}

@media (hover: none) {
  .strap:hover { transform: none; }
}
