/* ————— Neil Gordon · Photography ————— */
:root {
  --bg: #0b0c0e;
  --surface: #14161a;
  --surface-2: #1b1e23;
  --line: #26292f;
  --text: #e9e5dc;
  --muted: #9b968a;
  --faint: #6d685e;
  --gold: #c9a45c;
  --gold-soft: rgba(201, 164, 92, .16);
  --silver: #b9c0c9;
  --serif: "Didot", "Bodoni 72", "Playfair Display", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ————— hero ————— */
.hero { position: relative; height: 100svh; min-height: 540px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2.2s ease; transform: scale(1.04);
  animation: heroDrift 16s ease-in-out infinite alternate;
}
.hero-bg.on { opacity: 1; }
@keyframes heroDrift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.09) translateY(-1.2%); } }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,.42) 0%, rgba(11,12,14,.12) 38%, rgba(11,12,14,.78) 88%, var(--bg) 100%);
}
.hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 0 20px;
}
.hero-kicker {
  margin: 0; letter-spacing: .42em; text-transform: uppercase;
  font-size: 12px; color: rgba(233,229,220,.85); text-indent: .42em;
}
.hero-name {
  margin: .1em 0 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 9.5vw, 118px); letter-spacing: .04em; line-height: 1.05;
  text-shadow: 0 2px 26px rgba(0,0,0,.55);
}
.hero-tag {
  margin: 14px 0 0; max-width: 560px; color: rgba(233,229,220,.92);
  font-size: clamp(14px, 1.6vw, 17px); font-style: italic; font-family: var(--serif);
  text-shadow: 0 1px 14px rgba(0,0,0,.6);
}
.hero-stats {
  margin: 26px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.hero-stats b { font-weight: 600; }
.hero-caption {
  position: absolute; right: 18px; bottom: 14px; margin: 0;
  font-size: 11.5px; color: rgba(233,229,220,.55); font-style: italic;
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: rgba(233,229,220,.75); animation: cueBob 2.4s ease-in-out infinite;
}
@keyframes cueBob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,7px);} }

/* ————— nav bar ————— */
.bar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px;
  padding: 10px 22px; background: rgba(11,12,14,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar-brand { font-family: var(--serif); font-size: 19px; letter-spacing: .05em; white-space: nowrap; }
.bar-views { display: flex; gap: 4px; }
.view-btn {
  padding: 7px 14px; border-radius: 999px; color: var(--muted);
  letter-spacing: .06em; font-size: 13.5px;
}
.view-btn:hover { color: var(--text); }
.view-btn.active { background: var(--surface-2); color: var(--text); }
.bar-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; color: var(--faint); min-width: 150px;
}
.bar-search input {
  background: none; border: 0; outline: 0; color: var(--text); width: 170px; font-size: 13.5px;
}
.bar-search input::placeholder { color: var(--faint); }

/* ————— filters ————— */
.filters { padding: 16px 22px 6px; border-bottom: 1px solid var(--line); }
.chip-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.chip-label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); width: 62px; flex: none;
}
.chip {
  padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; transition: all .15s;
}
.chip:hover { border-color: var(--faint); color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.gold.active { background: var(--gold); border-color: var(--gold); color: #17130a; }
.year-strip { display: flex; align-items: flex-end; gap: 3px; height: 40px; flex: 1; min-width: 260px; }
.year-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 13px; }
.year-bar i {
  display: block; width: 100%; background: var(--surface-2); border-radius: 2px 2px 0 0;
  transition: background .15s; min-height: 2px;
}
.year-bar:hover i, .year-bar.active i { background: var(--gold); }
.year-bar span { font-size: 9.5px; color: var(--faint); transform: rotate(0); }
.year-bar.active span { color: var(--gold); }
#sort {
  margin-left: auto; background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; font-size: 13px; outline: none;
}
.active-note { display: flex; gap: 14px; align-items: center; padding: 2px 0 10px; color: var(--gold); font-size: 13px; }
.active-note button { color: var(--faint); font-size: 12.5px; }
.active-note button:hover { color: var(--text); }

/* ————— gallery ————— */
.gallery { padding: 14px 14px 8px; min-height: 40vh; }
.g-row { display: flex; gap: 6px; margin-bottom: 6px; }
.tile {
  position: relative; overflow: hidden; border-radius: 3px; background: var(--surface);
  cursor: pointer; flex: none;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease, transform .45s ease;
}
.tile img.ld { opacity: 1; }
.tile:hover img { transform: scale(1.033); }
.tile-shade {
  position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: linear-gradient(180deg, transparent 52%, rgba(5,5,7,.82) 100%);
  display: flex; align-items: flex-end; padding: 10px 12px; pointer-events: none;
}
.tile:hover .tile-shade { opacity: 1; }
.tile-title { font-size: 13px; line-height: 1.35; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.tile-title small { display: block; color: rgba(233,229,220,.66); font-size: 11px; }
.tile-badge {
  position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 4px;
  background: rgba(10,9,6,.62); backdrop-filter: blur(4px); color: var(--gold);
  border: 1px solid rgba(201,164,92,.45); border-radius: 999px;
  font-size: 10.5px; letter-spacing: .06em; padding: 3px 8px; pointer-events: none;
}
.tile-badge.silver { color: var(--silver); border-color: rgba(185,192,201,.4); }
.tile-badge.quiet { color: rgba(233,229,220,.75); border-color: rgba(233,229,220,.22); }
.gallery-count { text-align: center; color: var(--faint); font-size: 12.5px; padding-bottom: 26px; margin: 0; }

/* highlights variant: caption strips under tiles */
.hl-section { padding: 8px 14px 2px; }
.hl-section h2 {
  font-family: var(--serif); font-weight: 400; font-size: 25px; margin: 26px 6px 4px;
  color: var(--text);
}
.hl-section h2 small { font-family: var(--sans); font-size: 12.5px; color: var(--faint); margin-left: 12px; letter-spacing: .08em; }
.hl-rule { border: 0; border-top: 1px solid var(--line); margin: 4px 6px 14px; }

/* ————— map ————— */
.map-panel { padding: 22px; border-bottom: 1px solid var(--line); scroll-margin-top: 54px; }
.map-hint {
  position: absolute; left: 12px; bottom: 12px; z-index: 5; pointer-events: none;
  background: rgba(10,11,13,.82); border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 14px; font-size: 12px; color: var(--muted); letter-spacing: .02em;
}
.map-hint b { color: var(--gold); font-weight: 600; }
@media (pointer: coarse) { .map-hint { display: none; } }
.map-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.map-head h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0; }
.map-head p { margin: 0; color: var(--muted); font-size: 13.5px; flex: 1; }
.map-zoom { display: flex; gap: 6px; }
.map-zoom .zbtn { width: 30px; padding: 5px 0; font-size: 16px; line-height: 1; text-align: center; }
.map-wrap {
  position: relative; overflow: hidden; border-radius: 8px; border: 1px solid var(--line);
  background: #07080a; cursor: grab; touch-action: none;
}
.map-wrap.pz-grabbing { cursor: grabbing; }
.map-select { position: absolute; z-index: 6; pointer-events: none; border-radius: 2px;
  border: 1.5px solid var(--gold); background: rgba(201,164,92,.14); }
