/* ==========================================================================
   JMD Property Solutions : homepage mockup
   Direction: "evening light". Dusk navy and brand red from the JMD identity,
   square edges like the logo's houses, captions set out like the title block
   on an architect's drawing.
   ========================================================================== */

:root {
  --navy: #1a2043;
  --night: #0f142b;
  --red: #d5222a;
  --red-deep: #a9161d;
  --chalk: #f3f2ef;
  --stone: #e6e3dd;
  --ink: #171a26;
  --slate: #535869;
  --mist: #b4b9cb;
  --lamp: #f0b35a;

  --line: rgba(23, 26, 38, .17);
  --line-light: rgba(243, 242, 239, .18);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  --wrap: 1520px;
  --gutter: clamp(20px, 4.4vw, 68px);
  --gap: clamp(16px, 2vw, 32px);
  --space: clamp(84px, 10vw, 164px);
  --ease: cubic-bezier(.22, .68, .12, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -.018em;
  line-height: 1.07;
  text-wrap: balance;
}
h2 { font-size: clamp(2.125rem, 1.15rem + 3vw, 4rem); }
h3 { font-size: clamp(1.625rem, 1.15rem + 1.35vw, 2.375rem); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.hero :focus-visible, .site-header:not(.is-solid) :focus-visible, .case-farnham :focus-visible,
.case-compare :focus-visible, .contact :focus-visible, .site-footer :focus-visible,
.menu :focus-visible, .lightbox :focus-visible, .reviews :focus-visible, .dock :focus-visible { outline-color: var(--lamp); }

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

.label {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: .19em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--slate);
}
.lead { font-size: 1.375rem; line-height: 1.45; font-weight: 300; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; background: var(--chalk); color: var(--ink);
  font: 600 .875rem var(--sans);
}
.skip:focus { top: 12px; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px;
  border: 1px solid transparent;
  font-family: var(--sans); font-size: .9375rem; font-weight: 600; font-stretch: 106%;
  line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .8125rem; }
.btn-ghost { border-color: rgba(243, 242, 239, .55); }
.btn-ghost:hover { background: var(--chalk); border-color: var(--chalk); color: var(--night); }

.link-line {
  font-family: var(--sans); font-size: .9375rem; font-weight: 600; font-stretch: 104%;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
  transition: text-underline-offset .25s var(--ease), text-decoration-color .25s;
}
.link-line:hover { text-underline-offset: 4px; text-decoration-color: var(--red); text-decoration-thickness: 2px; }

.arrow { display: inline-block; position: relative; width: 22px; height: 1px; background: currentColor; }
.arrow::after {
  content: ""; position: absolute; right: 0; top: -3.5px; width: 8px; height: 8px;
  border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg);
}
.arrow-left { transform: scaleX(-1); }

/* ---------- photography ---------- */
.zoom { display: block; position: relative; width: 100%; overflow: hidden; cursor: zoom-in; background: rgba(125, 128, 140, .18); }
.zoom img { width: 100%; transition: transform 1.1s var(--ease); }
.zoom:hover img { transform: scale(1.025); }
.zoom:focus-visible { outline-offset: 4px; }
figcaption { margin-top: 12px; font-family: var(--sans); font-size: .8125rem; line-height: 1.5; color: var(--slate); }

