/* =====================================================================
   Ihamba Safari Lodge

   Every dimension below was measured from the reference design at a
   2160px-wide viewport and written as vw (measured / 2160 * 100), so the
   proportions are identical at any screen width. clamp() supplies the
   floor and ceiling for very small and very large screens.
   ===================================================================== */

:root {
  --cream:        #f4f1ec;
  --black:        #000000;
  --white:        #ffffff;
  --rule:         #545a5f;
  --social:       #69727d;
  --hair:         #cdc7bd;   /* 1px rules on the cream field */

  --serif:        "Playfair Display", "Newsreader", serif;
  --sans:         "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Display serif: the menu, the tile headers and the footer headings.

     Newsreader, served from Google Fonts alongside Jost and Playfair. It
     stands in for Tiempos Headline, which the design was drawn around but
     which is licensed from Klim and cannot be served without buying it.
     Newsreader is the nearest free equivalent — a high-contrast news
     serif, which is the same thing Tiempos is — and it is a real webfont,
     so no reader falls through to their own system Times.

     To switch to the real Tiempos Headline once it is licensed, see
     assets/fonts/README.txt: three files and two edits. */
  --display:      "Newsreader", serif;

  /* 30px @2160 */
  --gutter:       clamp(12px, 1.3889vw, 34px);
  /* 60px @2160 */
  --gutter-lg:    clamp(24px, 2.7778vw, 68px);
  /* 45px @2160 */
  --inset:        clamp(14px, 2.0833vw, 50px);

  --ease:         cubic-bezier(.22,.61,.36,1);
}

/* ---------- the typefaces, self-hosted ----------

   All three families are served from assets/fonts/ on this server. Nothing
   on a page load reaches outside the site: no Google Fonts, no CDN, no
   stylesheet from anywhere else. If every other host on earth went down
   the pages would still render exactly as they do now.

   Nine files, only the weights the stylesheet actually asks for — 216KB
   in total, latin subset, woff2. All three are SIL Open Font Licence and
   may be self-hosted; the licences ship beside them in
   assets/fonts/licences/.

     Jost              300 / 400 / 500   body, labels, links
     Newsreader        400 / 500 / 700   menu, tile headers, footer headings
     Playfair Display  400 / 600 / 700   hero and section titles

   Adding a weight means adding the file AND a rule here — ask for one that
   is not declared and the browser synthesises it, which looks wrong.
   ----------------------------------------------------------------- */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ---------- Tiempos Headline (not in use) ----------

   The design was drawn around Tiempos Headline. It is licensed from Klim
   Type Foundry, is served by no CDN, and cannot be self-hosted without
   buying a webfont licence, so the site runs on Newsreader instead.

   To switch back once it is licensed: put the three woff2 files in
   assets/fonts/ under the names below, uncomment this block, and change
   --display to `"Tiempos Headline", "Newsreader", serif`. Nothing else
   needs to move — the sizes below were set from Tiempos' own metrics
   (cap height 0.702 of the em), so they land correctly either way.

@font-face {
  font-family: "Tiempos Headline";
  src: url("../fonts/tiempos-headline-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tiempos Headline";
  src: url("../fonts/tiempos-headline-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tiempos Headline";
  src: url("../fonts/tiempos-headline-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

   ---------- end of the Tiempos block ---------- */

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* NOT hidden — hidden creates a scroll container and kills sticky */
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
p { margin: 0; }

button {
  font: inherit; color: inherit;
  background: none; border: 0; padding: 0;
  cursor: pointer;
}

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  z-index: 999;
}
.skip-link:focus {
  left: 12px; top: 12px;
  padding: 10px 18px;
  background: var(--black); color: var(--white);
}

/* =====================================================================
   Masthead — fixed, no background.
   logo ink starts x=51, y=66 · burger ink x=2003–2047, y=72–102
   The hamburger rides along for the whole page; the wordmark belongs to
   the hero and fades out once the hero is scrolled past.
   ===================================================================== */

.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(22px, 3.0556vw, 76px)      /* 66 */
           clamp(24px, 5.2315vw, 130px)     /* 113 right */
           0
           clamp(18px, 2.3611vw, 58px);     /* 51 left */
  pointer-events: none;
}

.masthead > * { pointer-events: auto; }

/* The masthead is fixed, so a link that jumps to an element would park
   it underneath the bar. Hold anything linked to clear of it. The value
   tracks the masthead's own top padding plus the logo. */
:target,
[id] { scroll-margin-top: clamp(76px, 7.4vw, 184px); }

.masthead--solid {
  position: relative;
  background: var(--black);
  padding-bottom: clamp(22px, 3.0556vw, 76px);
}

.masthead__logo {
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}

body.past-hero .masthead__logo {
  opacity: 0;
  visibility: hidden;
}


.masthead--solid .masthead__logo,
body.past-hero .masthead--solid .masthead__logo {
  opacity: 1;
  visibility: visible;
}

.masthead__logo img {
  height: clamp(22px, 1.9444vw, 48px);       /* 42 */
  width: auto;
  object-fit: contain;
}

/* A page whose logo is a mark rather than a wordmark gets more height —
   at the wordmark's 42 a square mark comes out about 50 wide and reads as
   a smudge. Pages ask for this with 'logo_mark' => true. */
.masthead__logo--mark img { height: clamp(44px, 4.0741vw, 100px); }   /* 88 */

/* burger: three 3px lines, 10.5px apart, 44px wide, 6px below the logo top */
.burger {
  width: clamp(24px, 2.037vw, 50px);          /* 44 */
  display: flex;
  flex-direction: column;
  gap: clamp(5px, .4861vw, 12px);             /* 10.5 */
  margin-top: clamp(3px, .2778vw, 7px);       /* 6 */
  color: var(--white);
  transition: color .25s var(--ease);
}

/* The burger is fixed, so it travels over the hero photo, the cream
   sections and the black founder band in turn. main.js reads the
   data-tone of whichever section is under it and flips this class, so it
   stays legible on all of them. */
.burger.is-onlight { color: var(--black); }

.burger__line {
  display: block;
  width: 100%;
  height: clamp(2px, .1389vw, 4px);           /* 3 */
  background: currentColor;
  transition: transform .6s var(--ease), opacity .3s var(--ease);
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(clamp(7px,.625vw,16px)) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(calc(-1 * clamp(7px,.625vw,16px))) rotate(-45deg); }

/* =====================================================================
   Hero — full bleed. Measured 1125 tall at 2160 wide (52.083% of width),
   so it stops short of the viewport bottom and the first tile row peeks in.
   ===================================================================== */

.hero {
  position: relative;
  height: clamp(60svh, 52.083vw, 100svh);
  overflow: hidden;
  background: #1a2412;
}

.hero__media-wrap {
  position: absolute;
  inset: 0;
}

.hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------------------------------------------------------------------
   Inner-page hero: title bottom-left, hairline rule, one line under it.
   Measured from the reference (content 2075 wide):
     title cap 52 → ~74px serif      left inset 32
     baseline to rule 92             rule 1px white, as wide as the line
     rule to tagline cap 18          tagline cap 14 → ~19px sans
     tagline baseline to bottom 32
   --------------------------------------------------------------------- */

.hero--titled { background: #14110d; }

/* The photo carries the text, so a soft floor keeps it legible on a light
   frame. On a dark photo — as in the reference — it is invisible. Drop this
   rule if you would rather have the photo completely untouched. */
.hero--titled::after {
  content: "";
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.52) 100%);
  pointer-events: none;
}

.hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 1.542vw, 40px);           /* 32 */
  z-index: 1;
  padding: 0 var(--gutter);
  color: var(--white);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 3.566vw, 92px);        /* cap 52 at the reference */
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0;
  text-wrap: balance;
}

.hero__tagline {
  width: fit-content;
  max-width: min(100%, 1200px);                 /* 676 at the reference, with headroom */
  margin: clamp(22px, 3.42vw, 88px) 0 0;        /* 71 below the title box */
  padding-top: clamp(10px, .675vw, 18px);       /* 14 below the rule */
  border-top: 1px solid rgba(255, 255, 255, .85);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(13px, .916vw, 24px);         /* cap 14 at the reference */
  line-height: 1.45;
  letter-spacing: 0;
}

/* =====================================================================
   Tile grid — cream field, 2 columns
   outer padding 30 / 30 / 60 · gap 30 · tile 1035 x 1110
   ===================================================================== */

.tiles {
  background: var(--cream);
  padding: var(--gutter) var(--gutter) var(--gutter-lg);
}

.tiles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

.tile {
  position: relative;
  aspect-ratio: 1035 / 1110;
  background: #2a2419;          /* shows through if a photo is missing */
  /* NO overflow:hidden here — it would trap the sticky body. The image is
     clipped by .tile__media instead. */
}

.tile__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

/* The four homepage quadrant images remain square at every breakpoint. */
.page-home .tile { aspect-ratio: 1 / 1; }

.tile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* A tile given more than one photo fades between them. They are stacked in
   the same box; the incoming one is raised above whatever is showing and
   fades up over it, and nothing underneath is touched until that finishes —
   fading one out as the other comes in would dip to the tile's background
   halfway and read as a flash. main.js drives the z-index. */
.tile__media[data-tile-fade] .tile__image {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
}

.tile__media[data-tile-fade] .tile__image.is-on {
  opacity: 1;
  z-index: 2;
  transition: opacity var(--tile-fade, 1s) var(--ease);
}

/* The title + READ MORE pin 30px below the top of the viewport and hold
   there while the photo scrolls past underneath, until the bottom of the
   tile pushes them out. Measured: pinned 31px higher than its in-flow
   offset, released when the tile's bottom edge reached the block. */
.tile__body {
  position: sticky;
  top: var(--gutter);
  z-index: 1;
  padding: clamp(16px, 1.6204vw, 40px)        /* 35 top */
           clamp(20px, 2.4074vw, 60px)        /* 52 sides */
           clamp(20px, 2.4074vw, 60px);       /* 52 bottom — sets the release point */
  color: var(--white);
}

