.review-header {
  width: min(calc(100% - 2 * var(--frame-edge)), var(--content));
  margin-inline: auto;
  min-height: calc(70px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.review-header .site-name, .review-menu .menu-wordmark {
  font: 500 32px/1 var(--serif); letter-spacing: -.06em; text-decoration: none; white-space: nowrap;
}
.menu-travel-cover {
  position:fixed; inset:0; min-height:100vh; min-height:100lvh; z-index:2147483600;
  min-height: max(100lvh, var(--visible-page-height, 0px));
  margin:0; padding:0; overflow:hidden; pointer-events:auto; isolation:isolate;
}
.menu-travel-word {
  position:absolute; box-sizing:border-box; margin:0; border:0; text-decoration:none;
}
.menu-departure-colour {
  position:absolute; inset:0; pointer-events:none;
}
.review-menu [data-travelling-word] { opacity:0; }
.review-menu > .menu-travel-cover { touch-action:none; }
html[data-menu-arrival="cover"] { background:var(--viewport-colour); }
html[data-menu-arrival="reveal"] > .menu-travel-cover {
  mask-image: radial-gradient(circle closest-side, #000 calc(100% - 2 * var(--flood-feather)), transparent);
  mask-repeat: no-repeat;
  animation:menu-destination-reveal 440ms cubic-bezier(.48,.04,.51,1) both;
}
/* Move the mask's corner as it shrinks so its centre stays on the selected word.
   Native mask dimensions interpolate continuously in Firefox as well as WebKit. */
@keyframes menu-destination-reveal {
  from {
    mask-size: calc(2 * var(--arrival-radius)) calc(2 * var(--arrival-radius));
    mask-position: calc(var(--arrival-x) - var(--arrival-radius)) calc(var(--arrival-y) - var(--arrival-radius));
  }
  to { mask-size: 0px 0px; mask-position: var(--arrival-x) var(--arrival-y); }
}
@media (prefers-reduced-motion:reduce) {html > .menu-travel-cover{display:none;}}
.theme-home .review-header { justify-content: flex-end; border: 0; }
.menu-action {
  display: inline-flex; align-items: center; gap: .8em;
  color: inherit; font: 500 15px/1.25 var(--sans);
  text-decoration: none; min-height: 44px;
}
.menu-action { padding-inline: 6px 0; }
.menu-symbol { display: inline-block; width: 23px; height: 12px; position: relative; }
.menu-symbol::before, .menu-symbol::after {
  content: ""; position: absolute; width: 100%; left: 0; height: 1px;
  background: currentColor; transform-origin: center; transition: transform 220ms ease;
}
.menu-symbol::before { top: 2px; }
.menu-symbol::after { bottom: 2px; }
.menu-action:hover .menu-symbol:not(.close-symbol)::after { transform: scaleX(.72); }
.close-symbol::before { top: 5px; transform: rotate(43deg); }
.close-symbol::after { bottom: 6px; transform: rotate(-43deg); }

.review-menu {
  --menu-colour: #660d17; --menu-ink: #fff4ed; --menu-accent: #ddd7ff;
  position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh;
  height: var(--visible-page-height, 100dvh);
  max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--menu-colour); color: var(--menu-ink); overflow: auto;
  overscroll-behavior: contain; text-align: left;
}
.review-menu:not([open]) { display:none; }
.review-menu[open], .review-menu:not(.menu-enhanced):is(:target,:has(#menu-projects:target)) { display:block; }
.review-menu:not(.menu-enhanced):is(:target,:has(#menu-projects:target)) { z-index:20; }
.review-menu::backdrop { background: transparent; }
/* Once the opening disc covers the page, give Safari the same opaque ground
   at each level it can sample around its controls. Removing the dialog restores
   the underlying page and any Home or Contact swatch it had already selected. */
body:has(.review-menu[open]:not(.menu-opening)),
html[data-menu-arrival="cover"] body {
  background-color: var(--viewport-colour, #660d17);
}
.review-menu[open]:not(.menu-opening)::backdrop {
  background-color: var(--viewport-colour, #660d17);
}
body:has(.review-menu[open]:not(.menu-opening)) > .colour-field {
  display: none;
}
.review-menu[data-disc-ground] {background:transparent;}
.review-menu[data-disc-ground] .colour-field {visibility:hidden;}
/* Safari 26 and later colour the areas behind the status bar and toolbar from the
   fixed element under each viewport edge. A viewport-sized dialog keeps the colour
   recorded when it opened, which is the page behind the transparent opening ground.
   These strips are ordinary edge-anchored bars, so Safari reads the settled Menu
   colour from them and follows each swatch. They need more than 10px of height and
   the full width. They sit on an identical ground and are withheld while a disc
   is travelling. */
.menu-edge { display: none; }
@media (pointer: coarse) {
  .menu-edge {
    display: block; position: fixed; left: 0; right: 0; height: 12px;
    background: var(--menu-colour); pointer-events: none;
  }
  .menu-edge-top { top: 0; z-index: -1; }
  .menu-edge-bottom { bottom: 0; z-index: 2; }
  .review-menu.menu-opening .menu-edge,
  .review-menu:has(.flood-disc) .menu-edge { display: none; }
}
/* The settled bars (the strips above in Menu; the header and .colour-edge on a page) change
   when a disc is retired, which left the areas behind the clock and around the toolbar one
   colour behind for as long as the disc travelled. While a disc is crossing a viewport edge,
   an .edge-lead strip tells Safari the colour that edge is taking. Safari reads the
   background colour of the fixed bar under the middle of each edge from its style. The
   strip's content box has no height, so that colour is never painted and nothing shows on
   the page. home-menu.js inserts each strip and removes it as the last disc is retired, when
   the settled bars carry the same colour. */
.edge-lead { display: none; }
@media (pointer: coarse) {
  .edge-lead {
    display: block; position: fixed; z-index: 9; left: 0; right: 0;
    box-sizing: content-box; height: 0; padding-top: 12px;
    background-clip: content-box; pointer-events: none;
  }
  .edge-lead[data-side="top"] { top: 0; }
  .edge-lead[data-side="bottom"] { bottom: 0; }
  /* A page arriving from Menu, and a painting's swatch colour on its way to Explore by colour,
     cover the screen with a fixed sheet on the root element that is too large for Safari to
     read. Their strips (window.edgeLead in each page's head) lie above that sheet. */
  html > .edge-lead { z-index: 2147483647; }
  /* Safari passes over a scrolling layer that has no background, with everything in it, which
     is what the dialog is while its opening disc travels. This empty image keeps Safari
     reading the two lead strips inside it. Nothing is painted. */
  .review-menu[data-disc-ground] { background-image: linear-gradient(transparent, transparent); }
}
.menu-opening-disc {
  position:fixed; display:block; z-index:-1; border-radius:50%; background:var(--menu-colour);
  filter:blur(var(--flood-feather));
  pointer-events:none; transform-origin:center; animation:open-menu-disc 510ms linear both;
}
/* Reach the final pixel grid before retiring the disc at 510 ms. */
@keyframes open-menu-disc { from {transform:scale(0);} 99%, to {transform:scale(1);} }
.review-menu.menu-opening .review-menu-inner { animation:open-menu-content 185ms ease-out 180ms both; }
@keyframes open-menu-content { from {opacity:0;} to {opacity:1;} }
html:has(.review-menu[open],.review-menu:not(.menu-enhanced):target,.review-menu:not(.menu-enhanced) #menu-projects:target) {overflow:hidden;}
.review-menu-inner {
  width: min(calc(100% - 2 * var(--frame-edge)), var(--content));
  margin-inline: auto; min-height: 100%; display: flex; flex-direction: column;
  padding-bottom: max(30px, env(safe-area-inset-bottom) + 16px);
}
.review-menu-top {
  position: relative; z-index: 1;
  min-height: calc(70px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.menu-destinations {
  display: grid; align-content: start; justify-items: start; flex: 1;
  padding-block: clamp(28px,8vh,105px) 30px; gap: clamp(6px,.8vh,14px);
}
.menu-group {
  min-width: 0; justify-self: stretch;
}
.menu-group > summary { display:block; width:100%; list-style:none; cursor:pointer; }
.menu-group > summary::-webkit-details-marker { display: none; }
.menu-chevron {
  display: inline-block; width: .14em; height: .14em; border-right: 2px solid var(--menu-accent);
  border-bottom: 2px solid var(--menu-accent); transform: translate(.5em,-.28em) rotate(45deg);
}
.menu-group[open] .menu-chevron { transform: translate(.5em,-.20em) rotate(225deg); }
.menu-branch { margin-block: 10px 8px; padding-left: clamp(18px, 2vw, 32px); border-left: 1px solid var(--menu-accent); }
.menu-group ul {
  display: grid; justify-items: start;
  margin: 0; padding: 0; list-style: none;
}
.menu-sublink {
  display: inline-flex; align-items: center; position: relative; min-height: 36px; padding-block: .25rem;
  color: var(--menu-accent); text-decoration: none; font: 500 clamp(18px,1.45vw,23px)/1.25 var(--sans);
}
.menu-destinations :is(a,button,summary) { scroll-margin-block: 5rem 1rem; }
.menu-destination {
  position: relative; display: inline-block; max-width: 100%;
  text-decoration: none; font: 500 clamp(47px, 6.8vw, 104px)/1.02 var(--serif);
  letter-spacing: -.047em; text-wrap: balance;
}
.review-menu.menu-enhanced [data-pointer-hover]:is(.menu-destination,.menu-sublink,.menu-action,.menu-wordmark,.study-title a) {
  text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px;
}
@media (hover:hover) {
  .review-menu:not(.menu-enhanced) :is(.menu-destination,.menu-sublink,.menu-action,.menu-wordmark):hover {
    text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px;
  }
}
.review-menu.menu-enhanced .study-title a:not([data-pointer-hover]) {text-decoration:none;}
.home-gallery {
  width: min(calc(100% - var(--gutter) * 2), var(--content)); margin-inline: auto;
  min-height: calc(100vh - 70px); min-height: calc(100svh - 70px);
  display: grid; align-content: center;
  padding-block: clamp(10px, 1.5vh, 23px) clamp(20px, 3vh, 50px);
}
.home-gallery.has-feature {
  grid-template-columns: minmax(0,.76fr) minmax(0,1.24fr);
  align-items: end; column-gap: clamp(24px, 4.2vw, 75px);
}
.home-identity { padding-bottom: 4px; }
.home-signature {
  margin: 0 0 0 -.04em; color: var(--text);
  font-family: var(--serif); font-weight: 500; font-size: clamp(88px,8.7vw,139px);
  line-height: .79; letter-spacing: -.065em;
}
.home-signature a { color: inherit; text-decoration: none; }
.home-signature span { display: block; }
.home-statement {
  max-width: 35ch; margin: clamp(22px,2.4vw,34px) 0 clamp(20px,2.8vw,40px);
  font: 500 clamp(17px,1.46vw,23px)/1.37 var(--sans); letter-spacing: -.017em; text-wrap: pretty;
}
.feature-study { justify-self: end; margin: 0; }
.feature-image-link { display: block; }
.study-caption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 8px 16px; margin-top: 10px;
}
.study-caption-work { display: grid; gap: 2px; }
.study-title { font: 500 clamp(26px,2.3vw,35px)/1.05 var(--serif); letter-spacing: -.03em; }
.study-title a { text-decoration: none; }
.study-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.study-date, .sample-choices legend { font: 500 12px/1.35 var(--sans); }
.sample-choices { margin: 0; padding: 0; border: 0; min-width: 0; }
.sample-choices legend { margin: 0 0 4px; padding: 0; }
.choice-row { display: flex; gap: 2px; }
.sample-choice { display: grid; place-items: center; position: relative; cursor: pointer; }
.sample-choice input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.choice-chip {
  width: clamp(24px, 2.6vw, 38px); height: clamp(25px,2vw,31px);
  display: grid; place-items: center; background: var(--sample); color: var(--sample-ink);
  box-shadow: inset 0 0 0 1px var(--swatch-edge);
}
.choice-chip::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0; }
.sample-choice input:checked + .choice-chip::after { opacity: 1; }
.sample-choice input:focus-visible + .choice-chip { outline: 2px solid var(--text); outline-offset: 2px; z-index: 1; }
@media (min-width: 761px) and (max-height: 650px) {
  .home-gallery { padding-bottom: 14px; }
}
@media (max-width: 760px) {
  .review-header, .review-menu-top { min-height: calc(58px + env(safe-area-inset-top, 0px)); }
  .home-gallery, .home-gallery.has-feature {
    min-height: 0; grid-template-columns: 1fr; gap: clamp(29px,5vw,40px);
    padding-block: 14px max(36px,env(safe-area-inset-bottom) + 22px);
  }
  .home-signature { font-size: clamp(56px,11.8vw,88px); line-height: .92; }
  .home-signature span { display: inline; }
  .home-statement { max-width: 36ch; margin-block: 13px 10px; font-size: clamp(16px,2.6vw,20px); }
  .feature-study { justify-self: center; grid-row: 1; }
  .menu-destination { font-size: clamp(42px,9.3vw,66px); }
  .menu-destinations { gap: 12px; }
  .menu-sublink { min-height: 44px; font-size: 18px; }
}
@media (max-width: 370px) {
  .home-signature { font-size: 14.6vw; }
  .study-caption { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-symbol::before, .menu-symbol::after, .menu-destination::after, .menu-sublink::after { transition: none; }
  .menu-opening-disc, .review-menu.menu-opening .review-menu-inner { animation:none; }
}

.theme-home, body:has(.contact-work), .review-menu { isolation: isolate; }
.colour-field {
  position: fixed; z-index: -1; overflow: hidden; pointer-events: none;
  inset: calc(-1px - env(safe-area-inset-top, 0px)) calc(-1px - env(safe-area-inset-right, 0px)) auto calc(-1px - env(safe-area-inset-left, 0px));
  height: calc(100% + 2px + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px));
  min-height: calc(max(100lvh, var(--visible-page-height, 0px)) + 2px + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px));
  contain: strict;
}
.flood-disc { position: absolute; display: block; border-radius: 50%; transform: scale(0); will-change: transform; filter: blur(var(--flood-feather)); }
.colour-edge { display: none; }
@keyframes colour-edge-settle { to { visibility: hidden; } }
[data-flood-ink], .menu-destination, .menu-wordmark, .menu-action, .site-name {
  color: var(--local-ink, inherit);
}
[data-flood-ink], .menu-destination, .menu-sublink, .menu-wordmark, .menu-action, .site-name {
  text-shadow: -.6px 0 var(--edge-halo,transparent), .6px 0 var(--edge-halo,transparent),
               0 -.6px var(--edge-halo,transparent), 0 .6px var(--edge-halo,transparent);
}
.review-menu { --text: var(--menu-ink); }
.menu-layout {
  display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
  align-items: start; gap: clamp(28px,6vw,92px); flex: 1;
  padding-block: clamp(26px,5vh,68px) 32px;
}
.menu-destinations { padding-block: 0; }
.review-menu :is(a,button,summary):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.picker-work { min-width: 0; margin: 0; }
.picker-work .feature-image-link img { display: block; width: 100%; height: auto; }
.home-work, .menu-work {
  --art-height: clamp(17rem, calc(100svh - 11rem), 56rem);
  width: min(100%, calc(var(--art-height) * var(--art-aspect)));
}
.menu-work { justify-self: end; }
.menu-work .feature-image-link:focus-visible { outline-offset: 1px; }
.picker-hex { display: block; min-height: 1lh; margin-top: 6px; font: 500 13px/1.35 var(--sans); letter-spacing: .035em; }
.sample-choice { min-height: 31px; }
.menu-work .study-title, .contact-work .study-title { font-size: clamp(22px,2vw,30px); }
.menu-work .study-caption { align-items: start; }
.menu-sublink { color: var(--local-ink,var(--menu-accent)); }
@media (max-width: 760px) {
  .menu-layout { grid-template-columns: minmax(0,1fr); gap: 33px; padding-block: 18px 32px; }
  .menu-destinations { gap: 5px; }
  .menu-work { justify-self: end; --art-height: min(79svh, 46rem); }
  .home-work {
    --art-height: min(79svh, 46rem);
    width: min(calc(100% + min(24px, var(--gutter))), calc(var(--art-height) * var(--art-aspect)));
  }
  .home-work .study-caption { padding-inline: min(9px, 2vw); }
  .sample-choice { min-height: 34px; }
}
@media (min-width:560px) and (max-height:480px) {
  .home-gallery.has-feature, .menu-layout { grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); column-gap: 22px; }
  .home-work, .menu-work { --art-height: max(13rem, calc(100svh - 8rem)); width: min(100%, calc(var(--art-height) * var(--art-aspect))); }
  .home-work { --art-height: max(14rem,calc(100svh - 6rem)); }
  .home-work { grid-row:auto; justify-self:end; }
  .home-signature { font-size: clamp(40px, 7vw, 70px); }
  .home-statement { margin-block: 14px 4px; font-size: 16px; }
  .menu-destination { font-size: clamp(32px, 4.2vw, 48px); }
  .menu-layout { padding-block: 8px 18px; }
  .menu-destinations { gap: 3px; }
}

/* Sticky positioning preserves the header's place in the document while its
   visual layer can leave and return without shifting the artwork or the reader. */
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px) {
  .review-header {
    position: sticky; top: 0; z-index: 8;
    transition: transform 135ms ease-out;
  }
  html[data-header-raised] .review-header::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    inset: 0 calc(0px - var(--frame-edge)) -1px;
    background-color: var(--bg);
  }
  html[data-header-raised] body:has(> .colour-field .flood-disc) .review-header::before {
    background-color: transparent;
  }
  /* Safari 26 and later colour the area behind the status bar from the fixed or sticky bar
     under the middle of the top edge, which here is this header. A bar with no background of
     its own keeps the first colour Safari sampled behind it, so after a Home or Contact
     swatch the area behind the clock stayed on the colour the page opened with. Once a
     swatch has been chosen, the header carries the settled page colour for Safari to read
     and gives it up while a disc travels, so the disc still shows through. It lies on an
     identical ground. While the header is slid away nothing lies under that edge and
     Safari keeps what it last read, so .colour-edge hands it the new colour as each swatch
     settles. It is 12px high because Safari ignores a bar of 10px or less; 6px are on
     screen, for 0.4 seconds. After that the page background shows behind the clock. */
  body:has(> .colour-field) .review-header { background-color: var(--bg); }
  body:has(> .colour-field .flood-disc) .review-header { background-color: transparent; }
  body > .colour-edge {
    display: block; position: fixed; z-index: 7; top: -6px; left: 0; right: 0; height: 12px;
    background-color: var(--bg); pointer-events: none;
    animation: colour-edge-settle 400ms step-end forwards;
  }
  body:has(> .colour-field .flood-disc) > .colour-edge,
  body:has(.review-menu[open]:not(.menu-opening)) > .colour-edge { display: none; }
  html[data-header-away] .review-header:not(:has(:focus-visible)) {
    transform: translateY(calc(-100% - 2px));
  }
  html { scroll-padding-top: calc(65px + env(safe-area-inset-top, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .review-header { transition: none; }
  body > .colour-edge { animation: none; }
}