.map-inner { position: relative; transform-origin: 0 0; }
.map-inner.pz-smooth { transition: transform .45s cubic-bezier(.4,0,.2,1); }
.map-inner img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.map-dots { position: absolute; inset: 0; --s: 1; }
.map-dot {
  position: absolute; width: calc(var(--b, 12px) / var(--s)); height: calc(var(--b, 12px) / var(--s));
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(233,200,130,.95) 0%, rgba(201,164,92,.75) 55%, rgba(201,164,92,0) 72%);
  cursor: pointer;
}
.map-dot:hover { transform: translate(-50%,-50%) scale(1.35); }
.map-tip {
  position: absolute; z-index: 5; pointer-events: none; background: rgba(10,11,13,.92);
  border: 1px solid var(--line); color: var(--text); border-radius: 6px;
  font-size: 12.5px; padding: 6px 10px; white-space: nowrap;
}
.map-tip small { color: var(--gold); display: block; }
.place-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.place-list .chip small { color: var(--faint); margin-left: 5px; }

/* ————— lightbox ————— */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(7,7,9,.97);
  display: flex; align-items: center; justify-content: center;
}
.lb-stage {
  margin: 0; max-width: min(1500px, 96vw); width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 34px 70px 18px;
}
.lb-stage img {
  max-width: 100%; max-height: calc(100% - 118px); object-fit: contain;
  box-shadow: 0 12px 60px rgba(0,0,0,.7); border-radius: 2px; background: var(--surface);
}
.lb-info { width: 100%; max-width: 980px; text-align: center; padding-top: 14px; }
.lb-info h2 {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: 24px; margin: 0; line-height: 1.25;
}
.lb-meta { color: var(--muted); font-size: 13px; margin: 5px 0 0; letter-spacing: .04em; }
.lb-awards { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 9px; }
.award-chip {
  font-size: 11.5px; letter-spacing: .05em; border-radius: 999px; padding: 3.5px 11px;
  border: 1px solid rgba(201,164,92,.5); color: var(--gold); background: var(--gold-soft);
}
.award-chip.silver { border-color: rgba(185,192,201,.42); color: var(--silver); background: rgba(185,192,201,.09); }
.award-chip.quiet { border-color: rgba(233,229,220,.2); color: rgba(233,229,220,.75); background: rgba(233,229,220,.05); }
.lb-history { margin-top: 8px; color: var(--faint); font-size: 12.5px; }
.lb-history summary { cursor: pointer; list-style: none; }
.lb-history summary::-webkit-details-marker { display: none; }
.lb-history summary:hover { color: var(--muted); }
.lb-history ul { margin: 6px 0 0; padding: 0; list-style: none; color: var(--muted); }
.lb-counter { color: var(--faint); font-size: 11.5px; margin: 8px 0 0; letter-spacing: .1em; }
.lb-copy { color: var(--faint); font-size: 11px; margin: 4px 0 0; letter-spacing: .06em; }
.lb-close {
  position: absolute; top: 12px; right: 18px; font-size: 34px; color: var(--muted); z-index: 5;
}
.lb-close:hover { color: var(--text); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); font-size: 54px; line-height: 1;
  color: rgba(233,229,220,.5); padding: 30px 16px; z-index: 5; user-select: none;
}
.lb-nav:hover { color: var(--text); }
.lb-prev { left: 4px; } .lb-next { right: 4px; }

/* ————— footer ————— */
.footer { padding: 34px 22px 44px; text-align: center; border-top: 1px solid var(--line); }
.footer p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-sub { margin-top: 5px !important; color: var(--faint) !important; font-size: 11.5px !important; letter-spacing: .06em; }

/* ————— responsive ————— */
@media (max-width: 760px) {
  .bar { gap: 10px; padding: 9px 12px; flex-wrap: wrap; }
  .bar-brand { display: none; }
  .bar-search { min-width: 0; }
  .bar-search input { width: 110px; }
  .filters { padding: 12px 12px 4px; }
  .chip-label { width: 100%; }
  .lb-stage { padding: 26px 8px 12px; }
  .lb-nav { padding: 30px 6px; font-size: 40px; }
  .hero-caption { display: none; }
}
