/* ==========================================================================
   Justin Braase — one stylesheet for every page.
   Order: fonts, tokens, base, layout helpers, buttons, header, footer,
   then each section in the order it appears on the pages, then motion.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable weight) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #022859;
  --navy-soft: #14385a;
  --slate: #495968;
  --ground: #f1efee;
  --panel: #e4e1e0;
  --mist: #d6d4d5;
  --muted: #3c4a60;        /* secondary text on light backgrounds */
  --on-dark: #e6e4e4;      /* body text over the dark end of the gradient */
  --rule: #8c817d;         /* hairlines only: too light for text */
  --rule-light: #bbb6b3;
  --white: #ffffff;

  --dusk: linear-gradient(45deg, #022859 0%, #033059 25%, #14385a 40%, #1f3e5a 50%, #495968 60%, #767477 70%, #8c817d 75%, #bbb6b3 90%, #d6d4d5 100%);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Figtree", "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 32px);
  --band: clamp(64px, 9vw, 104px);   /* vertical padding of the large sections */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Reading text in the page's sections is a little larger. The header and footer keep the size above. */
main { font-size: 1.125rem; }

img, video, svg { max-width: 100%; }
img, video { height: auto; }

a { color: var(--navy); text-underline-offset: 0.2em; }
a:hover { color: var(--slate); }

input, textarea, select, button { font: inherit; }

h1, h2, h3, p { margin: 0; }

h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.375rem, 1.6rem + 2.6vw, 3.25rem);
  line-height: 1.1;
  text-wrap: balance;
}

/* Focus rings: navy on the light surfaces, white on the dark ones, so a filled
   button never carries a ring the same colour as what is behind it. */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.site-header :focus-visible,
.site-footer :focus-visible,
.dusk :focus-visible,
.player :focus-visible { outline-color: var(--white); }
.dusk .form :focus-visible { outline-color: var(--navy); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ground);
  color: var(--navy);
  border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { background: var(--panel); }

/* The dusk gradient. White text belongs on its dark (left) end only. */
.dusk {
  background-color: var(--navy);
  background-image: var(--dusk);
  background-size: max(100%, 1500px) 100%;
  background-repeat: no-repeat;
  color: var(--white);
}
@media (max-width: 700px) {
  /* On a phone the visible slice stays in the dark part of the gradient. */
  .dusk { background-size: 2200px 100%; }
}

/* The dusk gradient, breathing (src/_includes/breath.njk): the same gradient on a layer of its own, with
   three soft lights in its own colors. Together they swell and settle (see "Motion" at the end of this file).
   What is set here is the still picture, which is what visitors who ask for reduced motion see.
   Only transform and opacity ever move. Nothing shows outside the layer, so the Home intros, which let the
   hero overflow, play over it. */
.breath { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.breath i { position: absolute; display: block; }
.breath__sky {
  top: 0;
  bottom: 0;
  left: 0;
  width: max(100%, 1500px);
  background: var(--dusk);
  transform-origin: 100% 0;
}
/* A light is placed by its center, has no visible edge, and takes its color, as r, g, b, from --c. */
.breath__light, .breath__warm, .breath__haze {
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(var(--c), 1), rgba(var(--c), 0.87) 18%, rgba(var(--c), 0.6) 36%, rgba(var(--c), 0.32) 54%, rgba(var(--c), 0.12) 73%, rgba(var(--c), 0.03) 88%, rgba(var(--c), 0));
}
/* The pale light and the warm one are long and lie along the gradient's own bands (top left to bottom
   right), so they read as the gradient brightening and not as spots on top of it. */
.breath__light { --c: 241, 239, 238; left: 92%; top: 30%; width: max(96vw, 900px); aspect-ratio: 2.1; rotate: 45deg; opacity: 0.2; }
.breath__warm { --c: 140, 129, 125; left: 80%; top: 92%; width: max(84vw, 820px); aspect-ratio: 2; rotate: 45deg; opacity: 0.2; }
/* A slate haze over the navy, so the dark end is alive too. */
.breath__haze { --c: 73, 89, 104; left: 6%; top: 96%; width: max(104vw, 900px); aspect-ratio: 1.9; opacity: 0.22; }
/* A faint grain, against the bands a slow gradient shows on a screen. */
.breath__grain { inset: 0; background: url("/assets/img/grain.webp") 0 0 / 128px; }
@media (max-width: 900px) {
  /* On tablets and phones the words cross the panel, so its lights are slate, not pale: white text needs it. */
  .breath__light { --c: 73, 89, 104; left: 100%; top: 8%; width: max(96vw, 720px); }
  .breath__warm { --c: 73, 89, 104; left: 100%; top: 84%; width: max(84vw, 640px); }
  .breath__haze { width: max(104vw, 760px); }
}
@media (max-width: 700px) {
  .breath__sky { width: 2200px; } /* as .dusk above */
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
}

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--small { padding: 10px 22px; }

.btn--light { background: var(--ground); color: var(--navy); }
.btn--light:hover { background: var(--white); color: var(--navy); box-shadow: 0 14px 30px -14px rgba(2, 20, 45, 0.7); }

.btn--ghost-light { color: var(--white); border-color: var(--rule-light); }
.btn--ghost-light:hover { color: var(--white); border-color: var(--white); background: rgba(255, 255, 255, 0.12); }

.btn--outline-light { color: var(--ground); border-color: var(--rule); }
.btn--outline-light:hover { background: var(--ground); border-color: var(--ground); color: var(--navy); }

.btn--navy { background: var(--navy); color: var(--ground); }
.btn--navy:hover { background: var(--navy-soft); color: var(--white); box-shadow: 0 14px 30px -16px rgba(2, 20, 45, 0.8); }

.btn--outline { color: var(--navy); border-color: var(--rule); }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); color: var(--ground); }

/* A text link with an arrow that slides on hover. */
.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  text-decoration: none;
  font-weight: 400;
}
.arrow-link span { transition: transform 0.3s var(--ease); }
.arrow-link:hover span { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--ground);
  box-shadow: 0 1px 0 rgba(241, 239, 238, 0.12), 0 18px 36px -22px rgba(2, 16, 38, 0.9);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 36px;
  padding-block: 14px;
}

/* Orsa Creative on one line: a small ring beside the name, in the logo's lettering (Cormorant Garamond
   Light capitals). The ring is sized in em to the name's letters, so it is never taller than they are. */
.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5em;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
  text-decoration: none;
}
.brand__ring { display: block; width: 1em; height: 1em; }
.brand__name { padding-top: 0.06em; } /* capitals sit a little high in the line; this centres them on the ring */
.brand:hover { color: var(--white); }
.brand:hover .brand__ring { opacity: 0.88; }
/* Sized so the whole row of links still fits at 1060 px, and the name and Menu share one row on phones. */
@media (max-width: 600px) { .brand { font-size: 1.125rem; } }
@media (max-width: 379px) { .brand { font-size: 1rem; letter-spacing: 0.08em; } }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.site-nav__link {
  display: inline-block;
  padding-block: 6px;
  color: var(--mist);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.2s, background-size 0.35s var(--ease);
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--white);
  background-size: 100% 1px;
}

/* The pages come first and a shade stronger; after the divider, this page's own sections. */
.site-nav__link--page { color: var(--white); font-weight: 400; }
.site-nav__group-start { padding-left: 24px; border-left: 1px solid var(--slate); }

.nav-toggle { display: none; }

@media (max-width: 1059px) {
  /* With scripting on, the links fold into a menu button. Without it they simply wrap. */
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: transparent;
    color: var(--ground);
    font-size: 0.9375rem;
    cursor: pointer;
  }
  .nav-toggle__icon { position: relative; width: 18px; height: 10px; }
  .nav-toggle__icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
  }
  .nav-toggle__icon span:first-child { top: 1px; }
  .nav-toggle__icon span:last-child { top: 8px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:first-child { top: 5px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:last-child { top: 5px; transform: rotate(-45deg); }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    background: var(--navy);
    border-top: 1px solid var(--slate);
    box-shadow: 0 30px 40px -30px rgba(2, 16, 38, 0.9);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .js .site-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--ease);
  }
  .js .site-nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 28px;
    font-size: 1.125rem;
  }
  .js .site-nav__list li { border-bottom: 1px solid rgba(214, 212, 213, 0.18); }
  .js .site-nav__link { display: block; padding-block: 15px; background: none; }
  .js .site-nav__group-start { padding-left: 0; border-left: 0; }
  .js .site-nav__group-start::before {
    content: "On this page";
    display: block;
    padding-top: 26px;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mist);
  }
  .js .site-nav__link--page[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
  .js .site-nav__list .site-nav__cta { border-bottom: 0; padding-top: 22px; }
  .js .site-nav__cta .btn { width: 100%; padding-block: 14px; }

  html:not(.js) .site-nav__group-start { padding-left: 0; border-left: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--mist);
  font-size: 0.875rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding-block: 28px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(50px, 7.8vw, 92px) clamp(80px, 11.5vw, 128px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 640px;
}

.hero .eyebrow { color: var(--mist); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.875rem, 6.2vw, 5.5rem);
  line-height: 1.02;
  color: var(--white);
  text-wrap: balance;
}

