/* ═══════════════════════════════════════════════════════════════════
   DSM Construction & Management: homepage
   Limestone, DSM navy as ink, larch as the one warm accent.
   Ysabeau for display (it shares the open, calligraphic bones of the
   DSM lettering), Archivo for text, Archivo Expanded for captions.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --mortar: #E8E6DF;
  --chalk: #F4F3EE;
  --stone: #D6CFBD;
  --navy: #1C2647;
  --navy-deep: #121A33;
  --slate: #50556A;
  --larch: #A8692C;
  --larch-light: #D9A066;
  --line: rgba(28, 38, 71, .18);
  --line-light: rgba(244, 243, 238, .2);

  --display: "Ysabeau", "Optima", "Gill Sans", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --gap: clamp(14px, 1.7vw, 28px);
  --section: clamp(88px, 11vw, 176px);
  --max: 1520px;
  --hdr: 84px;
  --ease: cubic-bezier(.2, .7, .15, 1);
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) - 1px); }
/* Padded sections land flush under the header; blocks that open on a heading or photo get a little air. */
.proj:not(.dairy), .pair > article, #about { scroll-margin-top: 28px; }
#work, #atrium { scroll-margin-top: 44px; }
body {
  margin: 0;
  background: var(--mortar);
  color: var(--navy);
  font: 400 16.5px/1.68 var(--body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--stone); }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--larch); outline-offset: 3px; }
::selection { background: var(--navy); color: var(--chalk); }
.num { font-variant-numeric: lining-nums tabular-nums; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 300; text-wrap: balance; }
h2 { font-size: clamp(42px, 5.2vw, 82px); line-height: .98; letter-spacing: -.012em; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* Wide, tracked caption voice, drawn from the "CONSTRUCTION & MANAGEMENT" setting in the logo */
.cap, .kind, .spec dt, .titleblock dt, .contacts dt {
  font-family: var(--body);
  font-stretch: 122%;
  font-weight: 560;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--navy); color: var(--chalk); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ── Buttons and links ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--navy); color: var(--chalk);
  border: 1px solid var(--navy); border-radius: 1px;
  font-weight: 500; font-size: 15px; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--light { background: var(--chalk); border-color: var(--chalk); color: var(--navy); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--line { background: transparent; border-color: var(--line-light); color: var(--chalk); min-height: 44px; }
.btn--line:hover { background: rgba(244, 243, 238, .08); border-color: var(--chalk); }

.link {
  font-weight: 500; font-size: 15px; text-decoration: none; padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .35s var(--ease), color .25s;
}
.link:hover { background-size: 40% 1px; }

.view {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 30px; padding: 8px 0; min-height: 44px;
  background: none; border: 0; cursor: pointer;
  font-weight: 500; font-size: 15px;
}
.view::after { content: ""; width: 44px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.view:hover::after { width: 68px; }

/* Image buttons */
.shot { display: block; width: 100%; padding: 0; border: 0; background: var(--stone); cursor: zoom-in; overflow: hidden; position: relative; }
.shot img, .shot picture { width: 100%; height: 100%; }
.shot img { object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.025); }
.shot:focus-visible { outline-offset: 4px; }

/* ── Header ───────────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  height: var(--hdr); padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: var(--mortar);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, height .3s var(--ease), background-color .3s;
}
.hdr.is-stuck { border-bottom-color: var(--line); background: rgba(232, 230, 223, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand { justify-self: start; display: block; padding: 4px 0; }
.brand img { height: 40px; width: auto; background: none; }
.nav { display: flex; gap: clamp(22px, 2.6vw, 42px); }
.nav a { font-size: 14.5px; font-weight: 450; text-decoration: none; padding: 8px 0; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { background-size: 100% 1px; }
.hdr-actions { justify-self: end; display: flex; align-items: center; gap: 24px; }
.hdr-phone { font-size: 14.5px; font-weight: 500; text-decoration: none; font-variant-numeric: lining-nums tabular-nums; }
.hdr-phone:hover { text-decoration: underline; }
.hdr-mobile { display: none; }

/* ── Mobile menu ──────────────────────────────────────────────────── */
.menu { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--navy); color: var(--chalk); }
.menu::backdrop { background: var(--navy); }
.menu[open] { animation: menu-in .35s var(--ease) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.menu-in { min-height: 100%; display: flex; flex-direction: column; padding: 0 20px calc(28px + env(safe-area-inset-bottom)); }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 68px; flex: none; }
.menu-top img { height: 32px; width: auto; background: none; }
.menu-close { min-height: 44px; padding: 0 16px; background: none; border: 1px solid var(--line-light); color: var(--chalk); cursor: pointer; font-size: 14px; }
.menu nav { display: flex; flex-direction: column; margin-top: 12px; }
.menu nav a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line-light); font: 300 34px/1.1 var(--display); text-decoration: none; }
.menu nav small { font: 400 12.5px/1.4 var(--body); color: rgba(244, 243, 238, .66); text-align: right; }
.menu-foot { margin-top: auto; padding-top: 32px; }
.menu-foot .btn { width: 100%; font-variant-numeric: lining-nums; }
.menu-foot p { margin-top: 16px; font-size: 14.5px; }
.menu-foot p a { display: inline-block; padding: 6px 0; margin-right: 18px; }