/* Measured off the WatchHouse tile in the supplied screenshot, taken at a
   1903px-wide viewport:

     cap height   40px      → 57px of Tiempos Headline
     stem         8px       → 0.20 of the cap height, which is the bold
     VIEW MORE    cap 12.5  → what .read-more already renders there

   The 57 is measured, not guessed: Tiempos Headline's cap height is 702
   of its 1000-unit em, so 40 ÷ 0.702 = 56.98. It was 56 while that ratio
   was assumed to be 0.72, which rendered a 39.3 cap — a pixel short.
   Newsreader, which the site actually serves, sits on the same metric.

   57 / 1903 = 2.9953vw, capped at 57 so it never overshoots the reference
   and eased down below it so a phone tile still fits its title. */
.tile__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 2.9953vw, 57px);     /* 57 at 1903 and wider */
  line-height: 1.1;
  letter-spacing: 0;
}

/* READ MORE + hairline arrow */

.read-more {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, .9259vw, 23px);            /* 20 */
  margin-top: clamp(16px, 1.7593vw, 44px);    /* 38 */
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(11px, .8796vw, 22px);      /* 19 */
  line-height: 1.2;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--white);
}

.read-more__arrow {
  width: clamp(22px, 1.7593vw, 44px);         /* 38 */
  height: auto;
  flex: 0 0 auto;
  transition: transform .4s var(--ease);
}

.read-more:hover .read-more__arrow { transform: translateX(.35em); }

/* =====================================================================
   Closing section — full-bleed image with the footer inset over it
   image 2160 x 1536 · footer inset 45 sides, 60 bottom
   ===================================================================== */

.closing {
  position: relative;
  min-height: 71.11vw;                        /* 1536 / 2160 */
  display: flex;
  align-items: flex-end;
  padding: 0 var(--inset) var(--gutter-lg);
  background: #15120c;
  /* NO overflow:hidden — it would trap the sticky footer. */
}

.closing__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.closing__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* The footer parks 60px above the bottom of the viewport and holds there
   while the closing image slides up behind it, settling into place when
   the section ends. Measured: held for ~400px of scroll, then released. */
.sitefoot {
  position: sticky;
  bottom: var(--gutter-lg);
  z-index: 1;
  width: 100%;

  /* Black field, white ink. Everything inside the footer draws from these
     four, so the whole block recolours from here. */
  --foot-bg:    #000000;
  --foot-ink:   #ffffff;
  --foot-soft:  rgba(255, 255, 255, .72);
  --foot-rule:  rgba(255, 255, 255, .42);

  background: var(--foot-bg);
  color: var(--foot-ink);
  padding: clamp(26px, 2.5926vw, 64px)        /* 56 top */
           clamp(22px, 2.7778vw, 68px)        /* 60 sides */
           clamp(18px, 1.713vw, 42px);        /* 37 bottom */
}

/* ---------- columns ---------- */

/* Three equal columns with one gap between them. The About paragraph used
   to take two thirds of the row, which pushed the two link columns into a
   huddle on the left and ran the prose almost the full width. Equal
   columns set the paragraph in a narrower measure and put the same
   distance between all three. */
.sitefoot__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.6vw, 92px);
}

/* The footer headings follow the menu and the tiles onto Tiempos Headline,
   so every display line on the site is set in one face. The links and the
   About paragraph under them stay on the sans. */
.sitefoot__heading {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(19px, 1.5278vw, 38px);     /* 33 */
  line-height: 1.2;
  color: var(--foot-ink);
}

.sitefoot__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  font: inherit;
}

.sitefoot__sign {
  position: relative;
  width: 13px; height: 13px;
  flex: 0 0 auto;
  display: none;
}

.sitefoot__sign::before,
.sitefoot__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: currentColor;
  transition: transform .35s var(--ease);
}
.sitefoot__sign::after { transform: rotate(90deg); }

.sitefoot__list {
  margin-top: clamp(10px, 1.0185vw, 25px);    /* 22 */
}

.sitefoot__list a,
.sitefoot__about p,
/* Whatever a widget area produces — a navigation block, a list, a
   paragraph — is set the same as the hand-built footer, so dropping a
   widget into a column does not land unstyled next to one that is. */
.sitefoot__widget a,
.sitefoot__widget p,
.sitefoot__widget li {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 1.1111vw, 27px);     /* 24 */
  color: var(--foot-ink);
}

.sitefoot__widget { margin-top: clamp(10px, 1.0185vw, 25px); }

.sitefoot__widget ul,
.sitefoot__widget ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitefoot__widget li { line-height: 1.75; }

.sitefoot__widget a { text-decoration: none; }
.sitefoot__widget a:hover { opacity: .7; }

/* A widget's own heading, under the column heading. Quieter than the
   column title so the two do not compete. */
.sitefoot__widgettitle {
  margin: 0 0 clamp(6px, .5556vw, 14px);
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(13px, .9259vw, 22px);
  letter-spacing: .02em;
  color: var(--foot-ink);
  opacity: .8;
}

.sitefoot__list a { line-height: 1.75; }      /* 42 / 24 */

.sitefoot__list a:hover { opacity: .7; }

.sitefoot__about {
  margin-top: clamp(14px, 1.3889vw, 34px);    /* 30 */
}

.sitefoot__about p { line-height: 1.625; }    /* 39 / 24 */

/* ---------- bottom bar ---------- */

.sitefoot__bottom {
  margin-top: clamp(28px, 2.8241vw, 70px);    /* 61 */
  margin-inline: clamp(-17px, -.6944vw, -6px);/* rule runs 15px wider than the text */
  padding-top: clamp(18px, 1.713vw, 42px);    /* 37 */
  border-top: 1px solid var(--foot-rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 50px);
  padding-inline: clamp(6px, .6944vw, 17px);
}

.sitefoot__legal {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4.6296vw, 114px);          /* 100 */
}

.sitefoot__copyright,
.sitefoot__developer,
.sitefoot__legallinks a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(13px, 1.1111vw, 27px);     /* 24 */
  line-height: 1.4;
  color: var(--foot-ink);
  white-space: nowrap;
}

.sitefoot__copyright { white-space: normal; }

.sitefoot__developer {
  justify-self: end;
  text-align: right;
}

.sitefoot__developer a:hover { opacity: .7; }

.sitefoot__legallinks {
  display: flex;
  gap: clamp(10px, .8333vw, 21px);            /* 18 */
}

.sitefoot__legallinks a:hover { opacity: .7; }

/* ---------- social ---------- */

.social {
  display: flex;
  align-items: center;
}

.social--foot {
  justify-self: center;
  gap: clamp(14px, 1.2963vw, 32px);           /* 28 */
  color: var(--foot-soft);
}

.social--foot .social__icon {
  width: clamp(16px, 1.2037vw, 30px);         /* 26 */
  height: auto;
}

.social__link {
  display: inline-flex;
  transition: color .3s var(--ease);
}

.social--foot .social__link:hover { color: var(--foot-ink); }

/* =====================================================================
   Menu panel

   A cream card that floats over the page from the top right. Measured from
   the reference at a 2134px-wide viewport, where the card is 720 x 966.
   Everything inside is a fraction of --menu-w, so the card keeps its exact
   proportions at any size; only --menu-w changes between desktop and mobile.

     card        720 x 966, radius 32, #EBE0CB, no shadow
     inset       20 top, 13 right
     close pill  165 x 67, fully round, 38 below the card top
     rows        82.5 pitch, 1px #C7C7C7 rule, text cap 38 (52px type)
     content     75 from the left edge, 37 from the right
     socials     two columns 286 apart, 50 row pitch, 27px type
   ===================================================================== */

.menu {
  --menu-w:  clamp(420px, 33.74vw, 720px);   /* 720 at the reference 2134 */

  --m-pad-l: calc(var(--menu-w) * .104167);   /* 75  */
  --m-pad-r: calc(var(--menu-w) * .051389);   /* 37  */
  --m-pad-t: calc(var(--menu-w) * .052778);   /* 38  */
  --m-pad-b: calc(var(--menu-w) * .108333);   /* 78  */
  --m-row:   calc(var(--menu-w) * .114583);   /* 82.5 */
  /* Fixed sizes, not proportions: 25 for the rows and 21 for their
     children, held from 1440 up and easing down below it so the card still
     works on a phone. */
  --m-fs:    clamp(19px, 1.7361vw, 25px);     /* 25 at 1440 and wider */
  --m-sub:   clamp(15px, 1.4583vw, 21px);     /* 21 — a step under the row */
  --m-plus:  calc(var(--menu-w) * .025);      /* 18  */

  position: fixed;
  top:   clamp(10px, .9372vw, 22px);          /* 20 */
  right: clamp(8px, .6092vw, 15px);           /* 13 */
  z-index: 100;
  width: var(--menu-w);
  max-height: calc(100svh - 2 * clamp(10px, .9372vw, 22px));
  overflow-y: auto;
  overscroll-behavior: contain;

  /* Closing: the rows lean away first, bottom to top, and only then does the
     card sink back toward the burger it came from. The fade waits .18s so
     the list has started leaving before the cream begins to go — the same
     order as the old site, where the ink thinned out a beat ahead of the
     card. Visibility is a step, not a fade, held until the very end. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(-1 * var(--menu-w) * .016)) scale(.976);
  transform-origin: 100% 0;                   /* grows out of the burger */
  transition: opacity .72s cubic-bezier(.45,0,.55,1) .22s,
              transform .95s cubic-bezier(.36,.02,.42,1),
              visibility 0s linear 1.05s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  /* Long and decelerating: the card keeps drifting the last fraction of a
     percent open after it looks finished, which is what stops it feeling
     mechanical. */
  transition: opacity .8s var(--ease),
              transform 1.25s cubic-bezier(.16,.84,.28,1),
              visibility 0s linear 0s;
}

/* ---------- the rows settle into place ----------

   The lean is borrowed from the old site: each row starts tilted, low and
   left of where it belongs, then rises upright into place. No blur — only
   the tilt, the drift and the fade, which is what reads as unhurried rather
   than out of focus.

   Everything here is deliberately slow. A row takes 1.35s to finish
   arriving and they come 100ms apart, so the list unrolls over about two
   and a quarter seconds. The opacity finishes ahead of the movement (1.05s
   against 1.35s), so a row is fully black while it is still easing the last
   pixel into place — the part that makes it feel set down by hand.

   Leaving reverses it: the bottom row goes first, 45ms apart up the list,
   with the close pill last of all. */

