/* 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;
  /* Menu, buttons and small labels: the body font unless chosen (fonts.js). */
  --label: var(--text);
  --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; }

/* Video clips (galleries only). In the viewer the video takes the photo's
   place; the previous/next areas shrink to arrows at the sides so they never
   cover its controls. */
.lb-actions { display: flex; align-items: center; gap: 18px; }
.lb-download { text-decoration: underline; text-underline-offset: 3px; }
.lb-download[hidden] { display: none; }
.lightbox-stage .lb-video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #000; }
.lightbox-stage picture[hidden], .lightbox-stage .lb-video[hidden] { display: none; }
.lightbox-stage.is-clip .lb-nav { top: 50%; bottom: auto; width: 48px; height: 96px; transform: translateY(-50%); z-index: 1; color: inherit; cursor: pointer; }
.lightbox-stage.is-clip .lb-nav::before { font-size: 2rem; line-height: 1; opacity: 0.8; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.lightbox-stage.is-clip .lb-prev::before { content: '‹'; }
.lightbox-stage.is-clip .lb-next::before { content: '›'; }

/* In the grid: a play mark and the length on the still, and a short silent
   loop over it while it's on screen (site.js). */
.photo-frame.is-clip { position: relative; }
.clip-badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px 3px 6px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.02em;
  pointer-events: none;
}
.clip-play { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.clip-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.clip-preview.is-playing { opacity: 1; }

/* --------------------------------------------------------------- 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) {
  /* Hidden from view but still read out, so the mark stays a named link home. */
  .site-head .wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-head { gap: 16px; }
  .site-nav { gap: 11px; }
  .site-nav a { font-size: 0.88rem; }
  :root[data-layout='spotlight'] .site-nav a { font-size: 0.88rem; letter-spacing: 0.01em; }
}
@media (max-width: 380px) {
  .site-head { gap: 12px; }
  .site-nav { gap: 8px; }
  .site-nav a, :root[data-layout='spotlight'] .site-nav a { font-size: 0.8rem; letter-spacing: 0; }
}
@media (max-width: 340px) {
  .site-head { gap: 12px; }
  .site-nav { gap: 6px; }
  .site-nav a, :root[data-layout='spotlight'] .site-nav a { font-size: 0.74rem; letter-spacing: 0; }
}

/* ----------------------------------------------------------- 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;
}

/* Luxury and commercial palettes: emerald, champagne, sapphire, mocha, chrome. */
:root[data-palette='emerald'] {
  color-scheme: dark;
  --paper: #0f2a22;
  --paper-deep: #163629;
  --sheet: #12301f;
  --ink: #f1ead9;
  --graphite: #d2bb8f;
  --rule: #2a4a3d;
  --shade: #081a14;
  --on-shade: #f1ead9;
  --error: #ff9b8f;
}
:root[data-palette='champagne'] {
  --paper: #f7f3ec;
  --paper-deep: #ece5d8;
  --sheet: #fbf9f5;
  --ink: #3b322a;
  --graphite: #7a6a5b;
  --rule: #ddd2c2;
  --shade: #3b322a;
  --on-shade: #f7f3ec;
  --error: #9b2c22;
}
:root[data-palette='sapphire'] {
  color-scheme: dark;
  --paper: #0f1a2e;
  --paper-deep: #16243c;
  --sheet: #132037;
  --ink: #f3efe4;
  --graphite: #cdb98f;
  --rule: #2a3a57;
  --shade: #08101f;
  --on-shade: #f3efe4;
  --error: #ff9b8f;
}
:root[data-palette='mocha'] {
  color-scheme: dark;
  --paper: #241914;
  --paper-deep: #30221b;
  --sheet: #2b1e18;
  --ink: #f1e4d3;
  --graphite: #c9a27a;
  --rule: #473429;
  --shade: #160f0b;
  --on-shade: #f1e4d3;
  --error: #ff9b8f;
}
:root[data-palette='chrome'] {
  color-scheme: dark;
  --paper: #3a3d41;
  --paper-deep: #45494e;
  --sheet: #41454a;
  --ink: #f2f2f0;
  --graphite: #c5c8cc;
  --rule: #565a60;
  --shade: #202225;
  --on-shade: #f2f2f0;
  --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; }
}

