/* Elite Joinery Edinburgh v2: page styles */

@font-face {
  font-family: 'Young Serif';
  src: url(../fonts/young-serif-latin.woff2) format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url(../fonts/schibsted-grotesk-latin-var.woff2) format('woff2');
  font-weight: 400 600; font-style: normal; font-display: swap;
}
/* metric-matched fallbacks so the swap does not shift the layout */
@font-face { font-family: 'YS Fallback'; src: local('Georgia'); size-adjust: 110.6%; ascent-override: 95%; descent-override: 33.5%; line-gap-override: 0%; }
@font-face { font-family: 'SG Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 104.2%; ascent-override: 94%; descent-override: 25%; line-gap-override: 0%; }

:root {
  --ground-top: #31402B;
  --ground-mid: #2B3726;
  --ground-end: #1B2218;
  --bone: #E9E3D5;
  --bone-2: rgba(233, 227, 213, .74);
  --bone-3: rgba(233, 227, 213, .18);
  --rule: rgba(233, 227, 213, .26);
  --brass: #BF9658;
  /* the van's orange (vinyl, sampled from Davy's contact photo): the one accent. Text on it is near-black walnut
     (#1C0E06 on #E5480C = 4.72:1; bone or white on it fail, 3.12 and 3.99). --orange-hi is the hover fill (6.17:1
     with walnut) and the focus ring (3.62:1 on the lightest green, 5.06 on the panels) */
  --orange: #E5480C;
  --orange-hi: #F26A2E;
  --oak: #B07A45;
  /* the About me and form panels: a dark roast brown that sits with the oak and the green ground */
  --panel: #2E2219;
  --walnut: #1C0E06;
  --tonal: #232C20;
  /* photos and panels lying on the ground: one soft lift for all of them */
  --lift: 0 1px 2px rgba(6, 8, 4, .26), 0 18px 34px -16px rgba(6, 8, 4, .7);

  --display: 'Young Serif', 'YS Fallback', Georgia, serif;
  --text: 'Schibsted Grotesk', 'SG Fallback', Arial, sans-serif;

  --hdr-h: 72px;
  /* side gutter of the hero, services and footer */
  --gx: max(16px, 4vw);
  --hdr-bg: var(--ground-top);
  --ease-out: cubic-bezier(.1, .8, .15, 1);
  --ease-clip: cubic-bezier(.5, 0, 0, 1);

  /* the board in the hero frame (bench-hero.json, fractions of the frame width; js/bench.js rewrites them):
     left edge, width, centre. The phone crop centres on the board */
  --bd-l: .1625;
  --bd-wf: .63;
  --bd-c: .4775;

  /* ground ramp stops: px values are written by js/site.js from the real section offsets */
  --g0: 18%;
  --g1: 52%;
  --g2: 74%;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  min-height: 100%;
  color: var(--bone);
  background-color: var(--ground-end);
  background-image: linear-gradient(180deg, var(--ground-top) 0, var(--ground-top) var(--g0), var(--ground-mid) var(--g1), var(--ground-end) var(--g2), var(--ground-end) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  background: transparent;
  font: 400 18px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body::after {
  /* grain */
  content: '';
  position: fixed; inset: 0;
  background: url(../img/v2/grain.png) 0 0 / 128px 128px repeat;
  opacity: .05;
  pointer-events: none;
  z-index: 90;
}
.page { overflow-x: hidden; overflow: clip; position: relative; }
img, svg, picture { display: block; max-width: 100%; }
picture img { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 4px; }
/* visually hidden, still read by screen readers and search engines */
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--panel); color: var(--bone); font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* ---------- draft-only marks (?draft) ---------- */
.confirm { display: none; }
.sample-chip { display: none; }
.show-draft .confirm { display: inline; outline: 1px dashed var(--brass); outline-offset: 2px; background: rgba(191, 150, 88, .14); }
.show-draft p.confirm { display: block; }
.show-draft .draft-off { display: none; }
.show-draft .confirm-flag { outline: 1px dashed var(--brass); outline-offset: 4px; }
.show-draft .sample-chip {
  display: block; position: absolute; left: 8px; top: 8px; z-index: 4;
  padding: 3px 8px; font: 500 13px/1.3 var(--text); color: var(--bone); background: rgba(21, 19, 15, .82);
}
.show-draft .svc-photo .sample-chip, .show-draft .room__photo .sample-chip, .show-draft .contact__photo .sample-chip { left: auto; right: 8px; }
.show-draft .beam__w.confirm-flag { outline: 1px dashed var(--brass); outline-offset: 4px; }

/* ---------- buttons + links ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: 2px;
  font: 600 16px/1.1 var(--text); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 0; z-index: -1;
  transition: width .25s cubic-bezier(.4, 0, .2, 1);
}
.btn:hover::after { width: 100%; }
.btn--call { background: var(--orange); color: var(--walnut); }
.btn--call::after { background: var(--orange-hi); }
.link {
  color: var(--bone); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .22em; text-decoration-color: rgba(233, 227, 213, .5);
  transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: var(--orange); }
.foot__line .link { display: inline-block; padding: 11px 0; margin: -11px 0; }

/* ---------- header: the small name and Call / Text, from the first paint ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  /* same side lines as the hero and services (1440 cap) */
  padding: 0 max(var(--gx), calc((100% - 1440px) / 2));
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s;
}
.hdr.is-filled { background-color: var(--hdr-bg); border-bottom-color: var(--bone-3); }
.hdr__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); }
/* the crest from the van, full colour: its white edge keeps the royal blue apart from the green */
.hdr__mark { width: auto; height: 44px; flex: none; }
.hdr__name { font: 400 20px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.hdr__place { font: 400 15px/1 var(--text); color: var(--bone-2); transform: translateY(1px); }
.hdr__actions { display: flex; align-items: center; gap: 22px; }
.hdr__text { font: 600 16px/1 var(--text); text-decoration: none; padding: 14px 4px; }
.hdr__text:hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--orange); }
.hdr__call { min-height: 46px; }

