/*
 * Aaron Roberts Photographer – public site styles.
 * Light, minimal, photography first: white page, black/grey type, the QR logo, uppercase Lato UI,
 * thin vertical titles, Roboto Condensed headings and Open Sans body text. Mobile first.
 */

/* ---------------------------------------------------------------- fonts (self-hosted, latin + latin-ext) */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lato-300.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/roboto-condensed-300.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-condensed-400.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-600.woff2") format("woff2"); }

/* ---------------------------------------------------------------- design tokens */
:root {
  --bg: #ffffff;
  --ink: #121212;
  --ink-2: #3d3d3d;
  --muted: #7a7a7a;
  --faint: #a9a9a9;
  --line: #e7e7e7;
  --line-2: #d4d4d4;
  --tint: #f5f4f2;
  --tint-2: #ecebe8;
  --accent: #9a7b55;             /* warm bronze – used sparingly: focus, small highlights */
  --danger: #a3261c;
  --overlay: #0d0d0d;

  --f-ui: "Lato", "Helvetica Neue", Arial, sans-serif;
  --f-head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --track-ui: .18em;             /* letter-spacing for small uppercase UI text */
  --track-wide: .28em;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --gutter: 16px;
  --max: 1600px;
  --narrow: 760px;
  --header-h: 60px;
  --radius: 2px;
  --gap-photo: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .05);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .25s;
}
@media (min-width: 700px) { :root { --gutter: 32px; --header-h: 72px; --gap-photo: 8px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-size: .9em; background: var(--tint); padding: .1em .35em; border-radius: var(--radius); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; font: 700 13px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.section { padding-block: var(--s-7); }
@media (min-width: 900px) { .section { padding-block: var(--s-8); } }
.section--tint { background: var(--tint); }

/* ---------------------------------------------------------------- type */
.kicker { margin: 0 0 var(--s-3); font: 400 11.5px/1.4 var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); }
.kicker a { text-decoration: none; }
.kicker a:hover { color: var(--ink); text-decoration: underline; }
.display {
  font: 300 clamp(2.1rem, 1.4rem + 3.2vw, 4rem)/1.04 var(--f-head);
  text-transform: uppercase; letter-spacing: .04em; margin: 0 0 var(--s-4);
  overflow-wrap: anywhere;
}
.section__title { font: 400 1.25rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 var(--s-5); }
@media (min-width: 900px) { .section__title { font-size: 1.4rem; } }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-5); }
.section__head .section__title { margin: 0; }

.more-link { display: inline-flex; align-items: center; gap: .6em; font: 400 12px/1.4 var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 4px 0; border-bottom: 1px solid var(--ink); }
.more-link:hover { color: var(--muted); border-color: var(--muted); }
.more-link__count { color: var(--muted); letter-spacing: .08em; }

.page-head { padding-block: var(--s-7) var(--s-6); }
.page-head--flush { padding-inline: 0; }
@media (min-width: 900px) { .page-head { padding-block: var(--s-8) var(--s-6); } }
.page-head__lead { max-width: 64ch; color: var(--ink-2); font-size: 1.02rem; }
.page-head__lead p:last-child { margin-bottom: 0; }

.prose { font-size: 1rem; line-height: 1.8; color: var(--ink-2); }
.prose > * + h2, .prose > * + h3 { margin-top: 1.9em; }
.prose h2 { font: 400 1.45rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: .6em; }
.prose h3 { font: 500 1.1rem/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: .5em; }
.prose a { color: var(--ink); }
.prose img { margin: 1.8em auto; }
.prose figure { margin: 2em 0; }
.prose figcaption { font: 400 13px var(--f-ui); color: var(--muted); margin-top: .6em; text-align: center; }
.prose blockquote { margin: 1.8em 0; padding-left: 1.2em; border-left: 2px solid var(--ink); font-style: italic; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li + li { margin-top: .35em; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 700 11.5px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.prose--center { max-width: var(--narrow); margin: var(--s-7) auto 0; }
.table-scroll { overflow-x: auto; margin: 0 0 1.5em; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 560px; }

.empty { padding: var(--s-6) 0; color: var(--muted); }
.after-grid { margin: var(--s-6) 0 0; text-align: center; }
.link-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-5); }

