@charset "utf-8";
/* ==========================================================================
   JAM Bespoke — one stylesheet, no JavaScript anywhere on the site.

   Motion is CSS only. Load-in keyframes run everywhere; scroll-driven reveals
   and the solid-on-scroll header switch on where the browser supports them. Everything else gets the same page, still.
   Every animation is skipped for visitors who ask for reduced motion.

   Order: fonts → tokens → reset → elements → layout → header → components →
   motion. Media queries sit at the end of the component they belong to.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Fonts */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-subset.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-stretch: 100% 112%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-subset.woff2") format("woff2-variations");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* 0 = transparent header, 1 = solid. Scroll-driven on the home page only. */
@property --hdr {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

/* -------------------------------------------------------------- 2. Tokens */
:root {
  --ink: #141412;
  --ink-soft: #3a3935;
  --paper: #ffffff;
  --bone: #f6f3ed;
  --stone: #e9e4da;
  --stone-deep: #d6cfc1;
  --green: #1e3028;
  --green-lift: #2b4439;
  --green-950: #131d18;
  --brass: #b08a4f;
  --brass-deep: #87672f;
  --brass-light: #d9c095;
  --muted: #5c5a54;
  --on-dark: #ede9e0;
  --on-dark-muted: #aeb6ae;
  --line-dark: rgb(237 233 224 / 0.14);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.94rem, 0.92rem + 0.1vw, 1rem);
  --step-0: clamp(1.13rem, 1.09rem + 0.2vw, 1.25rem);
  --step-1: clamp(1.41rem, 1.33rem + 0.4vw, 1.56rem);
  --step-2: clamp(1.76rem, 1.6rem + 0.8vw, 2.44rem);
  --step-3: clamp(2.2rem, 1.9rem + 1.5vw, 3.05rem);
  --step-4: clamp(2.75rem, 2.2rem + 2.8vw, 4.77rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1440px;
  --measure: 66ch;

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;
  --s-8: 10rem;

  --header-h: 76px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* a steel rule: a long tick every 40 px, a short one every 8 px */
  --ruler:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 40px) 0 0 / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px) 0 0 / 100% 6px no-repeat;

  color-scheme: light;
  interpolate-size: allow-keywords;
}

@media (min-width: 64rem) {
  :root { --header-h: 92px; }
}

/* --------------------------------------------------------------- 3. Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol, fieldset {
  margin: 0;
  padding: 0;
}

ul[class], ol[class] { list-style: none; }

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

table { border-collapse: collapse; }

/* ------------------------------------------------------------ 4. Elements */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.62;
  font-synthesis-weight: none;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol, dl, blockquote, table, figure { max-width: var(--measure); }

p + p, p + ul, p + ol, ul + p, ol + p, p + blockquote { margin-top: var(--s-2); }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--green-lift); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

strong { font-weight: 600; }

small { font-size: var(--step--1); }

hr {
  border: 0;
  border-top: 1px solid var(--stone-deep);
  margin: var(--s-5) 0;
}

::selection { background: var(--brass-light); color: var(--ink); }
html { scrollbar-color: var(--stone-deep) var(--bone); }
input, textarea { caret-color: var(--brass-deep); }

/* -------------------------------------------------------------- 5. Layout */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-3);
}

.section { padding-block: var(--s-6); }
.section--tight { padding-block: var(--s-5); }
.section--stone { background: var(--bone); }
.section--dark { background: var(--green-950); color: var(--on-dark); }
.section:first-of-type { padding-top: var(--s-5); }

@media (min-width: 64rem) {
  .section { padding-block: var(--s-7); }
  .section--tight { padding-block: var(--s-6); }
}

/* A project page is one story told in a few short sections, so they sit closer
   together than on the other pages: about a third less padding. */
.project .section { padding-block: var(--s-5); }
.project .section--tight { padding-block: var(--s-4); }
@media (min-width: 64rem) {
  .project .section { padding-block: var(--s-6); }
  .project .section--tight { padding-block: var(--s-5); }
}

.stack > * + * { margin-top: var(--s-3); }
.stack-tight > * + * { margin-top: var(--s-2); }

/* column helpers, mobile first: everything is full width until 64rem */
.col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-12,
.col-start-7, .col-start-8 { grid-column: 1 / -1; }

@media (min-width: 64rem) {
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-start-7 { grid-column: 7 / -1; }
  .col-start-8 { grid-column: 8 / -1; }
}

/* the opening band of every inner page: breadcrumbs and intro on bone,
   run edge to edge without a wrapper element */
.breadcrumbs:not(.breadcrumbs--hero),
main > section:first-child:not(.hero-home, .page-hero) {
  background: var(--bone);
  box-shadow: 0 0 0 100vmax var(--bone);
  clip-path: inset(0 -100vmax);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-2) var(--s-3);
  font-family: var(--sans);
}
.skip:focus {
  left: 0;
  color: var(--paper);
}

/* -------------------------------------------------------------- 6. Topbar */
.topbar {
  display: none;
  background: var(--green-950);
  color: var(--on-dark-muted);
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 0.8125rem;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  min-height: 38px;
  padding-inline: var(--gutter);
}
.topbar p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--s-3);
  margin: 0;
  max-width: none;
}
.topbar__facts span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.topbar__facts span + span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brass);
  transform: rotate(45deg);
}
.topbar a {
  color: var(--on-dark);
  text-decoration: none;
}
.topbar a:hover {
  color: var(--brass-light);
  text-decoration: underline;
}

@media (min-width: 64rem) {
  .topbar { display: block; }
}

/* -------------------------------------------------------------- 7. Header */
.site-header {
  --k: max(var(--hdr), var(--force, 0));
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  gap: var(--s-2);
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  background-color: rgb(255 255 255 / var(--k));
  color: color-mix(in srgb, var(--ink) calc(var(--k) * 100%), #ffffff);
  border-bottom: 1px solid rgb(214 207 193 / var(--k));
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: auto;
}
.logo img {
  height: 52px;
  width: auto;
}
.site-header .logo img { filter: invert(calc(1 - var(--k))); }

.tel {
  order: 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 44px;
  min-height: 44px;
  font-family: var(--sans);
  font-weight: 500;
  font-stretch: 100%;
  font-size: var(--step--1);
  text-decoration: none;
  white-space: nowrap;
}
.tel:hover { color: inherit; text-decoration: underline; }
.tel svg { width: 18px; height: 18px; flex: none; }
.tel__num { display: none; }

.site-header .header__cta { display: none; }

/* mobile: a burger that opens a full-screen menu. The <details> only holds the
   open/closed state; the <nav> is its sibling, so nothing depends on forcing
   a closed <details> to show its content. */
.menu-toggle {
  order: 3;
  align-self: center;
}
.menu-toggle > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding-inline: 0.25rem;
  font-family: var(--sans);
  font-weight: 500;
  font-stretch: 100%;
  font-size: var(--step--1);
  user-select: none;
}
.menu-toggle > summary::-webkit-details-marker { display: none; }