/* ---------- title block ---------- */
.titleblock { border-top: 1px solid var(--line); font-family: var(--sans); }
.titleblock > div { display: grid; grid-template-columns: 6.75rem minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.titleblock dt { padding-top: 2px; font-size: .625rem; font-weight: 600; letter-spacing: .18em; line-height: 1.8; text-transform: uppercase; color: var(--slate); }
.titleblock dd { font-size: .9375rem; font-weight: 500; line-height: 1.45; }

/* ==========================================================================
   Header and menu
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  height: 92px; padding: 0 var(--gutter);
  color: #fff;
  transition: background-color .3s, color .3s, height .35s var(--ease), box-shadow .3s;
}
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; transition: height .35s var(--ease); }
.brand .brand-light { display: none; }
.site-header.is-solid { height: 72px; background: var(--chalk); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid .brand img { height: 34px; }
.site-header.is-solid .brand .brand-light { display: block; }
.site-header.is-solid .brand .brand-dark { display: none; }

.primary { display: flex; gap: clamp(20px, 2.1vw, 36px); margin-left: auto; font-family: var(--sans); font-size: .875rem; font-weight: 500; }
.primary a { padding: 8px 0 6px; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .2s; }
.primary a:hover { border-bottom-color: currentColor; }
.primary a[aria-current="true"] { border-bottom-color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 22px; margin-left: clamp(4px, 1.6vw, 28px); }
.header-phone { font-family: var(--sans); font-size: .9375rem; font-weight: 600; font-stretch: 112%; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.header-call, .menu-toggle { display: none; }
.header-call { align-items: center; min-height: 40px; padding: 0 15px; border: 1px solid currentColor; font: 600 .8125rem var(--sans); text-decoration: none; }
.menu-toggle { align-items: center; gap: 10px; min-height: 44px; font: 600 .8125rem var(--sans); }
.menu-lines { position: relative; width: 22px; height: 10px; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: top .3s var(--ease), transform .3s var(--ease); }
.menu-lines::before { top: 0; }
.menu-lines::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { top: 4px; transform: rotate(-45deg); }

.site-header.is-menu { background: transparent; color: #fff; box-shadow: none; }
.site-header.is-menu .brand .brand-dark { display: block; }
.site-header.is-menu .brand .brand-light { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  padding: 104px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--night); color: var(--chalk);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu nav a {
  display: block; padding: 12px 0 13px; border-bottom: 1px solid var(--line-light);
  font-family: var(--sans); font-size: clamp(1.75rem, 7.6vw, 2.75rem); font-weight: 500; font-stretch: 112%;
  letter-spacing: -.018em; line-height: 1.1; text-decoration: none;
}
.menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-family: var(--sans); font-size: .9375rem; }
.menu-foot .label { margin: 0 0 4px; color: var(--mist); }
.menu-foot a { text-decoration: none; }
.menu-foot .menu-tel { font-size: 1.75rem; font-weight: 500; font-stretch: 112%; }
.menu-social { display: flex; flex-wrap: wrap; gap: 22px; margin: 10px 0 0; font-weight: 600; }
.menu-social a { text-decoration: underline; text-underline-offset: 6px; }

@media (max-width: 1239px) {
  .primary { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 759px) {
  .site-header, .site-header.is-solid { height: 68px; gap: 12px; }
  .brand img, .site-header.is-solid .brand img { height: 31px; }
  .header-phone, .header-quote { display: none; }
  .header-actions { gap: 16px; }
  .header-call { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  height: 100vh; height: 100svh; min-height: 640px; max-height: 1180px;
  background: var(--night); color: var(--chalk);
}
.hero-photo { grid-area: 1 / 1; position: relative; overflow: hidden; background: #172a59; }
.hero-layer, .hero-layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-layer img { max-width: none; object-fit: cover; object-position: 50% 14%; }
.hero-off { opacity: 0; pointer-events: none; }

/* the opening moment: dusk first, then the lamps come on */
.js .hero-photo { opacity: 0; transition: opacity .6s ease; }
.js .hero-photo.is-ready { opacity: 1; }
.js .hero-off { opacity: 1; transition: opacity 1.25s cubic-bezier(.45, 0, .25, 1); }
.js .hero-photo.is-lit .hero-off { opacity: 0; }
.js .hero-photo.is-lit [data-lamp="porch"] { transition-delay: .25s; }
.js .hero-photo.is-lit [data-lamp="near"] { transition-delay: .95s; }
.js .hero-photo.is-lit [data-lamp="far"] { transition-delay: 1.6s; }

.hero-copy { grid-area: 1 / 1; position: relative; z-index: 2; align-self: start; padding: clamp(116px, 15.5vh, 180px) var(--gutter) 0; pointer-events: none; }
.hero-copy h1 {
  font-size: min(clamp(2.5rem, .7rem + 3.75vw, 5.5rem), 10.4vh);
  line-height: 1.02; letter-spacing: -.027em;
  text-shadow: 0 1px 36px rgba(8, 14, 40, .45);
}
.hero-copy h1 span { display: block; }

.hero-block { grid-area: 2 / 1; display: grid; grid-template-columns: minmax(260px, 1fr) auto minmax(520px, 1.35fr); border-top: 1px solid var(--line-light); }
.hero-sub { align-self: center; max-width: 31em; margin: 0; padding: 26px 32px 26px var(--gutter); font-size: 1.125rem; line-height: 1.45; color: #e4e6ef; text-wrap: pretty; }
.hero-cta { display: flex; align-items: center; gap: 30px; padding: 22px 34px; border-left: 1px solid var(--line-light); }
.hero-tb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; border: 0; border-left: 1px solid var(--line-light); }
.hero-tb > div { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 22px 22px; border: 0; }
.hero-tb > div + div { border-left: 1px solid var(--line-light); }
.hero-tb > div:last-child { padding-right: var(--gutter); }
.hero-tb dt { color: var(--mist); }
.hero-tb dd { font-size: .875rem; }

@media (max-width: 1359px) {
  .hero-block { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-cta { padding-right: var(--gutter); }
  .hero-tb { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-light); }
  .hero-tb > div { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 14px; padding-block: 14px; }
  .hero-tb > div:first-child { padding-left: var(--gutter); }
}

@media (max-width: 759px), (max-aspect-ratio: 1/1) {
  .hero { height: auto; max-height: none; min-height: 0; grid-template-rows: auto auto; }
  .hero-photo { height: max(540px, calc(100vh - 232px)); height: max(540px, calc(100svh - 232px)); max-height: 1100px; }
  .hero-layer img { object-position: 50% 64%; }
  .hero-copy { padding-top: clamp(94px, 13vw, 150px); }
  .hero-copy h1 { max-width: 8.4em; font-size: clamp(2.25rem, 10.3vw, 5rem); font-stretch: 108%; line-height: 1.03; }
  .hero-copy h1 span { display: inline; }
  .hero-block { grid-template-columns: minmax(0, 1fr); }
  .hero-sub { max-width: 34em; padding: 24px var(--gutter) 22px; font-size: 1.1875rem; }
  .hero-cta { flex-wrap: wrap; gap: 22px 28px; padding: 0 var(--gutter) 28px; border: 0; }
  .hero-tb { grid-template-columns: minmax(0, 1fr) auto; grid-column: 1; border-top: 1px solid var(--line-light); }
  .hero-tb > div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px var(--gutter); }
  .hero-tb > div + div { border-left: 0; }
  .hero-tb > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line-light); }
  .hero-tb > div:last-child { grid-column: 2; grid-row: 1; border-left: 1px solid var(--line-light); }
}