/* ================= C1: the hero =================
   The bench is the picture: as big as the width allows, centred, starting just under the header, whole (slab plus
   its own soft shadow), nothing written on it. One quiet line under it (css/bench.css: the clue, then "Plane it
   again"). The render's slab is the middle 90% of its width (5% shadow margin each side) and the top 4% to 88% of
   its height; the shadow has faded out by 94%.
   --bw (image width): the slab spans --fill of the content width, held to the screen height so the bench and its
   line always fit the first screen (0.949 of the image height to the line, about 44px for the line and a margin).
   On wide screens the slab stops at the 1440 content width, in line with the services rule. */
.c1 {
  --vh: 100vh;
  --fill: 1;
  /* room kept under the bench on the first screen: one line (44px), or two (70px) where the clue line and the
     "Based in Musselburgh" line both show (interactive bench under 1000px, below) */
  --lines: 44px;
  --bw: min(calc((100vw - 2 * var(--gx)) * var(--fill) / .9), calc(1440px / .9), calc((var(--vh) - var(--hdr-h) - var(--lines)) * 1.686), 100vw);
  position: relative;
  padding: calc(var(--hdr-h) + 8px) var(--gx) 0;
}
@supports (height: 100svh) { .c1 { --vh: 100svh; } }
/* centred on the page whatever its width: the shadow margins may run into the gutters, never off the screen */
.hero-bench { position: relative; width: var(--bw); margin-left: calc(50% - var(--bw) / 2); }
/* just under the shadow (margin % is of the figure's width: the render's empty bottom strip is 3.6% of it), lined up
   with the board's left end. While the bench is interactive the clue line (css/bench.css) takes that spot and this
   line sits right under it */
.hero-place {
  margin-top: -3.2%; padding-left: calc(var(--bd-l) * 100%);
  font: 500 clamp(16px, .45vw + 12px, 19px)/1.3 var(--text); letter-spacing: .01em; color: var(--bone);
}
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.bench-still) .hero-place { margin-top: 2px; }
}
/* phones with the still picture (no JS, reduced motion): on the slab's left edge, about the page gutter */
@media (max-width: 599px) { .hero-place { padding-left: 5%; } }

