/* The Mother in Lawns — homepage mockup
   Concept: the best room in the house has no roof.
   Italic claret is always "her" talking. Colours are named like a paint card. */

/* ───────────── Fonts (self-hosted, variable) ───────────── */
@font-face { font-family: "Besley"; src: url("../fonts/besley.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Besley"; src: url("../fonts/besley-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }

/* ───────────── Tokens ───────────── */
:root {
  --plaster:    #e4dcd9;   /* the wall */
  --plaster-hi: #eee8e5;   /* lighter panel */
  --damson:     #2a1527;   /* ink, and the dark rooms */
  --claret:     #7c2a3b;   /* her voice */
  --sandstone:  #cfa567;   /* Rippon Buff, used on dark only */

  --ink:        var(--damson);
  --ink-soft:   #5a4756;
  --line:       rgb(42 21 39 / .2);
  --on-dark:    var(--plaster);
  --on-dark-soft: rgb(228 220 217 / .72);

  --serif: "Besley", "Clarendon", "Rockwell", Georgia, serif;
  --sans:  "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --edge:   max(var(--gutter), calc((100vw - 1440px) / 2));
  --gap:    clamp(12px, 1.6vw, 24px);
  --section: clamp(72px, 10vw, 152px);
  --bar-h:  68px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure, blockquote, dl, dd, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--claret); color: var(--plaster); }
:focus-visible { outline: 3px solid var(--claret); outline-offset: 3px; }
.under :focus-visible, .ask :focus-visible, .foot :focus-visible { outline-color: var(--sandstone); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--damson); color: var(--plaster); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.h2 {
  margin: 0;
  font: 700 clamp(40px, 6.2vw, 100px)/1.03 var(--serif);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.nb { white-space: nowrap; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 26px;
  background: var(--damson); color: var(--plaster);
  font: 600 17px/1 var(--sans);
  text-decoration: none;
  border: 0; border-radius: 2px;
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--claret); }
.btn:active { transform: translateY(1px); }
.textlink {
  font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
  text-decoration-color: var(--claret);
  transition: color .2s, text-decoration-color .2s;
}
.textlink:hover { color: var(--claret); }

/* A swatch: one coloured square and a name */
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.chip::before {
  content: ""; flex: none; width: 12px; height: 12px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2);
}

/* ───────────── Header ───────────── */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  height: var(--bar-h);
  padding: 0 var(--edge);
  background: var(--plaster);
  transition: box-shadow .3s;
}
.bar.is-stuck { box-shadow: 0 1px 0 var(--line); }

.mark {
  font: 800 23px/1 var(--serif); letter-spacing: -.025em;
  text-decoration: none; white-space: nowrap;
}
.mark i, .foot__mark i { font-style: italic; font-weight: 600; color: var(--claret); }

.bar__nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); margin-left: auto; }
.bar__nav a:not(.bar__phone) {
  font-size: 15.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--claret), var(--claret)) 0 100% / 0 2px no-repeat;
  padding-bottom: 3px;
  transition: background-size .3s var(--ease);
}
.bar__nav a:not(.bar__phone):hover { background-size: 100% 2px; }

.bar__phone {
  display: inline-flex; gap: .55em; align-items: baseline;
  padding: 10px 16px;
  border: 1.5px solid var(--damson); border-radius: 2px;
  font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.bar__phone:hover { background: var(--damson); color: var(--plaster); }
.bar__phone-label { font-weight: 500; opacity: .7; }
.bar__phone--in-menu, .bar__menu { display: none; }

/* ───────────── Hero ───────────── */
/* Regency stripes in the best room, mown stripes on the lawn: one pattern, tone on tone */
.hero, .ask { --w: clamp(36px, 5vw, 84px); }
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-left: var(--edge);
  background: repeating-linear-gradient(90deg, transparent 0 var(--w), rgb(42 21 39 / .03) var(--w) calc(var(--w) * 2));
  min-height: 680px;
  min-height: max(680px, calc(100vh - var(--bar-h)));
  min-height: max(680px, calc(100svh - var(--bar-h)));
}
.hero__text {
  grid-column: 1 / span 7;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(16px, 2vw, 30px) 0 clamp(22px, 2.6vw, 40px);
}
.hero__place { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }

.hero__title {
  margin: 0 0 clamp(22px, 2.6vw, 40px);
  font: 800 clamp(66px, min(9.8vw, 15.4vh), 176px)/.9 var(--serif);
  letter-spacing: -.04em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .07em; }