/* ═══ Opening elevation ═══════════════════════════════════════════ */
.hero {
  --row: clamp(300px, calc(100svh - 386px), 600px);
  display: grid;
  grid-template-columns: minmax(0, 700fr) minmax(0, 290fr) minmax(0, 205fr) minmax(0, 160fr);
  column-gap: clamp(10px, 1vw, 16px);
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: clamp(14px, 3vh, 40px) var(--gutter) 0;
  position: relative;
}
.hero-title {
  grid-column: 1 / 3; grid-row: 1; align-self: end;
  margin-bottom: clamp(20px, 3.4vh, 40px);
  font-size: clamp(44px, min(6.1vw, 11vh), 98px);
  font-weight: 280; line-height: .98; letter-spacing: -.018em;
}
.hero-title span { display: block; white-space: nowrap; }
.hero-intro { grid-column: 3 / 5; grid-row: 1 / 3; align-self: start; position: relative; z-index: 2; padding: 8px 0 0 clamp(0px, 1vw, 14px); }
.hero-intro p { font-size: clamp(14.5px, 1.1vw, 16.5px); line-height: 1.62; color: var(--slate); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(14px, 2.4vh, 24px); }
.hero-cta .btn { min-height: 48px; padding: 0 22px; }

.elevation {
  grid-column: 1 / -1; grid-row: 2;
  display: grid; grid-template-columns: subgrid;
  position: relative;
  padding-bottom: 4px;
}
/* The ground line, with section-drawing hatch beneath, running past both edges of the page */
.elevation::before, .elevation::after {
  content: ""; position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw);
  transform-origin: left center; pointer-events: none;
}
.elevation::before { top: var(--row); height: 2px; background: var(--navy); }
.elevation::after {
  top: calc(var(--row) + 2px); height: 8px;
  background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(28, 38, 71, .34) 5px 6px);
}
.el a { display: grid; grid-template-rows: var(--row) auto; text-decoration: none; }
.el-img { align-self: end; display: block; height: calc(var(--row) * var(--h)); overflow: hidden; background: var(--stone); }
.el-img picture, .el-img img { display: block; width: 100%; height: 100%; }
.el-img img { object-fit: cover; transition: transform 1.4s var(--ease); }
.el a:hover .el-img img { transform: scale(1.035); }
.el:nth-child(1) img { object-position: 58% 50%; }
.el--porch img { object-position: 50% 45%; }
.el--stair img { object-position: 42% 50%; }
.el--handle img { object-position: 64% 50%; }
.el-cap { display: block; padding-top: 24px; padding-bottom: 6px; }
.el-cap .cap { display: block; }
.el-sub { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--slate); }
.el a:hover .el-sub { color: var(--navy); text-decoration: underline; }
.stepper { display: none; }

/* One orchestrated entrance: the ground is drawn, then the work rises from it */
@media (prefers-reduced-motion: no-preference) {
  .elevation::before, .elevation::after { animation: draw 1s .1s var(--ease) both; }
  .el-img { animation: rise 1.15s var(--ease) both; animation-delay: calc(.5s + var(--i) * .14s); }
  .el-cap { animation: fade .7s ease both; animation-delay: calc(1s + var(--i) * .14s); }
  .hero-title, .hero-intro { animation: lift .9s var(--ease) both; }
  .hero-intro { animation-delay: .18s; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lift { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Reveal on scroll (only when JS has opted an element in) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise].will-rise { opacity: 0; transform: translateY(26px); }
  .js [data-rise].will-rise.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
}

/* ═══ The firm ═══════════════════════════════════════════════════ */
.firm { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(40px, 7vw, 120px); align-items: start; padding-top: var(--section); padding-bottom: var(--section); }
.statement { font: 300 clamp(30px, 3.7vw, 56px)/1.16 var(--display); letter-spacing: -.008em; text-wrap: balance; }
.firm-more { max-width: 54ch; margin-top: 34px; color: var(--slate); }

/* Laid out like the title block on an architect's drawing */
.titleblock { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--navy); background: var(--chalk); }
.titleblock > div { padding: 13px 18px 15px; border-top: 1px solid var(--line); }
.titleblock > div:not(.tb-wide):not(.tb-mark) + div:not(.tb-wide) { border-left: 1px solid var(--line); }
.tb-wide, .tb-mark { grid-column: 1 / -1; }
.titleblock > .tb-mark { border-top: 0; display: flex; justify-content: center; padding: 24px 18px 22px; }
.tb-mark img { width: 150px; background: none; }
.titleblock dt { color: var(--slate); font-size: 10px; }
.titleblock dd { margin-top: 3px; font: 400 21px/1.25 var(--display); font-variant-numeric: lining-nums; }

/* ═══ Selected work ═════════════════════════════════════════════ */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-bottom: clamp(36px, 4.4vw, 68px); }
.sec-head h2 { grid-column: 1 / 7; }
.sec-head > p { grid-column: 8 / 13; max-width: 40ch; color: var(--slate); }
.index { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 28px; margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); }
.index a { font: 400 19px/1.4 var(--display); text-decoration: none; padding: 5px 0; color: var(--slate); transition: color .2s; }
.index a:hover { color: var(--navy); text-decoration: underline; }

