/* =========================================================================
   Alden Merren Studios — public UI inspired by Stasia Schmidt portfolio
   + dark admin / auth surfaces (scoped)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --black: #000000;
  --white: #ffffff;
  --page: #ffffff;
  --accent-soft: #f0f0f0;
  --mist: #e7f2f4;
  --navy: #16132a;
  --ink: #1a1a1a;
  --ink-muted: #444444;
  --line: rgba(22, 19, 42, 0.12);

  --font-display: 'EB Garamond', 'Sorts Mill Goudy', Georgia, serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-button: 'Montserrat', Futura, 'Century Gothic', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1400px;
  --gutter: 4vw;
  --gutter-m: 6vw;
  --header-h: 72px;
  --masonry-gap: 10px;

  /* aliases used by older admin / article snippets */
  --bg-void: #ffffff;
  --bg-surface: #ffffff;
  --bg-elevated: #f0f0f0;
  --bg-elevated-2: #e7f2f4;
  --ink-primary: #16132a;
  --ink-secondary: #5a5668;
  --ink-tertiary: #8a8696;
  --accent: #16132a;
  --accent-cyan: #16132a;
  --accent-blue: #16132a;
  --accent-gradient: linear-gradient(120deg, #16132a 0%, #2a2640 100%);
  --line-strong: rgba(22, 19, 42, 0.22);
  --danger: #c23b4a;
  --gold: #16132a;
  --success: #2f8f63;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --shadow-elevated: none;
  --shadow-glow: none;
  --container-w: 1400px;
  --max-media-height: 80vh;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 1px solid var(--navy);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.page-pad {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* =========================================================================
   Header (transparent over dark heroes, solid on light pages)
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding: 14px var(--gutter);
  background: transparent;
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
body.header-light .site-header {
  color: var(--navy);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
body.header-scrolled.header-over-dark .site-header {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-mark {
  display: none;
}
.brand-name { letter-spacing: 0.08em; }
.brand-name span { font-style: italic; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
}
.main-nav a:hover,
.main-nav a.active { opacity: 1; }

.header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 18px;
}
.header-icons a {
  width: 20px; height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}
.header-icons a:hover { opacity: 1; }
.header-icons svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none;
  width: 36px; height: 28px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.menu-toggle span {
  display: block;
  height: 1px;
  width: 22px;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(255,255,255,0.98);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 300;
}
.mobile-menu-close {
  position: absolute;
  top: 22px; right: var(--gutter);
  border: 0;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-family: var(--font-button);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--navy); color: var(--white); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #000; }
.btn-secondary { background: transparent; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* =========================================================================
   Home — full-bleed photo only
   ========================================================================= */
.home-hero {
  min-height: 100vh;
  background: var(--black);
  position: relative;
}
.home-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.home-hero-media img,
.home-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep bottom-right safe zone (burned © with 5% inset) inside the frame */
  object-position: right bottom;
}
.home-hero-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.home-hero-intro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  padding: 160px var(--gutter) 88px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.14) 62%, rgba(0,0,0,0) 100%);
}
.home-hero-eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.88;
}
.home-hero-title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  max-width: 18ch;
}
.home-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.92;
}
.home-hero-cta::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.home-hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  z-index: 2;
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.35);
  pointer-events: none;
}
.home-hero-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: home-scroll-cue 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-scroll::after { animation: none; top: 28px; opacity: 0.6; }
}
@keyframes home-scroll-cue {
  0% { transform: translateY(0); opacity: 1; }
  75% { transform: translateY(38px); opacity: 0; }
  100% { transform: translateY(38px); opacity: 0; }
}
@media (max-width: 640px) {
  .home-hero-intro { padding: 120px var(--gutter) 64px; }
  .home-hero-scroll { display: none; }
}

/* =========================================================================
   Portfolio index
   ========================================================================= */
.page-main { padding-top: calc(var(--header-h) + 28px); }
.quote-block {
  max-width: 820px;
  margin: 0 auto 64px;
  text-align: center;
  padding: 40px var(--gutter) 8px;
}
.quote-block blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.quote-block cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-muted);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 36px;
  width: min(100%, var(--max-width));
  margin: 0 auto 80px;
  padding: 0 var(--gutter);
}
.series-card {
  display: block;
  color: var(--ink);
}
.series-card figure { margin: 0; }
/* Crop lives on this inner box only — figcaption sits outside it, so the
   title/meta below can never be clipped by the fixed aspect ratio. */