.hero__lede {
  max-width: 520px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--on-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

/* Landing pages: copy on the dark side, a picture on the light side.
   The copy column is as wide as the paragraph under the headline (520px). The
   picture's column takes everything from there to the page's right boundary, gutter
   included, and the picture sits in the middle of it with the same space on either
   side. The headline may run 40px past the paragraph, and its size is capped, so it
   keeps to two lines without reaching the picture. */
.hero--split .hero__inner {
  --hero-gap: clamp(24px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, min(32.5rem, 52%)) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding-block: clamp(44px, 6.4vw, 76px) clamp(56px, 7.6vw, 88px);
}
.hero--split h1 { margin-right: -2.5rem; font-size: clamp(2.75rem, 5.2vw, 4rem); line-height: 1.04; }
.hero__media {
  position: relative;
  justify-self: center;
  width: calc(100% + var(--gutter) - 2 * var(--hero-gap));
  max-width: 620px;
  margin-right: calc(var(--gutter) * -1);
}
.hero__media img { display: block; width: 100%; box-shadow: 0 40px 70px -40px rgba(2, 16, 38, 0.75); }
/* Photo: an upright portrait, shown whole, so it is narrower than a wide picture would be. */
.hero__media--portrait { max-width: 420px; }

@media (max-width: 860px) {
  .hero--split .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero--split h1 { margin-right: 0; }
  .hero__media { justify-self: start; width: 100%; max-width: 620px; margin-right: 0; }
  .hero__media--portrait { max-width: 340px; }
}

/* ---------- Statement (the plain-language summary under the hero) ---------- */
.statement { padding-block: clamp(64px, 9vw, 104px) 40px; }
.statement p {
  max-width: 980px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.1vw, 2.625rem);
  line-height: 1.3;
  font-weight: 400;
  text-wrap: balance;
}
.statement p + p {
  margin-top: 28px;
  max-width: 720px;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

/* Home: a round portrait beside the line, halfway between the text and the page's right margin.
   A close crop of the same photograph as About. The line's width is set in em, to its longest
   line ("builds custom websites, with"), so the portrait is centered from the words themselves
   and not from empty space after them. If the sentence changes, set this width again. */
.statement--portrait {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  padding-top: clamp(56px, 7vw, 88px);
}
.statement--portrait p { width: 12em; font-size: clamp(1.75rem, 3.7vw, 3rem); line-height: 1.24; } /* fits "Based in Chicagoland, I build" (2026-11-25) */
.statement__photo {
  justify-self: center;
  width: clamp(200px, 23vw, 304px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 50px -34px rgba(2, 16, 38, 0.6);
}
.statement__photo img { display: block; width: 131.6%; max-width: none; margin: -4.6% 0 0 -28.9%; }
/* Photo: the same portrait beside a longer passage, between the services and the questions.
   The words take the room that is left, and the portrait keeps to the right margin. */
.statement--photographer {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(40px, 7vw, 104px);
  padding-block: 16px 56px;
}
.statement--photographer p { width: auto; max-width: 22em; font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.3; }
/* Home since 2026-12-01: the line is a smaller heading over Justin's paragraph, the portrait still beside them. */
.statement__copy { width: 36rem; max-width: 100%; }
.statement__lead { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; font-weight: 400; text-wrap: balance; }
.statement--portrait .statement__copy p { width: auto; margin-top: 18px; font-family: var(--sans); font-size: 1.0625rem; font-weight: 300; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.statement--portrait .statement__lead + p { margin-top: 24px; }
@media (max-width: 760px) {
  .statement--portrait { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .statement--portrait p { width: auto; }
  .statement__photo { order: -1; justify-self: start; width: 168px; }
}

/* ---------- Section heading with a note on the right ---------- */
.section { padding-block: 80px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.section-head p { max-width: 420px; color: var(--muted); }
/* The heading row (until 2026-12-01 Photo and Video had a "Book now" button beside it; now under the services). */
.section-head__title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* ---------- Services: three columns divided by hairlines ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tiers--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tier {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 36px;
  border-left: 1px solid var(--rule-light);
}
.tier:first-child { padding-left: 0; border-left: 0; }
.tier:last-child { padding-right: 0; }

.tier h3 {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.tier__price {
  font-family: var(--serif);
  font-size: clamp(3rem, 4.6vw, 3.75rem);
  line-height: 1;
  font-weight: 300;
}
.tier__price small { font-size: 1.125rem; }
.tier__note { font-size: 0.875rem; color: var(--muted); }
/* "Starting at" and the starting price (since 2026-11-30), with an optional note under it. */
.tier__cost { display: flex; flex-direction: column; gap: 6px; }
.tier__from {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tiers--four .tier__price { font-size: clamp(2.5rem, 3.6vw, 3rem); }
.tier__for {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.35;
}
.tier__includes { color: var(--muted); }
.tier ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.tier li { padding: 9px 0; border-top: 1px solid var(--rule-light); }
.tier li:first-child { border-top: 0; padding-top: 0; }

/* A list to scan: a small tick beside each line, no rules between them (services and monthly plans). */
.ticks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.ticks li,
.tier .ticks li,
.tier .ticks li:first-child { position: relative; padding: 0 0 0 30px; border: 0; text-wrap: pretty; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.5em;
  width: 13px;
  height: 7px;
  border-left: 1.5px solid var(--slate);
  border-bottom: 1.5px solid var(--slate);
  transform: rotate(-45deg);
}
.tier .ticks { margin-top: 6px; }
.plan__body .ticks { margin-top: 10px; }

.fine-print {
  padding-top: 24px;
  border-top: 1px solid var(--rule-light);
  font-size: 0.875rem;
  color: var(--muted);
}
/* Home: what every website comes with, under the three websites, at the size of the lists above it. */
.fine-print--full { font-size: inherit; text-wrap: pretty; }
/* Photo and Video: under the services, the terms line on the left and "Book now" on the right, on one ruled line.
   Narrow screens: the button goes under the words. */
.services-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 24px; border-top: 1px solid var(--rule-light); }
.services-foot .fine-print { flex: 1 1 320px; max-width: 72ch; padding-top: 0; border-top: 0; }

@media (max-width: 1100px) {
  .tiers--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers--four .tier { border-top: 1px solid var(--rule-light); }
  .tiers--four .tier:nth-child(-n + 2) { border-top: 0; }
  .tiers--four .tier:nth-child(odd) { padding-left: 0; border-left: 0; }
  .tiers--four .tier:nth-child(even) { padding-right: 0; }
}
@media (max-width: 900px) {
  .tiers, .tiers--four { grid-template-columns: minmax(0, 1fr); }
  .tier, .tiers--four .tier, .tiers--four .tier:nth-child(even) {
    padding: 32px 0;
    border-left: 0;
    border-top: 1px solid var(--rule-light);
  }
  .tier:first-child, .tiers--four .tier:first-child { border-top: 0; }
  .tiers--four .tier:nth-child(2) { border-top: 1px solid var(--rule-light); }
}

/* ---------- Add-ons band: text on the left, a ruled list on the right ---------- */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px clamp(48px, 7vw, 96px);
  padding-block: var(--band);
}
.split__intro {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.split__intro > p:not(.eyebrow):not(.split__aside) { max-width: 480px; color: var(--muted); }
.split__aside {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.35;
}

.service-list {
  flex: 1 1 400px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.service-list > div {
  position: relative;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.service-list > div:last-child { border-bottom: 1px solid var(--rule); }
.service-list dt {
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1.25;
}
.service-list dd { margin: 6px 0 0; color: var(--muted); text-wrap: pretty; }
.service-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--navy);
  text-decoration: none;
}
/* The whole row is the link target. */
.service-list a::after { content: ""; position: absolute; inset: 0; }
.service-list a span { font-family: var(--sans); font-size: 1.125rem; transition: transform 0.35s var(--ease); }
.service-list > div:hover a span,
.service-list a:focus-visible span { transform: translateX(8px); }
.service-list > div { transition: padding-left 0.35s var(--ease); }
.service-list > div:hover { padding-left: 10px; }

/* A row's pictures: shut until a pointer rests on the row or the keyboard reaches its link,
   then the row grows to show them. (On a touch screen a tap follows the link, so they stay shut.) */
.service-list .peek {
  margin: 0;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.peek__clip { min-height: 0; overflow: hidden; }
.peek__strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
  padding-top: 18px;
}
.peek__strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.55s var(--ease);
}
.peek__strip--video img { aspect-ratio: 16 / 10; }
.service-list > div:focus-within .peek { grid-template-rows: 1fr; }
.service-list > div:focus-within .peek img { opacity: 1; transform: none; }
@media (hover: hover) {
  .service-list > div:hover .peek { grid-template-rows: 1fr; }
  .service-list > div:hover .peek img { opacity: 1; transform: none; }
}
.peek__strip img:nth-child(2) { transition-delay: 0.05s; }
.peek__strip img:nth-child(3) { transition-delay: 0.1s; }
.peek__strip img:nth-child(4) { transition-delay: 0.15s; }

/* ---------- Monthly plans ----------
   A subsection of Website services on Home, under the three websites: one full-width rule, then
   its heading and note on the left and the plans on the right, starting on the same line. */
.plans {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 80px;
  margin-top: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.plans__intro h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem);
  line-height: 1.15;
  text-wrap: balance;
}
.plans__intro {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plans__intro p { max-width: 400px; color: var(--muted); }
.plans__list {
  flex: 1.4 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.plan {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule-light);
}
.plan:first-child { padding-top: 0; border-top: 0; }
.plan:last-child { padding-bottom: 0; }
.plan__price {
  flex: 0 0 150px;
  font-family: var(--serif);
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 300;
}
.plan__price span { font-size: 1.125rem; }
.plan__body { flex: 1 1 260px; min-width: 0; }
.plan__body h4 { margin: 0 0 6px; font-size: 1.125rem; font-weight: 500; }
.plan__body p { color: var(--muted); }

/* ---------- Process ----------
   Used only by the Art page (off the website) since 2026-11-25, when Home, Photo and Video lost theirs. */
.process { padding-block: 64px var(--band); }
.process h2 { margin-bottom: 40px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step { padding-top: 20px; border-top: 1px solid var(--rule); }
.step__when {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
}
.step h3 { margin-bottom: 8px; font-size: 1.125rem; font-weight: 500; line-height: 1.4; }
.step p:last-child { color: var(--muted); }

/* ---------- See the Work (Home; content in src/_data/caseStudies.json) ----------
   Each study has two rows. The client's home page on a laptop, with the phone view over
   its lower right corner (the side where both clients' headlines stay clear), beside the
   copy; then the product shots or the brand design, beside the services and the link.
   Every other study puts the copy first. */
.cases { padding-top: 24px; }
.cases__list {
  display: grid;
  gap: clamp(72px, 10vw, 128px);
  padding-top: clamp(48px, 6vw, 72px);
}
.case {
  --overhang: clamp(24px, 4vw, 48px);
  --bezel: #0c1522;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 4.5vw, 56px) clamp(36px, 5.5vw, 80px);
  align-items: start;
}
.case__media, .case__body { grid-row: 1; }
.case__extra, .case__more { grid-row: 2; }
.case__media, .case__extra { grid-column: 1; min-width: 0; }
.case__body, .case__more { grid-column: 2; }
.case--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.case--flip .case__media, .case--flip .case__extra { grid-column: 2; }
.case--flip .case__body, .case--flip .case__more { grid-column: 1; }

.case__media { margin: 0; min-width: 0; }
.case__devices { position: relative; margin-bottom: var(--overhang); }
/* The laptop: a dark bezel round the screen, on a slightly wider base with a notch. */
.case__laptop { position: relative; }
.case__screen {
  margin-inline: 7%;
  padding: clamp(5px, 0.9vw, 11px) clamp(5px, 0.9vw, 11px) clamp(7px, 1.2vw, 14px);
  border-radius: clamp(8px, 1.3vw, 16px) clamp(8px, 1.3vw, 16px) 0 0;
  background: var(--bezel);
}
.case__screen img { display: block; width: 100%; border-radius: 2px; }
.case__base {
  position: relative;
  height: clamp(9px, 1.3vw, 16px);
  border-radius: 2px 2px 14px 14px / 2px 2px 100% 100%;
  background: linear-gradient(to bottom, #4a5462 0%, #222c3a 45%, var(--bezel) 100%);
  box-shadow: 0 40px 60px -34px rgba(2, 16, 38, 0.7);
}
.case__base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 13%;
  height: 45%;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.12);
}
/* The phone: a slim dark bezel, standing in front of the laptop's lower right corner. */
.case__phone {
  position: absolute;
  right: 2%;
  bottom: calc(-1 * var(--overhang));
  width: 19%;
  padding: 4px;
  border-radius: 20px;
  background: var(--bezel);
  box-shadow: 0 30px 50px -22px rgba(2, 16, 38, 0.6);
}
.case__phone img { display: block; width: 100%; border-radius: 16px; }
.case__caption {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.case__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}
.case__body h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  line-height: 1.08;
  text-wrap: balance;
}
.case__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.35;
  text-wrap: balance;
}
.case__summary { color: var(--muted); text-wrap: pretty; }
.case__highlight h4 { margin: 0 0 4px; font-size: 1.0625rem; font-weight: 500; line-height: 1.4; }
.case__highlight p { color: var(--muted); text-wrap: pretty; }
.case__more { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.case__services { width: 100%; }
.case__label {
  margin-bottom: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
}
.case__services ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-light); }
.case__services li { padding: 9px 0; border-bottom: 1px solid var(--rule-light); }
.case__quote {
  margin: 4px 0 0;
  padding-left: 22px;
  border-left: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.35;
}
.case__quote footer { margin-top: 10px; font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); }
/* Stand-in until the client's words arrive: the same dashed pattern as the other placeholders. */
.case__quote--pending {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 18px 20px;
  border: 1px dashed var(--rule);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(140, 129, 125, 0.12) 14px 15px), var(--panel);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}