.proj h3, .pair h3 { font-size: clamp(36px, 4vw, 62px); line-height: 1.02; letter-spacing: -.01em; }
.kind { margin-top: 14px; margin-bottom: 26px; color: var(--slate); }
.proj p:not(.kind) { max-width: 52ch; }
.proj p + p:not(.kind) { margin-top: 14px; }

.spec { margin-top: 30px; border-top: 1px solid var(--navy); max-width: 520px; }
.spec > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 12px 0 13px; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--slate); font-size: 10px; padding-top: 4px; }
.spec dd { font-size: 15px; line-height: 1.5; }

/* The Dairy */
.dairy-lead { aspect-ratio: 1864 / 900; max-width: 1920px; max-height: 92vh; margin-inline: auto; }
.dairy-lead img { object-position: 50% 62%; }
.dairy-grid { padding-top: clamp(48px, 6vw, 96px); row-gap: var(--gap); align-items: start; }
.dairy-text { grid-column: 1 / 5; grid-row: 1; padding-right: clamp(0px, 2vw, 28px); }
.dairy-court { grid-column: 6 / 13; grid-row: 1; aspect-ratio: 5 / 4.4; }
.dairy-court img { object-position: 64% 50%; }
.dairy-glass { grid-column: 1 / 8; grid-row: 2; margin-top: clamp(8px, 3vw, 48px); }
.dairy-glass .shot { aspect-ratio: 1797 / 1080; }
.dairy-glass figcaption { margin-top: 12px; font-size: 13.5px; color: var(--slate); }
.dairy-wing { grid-column: 8 / 13; grid-row: 2; align-self: end; aspect-ratio: 4 / 3.6; margin-bottom: 35px; }
.dairy-wing img { object-position: 70% 50%; }

/* Maverick */
.maverick { margin-top: var(--section); align-items: start; }
.mav-main { grid-column: 1 / 7; aspect-ratio: 3 / 4; }
.mav-text { grid-column: 8 / 13; align-self: center; }

/* Forged Barn */
.forged { margin-top: var(--section); align-items: end; }
.forged-text { grid-column: 1 / 5; padding-right: clamp(0px, 1.4vw, 20px); }
.forged-img { grid-column: 5 / 13; aspect-ratio: 1206 / 734; }

/* Larch Barn and the offices */
.pair { margin-top: var(--section); align-items: start; }
.pair-a { grid-column: 1 / 8; }
.pair-b { grid-column: 9 / 13; margin-top: clamp(60px, 12vw, 200px); }
.pair .shot { aspect-ratio: 1194 / 760; }
.pair-b .shot { aspect-ratio: 4 / 3.5; }
.pair-b .shot img { object-position: 42% 50%; }
.pair h3 { margin-top: 22px; font-size: clamp(30px, 2.8vw, 44px); }
.pair .kind { margin: 10px 0 0; max-width: 40ch; }

/* The Atrium */
.atrium { margin-top: var(--section); }
.atrium-top { align-items: start; }
.atrium-text { grid-column: 1 / 5; padding-right: clamp(0px, 1.4vw, 20px); }
.atrium-in { grid-column: 5 / 10; aspect-ratio: 3 / 4; }
.atrium-out { grid-column: 10 / 13; aspect-ratio: 3 / 4.6; margin-top: clamp(80px, 13vw, 220px); }

.door { margin-top: clamp(48px, 6vw, 96px); padding-block: clamp(56px, 6.5vw, 104px); background: var(--stone); }
.door .grid12 { align-items: end; }
.door-text { grid-column: 1 / 4; align-self: center; }
.door-text h4 { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.04; margin-bottom: 22px; }
.door-text p { max-width: 38ch; }
.door-out { grid-column: 5 / 9; }
.door-in { grid-column: 9 / 13; }
.door .shot { aspect-ratio: 3 / 4; }
.door figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 14px; font-size: 14px; }

/* Courtyard */
.court { margin-top: var(--section); row-gap: clamp(28px, 4vw, 64px); align-items: start; }
.court-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.court-wide img { object-position: 50% 58%; }
.court-text { grid-column: 1 / 5; padding-right: clamp(0px, 1.4vw, 20px); }
.materials { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--navy); font: italic 300 22px/1.4 var(--display); }
.court-a { grid-column: 6 / 9; aspect-ratio: 3 / 4.3; }
.court-b { grid-column: 9 / 13; aspect-ratio: 4 / 4.4; margin-top: clamp(40px, 7vw, 120px); }