.menu__panel > .menu__list > .menu__item,
.menu__close {
  opacity: 0;
  transform: translate(-18px, 24px) skewX(-11deg);
  transition: opacity .55s cubic-bezier(.45,0,.55,1),
              transform .72s cubic-bezier(.4,.02,.5,1);
}

.menu.is-open .menu__panel > .menu__list > .menu__item,
.menu.is-open .menu__close {
  opacity: 1;
  transform: none;
  transition: opacity 1.05s var(--ease),
              transform 1.35s cubic-bezier(.16,.84,.28,1);
}

/* Arriving: top to bottom, the close pill leading. */
.menu.is-open .menu__close { transition-delay: .16s; }

.menu.is-open .menu__panel > .menu__list > .menu__item:nth-child(1) { transition-delay: .26s; }
.menu.is-open .menu__panel > .menu__list > .menu__item:nth-child(2) { transition-delay: .36s; }
.menu.is-open .menu__panel > .menu__list > .menu__item:nth-child(3) { transition-delay: .46s; }
.menu.is-open .menu__panel > .menu__list > .menu__item:nth-child(4) { transition-delay: .56s; }
.menu.is-open .menu__panel > .menu__list > .menu__item:nth-child(5) { transition-delay: .66s; }
.menu.is-open .menu__panel > .menu__list > .menu__item:nth-child(6) { transition-delay: .76s; }
.menu.is-open .menu__panel > .menu__list > .menu__item:nth-child(7) { transition-delay: .86s; }
.menu.is-open .menu__panel > .menu__list > .menu__item:nth-child(8) { transition-delay: .96s; }
.menu.is-open .menu__panel > .menu__list > .menu__item:nth-child(9) { transition-delay: 1.06s; }

/* Leaving: counted from the bottom, so the order holds however many rows
   the menu has. The last row carries no delay and the pill waits longest,
   which empties the card downward and keeps the way out from the way in. */
.menu__close { transition-delay: .30s; }

.menu__panel > .menu__list > .menu__item:nth-last-child(2) { transition-delay: .045s; }
.menu__panel > .menu__list > .menu__item:nth-last-child(3) { transition-delay: .09s; }
.menu__panel > .menu__list > .menu__item:nth-last-child(4) { transition-delay: .135s; }
.menu__panel > .menu__list > .menu__item:nth-last-child(5) { transition-delay: .18s; }
.menu__panel > .menu__list > .menu__item:nth-last-child(6) { transition-delay: .225s; }
.menu__panel > .menu__list > .menu__item:nth-last-child(7) { transition-delay: .27s; }
.menu__panel > .menu__list > .menu__item:nth-last-child(8) { transition-delay: .315s; }
.menu__panel > .menu__list > .menu__item:nth-last-child(9) { transition-delay: .36s; }

/* The burger turns into the X and back whether or not the card covers it,
   at the card's pace rather than its own. */
.burger__line:nth-child(1),
.burger__line:nth-child(3) { transition: transform .6s cubic-bezier(.18,.84,.32,1), opacity .3s var(--ease); }

.menu__panel {
  background: #ebe0cb;
  color: var(--black);
  border-radius: calc(var(--menu-w) * .044444);   /* 32 */
  padding: var(--m-pad-t) var(--m-pad-r) var(--m-pad-b) var(--m-pad-l);
}

/* Transparent click-catcher: the reference darkens nothing behind the card. */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  /* Steps out of the way the moment the card starts leaving — the close is
     slow, and the page underneath should be clickable again straight away
     rather than waiting a second for the animation to finish. */
  transition: visibility 0s linear 0s;
}

.menu-scrim.is-open {
  opacity: 1;
  visibility: visible;
  transition: visibility 0s linear 0s;
}

/* ---------- close pill ---------- */

.menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;                              /* sits at the content right edge */
  width:  calc(var(--menu-w) * .229167);          /* 165 */
  height: calc(var(--menu-w) * .093056);          /* 67  */
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  transition: opacity .3s var(--ease);
}

/* Same specificity as the entrance rule above, or that would win and the
   pill would stop responding to the pointer while the card is open. */
.menu.is-open .menu__close:hover { opacity: .82; }

.menu__x {
  width:  calc(var(--menu-w) * .038889);          /* 28 */
  height: calc(var(--menu-w) * .038889);
}

/* ---------- link rows ---------- */

/* Top-level list only — render_menu gives submenus this class too, and a
   margin here would prop every collapsed submenu open by 48.5px. */
.menu__panel > .menu__list {
  margin-top: calc(var(--menu-w) * .067361);      /* 48.5 below the pill */
}

/* Coffee brown, not the cool grey-black that was here. Held at 62% so it
   still reads as a hairline on the cream rather than as a drawn line —
   full strength at 1px it competes with the type above it. */
.menu__item { border-bottom: 1px solid rgba(90, 62, 43, .62); }

.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: calc(var(--m-row) - 1px);
  font-family: var(--display);                    /* Tiempos Headline */
  font-weight: 500;
  font-size: var(--m-fs);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--black);
}

/* No hover state anywhere in the menu — rows or dropdown children. Fading
   text to 55% reads as disabled rather than interactive. The cursor still
   turns to a pointer, and the +/- marks the open row. The opacity
   transition that used to sit here went with it; nothing animates now. */

.menu__plus {
  position: relative;
  width:  var(--m-plus);
  height: var(--m-plus);
  flex: 0 0 auto;
}

.menu__plus::before,
.menu__plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform .35s var(--ease);
}

.menu__plus::after { transform: rotate(90deg); }
.menu__item--parent.is-open > .menu__link .menu__plus::after { transform: rotate(0); }

/* ---------- submenus ---------- */

.menu__subwrap {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows .4s var(--ease);
}

.menu__item--parent.is-open > .menu__subwrap { grid-template-rows: 1fr; }

/* The open dropdown reads like a footer column: children sit flush with the
   parent — no indent — with no rules between them and an even, generous
   pitch. The children are the same Tiempos Headline as the rows, a step
   smaller and a step lighter — 21 against 25, 400 against 500 — on a 1.75
   line, so the dropdown reads as part of the row rather than a footnote
   to it. */
/* No padding, margin or border on .menu__sub itself — it is the grid item
   that has to collapse to zero, and padding there cannot collapse, so every
   closed dropdown would prop the card open and show through. The spacing
   lives on the first and last links inside it instead. */
.menu__sub { min-height: 0; }

.menu__sub .menu__item,
.menu__sub .menu__item:first-child { border: 0; }

/* Tightened: the children used to sit on the footer's generous 22/28/1.75
   pitch, which left a dropdown looking like a second menu rather than a
   list belonging to the row above it. */
.menu__sub .menu__item:first-child .menu__link {
  padding-top: calc(var(--menu-w) * .020833);     /* 15 under the parent */
}

.menu__sub .menu__item:last-child .menu__link {
  padding-bottom: calc(var(--menu-w) * .026389);  /* 19 before the next rule */
}

.menu__sub .menu__link {
  min-height: 0;
  padding: 0;
  font-family: var(--display);                    /* Tiempos Headline, as the rows */
  font-weight: 400;                               /* a step lighter than the row above */
  font-size: var(--m-sub);
  line-height: 1.38;                              /* 29 pitch at 21, not 37 */
  letter-spacing: 0;
  text-transform: none;
}

/* =====================================================================
   Our Story sections — timeline, founder, roastery
   Measured from the reference at 2160 wide (content 2100, gutter 30):
     section rule 1px, full content width
     eyebrow  cap 20 serif        card title cap 19 serif
     body     17 on a 25 line     founder name cap 33
     card 487 wide, 36 gap        card photo 234 x 300
   ===================================================================== */

.section-rule {
  background: var(--cream);
  padding: clamp(40px, 3.7vw, 96px) 0 clamp(48px, 5.5vw, 140px);
}

.section-rule > * { margin-inline: var(--gutter); }

/* The track alone is full bleed: cards run off the right edge as they do in
   the reference. Padding (not margin) puts the first card on the gutter. */
.section-rule > .timeline__track {
  margin-inline: 0;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(17px, 1.35vw, 34px);          /* cap 20 */
  line-height: 1.2;
  margin: 0;
}

.story-body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(14px, .787vw, 20px);          /* 17 */
  line-height: 1.47;                              /* 25 */
  margin: 0;
}

/* ---------- timeline ---------- */

.timeline { padding-bottom: clamp(40px, 4vw, 100px); }

.timeline__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--hair);
  padding-top: clamp(10px, 1.02vw, 26px);         /* rule 38 -> label 60 */
  margin-bottom: clamp(16px, 1.85vw, 46px);       /* label -> card rule 119 */
}

.timeline__nav { display: flex; gap: clamp(10px, .93vw, 24px); flex: 0 0 auto; }

.tl-arrow {
  width: clamp(22px, 1.39vw, 36px);
  color: var(--black);
  transition: opacity .25s var(--ease);
}

.tl-arrow svg { width: 100%; height: auto; }
.tl-arrow[disabled] { opacity: .25; cursor: default; }

/* The track is the scroller. Padding-inline on it would clip the snap, so
   the gutter is recreated with a scroll-padding + first/last spacer. */
.timeline__track {
  display: flex;
  gap: clamp(14px, 1.667vw, 42px);                /* 36 */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 0;
}

.timeline__track::-webkit-scrollbar { display: none; }

/* A column, so the photograph can be pushed to the foot of the card. The
   track stretches every card to the tallest, so with the photographs on
   the bottom edge they all start on the same line however many lines of
   text sit above them. */
.tl__card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: clamp(230px, 22.546vw, 560px);
  scroll-snap-align: start;
  border-top: 1px solid var(--hair);
  padding-top: clamp(9px, .88vw, 22px);
}

.tl__year {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(14px, .926vw, 24px);           /* cap 14 */
  line-height: 1.2;
  margin: 0 0 clamp(8px, .88vw, 22px);
}