.case__link { margin-top: 4px; }

/* Before/after slider over the laptop's screen. --at is the divider's place (0 to 100%),
   set by site.js. The range input is there for keys and screen readers; a pointer drags
   anywhere on the picture. Without scripts only the finished page shows. */
.compare { --at: 34%; position: relative; overflow: hidden; border-radius: 2px; }
.compare__before, .compare__bar, .compare__range { display: none; }
.js .compare { cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.js .compare__before { display: block; position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--at)) 0 0); }
.js .compare__before img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.js .compare__bar { display: block; position: absolute; inset-block: 0; left: var(--at); width: 0; pointer-events: none; }
.compare__bar::before { content: ""; position: absolute; inset-block: 0; left: -1px; width: 2px; background: var(--white); box-shadow: 0 0 10px rgba(2, 16, 38, 0.45); }
.compare__handle {
  position: absolute;
  top: 27%; /* above the phone, so it is never behind it */
  left: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 6px 18px -4px rgba(2, 16, 38, 0.6);
  transform: translate(-50%, -50%);
}
.compare__tag {
  position: absolute;
  bottom: 12px;
  padding: 3px 10px 4px;
  border-radius: 999px;
  background: rgba(2, 24, 54, 0.82);
  color: var(--white);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.compare__tag--before { right: 12px; }
.compare__tag--after { left: 12px; }
.js .compare__range {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.compare:has(:focus-visible) .compare__handle { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--navy); }

/* Product shots: a row before, a row after, one column to a product. */
.pairs {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: auto;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
}
.pairs img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pairs__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  justify-self: start;
  align-self: center;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

/* Brand design: the client's palette and typefaces, on the rounded white cards of its own sheet. */
.swatches, .faces { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.swatches { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 26px; }
.swatch, .face { background: var(--white); border: 1px solid rgba(66, 87, 89, 0.18); border-radius: 10px; }
.swatch { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 9px; color: #0d0d0d; }
.swatch__color { display: block; height: 72px; margin-bottom: 9px; }
.swatch__name { padding-inline: 9px; font-size: 0.8125rem; font-weight: 500; line-height: 1.35; white-space: nowrap; }
.swatch__hex { padding-inline: 9px; font-size: 0.75rem; line-height: 1.4; color: #5c5c5c; }
.faces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.face { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; color: #0d0d0d; }
.face__sample { display: flex; align-items: center; min-height: 44px; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.face__sample img { display: block; height: auto; max-width: 100%; }
.face--allura .face__sample img { width: 176px; }
.face--inter .face__sample img { width: 150px; }
.face__use { font-size: 0.8125rem; line-height: 1.45; color: #5c5c5c; }
.face__use b { font-weight: 600; color: #0d0d0d; }

@media (max-width: 1100px) {
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .swatch__color { height: 60px; }
  .faces { grid-template-columns: minmax(0, 1fr); }
  .face__sample { min-height: 0; }
}
@media (max-width: 900px) {
  .case, .case--flip { grid-template-columns: minmax(0, 1fr); }
  .case > .case__media, .case > .case__body, .case > .case__extra, .case > .case__more { grid-area: auto; }
  .case__phone { width: 22%; border-radius: 15px; padding: 3px; }
  .case__phone img { border-radius: 12px; }
}
/* Phones: one product to a row, before beside after. */
@media (max-width: 600px) {
  .pairs { grid-template: none; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; }
  .pairs__label { writing-mode: horizontal-tb; transform: none; }
  .compare__handle { width: 32px; height: 32px; }
  .compare__tag { bottom: 8px; padding: 2px 8px 3px; font-size: 0.625rem; }
  .compare__tag--before { right: 8px; }
  .compare__tag--after { left: 8px; }
}

/* ---------- About ---------- */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 80px;
  padding-block: var(--band);
}
.about__photo {
  flex: 0 1 380px;
  width: 380px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}
/* Under the pointer, the photo grows ever so slightly (Justin, 2026-12-01). The scroll reveal ("Scroll reveals" below) keeps
   its own fade and rise; this only adds scale to it. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about__photo, .about__photo.reveal-armed.is-visible { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), scale 0.9s var(--ease); transition-delay: 0s; }
  .about__photo:hover { scale: 1.07; }
}
.about__copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about__copy > p:not(.eyebrow) { max-width: 30em; color: var(--muted); }

/* ---------- Contact ---------- */
/* A single centred column on the dusk band: the heading, the page's sentence and
   the location sit above the fields, all on one light surface. (The text needs that
   surface: across the middle of the gradient neither white nor navy stays readable.) */
.contact { position: relative; } /* holds the breathing gradient */
.contact__inner { position: relative; padding-block: var(--band); }
/* The card is as wide as the page's content: its edges line up with every other
   section's (the `.wrap` it sits in sets that width). */
.contact__card {
  padding: clamp(32px, 6vw, 64px) clamp(24px, 6vw, 64px);
  background: var(--ground);
  color: var(--navy);
  box-shadow: 0 40px 80px -48px rgba(2, 16, 38, 0.7);
}
/* Under the pointer, the card grows ever so slightly, as the About photo does (Justin, 2026-12-01). It is much larger
   than the photo, so it grows by less (1.04; the photo 1.07, raised from 1.03 and 1.02 the same day: "too subtle"). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .contact__card, .contact__card.reveal-armed.is-visible { rotate: var(--tilt, 0deg); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), scale 0.9s var(--ease), rotate 0.6s var(--ease); transition-delay: 0s; } /* --tilt: site.js turns the card toward the pointer */
  .contact__card:hover { scale: 1.04; }
}
.contact__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 40px);
  text-align: center;
}
.contact__intro h2 { font-size: clamp(2.5rem, 1.7rem + 2.8vw, 3.5rem); line-height: 1.08; }
.contact__intro p { max-width: 640px; color: var(--muted); text-wrap: balance; }
.contact__intro .contact__place {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field label {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.field:focus-within label { color: var(--navy); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }

/* Fields are a single line under the text, with no box. */
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--slate);
  border-radius: 0;
  background-color: transparent;
  color: var(--navy);
  font-size: 1.125rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { display: block; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23022859' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 12px 8px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.field input:hover,
.field textarea:hover,
.field select:hover { border-bottom-color: var(--navy); }
/* Focus thickens the line to 2px. The transparent outline is what shows when a
   visitor's system replaces page colours (forced-colours mode). The `.form`
   prefix lets these outrank the general `.dusk .form :focus-visible` rule. */
.form .field input:focus-visible,
.form .field textarea:focus-visible,
.form .field select:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-bottom-color: var(--navy);
  box-shadow: 0 1px 0 0 var(--navy);
}
.field [aria-invalid="true"] { border-bottom-color: #8a1c1c; }
.field__error { color: #8a1c1c; font-size: 0.875rem; }

.form .btn { align-self: flex-start; }
.form__status {
  padding: 14px 16px;
  border-left: 2px solid var(--navy);
  background: var(--panel);
  font-size: 0.9375rem;
  color: var(--navy);
}
.form__status--error { border-left-color: #b4432f; } /* the message was not sent */

/* ==========================================================================
   Art page
   ========================================================================== */

/* Three prints fanned out in the hero */
.hero__fan {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__fan img {
  width: 34%;
  box-shadow: 0 30px 60px -28px rgba(2, 16, 38, 0.85);
  transition: transform 0.9s var(--ease);
}
.hero__fan img:nth-child(1) { transform: translateX(16%) rotate(-5deg); }
.hero__fan img:nth-child(2) { position: relative; z-index: 1; width: 42%; }
.hero__fan img:nth-child(3) { transform: translateX(-16%) rotate(5deg); }
.hero__fan:hover img:nth-child(1) { transform: translateX(6%) rotate(-7deg); }
.hero__fan:hover img:nth-child(3) { transform: translateX(-6%) rotate(7deg); }

/* Chips: the size tabs here, the filters on the Video page */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 28px;
}
.chip {
  padding: 9px 20px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-size: 0.9375rem;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-selected="true"],
.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ground);
}

/* Room scenes */
.scenes__stage {
  padding: clamp(16px, 3vw, 44px);
  background: var(--panel);
}
.scene {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.scene + .scene { margin-top: 48px; }
.js .scene + .scene { margin-top: 0; }
.scene[hidden] { display: none; }
.scene .room { width: min(100%, calc(min(66vh, 640px) * var(--ratio, 1.3))); }
.scene figcaption {
  max-width: 640px;
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: center;
}
.scene figcaption strong { font-weight: 500; color: var(--navy); }
.scene cite { font-style: italic; }
.scene__request { display: flex; justify-content: center; margin-top: 10px; color: var(--navy); }
.scenes .fine-print { border-top: 0; }

/* The grid of room scenes under the size tabs */
.rooms__head { margin-top: 72px; }
.room-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 28px;
  margin: 0;
  padding: 44px 0 20px;
  list-style: none;
}
@media (max-width: 1000px) { .room-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 20px; } }
@media (max-width: 600px) { .room-gallery { grid-template-columns: minmax(0, 1fr); gap: 44px; } }
.room-card { min-width: 0; }
.room-card figure { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.room-card figcaption { display: flex; flex-direction: column; gap: 6px; }
.room-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
}
.rooms__subhead {
  margin-top: 72px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
}
.room-card h3,
.room-card h4,
.room-card__price {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.25;
}
.room-card h3 cite,
.room-card h4 cite { font-style: normal; }
.room-card h4 { margin: 0; }
.room-card__meta { font-size: 0.9375rem; color: var(--muted); }
.room-card__meta cite { font-style: italic; }
.room-card .arrow-link { align-self: flex-start; margin-top: 6px; font-size: 0.9375rem; }

/* A room: a photograph of an empty wall with the real print laid over it, to scale */
.room {
  position: relative;
  width: 100%;
  container-type: inline-size;
  overflow: hidden;
}
.room__backdrop {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.room__print {
  position: absolute;
  box-shadow: 0 0 0 2px #20242a, 4px 9px 16px rgba(20, 16, 12, 0.3);
  box-shadow: 0 0 0 max(1.5px, 0.35cqw) #20242a, 0.6cqw 1.3cqw 2.4cqw rgba(20, 16, 12, 0.3);
  transition: left 0.5s var(--ease), bottom 0.5s var(--ease), width 0.5s var(--ease);
}
.room__print img { display: block; width: 100%; height: auto; }
/* On a dark wall the dark edge would disappear, so the print gets a pale one. */
.room--dark .room__print {
  box-shadow: 0 0 0 2px #efeae2, 4px 9px 16px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 max(1.5px, 0.35cqw) #efeae2, 0.6cqw 1.3cqw 2.4cqw rgba(0, 0, 0, 0.5);
}

/* A print in the light of its room. The artwork <img> is the untouched file; three layers
   over it do the toning, all inside the print's own box:
     saturate()   matte paper holds a little less color than a screen
     ::before     "screen" with a dark gray: paper black instead of screen black
     ::after      "multiply" by the room's light map, a small picture (made by
                  `npm run images`) of how white paper looks across that part of the wall.
   The map is placed in the room's own coordinates: --ll, --lb, --lw, --lh on the room say
   where it sits, --pl and --pb on the print say where the print sits, all as percentages
   of the room's width (1cqw). The edge line is drawn on the image so it is lit too, and
   the shadow falls away from the light: right of a window at the left, below a lamp.
   --match on the room is how far the toning goes ("matchLight" in roomGallery.json):
   1 is the full match, 0.6 goes six tenths of the way from the untoned print. It fades
   the two layers and eases the saturation, which is the same as a lighter light map and
   a smaller lift, so the light maps themselves are always made at full strength. */
@property --pl { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --pb { syntax: "<number>"; inherits: true; initial-value: 0; }
@supports (width: 1cqw) and (mix-blend-mode: multiply) {
  .room--lit .room__print {
    --ring: max(1.5px, 0.35cqw);
    isolation: isolate;
    box-shadow: 4px 3px 14px rgba(20, 16, 12, 0.3);
    box-shadow: 1.1cqw 0.7cqw 2.4cqw rgba(20, 16, 12, 0.3);
    transition: left 0.5s var(--ease), bottom 0.5s var(--ease), width 0.5s var(--ease), --pl 0.5s var(--ease), --pb 0.5s var(--ease);
  }
  .room--lit.room--dark .room__print { box-shadow: 1.1cqw 0.7cqw 2.4cqw rgba(0, 0, 0, 0.5); }
  .room--lit.room--lamp .room__print { box-shadow: 0 1.6cqw 2.4cqw rgba(0, 0, 0, 0.55); }
  .room--lit .room__print img { filter: saturate(calc(1 - var(--match) * 0.06)); box-shadow: 0 0 0 var(--ring) #20242a; }
  .room--lit.room--dark .room__print img { box-shadow: 0 0 0 var(--ring) #efeae2; }
  /* Right under a picture light the pale edge would be the brightest thing in the room, so
     it is grayed there: fully at the full match, in proportion below it. */
  .room--lit.room--lamp .room__print img { box-shadow: 0 0 0 var(--ring) rgb(169 165 158 / var(--match)), 0 0 0 var(--ring) #efeae2; }
  /* z-index puts both layers above the image: its filter makes it paint as a layer of its
     own, and without this the ::before, coming first, would sit underneath it and do nothing. */
  .room--lit .room__print::before,
  .room--lit .room__print::after { content: ""; position: absolute; z-index: 1; pointer-events: none; opacity: var(--match); }
  .room--lit .room__print::before { inset: 0; background: rgb(8% 8% 8%); mix-blend-mode: screen; }
  .room--lit .room__print::after {
    inset: calc(-1 * var(--ring));
    background-image: var(--light);
    background-repeat: no-repeat;
    background-size: calc(var(--lw) * 1cqw) calc(var(--lh) * 1cqw);
    background-position: left calc((var(--ll) - var(--pl)) * 1cqw + var(--ring)) bottom calc((var(--lb) - var(--pb)) * 1cqw + var(--ring));
    mix-blend-mode: multiply;
  }
}

/* The gallery */
.art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 52px 28px;
  margin: 0;
  padding: 44px 0 0;
  list-style: none;
}
@media (max-width: 1100px) { .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; } }

.art-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.art-tile__image {
  position: relative;
  display: block;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--panel);
}
.art-tile__image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease);
}
.art-tile__image:hover img,
.art-tile__image:focus-visible img { transform: scale(1.04); }
.js .art-tile__image::after {
  content: "View sizes";
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ground);
  color: var(--navy);
  font-size: 0.8125rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.js .art-tile[data-priced="no"] .art-tile__image::after { content: "View"; }
.js .art-tile__image:hover::after,
.js .art-tile__image:focus-visible::after { opacity: 1; transform: none; }
.art-tile__title {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
}
.art-tile__price { font-size: 0.875rem; color: var(--muted); }
.art-tile__request { margin-top: 4px; font-size: 0.875rem; }

/* Price tables */
.table-scroll { overflow-x: auto; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.price-table th,
.price-table td {
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--rule-light);
  vertical-align: baseline;
  font-weight: 300;
}
.price-table th:last-child,
.price-table td:last-child { padding-right: 0; text-align: right; }
.price-table thead th {
  padding-top: 28px;
  border-bottom-color: var(--rule);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.price-table tbody th,
.price-table__price {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}
.price-table--compact th,
.price-table--compact td { padding-block: 14px; }
.price-table--compact tbody th,
.price-table--compact .price-table__price { font-size: 1.3125rem; }
.band .fine-print { border-top: 0; }
@media (max-width: 600px) {
  /* Keep the price on screen: tighten the table and drop the artist-proof column. */
  .price-table__extra { display: none; }
  .price-table th, .price-table td { padding: 16px 10px 16px 0; }
  .price-table thead th { font-size: 0.6875rem; letter-spacing: 0.12em; }
  .price-table tbody th, .price-table__price { font-size: 1.1875rem; }
  .price-table td { font-size: 0.9375rem; }
}

.print-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px 80px;
  padding-top: 56px;
}
.print-details > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.print-details h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
}
.ruled-list { margin: 0; padding: 0; list-style: none; }
.ruled-list li { padding: 13px 0; border-top: 1px solid var(--rule-light); }
.ruled-list li:first-child { border-top-color: var(--rule); }
.ruled-list li:last-child { border-bottom: 1px solid var(--rule-light); }

/* Dialogs: one photograph here, the lightbox and video player on other pages */
.dialog {
  width: min(1120px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  background: var(--ground);
  color: var(--navy);
  overflow: auto;
  overscroll-behavior: contain;
}
.dialog::backdrop { background: rgba(2, 20, 45, 0.78); }
.dialog__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ground);
}
.dialog__nav { display: flex; gap: 8px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.icon-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--ground); }

.piece__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: 8px clamp(20px, 4vw, 48px) clamp(24px, 4vw, 48px);
}
.piece__visual { display: flex; align-items: flex-start; justify-content: center; }
.piece__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  box-shadow: 0 30px 60px -32px rgba(2, 16, 38, 0.5);
}
.piece__info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.piece__info h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.15; }
.piece__info .btn { align-self: flex-start; margin-top: 6px; }
.piece__note { padding: 14px 16px; border-left: 2px solid var(--navy); background: var(--panel); }