/* ═══ Joinery ═════════════════════════════════════════════════════ */
.joinery { margin-top: var(--section); padding-block: var(--section) clamp(64px, 7vw, 104px); background: var(--navy); color: var(--chalk); }
.joinery :focus-visible, .enquire :focus-visible, .ftr :focus-visible, .lb :focus-visible, .menu :focus-visible { outline-color: var(--larch-light); }
.joinery-head { align-items: end; padding-bottom: clamp(36px, 4.4vw, 64px); }
.joinery-head h2 { grid-column: 1 / 8; font-size: clamp(46px, 6.4vw, 104px); }
.joinery-intro { grid-column: 8 / 13; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.joinery-intro p { max-width: 38ch; color: rgba(244, 243, 238, .82); }
.rail-nav { display: flex; gap: 8px; flex: none; }
.rail-btn { width: 52px; height: 52px; display: grid; place-items: center; background: none; border: 1px solid var(--line-light); border-radius: 50%; color: var(--chalk); cursor: pointer; transition: border-color .2s, background-color .2s, opacity .2s; }
.rail-btn:hover { border-color: var(--chalk); background: rgba(244, 243, 238, .07); }
.rail-btn:disabled { opacity: .3; cursor: default; }
.rail-btn svg, .round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.rail {
  --rh: clamp(380px, 64vh, 580px);
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: flex; align-items: flex-start; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  padding: 4px var(--edge) 8px;
  scroll-padding-inline: var(--edge);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging * { cursor: grabbing; pointer-events: none; }
.rail li { flex: 0 0 auto; width: calc(var(--rh) * var(--ar)); scroll-snap-align: start; }
.rail .shot { height: var(--rh); background: var(--navy-deep); }
.rail .shot img { -webkit-user-drag: none; user-select: none; }
.rail li.is-small { --rh: clamp(320px, 52vh, 450px); align-self: flex-end; margin-bottom: 76px; }
.rail h3 { margin-top: 18px; font-size: 27px; font-weight: 350; line-height: 1.2; }
.rail p { margin-top: 4px; font-size: 14.5px; line-height: 1.6; color: rgba(244, 243, 238, .74); max-width: 42ch; }
.rail-track { height: 1px; margin-top: 44px; background: var(--line-light); }
.rail-track i { display: block; height: 3px; width: 20%; margin-top: -1px; background: var(--larch-light); transform-origin: left; }

/* ═══ Services ════════════════════════════════════════════════════ */
.services { padding-top: var(--section); padding-bottom: var(--section); }
.services-head { align-items: end; padding-bottom: clamp(36px, 4.4vw, 64px); }
.services-head h2 { grid-column: 1 / 7; }
.services-head p { grid-column: 7 / 13; max-width: 50ch; color: var(--slate); }
.svc { position: relative; border-top: 1.5px solid var(--navy); min-height: 640px; }
.svc-item { width: 48%; border-bottom: 1px solid var(--line); }
.svc h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.12; }
.svc h3 button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 0; background: none; border: 0; cursor: pointer; font-weight: 300; text-align: left; color: var(--slate); transition: color .2s, padding .35s var(--ease); }
.svc h3 button::after { content: ""; flex: none; width: 0; height: 2px; background: var(--larch); transition: width .4s var(--ease); }
.svc-item.is-open h3 button { color: var(--navy); }
.svc-item.is-open h3 button::after { width: 56px; }
.svc h3 button:hover { color: var(--navy); }
.svc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.svc-panel > div { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s .45s; }
.svc-item.is-open .svc-panel { grid-template-rows: 1fr; }
.svc-item.is-open .svc-panel > div { visibility: visible; transition-delay: 0s; }
.svc-panel p { max-width: 46ch; color: var(--slate); }
.svc-links { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-top: 10px; padding-bottom: 20px; }
.svc-links a { font-size: 14.5px; font-weight: 500; color: var(--navy); padding: 4px 0; }
/* Desktop: every picture shares one stage to the right of the list */
.svc-fig { position: absolute; top: 28px; right: 0; bottom: 0; width: 46%; overflow: hidden; opacity: 0; transition: opacity .5s ease; pointer-events: none; background: var(--stone); }
.svc-fig img { width: 100%; height: 100%; object-fit: cover; }
/* Lower-resolution photograph: shown in a smaller landscape frame so it stays crisp */
.svc-fig--wide { bottom: auto; aspect-ratio: 4 / 3; }
.svc-item.is-open .svc-fig { opacity: 1; }
.svc-fig--mark { display: grid; place-items: center; }
.svc-fig--mark img { width: 56%; height: auto; object-fit: contain; background: none; opacity: .9; }
/* No-JS: show every description */
html:not(.js) .svc-panel { grid-template-rows: 1fr; }
html:not(.js) .svc-panel > div { visibility: visible; }
html:not(.js) .svc-fig { display: none; }
html:not(.js) .svc-item { width: 100%; }
html:not(.js) .svc { min-height: 0; }

