/* Public site.

   The look is two independent choices made under Admin > Design and set on
   <html> by design.js: data-palette (colours, see "palettes" near the end)
   and data-layout (see "spotlight layout" at the end; "editorial" is the
   default styling throughout). Colours must come from the tokens below so
   every palette works.

   Default palette "stone": the two colours of the Charlie Doll logo, light
   ink on graphite. */
:root {
  --paper: #e5e5e3;
  --paper-deep: #d8d8d5;
  --sheet: #f4f4f2;
  --ink: #181a1d;
  --graphite: #5a5f66;
  --rule: #c4c6c2;
  --shade: #181a1d;     /* dark surfaces: hero, bands, lightbox */
  --on-shade: #eeeeec;
  --error: #9b2c22;
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --bar-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--sheet); color: var(--ink); padding: 8px 12px; z-index: 30; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ----------------------------------------------------------------- bar */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.site-head {
  max-width: var(--max);
  height: var(--bar-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 1.2rem/1 var(--display);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.wordmark img { width: 34px; height: 34px; flex: none; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  opacity: 0.72;
}
.site-nav a:hover { opacity: 1; }
.site-nav a[aria-current='page'] { opacity: 1; border-bottom-color: currentColor; }

/* On the home page the bar floats over the hero photo until you scroll. */
body[data-page='home'] .site-bar {
  position: fixed;
  left: 0;
  right: 0;
  color: var(--on-shade);
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: color-mix(in srgb, var(--on-shade) 22%, transparent);
}
body[data-page='home'] .site-bar.is-solid {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--rule);
}

/* ---------------------------------------------------------------- hero */
/* Full-bleed photo with the name set large across it. */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--shade);
  color: var(--on-shade);
}
.hero-photo { position: absolute; inset: 0; margin: 0; }
/* Biased towards the bottom so a corner watermark stays in frame. */
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 80%; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--shade) 50%, transparent) 0%, transparent 22%),
    linear-gradient(0deg, color-mix(in srgb, var(--shade) 62%, transparent) 0%, transparent 45%),
    linear-gradient(90deg, color-mix(in srgb, var(--shade) 35%, transparent) 0%, transparent 55%);
  pointer-events: none;
}
.hero-name {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  font: 400 clamp(4.4rem, 15vw, 15rem)/0.86 var(--display);
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  pointer-events: none;
}
.hero-name span { position: absolute; }
.hero-first { left: var(--gutter); top: 22%; }
.hero-last { right: var(--gutter); bottom: 15%; }
.hero-meta {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  bottom: clamp(24px, 5vh, 56px);
  max-width: 32ch;
}
.hero-meta p { margin: 0; font-size: 0.95rem; opacity: 0.85; }
.hero-meta .tagline { font-size: 1.1rem; opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  /* Held on its first frame (hidden) until site.js marks the photo loaded,
     so the fade is seen even when a large photo takes a while to arrive. */
  .hero-photo img { animation: develop 2.6s ease-in-out both paused; }
  .hero-photo img.is-ready { animation-play-state: running; }
  .hero-name span { animation: rise 1.1s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-last { animation-delay: 0.7s !important; }
  @keyframes develop {
    from { opacity: 0; filter: grayscale(1) brightness(0.7); transform: scale(1.04); }
    to { opacity: 1; filter: none; transform: none; }
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(0.12em); }
    to { opacity: 1; transform: none; }
  }
}

/* Editorial hero text stacked on one side (Admin > Design: left, right or
   split). Split is the styling above: first name top left, last name
   bottom right. */
[data-layout='editorial'][data-hero-text='left'] .hero-copy,
[data-layout='editorial'][data-hero-text='right'] .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(28px, 7vh, 72px);
  text-align: left;
  pointer-events: none;
}
[data-layout='editorial'][data-hero-text='right'] .hero-copy { align-items: flex-end; text-align: right; }
[data-layout='editorial'][data-hero-text='left'] .hero-name,
[data-layout='editorial'][data-hero-text='right'] .hero-name { position: static; font-size: clamp(4.4rem, 12vw, 12rem); line-height: 0.86; }
[data-layout='editorial'][data-hero-text='left'] .hero-name span,
[data-layout='editorial'][data-hero-text='right'] .hero-name span { position: static; display: block; }
[data-layout='editorial'][data-hero-text='left'] .hero-meta,
[data-layout='editorial'][data-hero-text='right'] .hero-meta { position: static; margin-top: clamp(18px, 3vh, 30px); }
/* Shade the side the text is on. */
[data-layout='editorial'][data-hero-text='right'] .hero::after {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--shade) 50%, transparent) 0%, transparent 22%),
    linear-gradient(0deg, color-mix(in srgb, var(--shade) 62%, transparent) 0%, transparent 45%),
    linear-gradient(270deg, color-mix(in srgb, var(--shade) 35%, transparent) 0%, transparent 55%);
}