.burger {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 12px;
}
.burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.burger span:first-child { top: 0; }
.burger span:last-child { top: 10.5px; }
.menu-toggle[open] .burger span { top: 5.25px; }
.menu-toggle[open] .burger span:first-child { transform: rotate(45deg); }
.menu-toggle[open] .burger span:last-child { transform: rotate(-45deg); }
.menu-toggle .when-open,
.menu-toggle[open] .when-closed { display: none; }
.menu-toggle[open] .when-open { display: inline; }

.nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 55;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-4) var(--gutter) var(--s-6);
  background: var(--green-950);
  color: var(--on-dark);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}
.nav__list > li { border-bottom: 1px solid var(--line-dark); }
.nav__list > li > a,
.sub-toggle > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 44px;
  padding-block: 0.8rem;
  font-family: var(--sans);
  font-weight: 600;
  font-stretch: 112%;
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}
.nav a:hover { color: var(--brass-light); }
.nav__list > li > a[aria-current="page"] { color: var(--brass-light); }

.sub-toggle > summary {
  list-style: none;
  cursor: pointer;
}
.sub-toggle > summary::-webkit-details-marker { display: none; }
.sub-toggle > summary::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.35s var(--ease-out);
}
.sub-toggle[open] > summary::after { transform: translateY(25%) rotate(-135deg); }

.mega { display: none; }
.sub-toggle[open] ~ .mega { display: block; }
.mega__list { padding-bottom: var(--s-3); }
.mega__list a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-block: 0.55rem;
  color: var(--on-dark);
  text-decoration: none;
}
.mega__n {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--brass-light);
}
.mega__t {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--step-0);
}
.mega__list a[aria-current="page"] .mega__t { color: var(--brass-light); }
.mega__blurb,
.mega__feature { display: none; }

.nav__extra {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-5);
  font-family: var(--sans);
  font-size: var(--step-0);
}
.nav__extra a { color: var(--on-dark); text-decoration: none; }
.nav__extra .btn { justify-self: start; margin-top: var(--s-2); color: var(--ink); }
.nav__extra .btn:is(:hover, :focus-visible) { color: var(--ink); }

@media (max-width: 63.99rem) {
  .menu-toggle[open] ~ .nav { display: block; }
  html:has(.menu-toggle[open]) { overflow: hidden; }
  .site-header:has(.menu-toggle[open]) { --force: 1; }
}

/* desktop: centred links with a drawn underline, Services opens a panel */
@media (min-width: 64rem) {
  .logo { margin-right: 0; }
  .logo img { height: 60px; }
  .menu-toggle,
  .nav__extra { display: none; }

  .nav {
    order: 1;
    position: static;
    display: flex;
    justify-content: center;
    flex: 1 1 auto;
    padding: 0;
    overflow: visible;
    background: none;
    color: inherit;
  }
  .nav__list {
    display: flex;
    align-items: stretch;
    gap: clamp(1.1rem, 2.1vw, 2.4rem);
  }
  .nav__list > li {
    display: flex;
    align-items: center;
    border: 0;
  }
  .nav__list > li > a,
  .sub-toggle > summary {
    display: inline-flex;
    min-height: 0;
    padding-block: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 500;
    font-stretch: 100%;
    letter-spacing: 0.005em;
    background: linear-gradient(var(--brass), var(--brass)) no-repeat 0 100% / 0 1.5px;
    transition: background-size 0.45s var(--ease-out);
  }
  .nav__list > li > a:hover,
  .nav__list > li > a[aria-current="page"],
  .has-mega:hover .sub-toggle > summary,
  .has-mega:focus-within .sub-toggle > summary,
  .has-mega.is-current .sub-toggle > summary {
    color: inherit;
    background-size: 100% 1.5px;
  }
  .sub-toggle > summary::after { width: 0.42em; height: 0.42em; }
  .has-mega:hover .sub-toggle > summary::after,
  .has-mega:focus-within .sub-toggle > summary::after {
    transform: translateY(25%) rotate(-135deg);
  }

  .tel { order: 2; }
  .tel__num { display: inline; }
  .site-header .header__cta {
    order: 3;
    display: inline-flex;
    align-self: center;
    padding: 0.75rem 1.3rem;
  }

  /* the panel hangs from the header itself, full width */
  .mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--s-5) var(--gutter);
    background: var(--paper);
    color: var(--ink);
    border-top: 1px solid var(--stone-deep);
    border-bottom: 1px solid var(--stone-deep);
    box-shadow: 0 40px 60px -40px rgb(19 29 24 / 0.35);
    opacity: 0;
    translate: 0 -8px;
    transition:
      opacity 0.25s var(--ease),
      translate 0.35s var(--ease-out),
      display 0.35s allow-discrete;
  }
  .has-mega:hover > .mega,
  .has-mega:focus-within > .mega,
  .sub-toggle[open] ~ .mega {
    display: block;
    opacity: 1;
    translate: 0 0;
  }
  @starting-style {
    .has-mega:hover > .mega,
    .has-mega:focus-within > .mega,
    .sub-toggle[open] ~ .mega {
      opacity: 0;
      translate: 0 -8px;
    }
  }
  .mega__inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.1fr);
    gap: var(--s-5);
    max-width: var(--max);
    margin-inline: auto;
  }
  .mega__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 var(--s-4);
    padding: 0;
  }
  .mega__list li { border-top: 1px solid var(--stone); }
  .mega__list a {
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    gap: 0.2rem 0;
    padding: 1rem 0.5rem 1.1rem 0;
    color: var(--ink);
  }
  .mega__n {
    grid-row: span 2;
    padding-top: 0.2rem;
    color: var(--brass-deep);
  }
  .mega__t { font-weight: 600; font-size: 1rem; }
  .mega__blurb {
    display: block;
    font-family: var(--sans);
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--muted);
  }
  .mega__list a:hover { color: var(--ink); }
  .mega__list a:hover .mega__t,
  .mega__list a[aria-current="page"] .mega__t {
    color: var(--green-lift);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .mega__feature {
    display: block;
    color: var(--ink);
    text-decoration: none;
  }
  .mega__feature:hover { color: var(--ink); }
  .mega__img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--stone);
  }
  .mega__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out);
  }
  .mega__feature:hover img { transform: scale(1.05); }
  .mega__kicker {
    display: block;
    margin-top: var(--s-2);
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--brass-deep);
  }
  .mega__feature .mega__t {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.15rem;
    font-stretch: 112%;
    letter-spacing: -0.01em;
  }

  .site-header:has(.has-mega:hover, .has-mega:focus-within, .sub-toggle[open]) { --force: 1; }
}

/* with a mouse, the panel opens on hover — clicking the label does nothing,
   so it can never get stuck open. Keyboard and touch still toggle it. */
@media (min-width: 64rem) and (hover: hover) and (pointer: fine) {
  .sub-toggle > summary { pointer-events: none; }
}

