/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --ink: #1b1712;
  --ink-soft: #241f18;
  --oxblood: #7a2118;
  --oxblood-bright: #9c3324;
  --gold: #c9a24b;
  --gold-soft: #e3cd93;
  --paper: #f4ebda;
  --paper-dim: #e9dcc2;
  --cream: #f3ead9;
  --cream-dim: #cfc3a8;
  --charcoal: #241d14;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --edge: 6vw;
  --dur: 0.8s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 720px) {
  :root { --edge: 6.5vw; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

/* subtle paper grain on the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--edge);
  background: linear-gradient(to bottom, rgba(27,23,18,0.92) 40%, transparent);
  backdrop-filter: blur(2px);
}

.brand {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand .mark {
  width: 28px; height: 28px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-soft);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  color: var(--cream-dim);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

/* =========================================================
   CHAPTER TAB INDEX (signature element)
   ========================================================= */
.chapter-index {
  position: fixed;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 2.1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.chapter-index.visible { opacity: 1; pointer-events: auto; }

.chapter-index button {
  background: none;
  border: none;
  cursor: pointer;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 0.3rem 0;
  border-left: 1px solid rgba(243,234,217,0.18);
  padding-left: 0.7rem;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.chapter-index button.active {
  color: var(--gold-soft);
  border-left: 1px solid var(--gold);
}

@media (max-width: 860px) {
  .chapter-index { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--edge) 4rem;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(122,33,24,0.35), transparent 60%),
    var(--ink);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.04;
  margin: 0 0 1.4rem;
  max-width: 16ch;
  color: var(--paper);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 400;
}

.hero p.sub {
  max-width: 46ch;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--cream-dim);
  margin: 0 0 3rem;
}

.hero-meta {
  display: flex;
  gap: 2.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border-top: 1px dashed rgba(243,234,217,0.25);
  padding-top: 1.1rem;
}
.hero-meta span b {
  display: block;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.25rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: pulse-line 2.2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* =========================================================
   TICKET DIVIDER
   ========================================================= */
.ticket-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--edge);
  margin: 6rem auto 0;
  max-width: 1200px;
  color: var(--cream-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticket-divider::before,
.ticket-divider::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1px dashed rgba(243,234,217,0.22);
}

/* =========================================================
   CHAPTER SECTIONS
   ========================================================= */
.chapter {
  position: relative;
  padding: 8rem var(--edge) 7rem;
  max-width: 1280px;
  margin: 0 auto;
}

.chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.chapter-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--oxblood-bright);
  flex-shrink: 0;
}

.chapter-title-wrap { padding-top: 0.9rem; }

.chapter-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}

.chapter h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin: 0;
  color: var(--paper);
  max-width: 18ch;
}

.chapter-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .chapter-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .chapter-head { gap: 1rem; }
}

.chapter-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--cream-dim);
  min-height: 3em;
}
.chapter-desc[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: rgba(243,234,217,0.4);
  font-style: italic;
}
.chapter-desc {
  outline: none;
  border-left: 2px solid transparent;
  padding-left: 0.9rem;
  transition: border-color 0.3s;
}
.chapter-desc:focus {
  border-left: 2px solid var(--gold);
}

.bullet-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.bullet-list li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--paper);
}
.bullet-list li .chk {
  font-family: var(--font-mono);
  color: var(--gold);
  flex-shrink: 0;
  font-size: 0.85rem;
}
.bullet-list li span[contenteditable] {
  outline: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.3s;
}
.bullet-list li span[contenteditable]:focus {
  border-bottom: 1px dashed var(--gold);
}