.size-picker { margin: 6px 0 0; padding: 0; border: 0; min-width: 0; }
.size-picker legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.size-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: baseline;
  padding: 12px 10px;
  border-top: 1px solid var(--rule-light);
  cursor: pointer;
  transition: background-color 0.2s;
}
.size-option:last-of-type { border-bottom: 1px solid var(--rule-light); }
.size-option:hover { background: rgba(228, 225, 224, 0.6); }
.size-option:has(input:checked) { background: var(--panel); }
.size-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--navy); transform: translateY(2px); }
.size-option__name { font-weight: 500; }
.size-option__detail { grid-column: 2; font-size: 0.875rem; color: var(--muted); }
.size-option__price { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-family: var(--serif); font-size: 1.5rem; }

.piece__wall { padding-top: 14px; }
.piece__wall .room { max-width: 440px; }
.piece__wall-caption { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }

@media (max-width: 820px) {
  .piece__layout { grid-template-columns: minmax(0, 1fr); }
  .piece__image { max-height: 62vh; }
}

/* ==========================================================================
   Photo and Video pages
   ========================================================================== */

/* The upright hero portrait on the Photo page: "Hero" above (.hero__media--portrait). */

.tag {
  display: inline-block;
  margin-left: 10px;
  padding: 5px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}