/* ==========================================================================
   Introduction
   ========================================================================== */
.intro { padding-block: var(--space); }
.intro-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.intro-label { grid-column: 1 / 4; padding-top: 14px; }
.intro-statement {
  grid-column: 4 / 13;
  font-family: var(--serif); font-weight: 300; font-stretch: normal;
  font-size: clamp(2.125rem, 1rem + 3.15vw, 4.25rem);
  line-height: 1.1; letter-spacing: -.02em; text-wrap: pretty;
}
.intro-statement em { font-style: italic; }
.intro-figure { grid-column: 1 / 8; margin-top: clamp(56px, 8vw, 128px); }
.intro-body { grid-column: 9 / 13; align-self: end; margin-top: clamp(56px, 8vw, 128px); padding-bottom: 34px; }
.intro-body .link-line { display: inline-block; margin-top: 10px; }
.spec { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(64px, 7vw, 104px); border-top: 1px solid var(--ink); font-family: var(--sans); }
.spec > div { padding-top: 18px; }
.spec dt { margin-bottom: 8px; font-size: .625rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; color: var(--slate); }
.spec dd { font-size: 1.0625rem; font-weight: 500; font-stretch: 108%; line-height: 1.35; text-wrap: balance; }

@media (max-width: 899px) {
  .intro-grid { display: block; }
  .intro-label { padding: 0; }
  .intro-figure { margin: 48px calc(var(--gutter) * -1) 0; }
  .intro-figure figcaption { padding-inline: var(--gutter); }
  .intro-body { margin-top: 36px; padding: 0; }
  .spec { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
  .spec > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .spec dt { margin: 0; line-height: 1.6; }
  .spec dd { font-size: .9375rem; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding-block: var(--space); background: var(--stone); }
.sec-head { max-width: 980px; margin-bottom: clamp(44px, 5vw, 76px); }
.sec-head h2 { max-width: 15em; }

.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: repeat(5, max-content) 1fr; column-gap: clamp(32px, 5.2vw, 92px); }
.svc-item { display: contents; }
.svc-item h3 { grid-column: 1; font-size: inherit; }
.svc-tab { display: block; position: relative; width: 100%; padding: 24px 0 23px; border-top: 1px solid var(--line); text-align: left; }
.svc-item:last-child .svc-tab { border-bottom: 1px solid var(--line); }
.svc-tab::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 3px; background: var(--red); transition: width .5s var(--ease); }
.svc-item.is-active .svc-tab::before { width: 72px; }
.svc-name { display: block; font-size: clamp(1.5rem, 1rem + 1.35vw, 2.375rem); line-height: 1.12; color: #686d7d; transition: color .25s; }
.svc-tab:hover .svc-name, .svc-item.is-active .svc-name { color: var(--ink); }
.svc-where { display: block; margin-top: 7px; font-size: .8125rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--slate); }
.svc-panel { grid-column: 2; grid-row: 1 / -1; display: none; }
.svc-item.is-active .svc-panel { display: block; animation: panel-in .55s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.svc-media { display: grid; grid-template-rows: minmax(0, 1fr); gap: 12px; height: clamp(340px, 39vw, 580px); }
.svc-media figure { min-width: 0; min-height: 0; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.media-single { grid-template-columns: minmax(0, 1fr); }
.media-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.media-stack { grid-template-columns: minmax(0, 8fr) minmax(0, 4.4fr); }
.media-stack figure:nth-child(2) { height: 68%; align-self: end; }
.media-stack figure:nth-child(2) img { object-position: 62% 50%; }
.media-offset { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.media-offset figure:nth-child(2) { height: 74%; align-self: end; }
.media-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.svc-text { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 18px 44px; padding-top: 28px; }
.svc-text p { grid-column: 1; margin: 0; text-wrap: pretty; }
.svc-text ul { grid-column: 2; grid-row: 1 / span 2; align-self: start; font-family: var(--sans); font-size: .875rem; font-weight: 500; }
.svc-text li { padding: 9px 0 10px; border-top: 1px solid var(--line); line-height: 1.4; }
.svc-text .link-line { grid-column: 1; justify-self: start; align-self: start; }
.svc-note { max-width: 31em; margin: clamp(48px, 5vw, 76px) 0 0 auto; font-size: 1.375rem; font-style: italic; font-weight: 300; line-height: 1.4; }

@media (max-width: 899px) {
  .svc { display: block; }
  .svc-item { display: block; }
  .svc-tab { padding: 21px 48px 20px 0; }
  .svc-tab::after {
    content: ""; position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
    background:
      linear-gradient(currentColor, currentColor) center / 16px 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) center / 1.5px 16px no-repeat;
  }
  .svc-item.is-active .svc-tab::after { background: linear-gradient(currentColor, currentColor) center / 16px 1.5px no-repeat; }
  .svc-item:last-child:not(.is-active) .svc-tab { border-bottom: 1px solid var(--line); }
  .svc-item:last-child.is-active .svc-tab { border-bottom: 0; }
  .svc-panel { padding-bottom: 38px; }
  .svc-media { gap: 8px; height: clamp(260px, 82vw, 480px); }
  .svc-media.media-stack { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, .7fr); height: clamp(340px, 96vw, 560px); }
  .media-stack figure:nth-child(2) { width: 74%; height: 100%; justify-self: end; }
  .svc-text { display: block; padding-top: 20px; }
  .svc-text ul { margin: 20px 0 22px; }
  .svc-note { margin-top: 40px; font-size: 1.1875rem; }
}

/* ==========================================================================
   Projects
   ========================================================================== */
.case h3 { margin-bottom: 20px; }

/* Farnham */
.case-farnham { padding-block: var(--space); background: var(--night); color: var(--chalk); }
.case-farnham .label, .case-farnham figcaption, .case-farnham .titleblock dt { color: var(--mist); }
.case-farnham .titleblock, .case-farnham .titleblock > div { border-color: var(--line-light); }
.farnham-lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.farnham-hero { grid-column: 1 / 9; margin-left: calc(var(--gutter) * -1); }
.farnham-lead .case-text { grid-column: 9 / 13; }
.case-text p { text-wrap: pretty; }
.case-text .titleblock { margin-top: 30px; }

.farnham-set { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4.6vw, 76px) var(--gap); align-items: start; margin-top: clamp(20px, 2.5vw, 40px); }
.f-porch { grid-column: 1 / 6; margin-top: clamp(24px, 3vw, 48px); }
.f-kitchen { grid-column: 6 / 13; margin-top: clamp(60px, 8vw, 132px); }
.f-bath { grid-column: 2 / 5; }
.f-bath img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 52% 50%; }
.f-corner { grid-column: 5 / 9; margin-top: clamp(40px, 7vw, 112px); }
.f-corner img { aspect-ratio: 1; object-fit: cover; object-position: 56% 50%; }
.f-gate { grid-column: 9 / 13; margin-top: clamp(-40px, -1vw, 0px); }
.f-gate img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; }