/* ------------------------------------------------------------- 8. Buttons */
/* The hover fill is a gradient painted by the button itself. A transformed
   pseudo-element would put a composited layer under the label and make the
   text flicker as the sweep starts and stops. background-position snaps only
   after a sweep has finished, so the fill enters from the left, leaves to the
   right, and a hover cut short runs back from wherever the fill has got to. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.95rem 1.7rem;
  font-family: var(--sans);
  font-weight: 600;
  font-stretch: 100%;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background-color: var(--fill, transparent);
  background-image: linear-gradient(var(--sweep, var(--brass)), var(--sweep, var(--brass)));
  background-repeat: no-repeat;
  background-origin: border-box;
  background-position: 0 0;
  background-size: 0 100%;
  /* the label shares the fill's curve, so it changes colour as the fill
     crosses it */
  transition:
    background-size 0.55s var(--ease-out),
    background-position 0s 0.55s,
    color 0.55s var(--ease-out),
    border-color 0.55s var(--ease-out);
}
.btn:hover,
.btn:focus-visible {
  background-position: 100% 0;
  background-size: 100% 100%;
}
.btn--primary {
  --fill: var(--green);
  --sweep: var(--brass);
  color: var(--paper);
}
.btn--primary:is(:hover, :focus-visible) { color: var(--ink); }
.btn--ghost {
  --sweep: var(--ink);
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:is(:hover, :focus-visible) { color: var(--paper); }
.btn--paper {
  --fill: var(--paper);
  --sweep: var(--brass);
  color: var(--ink);
}
.btn--paper:is(:hover, :focus-visible) { color: var(--ink); }
.btn--light {
  --sweep: var(--paper);
  border-color: rgb(255 255 255 / 0.7);
  color: var(--paper);
}
.btn--light:is(:hover, :focus-visible) { color: var(--ink); border-color: var(--paper); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}

/* ------------------------------------------------- 9. Section furniture */
/* The policy pages are documents that get read and quoted section by
   section, so their sections carry numbers like the sheets of a drawing
   set. Everywhere else a heading stands on its own. */
.legal main { counter-reset: sec; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-stretch: 100%;
  font-size: var(--step--1);
  color: var(--muted);
}

.section-head {
  max-width: 60rem;
  margin-bottom: var(--s-5);
}
.section-head h2 {
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.legal .section-head h2 {
  font-size: var(--step-3);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.legal .section-head h2::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  content: counter(sec, decimal-leading-zero) / "";
  display: block;
  margin-bottom: var(--s-2);
  font-size: 0.8125rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.06em;
  color: var(--brass-deep);
}
.section-head h2::after,
.rule::after {
  content: "";
  display: block;
  width: 4rem;
  height: 1px;
  margin-top: var(--s-3);
  background: var(--brass);
  transform-origin: left;
}
.section-head p {
  max-width: 60ch;
  margin-top: var(--s-3);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--muted);
}
.section--dark .section-head h2::before { color: var(--brass-light); }
.section--dark .section-head p { color: var(--on-dark-muted); }
.section--dark a { color: var(--on-dark); }
.section--dark a:hover { color: var(--brass-light); }

.lead {
  font-size: var(--step-1);
  line-height: 1.45;
}

.meta {
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: var(--step--1);
  color: var(--muted);
}

.breadcrumbs {
  padding-top: var(--s-3);
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  max-width: none;
  list-style: none;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--stone-deep);
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* --------------------------------------------------------- 10. Home hero */
.hero-home {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: max(560px, 100svh);
  overflow: hidden;
  background: var(--green-950);
  color: var(--paper);
}
.hero-home .cover {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}
.hero-home .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The opening photograph can be a slideshow. The first slide stays opaque and
   the rest take their turn above it: each fades in over the picture below,
   holds while the next one fades in on top, then drops out of sight. Because
   something opaque is always underneath, no transition ever thins out to the
   dark backing. The last slide is the one that fades away again, which brings
   the first back and closes the loop. The percentages in the keyframes are
   written for three slides. */
.hero-home { --hero-slot: 7s; --hero-fade: 1.8s; --hero-slides: 3; }
.cover--slide img { opacity: 0; }
.cover--slide:first-of-type img { opacity: 1; }
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(12 18 15 / 0.55) 0%, rgb(12 18 15 / 0) 26%),
    linear-gradient(0deg, rgb(12 18 15 / 0.85) 0%, rgb(12 18 15 / 0.4) 42%, rgb(12 18 15 / 0) 70%),
    linear-gradient(90deg, rgb(12 18 15 / 0.5) 0%, rgb(12 18 15 / 0) 60%);
}
@media (min-width: 64rem) {
  .hero-home::before {
    background:
      radial-gradient(ellipse 80% 78% at 30% 56%, rgb(12 18 15 / 0.74) 0%, rgb(12 18 15 / 0.54) 52%, rgb(12 18 15 / 0) 100%),
      linear-gradient(180deg, rgb(12 18 15 / 0.55) 0%, rgb(12 18 15 / 0) 26%),
      linear-gradient(0deg, rgb(12 18 15 / 0.85) 0%, rgb(12 18 15 / 0.4) 42%, rgb(12 18 15 / 0) 70%),
      linear-gradient(90deg, rgb(12 18 15 / 0.5) 0%, rgb(12 18 15 / 0) 60%);
  }
}
.hero-home__content {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: calc(var(--header-h) + var(--s-6)) var(--gutter) var(--s-6);
}
.hero-home__kicker {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: var(--s-3);
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.hero-home__kicker::before {
  content: "";
  flex: none;
  width: 2.5rem;
  height: 1px;
  background: var(--brass-light);
  transform: translateY(-0.3em);
}
.hero-home__kicker,
.hero-home h1 { text-shadow: 0 2px 24px rgb(12 18 15 / 0.5); }
.hero-home h1 {
  max-width: 18em;
  font-size: calc(clamp(2.2rem, 1rem + 4.6vw, 5.2rem) - 2pt);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.line > span { display: inline-block; }
.hero-home .lead {
  max-width: 44ch;
  margin-top: var(--s-4);
  color: rgb(255 255 255 / 0.86);
}
.hero-home .btn-row { margin-top: var(--s-4); }
.hero-home__cue { display: none; }

@media (min-width: 64rem) {
  .hero-home { min-height: max(640px, calc(100svh - 38px)); }
  .hero-home__content { padding-bottom: var(--s-7); }
  .hero-home__cue {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 1px;
    height: 64px;
    background: rgb(255 255 255 / 0.22);
  }
  .hero-home__cue::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brass-light);
    transform: scaleY(0);
  }
}

/* ---------------------------------------------------- 10b. Inner page hero */
/* Every inner page opens like the home page: a photograph (or a plain dark
   band) with the transparent menu over it. */