/* "BASED IN MUSSELBURGH" is burned into the bench under the board's left end (bench-hero-*, 34 px caps in the 4000 px
   frame). With .is-baked on .hero-bench this line stays for screen readers only where the burned caps are drawn at
   8 px or more (stage about 940 px wide, from 1000 px screens); below that it shows (4.7 px caps on a 390 phone) */
@media (min-width: 1000px) {
  .hero-bench.is-baked .hero-place {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}

/* phones: the plane-the-board bench is a zoomed crop centred on the board, so the board spans 94% of the screen and
   the plane is big enough to grab (about 104 px long on a 390 phone); the bench's ends run off both sides. 94% (not
   90) puts the mug fully off the right edge on every phone instead of leaving a sliver of its rim (its left edge sits
   at 0.5 + 0.533 x the board share of the screen width). Only while the bench is interactive (JS on, motion allowed,
   layers not failed): the still picture keeps the whole bench. The lines under it keep to the page gutter */
@media (max-width: 999px) and (prefers-reduced-motion: no-preference) {
  html.js:not(.bench-still) .c1 { --lines: 70px; }
}
@media (max-width: 599px) and (prefers-reduced-motion: no-preference) {
  /* held to the screen height too, for small phones turned sideways */
  html.js:not(.bench-still) .c1 { --bw: min(calc(94vw / var(--bd-wf)), calc((var(--vh) - var(--hdr-h) - var(--lines)) * 1.686)); }
  html.js:not(.bench-still) .hero-bench { margin-left: calc(50% - var(--bw) * var(--bd-c)); }
  html.js:not(.bench-still) .hero-place,
  html.js:not(.bench-still) .bench__after { padding-left: calc(var(--bw) * var(--bd-c) - 50vw + var(--gx)); }
}

/* ================= C2: services ================= */
.c2 {
  position: relative;
  margin-top: 56px;
  padding: 56px max(var(--gx), calc((100% - 1440px) / 2)) 22vw;
}
/* where the services start: one rule across the content width */
.c2::before {
  content: ''; position: absolute; top: 0; height: 1px; background: var(--rule);
  left: max(var(--gx), calc((100% - 1440px) / 2)); right: max(var(--gx), calc((100% - 1440px) / 2));
}
.c2__h2 {
  font: 400 clamp(2.25rem, 1.5rem + 2.4vw, 3.2rem)/1.05 var(--display);
  letter-spacing: -.012em;
}
.svcs { margin-top: 28px; border-top: 1px solid var(--rule); }
.svc { padding: 24px 0 20px; border-bottom: 1px solid var(--rule); }
.svc__name {
  font: 400 clamp(1.75rem, 1.1rem + 1.4vw, 2.3rem)/1.08 var(--display);
  letter-spacing: -.01em; color: var(--bone);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em;
  text-decoration-color: transparent; transition: text-decoration-color .25s;
}
.svc.is-current .svc__name { text-decoration-color: var(--orange); }
.svc__line { margin-top: 6px; font-size: 17px; line-height: 1.45; color: var(--bone-2); max-width: 34em; text-wrap: pretty; }
.svc__ask {
  display: inline-block; margin-top: 4px; padding: 9px 0 7px;
  font: 500 15px/1.3 var(--text); color: var(--bone);
  text-decoration: underline; text-underline-offset: .22em; text-decoration-color: var(--orange);
}
.svc__ask:hover { text-decoration-thickness: 2px; }
.svcs__after { margin-top: 28px; color: var(--bone-2); }
.svcs__after .link { font-weight: 500; }

/* the service photo: still, in place. A different row swaps it with a quick crossfade (the old one stays put under
   the new one until it has faded in) */
.svc-photo { position: relative; aspect-ratio: 1; width: min(78%, 480px); margin: 44px 0 0 auto; background: #1a1d16; overflow: hidden; }
.shot { position: absolute; inset: 0; opacity: 0; z-index: 1; transition: opacity 0s .4s; }
.shot.is-on { opacity: 1; z-index: 2; transition: opacity .35s ease; }
.shot picture, .shot img { width: 100%; height: 100%; object-fit: cover; }

/* end grain in the ground, crossing the services / room seam. Its heart is off the left edge, so only the outer
   rings and a check show, like the edge of a log, never a target */
.rings {
  position: absolute; z-index: -1; pointer-events: none;
  background: url(../img/v2/rings.svg) center / contain no-repeat;
  opacity: .26;
  width: 130vw; height: 130vw; left: -104vw; bottom: -58vw;
}

/* ================= C3: the room =================
   One full-length oak beam with the burned marquee, then one set: the big photo flush left, the About me panel over
   its lower right corner, and three small frames (all 4:5) on deliberate corners. Every overlap is the same depth. */
.room { position: relative; z-index: 2; --r: 1vw; --beam-h: 15vw; padding-bottom: 20vw; }
.beam {
  position: relative; z-index: 2; height: var(--beam-h); overflow: hidden;
  font-size: calc(var(--beam-h) * .37);
  /* the plank lies on the ground: a soft cast shadow under it */
  box-shadow: 0 1px 1px rgba(0, 0, 0, .22), 0 14px 22px -12px rgba(0, 0, 0, .6);
}
.beam::before {
  /* a faint arris (planed edge) top and bottom */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 226, 180, .22), inset 0 -1px 0 rgba(40, 18, 6, .4);
}
.beam__track { display: flex; width: max-content; height: 100%; will-change: transform; }
.beam__set {
  display: flex; align-items: center; flex: none; height: 100%;
  padding-right: .7em; gap: .7em;
  background-color: #8a5e3a;
  background-image: var(--beam-img, none);
  background-size: auto 100%;
  background-repeat: repeat-x;
}
/* burned in: a dark char rim, a lighter brown core that lets the grain through (multiply), a faint warm scorch */
.beam__w {
  font: 400 1em/1 var(--display); letter-spacing: .01em; white-space: nowrap;
  color: #572B13;
  -webkit-text-stroke: .02em rgba(36, 14, 4, .92);
  mix-blend-mode: multiply;
  text-shadow: 0 0 .1em rgba(120, 56, 16, .34);
  transform: translateY(.04em);
}
/* the separators: the van's orange, painted on (no burn) */
.beam__sep { width: .5em; height: .5em; flex: none; color: var(--orange); }

.room__set { position: relative; display: flow-root; margin-top: 14vw; padding-bottom: 41.5vw; }
.room__photo { position: relative; z-index: 3; width: 84vw; aspect-ratio: 4 / 3; overflow: hidden; }
.room__photo picture { width: 100%; height: 100%; }
.room__photo img { object-position: 62% 50%; }
/* bottom padding clears the 6vw the frames below hang over it, plus a line of air */
.about { position: relative; z-index: 5; margin: -10vw 0 0 10vw; padding: 26px 22px calc(6vw + 30px); background: var(--panel); box-shadow: var(--lift); }
.about__h { font: 400 clamp(2rem, 8.6vw, 3rem)/1.05 var(--display); letter-spacing: -.012em; margin-bottom: 16px; text-wrap: balance; }
.about p + p { margin-top: 14px; }
.about p { max-width: 34em; text-wrap: pretty; }
/* phones: barber over the photo's top right corner; racer and fire hang off the panel's bottom edge by the same 6vw */
.moods { position: absolute; inset: 0; pointer-events: none; }
.mood { position: absolute; z-index: 6; overflow: hidden; aspect-ratio: 4 / 5; }
.mood picture { width: 100%; height: 100%; }
.mood--barber { right: var(--gx); top: -8vw; width: 34vw; }
.mood--barber img { object-position: 38% 50%; }
.mood--racer { left: var(--gx); bottom: 0; width: 38vw; }
.mood--racer img { object-position: 50% 78%; }
.mood--fire { right: var(--gx); bottom: -7.5vw; width: 44vw; }

/* one grade for every photo on the ground, so the frames read as one set of prints */
.ph img { filter: sepia(.16) saturate(.8) contrast(1.04) brightness(.95); }
.ph { box-shadow: none; transition: box-shadow .9s .45s; }
.ph.is-in, .no-io .ph, .no-js .ph { box-shadow: var(--lift); }

/* reveal */
.js [data-reveal] > picture { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-clip); }
.js [data-reveal].is-in > picture, .no-io [data-reveal] > picture { clip-path: inset(0); }
[data-parallax] img { transform-origin: 50% 50%; }