/* ---------------------------------------------------------------- buttons, chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 46px; padding: 12px 26px;
  border: 1px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink);
  font: 400 12px/1.2 var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; text-decoration: none;
  transition: background-color var(--dur), color var(--dur), border-color var(--dur);
  touch-action: manipulation;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #fff; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .92); color: var(--ink); transition: border-color var(--dur), background-color var(--dur); }
.round-btn:hover { border-color: var(--ink); }
.round-btn:disabled { opacity: .35; cursor: default; }

.chips { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: .5em; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font: 400 12px/1.2 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); background: #fff;
  transition: border-color var(--dur), background-color var(--dur), color var(--dur);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active, .chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip__n { color: var(--faint); letter-spacing: 0; }
.chip.is-active .chip__n { color: #bbb; }
.chips--small { margin: 0; }
.chips--small .chip { min-height: 30px; padding: 4px 11px; font-size: 11px; }

/* ---------------------------------------------------------------- admin bar */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 7px var(--gutter); background: #111; color: #ddd; font: 400 12.5px/1.4 var(--f-ui); position: relative; z-index: 60; }
.admin-bar a { color: #fff; text-decoration: none; border-bottom: 1px solid #555; }
.admin-bar a:hover { border-color: #fff; }
.admin-bar__who { color: #999; }
.admin-bar__edit { font-weight: 700; }
.admin-bar__warn { color: #f3c77a; }

/* ---------------------------------------------------------------- header + navigation */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: var(--s-4); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand__logo { width: 38px; height: 38px; }
@media (min-width: 700px) { .brand__logo { width: 44px; height: 44px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand__name { font: 400 13px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; }
.brand__role { font: 300 11px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); }

.main-nav a { text-decoration: none; }
.main-nav__list { list-style: none; margin: 0; padding: 0; }
.sub-menu { list-style: none; margin: 0; padding: 0; }
.sub-toggle { background: none; border: 0; padding: 6px; color: inherit; display: inline-grid; place-items: center; }
.sub-toggle .icon { transition: transform var(--dur); }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.header-search { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); }

.nav-toggle { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 2px 0 8px; background: none; border: 0; color: var(--ink); font: 400 11.5px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur); }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: full-height panel under the header */
@media (max-width: 1099.98px) {
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  @media (max-width: 359.98px) { .brand__text { display: none; } }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: #fff; overflow-y: auto; overscroll-behavior: contain;
    padding: var(--s-5) var(--gutter) calc(var(--s-7) + env(safe-area-inset-bottom));
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .has-admin-bar .main-nav { top: var(--header-h); }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .main-nav__list > li { border-bottom: 1px solid var(--line); }
  .main-nav__list > li > a { display: block; padding: 15px 0; font: 300 1.45rem/1.2 var(--f-head); letter-spacing: .08em; text-transform: uppercase; }
  .main-nav__list a[aria-current] { color: var(--ink); font-weight: 400; }
  .has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .has-sub .sub-toggle { width: 44px; height: 44px; }
  .sub-menu { grid-column: 1 / -1; padding: 0 0 var(--s-4) var(--s-1); display: none; columns: 2; column-gap: var(--s-4); }
  .has-sub.is-open .sub-menu { display: block; }
  .sub-menu a { display: block; padding: 8px 0; font: 400 12.5px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--ink-2); break-inside: avoid; }
  .nav-search { display: flex; margin-top: var(--s-5); border: 1px solid var(--line-2); border-radius: var(--radius); }
  .nav-search input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; background: none; font-size: 16px; }
  .nav-search button { border: 0; background: none; width: 48px; display: grid; place-items: center; }
  body.nav-open { overflow: hidden; }
}
/* Desktop: inline menu with a dropdown */
@media (min-width: 1100px) {
  .nav-toggle, .header-search { display: none; }
  .main-nav { display: flex; align-items: center; gap: var(--s-5); }
  .main-nav__list { display: flex; align-items: center; gap: 2px; }
  .main-nav__list > li { position: relative; display: flex; align-items: center; }
  .main-nav__list > li > a { position: relative; padding: 10px 12px; font: 400 12px/1 var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--ink-2); }
  .main-nav__list > li > a::after { content: ""; position: absolute; left: 12px; right: calc(12px + var(--track-ui)); bottom: 3px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
  .main-nav__list > li > a:hover, .main-nav__list > li > a[aria-current] { color: var(--ink); }
  .main-nav__list > li > a:hover::after, .main-nav__list > li > a[aria-current]::after { transform: scaleX(1); }
  .has-sub > a { padding-right: 2px !important; }
  .has-sub > a::after { right: 2px !important; }
  .sub-toggle { padding: 6px 6px 6px 2px; color: var(--muted); }
  .sub-menu {
    position: absolute; top: calc(100% + 6px); left: -8px; min-width: 230px; padding: 10px 0; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
  }
  .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s var(--ease); }
  .sub-menu a { display: block; padding: 9px 20px; font: 400 12px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
  .sub-menu a:hover, .sub-menu a[aria-current] { background: var(--tint); color: var(--ink); }
  .sub-menu__all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .nav-search { display: flex; align-items: center; border-bottom: 1px solid var(--line-2); }
  .nav-search input { width: 110px; border: 0; padding: 6px 4px; background: none; font: 400 13px var(--f-ui); transition: width var(--dur) var(--ease); }
  .nav-search input:focus { width: 170px; outline: none; }
  .nav-search:focus-within { border-color: var(--ink); }
  .nav-search button { border: 0; background: none; padding: 4px; color: var(--muted); }
}

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: var(--s-9); border-top: 1px solid var(--line); }
.site-footer__inner { max-width: var(--max); margin: 0 auto; padding: var(--s-6) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom)); display: grid; gap: var(--s-4); justify-items: center; text-align: center; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; color: var(--ink-2); border-radius: 50%; transition: background-color var(--dur), color var(--dur); }
.social a:hover { background: var(--tint); color: var(--ink); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-links a, .footer-links .link-btn { font: 400 11.5px/2 var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.footer-links a:hover, .footer-links .link-btn:hover { color: var(--ink); text-decoration: underline; }
.site-footer__copy { margin: 0; font: 400 11.5px var(--f-ui); letter-spacing: .12em; color: var(--muted); }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; }
  .footer-links { justify-self: end; }
  .site-footer__copy { grid-column: 1 / -1; justify-self: center; padding-top: var(--s-4); border-top: 1px solid var(--line); width: 100%; text-align: center; }
}

/* ---------------------------------------------------------------- photos: shared + 18+ gate */
.photo { background: var(--tint); }
.protect-images .photo, .protect-images .lb__img {
  -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none;
}
.is-gated-wrap { position: relative; overflow: hidden; }
.photo.is-gated { filter: blur(22px) saturate(.7); transform: scale(1.12); }
.is-revealing .photo.is-gated { transition: filter .5s, transform .5s; }
.gate-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 700 11px/1 var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; box-shadow: 0 4px 18px rgba(0, 0, 0, .15);
}
.gate-btn:hover { background: var(--ink); color: #fff; }
.gate-btn svg { flex: none; }
@media (hover: hover) {
  .jg .gate-btn { opacity: 0; transition: opacity var(--dur); }
  .jg__item:hover .gate-btn, .jg .gate-btn:focus-visible { opacity: 1; }
}
.gate-btn--card { top: 40%; }
.gate-btn--inline { position: static; transform: none; box-shadow: none; border: 1px solid var(--ink); }
.age-ok .gate-btn, .age-ok .gate-notice { display: none; }
.gate-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); margin: 0 0 var(--s-5); padding: var(--s-4) var(--s-5); background: var(--tint); border-left: 2px solid var(--ink); font-size: .95rem; }
.gate-notice p { margin: 0; flex: 1 1 320px; }