:root { --page-hero-h: clamp(460px, 72svh, 780px); }
@media (min-width: 64rem) {
  :root { --page-hero-h: clamp(520px, calc(72svh - 38px), 780px); }
}
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: var(--page-hero-h);
  overflow: hidden;
  background: var(--green-950);
  color: var(--paper);
}
.page-hero .cover {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}
.page-hero .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(12 18 15 / 0.6) 0%, rgb(12 18 15 / 0) 30%),
    linear-gradient(0deg, rgb(12 18 15 / 0.86) 0%, rgb(12 18 15 / 0.45) 45%, rgb(12 18 15 / 0.08) 78%),
    linear-gradient(90deg, rgb(12 18 15 / 0.45) 0%, rgb(12 18 15 / 0) 65%);
}
.page-hero--plain { min-height: calc(var(--header-h) + 20rem); }
.page-hero--plain::before {
  inset: auto 0 0 0;
  height: 12px;
  color: rgb(217 192 149 / 0.35);
  background: var(--ruler);
}
.page-hero__content {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--s-5) var(--gutter) var(--s-6);
}
.page-hero h1 {
  max-width: 18ch;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.page-hero .lead {
  max-width: 52ch;
  margin-top: var(--s-3);
  color: rgb(255 255 255 / 0.86);
}
.page-hero__content > p:not(.lead):not(.page-hero__note) {
  max-width: 52ch;
  margin-top: var(--s-2);
  color: rgb(255 255 255 / 0.8);
}
.page-hero a:not(.btn) { color: var(--paper); }
.page-hero a:not(.btn):hover { color: var(--brass-light); }
.page-hero .btn-row { margin-top: var(--s-4); }
.page-hero__note {
  margin-top: var(--s-2);
  font-family: var(--sans);
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.72);
}
.breadcrumbs--hero {
  margin-bottom: var(--s-4);
  padding: 0;
  color: rgb(255 255 255 / 0.72);
}
.breadcrumbs--hero li + li::before { color: rgb(255 255 255 / 0.4); }
.page-hero .breadcrumbs--hero a { color: var(--paper); }
@media (min-width: 64rem) {
  .page-hero__content { padding-bottom: var(--s-7); }
}
/* the menu sits over the opening only where it turns solid on scroll */
@supports (animation-timeline: scroll()) {
  .overlay-header .page-hero__content { padding-top: calc(var(--header-h) + var(--s-5)); }
}

/* -------------------------------------------------------- 11. Page hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}
.hero picture { display: block; }
.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (min-width: 48rem) {
  .hero img { aspect-ratio: 21 / 9; }
}

/* --------------------------------------------------------- 12. Proof bar */
.proof {
  position: relative;
  background: var(--green-950);
  color: var(--on-dark);
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 0.9375rem;
}
.proof::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  color: rgb(217 192 149 / 0.45);
  background: var(--ruler);
  transform-origin: left;
}
.proof ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-4) var(--gutter) var(--s-3);
  list-style: none;
}
.proof li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.proof li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  transform: translateY(-0.15em) rotate(45deg);
  background: var(--brass);
}
@media (min-width: 48rem) {
  .proof ul { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .proof ul {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }
}

/* ------------------------------------------------------------ 13. Figures */
figure { margin: 0; }

.shot {
  max-width: none;
  margin: 0;
}
.shot__frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--stone);
}
.shot--portrait .shot__frame { aspect-ratio: 2 / 3; }
.shot--square .shot__frame { aspect-ratio: 1 / 1; }
.shot--free .shot__frame { aspect-ratio: auto; }
.shot__frame > picture,
.tile__img > picture,
.mega__img > picture {
  display: block;
  width: 100%;
  height: 100%;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
a.shot__frame { cursor: zoom-in; }
a.shot__frame:hover img { transform: scale(1.045); }
/* an "open" square slides in at the top right of every photo you can enlarge */
a.shot__frame::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat,
    var(--paper);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease-out);
}
a.shot__frame:hover::after,
a.shot__frame:focus-visible::after {
  opacity: 1;
  transform: none;
}
.shot figcaption {
  max-width: 46ch;
  margin-top: 0.65rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--muted);
}

/* ----------------------------------------------------------- 14. Galleries */
/* A mosaic on a fixed row unit: a landscape photo fills one cell (3:2), a
   portrait two cells high, a feature photo two by two. The row height is taken
   from the column width, so every edge in the grid lines up. The generator
   places every tile exactly for each width (--m phones, --t tablets and up,
   --w wide screens; --ct and --cw are the column counts), so the grid always
   ends as a clean rectangle with no holes in the last row. */
.gallery-wrap { container-type: inline-size; }
.gallery {
  --cols: 2;
  --gap: 0.5rem;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: 12rem;
  grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) / 1.5);
  grid-auto-flow: row dense;
  gap: var(--gap);
  max-width: none;
}
@media (min-width: 48rem) {
  .gallery { --cols: var(--ct, 3); --gap: 0.875rem; }
}
@media (min-width: 90rem) {
  .gallery { --cols: var(--cw, var(--ct, 3)); }
}
/* a gallery laid out one project per row: smaller cells, closer together */
.gallery.gallery--rows { --gap: 0.375rem; }
@media (min-width: 48rem) {
  .gallery.gallery--rows { --gap: 0.5rem; }
}
/* close-up details in small square cells: three to a row, six on a wide screen */
.gallery.gallery--strip {
  --gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
}
@media (min-width: 64rem) {
  .gallery.gallery--strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.gallery--strip .shot { aspect-ratio: 1; }
.gallery .shot { position: relative; min-width: 0; grid-area: var(--m, auto); }
@media (min-width: 48rem) {
  .gallery .shot { grid-area: var(--t, var(--m, auto)); }
}
@media (min-width: 90rem) {
  .gallery .shot { grid-area: var(--w, var(--t, var(--m, auto))); }
}
.gallery .shot__frame { height: 100%; aspect-ratio: auto; }
/* two or three photos: one row, every photo at its own shape, equal heights */
.gallery--row {
  display: flex;
  align-items: flex-start;
}
.gallery--row .shot { flex: var(--ar) 1 0; }
.gallery--row .shot__frame { height: auto; aspect-ratio: var(--ar); }
.gallery__more { max-width: none; margin-top: var(--s-4); }

/* ------------------------------------------------ slideshow (:target, no JS) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  grid-template-rows: auto minmax(0, 1fr);
  color: var(--on-dark);
  background: rgb(12 18 15 / 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox:target { display: grid; }
/* the photos either side of the open one are laid out but invisible, so the
   browser has already fetched them when you press next or previous */
.lightbox:target + .lightbox,
.lightbox:has(+ .lightbox:target) {
  display: grid;
  visibility: hidden;
}
html:has(.lightbox:target) { overflow: hidden; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: zoom-out;
}
.lightbox__bar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--gutter);
  font-family: var(--sans);
  font-size: 0.875rem;
  pointer-events: none;
}
.lightbox__bar > * { pointer-events: auto; }
.lightbox__count {
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--brass-light);
}
.lightbox__close {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--paper);
  border: 1px solid rgb(255 255 255 / 0.5);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__close::before {
  content: "";
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transform: rotate(45deg);
}
.lightbox__close:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}
.lightbox__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0 var(--gutter) 6.5rem;
  pointer-events: none;
}
.lightbox__img {
  display: block;
  pointer-events: auto;
}
.lightbox__img picture { display: block; }
.lightbox img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 2 * var(--gutter));
  max-height: calc(100svh - 15rem);
  object-fit: contain;
  background: rgb(255 255 255 / 0.04);
}
.lightbox__stage figcaption {
  max-width: 60ch;
  margin-top: var(--s-2);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--on-dark);
  pointer-events: auto;
}
.lightbox__nav {
  position: absolute;
  bottom: var(--s-3);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--paper);
  background: rgb(12 18 15 / 0.4);
  border: 1px solid rgb(255 255 255 / 0.45);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
.lightbox__nav:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}
.lightbox a:focus-visible { outline-color: var(--brass-light); }