.series-card .card-media {
  position: relative;
  overflow: hidden;
  background: var(--accent-soft);
  aspect-ratio: 4 / 3;
}
.series-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Always keep bottom-right (watermark safe zone) — portrait + landscape + video thumb */
  object-position: right bottom;
  display: block;
  transition: opacity 0.25s ease, transform 0.4s ease;
}
.series-card:hover img { opacity: 0.88; transform: scale(1.015); }
/* Video cards: thumb already has burned © — NO CSS watermark (avoids double). */
.series-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  pointer-events: none;
}
.series-card figcaption {
  margin: 16px 0 0;
  text-align: center;
}
.series-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.series-card-meta {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

.empty-note {
  text-align: center;
  color: var(--ink-muted);
  padding: 60px var(--gutter);
}

/* =========================================================================
   Work / article — Stasia Selected Work (title left, 3-col landscape grid)
   ========================================================================= */
.work-page {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 48px var(--gutter) 80px;
}
.work-page-video {
  width: min(100%, 1100px);
}
.work-header {
  max-width: none;
  margin: 0 0 64px;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 64px;
  align-items: start;
}
/* No statement on this post — let the title use the full width instead of
   sitting alone in the left half. */
.work-header:not(:has(.work-statement-body)) {
  grid-template-columns: minmax(0, 1fr);
}
.work-eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.work-title {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #111;
}
.work-statement-label {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
}
.work-statement-body {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: #2a2a2a;
  max-width: 48ch;
  white-space: pre-line;
}

.series-intro { display: none; }

/* Galleries */
.work-gallery {
  width: 100%;
  margin: 0 0 64px;
}

/*
 * Image posts: masonry — full photo, natural aspect ratio, no crop, no click-to-zoom.
 * 2 columns desktop (larger, clearer); 1 column on small screens.
 */
.work-gallery.is-images {
  column-count: 2;
  column-gap: 22px;
  display: block;
}
.work-gallery.is-images .gallery-item.is-image {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 22px;
  background: transparent;
  cursor: zoom-in;
  overflow: visible;
}
.work-gallery.is-images .gallery-item.is-image .protected-media {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}
.work-gallery.is-images .gallery-item.is-image img {
  width: 100%;
  height: auto;
  object-fit: unset;
  object-position: center;
  display: block;
  vertical-align: middle;
}
.plate-index {
  margin: 8px 2px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  opacity: 0.7;
  text-align: right;
}
/* Single image: full width, centered */
.work-gallery.is-single-image {
  column-count: 1;
  max-width: min(960px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* 1 video: stage follows real video ratio (no big side bars) */
.work-gallery.is-single-video {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 100%;
  justify-items: center;
}
/* Many videos: 2-col desktop, stack on small screens */
.work-gallery.is-multi-video {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.gallery-item {
  margin: 0;
  position: relative;
  background: #f5f5f5;
  overflow: hidden;
}
.gallery-item.is-video {
  cursor: default;
  background: #111;
  width: 100%;
}
.gallery-item.is-video.is-portrait {
  max-width: min(420px, 100%);
  margin: 0 auto;
}
.gallery-item.is-video.is-landscape {
  max-width: 100%;
}
.gallery-item .protected-media {
  position: relative;
  overflow: hidden;
}
.gallery-item.is-video .protected-media,
.gallery-item .video-stage {
  aspect-ratio: 16 / 9; /* overwritten in JS from video metadata */
  background: #111;
  width: 100%;
}
.gallery-item.is-video video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* stage ratio matches video → no letterbox bars */
  display: block;
  background: #111;
}
/* legacy masonry aliases (admin preview) */
.masonry, .masonry-3, .masonry-large {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  column-count: unset;
}
.masonry-item {
  margin: 0;
  position: relative;
  background: #f5f5f5;
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.masonry-item img,
.masonry-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  display: block;
}
.masonry-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  background: rgba(0,0,0,0.18);
  pointer-events: none;
}

.work-foot {
  text-align: center;
  margin: 8px 0 40px;
}
.work-meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin: 0 0 18px;
}
.series-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.series-meta { text-align: center; margin-bottom: 40px; }

/* Details sheet + license, paired like a colophon beside a purchase panel */
.work-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 28px;
  align-items: start;
  max-width: 980px;
  margin: 8px auto 64px;
}
.work-info:empty { display: none; }
.work-info > .work-details,
.work-info > .license-drawer {
  margin: 0;
  max-width: none;
}
.work-info > :only-child {
  grid-column: 1 / -1;
  max-width: 480px;
  margin: 0 auto;
}