/* ----------------------------------------------------------- comp card */
.stats-wrap { margin: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 128px); }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin: 0;
  padding: 0;
}
.stats div { padding: 18px 12px 20px 0; }
.stats dt { font-size: 0.82rem; color: var(--graphite); }
.stats dd { margin: 2px 0 0; font: 400 1.55rem/1.15 var(--display); font-variant-numeric: lining-nums; }

/* -------------------------------------------------------- selected work */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 32px;
}
.section-title {
  font: 400 clamp(2.2rem, 4.2vw, 3.6rem)/1 var(--display);
  letter-spacing: -0.02em;
  margin: 0;
}
.more-link { font-size: 1rem; text-underline-offset: 5px; color: var(--graphite); }
.more-link:hover { color: var(--ink); }
.selected {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: clamp(12px, 2vw, 28px);
  align-items: start;
  margin-bottom: clamp(64px, 8vw, 120px);
}
.selected figure:nth-child(2) { margin-top: 18%; }
.selected figure:nth-child(3) { margin-top: 6%; }
.selected figure, .tile { margin: 0; }
.selected button, .tile button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.selected button:focus-visible, .tile button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.photo-frame { background: var(--paper-deep); overflow: hidden; }
.photo-frame img { width: 100%; height: auto; transition: opacity 0.4s ease, transform 0.6s ease; }
.photo-frame img[data-loading] { opacity: 0; }
/* Gallery photos zoom in a little on hover and drift towards the pointer
   (site.js sets --mx and --my from -1 to 1). Not the hero or site images. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .selected .photo-frame img, .tile .photo-frame img { transition: opacity 0.4s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .selected button:hover img, .tile button:hover img {
    transform: scale(1.07) translate(calc(var(--mx, 0) * -2.2%), calc(var(--my, 0) * -2.2%));
  }
}
figcaption { font-size: 0.85rem; color: var(--graphite); padding-top: 8px; }

/* ----------------------------------------------------------- book band */
.book-band { background: var(--shade); color: var(--on-shade); }
.book-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.book-logo { width: clamp(96px, 11vw, 150px); height: auto; }
.book-line {
  margin: 0;
  font: 400 clamp(1.7rem, 3.2vw, 2.8rem)/1.15 var(--display);
  letter-spacing: -0.01em;
  max-width: 22ch;
}

/* ---------------------------------------------------------------- pages */
.page-head { padding: clamp(32px, 6vw, 80px) 0 clamp(20px, 3vw, 32px); }
.page-title {
  margin: 0;
  font: 400 clamp(3rem, 9vw, 7.5rem)/0.9 var(--display);
  letter-spacing: -0.03em;
}

/* Portfolio: the filters stay put under the bar while you scroll. */
.filter-bar {
  position: sticky;
  top: var(--bar-h);
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.filter-bar:has(.filters:empty) { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 14px 0; list-style: none; }
.filters button {
  font: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  color: var(--graphite);
  cursor: pointer;
}
.filters button[aria-pressed='true'] { color: var(--ink); border-bottom-color: var(--ink); }
.filters button:hover { color: var(--ink); }
.masonry { display: flex; gap: clamp(10px, 1.6vw, 22px); align-items: flex-start; margin-bottom: clamp(80px, 10vw, 140px); }
.masonry-col { flex: 1 1 0; display: flex; flex-direction: column; gap: clamp(14px, 2vw, 28px); min-width: 0; }
.empty { color: var(--graphite); padding: 60px 0 140px; max-width: 46ch; }
.private-note { margin: 32px 0 0; color: var(--graphite); max-width: 60ch; }

/* Photos come as <picture> (WebP with a JPEG fallback); the wrapper takes
   no space, so the img lays out exactly as if it were there on its own. */
picture { display: contents; }

/* ------------------------------------------------------------ lightbox */
.lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: var(--shade);
  color: var(--on-shade);
}
.lightbox::backdrop { background: var(--shade); }
.lightbox-inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 14px var(--gutter) 18px; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; opacity: 0.8; }
.lightbox-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 12px 0; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox-caption { min-height: 1.6em; text-align: center; opacity: 0.8; font-size: 0.9rem; margin: 0; }
.lb-btn { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px 4px; }
.lb-nav { position: absolute; top: 0; bottom: 0; width: 22%; background: none; border: 0; }
/* The copy of the photo that grows into the viewer and shrinks back (site.js). */
.lb-ghost { position: fixed; margin: 0; object-fit: cover; pointer-events: none; z-index: 2; max-width: none; max-height: none; }
.lb-prev { left: 0; cursor: w-resize; }
.lb-next { right: 0; cursor: e-resize; }