.tl__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 1.25vw, 32px);           /* cap 19 */
  line-height: 1.22;
  margin: 0 0 clamp(10px, 1.06vw, 27px);
}

.tl__body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(14px, .787vw, 20px);
  line-height: 1.47;
  margin: 0 0 clamp(14px, 1.25vw, 32px);
}

.tl__media {
  width: clamp(120px, 10.833vw, 270px);           /* 234 */
  aspect-ratio: 234 / 300;
  overflow: hidden;
  background: #e2ddd4;
  align-self: start;        /* keep its own width, don't stretch */
  margin-top: auto;         /* sit on the card's bottom edge */
}

.tl__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- founder ---------- */

.founder {
  background: var(--black);
  color: var(--white);
  padding: clamp(36px, 3.33vw, 84px) 0;           /* 72 */
}

.founder__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.3vw, 58px);
  align-items: start;
  padding-inline: var(--gutter);
}

.founder__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 2.176vw, 56px);          /* cap 33 */
  line-height: 1.1;
  margin: clamp(18px, 2.64vw, 66px) 0 clamp(14px, 2.18vw, 55px);
}

.founder__intro,
.founder__outro {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(14px, .787vw, 20px);
  line-height: 1.47;
  margin: 0;
}

/* A story told in several paragraphs needs air between them; one
   paragraph is unaffected, since the rule only fires on a sibling. */
.founder__intro + .founder__intro,
.founder__outro + .founder__outro {
  margin-top: clamp(10px, .87vw, 22px);
}

.founder__media { align-self: stretch; }

.founder__media img {
  width: 100%;
  aspect-ratio: 668 / 876;
  object-fit: cover;
  display: block;
}

/* The closing column sits on the image's bottom edge. */
.founder__close { align-self: end; }

/* No portrait: two columns, and the closing column rises to the top
   rather than hanging off the bottom of a photo that isn't there. */
.founder--noportrait .founder__inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.7vw, 94px);
}

.founder--noportrait .founder__close { align-self: start; }

/* The founder's own words, closing the block. Set on the serif at a size
   between the body copy and her name, with the rule marking it as quoted
   rather than more of the paragraph above. */
.founder__quote {
  margin: clamp(18px, 1.74vw, 44px) 0 0;
  padding-top: clamp(14px, 1.3vw, 33px);
  border-top: 1px solid rgba(255, 255, 255, .34);
}

/* Set exactly as the paragraphs around it — same face, weight, size and
   leading. The rule above the quote is what marks it as quoted. */
.founder__quote p {
  font-family: var(--sans);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(14px, .787vw, 20px);
  line-height: 1.47;
  margin: 0;
}

.founder__cite {
  display: block;
  margin-top: clamp(10px, .83vw, 21px);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(12px, .74vw, 18px);
  letter-spacing: .04em;
  opacity: .76;
}

/* ---------- roastery ---------- */

.roastery__head {
  display: grid;
  grid-template-columns: 33.8% minmax(0, 1fr);    /* label | heading, split at x=740 */
  gap: clamp(16px, 1.5vw, 38px);
  border-top: 1px solid var(--hair);
  padding-top: clamp(8px, .7vw, 18px);            /* rule 1887 -> cap 1902 */
}

.roastery__heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 1.99vw, 50px);           /* cap 30 */
  line-height: 1.16;
  margin: 0 0 clamp(12px, 1.5vw, 38px);
}

.roastery__text {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(14px, .787vw, 20px);
  line-height: 1.47;
  max-width: 62ch;
  margin: 0;
}

.roastery__steps {
  display: flex;
  gap: clamp(10px, .83vw, 21px);
  margin-top: clamp(40px, 5.2vw, 130px);          /* intro -> 01 02 03 */
  margin-bottom: clamp(12px, 1.3vw, 33px);
}

.roast__step {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(12px, .7vw, 18px);             /* cap 15 */
  letter-spacing: .04em;
  color: rgba(20, 17, 13, .42);
  transition: color .25s var(--ease);
}

.roast__step.is-current { color: var(--black); }

.roastery__slides { position: relative; }

/* tall photo flush left, wide photo flush right, note starting at 51% */
.roast__slide {
  display: grid;
  grid-template-columns: 21.43% minmax(0, 29.67%) minmax(0, 48.9%);
  grid-template-rows: auto auto;
  column-gap: 0;
  row-gap: clamp(16px, 2.1vw, 53px);
}

.roast__slide[hidden] { display: none; }

.roast__tall {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  aspect-ratio: 450 / 583;
  object-fit: cover;
  margin-top: clamp(8px, 1.7vw, 43px);            /* sits 37 below the wide photo */
}

.roast__wide {
  grid-column: 3;
  grid-row: 1;
  width: 58.7%;                                    /* 603 of the 1027 column */
  margin-left: auto;
  aspect-ratio: 603 / 420;
  object-fit: cover;
}

.roast__note {
  grid-column: 3;
  grid-row: 2;
  border-top: 1px solid var(--hair);
  padding-top: clamp(10px, .83vw, 21px);          /* rule 2655 -> cap 2673 */
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(14px, .787vw, 20px);
  line-height: 1.47;
  margin: 0;
}

/* ---------- stacked below 900 ---------- */

@media (max-width: 900px) {
  .founder__inner,
  .founder--noportrait .founder__inner { grid-template-columns: minmax(0, 1fr); }
  .founder__media { order: -1; }
  .founder__name  { margin-top: clamp(16px, 4vw, 40px); }

  .roastery__head { grid-template-columns: minmax(0, 1fr); }
  .roastery__steps { margin-top: clamp(28px, 7vw, 70px); }

  .roast__slide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }
  .roast__tall { grid-column: 1; grid-row: 1; margin-top: 0; width: 62%; }
  .roast__wide { grid-column: 1; grid-row: 2; width: 100%; margin-left: 0; }
  .roast__note { grid-column: 1; grid-row: 3; }
}

/* =====================================================================
   Inner page content
   ===================================================================== */

.page-section { padding: clamp(48px, 6vw, 150px) 0; background: var(--cream); }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 900px; }

.page-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 2.5926vw, 64px);
  line-height: 1.1;
  margin-bottom: clamp(18px, 1.6vw, 40px);
}

.prose p {
  font-size: clamp(15px, 1.1111vw, 24px);
  line-height: 1.7;
  max-width: 70ch;
}
.prose p + p { margin-top: 1em; }

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 1024px) {

  /* ---------- menu panel: same card, narrower ---------- */

  /* The card's internal proportions never change — only its width does. A
     full-width panel on a tablet would drive 57px links, so below 1025px the
     card simply gets smaller instead. */
  .menu {
    --menu-w: min(470px, calc(100vw - 24px));
    top: 12px;
    right: 12px;
    max-height: calc(100svh - 24px);
  }

  .tiles__grid { grid-template-columns: minmax(0, 1fr); }
  .tile { aspect-ratio: 4 / 3; }

  .closing {
    min-height: 0;
    padding-top: 60vw;
  }

  /* Not enough room below 1025px for the footer to travel — park it. */
  .sitefoot { position: relative; bottom: auto; }

  .sitefoot__columns { grid-template-columns: minmax(0, 1fr); }

  .sitefoot__sign { display: block; }

  .sitefoot__trigger {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }

  .sitefoot__trigger[aria-expanded="true"] .sitefoot__sign::after { transform: rotate(0); }

  .sitefoot__panel {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows .4s var(--ease);
  }

  .sitefoot__col.is-open .sitefoot__panel { grid-template-rows: 1fr; }

  /* The list is the collapsing grid item, so any padding on it survives the
     0fr row and leaks the first link out of a closed column. The breathing
     room lives on the first and last rows instead. */
  .sitefoot__list { min-height: 0; margin-top: 0; padding: 0; }
  .sitefoot__list li:first-child { padding-top: 10px; }
  .sitefoot__list li:last-child  { padding-bottom: 16px; }
  .sitefoot__list a { line-height: 2.1; }

  .sitefoot__col--about { padding-top: 26px; }
  .sitefoot__heading--plain { margin-bottom: 0; }

  .sitefoot__bottom {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-items: center;
    text-align: center;
    gap: 22px;
  }

  .sitefoot__legal {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .sitefoot__developer {
    justify-self: center;
    text-align: center;
  }
}

@media (min-width: 1025px) {
  .sitefoot__trigger { pointer-events: none; }
  .sitefoot__panel { display: block !important; }
}

@media (max-width: 640px) {
  .read-more { letter-spacing: .09em; }

  /* ---------- menu panel: near full width ---------- */

  .menu {
    --menu-w: calc(100vw - 24px);

    /* Proportional scaling alone gives 42px rows on a phone and 44px type on
       a 640px screen. These three get a floor for touch and a ceiling so the
       type never outgrows the card. Everything else stays in proportion. */
    --m-row: clamp(46px, calc(var(--menu-w) * .114583), 54px);
  }

  /* Proportional would be 34px tall on a phone and 57px on a 640px screen.
     A close button is a touch target before it is a proportion, so it holds
     one size across every phone. */
  .menu__close { width: 108px; height: 44px; }
  .menu__x     { width: 19px;  height: 19px; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    /* The menu's rows are staggered with transition-delay. Zeroing only the
       duration leaves the wait in place, so a row would sit blank for half a
       second and then pop — worse than the animation it replaced. */
    transition-delay: 0s !important;
    animation-delay: 0s !important;
  }
}

/* =====================================================================
   Cafe PAP video hero
   ---------------------------------------------------------------------
   Measured from the reference screenshot at a 2071px-wide viewport, so
   the ratios below are measured / 2071 * 100.

   viewport 2071 x 1027 — the section fills it
   card      x 29 -> 295, y 667 -> 1002        266 x 335 (4:5)
   panel     x 1454 -> 2045                    591 wide, right inset 26
   heading   cap top 621, baseline 641         serif ~29px
   rows      cap tops 674, 709, 744 ...        pitch 34.3, type ~20px
   marker    x 1431 -> 1443                    12 ring, hangs left of the text
   rule      y 970, x 1454 -> 2045             1px, full panel width
   ALL HOUSES cap top 989                      ~14px, widely letter-spaced
   Both blocks sit 25-27 from the bottom and their own side — one gutter.
   ===================================================================== */

.vhero {
  /* The three insets are not equal in the reference: the card sits 29 from
     the left, the panel 26 from the right, and both 25 up from the bottom. */
  --vh-left:   clamp(16px, 1.4003vw, 35px);     /* 29 */
  --vh-right:  clamp(14px, 1.2554vw, 31px);     /* 26 */
  --vh-bottom: clamp(14px, 1.2072vw, 30px);     /* 25 */
  --vh-fade:   2.4s;                            /* crossfade length — long, so one
                                                   clip dissolves into the next
                                                   rather than cutting */

  position: relative;
  height: 100svh;
  overflow: hidden;
  background: #1a2412;
  color: var(--white);
}

/* ---------- the stacked clips ---------- */

/* isolate keeps the clips' z-index inside this box — main.js raises the
   incoming one each time, and without a stacking context of its own those
   values climb past the panel and the video starts swallowing the hovers. */
.vhero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;
  pointer-events: none;
}