.panel-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.work-details {
  padding: 28px;
  border: 1px solid var(--line);
  background: transparent;
}
.details-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.details-row:first-of-type { border-top: 0; padding-top: 0; }
.details-row dt {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 400;
  white-space: nowrap;
}
.details-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
  color: var(--ink);
}

.license-drawer {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
}
.format-options { display: grid; gap: 8px; margin-bottom: 16px; }
.format-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}
.format-option.selected { border-color: var(--navy); }
.format-option label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.format-name { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.format-res { display: block; font-size: 12px; color: var(--ink-muted); }
.format-price { font-family: var(--font-mono); font-size: 13px; }
.price-total {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 18px;
  font-size: 14px;
}
.price-total .value { font-weight: 500; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox-frame {
  position: relative;
  max-width: min(96vw, 1400px);
  max-height: 88vh;
}
.lightbox img,
.lightbox video {
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 18px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


.timecode-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #000;
  color: #cfcfcf;
  font-family: var(--font-mono);
  font-size: 11px;
}
.timecode-strip .rec-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #e33; display: inline-block; margin-right: 8px;
}
.tc-left { display: flex; align-items: center; gap: 8px; }
.tc-perf { display: flex; gap: 3px; }
.tc-perf span { width: 3px; height: 10px; background: #555; }

/* =========================================================================
   About / Contact
   ========================================================================= */
.page-title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.split-page {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  width: min(100%, var(--max-width));
  margin: 0 auto 80px;
  padding: 40px var(--gutter) 0;
  align-items: start;
}
.split-page .copy h4 {
  margin: 28px 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}
.split-page .copy p {
  color: var(--ink-muted);
  margin: 0 0 14px;
}
.split-page .photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.split-page .photo img[src]:not([src=""]) { opacity: 1; }

.contact-form .field { margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--navy); }
.contact-form textarea { min-height: 120px; resize: vertical; }

.accordion details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary {
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion details p {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
}

/* =========================================================================
   Footer — black trust block (Stasia / Leica-style)
   ========================================================================= */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 64px var(--gutter) 48px;
  text-align: center;
}
.trust-footer-inner { max-width: 560px; margin: 0 auto; }
.trust-eyebrow,
.trust-sub {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.trust-brand {
  margin: 14px 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.trust-brand em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.06em;
}
.trust-sub { margin-bottom: 28px; }
.trust-line {
  margin: 18px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}
.footer-brand-stack {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.footer-brand-stack em { font-style: italic; }
.footer-mail {
  display: flex;
  max-width: 440px;
  margin: 0 auto 8px;
  border: 1px solid rgba(255,255,255,0.55);
}
.footer-mail input {
  flex: 1;
  border: 0;
  background: #fff;
  color: #222;
  padding: 14px 16px;
  outline: none;
  font-size: 13px;
}
.footer-mail input::placeholder { color: #999; }
.footer-mail button {
  border: 0;
  border-left: 1px solid rgba(255,255,255,0.55);
  background: #000;
  color: #fff;
  padding: 0 16px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-mail button:hover { background: #16132a; }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0 0 26px;
}
.footer-social a { opacity: 0.9; color: #fff; }
.footer-social a:hover { opacity: 1; }
.footer-legal {
  max-width: 720px;
  margin: 16px auto 0;
  font-size: 11px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}
.footer-legal a { color: rgba(255,255,255,0.75); text-decoration: underline; }
.footer-legal strong { color: rgba(255,255,255,0.78); font-weight: 500; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  margin: 22px 0 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-links a { color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: #fff; }

/* Legal pages */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
  color: var(--ink-muted);
  line-height: 1.8;
}
.legal-page h1 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 2.4rem;
  font-weight: 400;
  margin: 0 0 8px;
}
.legal-page .updated {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.legal-page h2 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 32px 0 12px;
}
.legal-page a { color: var(--navy); text-decoration: underline; }
.legal-page .highlight {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 18px;
  margin: 20px 0;
}

/* =========================================================================
   ADMIN — light gallery theme matching public site
   ========================================================================= */
.admin-shell,
.auth-overlay {
  --bg-void: #ffffff;
  --bg-surface: #ffffff;
  --bg-elevated: #f7f7f7;
  --bg-elevated-2: #eef2f3;
  --ink-primary: #16132a;
  --ink-secondary: #5a5668;
  --ink-tertiary: #8a8696;
  --accent: #16132a;
  --accent-cyan: #16132a;
  --accent-gradient: #16132a;
  --line: rgba(22, 19, 42, 0.12);
  --line-strong: rgba(22, 19, 42, 0.22);
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --shadow-elevated: none;
  --shadow-glow: none;
  --font-display: 'Sorts Mill Goudy', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
}

.admin-shell {
  min-height: 100vh;
  background: #fff;
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-weight: 300;
}
.admin-shell .brand-mark { display: none; }
.admin-shell .brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
}
.admin-shell .btn { border-radius: 0; }
.admin-shell .btn-primary {
  background: #16132a;
  border-color: #16132a;
  color: #fff;
}
.admin-shell .btn-primary:hover { background: #000; color: #fff; }
.admin-shell .btn-secondary {
  background: transparent;
  border-color: #16132a;
  color: #16132a;
}

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
}
.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px 32px;
}
.admin-login-card h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  margin: 22px 0 8px;
  text-align: center;
}
.admin-login-card .sub {
  color: var(--ink-muted);
  font-size: 13px;
  margin-bottom: 28px;
  text-align: center;
  line-height: 1.6;
}
.admin-login-card .brand { justify-content: center; }
.admin-site-header {
  position: sticky;
  background: rgba(255,255,255,0.96) !important;
  color: var(--navy) !important;
  border-bottom: 1px solid var(--line);
}
.admin-site-header .admin-tab {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.65;
}
.admin-site-header .admin-tab.active,
.admin-site-header .admin-tab:hover { opacity: 1; }
.admin-live-preview {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.admin-live-preview .masonry-3 {
  max-height: 420px;
  overflow: auto;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--ink-secondary);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.admin-shell .field input,
.admin-shell .field select,
.admin-shell .field textarea {
  width: 100%;
  padding: 11px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-primary);
  font-size: 14px;
  outline: none;
}
.admin-shell .field input:focus,
.admin-shell .field select:focus,
.admin-shell .field textarea:focus { border-bottom-color: var(--navy); }
.field-hint { font-size: 11.5px; color: var(--ink-tertiary); margin-top: 5px; }
.form-error {
  background: #fff5f6;
  border: 1px solid rgba(194,59,74,0.35);
  color: #a12836;
  padding: 10px 14px;
  font-size: 12.5px;
  margin-bottom: 16px;
}

.admin-tabs { display: flex; gap: 22px; align-items: center; }
.admin-body {
  padding: 28px var(--gutter) 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.admin-section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 8px;
  text-align: center;
}
.admin-section-sub {
  color: var(--ink-muted);
  font-size: 14px;
  margin: 0 auto 32px;
  max-width: 62ch;
  text-align: center;
  line-height: 1.7;
}

.today-panel {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 32px;
}
.today-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.today-panel-head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger);
}
.today-panel-head h3 { font-size: 12px; margin: 0; letter-spacing: 0.1em; }
.today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.today-empty { color: var(--ink-tertiary); font-size: 13px; }
.today-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  display: flex; gap: 10px; align-items: center;
}
.today-card img { width: 46px; height: 46px; object-fit: cover; flex-shrink: 0; }
.today-card .t-title { font-size: 12.5px; font-weight: 500; margin-bottom: 2px; }
.today-card .t-meta { font-size: 11px; color: var(--ink-tertiary); font-family: var(--font-mono); }

