/* ============================================================
   ProHeadshots Gallery — styles
   Brand tokens lifted from proheadshots.uk/luxury.css so the
   gallery feels of-a-piece with the marketing site.
   ============================================================ */

/* Self-hosted fonts — mirrors proheadshots.uk/luxury.css. No external font CDNs. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  /* Palette — lifted from proheadshots.uk/luxury.css */
  --bg: #080808;
  --surface: #111111;
  --surface-raised: #1A1A1A;
  --text-primary: #EDE9E3;
  --text-secondary: #7A7672;
  --text-muted: #595551;
  --gold: #CC9933;
  --gold-hover: #E8B84B;
  --border: #222222;
  --border-strong: #2E2E2E;
  --overlay: rgba(8, 8, 8, 0.75);
  --danger: #C44A3D;

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale — matches main site */
  --fs-eyebrow:    0.8rem;                          /* small uppercase gold labels */
  --fs-h2:         clamp(2rem, 3vw, 3rem);          /* section opener, gallery welcome */
  --fs-lede:       1.0625rem;                       /* welcome paragraph */
  --fs-body:       1rem;                            /* default body */
  --fs-body-sm:    0.875rem;                        /* card copy, captions, notes */
  --fs-card-title: 1.25rem;                         /* tab/section title (serif) */

  /* Layout */
  --container-max: 1400px;
  --radius: 4px;

  /* Motion — matches main site */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --reveal-duration: 500ms;
  --hover-duration: 200ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img, picture, video { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color 200ms var(--ease); }
a:hover { color: var(--gold-hover); }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, button, select, textarea { font: inherit; color: inherit; }

ul, ol { list-style: none; }

.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