/* Every clip sits in the same box. The incoming one is raised above the
   one showing and fades up over it; what is underneath stays fully opaque
   until that fade finishes. Fading both at once would dip to the background
   colour halfway through and read as a flash. main.js drives the z-index. */
.vhero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
}

.vhero__media.is-on {
  opacity: 1;
  z-index: 2;
  /* Not --ease here: that curve front-loads the change, which would put the
     incoming clip near full opacity in the first third and undo the length.
     An even curve spreads the dissolve across the whole 2.4s. */
  transition: opacity var(--vh-fade) cubic-bezier(.4, 0, .6, 1);
}

/* Keeps the white text off a bright frame. One rule — delete it if you
   would rather have the footage untouched. */
.vhero::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.34) 100%);
  pointer-events: none;
}

/* ---------- card, bottom left ---------- */

.vhero__cards {
  position: absolute;
  left: var(--vh-left);
  bottom: var(--vh-bottom);
  z-index: 4;
  width: clamp(132px, 12.844vw, 300px);         /* 266 */
  aspect-ratio: 266 / 335;
}

.vhero__card {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--vh-fade) var(--ease), visibility var(--vh-fade) var(--ease);
}

.vhero__card.is-on { opacity: 1; visibility: visible; }

.vhero__cardimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vhero__cardlabel {
  position: absolute;
  left: 7.9%;                                   /* 21 of 266 */
  right: 7.9%;
  bottom: 6.6%;                                 /* 22 of 335 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8%;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(11px, .7243vw, 17px);        /* 15 */
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
}

.vhero__cardlabel .read-more__arrow { width: clamp(16px, 1.1vw, 26px); }

.vhero__card:hover .read-more__arrow { transform: translateX(.35em); }

/* ---------- panel, bottom right ---------- */

/* The page caption, bottom left, borrowing .hero__caption wholesale. It is
   held off the right half so it can never run under the house list, and
   sits above the film but below the list, which is the only thing here you
   can point at. */
.vhero__caption {
  right: auto;
  max-width: 46%;
  /* 4, not 3: the section's darkening gradient is a ::after at 3 and paints
     last, so at the same level it would wash the caption out. Nothing here
     is clickable, so it also stays out of the pointer's way. */
  z-index: 4;
  pointer-events: none;
}

.vhero__panel {
  position: absolute;
  right: var(--vh-right);
  bottom: var(--vh-bottom);
  z-index: 4;
  /* Shrink-to-fit rather than the measured 591: with the postcodes gone
     there was no second column to fill, so the names sat marooned in the
     middle of the frame. At max-content the block ends where its longest
     line ends and the whole list reads against the right edge. */
  width: max-content;
  max-width: clamp(230px, 28.537vw, 660px);     /* 591 */
}

/* No all-houses link: 71 of space below the last name, exactly what the
   link's margin, rule and cap height used to take up, so the list keeps
   its measured position in the frame. */
.vhero__panel--bare { padding-bottom: clamp(24px, 3.287vw, 71px); }

.vhero__heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(19px, 1.4002vw, 33px);       /* 29 */
  line-height: 1.1;
  margin: 0;
}

.vhero__list {
  list-style: none;
  margin: clamp(7px, .724vw, 18px) 0 0;         /* heading cap 621 -> row cap 674 */
  padding: 0;
}

.vhero__pick {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(8px, .97vw, 23px);
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(14px, .9657vw, 23px);        /* 20 */
  line-height: 1.715;                           /* 34.3 pitch */
  color: rgba(255, 255, 255, .62);
  transition: color .3s var(--ease);
}

.vhero__row.is-on .vhero__pick { color: var(--white); }

.vhero__meta { white-space: nowrap; }

/* The ring hangs in the margin to the left of the names, outside the
   panel's own edge — measured at 1431, with the text starting at 1456. */
.vhero__marker {
  position: absolute;
  left: calc(-1 * clamp(14px, 1.207vw, 29px));  /* 25 */
  top: 50%;
  width: clamp(8px, .5794vw, 14px);             /* 12 */
  height: clamp(8px, .5794vw, 14px);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.vhero__row.is-on .vhero__marker { opacity: 1; }

/* Filled dot, and a ring that sweeps round as the clip plays. When it
   closes, the section moves to the next house. */
.vhero__marker::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 41.6%;                                 /* 5 of 12 */
  height: 41.6%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white);
}

.vhero__ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);                    /* start the sweep at 12 o'clock */
}

.vhero__ring circle {
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.vhero__row.is-on .vhero__ring circle { animation: vhero-sweep var(--vh-cycle, 6s) linear forwards; }

.vhero.is-held .vhero__ring circle { animation-play-state: paused; }

@keyframes vhero-sweep {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

/* ---------- all houses ---------- */

.vhero__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(16px, 1.526vw, 37px);       /* last row cap 914 -> rule 970 */
  padding-top: clamp(9px, .8vw, 20px);          /* rule 970 -> cap 989 */
  border-top: 1px solid rgba(255, 255, 255, .55);
  color: var(--white);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(10px, .676vw, 16px);         /* 14 */
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
}

.vhero__all:hover .read-more__arrow { transform: translateX(.35em); }

/* ---------- narrow screens ---------- */

@media (max-width: 900px) {
  .vhero {
    --vh-left:   clamp(14px, 4vw, 26px);
    --vh-right:  clamp(14px, 4vw, 26px);
    --vh-bottom: clamp(14px, 4vw, 26px);
  }

  /* Side by side there is no room at this width, so the two blocks stack
     against the bottom of the frame — card first, then the list — and come
     out of absolute positioning to do it. */
  .vhero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--vh-right) var(--vh-bottom) var(--vh-left);
  }

  .vhero::after { inset: 22% 0 0; }

  .vhero__panel {
    position: static;
    width: auto;
    max-width: none;
  }

  /* Stacked, not overlaid: the caption joins the column above the list. */
  .vhero__caption {
    position: static;
    max-width: none;
    padding: 0;
    margin-bottom: clamp(18px, 5vw, 34px);
  }

  .vhero__heading { font-size: clamp(19px, 5vw, 26px); }

  .vhero__pick {
    font-size: clamp(14px, 4.1vw, 20px);
    line-height: 1.85;
  }

  .vhero__marker {
    left: 0;
    width: clamp(8px, 2.4vw, 12px);
    height: clamp(8px, 2.4vw, 12px);
  }

  .vhero__row.is-on .vhero__pick { padding-left: clamp(16px, 4.6vw, 24px); }

  .vhero__cards {
    /* relative, not static — the cards inside are absolutely positioned and
       would otherwise size themselves against the whole section. */
    position: relative;
    left: auto;
    bottom: auto;
    width: clamp(120px, 34vw, 190px);
    margin-bottom: clamp(16px, 4.6vw, 30px);
  }

  .vhero__cardlabel {
    font-size: clamp(9px, 2.6vw, 12px);
    letter-spacing: .1em;
    white-space: nowrap;
  }

  .vhero__cardlabel .read-more__arrow { width: clamp(13px, 4vw, 20px); }

  .vhero__all { font-size: clamp(10px, 2.9vw, 13px); }
}

/* No pointer: the sweep runs on its own and a tap picks a house. */
@media (hover: none) {
  .vhero__pick { cursor: default; }
}

/* =====================================================================
   Our Menu — four tabs over the menu itself
   ---------------------------------------------------------------------
   Measured from the reference screenshot at a 2070px-wide viewport, so
   the ratios below are measured / 2070 * 100.

   tab band     x 30 -> 2039, 303 tall · 4 columns 433 wide, gap 72.7
                heading cap 33 (serif ~47) · rule 207 below the band top
                DISCOVER cap 12, 19 under the rule · inactive = white at 50%
   feature      x 30 -> 2039, padding 36 / 30 · field #e1dcd6
                rule across the inner width, label cap 29 under it
                photo 413 x 543 · list x 726 -> 2009, bottom-aligned
   section      rule across the full content width, label cap 29 under it
                list x 1059 -> 2039 (981) · first name cap 30 under the rule
                item rule -> name cap 18 · row pitch 37
                photo 413 x 543, bottom-aligned with the list
   meta         diet mark 781 in from the list's left edge, price flush right
   blocks are 91 apart, every time.
   ===================================================================== */

.mp {
  --mp-gap:    clamp(34px, 4.3961vw, 108px);   /* 91 between blocks */
  --mp-photo:  clamp(120px, 19.9517vw, 480px); /* 413 wide */
  --mp-rule:   clamp(7px, .5314vw, 13px);      /* name ink 18 under the rule */
  --mp-row:    clamp(6px, .5314vw, 13px);      /* row gap — 37 pitch */
  --mp-fs:     clamp(14px, .9179vw, 23px);     /* 19 body */
  --mp-label:  clamp(11px, .7729vw, 19px);     /* 16 section label */

  margin-top: var(--mp-gap);
  margin-bottom: var(--mp-gap);   /* keeps the last block off the footer */
}

/* ---------- the tab strip ---------- */