/* Photo categories (and the Video page's, which use the same strip and panels):
   a strip of tall tiles, one per kind of work. Choosing a tile opens that
   category's photographs or videos underneath. The tiles show a slice of each
   cover; the photographs that open are shown whole. */
.categories {
  display: flex;
  gap: 12px;
  /* Room for the focus ring, which the sideways scrolling would otherwise clip. */
  margin: -6px;
  padding: 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
/* Narrow screens: fixed-width tiles in a row that scrolls sideways. */
.categories__item {
  flex: 0 0 auto;
  width: clamp(150px, 42vw, 210px);
  scroll-snap-align: start;
  scroll-margin-left: 6px;
}
/* Wide screens: the seven tiles share the row, and the one in use takes a little more. */
@media (min-width: 1100px) {
  .categories { overflow-x: visible; }
  .categories__item {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    transition: flex-grow 0.7s var(--ease);
  }
  .categories__item:hover,
  .categories__item:focus-within { flex-grow: 1.35; }
  .categories__item.is-open { flex-grow: 1.6; }
}

/* Photo and Video pages: the strip is a slider. The tiles keep one width at every screen size and
   the row moves left and right: pointing near either end glides it that way (media.js),
   the arrows step through it, and a touch screen swipes it. */
.categories-slider { position: relative; }
.categories.categories--slider {
  overflow-x: auto;
  scroll-snap-type: none;
  scrollbar-width: none;
}
.categories--slider::-webkit-scrollbar { display: none; }
.categories--slider .categories__item,
.categories--slider .categories__item:hover,
.categories--slider .categories__item:focus-within,
.categories--slider .categories__item.is-open {
  flex: 0 0 auto;
  width: clamp(150px, 42vw, 210px); /* a phone shows about two */
  transition: none;
}
@media (min-width: 700px) {
  .categories--slider .categories__item,
  .categories--slider .categories__item:hover,
  .categories--slider .categories__item:focus-within,
  .categories--slider .categories__item.is-open { width: clamp(200px, 22vw, 290px); } /* about four */
}
/* Video page: the slider keeps the plain strip's tile widths. On a wide screen the tiles
   share the row (nothing to slide); on anything narrower the row slides. */
.categories--slider.categories--compact .categories__item,
.categories--slider.categories--compact .categories__item:hover,
.categories--slider.categories--compact .categories__item:focus-within,
.categories--slider.categories--compact .categories__item.is-open { width: clamp(150px, 42vw, 210px); }
@media (min-width: 1100px) {
  .categories--slider.categories--compact .categories__item,
  .categories--slider.categories--compact .categories__item:hover,
  .categories--slider.categories--compact .categories__item:focus-within,
  .categories--slider.categories--compact .categories__item.is-open {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    transition: flex-grow 0.7s var(--ease);
  }
  .categories--slider.categories--compact .categories__item:hover,
  .categories--slider.categories--compact .categories__item:focus-within { flex-grow: 1.35; }
  .categories--slider.categories--compact .categories__item.is-open { flex-grow: 1.6; }
}
@media (hover: none) {
  .categories.categories--slider { scroll-snap-type: x proximity; }
}
/* The ends fade into the page while there is more to see that way. */
.categories-slider::before,
.categories-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(24px, 5vw, 72px);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.categories-slider::before { left: -6px; background: linear-gradient(to right, var(--ground), rgba(241, 239, 238, 0)); }
.categories-slider::after { right: -6px; background: linear-gradient(to left, var(--ground), rgba(241, 239, 238, 0)); }
.categories-slider.can-prev::before,
.categories-slider.can-next::after { opacity: 1; }
/* The arrows are a bare thin chevron on the faded end of the strip: no circle, no
   shadow. It nudges a little further its way when pointed at. */
.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 72px;
  margin-top: -36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, color 0.25s;
}
.slider-arrow svg { transition: transform 0.35s var(--ease); }
.slider-arrow--prev { left: -4px; }
.slider-arrow--next { right: -4px; }
.slider-arrow:hover { color: var(--slate); }
.slider-arrow--prev:hover svg { transform: translateX(-3px); }
.slider-arrow--next:hover svg { transform: translateX(3px); }
.categories-slider:hover .slider-arrow,
.slider-arrow:focus-visible { opacity: 1; }
.slider-arrow:disabled { opacity: 0; pointer-events: none; }
/* Tablets show the arrows all the time; on a phone the strip is swiped. */
@media (hover: none) and (min-width: 700px) {
  .slider-arrow { opacity: 1; }
}
@media (hover: none) and (max-width: 699.98px) {
  .slider-arrow { display: none; }
}
html:not(.js) .categories-slider { display: none; }