/* ── App shell ─────────────────────────────────────────────── */

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  transition: background 300ms var(--ease), border-color 300ms var(--ease), padding 300ms var(--ease);
}
.app__header.is-scrolled {
  background: rgba(8, 8, 8, 0.92);
  border-bottom-color: var(--border);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.brand__logo {
  display: block;
  height: 40px;
  width: auto;
}
.brand__suffix {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding-left: 0.1rem;
}

.app__client {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.app__client-name {
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.btn-link {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #0A0A0A;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn--ghost {
  background: transparent;
  color: var(--gold);
}
.btn--ghost:hover { background: rgba(204, 153, 51, 0.08); color: var(--gold-hover); }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.75rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Login view ───────────────────────────────────────────── */

.login {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}
.login__card {
  width: 100%;
  max-width: 460px;
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.75rem, 3vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.login__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.15;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.login__subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-lede);
  line-height: 1.6;
  margin-bottom: 2.25rem;
}
.login__field { margin-bottom: 1.25rem; }
.login__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.login__input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 200ms var(--ease);
}
.login__input:focus { outline: none; border-color: var(--gold); }
.login__submit { width: 100%; margin-top: 1.25rem; padding: 0.95rem; }
.login__error {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: rgba(196, 74, 61, 0.08);
  border: 1px solid rgba(196, 74, 61, 0.35);
  border-radius: var(--radius);
  color: var(--danger);
  font-size: 0.85rem;
  display: none;
}
.login__error.is-visible { display: block; }

/* ── Gallery view ─────────────────────────────────────────── */

.gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Welcome block (luxury serif treatment) ────────────────── */
.welcome {
  padding: clamp(3rem, 6vw, 5rem) 2rem 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

/* Eyebrow: gold rule + gold primary label + muted type + muted date,
   separated by mid-dot characters. The leading rule is drawn with a
   ::before on the primary span so existing .eyebrow styling stays untouched. */
.welcome__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.welcome__eyebrow-primary {
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.welcome__eyebrow-primary::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.welcome__eyebrow-meta {
  color: var(--text-muted);
}
.welcome__sep {
  color: var(--text-muted);
  opacity: 0.7;
}
/* Hide the date separator if the date itself is empty (JS adds .no-date). */
.welcome__eyebrow.no-date .welcome__sep--date,
.welcome__eyebrow.no-date #welcomeEyebrowDate { display: none; }

/* Headline: large serif display, mixed colour with the emphasised word in gold italic. */
.welcome__headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.welcome__headline em {
  color: var(--gold);
  font-style: italic;
  font-weight: 300;
}

/* Body: multi-paragraph, brighter than the previous muted treatment. */
.welcome__body {
  color: var(--text-primary);
  font-size: var(--fs-lede);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.welcome__body p + p { margin-top: 1.25rem; }

/* Signature: italic, muted, smaller. */
.welcome__signature {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}
.welcome__signature em {
  font-style: italic;
  font-weight: 300;
}

/* Sign-off: small caps, tracked, more muted than signature. */
.welcome__signoff {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Event-only headshots advert ─────────────────────────────
   A single compact strip between the welcome block and the tabs.
   Rendered only when manifest.type === 'event'. Copy and CTA are
   hardcoded in app.js; styling lives here so the strip stays
   consistent across every event gallery. No prices in the copy. */
.gallery__ad {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
}
.gallery__ad p {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.gallery__ad a {
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.gallery__ad a:hover {
  color: var(--gold-hover);
  border-bottom-color: var(--gold);
}
@media (max-width: 720px) {
  .gallery__ad { padding: 0 1.25rem 1.25rem; }
  .gallery__ad p { padding: 0.875rem 1rem; font-size: 0.9rem; }
}

/* ── Event-only rights/attribution notice ────────────────────
   A compact strip directly above the image grid on delegate
   galleries. Rendered only when manifest.type === 'event'.
   Copy is hardcoded in app.js; styling lives here. */
.gallery__rights {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
}
.gallery__rights p {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}
.gallery__rights a {
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.gallery__rights a:hover {
  color: var(--gold-hover);
  border-bottom-color: var(--gold);
}
@media (max-width: 720px) {
  .gallery__rights { padding: 0 1.25rem 1.25rem; }
  .gallery__rights p { padding: 0.875rem 1rem; font-size: 0.85rem; }
}

/* ── "Download everything" panel (sits above the tabs) ───── */

.gallery__all-zips {
  padding: 0 2rem 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}
.gallery__all-zips .eyebrow { margin-bottom: 0.75rem; }
.gallery__all-zips-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  scrollbar-width: thin;
}
.tabs__item {
  position: relative;
  padding: 1rem 0.25rem;
  margin-right: 1.25rem;
  white-space: nowrap;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border: none;
  background: none;
  transition: color 200ms var(--ease);
}
.tabs__item:hover { color: var(--text-primary); }
.tabs__item.is-active { color: var(--text-primary); }
.tabs__item.is-active::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: var(--gold);
}
.tabs__count {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.section {
  padding: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.section__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}
.section__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Photo grid ──────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.photo {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.photo:hover { border-color: var(--border-strong); }
.photo__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--surface-raised);
}
/* Commercial portals: full uncropped frame at the photo's true ratio.
   The inline aspect-ratio (set per photo in app.js) overrides the 4:5 above. */
.photo__img--natural {
  object-fit: contain;
}
/* Don't stretch shorter (landscape) cards to the row's tallest card. */
.grid--natural .photo {
  align-self: start;
}
.photo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--surface);
}
.photo__id { letter-spacing: 0.05em; }

/* ── Video cards (download-only clips) ───────────────────── */

.photo__media {
  position: relative;
  display: block;
}
.photo--video .photo__img {
  aspect-ratio: 16 / 9;
}
/* Neutral fallback when no poster frame was generated (ffmpeg absent). */
.photo__video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* "This is a clip" cue. Gold play glyph + duration, top-left over the poster. */
.photo__video-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  background: var(--overlay);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.photo__video-badge svg { width: 11px; height: 11px; }

/* ── Per-photo download button ───────────────────────────── */

.photo__download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease);
}
.photo__download:hover {
  color: var(--gold-hover);
  border-color: var(--gold);
  background: rgba(204, 153, 51, 0.06);
}
.photo__download svg { width: 12px; height: 12px; }

/* ── Per-photo size picker (multi-size dropdown) ─────────── */

.photo__sizes {
  position: relative;
}
/* Kill default disclosure markers on the summary. */
.photo__sizes summary {
  list-style: none;
  cursor: pointer;
}
.photo__sizes summary::-webkit-details-marker { display: none; }

.photo__chev {
  display: inline-block;
  margin-left: 0.15rem;
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 200ms var(--ease);
}
.photo__sizes[open] .photo__chev { transform: rotate(180deg); }

.photo__sizes-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.4rem);
  z-index: 20;
  min-width: 10rem;
  padding: 0.3rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
}