.gate-dialog, .consent-dialog { border: 0; padding: 0; max-width: min(520px, calc(100vw - 32px)); width: 100%; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.gate-dialog::backdrop, .consent-dialog::backdrop { background: rgba(12, 12, 12, .72); }
.gate-dialog__inner { padding: var(--s-6); }
.gate-dialog__title { font: 300 2rem/1.1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s-3); }
.gate-dialog__actions, .consent-dialog__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* ---------------------------------------------------------------- home: ribbon */
.ribbon { position: relative; padding-top: var(--s-2); }
.ribbon__track {
  display: flex; gap: var(--gap-photo); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none;
  height: clamp(420px, calc(100svh - var(--header-h) - 40px), 860px);
}
.ribbon__track::-webkit-scrollbar { display: none; }
.ribbon__track:focus-visible { outline-offset: -2px; }
.ribbon__item { position: relative; flex: 0 0 auto; height: 100%; aspect-ratio: 2 / 3; max-width: 82vw; scroll-snap-align: start; overflow: hidden; background: var(--tint); }
.ribbon__link { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.ribbon__img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ribbon__link:hover .ribbon__img:not(.is-gated) { transform: scale(1.025); }
.ribbon__label {
  position: absolute; inset: 0 auto 0 0; width: 92px; display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-end; gap: 6px;
  padding: 22px 0 22px 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .7) 45%, rgba(255, 255, 255, 0) 100%);
}
.ribbon__title, .ribbon__date { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 100%; }
.ribbon__title { font: 300 17px/1 var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; }
.ribbon__date { font: 400 10px/1 var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); }
.ribbon__controls { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: var(--s-3) var(--gutter) 0; }
.ribbon__controls .round-btn { display: none; }
.ribbon__all { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 400 11.5px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .92); transition: border-color var(--dur); }
.ribbon__all:hover { border-color: var(--ink); }
@media (min-width: 900px) and (hover: hover) {
  .ribbon__controls { position: absolute; right: var(--gutter); bottom: 20px; z-index: 2; padding: 0; }
  .ribbon__controls .round-btn { display: grid; }
  .ribbon__all { min-height: 46px; }
}

.home-intro { display: grid; gap: var(--s-4) var(--s-8); padding-block: var(--s-8) var(--s-6); }
.home-intro .display { margin: 0; font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); }
.home-intro__text { max-width: 60ch; font-size: 1.05rem; color: var(--ink-2); }
@media (min-width: 900px) { .home-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; } }

.cta { text-align: center; padding-block: var(--s-8) 0; }
.cta__text { font: 300 clamp(1.5rem, 1rem + 2vw, 2.4rem)/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s-5); }

/* Portfolio tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-photo); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; overflow: hidden; background: var(--tint); }
.tile__link { display: block; position: relative; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; }
.tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile__link:hover .tile__img:not(.is-gated) { transform: scale(1.04); }
.tile__label {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 48px 14px 14px; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0)); font: 400 13px/1.2 var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase;
}
.tile__count { font-size: 10.5px; color: rgba(255, 255, 255, .78); letter-spacing: .14em; }

.mini-cameras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
@media (min-width: 900px) { .mini-cameras { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mini-camera { display: grid; gap: 4px; text-decoration: none; }
.mini-camera__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e6e5e2; margin-bottom: 8px; }
.mini-camera__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease); }
.mini-camera:hover img { transform: scale(1.04); }
.mini-camera__title { font: 400 1rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .06em; }
.mini-camera__meta { font: 400 11px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- shoot cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--gap-photo); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-3); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card { position: relative; min-width: 0; }
.card__link { display: block; text-decoration: none; color: var(--ink); }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card__empty { display: block; width: 100%; height: 100%; }
.card__link:hover .card__img:not(.is-gated) { transform: scale(1.035); }
.card__body { padding-top: 12px; }
.card__kicker { margin: 0 0 3px; font: 400 10.5px/1.3 var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); }
.card__title { font: 400 1rem/1.25 var(--f-head); text-transform: uppercase; letter-spacing: .06em; }
@media (min-width: 700px) { .card__title { font-size: 1.08rem; } }
.card__meta { margin: 4px 0 0; font: 400 11px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* ---------------------------------------------------------------- justified grid */
/* No-JS fallback: flex items grow in proportion to their aspect ratio, so each row has one height.
   site.js replaces this with exact rows (.is-laid-out). */
.jg { --row-h: 250px; display: flex; flex-wrap: wrap; gap: var(--gap-photo); }
.jg::after { content: ""; flex-grow: 1000000; }
@media (min-width: 700px) { .jg { --row-h: 260px; } }
@media (min-width: 1200px) { .jg { --row-h: 320px; } }
.jg__item { position: relative; margin: 0; flex: var(--ar) 1 calc(var(--ar) * var(--row-h)); min-width: 0; overflow: hidden; background: var(--tint); }
.jg__link { display: block; height: 100%; cursor: zoom-in; }
.jg__img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ar); transition: opacity .2s; }
.jg__link:hover .jg__img:not(.is-gated) { opacity: .92; }
.jg.is-laid-out::after { display: none; }
.jg.is-laid-out .jg__item { flex: none; }
.jg.is-laid-out .jg__img { aspect-ratio: auto; }