.data-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  overflow: auto;
}
.data-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--accent-soft);
  font-weight: 400;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}
.row-thumb { display: flex; align-items: center; gap: 10px; }
.row-thumb img { width: 40px; height: 40px; object-fit: cover; }
.row-title { font-weight: 500; }
.row-slug { font-family: var(--font-mono); font-size: 11px; color: var(--ink-tertiary); }
.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  display: inline-block;
}
.badge-new { background: var(--navy); color: #fff; }
.badge-video { background: var(--mist); color: var(--navy); }
.badge-image { background: var(--accent-soft); color: var(--navy); }
.date-edit {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-primary);
  padding: 6px 8px;
  font-size: 12px;
}
.row-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-secondary);
}
.icon-btn:hover { border-color: var(--navy); color: var(--navy); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }

.upload-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
.upload-grid-single {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
}
.upload-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
}
.panel-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 12px;
}
.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.admin-shell .pricing-row input {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-primary);
}
.dropzone {
  border: 1px dashed var(--line-strong);
  padding: 32px 20px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.dropzone.drag { border-color: var(--navy); background: var(--mist); }
.video-thumb-panel { margin-top: 8px; }
.video-thumb-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: start;
}
.video-thumb-preview {
  aspect-ratio: 4 / 3;
  background: #111;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumb-placeholder {
  color: #999;
  font-size: 12px;
  padding: 12px;
  text-align: center;
}
.video-thumb-controls { display: grid; gap: 10px; }
.video-thumb-scrub-label {
  font-size: 12px;
  color: var(--ink-muted);
}
.video-thumb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#video-thumb-scrub { width: 100%; }
@media (max-width: 700px) {
  .video-thumb-row { grid-template-columns: 1fr; }
}