.mp-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(16px, 3.5106vw, 86px);     /* 72.7 */
  margin: 0 var(--gutter);
  padding: clamp(16px, 2.0773vw, 51px)         /* 43 — heading ink 50 below the band top */
           clamp(12px, 1.4493vw, 35px)         /* 30 */
           clamp(20px, 2.7053vw, 66px);        /* 56 — 66 under the DISCOVER ink */
  background: var(--black);
}

.mp-tab {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: color .3s var(--ease);
}

.mp-tab.is-on { color: var(--white); }

.mp-tab__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 2.2705vw, 56px);      /* 47 */
  line-height: 1;
  color: inherit;
}

/* The blurbs sit on the rule, not under the heading — one line or two,
   the last line always lands the same distance above it. The heading's own
   margin sets the minimum gap; the auto margin absorbs the slack in the
   columns whose blurb is one line shorter. */
.mp-tab__title { margin-bottom: clamp(18px, 2.3188vw, 57px); }  /* 48 */

.mp-tab__blurb {
  margin-top: auto;
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--mp-fs);
  line-height: 1.32;
  color: inherit;
}

.mp-tab__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: clamp(8px, .8213vw, 20px);       /* blurb -> rule 17 */
  padding-top: clamp(9px, .9179vw, 22px);      /* rule -> DISCOVER 19 */
  border-top: 1px solid currentColor;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(11px, .8019vw, 20px);       /* 16.5 */
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  color: inherit;
}

.mp-tab__cta .read-more__arrow {
  width: clamp(18px, 1.2vw, 30px);
  flex: 0 0 auto;
}

.mp-tab:hover .read-more__arrow,
.mp-tab.is-on .read-more__arrow { transform: translateX(.25em); }

/* ---------- a block: label + photo, then the list ---------- */

.mp-block { margin-top: var(--mp-gap); }

.mp-block__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48.806%;    /* list 981 of the 2010 content */
  column-gap: clamp(14px, 1.4493vw, 35px);
  margin: 0 var(--gutter);
  padding-top: clamp(11px, 1.0628vw, 26px);         /* label ink 29 under the rule */
  border-top: 1px solid var(--black);
}

.mp-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mp-label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--mp-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  padding-top: clamp(2px, .1932vw, 5px);   /* sits on the same ink line as the first item */
}

/* Pushed to the bottom of its column, so its lower edge lands level with
   the last line of the list — as it does in the reference. */
.mp-photo {
  margin-top: auto;
  padding-top: clamp(18px, 2.029vw, 50px);   /* label ink -> photo 46 */
  width: var(--mp-photo);
  max-width: 100%;
}

.mp-photo img {
  width: 100%;
  aspect-ratio: 413 / 543;
  object-fit: cover;
  display: block;
}

/* ---------- the list ---------- */

.mp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: var(--mp-fs);
}

/* First item carries no rule of its own — the block's own rule is above
   it — just the 30 of air the reference leaves there. */
.mp-item { padding-top: 0; }

.mp-item + .mp-item {
  margin-top: clamp(19px, 2.2705vw, 56px);     /* last line -> rule 49 */
  padding-top: var(--mp-rule);
  border-top: 1px solid var(--black);
}

.mp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20.2854%;  /* meta block 199 of 981 */
  column-gap: clamp(8px, .7vw, 17px);
  align-items: baseline;
  font-weight: 400;
  line-height: 1.37;       /* wrapped name lines sit 26 apart */
}

.mp-row + .mp-row,
.mp-note + .mp-row { margin-top: var(--mp-row); }

/* Bakery, Cake, Coffee, Other drinks and Cold run as one unbroken column
   in the reference: no rules between the items, and the gap between two
   items is the same as the gap between two lines inside one. */
.mp-list--flat .mp-item + .mp-item {
  margin-top: var(--mp-row);
  padding-top: 0;
  border-top: 0;
}

.mp-row--name { font-weight: 600; }

.mp-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  font-weight: 400;
}

.mp-diet { white-space: nowrap; }

/* The small ring before V / VG. It is inline rather than a flex child: as a
   flex item it made the cell a shade taller than a plain line of text, and
   rows that carry a mark then sat 1.5px further apart than rows that don't,
   which drifts a long list out by 20px. Raised just off the baseline so it
   adds no descent and cannot grow the line box. */
.mp-dot {
  display: inline-block;
  width: .47em;
  height: .47em;
  margin-right: .38em;
  border: 1px solid currentColor;
  border-radius: 50%;
  vertical-align: .06em;
}

.mp-price {
  text-align: right;
  white-space: nowrap;
}

.mp-note {
  margin: clamp(6px, .5797vw, 14px) 0 0;       /* name -> note 38 */
  padding-right: 20.2854%;                     /* clears the price column */
  font-weight: 400;
  line-height: 1.25;
}

/* The line that governs a whole section, under its label in the side
   column. Lighter than the list so it reads as a preface, not an item. */
.mp-blocknote {
  margin: clamp(10px, .8696vw, 21px) 0 0;
  padding-right: clamp(12px, 1.1594vw, 28px);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(12px, .8213vw, 20px);
  line-height: 1.45;
  opacity: .72;
}

/* ---------- the shaded "This spring" block ---------- */

.mp-block--feature .mp-block__inner {
  grid-template-columns: minmax(0, 1fr) 65.8286%;  /* list 1283 of the 1949 inner */
  align-items: end;                                /* list sits on the photo's baseline */
  margin: 0 var(--gutter);
  position: relative;
  padding: clamp(16px, 1.7391vw, 42px) clamp(12px, 1.4493vw, 35px);  /* 36 / 30 */
  border-top: 0;
  background: #e1dcd6;
}

/* Its rule is inside the panel, across the padded width. */
.mp-block--feature {
  position: relative;
}

/* One rule across the whole panel, as in the reference — not one per
   column. It sits inside the panel's padding, so it is drawn rather than
   carried as a border on the two children. */
.mp-block--feature .mp-block__inner::before {
  content: "";
  position: absolute;
  top: clamp(16px, 1.7391vw, 42px);
  left: clamp(12px, 1.4493vw, 35px);
  right: clamp(12px, 1.4493vw, 35px);
  height: 1px;
  background: var(--black);
}

.mp-block--feature .mp-side,
.mp-block--feature .mp-list {
  padding-top: clamp(11px, 1.0628vw, 26px);   /* label ink 29 under the rule */
}

.mp-block--feature .mp-row,
.mp-block--feature .mp-note { padding-right: 0; }

.mp-block--feature .mp-row {
  grid-template-columns: minmax(0, 1fr) 18.0047%;  /* meta 231 of 1283 */
}

.mp-block--feature .mp-note { padding-right: 18.0047%; }

/* Unlike a section, whose own full-width rule sits above the first item,
   the panel's list rules every item including the first. */
.mp-block--feature .mp-item:first-child {
  padding-top: var(--mp-rule);
  border-top: 1px solid var(--black);
}

/* ---------- narrow screens ---------- */

@media (max-width: 900px) {
  .mp-tabs {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(20px, 5vw, 34px);
    column-gap: 0;
    padding: clamp(20px, 5.5vw, 40px) clamp(16px, 4.4vw, 32px);
  }

  .mp-tab__title { font-size: clamp(26px, 7.4vw, 40px); }

  .mp-tab__blurb {
    margin-top: 0;
    padding-top: clamp(10px, 3vw, 20px);
    font-size: clamp(13px, 3.7vw, 17px);
  }

  .mp-block__inner,
  .mp-block--feature .mp-block__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    row-gap: clamp(18px, 5vw, 34px);
  }

  /* Label first, then the list, with the photo last so the prices are not
     pushed below a tall picture. */
  .mp-side {
    display: contents;
  }

  .mp-label     { order: 1; }
  .mp-blocknote { order: 2; padding-right: 0; }
  .mp-list      { order: 3; }
  .mp-photo {
    order: 4;
    margin-top: 0;
    padding-top: 0;
    width: 100%;
  }

  .mp-row,
  .mp-block--feature .mp-row {
    grid-template-columns: minmax(0, 1fr) clamp(88px, 26vw, 130px);
  }

  .mp-note,
  .mp-block--feature .mp-note { padding-right: clamp(88px, 26vw, 130px); }
}

/* =====================================================================
   Private hire — a photo pinned down the left, the Houses scrolling past
   ---------------------------------------------------------------------
   Measured from the reference at a 2070px-wide viewport.

   pinned photo   x 0 -> 679, full bleed left, viewport tall, sticky
   right column   x 710 -> 2039
   heading        ink 196-239, serif ~44
   intro          two lines, cap tops 271 and 296, max ~1000 wide
   rule           376, across the right column
   Available Houses. ink 391-411, serif ~29
   House photo    300 x 406, its lower edge level with the row's last rule
   House rows     437 apart, so 31 of air between two photos
   text block     rule · name +18 · address +56 · rule +133 · body +155
                  · rule +214, and the block sits at the row's bottom
   ===================================================================== */

.ph {
  --ph-gap:   clamp(14px, 1.4976vw, 36px);     /* 31 between the columns */
  --ph-fs:    clamp(14px, .9179vw, 23px);      /* 19 body */

  display: grid;
  grid-template-columns: clamp(120px, 32.8502vw, 800px) minmax(0, 1fr);   /* 680 */
  column-gap: var(--ph-gap);
  padding-right: var(--ph-gap);
  margin-top: clamp(34px, 4.3961vw, 108px);
}

/* The column is as tall as the list; the photo inside it holds still at
   the top of the viewport for the whole ride. NOTHING above this may set
   overflow: hidden, or the sticky quietly stops working. */
.ph__media { position: relative; }

.ph-pin {
  position: sticky;
  top: 0;
  height: 100svh;
}

.ph-pin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph__col {
  min-width: 0;
  padding-top: clamp(40px, 8.744vw, 215px);    /* heading ink 187 below the photo's top */
}

.ph-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 2.1256vw, 52px);      /* 44 */
  line-height: 1.1;
  margin: 0;
}

.ph-intro {
  max-width: clamp(280px, 48.3092vw, 1180px);  /* wraps as the reference does */
  margin: clamp(13px, 1.3527vw, 33px) 0 0;     /* heading ink -> intro 75 */
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--ph-fs);
  line-height: 1.32;
}