/* ---------------------------------------------------------------- shoot page */
.shoot { max-width: var(--max); margin: 0 auto; padding: var(--s-6) var(--gutter) 0; }
.shoot__aside { text-align: center; margin-bottom: var(--s-5); }
.shoot__title { font: 300 clamp(1.9rem, 1.3rem + 3vw, 3.2rem)/1.05 var(--f-head); text-transform: uppercase; letter-spacing: .06em; overflow-wrap: anywhere; }
.shoot__date { margin: var(--s-3) 0 0; font: 400 11px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); }
.shoot__intro { max-width: 68ch; margin: 0 auto var(--s-6); text-align: center; }
.shoot__body { max-width: var(--narrow); margin: var(--s-7) auto 0; }
@media (min-width: 1100px) {
  .shoot { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-6); padding-top: var(--s-5); }
  .shoot__aside { margin: 0; }
  .shoot__aside-inner {
    position: sticky; top: calc(var(--header-h) + 24px); height: calc(100vh - var(--header-h) - 48px); max-height: 900px;
    display: flex; flex-direction: row-reverse; justify-content: center; align-items: flex-end; gap: 10px;
  }
  .shoot__title, .shoot__date { writing-mode: vertical-rl; transform: rotate(180deg); max-height: 100%; }
  .shoot__title { font: 300 clamp(2.4rem, 3.4vw, 3.6rem)/1.05 var(--f-head); letter-spacing: .1em; }
  .shoot__title--long { font-size: clamp(1.9rem, 2.4vw, 2.6rem); letter-spacing: .08em; }
  .shoot__date { margin: 0; white-space: nowrap; }
  .shoot__intro { padding-top: var(--s-4); }
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-5) var(--s-6); margin: var(--s-7) 0 0; padding: var(--s-6) 0 0; border-top: 1px solid var(--line); }
.facts > div { min-width: 0; }
.facts dt { font: 400 10.5px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: .95rem; }
.facts dd a { text-decoration-color: var(--line-2); }
.facts dd a:hover { text-decoration-color: var(--ink); }
.facts__tags { grid-column: 1 / -1; }
.facts--inline { border: 0; margin: 0 0 var(--s-5); padding: 0; }

.adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.adjacent__link { display: grid; gap: 6px; text-decoration: none; padding: var(--s-2) 0; }
.adjacent__link--next { text-align: right; justify-items: end; }
.adjacent__dir { display: inline-flex; align-items: center; gap: 6px; font: 400 11px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); }
.adjacent__title { font: 400 1rem/1.25 var(--f-head); text-transform: uppercase; letter-spacing: .05em; }
.adjacent__link:hover .adjacent__title { text-decoration: underline; text-underline-offset: .2em; }
.related { margin-top: var(--s-8); }