@media (min-width: 48rem) {
  .lightbox__stage { padding: 0 calc(var(--gutter) + 76px) var(--s-4); }
  .lightbox img {
    max-width: calc(100vw - 2 * (var(--gutter) + 76px));
    max-height: calc(100svh - 11rem);
  }
  .lightbox__nav {
    top: 50%;
    bottom: auto;
    width: 56px;
    height: 56px;
    margin-top: -28px;
  }
}

/* --------------------------------------------------------------- 15. Tiles */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5) var(--s-3);
  max-width: none;
}
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tiles { grid-template-columns: repeat(3, 1fr); } }

.tile { max-width: none; }
.tile a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.tile__img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
}
.tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
/* a brass bar draws along the bottom of the image on hover */
.tile__img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
/* services we have no photographs for yet get a drawn sheet: deep green,
   edged with the steel rule, marked with the brass diamond */
.tile__img--blank {
  color: rgb(217 192 149 / 0.45);
  background: var(--ruler), var(--green-950);
}
.tile__img--blank::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--brass);
  transform: translate(-50%, -50%) rotate(45deg);
}
.tile h3 {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: var(--s-3);
  font-size: var(--step-1);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
/* the blurb reads as a line of copy, not a caption: the text face, a touch
   larger, and no single word left alone on the last line */
.tile p {
  max-width: 38ch;
  margin-top: 0.55rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.tile a:hover { color: inherit; }
.tile a:hover h3 { text-decoration-line: underline; }
.tile a:hover .tile__img img { transform: scale(1.06); }
.tile a:hover .tile__img::after { transform: scaleX(1); }

/* The full set of services opens on kitchens, first in the list, as a lead
   tile: two columns wide, and on a wide screen two rows tall, so the nine
   tiles fill four rows with no gaps. */
@media (min-width: 40rem) {
  .tiles--lead > .tile:first-child { grid-column: span 2; }
  .tiles--lead > .tile:first-child .tile__img { aspect-ratio: 16 / 9; }
}
@media (min-width: 64rem) {
  .tiles--lead > .tile:first-child { grid-row: span 2; }
  .tiles--lead > .tile:first-child a {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .tiles--lead > .tile:first-child .tile__img {
    flex: 1 1 auto;
    min-height: 22rem;
    aspect-ratio: auto;
  }
  .tiles--lead > .tile:first-child h3 { font-size: var(--step-3); }
  .tiles--lead > .tile:first-child p {
    max-width: 46ch;
    font-size: var(--step-0);
  }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 64rem) {
    .tiles--lead { row-gap: 0; }
    .tiles--lead > .tile,
    .tiles--lead > .tile > a,
    .tiles--lead > .tile:first-child > a {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
    }
    .tiles--lead > .tile > a,
    .tiles--lead > .tile:first-child > a { grid-row: 1 / -1; height: auto; }
    .tiles--lead > .tile p { margin-bottom: var(--s-5); }
    /* the lead tile covers two rows of tiles: its picture takes the first
       four tracks, its title and text the last two */
    .tiles--lead > .tile:first-child { grid-row: span 6; }
    .tiles--lead > .tile:first-child .tile__img {
      grid-row: 1 / 5;
      height: 100%;
      min-height: 0;
    }
    .tiles--lead > .tile:first-child h3 { grid-row: 5; }
    .tiles--lead > .tile:first-child p { grid-row: 6; }
  }
}

/* project cards */
.work {
  display: grid;
  gap: var(--s-3) var(--s-3);
  max-width: none;
}
.work__item {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-3);
}
.work__item > * { grid-column: 1 / -1; }
.work__item a { display: block; text-decoration: none; }
.work__media .tile__img { aspect-ratio: 3 / 2; }
.work__text::before {
  content: "";
  display: block;
  width: 4rem;
  height: 1px;
  margin-bottom: var(--s-3);
  background: var(--brass);
}
.work__item h3 { font-size: var(--step-3); }
.work__item h3 a {
  display: inline;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size 0.55s var(--ease-out);
}
.work__item .meta { margin-top: 0.6rem; }
.work__item .view {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: var(--s-3);
  font-family: var(--sans);
  font-size: var(--step--1);
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* a drawn arrow that steps forward when the card is hovered */
.work__item .view::after {
  content: "";
  flex: none;
  width: 1.5em;
  height: 0.85em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 16'%3E%3Cpath d='M0 8h26M19 1l7 7-7 7' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 16'%3E%3Cpath d='M0 8h26M19 1l7 7-7 7' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.45s var(--ease-out);
}
.work__item:hover .view::after,
.work__item .view:focus-visible::after { transform: translateX(0.35em); }
.work__item:hover h3 a { background-size: 100% 1px; }
.work__item:hover .tile__img img { transform: scale(1.04); }
.work__item:hover .tile__img::after { transform: scaleX(1); }

@media (min-width: 64rem) {
  /* every card reads the same way: photograph left, words right; the
     photograph takes two thirds of the row */
  .work__item .work__media { grid-column: 1 / 9; }
  .work__item .work__text {
    grid-column: 9 / -1;
    align-self: center;
    padding-left: 2.8rem;
  }
}

/* --------------------------------------------------------------- 16. Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5) var(--s-4);
  max-width: none;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  position: relative;
  counter-increment: step;
  padding-top: var(--s-4);
}
/* each stage starts on the steel rule that edges the plain page openings */
.steps li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  color: var(--stone-deep);
  background: var(--ruler);
}
/* the stage number in outline, the way the area names run in the marquee */
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s-2);
  font-family: var(--sans);
  font-weight: 600;
  font-stretch: 112%;
  font-size: clamp(3.4rem, 2.6rem + 2.6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--brass-deep);
}
.steps h3 { font-size: var(--step-1); }
.steps p {
  margin-top: var(--s-1);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}
.section--dark .steps li::after { color: rgb(217 192 149 / 0.35); }
.section--dark .steps li::before { -webkit-text-stroke-color: var(--brass-light); }
.section--dark .steps p { color: var(--on-dark-muted); }

/* Example costs on the pricing page: a photograph for each kind of joinery,
   then its three levels of specification as numbered cards */
.price-group + .price-group { margin-top: var(--s-6); }
.price-group__title { margin: 0 0 var(--s-3); font-size: var(--step-2); }
.price-group__title a { text-decoration: none; }
.price-group__title a:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
/* each level opens on its own photograph, then its number and figures */
.price-tiers li {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}
.price-tiers li::after { display: none; }
.price-tier__photo { order: -1; margin-bottom: var(--s-3); }
.price-tiers h4 {
  font-size: var(--step-1);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.steps .price-tier__rate {
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-weight: 600;
  font-stretch: 100%;
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-tier__rate span,
.price-tier__rate small {
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: 0;
  color: var(--muted);
}
.price-lines {
  margin-top: var(--s-3);
  border-top: 1px solid var(--stone-deep);
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.4;
}
.price-lines > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-2);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--stone);
}
.price-lines dt { color: var(--muted); }
.price-lines dd { margin: 0; text-align: right; white-space: nowrap; color: var(--ink); }
.price-lines > .price-lines__total {
  border-bottom: 0;
  border-top: 1px solid var(--ink-soft);
  margin-top: -1px;
}
.price-lines__total dt,
.price-lines__total dd { font-weight: 600; color: var(--ink); }
.price-note {
  margin-top: var(--s-5);
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* --------------------------------------------------------------- 17. Lists */
.ticks {
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 1.4rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--stone);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.7rem;
  height: 1px;
  background: var(--brass);
}