@media (max-width: 899px) {
  .farnham-lead { display: block; }
  .farnham-hero { margin-inline: calc(var(--gutter) * -1); }
  .farnham-hero img { aspect-ratio: 1 / 1.04; object-fit: cover; object-position: 36% 50%; }
  .farnham-lead .case-text { margin-top: 32px; }
  .farnham-set { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 12px; margin-top: 56px; }
  .f-porch { grid-column: 1 / -1; margin: 0; }
  .f-kitchen { grid-column: 1 / -1; margin: 0 calc(var(--gutter) * -1); }
  .f-kitchen figcaption { padding-inline: var(--gutter); }
  .f-bath { grid-column: 1 / 4; }
  .f-corner { grid-column: 4 / 7; margin-top: 56px; }
  .f-corner img { aspect-ratio: 4 / 5; }
  .f-gate { grid-column: 1 / -1; margin: 0; }
  .f-gate img { aspect-ratio: 4 / 3; }
}

/* West Byfleet */
.case-byfleet { padding-block: var(--space); }
.byfleet-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.byfleet-text { grid-column: 1 / 5; padding-right: clamp(0px, 1.5vw, 24px); }
.byfleet-main { grid-column: 5 / 10; }
.byfleet-main img { aspect-ratio: 3 / 4; object-fit: cover; }
.byfleet-side { grid-column: 10 / 13; margin-top: clamp(96px, 15vw, 230px); }
.byfleet-side img { aspect-ratio: 3 / 4.4; object-fit: cover; }
.byfleet-text h3 { font-size: clamp(2rem, 1.1rem + 2.1vw, 3.25rem); margin-bottom: 0; }
.dimension { position: relative; height: 22px; margin: 22px 0 28px; border-inline: 1px solid var(--red); font-family: var(--sans); }
.dimension::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--red); }
.dimension::after {
  content: ""; position: absolute; inset: 7px -4px;
  background:
    linear-gradient(135deg, transparent 44%, var(--red) 45% 55%, transparent 56%) left / 8px 8px no-repeat,
    linear-gradient(135deg, transparent 44%, var(--red) 45% 55%, transparent 56%) right / 8px 8px no-repeat;
}
.dimension span { position: relative; z-index: 1; display: block; width: max-content; margin-inline: auto; padding: 0 12px; background: var(--chalk); font-size: .6875rem; font-weight: 600; letter-spacing: .18em; line-height: 22px; }
.byfleet-text .titleblock { margin-top: 28px; }
.byfleet-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: clamp(40px, 4vw, 64px); }
.byfleet-details img { aspect-ratio: 3 / 4; object-fit: cover; }

@media (max-width: 899px) {
  .byfleet-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .byfleet-text { display: contents; }
  .byfleet-text > * { grid-column: 1 / -1; }
  .byfleet-main { grid-column: 1 / -1; order: 1; margin: 40px calc(var(--gutter) * -1) 0; }
  .byfleet-side { grid-column: 3 / -1; order: 2; margin-top: 12px; }
  .byfleet-details { order: 3; margin-top: 28px; }
}