/* bullet groups: bold title + nested sub-bullets */
.bullet-list li.bullet-group {
  display: block;
}
.bullet-title {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--paper);
}
.bullet-title .chk {
  font-family: var(--font-mono);
  color: var(--gold);
  flex-shrink: 0;
  font-size: 0.9rem;
}
.sub-bullet-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sub-bullet-list li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  margin-left: 1.7rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--cream-dim);
}
.sub-bullet-list li .chk-sub {
  font-family: var(--font-mono);
  color: var(--cream-dim);
  opacity: 0.75;
  flex-shrink: 0;
  font-size: 0.8rem;
}
.sub-bullet-list li span[contenteditable] {
  outline: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.3s;
}
.sub-bullet-list li span[contenteditable]:focus {
  border-bottom: 1px dashed var(--gold);
}

/* photo collage */
.photo-collage {
  display: grid;
  gap: 1rem;
  position: relative;
}
.photo-collage.count-2 { grid-template-columns: 1fr 1fr; }
.photo-collage.count-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "a b"
    "a c";
}
.photo-collage.count-3 .photo-slot:nth-child(1) { grid-area: a; }
.photo-collage.count-3 .photo-slot:nth-child(2) { grid-area: b; }
.photo-collage.count-3 .photo-slot:nth-child(3) { grid-area: c; }

/* two vertical photos on top, one wide horizontal photo underneath */
.photo-collage.trio {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "a b"
    "c c";
}
.photo-collage.trio .photo-slot:nth-child(1) { grid-area: a; }
.photo-collage.trio .photo-slot:nth-child(2) { grid-area: b; }
.photo-collage.trio .photo-slot:nth-child(3) {
  grid-area: c;
  aspect-ratio: 21 / 7.8;
}

.photo-slot {
  position: relative;
  background: var(--paper);
  border-radius: 3px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: default;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.55);
  transition: transform 0.4s var(--ease);
}
.photo-slot:nth-child(odd) { transform: rotate(-1.4deg); }
.photo-slot:nth-child(even) { transform: rotate(1.2deg); }
.photo-slot:hover { transform: rotate(0deg) scale(1.02); }

.photo-slot .placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--charcoal);
  background:
    repeating-linear-gradient(135deg, rgba(36,29,20,0.05) 0 10px, transparent 10px 20px);
  border: 1px dashed rgba(36,29,20,0.35);
}
.photo-slot .placeholder .plus {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--oxblood);
}
.photo-slot .placeholder span.label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.photo-slot img, .photo-slot video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-slot .remove-btn {
  position: absolute;
  top: 0.4rem; right: 0.4rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(27,23,18,0.75);
  color: var(--paper);
  font-size: 0.75rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.photo-slot:hover .remove-btn { display: flex; }
.photo-slot .tape {
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 46px; height: 16px;
  background: rgba(201,162,75,0.55);
  z-index: 4;
}

/* oxblood seal for chapter 2 */
.seal {
  position: absolute;
  top: -1.5rem;
  right: var(--edge);
  width: 108px; height: 108px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  text-align: center;
  transform: rotate(9deg);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  pointer-events: none;
}
.seal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.5;
}
@media (max-width: 720px) {
  .seal { display: none; }
}

/* photo column wrapper for chapter 3 — collage + brand plaque stack together */
.photo-col {
  display: flex;
  flex-direction: column;
}

/* oxblood-and-gold plaque under chapter 3's photos, echoing the seal's material */
.brand-motto {
  position: relative;
  margin-top: 2.6rem;
  padding: 3rem 1.4rem;
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(122,33,24,0.22), transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand-motto::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  opacity: 0.5;
  pointer-events: none;
}
.brand-motto span {
  display: block;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(201,162,75,0.35);
}
.brand-motto span:last-child {
  border-bottom: none;
}

/* alternating chapter background wash */
.chapter.wash {
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(122,33,24,0.32), transparent 55%);
}

/* =========================================================
   ABOUT THE CANDIDATE
   ========================================================= */
.about-candidate {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem var(--edge) 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.about-candidate .about-photo { flex-shrink: 0; }

.photo-slot.circle {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  width: clamp(150px, 18vw, 220px);
  transform: none !important;
  box-shadow: 0 16px 34px -14px rgba(0,0,0,0.6);
}
.photo-slot.circle:hover { transform: scale(1.03) !important; }
.photo-slot.circle .placeholder { border-radius: 50%; }

.about-candidate .about-text h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  color: var(--paper);
  margin: 0 0 1rem;
}
.about-candidate .about-text .chapter-desc { margin: 0; padding-left: 0.9rem; }
.about-candidate .about-text .chapter-desc + .chapter-desc { margin-top: 1.1rem; }