.ph-label {
  margin: clamp(22px, 2.8502vw, 70px) 0 0;     /* intro ink -> rule 80 */
  padding-top: clamp(5px, .4831vw, 12px);      /* rule -> label ink 15 */
  border-top: 1px solid var(--black);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(19px, 1.4vw, 33px);         /* 29 */
  line-height: 1.1;
}

.ph-list {
  list-style: none;
  margin: clamp(16px, 1.5942vw, 39px) 0 0;     /* label ink -> first row 40 */
  padding: 0;
}

/* photo | text, and the text block sits on the photo's baseline */
.ph-row {
  display: grid;
  grid-template-columns: clamp(90px, 14.4928vw, 350px) minmax(0, 1fr);   /* 300 */
  column-gap: clamp(10px, 1.2077vw, 30px);                               /* 25 */
  align-items: end;
}

.ph-row + .ph-row { margin-top: clamp(14px, 1.4976vw, 36px); }   /* 31 */

.ph-row__media img {
  width: 100%;
  aspect-ratio: 300 / 406;
  object-fit: cover;
  display: block;
}

.ph-row__text { min-width: 0; }

.ph-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 48px);
  padding-top: clamp(9px, .8696vw, 21px);      /* rule -> name ink 18 */
  border-top: 1px solid var(--black);
}

.ph-line--body {
  margin-top: clamp(20px, 2.1256vw, 52px);     /* address ink -> rule 60 */
  padding-bottom: clamp(7px, .6763vw, 17px);   /* body ink -> rule 17 */
  border-bottom: 1px solid var(--black);
}

.ph-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(17px, 1.3043vw, 31px);      /* 27 */
  line-height: 1.1;
  margin: 0;
}

.ph-address,
.ph-body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--ph-fs);
  line-height: 1.26;
  margin: 0;
}

.ph-address { margin-top: clamp(8px, .7729vw, 19px); }   /* name ink -> address 38 */

.ph-body { max-width: clamp(180px, 23.1884vw, 570px); }   /* wraps in two lines, as the reference does */

/* Visit House / Enquire, both right-aligned with the arrow past the label */
.ph-act {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: clamp(10px, 1.3527vw, 33px);            /* label -> arrow 28 */
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(12px, .8213vw, 20px);       /* 17 */
  line-height: 1;
  white-space: nowrap;
  color: var(--black);
}

.ph-act .read-more__arrow { width: clamp(14px, .8696vw, 21px); }   /* 18 */

.ph-act:hover .read-more__arrow { transform: translateX(.3em); }

/* =====================================================================
   Catering — green field and the scrolling category names
   ---------------------------------------------------------------------
   Measured from the reference at 2038 wide: the split is 50/50, the green
   field runs 0 -> 1020 with 45 of padding, its rules 45 -> 972, rows 87
   apart, and the names run up the photo's edge 33 in from its left side.
   ===================================================================== */

.ct {
  --ct-pad: clamp(18px, 2.2081vw, 54px);       /* 45 */

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(34px, 4.3961vw, 108px);
  margin-bottom: clamp(34px, 4.3961vw, 108px);   /* keeps it off the footer */
  background: #cfd384;
}

.ct-panel {
  padding: clamp(18px, 2.1099vw, 51px) var(--ct-pad) clamp(30px, 3.4347vw, 84px);
  color: #1f2408;
}

.ct-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(30px, 2.8949vw, 70px);      /* 59 */
  line-height: 1.3;                            /* 76.5 pitch */
  letter-spacing: -.01em;
  margin: 0;
}

.ct-intro {
  /* 44ch dropped "executions." onto a line of its own. 46 is enough to
     pull it up; 48 leaves room for rounding without crowding the panel,
     which has ~720px here against this measure's ~530. */
  max-width: 48ch;
  margin: clamp(15px, 1.7174vw, 42px) 0 0;     /* title ink -> intro ink 260 */
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(14px, 1.2758vw, 31px);      /* 26 */
  line-height: 1.58;
}

.ct-tabs { margin-top: clamp(26px, 3.5329vw, 86px); }  /* intro ink -> first rule 144 */

.ct-tab { border-top: 1px solid rgba(31, 36, 8, .55); }

.ct-tab:last-child { border-bottom: 1px solid rgba(31, 36, 8, .55); }

.ct-tab__head { margin: 0; }

.ct-tab__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: clamp(12px, 1.3003vw, 32px) clamp(8px, .9323vw, 23px);   /* rows 87 apart */
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.3739vw, 33px);      /* 28 */
  line-height: 1.2;
}

.ct-chev {
  width: clamp(11px, .6869vw, 17px);           /* 14 */
  height: auto;
  flex: 0 0 auto;
  transition: transform .35s var(--ease);
}

.ct-tab.is-open .ct-chev { transform: rotate(180deg); }

/* Same collapse as the menu and the footer: the panel is the grid, and
   anything with height on the collapsing child defeats it. */
.ct-tab__panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows .4s var(--ease);
}

.ct-tab.is-open .ct-tab__panel { grid-template-rows: 1fr; }

.ct-tab__body {
  min-height: 0;
  margin: 0;
  padding: 0 clamp(8px, .9323vw, 23px);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(13px, 1.1285vw, 27px);      /* 23 */
  line-height: 1.5;
}

.ct-tab.is-open .ct-tab__body { padding-bottom: clamp(14px, 1.5702vw, 38px); }

/* ---------- the photo and the names running up its edge ---------- */

.ct-media {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 54.0726vw, 1102px);
  background: #2a2a20;
}

.ct-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-run {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(14px, 1.619vw, 40px);            /* 33 in from the photo's edge */
  width: clamp(18px, 1.5vw, 36px);
  overflow: hidden;
  pointer-events: none;
}

/* Two identical sets, one above the other, moved up by exactly half the
   track — the second is where the first was when it restarts, so the join
   never shows. */
.ct-run__track {
  display: flex;
  flex-direction: column;
  animation: ct-run var(--ct-run-time, 40s) linear infinite;
}

.ct-run__set {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.ct-run__item,
.ct-run__dot {
  writing-mode: vertical-rl;
  transform: rotate(180deg);                   /* reads bottom to top */
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(11px, 1.0795vw, 26px);      /* 22 */
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: clamp(14px, 1.5vw, 36px) 0;
}

.ct-run__dot::before { content: "\2022"; }

@keyframes ct-run {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* ---------- narrow screens ---------- */

@media (max-width: 900px) {
  .ph {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 var(--ph-gap);
  }

  /* No room to pin a photo beside the list at this width — it leads. */
  .ph__media { margin: 0 calc(-1 * var(--ph-gap)) clamp(20px, 6vw, 40px); }

  .ph-pin {
    position: relative;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .ph-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(12px, 3.6vw, 24px);
  }

  .ph-body { max-width: none; }

  .ph-act { font-size: clamp(11px, 3.1vw, 14px); }

  .ct { grid-template-columns: minmax(0, 1fr); }

  .ct-media {
    order: -1;
    min-height: clamp(260px, 72vw, 460px);
  }
}

/* =====================================================================
   Split panel — text on the cream field, photo on the other half
   ---------------------------------------------------------------------
   Measured from the reference at a 2070px-wide viewport.

   split        cream 0 -> 1033, photo 1034 -> 2069 (50/50), 1200 tall
   text block   x 135 -> 928 (793 wide), centred against the photo
   heading      cap 35 (serif ~50), lines 76 apart, wide tracking, #333
   label        cap 13 (~18), #d3a170, then a 1px #6ec1e4 rule out to 943
   body         ~29px, lines 49 apart, justified, #7a7a7a
   gaps         heading -> label 48 · label -> body 44 · between paras 48
   ===================================================================== */

.sp {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* The same block gap the other pages leave between the hero, the body
     and the footer. */
  margin: clamp(34px, 4.3961vw, 108px) 0;
  background: var(--cream);
}

.sp-panel {
  display: flex;
  align-items: center;                          /* centred, not top-aligned */
  padding: clamp(40px, 5.7971vw, 142px) 0;
}

.sp-panel__inner {
  width: min(100%, clamp(240px, 39.0338vw, 960px));   /* 808 */
  margin-left: clamp(18px, 6.5217vw, 160px);          /* 135 */
  padding-right: clamp(16px, 2vw, 48px);
}

.sp-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4155vw, 59px);       /* 50 */
  line-height: 1.52;                            /* 76 */
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #333333;
  margin: 0;
}

/* Label, then a hairline that runs on to the end of the column. */
.sp-label {
  display: flex;
  align-items: center;
  gap: clamp(10px, .966vw, 24px);               /* 20 */
  margin: clamp(9px, 1.2077vw, 30px) 0 0;       /* heading ink -> label 48 */
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(11px, .8696vw, 21px);        /* 18 */
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  color: #d3a170;
}

.sp-label > span { flex: 0 0 auto; }

.sp-label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #6ec1e4;
}

.sp-para {
  margin: clamp(18px, 2.4638vw, 60px) 0 0;      /* ink between paragraphs 69 */
  max-width: clamp(240px, 38.3092vw, 940px);    /* 793 — the rule runs past it */
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(15px, 1.4010vw, 34px);       /* 29 */
  line-height: 1.69;                            /* 49 */
  text-align: justify;
  color: #7a7a7a;
}

/* The first paragraph sits closer to the label than two paragraphs sit to
   each other. Not :first-of-type — the label is a <p> too, so it is the
   first of that type and the rule would never reach the paragraph. */
.sp-label + .sp-para { margin-top: clamp(9px, 1.1594vw, 28px); }

.sp-media {
  position: relative;
  min-height: clamp(280px, 57.971vw, 1400px);   /* 1200 */
  background: #2a2419;
}

.sp-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .sp { grid-template-columns: minmax(0, 1fr); }

  .sp-media {
    order: -1;
    min-height: clamp(220px, 64vw, 420px);
  }

  .sp-panel { padding: clamp(28px, 8vw, 60px) 0; }

  .sp-panel__inner {
    width: auto;
    margin-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .sp-title { font-size: clamp(20px, 5.4vw, 32px); letter-spacing: .12em; }
  .sp-para  { font-size: clamp(15px, 4.1vw, 21px); max-width: none; }
}