.hero__line > span { display: block; }
.hero__title em { font-style: italic; font-weight: 600; color: var(--claret); letter-spacing: -.045em; }

.hero__lede { max-width: 33ch; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 26px; }
.hero__trust { margin-top: 22px; font-size: 15px; color: var(--ink-soft); }
.hero__trust a { text-decoration-color: var(--line); text-underline-offset: 4px; }
.hero__trust a:hover { color: var(--claret); }
.hero__trust strong { color: var(--ink); font-weight: 650; }

.hero__photo { grid-column: 8 / -1; display: flex; flex-direction: column; }
.hero__frame { position: relative; flex: 1; min-height: 0; background: var(--plaster-hi); }
.hero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero__caption {
  padding: 12px var(--gutter) 14px 0;
  font: italic 500 15px/1.35 var(--serif); color: var(--ink-soft);
}

/* The paint card: the stone we lay, named like paint */
.paintcard {
  position: absolute; z-index: 2;
  left: clamp(-72px, -4.4vw, -28px); bottom: clamp(24px, 4vw, 56px);
  width: clamp(172px, 14.5vw, 212px);
  padding: 12px 12px 14px;
  background: var(--plaster-hi); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}
.paintcard__title { margin: 0 0 10px; font: 700 15px/1.15 var(--serif); letter-spacing: -.01em; }
.paintcard li {
  padding: 8px 9px; background: var(--c); color: var(--damson);
  font-size: 13px; font-weight: 600; line-height: 1.2;
}
.paintcard li:first-child { box-shadow: inset 0 0 0 1px rgb(42 21 39 / .18); }

/* ───────────── The name ───────────── */
.name {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(28px, 4vw, 60px);
  padding: var(--section) var(--edge);
}
.name__head { grid-column: 1 / span 8; }
.name__body { grid-column: 1 / span 6; grid-row: 2; display: grid; gap: 22px; align-content: start; }
.name__lead { font: 500 clamp(22px, 2.1vw, 31px)/1.3 var(--serif); letter-spacing: -.01em; }
.name__body > p:not(.name__lead) { max-width: 52ch; color: var(--ink-soft); }
.name__photo { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: start; margin-top: clamp(0px, 3vw, 40px); }
.name__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.name__photo figcaption, .hang figcaption, .under__photo figcaption {
  margin-top: 10px; max-width: 34ch;
  font: italic 500 15px/1.35 var(--serif); color: var(--ink-soft);
}

.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.facts > div { padding: 16px 28px 0 0; }
.facts > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts dt { font-size: 13.5px; color: var(--ink-soft); }
.facts dd { margin-top: 2px; font: 700 19px/1.25 var(--serif); letter-spacing: -.01em; }

/* ───────────── The tour ───────────── */
.tour { padding: var(--section) var(--edge); background: var(--plaster-hi); }
.tour__head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 72px); }
.tour__head .h2 { max-width: 17ch; }
.tour__sub { font: italic 500 clamp(19px, 1.7vw, 25px)/1.3 var(--serif); color: var(--claret); }

.rooms { border-bottom: 1px solid var(--line); }
.room {
  --ph: clamp(150px, 15.5vw, 236px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
  padding: clamp(24px, 2.8vw, 40px) 0;
  border-top: 1px solid var(--line);
}
.room__name {
  grid-column: 1 / span 4;
  margin: 0;
  font: 700 clamp(32px, 3.7vw, 56px)/1.05 var(--serif); letter-spacing: -.03em;
  transition: color .3s var(--ease);
}
.room:hover .room__name { color: var(--claret); }
.room__text { grid-column: 5 / span 5; display: grid; gap: 0; align-content: start; padding-top: .45em; }
.room__text > p:first-child { max-width: 38ch; }
.she { margin-top: 12px; font: italic 500 18px/1.3 var(--serif); color: var(--claret); }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }

.room__photo { grid-column: 10 / -1; justify-self: end; height: var(--ph); overflow: hidden; background: var(--plaster); }
.room__photo--wide { aspect-ratio: 4 / 3; }
.room__photo--tall { aspect-ratio: 3 / 4; }
.room__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.room:hover .room__photo img { transform: scale(1.045); }

/* ───────────── The work ───────────── */
.work { padding: var(--section) var(--edge); }
.work__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(36px, 5vw, 76px); }
.work__head p { color: var(--ink-soft); max-width: 30ch; }