/* ---------------------------------------------------------------- gallery filters */
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-3); padding: var(--s-4); background: var(--tint); }
.filters__field { display: grid; gap: 4px; min-width: 0; }
.filters__field label { font: 400 10.5px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); }
.filters select { width: 100%; min-height: 44px; padding: 8px 32px 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23333' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; font: 400 14px var(--f-ui); }
.filters select:focus { border-color: var(--ink); }
.filters__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-4); }
.js .filters__actions .btn { display: none; }
.filters__actions .link-btn { font: 400 11.5px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; }
@media (min-width: 900px) {
  .filters { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; align-items: end; }
  .filters__actions { grid-column: auto; min-height: 44px; }
}
.filters__status { margin: 0 0 var(--s-5); font: 400 11.5px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- people (polaroids) */
.polaroids { list-style: none; margin: 0; padding: var(--s-4) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
@media (min-width: 700px) { .polaroids { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); } }
@media (min-width: 1100px) { .polaroids { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.polaroid { position: relative; background: #fff; padding: 9px 9px 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 8px 22px rgba(0, 0, 0, .09); transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease), box-shadow .35s; }
.polaroid:hover, .polaroid:focus-within { transform: rotate(0) translateY(-4px); box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 16px 36px rgba(0, 0, 0, .14); }
.polaroid__link { display: block; text-decoration: none; color: var(--ink); }
.polaroid__media { display: block; aspect-ratio: 1; overflow: hidden; background: var(--tint); }
.polaroid__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.polaroid__name { display: block; padding: 12px 2px 2px; font: 400 13px/1.2 var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; text-align: center; }
.polaroid__count { display: block; padding: 0 0 12px; font: 400 10.5px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); text-align: center; }
.polaroid--large { width: min(300px, 78vw); margin: 0 auto; transform: rotate(-1.5deg); }
.polaroid--large .polaroid__name { padding-bottom: 16px; }

.client-head { display: grid; gap: var(--s-6); padding-block: var(--s-7); align-items: center; }
.client-head__count { margin-top: var(--s-4); font: 400 11.5px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--muted); }
@media (min-width: 800px) { .client-head { grid-template-columns: 340px minmax(0, 1fr); gap: var(--s-8); padding-block: var(--s-8); } }

/* ---------------------------------------------------------------- cameras */
.camera-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.camera-tools .chips { margin: 0; }
.camera-search { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 360px; border-bottom: 1px solid var(--line-2); }
.camera-search .icon { color: var(--muted); flex: none; }
.camera-search input { flex: 1; min-width: 0; border: 0; padding: 10px 8px; background: none; font: 400 16px var(--f-ui); }
.camera-search input:focus { outline: none; }
.camera-search:focus-within { border-color: var(--ink); }
.camera-list { display: grid; gap: var(--s-7) var(--s-6); }
@media (min-width: 700px) { .camera-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .camera-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.camera-card { display: grid; align-content: start; gap: var(--s-4); min-width: 0; }
.camera-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e6e5e2; }
.camera-card__img { width: 100%; height: 100%; object-fit: contain; background: #e6e5e2; transition: transform .9s var(--ease); }
.camera-card__media:hover .camera-card__img { transform: scale(1.03); }
.camera-card__title { font: 400 1.35rem/1.15 var(--f-head); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.camera-card__title a { text-decoration: none; }
.camera-card__title a:hover { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.camera-card__meta { display: flex; gap: 10px; margin: 0 0 10px; font: 400 11.5px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--muted); }
.camera-card__meta a { text-decoration: none; }
.camera-card__meta a:hover { color: var(--ink); }
.camera-card__excerpt { color: var(--ink-2); font-size: .95rem; margin-bottom: var(--s-4); }
.year-index { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }

.camera-hero { display: grid; gap: var(--s-6); padding-block: var(--s-6); align-items: center; }
.camera-hero__media { margin: 0; background: var(--tint); }
.camera-hero__media img { width: 100%; max-height: 72vh; object-fit: contain; }
.display--camera { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); }
.camera-hero__excerpt { font-size: 1.05rem; color: var(--ink-2); max-width: 58ch; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); margin: var(--s-5) 0; padding: var(--s-5) 0; border-block: 1px solid var(--line); }
.specs dt { font: 400 10.5px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.specs dd { margin: 0; font: 400 1.05rem/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .04em; }
.specs dd a { text-decoration-color: var(--line-2); }
.specs__wide { grid-column: 1 / -1; }
.specs__wide dd { font: 400 .95rem/1.6 var(--f-body); text-transform: none; letter-spacing: 0; }
@media (min-width: 900px) { .camera-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); padding-block: var(--s-7); } .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.camera__body { margin-block: var(--s-4) 0; }

/* ---------------------------------------------------------------- blog */
.post-cards { display: grid; gap: var(--s-7) var(--s-6); }
@media (min-width: 700px) { .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .post-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { display: grid; align-content: start; gap: var(--s-4); min-width: 0; }
.post-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); }
.post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card__media:hover .post-card__img { transform: scale(1.03); }
.post-card__meta { margin: 0 0 6px; font: 400 11px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--muted); }
.post-card__meta a { text-decoration: none; }
.post-card__meta a:hover { color: var(--ink); }
.post-card__title { font: 400 1.3rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.post-card__excerpt { color: var(--ink-2); font-size: .95rem; margin: 0; }

.post__head { padding-block: var(--s-7) var(--s-5); text-align: center; }
.post__title { font: 300 clamp(2rem, 1.4rem + 2.6vw, 3.4rem)/1.08 var(--f-head); text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--s-4); }
.post__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; margin: 0 auto; }
.post__cover { margin: 0 auto var(--s-6); max-width: 1100px; }
.post__cover img { width: 100%; max-height: 80vh; object-fit: cover; }
.post__body { font-size: 1.04rem; }
.post__tags { margin-top: var(--s-6); }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-8); font: 400 12px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; }
.pagination ol { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; text-decoration: none; }
.pagination a:hover { background: var(--tint); }
.pagination [aria-current] { background: var(--ink); color: #fff; }
.pagination__prev, .pagination__next { display: inline-flex !important; gap: 6px; }

/* ---------------------------------------------------------------- forms, contact, castings */
.contact { display: grid; gap: var(--s-7); padding-top: var(--s-7); }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); padding-top: var(--s-8); align-items: start; } .contact__intro { position: sticky; top: calc(var(--header-h) + 32px); } }
.contact__lead { font: 300 1.5rem/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.contact__direct { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: 10px; }
.contact__direct li { display: flex; align-items: center; gap: 10px; }
.contact__note { font-size: .9rem; color: var(--muted); }

.form-card { background: var(--tint); padding: var(--s-5) var(--s-4); }
@media (min-width: 700px) { .form-card { padding: var(--s-6); } }
.casting .form-card { margin-top: var(--s-7); }
.form { display: grid; gap: var(--s-5); }
.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .field:has(textarea) { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .choice legend { font: 400 11px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea, .search-form input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; font-size: 16px; line-height: 1.5;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus, .search-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 18, 18, .08); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { margin: 0; color: var(--danger); font-size: .88rem; }
.field--check label { display: flex; gap: 12px; align-items: flex-start; font: 400 .92rem/1.5 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--ink); }
.req { color: var(--danger); }
.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.choice legend { margin-bottom: 8px; }
.choice__option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; font-size: .95rem; transition: border-color var(--dur); }
.choice__option:hover { border-color: var(--ink-2); }
.choice__option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice__option input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-errors { background: #fff; border-left: 2px solid var(--danger); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); color: var(--danger); font-size: .95rem; }
.form-errors ul { margin: 0; }
.form-errors p { margin-bottom: 6px; font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice-box { background: var(--tint); padding: var(--s-5); margin: var(--s-5) 0; }
.notice-box p { margin: 0; }

.casting-list { list-style: none; padding: 0; margin: 0 0 var(--s-7); border-top: 1px solid var(--line); }
.casting-item { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.casting-item a { display: grid; gap: 4px; text-decoration: none; }
.casting-item__title { font: 400 1.3rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .05em; }
.casting-item__meta { font: 400 11px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--muted); }
.casting-item p { margin: 10px 0 0; color: var(--ink-2); }
.casting__cover { margin: 0 0 var(--s-5); }

.search-form { display: flex; gap: var(--s-2); max-width: 620px; margin-top: var(--s-4); }
.search-form input { flex: 1; min-width: 0; }

.message-page { padding-block: var(--s-8) var(--s-6); text-align: center; }
.message-page .page-head__lead { margin-inline: auto; }
.message-page .link-row, .message-page .search-form { justify-content: center; margin-inline: auto; }

.legal { padding-bottom: var(--s-6); }
.toc { background: var(--tint); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-6); }
.toc ol { margin: 0; }
.legal__updated { margin-top: var(--s-7); font-size: .88rem; color: var(--muted); }

/* ---------------------------------------------------------------- lightbox */
.lb { position: fixed; inset: 0; z-index: 1000; background: var(--overlay); color: #eee; display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .22s; touch-action: none; }
.lb.is-open { opacity: 1; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0 18px; font: 400 11.5px var(--f-ui); letter-spacing: var(--track-ui); color: #999; }
.lb__btn { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; color: #eee; border-radius: 50%; transition: background-color var(--dur); }
.lb__btn:hover { background: rgba(255, 255, 255, .08); }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.lb__img { max-width: none; max-height: none; object-fit: contain; transition: opacity .2s; background: transparent; transform-origin: 0 0; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.lb__img.is-animating { transition: opacity .2s, transform .28s var(--ease); }
.lb.can-zoom .lb__img { cursor: zoom-in; }
.lb.is-zoomed .lb__img { cursor: grab; will-change: transform; }
.lb.is-zoomed.is-dragging .lb__img { cursor: grabbing; }
.lb.is-zoomed .lb__nav { opacity: 0; pointer-events: none; }
.lb__stage { cursor: default; }
.lb__tools { display: flex; align-items: center; gap: 4px; }
.lb__zoom[hidden] { display: none; }
.lb__img.is-loading { opacity: .25; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: 8px; }
.lb__nav--next { right: 8px; }
@media (max-width: 899.98px) { .lb__nav { display: none; } }
.lb__caption { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); text-align: center; min-height: 64px; }
.lb__title { margin: 0 0 4px; font: 400 12.5px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: #fff; }
.lb__title a { color: #fff; }
.lb__exif { margin: 0; font: 400 12px/1.7 var(--f-ui); color: #9a9a9a; }
.lb__exif span + span::before { content: "·"; margin: 0 .55em; color: #555; }
.lb__exif a { color: #d8d8d8; text-decoration-color: #555; }
.lb__exif a:hover { color: #fff; }
body.lb-open { overflow: hidden; }

/* ---------------------------------------------------------------- consent banner */
.consent-banner {
  position: fixed; z-index: 900; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  background: #fff; color: var(--ink); padding: var(--s-5); box-shadow: 0 20px 60px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .06); border: 1px solid var(--line);
  font-size: .92rem; max-height: calc(100dvh - 24px); overflow-y: auto;
}
@media (min-width: 700px) { .consent-banner { left: 24px; right: auto; bottom: 24px; width: 420px; } }
.consent-banner__title { font: 400 1.05rem var(--f-head); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; padding-right: 32px; }
.consent-banner p { color: var(--ink-2); margin-bottom: var(--s-4); }
.consent-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-banner__actions .link-btn { grid-column: 1 / -1; justify-self: center; padding: 6px; font: 400 11.5px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; }
.btn--consent { min-height: 44px; background: var(--ink); color: #fff; }
.btn--consent:hover { background: #fff; color: var(--ink); }
.notice-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 50%; }
.notice-x:hover { background: var(--tint); color: var(--ink); }
.consent-dialog.is-fallback[open] { position: fixed; z-index: 1000; inset: 16px 0 auto; margin: 0 auto; }
.consent-dialog__inner { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); max-height: calc(100dvh - 48px); overflow-y: auto; }
.consent-dialog h2 { font: 300 1.8rem/1.1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.consent-dialog__intro { font-size: .92rem; color: var(--ink-2); }
.consent-dialog__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; }
.consent-dialog__close:hover { background: var(--tint); }
.consent-options { list-style: none; margin: 0; padding: 0; }
.consent-option { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.consent-option h3 { font: 700 12px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; margin-bottom: 6px; }
.consent-option p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.consent-option__always { flex: none; font: 400 11px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.consent-switch { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.consent-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.consent-switch__track { position: absolute; inset: 0; border-radius: 14px; background: #cfcfcf; transition: background-color .2s; }
.consent-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.consent-switch input:checked + .consent-switch__track { background: var(--ink); }
.consent-switch input:checked + .consent-switch__track::after { transform: translateX(20px); }
.consent-switch input:focus-visible + .consent-switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- maintenance */
.maintenance-page { display: grid; min-height: 100vh; place-items: center; text-align: center; }
.maintenance { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-7) var(--gutter); max-width: 640px; }
.maintenance__legal { margin-top: var(--s-6); font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------------------- motion + print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .ribbon__track { scroll-snap-type: none; }
}
@media print {
  .site-header, .site-footer, .consent-banner, .admin-bar, .gate-btn, .filters, .ribbon__controls { display: none !important; }
  body { font-size: 11pt; }
}

/* Client social media links */
.social-links { list-style: none; margin: var(--s-4, 1rem) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.social-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-2); text-decoration: none; font: 400 13px var(--f-ui); letter-spacing: .02em; min-height: 44px; }
.social-link svg { flex: none; }
.social-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.camera__more { margin: var(--s-5, 1.5rem) 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.lb:focus { outline: none; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: var(--s-6, 2rem) 0 0; }
.load-more__count { font: 400 11.5px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--muted); }
.btn.is-busy { opacity: .55; pointer-events: none; }
.shoot__main .film-chips { margin-bottom: var(--s-4, 1rem); }
.film-chips__more { display: contents; }
.film-chips__more details { display: contents; }
.film-chips__more summary { list-style: none; cursor: pointer; }
.film-chips__more summary::-webkit-details-marker { display: none; }
.film-chips__more details[open] summary { display: none; }
.film-chips__more details > ul { display: contents; }
/* With infinite scroll the button only shows while loading (it stays as a link without JS) */
.load-more.is-auto .btn:not(.is-busy) { visibility: hidden; }

/* ================================================================ film camera collection (contact sheet) */
.coll-hero { padding: var(--s-8) 0 var(--s-6); }
.coll-hero__title { margin: 0 0 var(--s-5); }
.coll-hero__lead { max-width: 62ch; margin: 0 0 var(--s-7); color: var(--ink-2); }
.coll-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); margin: 0 0 var(--s-8); padding: var(--s-5) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .coll-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.coll-stats div { min-width: 0; }
.coll-stats dt { font: 400 11px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.coll-stats dd { margin: 0; font: 300 clamp(2rem, 1.4rem + 2.4vw, 3.4rem)/1 var(--f-head); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.coll-stats__dash { margin: 0 .12em; color: var(--faint); }

/* release-year timeline: one tick per camera, stacked when several share a year */
.timeline { position: relative; padding: 0 0 var(--s-2); }
.timeline__track { position: relative; height: 96px; margin: 0 12px; border-bottom: 1px solid var(--ink); }
.timeline__decade { position: absolute; bottom: -24px; transform: translateX(-50%); font: 400 11px var(--f-ui); letter-spacing: var(--track-ui); color: var(--muted); white-space: nowrap; }
.timeline__decade::before { content: ""; position: absolute; left: 50%; top: -9px; height: 8px; border-left: 1px solid var(--ink); }
.timeline__tick { position: absolute; bottom: calc(var(--level) * 13px); width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--ink); transition: transform .2s var(--ease), background-color .2s; }
.timeline__tick::after { content: ""; position: absolute; inset: -6px; }   /* bigger hit area */
.timeline__tick:hover, .timeline__tick:focus-visible, .timeline__tick.is-lit { transform: scale(1.6); background: #c8102e; z-index: 2; }
.timeline__label { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(4px); padding: 6px 10px; background: var(--ink); color: #fff; font: 400 11.5px/1.2 var(--f-ui); letter-spacing: .04em; white-space: nowrap; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.timeline__label span { color: #aaa; margin-left: .3em; }
.timeline__tick:hover .timeline__label, .timeline__tick:focus-visible .timeline__label, .timeline__tick.is-lit .timeline__label { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 640px) { .timeline__decade { font-size: 10px; } .timeline__track { height: 110px; } }

.coll-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin: var(--s-7) 0 var(--s-3); }
.coll-tools .chips { margin: 0; }
.coll-tools .chip { cursor: pointer; font: inherit; font: 400 11px/1.2 var(--f-ui); letter-spacing: .1em; }
.coll-tools__right { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); flex: 1 1 360px; justify-content: flex-end; }
.coll-sort select { appearance: none; border: 0; border-bottom: 1px solid var(--line-2); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23121212' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 4px center; padding: 10px 22px 10px 2px; font: 400 12px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--ink); cursor: pointer; }
.coll-sort select:focus { outline: none; border-color: var(--ink); }


/* ---------------------------------------------------------------- collection: sticky timeline + exhibits */
.coll-stats { margin-bottom: 0; }
.coll-body { position: relative; }
.timeline-bar { padding: var(--s-6) 0 var(--s-5); background: rgba(255, 255, 255, .96); }
@media (min-width: 900px) {
  .timeline-bar { position: sticky; top: var(--header-h); z-index: 20; padding: 10px 0 24px; border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; backdrop-filter: saturate(1.4) blur(6px); }
  .timeline-bar.is-stuck { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0, 0, 0, .35); }
  .timeline-bar.is-stuck .timeline__track { height: 64px; }
  html { scroll-padding-top: calc(var(--header-h) + 130px); }
}
.timeline__tick.is-current { transform: scale(1.7); background: #c8102e; z-index: 3; }
.timeline__tick.is-current .timeline__label { opacity: 1; transform: translateX(-50%) translateY(0); }
.timeline__tick.is-dim { opacity: .25; }

.exhibits { display: grid; gap: clamp(64px, 9vw, 140px); margin: var(--s-7) 0 var(--s-9); }
.exhibit { display: grid; gap: var(--s-6); align-items: center; scroll-margin-top: calc(var(--header-h) + 140px); }
@media (min-width: 900px) {
  .exhibit { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); }
  .exhibit:nth-child(even of :not([hidden])) .exhibit__media { order: 2; }
}
.exhibit__media { position: relative; display: block; aspect-ratio: 1; background: #e2e1dd; overflow: hidden; }
.exhibit__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent !important; transition: transform 1.4s var(--ease); }
.exhibit__media:hover .exhibit__img { transform: scale(1.035); }
.exhibit__nocover { position: absolute; inset: 0; display: grid; place-items: center; font: 300 1.6rem var(--f-head); text-transform: uppercase; color: var(--muted); }
.exhibit__text { min-width: 0; }
.exhibit__kicker { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 var(--s-3); font: 400 11.5px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); }
.exhibit__no { color: var(--ink); }
.exhibit__title { margin: 0 0 var(--s-5); font: 300 clamp(2rem, 1.3rem + 2.6vw, 3.6rem)/1.02 var(--f-head); text-transform: uppercase; letter-spacing: .01em; }
.exhibit__title a { text-decoration: none; }
.exhibit__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.exhibit__excerpt { margin: 0 0 var(--s-5); max-width: 56ch; color: var(--ink-2); }
.exhibit__facts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin: 0 0 var(--s-5); }
.exhibit__facts dt { font: 400 10.5px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.exhibit__facts dd { margin: 0; font: 400 14px/1.4 var(--f-ui); }
.exhibit__films { flex: 1 1 220px; }
.exhibit.is-flash .exhibit__media { animation: ex-flash 1.6s var(--ease); }
@keyframes ex-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); } 25% { box-shadow: 0 0 0 5px rgba(200, 16, 46, .9); } }

/* a strip of film with photos the camera took, in its own negative format */
.strip { --rebate: #141414; --edge: #e2a33b; display: block; max-width: 640px; margin: 0 0 var(--s-5); background: var(--rebate); padding: 0 8px; text-decoration: none; overflow: hidden; border-radius: 1px; transition: box-shadow .35s var(--ease); }
.strip:hover { box-shadow: 0 16px 36px -20px rgba(0, 0, 0, .55); }
.strip__edge { position: relative; display: flex; justify-content: space-between; align-items: center; height: 22px; padding: 0 2px; font: 700 8.5px/1 var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--edge); white-space: nowrap; overflow: hidden; }
.strip__edge > span { position: relative; z-index: 1; }
.strip__frames { display: flex; gap: 6px; }
.strip__frame { position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: var(--ar); background: #222; overflow: hidden; }
.strip__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #222 !important; filter: saturate(.92); transform: scale(1.22); transition: transform .8s var(--ease), filter .4s; }   /* cropped in past the scans' white border and film rebate */
.strip:hover .strip__img { filter: none; }
.strip__frame:hover .strip__img { transform: scale(1.3); }
/* 35mm: sprocket holes run along both edges */
.strip--cf--35mm .strip__edge::before { content: ""; position: absolute; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, transparent 0 6px, #f4f2ee 6px 11px, transparent 11px 15px); }
.strip--cf--35mm .strip__edge { align-items: flex-start; padding-top: 2px; }
.strip--cf--35mm .strip__edge::before { bottom: 3px; }
.strip--cf--35mm .strip__edge--bottom { align-items: flex-end; padding: 0 2px 2px; }
.strip--cf--35mm .strip__edge--bottom::before { top: 3px; bottom: auto; }
/* 110: one small hole per frame */
.strip--cf--110 .strip__edge:first-child::before { content: ""; position: absolute; left: 30%; top: 7px; width: 9px; height: 7px; background: #f4f2ee; border-radius: 2px; }
/* roll film: no sprockets; few frames fit on a 6×9 / 6×12 strip */
.strip--cf--6x9 .strip__frame:nth-child(n+4), .strip--cf--6x12 .strip__frame:nth-child(n+3) { display: none; }
.strip--cf--6x9 .strip__edge--bottom > span:nth-child(n+4), .strip--cf--6x12 .strip__edge--bottom > span:nth-child(n+3) { display: none; }

@media (prefers-reduced-motion: reduce) {
  .exhibit__img, .strip__img, .strip { transition: none !important; }
  .exhibit__media:hover .exhibit__img { transform: none; }
  .strip__frame:hover .strip__img { transform: scale(1.22); }
}
/* Labels at the ends of the timeline anchor inwards instead of centring (no clipping at the edges). */
.timeline__tick--start .timeline__label { left: -4px; transform: translateY(4px); }
.timeline__tick--end .timeline__label { left: auto; right: -4px; transform: translateY(4px); }
.timeline__tick--start:hover .timeline__label, .timeline__tick--start:focus-visible .timeline__label, .timeline__tick--start.is-lit .timeline__label, .timeline__tick--start.is-current .timeline__label,
.timeline__tick--end:hover .timeline__label, .timeline__tick--end:focus-visible .timeline__label, .timeline__tick--end.is-lit .timeline__label, .timeline__tick--end.is-current .timeline__label { transform: none; }
/* Stuck under the header the bar is short: show labels below the axis so they never slide under the header. */
@media (min-width: 900px) {
  .timeline-bar.is-stuck .timeline__label { bottom: auto; top: calc(var(--level) * 13px + 36px); }
}
.strip__frame { display: block; cursor: zoom-in; } .strip__frame:focus-visible { outline: 2px solid var(--edge); outline-offset: 2px; }
/* Ribbon on desktop: drag to slide (grab cursor), gentle snapping so wheel/drag scrolling doesn't jump. */
@media (hover: hover) and (pointer: fine) {
  .ribbon__track { scroll-snap-type: x proximity; cursor: grab; }
  .ribbon__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
  .ribbon__track.is-dragging .ribbon__link { cursor: grabbing; }
  .ribbon__track .ribbon__img { -webkit-user-drag: none; user-select: none; }
}

/* ---------------------------------------------------------------- searchable dropdowns (select.js) */
.xselect { position: relative; display: block; width: 100%; min-width: 0; }
.xselect__native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.xselect__button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink); font: 400 14px var(--f-ui);
  transition: border-color var(--dur) var(--ease);
}
.xselect__button:hover { border-color: var(--muted); }
.xselect__button:focus-visible, .xselect.is-open .xselect__button { outline: none; border-color: var(--ink); }
.xselect.is-invalid .xselect__button { border-color: var(--danger); }
.xselect__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xselect__value.is-placeholder { color: var(--muted); }
.xselect__chev { flex: none; transition: transform var(--dur) var(--ease); }
.xselect.is-open .xselect__chev { transform: rotate(180deg); }
.xselect__pop {
  position: fixed; inset: auto; margin: 0; z-index: 1000; display: none; flex-direction: column; overflow: hidden; padding: 0;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: var(--shadow); font: 400 14px var(--f-ui);
}
.xselect__pop:popover-open, .xselect__pop:not([popover]):not([hidden]) { display: flex; }
.xselect__search { display: none; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.xselect__pop.has-search .xselect__search { display: flex; }
.xselect__search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 2px 0; font: 400 14px var(--f-ui); }
.xselect__list { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; overscroll-behavior: contain; }
.xselect__opt { display: flex; flex-direction: column; padding: 9px 34px 9px 14px; cursor: pointer; position: relative; }
.xselect__text { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.xselect__hint { font-size: 12px; color: var(--muted); }
.xselect__opt.is-active { background: var(--tint); }
.xselect__opt.is-selected::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.xselect__opt.is-empty .xselect__text { color: var(--muted); }
.xselect__opt[aria-disabled=true] { opacity: .45; cursor: default; }
.xselect__group { padding: 10px 14px 4px; font: 400 10.5px var(--f-ui); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted); }
.xselect__none { padding: 12px 14px; color: var(--muted); }
.xselect__list mark { background: none; color: var(--accent); font-weight: 700; }
@media (hover: none) { .xselect__opt { padding-top: 12px; padding-bottom: 12px; } }

/* The collection's sort control keeps its underlined, uppercase look */
.coll-sort .xselect { width: auto; }
.coll-sort .xselect__button { min-height: 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; padding: 10px 2px; gap: 8px;
  font: 400 12px var(--f-ui); letter-spacing: var(--track-ui); text-transform: uppercase; }
.coll-sort .xselect__button:focus-visible, .coll-sort .xselect.is-open .xselect__button { border-color: var(--ink); }
.coll-sort .xselect__chev { width: 10px; }

/* ---------------------------------------------------------------- checkboxes and radios */
input[type=checkbox]:not(.consent-switch input), input[type=radio] {
  -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 0; display: inline-grid; place-content: center;
  border: 1px solid var(--muted); border-radius: var(--radius); background: #fff; cursor: pointer; vertical-align: -4px;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:not(.consent-switch input)::before {
  content: ""; width: 12px; height: 12px; transform: scale(0); transition: transform .15s var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.6L10 3.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
input[type=radio]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s var(--ease); }
input[type=checkbox]:not(.consent-switch input):checked, input[type=radio]:checked { background: var(--ink); border-color: var(--ink); }
input[type=checkbox]:not(.consent-switch input):checked::before, input[type=radio]:checked::before { transform: scale(1); }
input[type=checkbox]:not(.consent-switch input):focus-visible, input[type=radio]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=checkbox]:not(.consent-switch input):disabled, input[type=radio]:disabled { opacity: .45; cursor: not-allowed; }
.field--check label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.field--check input { margin-top: 2px; }
.has-error input[type=checkbox] { border-color: var(--danger); }

.xselect[hidden] { display: none; }