/* ================= C4: leave a few details =================
   The form panel, the kettle photo beside it, and the end-grain round (Text me) on the panel's top corner. */
.contact { position: relative; z-index: 2; --r: 1vw; padding: 0 0 14vw; }
.contact__photo { position: relative; z-index: 1; margin-left: auto; width: 66vw; aspect-ratio: 4 / 5; overflow: hidden; }
.contact__photo picture { width: 100%; height: 100%; }
.contact__photo img { object-position: 50% 60%; }
/* phones: the panel takes only the stump at the photo's foot, the kettle stays in view */
.enquire { position: relative; z-index: 4; margin: -9vw var(--gx) 0; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.enquire__panel { position: relative; z-index: 1; background: var(--panel); box-shadow: var(--lift); padding: 26px 20px 28px; }
.enquire__h { font: 400 clamp(1.75rem, 1.1rem + 1.6vw, 2.4rem)/1.1 var(--display); letter-spacing: -.01em; margin-bottom: 8px; }
.enquire__h:focus { outline: none; }
/* the end-grain round (Text me): turns a little as you scroll past, never on its own. Phones: on the photo's left
   edge, over the dark woods, clear of the kettle and the panel */
.disc { position: absolute; z-index: 6; display: block; aspect-ratio: 1; border-radius: 50%; text-decoration: none; width: 54vw; left: calc(-1 * var(--gx)); top: -62vw; }
.disc__still, .disc__spin, .disc__wood, .disc__still img, .disc__wood img, .disc__ring { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* turns about the centre of the wood (the render's round sits a hair above the image centre) */
.disc__spin { transform-origin: 49.94% 49.69%; will-change: transform; }
.disc__wood { clip-path: circle(37.6% at 49.94% 49.69%); }
.disc__ring { overflow: visible; mix-blend-mode: multiply; }
.disc__txt { font: 400 40px/1 var(--display); fill: #0B0502; }
.disc:hover .disc__txt { fill: #0A0402; }
/* the focus ring follows the wood, not the square image with its shadow */
.disc::after { content: ''; position: absolute; left: 12.3%; top: 12.1%; width: 75.3%; height: 75.3%; border-radius: 50%; pointer-events: none; }
.disc:focus-visible { outline: none; }
.disc:focus-visible::after { outline: 2px solid var(--bone); outline-offset: 4px; box-shadow: 0 0 0 7px var(--ground-end); }

.qform { display: grid; grid-template-columns: 1fr; gap: 6px 28px; }
.field { position: relative; display: flex; flex-direction: column; padding-top: 14px; }
.field--wide { grid-column: 1 / -1; }
.field--short { grid-column: 1; max-width: 60%; }
.field label { font: 500 15px/1.3 var(--text); color: var(--bone-2); }
.field__opt { font-weight: 400; }
.field input, .field textarea {
  width: 100%; margin-top: 4px; padding: 10px 0 9px;
  font: 400 18px/1.4 var(--text); color: var(--bone);
  background: transparent; border: 0; border-bottom: 1px solid rgba(233, 227, 213, .42); border-radius: 0;
  transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--orange); box-shadow: 0 1px 0 0 var(--orange); }
.field input::placeholder, .field textarea::placeholder { color: rgba(233, 227, 213, .42); }
.field__hint { font-size: 15px; color: var(--bone-2); margin-top: 6px; }
.field__err { font: 500 15px/1.4 var(--text); color: #F0B49E; min-height: 0; margin-top: 4px; }
.field__err:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #E07F62; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qform__foot { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 18px; }
.qform__foot .btn { min-width: 140px; }
.qform__privacy { font-size: 15px; color: var(--bone-2); }
.qform__status { grid-column: 1 / -1; font-size: 15px; color: #F0B49E; }
.qform__status:empty { display: none; }
.qform__note { grid-column: 1 / -1; font-size: 15px; color: var(--bone-2); margin-top: 6px; }
.qform-done { padding: 8px 0 4px; }
.qform-done__title { font: 400 clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem)/1.1 var(--display); margin-bottom: 12px; }
.qform-done:focus { outline: none; }

/* ================= footer ================= */
.foot { position: relative; z-index: 3; overflow: hidden; padding-top: 4vw; }
/* the full logo from the van, on the content line, above the small print */
.foot__logo {
  position: relative; z-index: 2; display: block; width: clamp(120px, 9vw, 150px); height: auto;
  margin: 0 0 26px max(var(--gx), calc((100% - 1440px) / 2));
}
.foot__line {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  padding: 0 max(var(--gx), calc((100% - 1440px) / 2));
  font-size: 15px; color: var(--bone);
}
.foot__dot { color: var(--bone-2); }
@media (max-width: 1279px) { .foot__dot { display: none; } .foot__line { gap: 6px 22px; } }
.foot__mark {
  font: 400 14.6vw/.8 var(--display); letter-spacing: -.045em; color: var(--tonal);
  white-space: nowrap; user-select: none;
  margin: 3vw 0 0 -.4vw; height: 10.2vw; overflow: hidden;
}

/* ===================================================================
   FROM 860px (desktop, laptop, landscape tablet)
   =================================================================== */
@media (min-width: 860px) {
  /* hero: the slab spans 92% of the content width (less only where the screen is too short to fit it whole) */
  .c1 { --fill: .92; padding-top: calc(var(--hdr-h) + 4px); }

  /* services: the list left, the photo right */
  .c2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(44%, 680px);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(32px, 5vw, 96px);
    margin-top: clamp(48px, 5vw, 96px);
    padding-top: clamp(64px, 7vw, 120px); padding-bottom: clamp(80px, 9vw, 150px);
  }
  .c2__h2 { grid-column: 1; grid-row: 1; }
  .svcs { grid-column: 1; grid-row: 2; max-width: 38rem; margin-top: 36px; }
  .svc { padding: 32px 0 26px; }
  .svcs__after { grid-column: 1; grid-row: 3; align-self: start; }
  .svc-photo { grid-column: 2; grid-row: 2 / span 2; align-self: start; width: 90%; aspect-ratio: 4 / 5; margin: 36px 0 0 5%; }
  .rings { width: 64vw; height: 64vw; left: -48vw; bottom: -30vw; }

  /* room: composed in --r (1vw, held at 19.2px past 1920) */
  .room { --r: min(1vw, 19.2px); --beam-h: calc(var(--r) * 6.6); padding-bottom: calc(var(--r) * 11); }
  .beam { font-size: calc(var(--beam-h) * .38); }
  .room__set { max-width: 1920px; margin: calc(var(--r) * 5.5) auto 0; padding-bottom: calc(var(--r) * 12.25); }
  /* the big photo: flush left, 54 wide */
  .room__photo { position: absolute; left: 0; top: 0; width: calc(var(--r) * 54); aspect-ratio: 16 / 10; }
  .room__photo img { object-position: 50% 50%; }
  /* the panel: over the photo's lower right corner, its right edge at 80 */
  .about {
    --w: max(calc(var(--r) * 38), 390px);
    width: var(--w);
    margin: calc(var(--r) * 20) 0 0 calc(var(--r) * 80 - var(--w));
    padding: calc(var(--r) * 3.6) calc(var(--r) * 4.6) calc(var(--r) * 4.6) calc(var(--r) * 3.8);
  }
  .about__h { font-size: clamp(1.9rem, calc(var(--r) * 2.6), 3rem); margin-bottom: 18px; }
  .about p { font-size: clamp(18px, calc(var(--r) * 1.12), 21.5px); }
  /* barber: top in line with the big photo's top, over the panel's top right corner, right edge on the gutter (96) */
  .mood--barber { left: calc(var(--r) * 76); right: auto; top: 0; width: calc(var(--r) * 20); }
  /* fire: over the panel's bottom right corner, in line with the barber's left edge */
  .mood--fire { left: calc(var(--r) * 76); right: auto; bottom: 0; width: calc(var(--r) * 13); }
  /* racer: on the gutter, over the photo's bottom edge */
  .mood--racer { left: calc(var(--r) * 4); top: calc(var(--r) * 29.75); bottom: auto; width: calc(var(--r) * 14); }

  /* contact: the kettle photo flush right, the form panel over its left edge, the round on the panel's top right corner */
  .contact { --r: min(1vw, 19.2px); max-width: 1920px; margin: 0 auto; padding: calc(var(--r) * 4) 0 calc(var(--r) * 8); }
  .contact__photo { position: absolute; right: 0; top: 0; width: calc(var(--r) * 30); margin: 0; }
  /* the panel's right edge 4 over the photo's left edge (70) */
  .enquire { --w: clamp(520px, calc(var(--r) * 48), 840px); width: var(--w); margin: calc(var(--r) * 12) 0 0 calc(var(--r) * 74 - var(--w)); }
  .enquire__panel { padding: calc(var(--r) * 3.4) calc(var(--r) * 3.6) calc(var(--r) * 3.6); }
  .qform { grid-template-columns: 1fr 1fr; }
  .field--short { max-width: none; }
  /* the round's wood is centred on the panel's top right corner (2 in, 4 up): over the photo's dark edge, clear of
     the heading, the fields and the kettle */
  .disc { --d: max(200px, calc(var(--r) * 20)); width: var(--d); left: auto; right: calc(2 * var(--r) - var(--d) / 2); top: calc(-4 * var(--r) - var(--d) / 2); }

  .foot { padding-top: 0; }
}

/* ===================================================================
   PHONE + TABLET (< 1024): header
   =================================================================== */
@media (max-width: 1023px) {
  :root { --hdr-h: 60px; }
  body { font-size: 17px; }
  .hdr { padding: 0 var(--gx); gap: 8px; }
  .hdr__brand { gap: 8px; }
  .hdr__name { font-size: 18px; }
  .hdr__mark { height: 38px; }
  .hdr__place, .hdr__text { display: none; }
  .hdr__actions { gap: 6px; margin-left: auto; }
  .hdr__call { min-height: 44px; padding: 0 12px; font-size: 15px; }
}

/* phones and portrait tablets: the footer in one column */
@media (max-width: 859px) {
  .foot { padding-top: 6vw; }
  .foot__logo { margin-left: 16px; width: 116px; margin-bottom: 22px; }
  .foot__line { padding: 0 16px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .foot__line > span { white-space: nowrap; }
  .foot__mark { font-size: 27vw; line-height: .82; white-space: normal; margin: 8vw 0 -9vw -1vw; height: 34vw; max-width: none; }
}

/* very narrow phones (under 350): the crest alone, so the full number on the Call button always fits */
@media (max-width: 349px) {
  .hdr__name { display: none; }
}

/* portrait tablets 600 to 859: the phone flow, a little more air, smaller frames */
@media (min-width: 600px) and (max-width: 859px) {
  .about { padding: 36px 40px calc(6vw + 32px); }
  .room__set { padding-bottom: 31.5vw; }
  .mood--barber { width: 30vw; }
  .mood--racer { width: 30vw; }
  .mood--fire { width: 36vw; }
  .enquire { margin-left: 8vw; margin-right: 8vw; }
  .enquire__panel { padding: 36px 40px 40px; }
  .qform { grid-template-columns: 1fr 1fr; }
  .field--short { max-width: none; }
}

/* intro: the hero bench fades in once its layers are decoded (css/bench.css), nothing else moves on load */

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .2s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] > picture { clip-path: none; }
  .btn::after { transition: none; }
}