/* ------------------------------------------------------------ galleries */
/* /galleries/: cards for each gallery; ?g=<slug> shows one as a grid. */
.gal-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(22px, 3vw, 40px) clamp(14px, 2vw, 28px);
  margin-bottom: clamp(80px, 10vw, 140px);
}
.gal-card { display: block; color: inherit; text-decoration: none; }
.gal-cover { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-deep); }
.gal-cover picture, .gal-cover img { display: block; width: 100%; height: 100%; }
.gal-cover img { object-fit: cover; transition: transform 0.6s ease, opacity 0.4s ease; }
.gal-cover img[data-loading] { opacity: 0; }
.gal-card:hover .gal-cover img, .gal-card:focus-visible .gal-cover img { transform: scale(1.03); }
.gal-title { font-family: var(--display, inherit); font-weight: 400; font-size: 1.35rem; margin: 14px 0 4px; line-height: 1.2; }
.gal-sub { margin: 0; color: var(--graphite); font-size: 0.9rem; }
.gal-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--graphite); margin: 10px 0 0; }
.gal-meta a { color: inherit; }
.gal-intro { max-width: 62ch; margin-top: 16px; }
.gal-back { margin: -40px 0 clamp(80px, 10vw, 140px); }
:root[data-layout='compcard'] .gal-cover, :root[data-layout='spotlight'] .gal-cover { aspect-ratio: 3 / 4; }
/* Six or seven menu items don't fit a phone. There the link page stays in
   the footer only, and with both Galleries and Reviews showing, Home goes
   too: the spiral mark beside the menu is a link home. */