.linklist {
  padding: 0;
  list-style: none;
  columns: 1;
}
.linklist li {
  break-inside: avoid;
  border-bottom: 1px solid var(--stone-deep);
}
.linklist a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--sans);
  font-size: var(--step--1);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), color 0.2s var(--ease);
}
.linklist a:hover {
  transform: translateX(0.6rem);
  color: var(--green-lift);
}
@media (min-width: 48rem) { .linklist { columns: 2; column-gap: var(--s-4); } }
@media (min-width: 64rem) { .linklist { columns: 3; } }

/* ------------------------------------------------------------- 18. Marquee */
.marquee {
  overflow: hidden;
  padding-block: var(--s-4);
  background: var(--paper);
  border-block: 1px solid var(--stone-deep);
}
.marquee__track {
  display: flex;
  width: max-content;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding-right: 0.55em;
  font-family: var(--sans);
  font-weight: 600;
  font-stretch: 112%;
  font-size: calc(clamp(2.2rem, 1.2rem + 4vw, 5rem) - 2pt);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "";
  width: 0.2em;
  height: 0.2em;
  background: var(--brass);
  transform: rotate(45deg);
}
.marquee__track .o {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------------------------------------------------------------- 19. Facts */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  max-width: none;
  background: var(--bone);
  border-bottom: 1px solid var(--stone-deep);
  font-family: var(--sans);
}
.facts > div { padding: var(--s-3) var(--gutter); }
.facts > div + div { border-top: 1px solid var(--stone-deep); }
.facts dt { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--brass-deep); }
.facts dd { margin: 0.3rem 0 0; font-size: var(--step-0); line-height: 1.4; }
@media (min-width: 48rem) {
  .facts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .facts > div { padding: var(--s-4) var(--s-3); }
  .facts > div:first-child { padding-left: var(--gutter); }
  .facts > div + div { border-top: 0; border-left: 1px solid var(--stone-deep); }
}

/* --------------------------------------------------------------- 20. Table */
.table-scroll { overflow-x: auto; max-width: none; }
table {
  width: 100%;
  max-width: none;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
caption {
  padding-bottom: var(--s-2);
  text-align: left;
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--muted);
}
th, td {
  padding: 0.8rem 1rem 0.8rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--stone-deep);
}
th {
  font-family: var(--sans);
  font-weight: 600;
  font-stretch: 100%;
}
tbody th { font-weight: 500; }

/* ----------------------------------------------------------------- 21. FAQ */
.faq { max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--stone-deep); }
.faq details:first-child { border-top: 1px solid var(--stone-deep); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s-3) 3rem var(--s-3) 0;
  font-family: var(--sans);
  font-weight: 600;
  font-stretch: 100%;
  font-size: var(--step-0);
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--brass), var(--brass)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--brass), var(--brass)) center / 1.5px 14px no-repeat;
  transition: transform 0.4s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--green-lift); }
.faq details > div { padding-bottom: var(--s-3); }
/* smooth open/close where ::details-content and interpolate-size exist */
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* -------------------------------------------------------------- 22. Quotes */
blockquote {
  padding-left: var(--s-3);
  border-left: 1px solid var(--brass);
}
blockquote p { font-size: var(--step-1); line-height: 1.45; }
blockquote cite {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--sans);
  font-size: var(--step--1);
  font-style: normal;
  color: var(--muted);
}

/* ---------------------------------------------------------------- 23. Form */
/* The enquiry form sits on a pale panel so it reads as one object beside the
   contact details. Labels sit above the fields; short fields that belong
   together (email and phone, the two choices) share a row where there is room. */
.form {
  --field-line: var(--stone-deep);
  --field-error: #a3392b;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: var(--s-3);
  max-width: 44rem;
  padding: clamp(1.25rem, 0.6rem + 3vw, 2.75rem);
  background: var(--bone);
  border: 1px solid var(--stone);
}
@media (min-width: 40rem) {
  .form { grid-template-columns: 1fr 1fr; }
  .form > * { grid-column: 1 / -1; }
  .form > .field--half { grid-column: auto; }
}

.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.field .hint {
  display: block;
  margin: -0.2rem 0 0.55rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 0.95rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background-color: var(--paper);
  border: 1px solid var(--field-line);
  border-radius: 0;
  box-shadow: none;
  appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #b9b1a2; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(176 138 79 / 0.28);
  /* transparent, so Windows high contrast mode still draws a focus ring */
  outline: 2px solid transparent;
}
/* a field is only marked wrong after the visitor has been in it */
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--field-error); }
.field input:user-invalid:focus,
.field textarea:user-invalid:focus { box-shadow: 0 0 0 3px rgb(163 57 43 / 0.2); }

.field select {
  padding-right: 2.6rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23141412' stroke-width='1.4' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 11px 7px;
}
/* the empty "Please choose" option reads as a prompt, not an answer */
.field select:has(option[value=""]:checked) { color: var(--muted); }
.field select option { color: var(--ink); }
.field textarea { min-height: 10rem; resize: vertical; }

/* consent and the button close the form, below a hairline */
.field--check {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0.4rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--field-line);
}
.field--check input {
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin-top: 0.2rem;
  padding: 0;
  background: var(--paper);
  border: 1px solid #8f887b;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.field--check input::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' d='M1 5.2l3.4 3.3L11 1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}
.field--check input:checked { background: var(--green); border-color: var(--green); }
.field--check input:checked::after { opacity: 1; }
.field--check input:user-invalid { border-color: var(--field-error); }
.field--check label {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  margin-top: 1.75rem;
}
.form__actions .btn { min-width: 13rem; }
.form__actions .meta { flex: 1 1 14rem; font-size: 0.8125rem; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.req {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ------------------------------------------------------------ 24. CTA band */
.cta {
  position: relative;
  background: var(--green);
  color: var(--paper);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  color: rgb(217 192 149 / 0.4);
  background: var(--ruler);
  transform-origin: left;
}
.cta .wrap {
  display: grid;
  gap: var(--s-5);
  padding-block: var(--s-6);
}
.cta__kicker {
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--brass-light);
}
.cta h2 {
  max-width: 13ch;
  margin-top: var(--s-2);
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.cta__text p:last-child {
  max-width: 46ch;
  margin-top: var(--s-3);
  color: rgb(255 255 255 / 0.78);
}
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}
.cta a.cta__tel {
  font-family: var(--sans);
  font-weight: 600;
  font-stretch: 112%;
  font-size: var(--step-2);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--paper);
  text-decoration: none;
  background: linear-gradient(var(--brass-light), var(--brass-light)) no-repeat 0 100% / 0 1px;
  padding-bottom: 0.3rem;
  transition: background-size 0.5s var(--ease-out);
}
.cta a.cta__tel:hover { background-size: 100% 1px; color: var(--paper); }
.cta a.cta__mail {
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--on-dark-muted);
}
.cta a.cta__mail:hover { color: var(--paper); }
.cta a:focus-visible { outline-color: var(--brass-light); }