/* =====================================================================
   Home page bands
   ---------------------------------------------------------------------
   Everything under the hero sits in a .band. The band owns the vertical
   rhythm and the horizontal inset; what goes inside it owns nothing of
   either. That is what keeps the sections proportional to one another as
   their contents change, and it means a new band needs no spacing of its
   own — only its contents.

     --band-y     the space above and below every band
     --band-gap   the space between a band's own parts
     inset        var(--gutter), the same line the tile grid starts on
   ===================================================================== */

.band {
  --band-y:   clamp(52px, 5.5556vw, 136px);     /* 120 @2160 */
  --band-gap: clamp(26px, 2.7778vw, 68px);      /* 60  @2160 */

  background: var(--cream);
  padding: var(--band-y) 0;
}

.band__inner { margin-inline: var(--gutter); }

/* A band whose top padding has been collapsed away has nothing to stop its
   first child's top margin escaping and pushing the whole band down — which
   is what happened the moment the locations band lost its heading and began
   with a margined row. */
.band__inner > :first-child { margin-top: 0; }

/* Consecutive bands would otherwise stack two full gaps on top of each
   other. One band's bottom and the next band's top make one gap. */
.band + .band { padding-top: 0; }

.band__label {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;                              /* set size, not scaled */
  line-height: 1.2;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--black);
}

.band__cta { color: var(--black); }

/* ---------- 1. statement ---------- */

/* Eyebrow in a narrow left column, the line itself in a wide right one —
   the proportion is the reference's: a quarter against three quarters. */
.stm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: var(--band-gap);
  align-items: start;
}

.stm__heading {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.4074vw, 52px);       /* 52 @2160 */
  line-height: 1.22;
  letter-spacing: -.005em;
  text-wrap: balance;
}

/* ---------- 2. feature ---------- */

.band--feature { background: #e9e6e0; }

/* A feature band and the band before it are different colours, so the
   collapse above would show a seam. It keeps its own top space. */
.band + .band--feature,
.band--feature + .band { padding-top: var(--band-y); }

.ft__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 2.5926vw, 64px);
  align-items: stretch;
  margin-top: var(--band-gap);
}

.ft__media {
  position: relative;
  /* Stretch alongside all copy, including the shop link at the bottom. */
  min-height: 0;
  overflow: hidden;
  background: #2a2419;
}

.ft__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ft__heading {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 1.9444vw, 42px);       /* 42 @2160 */
  line-height: 1.26;
  text-wrap: balance;
}

/* Supporting copy supplied in S4/S5, smaller than the existing headline. */
.ft__copy {
  margin: clamp(16px, 1.3889vw, 34px) 0 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 1.1111vw, 24px);
  line-height: 1.625;
}

/* Two columns of items, each on its own hairline, as in the reference. */
.ft__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(16px, 1.8519vw, 46px);
  margin-top: clamp(22px, 2.3148vw, 56px);
}

.ft__item {
  display: flex;
  align-items: center;
  gap: clamp(9px, .7407vw, 18px);
  padding: clamp(11px, 1.0185vw, 25px) 0;
  border-top: 1px solid rgba(31, 36, 8, .22);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(13px, .8796vw, 22px);
  line-height: 1.45;
}

.ft__ring {
  flex: 0 0 auto;
  width: clamp(7px, .5093vw, 12px);
  height: clamp(7px, .5093vw, 12px);
  border: 1px solid currentColor;
  border-radius: 50%;
}

/* Bottom right, over a rule — the reference's placement exactly. */
.ft__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--band-gap);
}

.ft__foot .band__cta {
  margin-top: 0;
  padding-top: clamp(10px, .8796vw, 22px);
  border-top: 1px solid rgba(31, 36, 8, .35);
  /* Second rule under SHOP BULAGO 5900 / SHOP JOLLY JUICERY, matching the
     shop cards on the home page. */
  padding-bottom: clamp(10px, .8796vw, 22px);
  border-bottom: 1px solid rgba(31, 36, 8, .35);
}

/* ---------- 3. collection ---------- */

.col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: var(--band-gap);
  align-items: start;
}

.col__heading {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.1296vw, 46px);
  line-height: 1.16;
}

.col__row {
  display: grid;
  grid-template-columns: repeat(var(--col-count, 3), minmax(0, 1fr));
  gap: clamp(14px, 1.3889vw, 34px);
}

/* Four cards or more: the heading goes above them and the row takes the
   full width, rather than five cards squeezing into three quarters of it. */
.col--wide { grid-template-columns: minmax(0, 1fr); }

.col__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #2a2419;
}

.col__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.col__card:hover .col__img { transform: scale(1.03); }

/* The rule belongs to the title, not to the link below it — a card with no
   link (Nut Butters, until it has a page) would otherwise be the only one
   without one. */
.col__title {
  margin: clamp(12px, 1.1111vw, 27px) 0 0;
  padding-bottom: clamp(9px, .8333vw, 20px);
  border-bottom: 1px solid var(--hair);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(14px, 1.0185vw, 25px);
  line-height: 1.3;
}

.col__card .band__cta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: clamp(9px, .8333vw, 20px);
  /* Second rule, closing the link between two hairlines. The first is the
     title's bottom border above it. */
  padding-bottom: clamp(9px, .8333vw, 20px);
  border-bottom: 1px solid var(--hair);
}

/* ---------- 4. partners ---------- */

.pt__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 2.7778vw, 68px);
  margin-top: var(--band-gap);
}

.pt__item { flex: 0 1 auto; }

.pt__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(13px, 1.1111vw, 27px);
  letter-spacing: .04em;
  color: #5a5248;
  transition: color .3s var(--ease);
}

.pt__item a:hover .pt__name { color: var(--black); }

.pt__logo {
  height: clamp(18px, 1.6204vw, 38px);
  width: auto;
  opacity: .75;
}

/* ---------- 5. locations ---------- */

.loc__heading {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.1296vw, 46px);
  line-height: 1.16;
}

/* One column per card, up to four, set from the markup. Fluid columns made
   two cards half a viewport wide each; a hard four left a fifth stranded.
   Beyond four the row wraps, which is what it should do. */
.loc__row {
  display: grid;
  grid-template-columns: repeat(var(--loc-count, 4), minmax(0, 1fr));
  gap: clamp(14px, 1.3889vw, 34px);
  margin-top: var(--band-gap);
}

.loc__card { display: block; }

.loc__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2a2419;
}

.loc__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.loc__card:hover .loc__img { transform: scale(1.03); }

.loc__pill {
  position: absolute;
  top: clamp(10px, .7407vw, 18px);
  left: clamp(10px, .7407vw, 18px);
  padding: clamp(5px, .3704vw, 9px) clamp(10px, .7407vw, 18px);
  border-radius: 999px;
  background: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(11px, .7407vw, 18px);
  line-height: 1.2;
  color: var(--black);
}

.loc__name {
  margin: clamp(12px, 1.1111vw, 27px) 0 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(14px, 1.0185vw, 25px);
  line-height: 1.3;
}

.loc__hours,
.loc__operator {
  margin: clamp(6px, .5556vw, 14px) 0 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(12px, .8333vw, 20px);
  line-height: 1.5;
  color: #6b6459;
}

/* Set off from the hours and telephone above it — it answers a different
   question from the two contact lines it follows. */
.loc__operator { margin-top: clamp(10px, .9259vw, 23px); }

/* ---------- narrow screens ---------- */

@media (max-width: 900px) {
  .stm,
  .col { grid-template-columns: minmax(0, 1fr); }

  .ft__grid { grid-template-columns: minmax(0, 1fr); }
  .ft__media { aspect-ratio: 16 / 10; }
  .ft__list { grid-template-columns: minmax(0, 1fr); }
  .ft__foot { justify-content: flex-start; }

  .col__row,
  .loc__row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

  .pt__row { justify-content: flex-start; gap: clamp(16px, 6vw, 34px); }
}

/* Two feature bands in a row are one beige block, so they share a gap
   rather than stacking two. */
.band--feature + .band--feature { padding-top: 0; }

/* =====================================================================
   Keeping white type legible over photography
   ---------------------------------------------------------------------
   Real photographs are not the even, dark stand-ins the layout was drawn
   against: a bright sky or a sunlit wall lands white text and the white
   wordmark on something near-white. Each shade below sits between the
   picture and the type, never over the type.
   ===================================================================== */

/* ---------- heroes: a shade at the top as well as the foot ----------
   The wordmark and the burger sit in the top corners in white. Both
   heroes already darken their lower half for the caption; this is the
   other end, and it is lighter because less has to survive it. */

.hero::before,
.vhero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(140px, 18vw, 340px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .46) 0%,
                                      rgba(0, 0, 0, .20) 45%,
                                      rgba(0, 0, 0, 0)   100%);
  pointer-events: none;
}

/* Above the film, below the house list and the caption, which own 4. */
.vhero::before { z-index: 3; }
.hero::before  { z-index: 1; }

/* ---------- tiles ----------
   The title and VIEW MORE are white, and .tile__body is sticky: it
   travels the whole height of the tile as the page scrolls, so a shade at
   the top alone would lose the text halfway down. This covers the tile
   top to bottom — strongest where the text starts and where it ends,
   lightest across the middle, so the photograph still reads as a
   photograph.

   It lives inside .tile__media, which carries z-index 0 and so makes its
   own stacking context: the shade can never rise above .tile__body at
   z-index 1, whatever number it is given. */
.tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(0, 0, 0, .50)  0%,
                                      rgba(0, 0, 0, .20) 34%,
                                      rgba(0, 0, 0, .14) 58%,
                                      rgba(0, 0, 0, .40) 100%);
  pointer-events: none;
}

/* Insurance for the worst case — a white plate or a blown highlight
   directly behind a letter, which no gradient can predict. Kept soft
   enough to be invisible on the dark frames. */
.tile__title,
.tile__body .read-more,
.hero__title,
.hero__tagline,
.vhero__heading,
.vhero__pick {
  text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
}