.category {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(280px, 30vw, 420px);
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  container-type: inline-size;
  background: var(--navy);
  color: var(--white);
  text-align: left;
  cursor: pointer;
}
.category__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.5s;
}
.category:hover .category__image,
.category:focus-visible .category__image { transform: scale(1.04); }

/* A navy shade behind the label, so it reads over any photograph. */
.category::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 20, 45, 0.9) 0%, rgba(2, 20, 45, 0.62) 22%, rgba(2, 20, 45, 0) 58%);
  pointer-events: none;
}
.category__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 14px 20px;
}
.category__name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-size: clamp(1.125rem, 15cqi, 1.625rem);
  line-height: 1.1;
}
/* The open category is underlined and the others step back. */
.category[aria-expanded="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: var(--ground);
}
.categories.has-open .category[aria-expanded="false"] .category__image { opacity: 0.5; }
.categories.has-open .category[aria-expanded="false"]:hover .category__image,
.categories.has-open .category[aria-expanded="false"]:focus-visible .category__image { opacity: 0.85; }

/* A category with no photograph yet: the same stand-in pattern as the placeholders. */
.category--empty {
  border: 1px dashed var(--rule);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(140, 129, 125, 0.12) 14px 15px), var(--panel);
  color: var(--navy);
}
.category--empty::after { content: none; }
.category--empty .placeholder__tag { position: absolute; top: 14px; left: 14px; }
.category--empty[aria-expanded="true"]::before { background: var(--navy); }

/* The photographs of the open category. The row grows from nothing to its full height. */
.category-panels { display: grid; grid-template-rows: 1fr; }
/* The side room keeps the Close button's focus ring from being cut off. */
.category-panels__inner { min-width: 0; min-height: 0; margin-inline: -6px; padding-inline: 6px; overflow: hidden; }
.js .category-panels { grid-template-rows: 0fr; }
.js .category-panels.is-open { grid-template-rows: 1fr; }
/* Animated only while the browser is drawing the page, so it can never stay shut. */
.is-painting .category-panels { transition: grid-template-rows 0.7s var(--ease); }
.js .category-panel:not(.is-open) { display: none; }
html:not(.js) .categories,
html:not(.js) .category-panel__close { display: none; }

.category-panel { padding-top: 44px; }
html:not(.js) .category-panel:first-child { padding-top: 0; }
.category-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.category-panel__head h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  line-height: 1.1;
}
.category-panel__close { margin-left: auto; align-self: center; }
.gallery--shots li:last-child { margin-bottom: 0; }
.gallery--shots .placeholder { display: flex; }
.shot { margin: 0; background: var(--panel); }
.shot img { display: block; width: 100%; height: auto; }

/* Albums: a set of photographs from one shoot. In an open category an album is one
   tile, its cover with two more sheets showing behind it and its title over a navy
   shade. Choosing it expands the album in place: the tile becomes a band across the
   gallery, headed by the album's name, holding its photographs. */
.gallery--shots [data-album-tile] { padding: 0 10px 10px 0; }
.album {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--navy);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  /* The sheets behind: each is a ground-coloured block with a hairline edge. */
  box-shadow:
    5px 5px 0 -1px var(--ground), 5px 5px 0 0 var(--rule),
    10px 10px 0 -1px var(--ground), 10px 10px 0 0 var(--rule-light);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.album:hover,
.album:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow:
    7px 7px 0 -1px var(--ground), 7px 7px 0 0 var(--rule),
    14px 14px 0 -1px var(--ground), 14px 14px 0 0 var(--rule-light);
}
.album__image { display: block; width: 100%; height: auto; }
.album::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 20, 45, 0.88) 0%, rgba(2, 20, 45, 0.55) 20%, rgba(2, 20, 45, 0) 50%);
  pointer-events: none;
}
.album__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 18px 16px;
}
.album__name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }

.album__close { display: none; }
.js [data-album-tile]:not(.is-expanded) .album-photos { display: none; }