/* ═══ How we work ═════════════════════════════════════════════════ */
.about { align-items: start; padding-bottom: var(--section); }
.about-fig { grid-column: 1 / 6; }
.about-fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-fig figcaption { margin-top: 12px; font-size: 13.5px; color: var(--slate); }
.about-body { grid-column: 7 / 13; padding-top: clamp(0px, 4vw, 64px); }
.about-lead { margin-top: 28px; max-width: 46ch; font: 300 clamp(22px, 2vw, 28px)/1.4 var(--display); }
.habits { display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.habits > div { border-top: 1px solid var(--navy); padding-top: 18px; }
.habits h3 { font-size: 26px; font-weight: 400; line-height: 1.2; margin-bottom: 10px; }
.habits p { font-size: 15px; color: var(--slate); }

/* ═══ In their words ══════════════════════════════════════════════ */
.words { background: var(--chalk); padding-block: clamp(72px, 8vw, 128px); }
.words h2 { font-size: clamp(34px, 3.4vw, 52px); margin-bottom: clamp(36px, 4.4vw, 60px); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.6vw, 60px); }
.quotes figure { display: flex; flex-direction: column; border-top: 1px solid var(--navy); padding-top: 26px; }
.quotes blockquote p { font: italic 300 clamp(23px, 2.1vw, 31px)/1.36 var(--display); text-indent: -.42em; }
.quotes figcaption { margin-top: auto; padding-top: 26px; font-size: 14px; color: var(--slate); }
.quotes figcaption strong { display: block; color: var(--navy); font-weight: 600; }

/* ═══ Enquiry ═════════════════════════════════════════════════════ */
.enquire { background: var(--navy); color: var(--chalk); padding-block: var(--section); }
.enquire .grid12 { align-items: start; }
.enq-side { grid-column: 1 / 6; padding-right: clamp(0px, 2vw, 32px); }
.enq-side h2 { font-size: clamp(50px, 6.4vw, 100px); }
.enq-lead { margin-top: 24px; max-width: 30ch; font: 300 clamp(22px, 2vw, 28px)/1.4 var(--display); color: rgba(244, 243, 238, .86); }
.contacts { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-light); }
.contacts > div { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.contacts dt { font-size: 10px; color: var(--larch-light); padding-top: 6px; }
.contacts dd { min-width: 0; overflow-wrap: anywhere; }
.contacts dd a { display: block; text-decoration: none; padding: 1px 0; }
.contacts dd a:hover { text-decoration: underline; }
.contacts .big { font: 300 clamp(30px, 2.8vw, 42px)/1.2 var(--display); }
.contacts .follow { display: flex; gap: 24px; }

.form { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 26px var(--gap); padding-top: 14px; }
.field--full { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label[for], .chips legend { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; }
.field label span, .chips legend span { font-weight: 400; font-size: 12.5px; color: rgba(244, 243, 238, .62); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; margin-top: 4px; padding: 10px 0 11px;
  background: transparent; border: 0; border-bottom: 1px solid rgba(244, 243, 238, .42); border-radius: 0;
  color: var(--chalk); font-size: 17px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--larch-light); box-shadow: 0 1px 0 var(--larch-light); }
.field [aria-invalid="true"] { border-bottom-color: #F0A58F !important; }
.err { font-size: 13.5px; color: #F6BBA8; margin-top: 6px; }
.err:empty { display: none; }
.hint { margin-top: 7px; font-size: 13px; color: rgba(244, 243, 238, .62); }
.chips { border: 0; margin: 0; padding: 0; }
.chips legend { width: 100%; padding: 0; margin-bottom: 12px; }
.chips label { display: inline-block; margin: 0 6px 8px 0; position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(244, 243, 238, .32); border-radius: 100px; font-size: 14.5px; color: var(--chalk); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chips label span:hover { border-color: var(--chalk); }
.chips input:checked + span { background: var(--chalk); border-color: var(--chalk); color: var(--navy); font-weight: 500; }
.chips input:focus-visible + span { outline: 2px solid var(--larch-light); outline-offset: 2px; }
.form-send { display: flex; align-items: center; gap: 26px; margin-top: 8px; }
.form-send .btn { flex: none; min-width: 200px; min-height: 56px; }
.form-send p { font-size: 13.5px; line-height: 1.55; color: rgba(244, 243, 238, .66); max-width: 36ch; }
.form-done { border: 1px solid var(--larch-light); padding: 22px 24px; font-size: 15px; }
.form-done[hidden] { display: none; }
.form-done > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; }
.copy-status { margin-top: 10px; font-size: 13.5px; color: var(--larch-light); }
.copy-status:empty { display: none; }

/* ═══ Footer ══════════════════════════════════════════════════════ */
.ftr { background: var(--navy-deep); color: var(--chalk); padding-top: clamp(64px, 7vw, 112px); padding-bottom: 28px; }
.ftr .grid12 { row-gap: 56px; align-items: start; }
.ftr-brand { grid-column: 1 / 7; }
.ftr-brand img { width: clamp(220px, 27vw, 400px); background: none; }
.ftr-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.ftr nav.ftr-col { grid-column: 8 / 10; }
.ftr div.ftr-col { grid-column: 10 / 13; }
.ftr-col a { padding: 5px 0; text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.ftr-col a:hover { text-decoration: underline; }
.ftr-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 13px; color: rgba(244, 243, 238, .66); }

.dock { display: none; }

/* ═══ Lightbox ════════════════════════════════════════════════════ */
.lb { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--navy-deep); color: var(--chalk); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade .3s ease both; }
.lb::backdrop { background: var(--navy-deep); }
.lb-bar, .lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px var(--gutter); }
.lb-title { font: 400 22px/1.2 var(--display); }
.lb-count { margin-left: 14px; font: 400 13px/1 var(--body); color: rgba(244, 243, 238, .6); }
.lb-close { min-height: 44px; padding: 0 20px; background: none; border: 1px solid var(--line-light); color: var(--chalk); cursor: pointer; font-size: 14px; }
.lb-close:hover { border-color: var(--chalk); }
.lb-stage { position: relative; min-height: 0; touch-action: pan-y pinch-zoom; }
.lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; padding-inline: var(--gutter); object-fit: contain; background: none; transition: opacity .25s ease; }
.lb-stage img.is-loading { opacity: .25; }
.lb-foot p { flex: 1; text-align: center; font-size: 14px; color: rgba(244, 243, 238, .82); }
body.is-locked { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════════
   Mid-width: laptops narrowed, tablets in landscape
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1160px) {
  .nav { gap: 20px; }
  .hdr-phone { display: none; }
  .hero { --row: clamp(270px, calc(100svh - 458px), 520px); }
  .hero-title { grid-column: 1 / -1; grid-row: 1; margin-bottom: 18px; font-size: clamp(44px, 7.4vw, 84px); }
  .hero-intro { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 0 0 30px; }
  .hero-intro p { max-width: 52ch; }
  .hero-cta { margin-top: 0; flex: none; }
  .elevation { grid-row: 3; }
  .joinery-intro { flex-direction: column; align-items: flex-start; gap: 22px; }
  .spec > div { grid-template-columns: 1fr; gap: 2px; }
  .spec dt { padding-top: 0; }
  .el-cap .cap { letter-spacing: .1em; font-stretch: 112%; }
}