@media (max-width: 720px) {
  .about-candidate { flex-direction: column; text-align: center; gap: 1.6rem; }
  .about-candidate .about-text .chapter-desc { padding-left: 0; border-left: none; }
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.16s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.27s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .photo-slot, .scroll-cue .line {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================
   FOOTER / CTA
   ========================================================= */
.cta-band {
  margin: 3rem var(--edge) 0;
  padding: 4.5rem 3rem;
  background: var(--paper);
  color: var(--charcoal);
  border-radius: 6px;
  text-align: center;
  position: relative;
}
.cta-band h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0 0 1rem;
}
.cta-band p { color: #4a3f2c; max-width: 44ch; margin: 0 auto 1.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: var(--oxblood);
  color: var(--paper);
  text-decoration: none;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--oxblood-bright); transform: translateY(-2px); }

site-footer, .site-footer {
  padding: 3rem var(--edge) 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  max-width: 1280px;
  margin: 0 auto;
}
.site-footer a { text-decoration: none; color: var(--cream-dim); }
.site-footer a:hover { color: var(--gold-soft); }

/* =========================================================
   PORTFOLIO PAGE
   ========================================================= */
.portfolio-header {
  padding: 9.5rem var(--edge) 3rem;
  max-width: 1280px;
  margin: 0 auto;
}
.portfolio-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--paper);
  margin: 0.6rem 0 1rem;
}
.portfolio-header p {
  max-width: 50ch;
  color: var(--cream-dim);
  line-height: 1.7;
}

.filter-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1px solid rgba(243,234,217,0.28);
  color: var(--cream-dim);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--paper); }
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.gallery-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--edge) 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,0.6);
}
.gallery-tile .placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  border: 1px dashed rgba(36,29,20,0.35);
}
.gallery-tile .placeholder .plus {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--oxblood);
}
.gallery-tile .placeholder span.label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gallery-tile img, .gallery-tile video {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-tile .doc-icon {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--oxblood);
  background: linear-gradient(180deg, var(--paper), var(--paper-dim));
}
.gallery-tile .doc-icon svg {
  width: 34%;
  max-width: 76px;
  height: auto;
}
.gallery-tile .doc-icon .doc-ext {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--charcoal);
}
.gallery-tile .doc-badge {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  background: rgba(27,23,18,0.78);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  z-index: 3;
}
.gallery-tile .kind-tag {
  position: absolute;
  bottom: 0.5rem; left: 0.5rem; right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(27,23,18,0.78);
  color: var(--gold-soft);
  padding: 0.3rem 0.55rem;
  border-radius: 3px;
  z-index: 3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: fit-content;
  max-width: calc(100% - 1rem);
}
.gallery-tile .play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(27,23,18,0.6);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.gallery-tile .remove-btn {
  position: absolute;
  top: 0.4rem; right: 0.4rem;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(27,23,18,0.75);
  color: var(--paper);
  font-size: 0.8rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.gallery-tile:hover .remove-btn { display: flex; }

.gallery-tile.add-tile .placeholder { border-style: solid; border-color: rgba(201,162,75,0.5); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15,12,9,0.92);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox video {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.lightbox-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.lightbox-doc iframe {
  width: 90vw;
  height: 88vh;
  max-width: 1400px;
  border: none;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.lightbox-doc a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-decoration: underline;
}
.lightbox-close {
  position: absolute;
  top: 1.6rem; right: 1.6rem;
  background: none;
  border: 1px solid var(--gold);
  color: var(--paper);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.empty-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  max-width: 1280px;
  margin: -2.5rem auto 3rem;
  padding: 0 var(--edge);
}