/* Expanded (and always, without scripts): a band the full width of the gallery, on the
   panel tone under a navy rule, so the album's photographs stay apart from the rest. */
.gallery--shots [data-album-tile]:is(.is-expanded, html:not(.js) *) {
  column-span: all;
  margin: 8px 0 24px;
  padding: 0 20px 20px;
  border-top: 2px solid var(--navy);
  background: var(--panel);
}
[data-album-tile]:is(.is-expanded, html:not(.js) *) > .album {
  display: flex;
  align-items: baseline;
  padding: 16px 0;
  background: none;
  color: var(--navy);
  box-shadow: none;
  transform: none;
}
html:not(.js) [data-album-tile] > .album { cursor: default; }
[data-album-tile]:is(.is-expanded, html:not(.js) *) > .album::after { content: none; }
[data-album-tile]:is(.is-expanded, html:not(.js) *) .album__image { display: none; }
[data-album-tile]:is(.is-expanded, html:not(.js) *) .album__label {
  position: static;
  display: flex;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
}
[data-album-tile].is-expanded .album__close {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.album-photos .shot { background: var(--ground); }

/* Photo galleries */
.gallery-group { padding-top: 44px; }
.gallery-group__title {
  margin-bottom: 18px;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.gallery {
  columns: 3 280px;
  column-gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery--bts { padding-top: 44px; }
.gallery li { break-inside: avoid; margin-bottom: 16px; }
.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel);
}
.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease);
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.035); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 0 var(--ground);
  transition: box-shadow 0.35s var(--ease);
  pointer-events: none;
}
.gallery__item:hover::after,
.gallery__item:focus-visible::after { box-shadow: inset 0 0 0 6px var(--ground); }

/* Stand-ins for samples that do not exist yet. Deliberately impossible to mistake for work. */
.placeholder-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 4 / 5;
  padding: 20px;
  border: 1px dashed var(--rule);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(140, 129, 125, 0.12) 14px 15px), var(--panel);
  text-align: center;
}
.placeholder__tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--ground);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}
.placeholder__label { font-family: var(--serif); font-size: 1.375rem; line-height: 1.25; }
.placeholder__size { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 640px) {
  .placeholder-row { grid-template-columns: minmax(0, 1fr); }
  .placeholder { aspect-ratio: 16 / 9; }
}

/* Lightbox */
.lightbox { width: min(1280px, calc(100vw - 24px)); }
.lightbox__figure {
  margin: 0;
  padding: 0 clamp(12px, 3vw, 32px) clamp(16px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox__figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 190px);
  max-height: calc(100dvh - 190px);
}
.lightbox__figure figcaption { font-size: 0.9375rem; color: var(--muted); text-align: center; }

/* Video cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 1000px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .video-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.video-card[hidden] { display: none; }
.video-card__link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--navy); }
.video-card__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy);
}
.video-card__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.4s;
}
.video-card__link:hover img,
.video-card__link:focus-visible img { transform: scale(1.04); opacity: 0.86; }
.video-card__play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ground);
  box-shadow: 0 10px 24px -10px rgba(2, 16, 38, 0.8);
  transition: transform 0.35s var(--ease), background-color 0.25s;
}
.video-card__play::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 17px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--navy);
}
.video-card__link:hover .video-card__play,
.video-card__link:focus-visible .video-card__play { transform: scale(1.1); background: var(--white); }
.video-card__title { font-weight: 400; line-height: 1.4; }
.video-grid + .fine-print { margin-top: 40px; }
/* Upright videos (YouTube Shorts) sit in a row of their own: more to a row, each card in
   the shape Shorts thumbnails are shown in. A Short's thumbnail is a widescreen picture
   with the upright frame in the middle, and that middle is what the card shows. */
.video-grid + .video-grid { margin-top: 40px; }
.video-grid--upright { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .video-grid--upright { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .video-grid--upright { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
.video-grid--upright .video-card__frame { aspect-ratio: 2 / 3; }
/* A video whose link is still to come: the same stand-in as on the Photo page, in a video's shape. */
.placeholder--video { aspect-ratio: 16 / 9; }
/* The line under whichever category is open. The room below keeps the focus ring
   of its link, and of a card in the last row, from being cut off by the closing row. */
.category-panels__note { margin-top: 40px; margin-bottom: 6px; }

/* The player takes the shape of the video (--ratio is set by media.js for one that is not
   widescreen), and is never taller than the window: 100px is the bar plus the dialog's margin. */
.player {
  width: min(1100px, calc(100vw - 24px), calc((100vh - 100px) * var(--ratio, 1.7778)));
  width: min(1100px, calc(100vw - 24px), calc((100dvh - 100px) * var(--ratio, 1.7778)));
  background: var(--navy);
  color: var(--ground);
}
.player .dialog__bar { background: var(--navy); }
.player .icon-btn { color: var(--ground); }
.player .icon-btn:hover { background: var(--ground); border-color: var(--ground); color: var(--navy); }
.player__title { font-family: var(--sans); font-size: 1rem; font-weight: 400; line-height: 1.4; }
.player__frame { aspect-ratio: var(--ratio, 1.7778); background: #000; }
.player__frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Motion graphics loops */
.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  margin: 0;
  padding: 44px 0 0;
  list-style: none;
}
@media (max-width: 900px) { .loop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .loop-grid { grid-template-columns: minmax(0, 1fr); } }
.loop__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--navy);
  /* Black and white until the example is pointed at, focused or tapped. */
  filter: grayscale(1);
  transition: filter 0.6s var(--ease);
}
.loop:focus-within .loop__video,
.loop.is-lit .loop__video { filter: grayscale(0); }
/* Only where a pointer can rest on it: on a touch screen a tap does this instead (media.js). */
@media (hover: hover) {
  .loop:hover .loop__video { filter: grayscale(0); }
}
.loop__label { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }

/* Accents: a behind-the-scenes photograph beside a heading on the Video page. Small on
   purpose, so it supports the heading and does not become a gallery of its own. */
.accent { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.accent img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Beside "How a video comes together": the heading sits level with the foot of the photograph. */
.process__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: 40px;
}
.process__head h2 { margin-bottom: 0; }
/* Under the introduction to the questions. */
.split__accent { width: 100%; max-width: 400px; margin-top: 22px; aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .process__head { grid-template-columns: minmax(0, 1fr); }
  .split__accent { max-width: none; margin-top: 10px; aspect-ratio: 16 / 9; }
}

/* Questions */
.faq { flex: 1.2 1 440px; min-width: 0; }
.faq__item { border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
}
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; transform: translateY(1px); }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6.5px;
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item summary:hover h3 { color: var(--slate); }
.faq__item > p { max-width: 620px; padding: 0 34px 26px 0; color: var(--muted); }

/* Links to the other services */
.cross-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 0 48px;
  padding-block: var(--band);
}
.cross-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule-light);
  text-decoration: none;
  transition: padding-left 0.35s var(--ease);
}
.cross-link:hover { padding-left: 10px; color: var(--navy); }
.cross-link__title { font-family: var(--serif); font-size: 2rem; line-height: 1.15; }
.cross-link__title span { display: inline-block; font-family: var(--sans); font-size: 1.25rem; transition: transform 0.35s var(--ease); }
.cross-link:hover .cross-link__title span { transform: translateX(8px); }