.file-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.file-preview-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 2px solid var(--line-strong);
}
.file-preview-item.is-cover { border-color: var(--accent); }
.file-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.file-preview-item .file-preview-video-icon {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-tertiary);
}
.file-preview-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(11,14,20,0.75);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.file-preview-cover-btn {
  position: absolute; bottom: 4px; left: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(11,14,20,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.file-preview-item.is-cover { border-color: var(--navy); }
.file-preview-item.is-cover .file-preview-cover-btn {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.file-preview-item .file-preview-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 3px 6px;
  font-size: 9px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.8);
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 14px 18px;
  font-size: 13px;
  max-width: 320px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.toast.success { border-color: rgba(47,143,99,0.45); }
.toast.error { border-color: rgba(194,59,74,0.45); }

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--ink-primary);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
}
.auth-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-secondary);
  display: flex; align-items: center; justify-content: center;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--accent-soft);
  padding: 4px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  background: transparent;
  border: none;
}
.auth-tab.active { background: var(--navy); color: #fff; }
.auth-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 6px;
}
.auth-sub { color: var(--ink-muted); font-size: 13px; margin-bottom: 20px; }
.auth-card .field input {
  width: 100%;
  padding: 11px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-primary);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .series-grid { grid-template-columns: 1fr; gap: 36px; }
  .work-gallery.is-images { column-count: 2; column-gap: 14px; }
  .work-gallery.is-images .gallery-item.is-image { margin-bottom: 14px; }
  .work-gallery.is-multi-video { grid-template-columns: 1fr; gap: 16px; }
  .work-gallery.is-single-video { grid-template-columns: 1fr; }
  .masonry, .masonry-3, .masonry-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-page { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
  .work-info { grid-template-columns: 1fr; max-width: 480px; }
  .work-header {
    grid-template-columns: 1fr;
  }
  .work-eyebrow { grid-column: 1; grid-row: 1; }
  .work-title { grid-column: 1; grid-row: 2; margin-bottom: 28px; }
  .work-statement-label { grid-column: 1; grid-row: 3; margin-top: 4px; }
  .work-statement-body { grid-column: 1; grid-row: 4; max-width: 60ch; }
}
@media (max-width: 640px) {
  .work-gallery.is-images { column-count: 1; }
  .work-gallery.is-multi-video,
  .work-gallery.is-single-video { grid-template-columns: 1fr; }
  .masonry, .masonry-3, .masonry-large { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav, .header-icons { display: none; }
  .menu-toggle { display: flex; }
  :root { --header-h: 64px; }
  .pricing-row { grid-template-columns: 1fr 1fr; }
}


/* =========================================================================
   WATERMARK REBUILD v32 — authoritative final rules
   - Static photos / video thumbnails: PNG mark is burned once at 22% media width.
   - Playing video: the exact same PNG is used as one overlay at 22% player width.
   - No tiled marks, no duplicate CSS text watermark.
   ========================================================================= */
.watermark-copyright,
.watermark-credit,
.video-wm-burn,
.wm-overlay,
.wm-tile,
.legacy-watermark { display: none !important; }

.protected-media { position: relative; overflow: hidden; }
.am-video-watermark {
  position: absolute;
  right: 2.8%;
  bottom: 8%;
  z-index: 8;
  pointer-events: none;
  user-select: none;
  display: block;
  width: 22%;
  min-width: 88px;
  max-width: 280px;
  height: auto;
  opacity: 1;
  object-fit: contain;
  filter: none;
}
.gallery-item.is-image .am-video-watermark,
.series-card .am-video-watermark,
.card-media .am-video-watermark,
.home-hero-media .am-video-watermark,
.protected-media:has(> img) .am-video-watermark { display: none !important; }