@media (min-width: 64rem) {
  .cta .wrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    padding-block: var(--s-7);
  }
  .cta__actions { align-items: flex-end; }
}

/* ------------------------------------------------------------- 25. Footer */
.site-footer {
  padding-block: var(--s-6) var(--s-4);
  background: var(--green-950);
  color: var(--on-dark-muted);
  font-family: var(--sans);
  font-size: 0.9375rem;
}
.site-footer .grid { gap: var(--s-5) var(--s-3); }
.site-footer h2 {
  margin-bottom: var(--s-3);
  font-size: 0.8125rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.06em;
  color: var(--brass-light);
}
.site-footer ul {
  max-width: none;
  padding: 0;
  list-style: none;
}
.site-footer li + li { margin-top: 0.4rem; }
.site-footer a {
  display: inline-block;
  padding-block: 0.15rem;
  color: var(--on-dark);
  text-decoration: none;
  background: linear-gradient(var(--brass-light), var(--brass-light)) no-repeat 0 100% / 0 1px;
  transition: background-size 0.4s var(--ease-out), color 0.2s var(--ease);
}
.site-footer a:hover {
  color: var(--paper);
  background-size: 100% 1px;
}
.site-footer .logo { background: none; }
.site-footer .logo img {
  height: 56px;
  filter: invert(1);
}
.site-footer .about {
  max-width: 26ch;
  margin-top: var(--s-3);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.45;
  color: var(--on-dark);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
}
.footer__legal p { max-width: none; margin: 0; }

@media (min-width: 48rem) {
  .site-footer .col-3 { grid-column: span 6; }
}
@media (min-width: 64rem) {
  .site-footer .col-3 { grid-column: span 3; }
}