/* ---------- Motion ----------
   Everything rests in its visible state. The entrance effects below only run
   when the visitor has not asked for reduced motion, and the scroll reveals are
   armed by site.js, so a page without scripts or animation still shows it all. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes dusk-settle {
    from { opacity: 0.5; }
    to { opacity: 0; }
  }
  @keyframes header-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
  }

  /* Page load: the header settles, the gradient brightens, the hero copy rises in turn. */
  .is-painting .site-header__bar { animation: header-in 0.7s var(--ease) both; }
  .is-painting .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--navy);
    opacity: 0;
    pointer-events: none;
    animation: dusk-settle 1.8s ease-out both;
  }
  .is-painting [data-enter] {
    animation: enter 0.9s var(--ease) both;
    animation-delay: calc(var(--order, 0) * 110ms + 150ms);
  }

  /* The dusk gradient breathes: in for 5.5 seconds, out for 7, about five breaths a minute. The haze and the
     warm light follow a moment behind. site.js pauses it (is-away) while its section is off the screen. */
  @keyframes breath-swell {
    0%, 100% { transform: scale(1); }
    44% { transform: scale(1.13); }
  }
  @keyframes breath-light {
    0%, 100% { transform: scale(0.9); opacity: 0.02; }
    44% { transform: scale(1.08); opacity: 0.36; }
  }
  @keyframes breath-haze {
    0%, 100% { transform: scale(0.9); opacity: 0.04; }
    44% { transform: scale(1.1); opacity: 0.4; }
  }
  /* Every page starts the breath at the same moment of its cycle, set from the clock (--breath-at, in the head
     of base.njk), so moving between pages never catches the gradient mid-swell on one and at rest on the next. */
  .breath i { animation: 12.5s cubic-bezier(0.37, 0, 0.63, 1) var(--breath-at, 0s) infinite backwards; }
  .breath .breath__sky { animation-name: breath-swell; }
  .breath .breath__light { animation-name: breath-light; }
  .breath .breath__haze { animation-name: breath-haze; animation-delay: calc(var(--breath-at, 0s) + 0.5s); }
  .breath .breath__warm { animation-name: breath-haze; animation-delay: calc(var(--breath-at, 0s) + 0.9s); }
  .breath.is-away i { animation-play-state: paused; }

  /* Scroll reveals */
  .reveal-armed { opacity: 0; transform: translateY(22px); }
  .reveal-armed.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--order, 0) * 80ms);
  }

  /* ---------- Page transitions: Settle (begin) ----------
     Chosen on 2026-11-30 ("I've decided on Settle, for every browser") from the preview in notes/page-transitions,
     in place of Focus Pull, which only Chrome, Edge and Safari could play. Moving between pages of the site, the
     page being left fades away under the header (0.3 s) and the browser moves on. The next page starts where that
     left off (set before its first frame by the head script in base.njk, from a note the first page left): its
     backdrop comes first, then its hero settles in piece by piece (the small heading, the headline, the words,
     the buttons, the photo), each out of a slight blur. The header stays where it is throughout. Only opacity,
     transforms and blur, so it plays the same in Chrome, Edge, Safari and Firefox.
     The Web Design page (Home) keeps its own load intro: arriving there, its backdrop fades in (xt-fade) and the
     intro plays in place of the hero's settle. At /#about and the other sections there is no intro, so it settles.
     States on <html>, from the head script: xt-out (leaving), xt-in (arrived, before its half starts), xt-go
     (arriving), xt-arrived (stays, so the page's own entrance does not start once the arrival ends). The hidden
     state only applies while the browser paints (is-painting), like the entrance's. Nothing runs for visitors who
     ask for reduced motion (this block is inside the no-preference query, and the script stops). */
  html:is(.xt-out, .xt-in, .xt-go) { overflow-x: hidden; }
  html.xt-out body { pointer-events: none; }
  html.xt-out main { animation: xt-fade-out 0.3s ease both; }
  html.xt-out .site-footer { animation: xt-fade-out 0.25s ease both; }
  html.xt-in.is-painting main,
  html.xt-in.is-painting .site-footer,
  html.xt-in.is-painting .hero [data-enter] { opacity: 0; }
  html:is(.xt-go, .xt-fade) main { animation: xt-fade-in 0.35s ease both; }
  html:is(.xt-go, .xt-fade) .site-footer { animation: xt-fade-in 0.5s ease 0.2s both; }
  html.xt-go .hero [data-enter] { animation: xt-settle-item 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.25s + var(--order, 0) * 0.11s) both !important; }
  /* Arriving this way, the page's own entrance would replay under the arrival, so it is off. */
  html:is(.xt-in, .xt-go, .xt-arrived) .site-header__bar,
  html:is(.xt-in, .xt-go, .xt-arrived) [data-enter] { animation: none !important; }
  html:is(.xt-in, .xt-go, .xt-arrived) .hero::after { content: none !important; }
  /* Going back in menu order (Video to Photo, say), the pieces settle in from the other side. */
  html[data-xt-dir="back"] { --xt-sign: -1; }
  @keyframes xt-fade-out { to { opacity: 0; } }
  @keyframes xt-fade-in { from { opacity: 0; } }
  @keyframes xt-settle-item { from { opacity: 0; transform: translateX(calc(3vw * var(--xt-sign, 1))); filter: blur(6px); } }
  /* ---------- Page transitions: Settle (end) ---------- */

  /* ---------- Doors: drop and lift (begin) ----------
     Choosing a door on Home's starting screen (src/assets/css/home-doors.css), since 30 November 2026, night. First
     half, on Home: the other doors drop away, the chosen one stands on navy (home-doors.css). Second half, here,
     on the page arrived at (or on Home itself for the Web Design door): the same door stands in the same place
     on the same navy (.dr, drawn before the first frame by the head script in base.njk from a note the doors
     left; on Home it is a copy of the door itself), then lifts off the top of the screen, the navy follows it
     up, and the page is underneath with its hero rising into place. So nothing fades and the screen is never
     empty. The picture is never resized. Only transforms and opacity: the same in Chrome, Edge, Safari and
     Firefox. When Home's load intro plays behind the Web Design door, it builds the hero instead of the rise.
     States on <html>: dr-in (the door stands, the page waits under it), dr-go (it lifts). */
  .dr { position: fixed; inset: 0; z-index: 200; overflow: hidden; pointer-events: none; }
  .dr__bg { position: absolute; inset: 0; background: var(--navy); }
  .dr__door { position: absolute; overflow: hidden; color: var(--white); box-shadow: -1px 0 0 rgba(255, 255, 255, 0.16); }
  .dr__door > .door { position: absolute; inset: 0; transition: none; }
  .dr__door .door__line { opacity: 0 !important; transition: none !important; }
  .dr__door .door::before, .dr__door .mocks { transition: none; }
  .dr__pic { position: absolute; inset: 0; background: linear-gradient(rgba(2, 24, 56, 0.7) 0, rgba(2, 30, 68, 0.25) 28%, rgba(2, 24, 56, 0.88) 100%), var(--img) var(--at, center) / cover; }
  .dr__name { position: absolute; font: 300 1rem/1 var(--serif); letter-spacing: -0.012em; white-space: pre; }
  html.dr-in .hero [data-enter] { opacity: 0; }
  html.dr-go .dr__door { animation: dr-lift 0.55s cubic-bezier(0.5, 0, 0.1, 1) both; }
  html.dr-go .dr__bg { animation: dr-lift-bg 0.6s cubic-bezier(0.5, 0, 0.1, 1) 0.07s both; }
  html.dr-go:not(.intro-run, .intro-live) .hero [data-enter] { animation: dr-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.2s + var(--order, 0) * 0.06s) both !important; }
  @keyframes dr-lift { to { transform: translateY(var(--dr-up, -100vh)); } }
  @keyframes dr-lift-bg { to { transform: translateY(-100%); } }
  @keyframes dr-rise { from { opacity: 0; transform: translateY(34px); } }
  /* Doors: reverse (since 2026-12-01). The brand back to Home plays drop and lift backwards: the navy comes down
     over the page, the page's door drops into its place among the four (from the header's data-door; on Home the
     Web Design door itself), then Home's other doors rise beside it (home-doors.css). .dr__words lays out the
     door's name and sentence as the doors do. State on <html>: dr-back. */
  .dr__words { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: clamp(20px, 3vw, 44px) clamp(14px, 1.6vw, 28px); }
  .dr__words .dr__name { position: static; font-size: clamp(1.5rem, 2.7vw, 4.2rem); white-space: normal; }
  .dr__words .dr__line { max-width: 30ch; min-height: 9.3rem; visibility: hidden; color: var(--on-dark); }
  @media (max-width: 999px) { .dr__words .dr__line { display: none; } }
  @media (max-width: 900px) {
    .dr__words { padding: 28px 20px 36px; }
    .dr__words .dr__name { font-size: min(2.75rem, 11vw); }
    .dr__words .dr__line { display: block; min-height: 0; visibility: visible; }
    html.dr-back .dr__door .door__line { opacity: 1 !important; }
  }
  html.dr-back .dr__bg { animation: dr-drop-bg 0.45s cubic-bezier(0.6, 0, 0.2, 1) both; }
  html.dr-back .dr__door { animation: dr-drop 0.5s cubic-bezier(0.6, 0, 0.2, 1) 0.06s both; }
  @keyframes dr-drop { from { transform: translateY(var(--dr-up, -100vh)); } }
  @keyframes dr-drop-bg { from { transform: translateY(-100%); } }
  /* ---------- Doors: drop and lift (end) ---------- */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