@media (max-width: 600px) {
  .site-nav:has(a[data-nav='galleries']:not([hidden])) a[data-nav='links'],
  .site-nav:has(a[data-nav='reviews']:not([hidden])) a[data-nav='links'] { display: none; }
  .site-nav:has(a[data-nav='galleries']:not([hidden])):has(a[data-nav='reviews']:not([hidden])) a[href='/'] { display: none; }
}
.gal-head.is-one .page-title { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; }
[data-layout='spotlight'] .gal-meta { justify-content: center; }
[data-layout='spotlight'] .gal-intro { margin-left: auto; margin-right: auto; }
@media (max-width: 560px) {
  .gal-list { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .gal-title { font-size: 1.05rem; margin-top: 10px; }
  .gal-sub { font-size: 0.8rem; }
}

/* Private links with a PIN */
.pin-form { max-width: 320px; margin: 20px 0 140px; display: grid; gap: 10px; }
.pin-form label { font: 400 1.4rem/1.1 var(--display); }
.pin-help { margin: 0; color: var(--graphite); }
.pin-form input { font: inherit; font-size: 1.4rem; letter-spacing: .3em; padding: 10px 12px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); }
.pin-error { margin: 0; color: #a3312a; min-height: 1.2em; }

/* Age checks and buying (private galleries) */
.age-form, .buy-done { max-width: 46ch; }
.age-title { margin: 0; font: 400 1.6rem/1.15 var(--display); }
.age-form .button, .buy-done .button { justify-self: start; }
.buy-done input { letter-spacing: 0; font-size: 1rem; width: 100%; }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-lead { margin: 32px 0 0; color: var(--graphite); max-width: 60ch; }
.buy-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.buy-item { border: 1px solid var(--rule); background: var(--sheet); padding: 22px; display: grid; gap: 10px; align-content: start; }
.buy-item .button { justify-self: start; }
.buy-title { margin: 0; font: 400 1.5rem/1.15 var(--display); }
.buy-about { color: var(--ink); }
.buy-about p { margin: 0 0 .5em; }
.buy-meta { margin: 0; color: var(--graphite); font-size: .92rem; }
.buy-small { margin: 26px 0 120px; color: var(--graphite); font-size: .88rem; max-width: 62ch; }

/* ------------------------------------------------------ lookbook layout */
/* Full-bleed and edge to edge, like a printed lookbook: photos meet with no
   gaps, the name set in italic serif at the foot of the cover, captions
   only on hover, and quiet small-capital headings. */
:root[data-layout='lookbook'] {
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
}
[data-layout='lookbook'] .hero-name { font-style: italic; letter-spacing: -0.04em; }
[data-layout='lookbook'] .hero-name span { position: absolute; }
[data-layout='lookbook'] .hero-first { left: var(--gutter); top: auto; bottom: calc(15% + 0.86em); }
[data-layout='lookbook'] .hero-last { left: calc(var(--gutter) + 0.6em); right: auto; bottom: 15%; }
[data-layout='lookbook'] .section-title,
[data-layout='lookbook'] .page-title { font-style: italic; }
[data-layout='lookbook'] .page-head { text-align: center; }
[data-layout='lookbook'] .page-title { font-size: clamp(2.6rem, 7vw, 6rem); }
/* Photos meet edge to edge, across the whole window. */
[data-layout='lookbook'] .masonry,
[data-layout='lookbook'] .selected,
[data-layout='lookbook'] .gal-list {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  gap: 0;
}
[data-layout='lookbook'] .masonry-col { gap: 0; }
[data-layout='lookbook'] .selected { grid-template-columns: repeat(3, 1fr); }
[data-layout='lookbook'] .selected figure:nth-child(n) { margin-top: 0; }
[data-layout='lookbook'] .selected figure, [data-layout='lookbook'] .tile { position: relative; }
[data-layout='lookbook'] .selected figcaption,
[data-layout='lookbook'] .tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  color: var(--on-shade);
  background: linear-gradient(0deg, color-mix(in srgb, var(--shade) 70%, transparent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
[data-layout='lookbook'] .selected figure:hover figcaption,
[data-layout='lookbook'] .tile:hover figcaption,
[data-layout='lookbook'] .tile:focus-within figcaption { opacity: 1; }
[data-layout='lookbook'] .gal-list { gap: 0; }
[data-layout='lookbook'] .gal-card { position: relative; }
[data-layout='lookbook'] .gal-title,
[data-layout='lookbook'] .gal-sub { position: absolute; left: 16px; right: 16px; color: var(--on-shade); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
[data-layout='lookbook'] .gal-title { bottom: 34px; font-style: italic; font-size: clamp(1.4rem, 2.2vw, 2rem); }
[data-layout='lookbook'] .gal-sub { bottom: 14px; }
@media (max-width: 720px) {
  [data-layout='lookbook'] .selected { grid-template-columns: 1fr 1fr; }
  [data-layout='lookbook'] .selected figure:nth-child(3) { display: none; }
}

/* --------------------------------------------------- typographic layout */
/* The name fills the screen in huge, wide capitals over one big photo,
   cut out of it (the letters show the photo inverted). Little else on the
   cover; big, bold headings throughout. */
:root[data-layout='typographic'] {
  --display: 'Archivo', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
}
[data-layout='typographic'] .hero { max-height: none; height: 100svh; }
[data-layout='typographic'] .hero::after { background: color-mix(in srgb, var(--shade) 18%, transparent); }
[data-layout='typographic'] .hero-copy { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
[data-layout='typographic'] .hero-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(3.6rem, 16.5vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
}
[data-layout='typographic'] .hero-name span { position: static; }
[data-layout='typographic'] .hero-meta { left: 50%; transform: translateX(-50%); text-align: center; letter-spacing: 0.2em; text-transform: uppercase; }
[data-layout='typographic'] .hero-meta .tagline { font-size: 0.85rem; }
[data-layout='typographic'] .hero-meta p:not(.tagline) { display: none; }
[data-layout='typographic'] .section-title,
[data-layout='typographic'] .page-title,
[data-layout='typographic'] .book-line,
[data-layout='typographic'] .gal-title,
[data-layout='typographic'] .lp-title { font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.03em; }
[data-layout='typographic'] .page-title { font-size: clamp(3.2rem, 12vw, 11rem); line-height: 0.85; }
[data-layout='typographic'] .section-title { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 0.9; }
[data-layout='typographic'] .wordmark { font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: 0.02em; }
[data-layout='typographic'] .stats dd { font-weight: 800; font-stretch: 112%; }

/* ------------------------------------------------------- gallery layout */
/* Like walking along a gallery wall: on tablets and computers the
   portfolio, galleries and featured work are one row of photos, all the
   same height, scrolled sideways (site.js). Thin, spaced type; phones get
   an ordinary column. */
:root[data-layout='gallery'] {
  --display: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}
[data-layout='gallery'] body { font-weight: 300; }
[data-layout='gallery'] .hero-name { font-weight: 200; text-transform: uppercase; letter-spacing: 0.12em; font-size: clamp(3rem, 9vw, 8rem); }
[data-layout='gallery'] .section-title,
[data-layout='gallery'] .page-title { font-weight: 200; text-transform: uppercase; letter-spacing: 0.14em; }
[data-layout='gallery'] .page-title { font-size: clamp(2.2rem, 5.5vw, 4.4rem); }
.track {
  display: flex;
  gap: clamp(16px, 2.5vw, 40px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 8px var(--gutter) 22px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: clamp(64px, 8vw, 110px);
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.track > figure { flex: 0 0 auto; height: var(--track-h, min(62vh, 720px)); margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; }
.track button { all: unset; display: block; height: calc(100% - 2em); cursor: zoom-in; }
.track button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.track .photo-frame { height: 100%; }
.track .photo-frame img { height: 100%; width: auto; max-width: none; }
.track figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.track-wrap { position: relative; }
.masonry.grid-track { display: block; }
.track > figure .photo-frame { aspect-ratio: auto; }
.track-nav { position: absolute; top: calc(50% - 32px); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 88%, transparent); color: var(--ink); cursor: pointer; font-size: 1.2rem; }
.track-nav.prev { left: 12px; }
.track-nav.next { right: 12px; }
.track-nav[disabled] { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- fonts */
/* Menu, buttons and small labels use --label (Admin > Look and feel >
   Fonts). Placed last, so it wins over each layout's own font rules. */
:root .site-nav a, :root .foot-nav a, :root .button, :root .filters button,
:root .more-link, :root .arrow-link, :root .hero-scroll, :root .lb-btn, :root .lb-count,
:root .md-h, :root .bk-table thead th, :root .cap-cat, :root .section-sub, :root .gal-sub {
  font-family: var(--label);
}

/* ------------------------------------------------------------ reviews */
/* Reviews page and the About page's three: quotes in columns (they vary a
   lot in length), each signed with who wrote it and a link back. */
.rv-lead { margin: 32px 0 0; color: var(--graphite); max-width: 60ch; }
.rv-list { columns: 3 320px; column-gap: 28px; margin: 34px 0 110px; }
.rv-section { margin-top: 40px; }
.rv-section .rv-list { margin: 18px 0 80px; }
.rv-card { break-inside: avoid; margin: 0 0 28px; padding: 26px 26px 22px; background: var(--sheet); border: 1px solid var(--rule); }
.rv-text { margin: 0; position: relative; font-size: 1.02rem; line-height: 1.65; }
.rv-text::before { content: '\201C'; display: block; font: 400 4.4rem/0.7 var(--display); color: var(--graphite); opacity: .55; margin: 14px 0 0; height: .45em; }
.rv-text p { margin: 0 0 .8em; }
.rv-text p:last-child { margin-bottom: 0; }
.rv-who { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); display: grid; gap: 2px; }
.rv-name { font: 400 1.2rem/1.2 var(--display); }
.rv-name a { color: inherit; }
.rv-meta { font-size: .85rem; color: var(--graphite); }
@media (max-width: 640px) { .rv-card { padding: 20px 18px 18px; } }

/* Signing in on the site (/account/) and My galleries. */
.button-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.button-quiet:hover { border-color: var(--ink); }
.account-lead { color: var(--graphite); max-width: 52ch; }
.account-galleries { margin: 10px 0 40px; }
.account-crumbs { margin: 6px 0 4px; color: var(--graphite); font-size: 0.95rem; }
.account-crumbs a { color: var(--ink); }
.account-crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.gal-cover-empty { background: var(--paper-deep); }
/* An adults-only gallery shows nothing of itself before the age check. */
.gal-cover-adults { display: grid; place-items: center; background: linear-gradient(160deg, #26272b, #3b3d42); }
.gal-cover-adults .age-badge {
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85); color: #fff; font: 600 1.35rem/1 var(--text, inherit); letter-spacing: 0.02em;
}
/* A folder: a small folder shape before its name, and a stacked edge. */
.gal-folder .gal-cover { box-shadow: 6px -6px 0 -1px var(--paper), 6px -6px 0 0 var(--rule), 12px -12px 0 -1px var(--paper), 12px -12px 0 0 var(--rule); margin: 12px 12px 0 0; overflow: hidden; }
.folder-mark { display: inline-block; width: 0.9em; height: 0.68em; margin-right: 0.4em; vertical-align: 0.02em; border: 1.5px solid currentColor; border-radius: 1px 2px 2px 2px; position: relative; }
.folder-mark::before { content: ''; position: absolute; left: -1.5px; top: -0.26em; width: 0.42em; height: 0.2em; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.account-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 140px; color: var(--graphite); }
.account-foot p { margin: 0 auto 0 0; }
.foot-account { grid-column: 1 / -1; margin: 0; font-size: 0.84rem; }
.foot-account a { color: inherit; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--ink); }
.account-signin { margin: 10px 0 140px; max-width: 400px; }

/* Signed in: My galleries arrives in the menu once, so it's noticed. It
   drops in, with a soft highlight that fades. */
.site-nav a.nav-arrive { position: relative; animation: nav-arrive 0.7s cubic-bezier(.2, .8, .2, 1) both; }
.site-nav a.nav-arrive::after {
  content: ''; position: absolute; inset: -6px -10px; border-radius: 999px;
  background: currentColor; opacity: 0; pointer-events: none;
  animation: nav-glow 2.4s ease 0.5s both;
}
@keyframes nav-arrive { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes nav-glow { 0% { opacity: 0; } 20% { opacity: 0.14; } 45% { opacity: 0.05; } 65% { opacity: 0.12; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .site-nav a.nav-arrive, .site-nav a.nav-arrive::after { animation: none; } }

/* Footer, signed in: My galleries, Open the admin, Sign out. */
.foot-account { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.foot-account [hidden] { display: none; }
.foot-account .link-button { font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Phones, signed in: Reviews makes room for My galleries in the menu (it's
   in the footer too). */
@media (max-width: 600px) {
  .site-nav:has(a[data-nav='mine']:not([hidden])) a[data-nav='reviews'] { display: none; }
}
.site-nav a { white-space: nowrap; }

/* ---------------------------------------------------------- worked with */
/* /worked-with/: names placed along a spiral (site.js renderWorkedWith),
   sized by how many photos they're in. */
.ww-box { margin: clamp(10px, 3vw, 30px) 0 clamp(80px, 10vw, 140px); }
.ww-lead { max-width: 62ch; }
.ww-cloud { position: relative; list-style: none; margin: 0; padding: 0; width: 100%; min-height: 200px; }
.ww-item {
  position: absolute; white-space: nowrap; line-height: 1.05;
  opacity: 0;
}
.ww-cloud.is-laid.no-fly .ww-item, .ww-cloud.is-laid.is-in .ww-item { opacity: 1; }
/* Flying out from the middle. */
.ww-cloud.is-laid:not(.no-fly) .ww-item { transform: translate(var(--from-x, 0), var(--from-y, 0)) scale(0.3); }
.ww-cloud.is-in:not(.no-fly) .ww-item {
  transform: none;
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms), opacity 0.6s ease var(--delay, 0ms);
}
.ww-item a, .ww-item .ww-plain { display: block; color: inherit; text-decoration: none; padding: 0.04em 0.06em; }
.ww-word { position: relative; display: block; animation: ww-drift var(--drift, 7s) ease-in-out var(--drift-delay, 0s) infinite alternate; }
@keyframes ww-drift {
  from { transform: translate(calc(var(--drift-x, 0px) * -2), -3px); }
  to { transform: translate(calc(var(--drift-x, 0px) * 2), 3px); }
}
.ww-name { display: block; transition: transform 0.3s ease, color 0.3s ease; }
.ww-tog .ww-name { font-family: var(--display, inherit); font-style: italic; color: var(--ink); }
.ww-collab .ww-name { font-family: var(--text, inherit); font-weight: 500; letter-spacing: -0.01em; color: var(--graphite); font-size: 0.82em; }
/* What they did: shown under the name on hover or focus. */
.ww-role {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, -4px);
  font: 500 11px/1.2 var(--text, inherit); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
}
.ww-cloud:hover .ww-item, .ww-cloud:focus-within .ww-item { transition: opacity 0.3s ease; }
.ww-cloud:hover .ww-item:not(:hover), .ww-cloud:focus-within .ww-item:not(:focus-within) { opacity: 0.35; }
.ww-cloud:hover:not(:focus-within) .ww-item:hover, .ww-cloud .ww-item:focus-within { opacity: 1; z-index: 2; }
.ww-item:hover .ww-name, .ww-item:focus-within .ww-name { transform: scale(1.06); color: var(--ink); }
.ww-item:hover .ww-role, .ww-item:focus-within .ww-role { opacity: 1; transform: translate(-50%, 2px); }
.ww-item a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ww-nolink { cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .ww-word { animation: none; }
  .ww-cloud .ww-item { transform: none !important; transition: none !important; }
}