/* Three ruled rows. Within a row every photograph shares one height (widths follow each
   photo's own proportions), so the tops and bottoms line up and the gutters are equal. */
.hang { display: grid; row-gap: clamp(32px, 4vw, 60px); }
.hang__row { display: flex; align-items: flex-start; gap: var(--gap); }
.hang__item { flex: var(--r) 1 0%; min-width: 0; }
.hang__item--l { --r: 1.3333; }
.hang__item--p { --r: .75; }
.hang__item img { width: 100%; height: auto; }

/* ───────────── Underneath ───────────── */
.under {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
  padding: var(--section) var(--edge);
  background: var(--damson); color: var(--on-dark);
}
.under__photo { grid-column: 1 / span 4; }
.under__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.under__photo figcaption { color: var(--on-dark-soft); }
.under__body { grid-column: 6 / -1; display: grid; gap: clamp(28px, 3.6vw, 56px); }
.under__story { font: 600 clamp(25px, 3.05vw, 48px)/1.32 var(--serif); letter-spacing: -.012em; text-wrap: pretty; }
.under__story b { font-weight: 800; color: var(--sandstone); white-space: nowrap; }
.inline {
  display: inline-block; width: 1.75em; height: 1.05em; object-fit: cover;
  vertical-align: -.14em; margin: 0 .08em 0 .28em;
}
.under__source { font-size: 14px; color: var(--on-dark-soft); }

/* ───────────── Verdict ───────────── */
.verdict {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(56px, 8vw, 120px);
  padding: var(--section) var(--edge);
}
.verdict__score { grid-column: 1 / span 6; display: grid; gap: 22px; align-content: start; justify-items: start; }
.verdict__big { display: grid; gap: 6px; margin: 10px 0 0; }
.verdict__num { font: 800 clamp(120px, 18vw, 280px)/.8 var(--serif); letter-spacing: -.055em; color: var(--claret); margin-left: -.04em; }
.verdict__of { max-width: 26ch; font-size: 17px; color: var(--ink-soft); }
.verdict__note { max-width: 40ch; }

.scores { grid-column: 8 / -1; align-self: end; display: grid; gap: clamp(16px, 2vw, 26px); }
.score { display: grid; grid-template-columns: minmax(132px, 11rem) 1fr 3.2ch; align-items: center; column-gap: 18px; font-size: 16px; }
.score__label { color: var(--ink-soft); }
.score__value { font: 700 21px/1 var(--serif); text-align: right; }
/* a ruled line, ticked at 0 to 5, with a peg where the score lands */
.score__rule {
  --p: 0;
  position: relative; height: 22px;
  background:
    linear-gradient(var(--ink-soft), var(--ink-soft)) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(to right, var(--ink-soft) 0 1px, transparent 1px 20%);
  border-right: 1px solid var(--ink-soft);
}
.score__rule i {
  position: absolute; top: 0; bottom: 0; width: 7px; margin-left: -3.5px;
  left: calc(var(--v) / 5 * 100% * var(--p));
  background: var(--claret);
  transition: left 1.2s var(--ease);
}
.score.is-in .score__rule { --p: 1; }
html:not(.js) .score__rule { --p: 1; }