.photo__size-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  border-radius: calc(var(--radius) - 2px);
  transition: background 150ms var(--ease), color 150ms var(--ease);
  text-decoration: none;
}
.photo__size-option:hover {
  color: var(--gold-hover);
  background: rgba(204, 153, 51, 0.08);
}
.photo__size-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}
.photo__size-meta {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* ── Event portal: justified-rows layout + simplified card ───
   Used only when manifest.type === 'event'. Each row's height is
   computed in JS so that scaled tile widths fill the container.
   The trailing partial row keeps the JS target height (no stretch). */

.event-rows {
  display: flex;
  flex-direction: column;
  gap: 8px; /* matches EVENT_ROW_GAP in app.js */
}
.event-row {
  display: flex;
  gap: 8px;
}
.event-tile {
  display: block;
  position: relative;
  background: var(--surface-raised);
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 200ms var(--ease);
  /* width + height are set inline by the layout function. */
}
.event-tile:hover { opacity: 0.88; }
.event-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-raised);
}

/* ── Documents view ──────────────────────────────────────── */

.docs {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
}
.doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 200ms var(--ease);
}
.doc:hover { border-color: var(--border-strong); }
.doc__name { color: var(--text-primary); font-size: 0.95rem; }
.doc__hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.2rem; }

/* ── Footer ──────────────────────────────────────────────── */

.app__footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: var(--fs-body-sm);
  line-height: 1.7;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  background: var(--bg);
}
.app__footer a {
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  transition: color var(--hover-duration) var(--ease), border-color var(--hover-duration) var(--ease);
}
.app__footer a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Loading ─────────────────────────────────────────────── */

.loading {
  display: grid;
  place-items: center;
  min-height: 60vh;
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ── Hub portal (a grid of event cards) ──────────────────── */
/* Used when manifest.type === 'hub'. Reuses palette + card patterns;
   covers are a 5:4 landscape crop (vs the portrait 4:5 photo cards). */

.hub-header {
  padding: 3rem 2rem 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}
.hub-header__eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.hub-header__eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.hub-header__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  color: var(--text-primary);
  margin-top: 0.5rem;
}
.hub-header__intro {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-top: 1rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem 2rem 3rem;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.hub-card {
  display: flex;
  flex-direction: column;
}
.hub-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--hover-duration) var(--ease);
}
.hub-card__link:hover { border-color: var(--gold); }
.hub-card__cover {
  aspect-ratio: 5 / 4;
  background: var(--surface-raised);
}
.hub-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hub-card__label {
  font-family: var(--serif);
  font-size: var(--fs-card-title);
  color: var(--text-primary);
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--border);
}

.hub-card__meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.6rem 0.25rem 0;
}
.hub-card__share {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--fs-body-sm);
  color: var(--text-primary);
}
.hub-card__share-key {
  flex: none;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.hub-card__share-url {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.hub-card__share-action {
  flex: none;
  margin-left: auto;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.hub-card__share.is-copied .hub-card__share-action { color: var(--gold-hover); }
.hub-card__secondary {
  font-family: var(--sans);
  font-size: var(--fs-body-sm);
  color: var(--gold);
  text-decoration: none;
}
.hub-card__secondary:hover { color: var(--gold-hover); }

/* ── Mobile tweaks ───────────────────────────────────────── */

@media (max-width: 720px) {
  .app__header { padding: 1.25rem 1.5rem; }
  .brand__logo { height: 32px; }
  .brand__suffix { display: none; }
  .app__client { gap: 1rem; font-size: 0.78rem; }
  .welcome { padding: 2rem 1.25rem 1.5rem; }
  .welcome__eyebrow { font-size: 0.7rem; gap: 0.5rem; }
  .welcome__eyebrow-primary::before { width: 16px; }
  .welcome__headline { font-size: clamp(2rem, 9vw, 3rem); }
  .welcome__body { font-size: 1rem; line-height: 1.7; }
  .tabs { padding: 0 1.25rem; }
  .section { padding: 1.5rem 1.25rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
  .hub-header { padding: 2rem 1.25rem 0.5rem; }
  .hub-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 1rem 1.25rem 2rem; }
  .login__card { padding: 2.25rem 1.5rem; }
  .login__title { font-size: 1.85rem; }
}

/* ── Scroll reveal ───────────────────────────────────────── */
/* Mirrors proheadshots.uk/luxury.css. Apply .reveal to any element
   that should fade-and-rise as it scrolls into view. luxury.js adds
   .visible via IntersectionObserver. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--reveal-duration) ease-out, transform var(--reveal-duration) ease-out;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Above-the-fold: pure-CSS fade-in. No JS dependency. */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-fade-in {
  animation: heroFadeUp 0.6s ease-out 0.2s both;
}
.hero-fade-in--delay { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-fade-in { animation: none; opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

[hidden] { display: none !important; }