/* --------------------------------------------------------------- about */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 96px);
  padding-top: clamp(32px, 6vw, 80px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.about-photo { margin: 0; background: var(--paper-deep); aspect-ratio: 4 / 5; overflow: hidden; position: sticky; top: calc(var(--bar-h) + 24px); align-self: start; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text .page-title { margin-bottom: clamp(24px, 3vw, 40px); }
.bio { font: 400 1.3rem/1.6 var(--display); max-width: 34em; margin: 0 0 clamp(32px, 4vw, 48px); white-space: pre-line; }

/* Measurements as a ruled table: label left, value right. */
.measure { margin: 0 0 40px; border-top: 1px solid var(--ink); max-width: 34rem; }
.measure div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.measure dt { color: var(--graphite); font-size: 0.92rem; }
.measure dd { margin: 0; font: 400 1.3rem/1.2 var(--display); text-align: right; font-variant-numeric: lining-nums; }

/* ------------------------------------------------------------- contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 96px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.contact-aside p { margin: 0 0 14px; color: var(--graphite); max-width: 36ch; }
.contact-aside .contact-lead { font: 400 1.35rem/1.5 var(--display); color: var(--ink); margin-bottom: 24px; }
.contact-aside a { color: var(--ink); }
form.enquiry { display: grid; gap: 22px; max-width: 620px; }
.field label { display: block; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 12px 14px;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cf-turnstile { min-height: 65px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button {
  display: inline-block;
  justify-self: start;
  font: 500 1rem/1 var(--text);
  background: var(--ink);
  color: var(--sheet);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 15px 26px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.button:hover { background: transparent; color: var(--ink); }
.button-light { background: var(--on-shade); color: var(--shade); border-color: var(--on-shade); }
.button-light:hover { background: transparent; color: var(--on-shade); }
.button:disabled { opacity: 0.55; cursor: progress; }
.form-status { min-height: 1.6em; margin: 0; }
.form-status.error { color: var(--error); }

/* -------------------------------------------------------------- footer */
.site-foot { background: var(--paper); border-top: 1px solid var(--rule); color: var(--graphite); font-size: 0.92rem; }
main:has(> .book-band:last-child) + .site-foot { border-top: 0; }
.foot-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  padding-top: 44px;
  padding-bottom: 36px;
}
.foot-brand .wordmark { color: var(--ink); font-size: 1.1rem; }
.foot-brand .wordmark img { width: 30px; height: 30px; }
.foot-brand p { margin: 10px 0 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: flex-start; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 0.84rem; }

/* -------------------------------------------------------------- mobile */
@media (max-width: 820px) {
  :root { --bar-h: 60px; }
  .wordmark { font-size: 1.05rem; }
  .wordmark img { width: 30px; height: 30px; }
  .hero { height: 88svh; min-height: 520px; }
  .hero-name { font-size: clamp(4rem, 23vw, 8.5rem); }
  .hero-first { top: 20%; }
  .hero-last { bottom: 24%; }
  [data-layout='editorial'][data-hero-text='left'] .hero-name,
  [data-layout='editorial'][data-hero-text='right'] .hero-name { font-size: clamp(3.6rem, 19vw, 7.5rem); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .stats div { padding: 12px 0 14px; border-bottom: 1px solid var(--rule); }
  .stats div:nth-last-child(-n+2) { border-bottom: 0; }
  .stats dd { font-size: 1.35rem; }
  .selected { grid-template-columns: 1fr 1fr; }
  .selected figure:nth-child(2) { margin-top: 22%; }
  .selected figure:nth-child(3) { display: none; }
  .book-inner { grid-template-columns: 1fr; justify-items: start; gap: 22px; }
  .about, .contact { grid-template-columns: 1fr; }
  .about-photo { position: relative; top: auto; }
  .foot-inner { grid-template-columns: 1fr; }
}
/* Phones: five menu items leave no room for the name, so the bar shows the
   spiral mark alone (still a link home; the name is on every page below). */
@media (max-width: 600px) {
  .site-head .wordmark span { display: none; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 0.9rem; }
  :root[data-layout='spotlight'] .site-nav a { font-size: 0.9rem; letter-spacing: 0.01em; }
}
@media (max-width: 370px) {
  .site-nav { gap: 11px; }
  .site-nav a, :root[data-layout='spotlight'] .site-nav a { font-size: 0.84rem; }
}
@media (max-width: 340px) {
  .site-nav { gap: 8px; }
  .site-nav a, :root[data-layout='spotlight'] .site-nav a { font-size: 0.8rem; }
}

/* ----------------------------------------------------------- link page */
/* /links/: a "link in bio" page, with the site menu but no footer. */
.lp {
  min-height: calc(100vh - var(--bar-h));
  min-height: calc(100svh - var(--bar-h));
  display: flex;
  justify-content: center;
  padding: clamp(40px, 8vh, 88px) var(--gutter) 36px;
}
.lp-inner { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lp-photo { width: 120px; height: 120px; margin: 0 0 22px; border-radius: 50%; overflow: hidden; flex: none; }
.lp-photo img { width: 100%; height: 100%; object-fit: cover; }
.lp-photo.has-photo { box-shadow: 0 0 0 1px var(--rule); }
.lp-title { margin: 0; font: 400 clamp(2.1rem, 7vw, 2.9rem)/1.05 var(--display); letter-spacing: -0.01em; }
.lp-intro { margin: 12px 0 0; color: var(--graphite); max-width: 38ch; white-space: pre-line; }
.lp-links { list-style: none; margin: 32px 0 0; padding: 0; width: 100%; display: grid; gap: 12px; }
.lp-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 17px 22px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--sheet);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.lp-label { font-weight: 500; font-size: 1.02rem; line-height: 1.3; }
.lp-note { font-size: 0.85rem; line-height: 1.35; color: var(--graphite); transition: color 0.25s ease; }
.lp-link:hover, .lp-link:focus-visible { background: var(--ink); color: var(--paper); }
.lp-link:hover .lp-note, .lp-link:focus-visible .lp-note { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.lp-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 28px 0 0; font-size: 0.95rem; }
.lp-social a { color: var(--ink); text-underline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lp-link:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-links li { animation: lp-in 0.7s calc(0.15s + var(--i, 0) * 70ms) cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes lp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
[data-layout='spotlight'] .lp-title { font-weight: 200; text-transform: uppercase; letter-spacing: 0.14em; margin-right: -0.14em; font-size: clamp(1.7rem, 6vw, 2.3rem); }
[data-layout='spotlight'] .lp-link { border-radius: 0; padding: 18px 22px; }
[data-layout='spotlight'] .lp-label { font-weight: 400; font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* ------------------------------------------------ work and availability */
/* Contact page: shoot types and terms as a ruled table like the measurements,
   with rates, travel and dates beside it. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bk-jump a { color: var(--ink); text-underline-offset: 4px; }
.bookings { border-top: 1px solid var(--rule); padding: clamp(48px, 6vw, 88px) 0 clamp(80px, 10vw, 140px); scroll-margin-top: calc(var(--bar-h) + 16px); }
.bookings .section-title { margin-bottom: clamp(28px, 4vw, 48px); }
.bk-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.bookings.is-single .bk-grid { grid-template-columns: minmax(0, 46rem); }
.bk-intro p { font: 400 1.25rem/1.6 var(--display); margin: 0 0 1em; max-width: 34em; }
.bk-facts { margin: 8px 0 0; border-top: 1px solid var(--ink); }
.bk-facts > div { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 20px; }
.bk-facts dt { color: var(--graphite); font-size: 0.92rem; padding-top: 2px; }
.bk-facts dd { margin: 0; }
.bk-facts dd p { margin: 0 0 6px; white-space: pre-line; }
.bk-dates { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.bk-dates li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.bk-kind { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--ink); }
.bk-dates .is-away .bk-kind { border-color: var(--rule); color: var(--graphite); }
.bk-when { font-variant-numeric: lining-nums; }
.bk-note { color: var(--graphite); font-size: 0.88rem; }
.bk-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.bk-table thead th { font: 400 0.8rem/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); text-align: left; padding: 14px 0 10px; border-bottom: 1px solid var(--rule); }
.bk-table thead th:last-child, .bk-table td { text-align: right; }
.bk-table tbody th { font: 400 1.2rem/1.25 var(--display); text-align: left; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.bk-table td { padding: 13px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.bk-table td .bk-note { display: block; margin-top: 3px; }
.bk-terms { font-size: 0.95rem; }
.bk-table .is-no th, .bk-table .is-no .bk-terms { color: var(--graphite); }
.bk-key { color: var(--graphite); font-size: 0.85rem; margin: 14px 0 0; }
[data-layout='spotlight'] .bk-intro p { font: 300 1.15rem/1.8 var(--text); }
[data-layout='spotlight'] .bk-table tbody th { font-weight: 300; }
@media (max-width: 820px) {
  .bk-grid { grid-template-columns: 1fr; }
  .bk-facts > div { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- credits */
/* "Photo: Name" for the photographer, linked to the profile they chose. */
.credit { font-size: 0.8rem; letter-spacing: 0.01em; }
.credit a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.credit a:hover { text-decoration-thickness: 2px; }
.lightbox-credit { min-height: 1.4em; margin: 2px 0 0; text-align: center; opacity: 0.7; }
.credit-sep { font-size: 0.8rem; opacity: 0.6; }
.lightbox-credit .credit { white-space: nowrap; }
.lightbox-credit { padding: 0 var(--gutter); line-height: 1.6; }
.cap-credit { display: block; margin-top: 2px; }
.foot-credit { grid-column: 1 / -1; margin: -14px 0 0; font-size: 0.84rem; }
.lp-credit { margin: 14px 0 0; color: var(--graphite); }
/* Over the bottom of the About photo, on a soft shade so it reads on any photo. */
.about-credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 10px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--shade) 60%, transparent), transparent);
  color: var(--on-shade);
}
[data-layout='spotlight'] .foot-credit { margin-top: -18px; }

/* --------------------------------------------------------- page change */
/* Moving between pages: the old page lifts away and the new one rises in,
   with the top bar held still. Uses cross-document view transitions
   (Chrome, Edge, Safari); other browsers fade the new page in instead.
   With "reduce motion" on it is a plain crossfade, nothing moves. */
@view-transition { navigation: auto; }
.site-bar { view-transition-name: site-bar; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: page-out 0.32s cubic-bezier(0.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: page-in 0.6s cubic-bezier(0, 0, 0.2, 1) 0.08s both; }
  @keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
  @keyframes page-in { from { opacity: 0; transform: translateY(16px); } }
  @supports not (view-transition-name: none) {
    main { animation: page-in 0.6s cubic-bezier(0, 0, 0.2, 1) both; }
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
}

/* With "reduce motion" on: no zoom or drift, so gallery photos brighten on
   hover instead, and the hero fades in without moving. */
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .selected .photo-frame img, .tile .photo-frame img { transition: opacity 0.4s ease, filter 0.35s ease; }
  .selected button:hover img, .tile button:hover img { filter: brightness(1.1) contrast(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: hero-fade 1.6s ease-in-out both paused; }
  .hero-photo img.is-ready { animation-play-state: running; }
  @keyframes hero-fade { from { opacity: 0; } }
}

/* ------------------------------------------------------ design loading */
/* First visit only: design.js doesn't know the layout yet, so the page stays
   hidden until site.json arrives, or for 1.2s at most. */
html.design-pending body { visibility: hidden; animation: design-reveal 0s 1.2s forwards; }
@keyframes design-reveal { to { visibility: visible; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Parts of the home page that only the spotlight layout shows. */
.hero-copy { display: contents; }
.hero-scroll, .intro, .section-sub, .view-all, .cap-cat { display: none; }

/* Shown when someone previews an unpublished design from the admin. */
.preview-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 10px 12px 10px 18px;
  background: var(--shade);
  color: var(--on-shade);
  font: 400 0.88rem/1.4 var(--text);
  border: 1px solid color-mix(in srgb, var(--on-shade) 25%, transparent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.preview-bar button { font: inherit; color: var(--shade); background: var(--on-shade); border: 0; padding: 7px 12px; cursor: pointer; white-space: nowrap; }

/* ------------------------------------------------------------ palettes */
/* Each palette sets every colour token. "stone" is the :root default. */
:root[data-palette='ivory'] {
  --paper: #fcfbf8;
  --paper-deep: #efece6;
  --sheet: #ffffff;
  --ink: #1c1b19;
  --graphite: #6f6b64;
  --rule: #e5e1d9;
  --shade: #1c1b19;
  --on-shade: #f7f5f0;
  --error: #9b2c22;
}
:root[data-palette='blush'] {
  --paper: #f4ece9;
  --paper-deep: #e9ddd9;
  --sheet: #fbf7f5;
  --ink: #2b2023;
  --graphite: #7b676b;
  --rule: #dfcfcb;
  --shade: #2b2023;
  --on-shade: #f7eeeb;
  --error: #9b2c22;
}
:root[data-palette='noir'] {
  color-scheme: dark;
  --paper: #111214;
  --paper-deep: #1c1e21;
  --sheet: #1a1c1f;
  --ink: #ecebe7;
  --graphite: #a0a4aa;
  --rule: #2d3034;
  --shade: #070809;
  --on-shade: #ecebe7;
  --error: #f08a7e;
}

/* Lilac: cool, pale and a little unexpected. */
:root[data-palette='lilac'] {
  --paper: #ebe8f0;
  --paper-deep: #dedae7;
  --sheet: #f6f4f9;
  --ink: #1e1a28;
  --graphite: #635d72;
  --rule: #d0cbdb;
  --shade: #1e1a28;
  --on-shade: #f2f0f6;
  --error: #9b2c22;
}
/* Oxblood: dark throughout, warmed with deep red. */
:root[data-palette='oxblood'] {
  color-scheme: dark;
  --paper: #1b1012;
  --paper-deep: #26171a;
  --sheet: #221416;
  --ink: #f0e3e1;
  --graphite: #b49c9e;
  --rule: #3b272a;
  --shade: #100809;
  --on-shade: #f0e3e1;
  --error: #ff9b8f;
}

/* Aubergine: dark throughout, a deep purple. */
:root[data-palette='aubergine'] {
  color-scheme: dark;
  --paper: #1c1226;
  --paper-deep: #281a35;
  --sheet: #22162d;
  --ink: #efe7f5;
  --graphite: #b3a2c4;
  --rule: #3d2c4d;
  --shade: #100a17;
  --on-shade: #efe7f5;
  --error: #ff9b8f;
}

/* ---------------------------------------------------- spotlight layout */
/* One big photo with the name centred over it, then everything centred
   and airy: a short introduction, featured work in two columns, and an
   even grid on the portfolio. Thin sans-serif type throughout. */
:root[data-layout='spotlight'] {
  --display: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --bar-h: 72px;
  --radius: 4px;
}
[data-layout='spotlight'] body { font-weight: 300; letter-spacing: 0.01em; }

/* Bar: tracked capitals, light links. */
[data-layout='spotlight'] .wordmark { font: 400 0.95rem/1 var(--text); letter-spacing: 0.24em; text-transform: uppercase; }
[data-layout='spotlight'] .site-nav a { font-size: 1.02rem; font-weight: 300; letter-spacing: 0.03em; opacity: 0.8; }
[data-layout='spotlight'] body[data-page='home'] .site-bar { border-bottom-color: transparent; }
[data-layout='spotlight'] body[data-page='home'] .site-bar.is-solid { border-bottom-color: var(--rule); box-shadow: 0 1px 12px rgba(0, 0, 0, 0.05); }

/* Hero: full-screen photo, name centred in thin, widely spaced capitals. */
[data-layout='spotlight'] .hero {
  height: 100svh;
  max-height: none;
  display: grid;
  place-items: center;
  text-align: center;
}
[data-layout='spotlight'] .hero-photo img { object-position: 50% 40%; }
[data-layout='spotlight'] .hero::after {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--shade) 42%, transparent) 0%,
    color-mix(in srgb, var(--shade) 20%, transparent) 50%,
    color-mix(in srgb, var(--shade) 62%, transparent) 100%);
}
[data-layout='spotlight'] .hero-copy { display: block; position: relative; z-index: 1; padding: 0 var(--gutter); }
[data-layout='spotlight'] .hero-name {
  position: static;
  font: 200 clamp(3rem, 9.5vw, 8.5rem)/1.04 var(--display);
  letter-spacing: 0.1em;
  margin-right: -0.1em; /* the tracking after the last letter would push it off centre */
  text-transform: uppercase;
}
[data-layout='spotlight'] .hero-name span { position: static; display: block; }
[data-layout='spotlight'] .hero-meta { position: static; max-width: 40rem; margin: clamp(18px, 3vh, 30px) auto 0; }
[data-layout='spotlight'] .hero-meta .tagline { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 300; letter-spacing: 0.04em; }
[data-layout='spotlight'] .hero-meta p:not(.tagline) { margin-top: 10px; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.8; }
[data-layout='spotlight'] .hero-scroll {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: clamp(22px, 5vh, 46px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-left: 0.3em;
  color: inherit;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
}
[data-layout='spotlight'] .hero-scroll:hover { opacity: 1; }
[data-layout='spotlight'] .hero-scroll::after { content: ''; width: 10px; height: 10px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  [data-layout='spotlight'] .hero-scroll::after { animation: nudge 2.2s ease-in-out infinite; }
  [data-layout='spotlight'] .hero-meta { animation: rise 1.1s 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }
}

/* Introduction: centred bio and measurements. */
[data-layout='spotlight'] .intro {
  display: block;
  text-align: center;
  padding: clamp(80px, 10vw, 128px) 0;
  border-bottom: 1px solid var(--rule);
}
.intro-title { margin: 0 0 28px; font: 300 clamp(2rem, 3.4vw, 2.6rem)/1.15 var(--display); letter-spacing: 0.03em; }
.intro-bio { max-width: 46rem; margin: 0 auto; color: var(--graphite); font-size: 1.15rem; line-height: 1.8; white-space: pre-line; }
[data-layout='spotlight'] .intro-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 44px;
  max-width: 56rem;
  margin: 44px auto 0;
  border: 0;
}
[data-layout='spotlight'] .intro-stats div { padding: 0; border: 0; }
[data-layout='spotlight'] .intro-stats dt { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
[data-layout='spotlight'] .intro-stats dd { font: 300 1.35rem/1.3 var(--display); margin-top: 4px; }
.arrow-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.arrow-link::after { content: '\2192'; display: inline-block; margin-left: 10px; transition: transform 0.25s ease; }
.arrow-link:hover::after { transform: translateX(4px); }
[data-layout='spotlight'] .stats-wrap { display: none; }

/* Featured work: two columns of equal cards, caption over the photo. */
[data-layout='spotlight'] .selected-section { padding-top: clamp(80px, 10vw, 128px); }
[data-layout='spotlight'] .section-head { flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
[data-layout='spotlight'] .section-title { font: 300 clamp(2.2rem, 4vw, 3rem)/1.1 var(--display); letter-spacing: 0.03em; }
[data-layout='spotlight'] .section-sub { display: block; margin: 10px 0 0; color: var(--graphite); font-size: 1.1rem; letter-spacing: 0.03em; }
[data-layout='spotlight'] .section-head .more-link { display: none; }
[data-layout='spotlight'] .selected {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  max-width: 1120px;
  margin: 0 auto;
}
[data-layout='spotlight'] .selected figure { position: relative; margin-top: 0; display: block; }
[data-layout='spotlight'] .selected .photo-frame,
[data-layout='spotlight'] .grid-uniform .photo-frame { aspect-ratio: 4 / 5; border-radius: var(--radius); }
[data-layout='spotlight'] .selected .photo-frame img,
[data-layout='spotlight'] .grid-uniform .photo-frame img { height: 100%; object-fit: cover; }
[data-layout='spotlight'] .selected figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 24px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(0deg, color-mix(in srgb, var(--shade) 72%, transparent), transparent);
  color: var(--on-shade);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  letter-spacing: 0.03em;
  pointer-events: none;
}
[data-layout='spotlight'] .cap-cat { display: block; margin-top: 4px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.82; }
[data-layout='spotlight'] .view-all { display: block; text-align: center; margin: 48px 0 clamp(80px, 10vw, 128px); }
[data-layout='spotlight'] .view-all .arrow-link { margin-top: 0; }

/* Booking band: centred. */
[data-layout='spotlight'] .book-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
[data-layout='spotlight'] .book-inner .button { justify-self: center; }
[data-layout='spotlight'] .book-line { font: 300 clamp(1.5rem, 2.6vw, 2.2rem)/1.35 var(--display); letter-spacing: 0.02em; max-width: 26ch; }
[data-layout='spotlight'] .button { font: 400 0.82rem/1 var(--text); letter-spacing: 0.18em; text-transform: uppercase; padding: 16px 30px; border-radius: 0; }

/* Inner pages: centred thin titles, even grid. */
[data-layout='spotlight'] .page-head { text-align: center; padding-top: clamp(48px, 8vw, 104px); }
[data-layout='spotlight'] .page-title { font: 200 clamp(2.6rem, 6vw, 4.6rem)/1.05 var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
[data-layout='spotlight'] .page-head .page-title { margin-right: -0.12em; }
[data-layout='spotlight'] .filter-bar { border-bottom-color: transparent; }
[data-layout='spotlight'] .filters { justify-content: center; }
[data-layout='spotlight'] .filters button { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }
.grid-uniform {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  margin-bottom: clamp(80px, 10vw, 140px);
}
[data-layout='spotlight'] .bio { font: 300 1.2rem/1.8 var(--text); }
[data-layout='spotlight'] .measure dd,
[data-layout='spotlight'] .stats dd { font-weight: 300; }
[data-layout='spotlight'] .contact-aside .contact-lead { font-weight: 300; }

/* Footer: one quiet line. */
[data-layout='spotlight'] .foot-brand { display: none; }
[data-layout='spotlight'] .foot-inner { grid-template-columns: 1fr auto; align-items: center; padding-top: 36px; padding-bottom: 36px; }
[data-layout='spotlight'] .foot-legal { grid-column: auto; order: -1; padding-top: 0; border-top: 0; }
[data-layout='spotlight'] .foot-nav a { font-weight: 300; }

@media (max-width: 820px) {
  [data-layout='spotlight'] { --bar-h: 60px; }
  [data-layout='spotlight'] .hero { height: 100svh; }
  [data-layout='spotlight'] .hero-name { font-size: clamp(2.5rem, 13vw, 5rem); }
  [data-layout='spotlight'] .selected figure:nth-child(3) { display: block; }
  [data-layout='spotlight'] .intro-stats { gap: 14px 28px; }
  .grid-uniform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-layout='spotlight'] .foot-inner { grid-template-columns: 1fr; }
  [data-layout='spotlight'] .foot-legal { order: 0; }
}
@media (max-width: 600px) {
  [data-layout='spotlight'] .selected { grid-template-columns: 1fr; }
  [data-layout='spotlight'] .wordmark { font-size: 0.8rem; letter-spacing: 0.14em; white-space: nowrap; }
}

/* ------------------------------------------------------------ markdown */
/* Text written with simple Markdown (assets/markdown.js). */
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 0.9em; }
.md ul, .md ol, .bk-facts dd ul:not(.bk-dates), .bk-facts dd ol, .bk-intro ul, .bk-intro ol { margin: 0 0 0.9em; padding-left: 1.2em; }
.md li, .bk-facts dd ul:not(.bk-dates) li, .bk-facts dd ol li, .bk-intro li { margin: 0.15em 0; }
.md-h { font: 500 0.78rem/1.3 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); margin: 1.4em 0 0.5em; }
.md a, .bk-intro a, .bk-facts dd a, .lightbox-caption a, figcaption a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.md strong, .bk-intro strong { font-weight: 600; }
.bio.md, .intro-bio.md, .lp-intro.md { white-space: normal; }

/* ------------------------------------------------------------ coming up */
.upcoming-section { margin-bottom: clamp(64px, 8vw, 120px); }
.upcoming-section.is-page { border-top: 1px solid var(--rule); padding-top: clamp(48px, 6vw, 88px); margin-bottom: 0; scroll-margin-top: calc(var(--bar-h) + 16px); }
.upcoming-section.is-page .section-title { margin-bottom: clamp(24px, 3vw, 40px); }
.upcoming { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.up-item { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto; gap: 6px clamp(16px, 3vw, 40px); align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.up-when { font: 400 clamp(1.25rem, 2vw, 1.6rem)/1.2 var(--display); font-variant-numeric: lining-nums; }
.up-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
.up-place { font-size: 1.1rem; color: var(--ink); }
a.up-place { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.up-what { color: var(--graphite); }
.up-note { flex-basis: 100%; color: var(--graphite); font-size: 0.92rem; }
.up-link { font-size: 0.92rem; color: var(--ink); text-underline-offset: 4px; }
.up-status { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--ink); white-space: nowrap; }
.up-status.is-full { border-color: var(--rule); color: var(--graphite); }
@media (max-width: 640px) {
  .up-item { grid-template-columns: minmax(0, 1fr) auto; }
  .up-body { grid-column: 1 / -1; grid-row: 2; }
}
.lp-next { margin: 18px 0 0; text-align: center; color: var(--graphite); font-size: 0.95rem; }
.lp-next a { color: var(--ink); text-underline-offset: 4px; }
[data-layout='spotlight'] .up-when { font-weight: 300; }

/* ---------------------------------------------------- comp card layout */
/* Like a model's comp card: the cover photo framed beside the name, set
   large in a condensed grotesque, with the measurements beneath; featured
   work as a row of four; the portfolio as an even, tightly set sheet. */
:root[data-layout='compcard'] {
  --display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}
[data-layout='compcard'] .wordmark { font: 700 1.05rem/1 var(--display); font-stretch: 70%; letter-spacing: 0.01em; }

/* The bar is solid from the start: the photo sits below it, not under it. */
[data-layout='compcard'] body[data-page='home'] .site-bar {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--rule);
}

[data-layout='compcard'] .hero {
  height: auto;
  min-height: 0;
  max-height: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--bar-h) + clamp(20px, 3vw, 44px)) var(--gutter) clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 4vw, 72px);
  align-items: end;
  background: var(--paper);
  color: var(--ink);
}
[data-layout='compcard'] .hero::after { display: none; }
[data-layout='compcard'] .hero-photo { position: relative; inset: auto; aspect-ratio: 4 / 5; background: var(--paper-deep); overflow: hidden; }
/* Biased low, like the other layouts, so a corner watermark stays in frame. */
[data-layout='compcard'] .hero-photo img { object-position: 55% 75%; }
[data-layout='compcard'] .hero-copy { display: block; padding-bottom: clamp(4px, 1vw, 12px); }
[data-layout='compcard'] .hero-name {
  position: static;
  font: 700 clamp(4.5rem, 13vw, 13.5rem)/0.8 var(--display);
  font-stretch: 62%;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
[data-layout='compcard'] .hero-name span { position: static; display: block; }
[data-layout='compcard'] .hero-meta { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: clamp(18px, 2.4vw, 32px); max-width: none; }
[data-layout='compcard'] .hero-meta p { font-size: 1.05rem; opacity: 1; color: var(--graphite); }
[data-layout='compcard'] .hero-meta .tagline { color: var(--ink); font-weight: 500; }

/* Measurements: one ruled row, as on the card. */
[data-layout='compcard'] .stats-wrap { margin: 0 0 clamp(56px, 8vw, 112px); }
[data-layout='compcard'] .stats { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
[data-layout='compcard'] .stats div { padding: 14px 12px 16px 0; }
[data-layout='compcard'] .stats dt { font-size: 0.78rem; letter-spacing: 0.02em; }
[data-layout='compcard'] .stats dd { font: 600 1.7rem/1.1 var(--display); font-stretch: 75%; }

/* Featured work: a row of four, cropped alike. */
[data-layout='compcard'] .section-title { font-weight: 700; font-stretch: 62%; text-transform: uppercase; letter-spacing: -0.01em; }
[data-layout='compcard'] .selected { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
[data-layout='compcard'] .selected figure:nth-child(n) { margin-top: 0; display: block; }
[data-layout='compcard'] .selected .photo-frame,
[data-layout='compcard'] .grid-uniform .photo-frame { aspect-ratio: 3 / 4; }
[data-layout='compcard'] .selected .photo-frame img,
[data-layout='compcard'] .grid-uniform .photo-frame img { height: 100%; object-fit: cover; }
[data-layout='compcard'] .grid-uniform { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
[data-layout='compcard'] .grid-uniform figcaption { font-size: 0.82rem; }
[data-layout='compcard'] .page-title { font-weight: 700; font-stretch: 62%; text-transform: uppercase; letter-spacing: -0.01em; }
[data-layout='compcard'] .book-line { font: 600 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--display); font-stretch: 75%; }

@media (max-width: 900px) {
  [data-layout='compcard'] .grid-uniform { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-layout='compcard'] .selected { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  [data-layout='compcard'] .hero { grid-template-columns: 1fr; align-items: start; }
  [data-layout='compcard'] .hero-copy { order: -1; padding-bottom: 0; }
  [data-layout='compcard'] .hero-name { font-size: clamp(4rem, 24vw, 7rem); }
  [data-layout='compcard'] .hero-meta { margin-top: 12px; }
  [data-layout='compcard'] .grid-uniform { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
}