.quotes {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.quote blockquote p { position: relative; font: 600 clamp(24px, 2.5vw, 38px)/1.25 var(--serif); letter-spacing: -.015em; text-wrap: pretty; }
.quote blockquote p::before { content: "\201C"; position: absolute; right: 100%; margin-right: .08em; font-style: italic; color: var(--claret); }
.quote figcaption { margin-top: 16px; font-size: 14.5px; color: var(--ink-soft); }
.quote--a { grid-column: 1 / span 7; }
.quote--a blockquote p { font-size: clamp(30px, 3.6vw, 56px); line-height: 1.15; letter-spacing: -.025em; }
.quote--b { grid-column: 9 / span 4; margin-top: clamp(0px, 5vw, 80px); }
.quote--c { grid-column: 3 / span 5; }
.quote--d { grid-column: 9 / span 4; }
.quote--d blockquote p { font-size: clamp(22px, 2.1vw, 30px); }

/* ───────────── Ask ───────────── */
.ask {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
  padding: var(--section) var(--edge);
  background: repeating-linear-gradient(90deg, transparent 0 var(--w), rgb(0 0 0 / .07) var(--w) calc(var(--w) * 2)), var(--claret);
  color: var(--on-dark);
}
.ask__lead { grid-column: 1 / span 6; display: grid; gap: clamp(20px, 2.4vw, 32px); justify-items: start; }
.ask__title { font-size: clamp(56px, 9vw, 152px); letter-spacing: -.04em; }
.ask__lede { max-width: 36ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; }
.ask__phone {
  font: 800 clamp(40px, 6.2vw, 100px)/1 var(--serif); letter-spacing: -.035em; text-decoration: none;
  background: linear-gradient(var(--sandstone), var(--sandstone)) 0 100% / 100% 3px no-repeat;
  padding-bottom: .08em;
  transition: background-size .35s var(--ease), color .25s;
}
.ask__phone:hover { color: var(--sandstone); }
.ask__links { display: grid; gap: 6px; font-size: 18px; }
.ask__links a { text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.ask__links a:hover { color: var(--sandstone); }
.ask__area { max-width: 44ch; font-size: 15px; color: var(--on-dark-soft); }

.form {
  grid-column: 8 / -1;
  display: grid; gap: 22px;
  padding: clamp(24px, 2.6vw, 40px);
  background: var(--plaster-hi); color: var(--ink);
  border-radius: 2px;
}
.form__title { margin: 0 0 2px; font: 700 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); letter-spacing: -.02em; }
.field { display: grid; gap: 4px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { padding: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.field input[type="text"], .field textarea {
  width: 100%;
  padding: 9px 0 10px;
  background: transparent; color: var(--ink);
  font: 400 18px/1.4 var(--sans);
  border: 0; border-bottom: 1.5px solid rgb(42 21 39 / .38); border-radius: 0;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder { color: rgb(42 21 39 / .42); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--claret); box-shadow: 0 1.5px 0 var(--claret); }
.field.is-error input { border-bottom-color: #a3122a; }
.field--set legend { margin-bottom: 10px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; display: inline-flex; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span {
  padding: 9px 14px; font-size: 15px; line-height: 1.2;
  border: 1.5px solid rgb(42 21 39 / .32);
  transition: background-color .2s, color .2s, border-color .2s;
}
.pick:hover span { border-color: var(--ink); }
.pick input:checked + span { background: var(--damson); border-color: var(--damson); color: var(--plaster); }
.pick input:focus-visible + span { outline: 3px solid var(--claret); outline-offset: 2px; }
.btn--solid { justify-self: start; padding: 18px 30px; }
.form__note { font-size: 14px; color: var(--ink-soft); max-width: 46ch; }
.form__note a { text-underline-offset: 3px; }
.form__note.is-error { color: #a3122a; font-weight: 600; }

/* ───────────── Footer ───────────── */
.foot { padding: clamp(56px, 7vw, 104px) var(--edge) 28px; background: var(--damson); color: var(--on-dark); overflow: hidden; }
.foot__mark {
  margin: 0 0 clamp(40px, 5vw, 80px);
  font: 800 min(8vw, 142px)/.95 var(--serif); letter-spacing: -.045em; white-space: nowrap;
}
.foot__mark i { color: var(--sandstone); }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 36px; }
.foot__col { grid-column: span 4; }
.foot__h { margin: 0 0 14px; font: 600 14.5px/1.2 var(--sans); color: var(--sandstone); }
.foot__col ul { display: grid; gap: 7px; }
.foot__col a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.foot__col a:hover { color: var(--sandstone); }
.swatches li { display: flex; align-items: center; gap: 12px; }
.swatches i { flex: none; width: 34px; height: 16px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25); }
.foot__small {
  margin-top: clamp(40px, 5vw, 72px); padding-top: 20px;
  border-top: 1px solid rgb(228 220 217 / .2);
  font-size: 13.5px; color: var(--on-dark-soft); max-width: 70ch;
}

/* ───────────── Motion ───────────── */
@keyframes rise   { to { transform: translateY(0); } }
@keyframes unroll { to { clip-path: inset(0 0 0 0); } }

.js .hero__line > span { transform: translateY(108%); animation: rise .95s var(--ease) forwards; animation-delay: calc(.12s + var(--i, 0) * .1s); }
.hero__line:nth-child(2) > span { --i: 1; }
.hero__line:nth-child(3) > span { --i: 2; }
.js .hero__frame img { clip-path: inset(0 0 100% 0); animation: unroll 1.2s .3s var(--ease) forwards; }

/* photographs unroll like turf as they arrive */
.js .reveal img { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
.js .reveal.is-in img { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero__line > span { transform: none; }
  .js .hero__frame img, .js .reveal img { clip-path: none; }
  .score__rule { --p: 1; }
}

/* ───────────── Tablet ───────────── */
@media (max-width: 1100px) {
  .bar__nav { gap: 18px; }
  .bar__nav a:not(.bar__phone) { font-size: 14.5px; }
  .hero { min-height: min(920px, max(680px, calc(100svh - var(--bar-h)))); }
  .hero__title { font-size: clamp(66px, 10vw, 130px); }
  .hero__text { grid-column: 1 / span 7; }
  .hero__photo { grid-column: 8 / -1; }
  .room__name { grid-column: 1 / span 5; }
  .room__text { grid-column: 6 / span 7; }
  .room__photo { grid-column: 6 / span 7; justify-self: start; --ph: auto; height: auto; width: min(100%, 420px); margin-top: 22px; }
  .verdict__score { grid-column: 1 / -1; }
  .scores { grid-column: 1 / -1; align-self: start; }
  .quote--a { grid-column: 1 / span 9; }
  .quote--b { grid-column: 7 / span 6; margin-top: 0; }
  .quote--c { grid-column: 1 / span 6; }
  .quote--d { grid-column: 8 / span 5; }
  .form { grid-column: 1 / -1; margin-top: 56px; }
  .ask__lead { grid-column: 1 / -1; }
}

/* Narrow tablet: the phone button and hero already carry the quote call to action */
@media (min-width: 801px) and (max-width: 900px) {
  .bar__nav a[href="#quote"]:not(.bar__phone) { display: none; }
  .bar__phone-label { display: none; }
}

/* ───────────── Mobile ───────────── */
@media (max-width: 800px) {
  :root { --bar-h: 62px; }
  body { font-size: 16.5px; }

  .mark { font-size: 20px; }
  .bar { gap: 10px; }
  .bar__phone { margin-left: auto; padding: 9px 14px; }
  .bar__phone-num { display: none; }
  .bar__phone-label { opacity: 1; }
  .bar__menu {
    display: inline-flex; align-items: center;
    padding: 9px 4px; background: none; border: 0;
    font: 600 15.5px var(--sans); color: inherit; cursor: pointer;
  }
  .bar__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 4px var(--edge) 28px;
    background: var(--plaster); box-shadow: 0 1px 0 var(--line);
  }
  .bar[data-open] .bar__nav { display: flex; }
  .bar__nav a:not(.bar__phone) { padding: 14px 0; font: 700 32px/1.1 var(--serif); letter-spacing: -.02em; border-bottom: 1px solid var(--line); background: none; }
  .bar__phone--in-menu { display: inline-flex; justify-content: center; align-self: stretch; margin: 22px 0 0; padding: 16px; font-size: 18px; }
  .bar__nav .bar__phone--in-menu:hover { background: var(--damson); color: var(--plaster); }

  /* Phone hero: the photograph comes first and the words sit on it, over a damson fade.
     --clear is how much of the picture is left untouched at the top. */
  .hero {
    --clear: clamp(220px, 38svh, 380px);
    --img-h: calc(var(--clear) + 270px);
    position: relative; display: block; min-height: 0; padding: 0;
    background: repeating-linear-gradient(90deg, transparent 0 var(--w), rgb(228 220 217 / .035) var(--w) calc(var(--w) * 2)), var(--damson);
    color: var(--on-dark);
  }
  .hero__photo { position: absolute; inset: 0 0 auto 0; z-index: 0; height: var(--img-h); margin: 0; }
  .hero__caption { display: none; }
  .hero__text {
    position: relative; z-index: 1;
    justify-content: flex-end; gap: 14px;
    padding: var(--clear) var(--edge) 32px;
    background: linear-gradient(to bottom,
      transparent calc(var(--clear) - 70px),
      rgb(42 21 39 / .6) var(--clear),
      rgb(42 21 39 / .9) calc(var(--clear) + 110px),
      var(--damson) var(--img-h));
  }
  .hero__place { color: var(--sandstone); }
  .hero__title { font-size: min(16.8vw, 104px); line-height: .92; color: var(--plaster); }
  .hero__title em { color: var(--sandstone); }
  .hero__lede { max-width: none; font-size: 17px; color: var(--on-dark); }
  .hero__actions { display: grid; gap: 6px; justify-items: start; margin-top: 22px; }
  .hero__actions .btn { width: 100%; background: var(--plaster); color: var(--damson); }
  .hero__actions .btn:hover { background: var(--sandstone); }
  .hero__actions .textlink { padding: 12px 0; text-decoration-color: var(--sandstone); }
  .hero__actions .textlink:hover { color: var(--sandstone); }
  .hero__trust { margin-top: 10px; color: var(--on-dark-soft); }
  .hero__trust strong { color: var(--on-dark); }
  .hero__trust a { text-decoration-color: rgb(228 220 217 / .35); }
  .hero__trust a:hover { color: var(--sandstone); }
  .paintcard { top: 14px; right: var(--edge); left: auto; bottom: auto; width: 128px; padding: 8px 8px 9px; }
  .paintcard__title { margin-bottom: 7px; font-size: 12.5px; }
  .paintcard li { padding: 5px 7px; font-size: 11.5px; }

  .name { display: block; }
  .name { display: flex; flex-direction: column; }
  .name__photo { order: 1; margin: 28px 0 0; max-width: none; }  /* the picture comes straight after the heading */
  .name__photo img { aspect-ratio: 4 / 3.3; object-position: 50% 62%; }
  .name__body { order: 2; margin-top: 30px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
  .facts dd { margin: 0; font-size: 17px; text-align: right; }

  .tour__head { margin-bottom: 28px; }
  .room { display: block; padding: 24px 0 30px; }
  .room__name { font-size: 38px; }
  .room__text { margin-top: 12px; padding-top: 0; }
  .room__photo { --ph: auto; height: auto; width: auto; margin-top: 20px; justify-self: stretch; }
  .room__photo--wide { aspect-ratio: 16 / 10; }
  .room__photo--tall { aspect-ratio: 4 / 4.2; }
  .room__photo--tall img { object-position: 50% 55%; }

  .work__head { margin-bottom: 28px; }
  /* phone: landscapes run full width, portraits pair up, so nothing is left alone in a row */
  .hang { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .hang__row { display: contents; }
  .hang__item--l { grid-column: 1 / -1; }
  .hang__row:nth-child(3) .hang__item:nth-child(1) { order: 1; }                    /* the arbour follows the paired portraits */
  .hang__row:nth-child(3) .hang__item:nth-child(3) { order: 2; grid-column: 1 / -1; } /* the walled garden closes, full width */
  .hang figcaption { font-size: 13.5px; }

  .under { display: block; }
  .under__photo { max-width: 300px; margin-bottom: 40px; }
  .under__story { font-size: 25px; }

  .verdict { display: block; }
  .verdict__score { margin-bottom: 40px; }
  .scores { margin-bottom: 64px; }
  .score { grid-template-columns: 1fr 3.2ch; row-gap: 6px; }
  .score__rule { grid-column: 1 / -1; grid-row: 2; }
  .quotes { display: grid; grid-template-columns: 1fr; row-gap: 44px; padding-left: .7em; }
  .quote--a, .quote--b, .quote--c, .quote--d { grid-column: 1 / -1; margin-top: 0; }
  .quote--a blockquote p { font-size: 32px; }

  .ask { display: block; }
  .form { margin-top: 48px; }
  .btn--solid { justify-self: stretch; }

  .foot__col { grid-column: 1 / -1; }
}

/* Narrow phones: keep the whole header on one line */
@media (max-width: 379px) {
  .mark { font-size: 18px; }
  .bar { gap: 8px; }
  .bar > .bar__phone { padding: 8px 11px; }
  .bar__menu { padding-inline: 0; }
}
@media (max-width: 339px) {
  .bar > .bar__phone { display: none; }   /* the same call button sits at the foot of the menu */
}

/* Short landscape phones: don't spend the whole first screen on the photograph */
@media (max-width: 800px) and (max-height: 520px) {
  .hero { --clear: 110px; }
  .hero__title { font-size: min(11vw, 76px); }
}

/* Phone: comfortable thumb-sized targets (44px) */
@media (max-width: 800px) {
  .mark { padding: 12px 0; }
  .bar__menu { min-height: 44px; padding: 9px 2px; }
  .textlink { display: inline-block; padding-block: 10px; }
  .pick span { padding: 13px 14px; }
  .ask__links { gap: 0; }
  .ask__links a { display: inline-block; padding: 11px 0; }
  .foot__col ul { gap: 0; }
  .foot__col a { display: inline-block; padding: 11px 0; }
}