/* ---------------------------------------------------------- 26. Utilities */
.center { margin-inline: auto; }
.measure { max-width: var(--measure); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.note {
  padding: var(--s-3);
  font-size: var(--step--1);
  background: var(--paper);
  border: 1px solid var(--stone-deep);
  border-left: 2px solid var(--brass);
}
.contact-card {
  padding: var(--s-3) var(--s-3) var(--s-1);
  font-family: var(--sans);
  background: var(--paper);
  border-top: 2px solid var(--green);
}
.contact-card dt { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--brass-deep); }
.contact-card dd { margin: 0.2rem 0 var(--s-3); font-size: var(--step-0); }
.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- 27. Motion */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes line-up {
  from { transform: translateY(105%); }
  to { transform: none; }
}
/* fades in, holds while the next slide covers it, then leaves out of sight */
@keyframes hero-slide {
  0% { opacity: 0; }
  8.57% { opacity: 1; }
  41.9% { opacity: 1; }
  41.91% { opacity: 0; }
  100% { opacity: 0; }
}
/* the last slide instead fades back, revealing the first one underneath */
@keyframes hero-slide-back {
  0% { opacity: 0; }
  8.57% { opacity: 1; }
  33.33% { opacity: 1; }
  41.9% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes settle {
  from { transform: scale(1.12); }
  to { transform: none; }
}
@keyframes settle-soft {
  from { transform: scale(1.05); }
  to { transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slide-in {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes clip-up {
  from { clip-path: inset(22% 0 0 0); }
  to { clip-path: inset(0); }
}
@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes drift {
  from { transform: translateY(-5%) scale(1.1); }
  to { transform: translateY(5%) scale(1.1); }
}
@keyframes drift-away {
  to { transform: translateY(16%); }
}
@keyframes hdr-solid {
  0%, 60% { --hdr: 0; }
  100% { --hdr: 1; }
}

/* home: the header sits over the photograph and turns solid as you scroll.
   Without scroll-driven animation support it is simply solid from the start. */
@supports (animation-timeline: scroll()) {
  .overlay-header .site-header {
    margin-bottom: calc(-1 * var(--header-h));
    animation: hdr-solid linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 var(--solid-at, 55vh);
  }
  .hero-photo .site-header { --solid-at: calc(var(--page-hero-h) - var(--header-h)); }
  .hero-plain .site-header { --solid-at: 20rem; }
}

@media (prefers-reduced-motion: no-preference) {
  /* opening band of every inner page settles in */
  main > section:first-child:not(.hero-home, .page-hero) > * {
    animation: rise-in 0.9s var(--ease-out) both;
  }
  main > section:first-child:not(.hero-home, .page-hero) > :nth-child(2) { animation-delay: 0.14s; }
  .page-hero .cover img { animation: settle 2.6s var(--ease-out) both; }
  .page-hero__content > * { animation: rise-in 0.9s var(--ease-out) both; }
  .page-hero__content > :nth-child(2) { animation-delay: 0.08s; }
  .page-hero__content > :nth-child(3) { animation-delay: 0.16s; }
  .page-hero__content > :nth-child(4) { animation-delay: 0.24s; }
  .page-hero__content > :nth-child(5) { animation-delay: 0.32s; }
  .hero img { animation: settle-soft 1.6s var(--ease-out) both; }

  /* home hero */
  .hero-home .cover:only-of-type img { animation: settle 2.8s var(--ease-out) both; }
  .cover--slide:not(:first-of-type) img {
    animation: hero-slide calc(var(--hero-slides) * var(--hero-slot)) linear infinite;
    animation-delay: calc(var(--i) * var(--hero-slot) - var(--hero-fade)
                          - var(--hero-slides) * var(--hero-slot));
  }
  .cover--slide:last-of-type img { animation-name: hero-slide-back; }
  .hero-home__kicker { animation: rise-in 0.9s var(--ease-out) 0.05s both; }
  .hero-home .line > span { animation: line-up 1.15s var(--ease-out) 0.1s both; }
  .hero-home .line:nth-child(2) > span { animation-delay: 0.2s; }
  .hero-home .line:nth-child(3) > span { animation-delay: 0.3s; }
  .hero-home .lead { animation: rise-in 1s var(--ease-out) 0.5s both; }
  .hero-home .btn-row { animation: rise-in 1s var(--ease-out) 0.65s both; }
  .hero-home__cue { animation: fade-in 1.2s var(--ease) 1s both; }
  .hero-home__cue::after { animation: cue 2.6s var(--ease) 1.8s infinite; }

  .marquee__track { animation: marquee 90s linear infinite; }

  /* mobile menu: the panel drops in, then the links follow one by one */
  .menu-toggle[open] ~ .nav { animation: fade-in 0.35s var(--ease) both; }
  .menu-toggle[open] ~ .nav .nav__list > li,
  .menu-toggle[open] ~ .nav .nav__extra { animation: rise-in 0.6s var(--ease-out) both; }
  .menu-toggle[open] ~ .nav .nav__list > li:nth-child(2) { animation-delay: 0.04s; }
  .menu-toggle[open] ~ .nav .nav__list > li:nth-child(3) { animation-delay: 0.08s; }
  .menu-toggle[open] ~ .nav .nav__list > li:nth-child(4) { animation-delay: 0.12s; }
  .menu-toggle[open] ~ .nav .nav__list > li:nth-child(5) { animation-delay: 0.16s; }
  .menu-toggle[open] ~ .nav .nav__list > li:nth-child(6) { animation-delay: 0.2s; }
  .menu-toggle[open] ~ .nav .nav__extra { animation-delay: 0.26s; }

  .lightbox:target .lightbox__stage { animation: slide-in 0.5s var(--ease-out) both; }

  /* scroll-driven reveals, only where supported */
  @supports (animation-timeline: view()) {
    .section-head,
    .tile,
    .gallery .shot,
    .steps li,
    .work__text,
    .facts > div,
    .faq,
    .linklist,
    .ticks,
    blockquote {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 95%;
    }
    /* headings side by side rise on the timeline of the row they share, so
       a two-line heading never lags behind a one-line one */
    .grid--loose { view-timeline-name: --pair; }
    .grid--loose .section-head { animation-timeline: --pair; }
    .work__media .tile__img {
      animation: clip-up linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    .section-head h2::after,
    .rule::after,
    .proof::before,
    .cta::before {
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 35%;
    }
    .hero picture {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    .hero-home .cover,
    .page-hero .cover {
      animation: drift-away linear both;
      animation-timeline: view();
      animation-range: exit;
    }
  }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------- 28. Phones */
/* Narrow screens, gathered in one place. On a phone the opening section has
   to carry the whole message: it should fit the screen, stay readable over a
   bright photograph, and give a thumb something big enough to hit. */
@media (max-width: 63.99rem) {
  /* the text now sits over the middle of the photograph rather than the
     bottom corner, so the scrim covers the whole frame */
  .hero-home::before {
    background:
      linear-gradient(180deg, rgb(12 18 15 / 0.62) 0%, rgb(12 18 15 / 0.1) 28%),
      linear-gradient(0deg, rgb(12 18 15 / 0.92) 0%, rgb(12 18 15 / 0.78) 42%, rgb(12 18 15 / 0.54) 72%, rgb(12 18 15 / 0.2) 100%);
  }
  .page-hero:not(.page-hero--plain)::before {
    background:
      linear-gradient(180deg, rgb(12 18 15 / 0.66) 0%, rgb(12 18 15 / 0.12) 30%),
      linear-gradient(0deg, rgb(12 18 15 / 0.92) 0%, rgb(12 18 15 / 0.74) 45%, rgb(12 18 15 / 0.4) 74%, rgb(12 18 15 / 0.14) 100%);
  }

  /* a tighter opening, so the buttons land on the first screen */
  .hero-home { min-height: max(520px, 100svh); }
  .hero-home__content { padding: calc(var(--header-h) + var(--s-3)) var(--gutter) var(--s-4); }
  .page-hero__content { padding: var(--s-3) var(--gutter) var(--s-4); }
  .breadcrumbs--hero { margin-bottom: var(--s-3); }
  .hero-home .btn-row,
  .page-hero .btn-row { margin-top: var(--s-3); }

  /* thumb-sized targets */
  .nav__extra a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer li + li { margin-top: 0; }
  .site-footer a { padding-block: 0.6rem; background-position: 0 calc(100% - 0.55rem); }
  .work__item .view { display: inline-flex; align-items: center; min-height: 44px; }
  /* breadcrumbs: padding gives the thumb something to hit, the negative
     margin keeps the row the same height as before */
  .breadcrumbs a {
    display: inline-block;
    padding-block: 0.5rem;
    margin-block: -0.5rem;
  }
  .field--check input { width: 1.5rem; height: 1.5rem; margin-top: 0.05rem; }
}

@supports (animation-timeline: scroll()) {
  @media (max-width: 63.99rem) {
    .overlay-header .page-hero__content { padding-top: calc(var(--header-h) + var(--s-3)); }
  }
}

@media (max-width: 47.99rem) {
  /* headline and standfirst set at phone size */
  .page-hero h1 { font-size: clamp(2.4rem, 1.85rem + 2.6vw, 3.4rem); }
  .hero-home .lead,
  .page-hero .lead { font-size: var(--step-0); }
}

@media (max-width: 30rem) {
  /* one button per row at full width, so neither is a small target */
  .hero-home .btn-row .btn,
  .page-hero .btn-row .btn,
  .cta .btn-row .btn { flex: 1 1 100%; }
  /* the same for buttons that stand on their own */
  .form button[type="submit"],
  .gallery__more .btn { width: 100%; }
}

/* a phone held sideways has room for the photograph but not for a tall
   opening, so the section is only as tall as the screen and its content */
@media (orientation: landscape) and (max-height: 32rem) {
  :root { --page-hero-h: 100svh; }
  .hero-home { min-height: 100svh; }
  .hero-home__content,
  .page-hero__content { padding-block: calc(var(--header-h) + var(--s-2)) var(--s-3); }
  .page-hero--plain { min-height: calc(var(--header-h) + 12rem); }
}

/* ------------------------------------- 29. Coverage, compact heads, subheads */
/* A heading that is a full sentence, or one of several in a row, set at the
   size of a sub-section instead of the full section size. */
.section-head--compact { margin-bottom: var(--s-3); }
.section-head--compact h2 {
  font-size: var(--step-3);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.stack > .bio-gap { margin-top: var(--s-5); }
/* The founders: the biographies keep the page's text column, and the
   photograph is centred in all the room to their right, which on a wide
   screen reaches past the edge of the 1440px content area. */
.founders {
  display: grid;
  gap: var(--s-4);
  padding-inline: var(--gutter);
}
.founders__photo { width: min(100%, 50rem); justify-self: center; }
/* "Made by JAM" on the home page: air between the photograph and the text */
@media (min-width: 64rem) {
  .why__photo { padding-right: var(--s-5); }
}
@media (min-width: 64rem) {
  .founders {
    grid-template-columns: minmax(0, min(40rem, 50%)) minmax(0, 1fr);
    column-gap: var(--s-5);
    align-items: center;
    padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  }
}
/* a grid whose cells hold a heading and a paragraph needs air between rows */
.grid--loose { row-gap: var(--s-5); }
.stack > .subhead:first-child { margin-top: 0; }
.subhead {
  margin-top: var(--s-4);
  font-size: var(--step-1);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* the About page title is a whole sentence */
.page-hero h1.long {
  max-width: 24ch;
  font-size: clamp(2rem, 1.1rem + 3.2vw, 3.9rem);
  line-height: 1.04;
}

/* where we work: London first, then the rest of south east England and France.
   Places without a page of their own are plain text, not links. */
.coverage {
  display: grid;
  gap: var(--s-5) var(--s-4);
  max-width: none;
}
.coverage__group h3 {
  margin-bottom: var(--s-2);
  font-size: var(--step-1);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.coverage .linklist { columns: 1; }
.linklist li > span {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--sans);
  font-size: var(--step--1);
}
@media (min-width: 48rem) {
  .coverage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coverage__group--london { grid-column: 1 / -1; }
  .coverage__group--london .linklist { columns: 2; column-gap: var(--s-4); }
}
@media (min-width: 64rem) {
  .coverage:not(.coverage--beyond) { grid-template-columns: 2fr 1fr 1fr; }
  .coverage__group--london { grid-column: auto; }
}