@media (max-width: 980px) {
  :root { --hdr: 68px; }
  .hdr { grid-template-columns: 1fr auto; gap: 12px; }
  .nav, .hdr-actions { display: none; }
  .brand img { height: 32px; }
  .hdr-mobile { display: flex; align-items: center; gap: 8px; }
  .round { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
  .menu-btn { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; background: var(--navy); color: var(--chalk); border: 0; border-radius: 100px; font-size: 14px; font-weight: 500; cursor: pointer; }
  .menu-lines { display: grid; gap: 5px; }
  .menu-lines i { display: block; width: 16px; height: 1.5px; background: currentColor; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .firm { grid-template-columns: 1fr; }
  .titleblock { max-width: 560px; }
  .sec-head h2, .sec-head > p { grid-column: 1 / -1; }
  .sec-head > p { margin-top: 16px; }
  .index { justify-content: flex-start; }
  .dairy-text { grid-column: 1 / -1; grid-row: 1; padding-bottom: 28px; }
  .dairy-court { grid-column: 1 / -1; grid-row: 2; aspect-ratio: 16 / 10; }
  .dairy-glass { grid-row: 3; }
  .dairy-wing { grid-row: 3; }
  .mav-main { grid-column: 1 / -1; aspect-ratio: 4 / 3.7; }
  .mav-main img { object-position: 50% 58%; }
  .mav-text { grid-column: 1 / -1; padding-top: 36px; }
  .forged-text { grid-column: 1 / -1; grid-row: 1; padding-bottom: 32px; }
  .forged-img { grid-column: 1 / -1; }
  .atrium-text { grid-column: 1 / -1; padding-bottom: 32px; }
  .atrium-in { grid-column: 1 / 8; }
  .atrium-out { grid-column: 8 / 13; }
  .door-text { grid-column: 1 / -1; padding-bottom: 32px; }
  .door-text h4 br { display: none; }
  .door-out { grid-column: 1 / 7; }
  .door-in { grid-column: 7 / 13; }
  .court-text { grid-column: 1 / -1; }
  .court-a { grid-column: 1 / 6; }
  .court-b { grid-column: 6 / 13; }
  .services-head h2, .services-head p { grid-column: 1 / -1; }
  .services-head p { margin-top: 16px; }
  .about-fig { grid-column: 1 / 6; }
  .about-body { grid-column: 6 / 13; padding-top: 0; }
  .habits { grid-template-columns: 1fr; gap: 28px; }
  .quotes { grid-template-columns: 1fr; }
  .enq-side { grid-column: 1 / -1; padding-bottom: 48px; }
  .form { grid-column: 1 / -1; }
  .ftr-brand { grid-column: 1 / -1; }
  .ftr nav.ftr-col { grid-column: 1 / 5; }
  .ftr div.ftr-col { grid-column: 6 / 13; }
}

/* Services: stacked accordion with in-panel pictures */
@media (max-width: 899px) {
  .svc { min-height: 0; }
  .svc-item { width: 100%; }
  .svc-fig, .svc-fig--wide { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0 0 22px; opacity: 1; }
  .svc h3 button::after, .svc-item.is-open h3 button::after { width: 18px; height: 18px; flex: none;
    background: linear-gradient(var(--navy), var(--navy)) center / 100% 1.5px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 1.5px 100% no-repeat; }
  .svc-item.is-open h3 button::after { background: linear-gradient(var(--larch), var(--larch)) center / 100% 2px no-repeat; }
}

/* ═══════════════════════════════════════════════════════════════════
   Phone: composed separately, not a shrunk desktop
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  :root { --gutter: 20px; --gap: 12px; --section: 84px; --hdr: 64px; }
  body { font-size: 16px; }
  .grid12 { display: block; }

  /* Opening: one tall frame; the elevation becomes the control that sits on the ground line */
  .hero { display: flex; flex-direction: column; padding: 4px 0 0; }
  .hero-title { order: 1; padding-inline: var(--gutter); margin: 6px 0 20px; font-size: clamp(38px, 11.6vw, 64px); line-height: 1; }
  .hero-title span { white-space: normal; }
  .hero-title span:last-child { text-wrap: balance; }
  .elevation { order: 2; display: block; height: clamp(340px, calc(100svh - 344px), 132vw); padding: 0; }
  .elevation::before, .elevation::after { display: none; }
  .el { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
  .el.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .6s ease; }
  .el a { display: block; height: 100%; }
  .el-img { height: 100%; animation: none; }
  .el:nth-child(1) img { object-position: 46% 58%; }
  .el--handle img { object-position: 58% 50%; }
  .el-cap { display: none; }
  .stepper { order: 3; display: block; }
  .stepper-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 0 var(--gutter); position: relative; }
  /* ground line + hatch under the frame, with each tab drawn as a step of the elevation */
  .stepper-tabs::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--navy); }
  .stepper-tabs::after { content: ""; position: absolute; left: 0; right: 0; top: 32px; height: 6px; background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(28, 38, 71, .32) 5px 6px); }
  .stepper-tabs button { display: flex; flex-direction: column; align-items: stretch; padding: 0 0 8px; background: none; border: 0; cursor: pointer; font-stretch: 118%; font-size: 10.5px; font-weight: 560; letter-spacing: .13em; text-transform: uppercase; color: var(--slate); }
  .stepper-tabs i { display: block; height: 30px; margin-bottom: 18px; position: relative; }
  .stepper-tabs i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(24px * var(--h)); background: rgba(28, 38, 71, .17); transition: background-color .3s; }
  .stepper-tabs button.is-active { color: var(--navy); }
  .stepper-tabs button.is-active i::after { background: var(--larch); }
  .stepper-sub { padding: 0 var(--gutter); text-align: center; font-size: 13.5px; color: var(--slate); }
  .hero-intro { order: 4; display: block; padding: 26px var(--gutter) 0; }
  .hero-intro p { font-size: 16.5px; max-width: none; }
  .hero-cta { margin-top: 22px; gap: 22px; }
  .hero-cta .btn { flex: 1; }
  .js .elevation .el-img { animation: none; }

  .firm { display: block; padding-block: 80px; }
  .statement { font-size: 32px; line-height: 1.18; }
  .firm-more { margin-top: 22px; }
  .titleblock { margin-top: 44px; }
  .titleblock > div { padding: 12px 14px 14px; }
  .titleblock dd { font-size: 19px; }

  .sec-head { display: block; padding-bottom: 32px; }
  .sec-head > p { margin-top: 12px; }
  /* project index becomes a swipeable strip */
  .index { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin: 24px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 2px; border: 0; overflow-x: auto; scrollbar-width: none; }
  .index::-webkit-scrollbar { display: none; }
  .index a { flex: none; display: flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 17px; color: var(--navy); }

  .proj h3, .pair h3 { font-size: 40px; }
  .kind { margin-top: 10px; margin-bottom: 18px; font-size: 10.5px; }
  .spec { margin-top: 24px; }
  .spec > div { grid-template-columns: 92px 1fr; gap: 12px; }
  .spec dt { padding-top: 4px; letter-spacing: .13em; }
  .view { margin-top: 18px; }

  .dairy-lead { aspect-ratio: 4 / 4.9; max-height: none; }
  .dairy-lead img { object-position: 50% 50%; }
  .dairy-grid { padding-top: 32px; }
  .dairy-court { aspect-ratio: 4 / 4.6; margin-top: 28px; }
  .dairy-court img { object-position: 50% 50%; }
  .dairy-glass { margin: 12px 0 0 -20px; width: calc(100% - 12px + 20px); }
  .dairy-glass .shot { aspect-ratio: 4 / 3; }
  .dairy-glass figcaption { padding-left: 20px; }
  .dairy-wing { width: calc(100% - 44px); margin: 28px -20px 0 auto; aspect-ratio: 4 / 3; margin-right: -20px; margin-left: 64px; }

  .maverick { margin-top: var(--section); padding: 0; }
  .mav-main { aspect-ratio: 4 / 5; }
  .mav-main img { object-position: 50% 55%; }
  .mav-text { padding: 30px var(--gutter) 0; }

  .forged { margin-top: var(--section); padding: 0; display: flex; flex-direction: column; }
  .forged-img { order: -1; aspect-ratio: 706 / 734; }
  .forged-text { padding: 28px var(--gutter) 0; width: 100%; }

  .pair { margin-top: var(--section); }
  .pair-a .shot { aspect-ratio: 4 / 3; }
  .pair-a .shot img { object-position: 52% 50%; }
  .pair-b { margin-top: 52px; padding-left: 36px; }
  .pair-b .shot { aspect-ratio: 4 / 3.6; width: calc(100% + 20px); }
  .pair h3 { font-size: 32px; margin-top: 16px; }

  .atrium { margin-top: var(--section); }
  .atrium-in { aspect-ratio: 4 / 5; margin: 32px -20px 0; width: calc(100% + 40px); }
  .atrium-out { width: 68%; margin: 12px 0 0; aspect-ratio: 3 / 4; }
  .door { margin-top: 56px; padding-block: 56px; }
  .door .grid12 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; align-items: start; }
  .door-text { grid-column: 1 / -1; padding-bottom: 28px; }
  .door-text h4 { font-size: 40px; }
  .door-out { grid-column: 1; }
  .door-in { grid-column: 2; margin-top: 40px; }
  .door .shot { aspect-ratio: 3 / 4.6; }
  .door figcaption { display: block; font-size: 13.5px; line-height: 1.5; }
  .door figcaption .cap { display: block; font-size: 10px; }

  .court { margin-top: var(--section); padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .court-wide { aspect-ratio: 4 / 4.4; }
  .court-text { grid-column: 1 / -1; padding: 30px var(--gutter) 28px; }
  .materials { font-size: 20px; }
  .court-a { grid-column: 1; aspect-ratio: 3 / 4.4; }
  .court-b { grid-column: 2; aspect-ratio: 3 / 4.4; margin: 0; }

  .joinery { margin-top: var(--section); padding-block: 72px 56px; }
  .joinery-head { padding-bottom: 28px; }
  .joinery-head h2 { font-size: 52px; }
  .joinery-intro { margin-top: 18px; }
  .rail-nav { display: none; }
  .rail { --rh: min(104vw, 62svh); gap: 12px; }
  .rail li, .rail li.is-small { --rh: min(104vw, 62svh); width: 78vw; margin: 0; align-self: flex-start; scroll-snap-align: center; }
  .rail h3 { font-size: 25px; }
  .rail-track { margin-top: 30px; }

  .services { padding-block: var(--section); }
  .services-head { padding-bottom: 28px; }
  .services-head p { margin-top: 14px; }
  .svc h3 { font-size: 27px; }
  .svc h3 button { padding: 17px 0; min-height: 62px; }

  .about { display: flex; flex-direction: column; padding-bottom: var(--section); }
  .about-body { display: contents; }
  .about h2 { order: 1; }
  .about-lead { order: 2; margin: 18px 0 30px; }
  .about-fig { order: 3; margin-inline: -20px; }
  .about-fig img { aspect-ratio: 4 / 4.6; object-position: 50% 62%; }
  .about-fig figcaption { padding-inline: 20px; }
  .habits { order: 4; grid-template-columns: 1fr; gap: 26px; margin-top: 40px; }

  .words { padding-block: 68px 56px; }
  .quotes { display: flex; gap: 14px; margin-inline: -20px; padding: 0 20px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; }
  .quotes::-webkit-scrollbar { display: none; }
  .quotes figure { flex: 0 0 80vw; scroll-snap-align: start; }
  .quotes blockquote p { font-size: 25px; }

  .enquire { padding-block: 76px; }
  .enq-side h2 { font-size: 58px; }
  .contacts { margin-top: 32px; }
  .contacts > div { grid-template-columns: 62px 1fr; gap: 10px; }
  .contacts dd a { padding: 5px 0; }
  .form { grid-template-columns: 1fr; margin-top: 52px; gap: 24px; padding: 0; }
  .form > .field { grid-column: 1 / -1; }
  .chips label { margin: 0 4px 8px 0; }
  .chips label span { padding: 0 15px; }
  .form-send { flex-direction: column; align-items: stretch; gap: 14px; }

  .ftr { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .dairy-text, .atrium-text, .enq-side { padding-right: 0; }
  .ftr .grid12 { display: grid; grid-template-columns: 1fr; row-gap: 36px; }
  .ftr-brand, .ftr nav.ftr-col, .ftr div.ftr-col, .ftr-base { grid-column: 1; }
  .ftr-brand img { width: 230px; }
  .ftr nav.ftr-col { display: grid; grid-template-columns: 1fr 1fr; }
  .ftr-col a { padding: 8px 0; }
  .ftr-base { flex-direction: column; }

  /* Persistent call / enquire bar */
  .dock { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; padding: 6px; background: var(--chalk); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(18, 26, 51, .22); border-radius: 100px; transform: translateY(160%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
  .dock.is-on { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .dock a { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 100px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
  .dock-go { background: var(--navy); color: var(--chalk); }

  .lb-bar, .lb-foot { padding: 12px 16px; }
  .lb-stage img { padding: 0; }
  .lb-foot p { font-size: 13px; }
  .lb-foot .rail-btn { width: 46px; height: 46px; flex: none; }
}

/* Short phones: keep the frame and the control in the first screen */
@media (max-width: 760px) and (max-height: 700px) {
  .hero-title { font-size: clamp(34px, 10vw, 48px); margin-bottom: 14px; }
  .elevation { height: calc(100svh - 270px); min-height: 280px; }
}

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