/* Merrow */
.case-merrow { padding-block: var(--space); background: var(--stone); }
.merrow-lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.merrow-front { grid-column: 1 / 8; }
.merrow-lead .case-text { grid-column: 8 / 13; padding-left: clamp(0px, 3vw, 52px); }
.case-quote { margin: 32px 0 0; padding-left: 22px; border-left: 3px solid var(--red); }
.case-quote p { margin: 0 0 12px; font-size: 1.5rem; font-style: italic; font-weight: 300; line-height: 1.34; text-wrap: pretty; }
.case-quote footer { max-width: 30em; font-family: var(--sans); font-size: .8125rem; line-height: 1.55; color: var(--slate); }
.merrow-set { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4.6vw, 76px) var(--gap); align-items: start; margin-top: clamp(56px, 7vw, 112px); }
.m-rear { grid-column: 1 / 8; }
.m-rear img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 42%; }
.m-stairs { grid-column: 8 / 13; margin-top: clamp(60px, 9vw, 150px); }
.m-stairs img { aspect-ratio: 1; object-fit: cover; }
.m-kitchen { grid-column: 3 / 7; }
.m-kitchen img { aspect-ratio: 1; object-fit: cover; }
.m-porch { grid-column: 8 / 11; margin-top: clamp(40px, 6vw, 96px); }
.m-porch img { aspect-ratio: 4 / 5; object-fit: cover; }

@media (max-width: 899px) {
  .merrow-lead { display: block; }
  .merrow-front { margin-inline: calc(var(--gutter) * -1); }
  .merrow-lead .case-text { margin-top: 32px; padding: 0; }
  .merrow-set { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 12px; margin-top: 52px; }
  .m-rear { grid-column: 1 / -1; margin-inline: calc(var(--gutter) * -1); }
  .m-rear figcaption { padding-inline: var(--gutter); }
  .m-stairs { grid-column: 1 / -1; margin: 0; }
  .m-kitchen { grid-column: 1 / 4; }
  .m-kitchen img { aspect-ratio: 4 / 5; }
  .m-porch { grid-column: 4 / 7; margin-top: 48px; }
}

/* Farnborough before and after */
.case-compare { padding-block: var(--space); background: var(--navy); color: var(--chalk); }
.case-compare .label, .case-compare figcaption { color: var(--mist); }
.compare-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.compare-text { grid-column: 1 / 5; padding-right: clamp(0px, 2vw, 32px); }
.compare-stage { grid-column: 5 / 13; }
.compare-frame { position: relative; overflow: hidden; cursor: pointer; background: var(--night); }
.compare-frame img { width: 100%; }
.compare-frame .img-before { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .75s ease; }
.compare-stage[data-state="before"] .img-before { opacity: 1; }
.toggle { display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 32px; border: 1px solid rgba(243, 242, 239, .45); }
.toggle button { min-width: 118px; min-height: 50px; font: 600 .875rem var(--sans); transition: background-color .2s, color .2s; }
.toggle button[aria-pressed="true"] { background: var(--chalk); color: var(--night); }

@media (max-width: 899px) {
  .compare-grid { display: block; }
  .compare-stage { margin: 28px calc(var(--gutter) * -1) 0; }
  .compare-stage figcaption { padding-inline: var(--gutter); }
}

/* more projects */
.strip { padding-block: clamp(76px, 8.5vw, 136px); }
.strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.strip-head h3 { margin: 0; max-width: 11em; }
.strip-nav { display: flex; gap: 8px; }
.strip-nav button { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--ink); transition: background-color .2s, color .2s, opacity .2s; }
.strip-nav button:hover:not(:disabled) { background: var(--ink); color: var(--chalk); }
.strip-nav button:disabled { opacity: .28; cursor: default; }
.strip-track {
  --h: clamp(300px, 36vw, 520px);
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  display: flex; align-items: flex-start; gap: var(--gap);
  padding: 2px var(--edge) 6px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--edge);
  scrollbar-width: none; cursor: grab;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip-track.is-dragging .zoom { cursor: grabbing; }
.strip-track li { flex: 0 0 auto; width: calc(var(--h) * var(--ar)); scroll-snap-align: start; }
.strip-track li:nth-child(even) { margin-top: clamp(28px, 4vw, 64px); }
.strip-track img { width: 100%; height: var(--h); object-fit: cover; -webkit-user-drag: none; user-select: none; }
.strip-track figcaption { padding-right: 12px; }
.strip-track figcaption strong { display: block; font-size: .9375rem; font-weight: 600; font-stretch: 108%; color: var(--ink); }
.strip-more { margin-top: 36px; }

@media (max-width: 759px) {
  .strip-track { --h: 340px; gap: 12px; }
  .strip-track li { width: min(calc(var(--h) * var(--ar)), 84vw); }
  .strip-track li:nth-child(even) { margin-top: 28px; }
  .strip-nav button { width: 46px; height: 46px; }
}

/* ==========================================================================
   How we build
   ========================================================================== */
.process { padding-block: var(--space); background: var(--stone); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); }
.steps li { counter-increment: step; position: relative; padding-top: 22px; border-top: 1px solid var(--ink); }
.steps li::after { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; background: var(--ink); }
.steps li::before { content: counter(step); display: block; margin-bottom: 30px; font-family: var(--sans); font-size: .8125rem; font-weight: 600; color: var(--red-deep); }
.steps h3 { margin-bottom: 10px; font-size: clamp(1.125rem, .9rem + .55vw, 1.4375rem); }
.steps p { font-size: 1.0625rem; line-height: 1.45; color: #3a3e4d; text-wrap: pretty; }

.site { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: var(--space); }
.site-view { display: none; grid-column: 1 / 8; grid-row: 1; position: sticky; top: 104px; align-self: start; height: clamp(420px, calc(100vh - 136px), 720px); }
.js .site-view { display: block; }
.site-view figure { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transition: opacity .6s ease; }
.site-view figure.is-active { opacity: 1; }
.site-view img { flex: 1 1 0; width: 100%; min-height: 0; object-fit: cover; }
.site-run { grid-column: 1 / -1; position: relative; padding-left: 38px; }
.js .site-run { grid-column: 9 / 13; grid-row: 1; }
.datum { position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.datum-fill { position: absolute; left: -1px; top: 0; width: 3px; height: 0; background: var(--red); }
.stage { padding-bottom: 56px; }
.js .stage { display: flex; flex-direction: column; justify-content: center; min-height: 58vh; padding: 24px 0; }
.js .stage:first-child { justify-content: flex-start; min-height: 46vh; padding-top: 0; }
.js .stage:last-child { min-height: 52vh; }
.stage .label { margin-bottom: 14px; }
.stage h3 { position: relative; margin-bottom: 14px; color: #62677a; transition: color .3s; }
.stage h3::before { content: ""; position: absolute; left: -39px; top: .4em; width: 9px; height: 9px; background: #8b8f9e; transition: background-color .3s; }
.stage.is-active h3 { color: var(--ink); }
.stage.is-active h3::before { background: var(--red); }
.no-js .stage h3 { color: var(--ink); }
.stage p:not(.label) { max-width: 24em; }
.stage figure { margin-top: 22px; max-width: 720px; }
.stage figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.js .stage figure { display: none; }

@media (max-width: 899px) {
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); }
  .steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; padding: 18px 0 20px; border: 0; border-bottom: 1px solid var(--line); }
  .steps li::after { display: none; }
  .steps li::before { grid-row: 1 / span 2; margin: 0; padding-top: 2px; }
  .steps h3 { margin-bottom: 4px; }
  .site { display: block; margin-top: 64px; }
  .js .site-view { display: none; }
  .site-run { padding-left: 28px; }
  .js .stage { display: block; min-height: 0; padding: 0 0 52px; }
  .js .stage:last-child { min-height: 0; padding-bottom: 0; }
  .stage h3 { color: var(--ink); }
  .stage h3::before { left: -29px; }
  .js .stage figure { display: block; }
}

/* ==========================================================================
   Family
   ========================================================================== */
.family { padding-block: var(--space); }
.family-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; max-width: none; }
.family-head .label { grid-column: 1 / -1; }
.family-head h2 { grid-column: 1 / 8; }
.family-head .lead { grid-column: 9 / 13; margin: 0; }
.people { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.people li:nth-child(1) { grid-column: 1 / 5; }
.people li:nth-child(2) { grid-column: 5 / 9; margin-top: clamp(32px, 4vw, 64px); }
.people li:nth-child(3) { grid-column: 9 / 13; margin-top: clamp(64px, 8vw, 128px); }
.people li { padding-right: clamp(0px, 2.4vw, 44px); }
.people img { width: 100%; max-width: 272px; aspect-ratio: 2 / 3; object-fit: cover; background: var(--stone); }
.people h3 { margin-top: 24px; font-size: 1.5rem; }
.people .role { margin: 6px 0 14px; font-family: var(--sans); font-size: .6875rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; color: var(--red-deep); }
.people li p:last-child { max-width: 23em; font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; }

.why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: var(--space); }
.why h3 { grid-column: 1 / 5; max-width: 9em; padding-top: 20px; border-top: 1px solid var(--ink); }
.why dl { grid-column: 5 / 13; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 3.4vw, 60px); }
.why dl > div { padding: 20px 0 30px; border-top: 1px solid var(--line); }
.why dl > div:nth-child(-n+2) { border-top-color: var(--ink); }
.why dt { margin-bottom: 8px; font-family: var(--sans); font-size: 1.125rem; font-weight: 600; font-stretch: 108%; }
.why dd { max-width: 24em; font-size: 1.0625rem; line-height: 1.5; color: #3a3e4d; text-wrap: pretty; }

@media (max-width: 899px) {
  .family-head { display: block; }
  .family-head .lead { margin-top: 20px; font-size: 1.1875rem; }
  .people { display: block; }
  .people li, .people li:nth-child(n) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: 18px; margin: 0; padding: 22px 0; border-top: 1px solid var(--line); }
  .people img { grid-row: 1 / span 3; max-width: none; }
  .people h3 { margin: 0; font-size: 1.1875rem; }
  .people .role { margin: 6px 0 10px; font-size: .625rem; }
  .people li p:last-child { font-size: 1rem; line-height: 1.45; }
  .why { display: block; margin-top: 72px; }
  .why h3 { max-width: none; margin-bottom: 24px; border: 0; padding: 0; }
  .why dl { grid-template-columns: minmax(0, 1fr); }
  .why dl > div { padding: 16px 0 20px; }
  .why dl > div:nth-child(2) { border-top-color: var(--line); }
}
@media (min-width: 560px) and (max-width: 899px) {
  .people li, .people li:nth-child(n) { grid-template-columns: 200px minmax(0, 1fr); }
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews { padding-block: var(--space); background: var(--red); color: #fff; }
.reviews .label { color: #fff; }
.quote-lead p {
  max-width: 15.5em; margin: 0;
  font-size: clamp(2.375rem, 1rem + 4.3vw, 5.5rem); font-style: italic; font-weight: 300;
  line-height: 1.05; letter-spacing: -.024em; text-indent: -.42em; padding-left: .02em; text-wrap: balance;
}
.quote-lead footer { margin-top: 30px; font-family: var(--sans); font-size: .875rem; font-weight: 500; }
.quote-list { margin: clamp(64px, 7.5vw, 116px) 0 34px; }
.quote-list blockquote { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding: 30px 0 32px; border-top: 1px solid rgba(255, 255, 255, .4); }
.quote-list blockquote:last-child { border-bottom: 1px solid rgba(255, 255, 255, .4); }
.quote-list footer { grid-column: 1 / 4; font-family: var(--sans); font-size: .8125rem; line-height: 1.6; }
.quote-list footer strong { display: block; font-weight: 700; }
.quote-list footer span { display: block; }
.quote-list p { grid-column: 5 / 13; margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.05vw, 2.125rem); font-weight: 300; line-height: 1.25; text-wrap: balance; text-indent: -.42em; }

@media (max-width: 899px) {
  .quote-lead p { text-indent: 0; }
  .quote-list blockquote { display: flex; flex-direction: column-reverse; gap: 14px; padding: 24px 0; }
  .quote-list p { text-indent: 0; }
  .quote-list footer strong, .quote-list footer span { display: inline; }
  .quote-list footer strong { margin-right: 6px; }
  .quote-list footer span + span::before { content: "\00b7"; margin-inline: 3px 7px; }
}

/* ==========================================================================
   Areas
   ========================================================================== */
.areas { padding-block: var(--space); overflow: hidden; }
.areas-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.areas-text { grid-column: 1 / 5; }
.areas-text h2 { margin-bottom: 24px; font-size: clamp(2rem, 1.2rem + 2.1vw, 3.25rem); }
.areas-text a { text-underline-offset: 5px; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.map { grid-column: 5 / 13; margin: 0; border: 1px solid var(--line); }
.map figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin: 0; padding: 13px 18px; border-top: 1px solid var(--line); font-size: .75rem; }
.map figcaption span:first-child { font-weight: 600; color: var(--ink); }
.map svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.map .rings circle { stroke: rgba(23, 26, 38, .24); stroke-width: 1; stroke-dasharray: 2 6; }
.map .ring-labels text { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-anchor: middle; fill: #70747f; stroke: var(--chalk); stroke-width: 8px; paint-order: stroke; }
.map .counties text { font-size: 13px; font-weight: 600; letter-spacing: .46em; fill: #767b8b; }
.map .dots circle { fill: var(--navy); }
.map .names text { font-size: 14px; font-weight: 500; fill: #343848; stroke: var(--chalk); stroke-width: 4px; stroke-linejoin: round; paint-order: stroke; }
.map .names .major { font-size: 18px; font-weight: 600; fill: var(--ink); }
.map .base rect { fill: var(--red); }
.map .base text { font-size: 19px; font-weight: 700; font-stretch: 110%; fill: var(--red-deep); stroke: var(--chalk); stroke-width: 4px; paint-order: stroke; }
.map .base .base-sub { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.places { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* On narrower laptops the map takes the full width so its labels stay legible */
@media (min-width: 900px) and (max-width: 1279px) {
  .areas-grid { display: block; }
  .areas-text { max-width: 33rem; }
  .map { margin-top: 44px; }
}

@media (max-width: 899px) {
  .areas-grid { display: block; }
  .map { margin: 36px 0 0; }
  .map figcaption { padding: 11px 13px; font-size: .6875rem; }
  .map .names text:not(.major) { display: none; }
  .map .names .major { font-size: 30px; stroke-width: 7px; }
  .map .dots circle { transform-box: fill-box; transform-origin: center; transform: scale(1.5); }
  .map .counties text { font-size: 24px; letter-spacing: .3em; }
  .map .ring-labels { display: none; }
  .map .rings circle { stroke-width: 2; stroke-dasharray: 3 9; }
  .map .base text { font-size: 32px; stroke-width: 7px; text-anchor: middle; transform: translate(-54px, -48px); }
  .map .names .at-godalming { text-anchor: start; transform: translate(20px, -8px); }
  .map .names .at-alton { transform: translate(0, 10px); }
  .map .counties text { transform: translateX(-22px); }
  .map .base .base-sub { display: none; }
  .places { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; columns: 2; column-gap: 20px; margin-top: 30px; font-family: var(--sans); font-size: .9375rem; font-weight: 500; }
  .places li { break-inside: avoid; padding: 9px 0; border-top: 1px solid var(--line); }
  .places .is-base { color: var(--red-deep); font-weight: 700; }
  .places .is-base span { margin-left: 4px; font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--night); color: var(--chalk); }
.contact-photo { position: sticky; top: 0; align-self: start; height: 100vh; max-height: 100%; overflow: hidden; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.contact-photo figcaption { position: absolute; left: var(--gutter); bottom: 22px; margin: 0; color: #fff; text-shadow: 0 0 12px rgba(0, 0, 0, .9); }
.contact-body { width: 100%; max-width: 900px; padding: var(--space) var(--gutter) var(--space) clamp(28px, 5.4vw, 96px); }
.contact .label { color: var(--mist); }
.contact h2 { max-width: 11em; margin-bottom: 22px; }
.contact .lead { max-width: 28em; color: #dfe1ea; }
.direct { margin: 40px 0 60px; border-top: 1px solid var(--line-light); font-family: var(--sans); }
.direct > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; align-items: center; padding: 15px 0 16px; border-bottom: 1px solid var(--line-light); }
.direct dt { font-size: .625rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; color: var(--mist); }
.direct dd { font-size: 1.125rem; font-weight: 500; font-stretch: 108%; overflow-wrap: anywhere; }
.direct a { text-decoration: none; }
.direct a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.direct .direct-big { font-size: clamp(1.875rem, .9rem + 2.5vw, 3.25rem); font-stretch: 112%; letter-spacing: -.012em; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }

.enquiry fieldset { min-width: 0; margin: 0 0 32px; padding: 0; border: 0; }
.enquiry legend { margin-bottom: 14px; padding: 0; font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; font-stretch: 108%; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border: 1px solid rgba(243, 242, 239, .28); font-family: var(--sans); font-size: .875rem; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.choices span:hover { border-color: var(--chalk); }
.choices input:checked + span { background: var(--chalk); border-color: var(--chalk); color: var(--night); }
.choices input:focus-visible + span { outline: 2px solid var(--lamp); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 28px; }
.field { display: block; }
.field > span { display: block; font-family: var(--sans); font-size: .625rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; color: var(--mist); }
.field input, .field textarea {
  display: block; width: 100%; padding: 10px 0 11px;
  background: transparent; color: var(--chalk);
  border: 0; border-bottom: 1px solid rgba(243, 242, 239, .38); border-radius: 0;
  font-family: var(--sans); font-size: 1.0625rem;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field ::placeholder { color: #8e93a9; opacity: 1; }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--lamp); box-shadow: 0 1px 0 var(--lamp); }
.field input[aria-invalid="true"] { border-bottom-color: #ff8a8f; }
.field-wide { grid-column: 1 / -1; }
.form-error { margin: 18px 0 0; font-family: var(--sans); font-size: .875rem; font-weight: 500; color: #ffb4b8; }
.form-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.form-note { max-width: 40em; margin: 16px 0 0; font-family: var(--sans); font-size: .8125rem; line-height: 1.55; color: var(--mist); }

@media (max-width: 999px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-photo { position: relative; height: clamp(250px, 68vw, 520px); }
  .contact-photo figcaption { left: auto; right: var(--gutter); bottom: 12px; }
  .contact-body { max-width: 760px; padding: 56px var(--gutter) 84px; }
}
@media (max-width: 559px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .direct > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .direct dd { font-size: 1.0625rem; }
  .form-actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Footer, dock, lightbox
   ========================================================================== */
.site-footer { padding: clamp(68px, 7.5vw, 120px) 0 40px; background: var(--night); color: var(--chalk); border-top: 1px solid var(--line-light); }
.strap { max-width: 13.5em; margin: 0 0 clamp(48px, 6vw, 92px); font-family: var(--sans); font-size: clamp(1.875rem, .9rem + 3.4vw, 4.25rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.024em; line-height: 1.08; text-wrap: balance; }
.strap span { display: block; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, .8fr); gap: 36px var(--gap); padding-top: 40px; border-top: 1px solid var(--line-light); font-family: var(--sans); font-size: .9375rem; }
.foot-brand img { width: 268px; }
.foot-brand p { max-width: 24em; margin: 20px 0 0; font-size: .875rem; line-height: 1.6; color: var(--mist); }
.foot-grid nav, .foot-contact, .foot-social { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-grid a { text-decoration: none; overflow-wrap: anywhere; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: 5px; }
.legal { max-width: 80em; margin: clamp(48px, 5vw, 72px) 0 0; font-family: var(--sans); font-size: .75rem; line-height: 1.7; color: var(--mist); }

@media (max-width: 899px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand, .foot-contact { grid-column: 1 / -1; }
  .foot-grid nav { grid-row: 3; }
  .foot-social { grid-row: 3; }
}

.dock { display: none; }
@media (max-width: 759px) {
  .dock {
    position: fixed; inset: auto 0 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr 1.6fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--night); color: var(--chalk); border-top: 1px solid var(--line-light);
    transform: translateY(105%); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s .4s;
  }
  .dock.is-visible { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .dock a { display: grid; place-items: center; min-height: 58px; font: 600 .875rem var(--sans); text-decoration: none; }
  .dock a + a { border-left: 1px solid var(--line-light); }
  .dock .dock-quote { background: var(--red); color: #fff; border: 0; }
}

.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #0a0e20; color: var(--chalk); }
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: #0a0e20; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px var(--gutter); }
.lb-count { margin: 0; font-family: var(--sans); font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--mist); }
.lb-close { min-height: 42px; padding: 0 20px; border: 1px solid rgba(243, 242, 239, .4); font: 600 .8125rem var(--sans); }
.lb-close:hover { background: var(--chalk); color: var(--night); }
.lb-figure { display: flex; flex-direction: column; min-height: 0; padding: 0 var(--gutter); }
.lb-figure img { flex: 1 1 0; width: 100%; min-height: 0; object-fit: contain; }
.lb-figure figcaption { margin-top: 16px; text-align: center; font-size: .875rem; color: var(--chalk); }
.lb-nav { display: flex; justify-content: center; gap: 10px; padding: 18px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
.lb-nav button { display: grid; place-items: center; width: 68px; height: 50px; border: 1px solid rgba(243, 242, 239, .4); }
.lb-nav button:hover { background: var(--chalk); color: var(--night); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

@media print {
  .site-header, .dock, .menu, .hero-off, .lightbox { display: none !important; }
  .js .hero-photo { opacity: 1; }
}
