/* ---------- Warm Analog Photo Gallery ---------- */

:root {
  /* Primary: near-black navy.  Secondary: warm mustard/ochre. */
  --bg: oklch(0.17 0.015 265);
  --bg-2: oklch(0.22 0.018 265);
  --paper: oklch(0.24 0.02 265);
  --ink: oklch(0.95 0.012 260);         /* primary type: near white on navy */
  --ink-2: oklch(0.78 0.018 260);
  --ink-3: oklch(0.58 0.02 260);
  --line: oklch(0.38 0.02 265);
  --line-soft: oklch(0.3 0.018 265);
  --accent: oklch(0.76 0.14 75);        /* secondary: mustard */
  --accent-ink: oklch(0.2 0.02 265);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4),
    0 12px 32px -14px rgba(0, 0, 0, 0.65),
    0 2px 4px -2px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 2px 0 rgba(0, 0, 0, 0.5),
    0 24px 48px -16px rgba(0, 0, 0, 0.75),
    0 4px 8px -2px rgba(0, 0, 0, 0.4);
  --grain-opacity: 0.22;
  --stripe-a: oklch(0.28 0.02 265);
  --stripe-b: oklch(0.32 0.022 265);
  --tape: oklch(0.45 0.04 260 / 0.45);

  /* Font pairing — overridden by Tweaks */
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

[data-theme="light"] {
  --bg: oklch(0.96 0.012 90);
  --bg-2: oklch(0.93 0.016 90);
  --paper: oklch(0.98 0.01 90);
  --ink: oklch(0.22 0.02 265);
  --ink-2: oklch(0.42 0.025 265);
  --ink-3: oklch(0.6 0.022 265);
  --line: oklch(0.78 0.02 90);
  --line-soft: oklch(0.87 0.018 90);
  --accent: oklch(0.68 0.14 75);
  --accent-ink: oklch(0.98 0.015 85);
  --shadow: 0 1px 0 rgba(40, 30, 20, 0.04),
    0 10px 28px -12px rgba(40, 30, 20, 0.22),
    0 2px 4px -2px rgba(40, 30, 20, 0.1);
  --shadow-lift: 0 2px 0 rgba(40, 30, 20, 0.06),
    0 22px 44px -16px rgba(40, 30, 20, 0.3),
    0 4px 8px -2px rgba(40, 30, 20, 0.12);
  --grain-opacity: 0.4;
  --stripe-a: oklch(0.88 0.024 80);
  --stripe-b: oklch(0.92 0.02 85);
  --tape: oklch(0.88 0.04 90 / 0.75);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 380;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 0.78  0 0 0 0 0.65  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
[data-theme="light"] body::before {
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.22  0 0 0 0 0.12  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Typography primitives */
.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Layout */
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------------- Header ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 40px;
  max-width: 1320px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  padding: 0;
}

/* Aperture mark */
.brand .mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-block;
  flex-shrink: 0;
}
.brand .mark-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.brand .mark-aperture {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
}
.brand .mark-aperture i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform-origin: 50% 100%;
  opacity: 0.82;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand .mark-aperture i:nth-child(1) { transform: rotate(0deg) translateY(-3px); }
.brand .mark-aperture i:nth-child(2) { transform: rotate(60deg) translateY(-3px); }
.brand .mark-aperture i:nth-child(3) { transform: rotate(120deg) translateY(-3px); }
.brand .mark-aperture i:nth-child(4) { transform: rotate(180deg) translateY(-3px); }
.brand .mark-aperture i:nth-child(5) { transform: rotate(240deg) translateY(-3px); }
.brand .mark-aperture i:nth-child(6) { transform: rotate(300deg) translateY(-3px); }
.brand:hover .mark-aperture i:nth-child(1) { transform: rotate(30deg) translateY(-3px); }
.brand:hover .mark-aperture i:nth-child(2) { transform: rotate(90deg) translateY(-3px); }
.brand:hover .mark-aperture i:nth-child(3) { transform: rotate(150deg) translateY(-3px); }
.brand:hover .mark-aperture i:nth-child(4) { transform: rotate(210deg) translateY(-3px); }
.brand:hover .mark-aperture i:nth-child(5) { transform: rotate(270deg) translateY(-3px); }
.brand:hover .mark-aperture i:nth-child(6) { transform: rotate(330deg) translateY(-3px); }
.brand .mark-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  margin: -2.5px 0 0 -2.5px;
  z-index: 2;
  box-shadow: 0 0 0 2px var(--bg);
}

/* Wordmark */
.brand .wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.012em;
  line-height: 1;
  color: var(--ink);
}
.brand .wm-tld { color: var(--accent); }
.brand .wm-amp {
  font-style: italic;
  color: var(--accent);
  font-size: 24px;
  margin: 0 4px 0 6px;
  transform: translateY(-1px);
}
.brand .wm-co {
  letter-spacing: 0.02em;
}
.brand .sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line-soft);
  align-self: center;
}

.nav-tabs {
  display: flex;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav-tabs button {
  background: transparent;
  border: none;
  padding: 8px 14px;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 999px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: background 0.2s, color 0.2s;
}
.nav-tabs button:hover {
  color: var(--ink);
  background: var(--bg-2);
}
.nav-tabs button.active {
  color: var(--accent-ink);
  background: var(--accent);
}

.nav-tweaks-btn {
  font-size: 14px;
  opacity: 0.55;
  transition: opacity 0.2s, background 0.2s;
}
.nav-tweaks-btn:hover { opacity: 1; }
.nav-tweaks-btn.active { opacity: 1; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
  margin-left: auto;
}
.burger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.burger-icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}
.burger-icon.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger-icon.open span:nth-child(2) { opacity: 0; }
.burger-icon.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 16px 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav-mobile-menu button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-2);
  padding: 10px 4px;
  text-align: left;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.15s;
}
.nav-mobile-menu button:last-child { border-bottom: none; }
.nav-mobile-menu button:hover,
.nav-mobile-menu button.active { color: var(--accent); }

.nav-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}

/* --------------- Page ----------------- */
.page {
  padding: 44px 0 120px;
}

/* Section label row */
.label-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.label-row .rule {
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.label-row .tag {
  color: var(--ink-2);
}

/* ---------------- Hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: stretch;
  margin-bottom: 56px;
}
.hero-lead {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-lead h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 72px);
  text-wrap: balance;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero-lead h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-lead p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 42ch;
  color: var(--ink-2);
  margin: 0;
}
.hero-meta {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.hero-meta b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-serif);
  margin-top: 2px;
}

/* Hero photo: oversized, taped like a polaroid-ish frame */
.hero-photo {
  position: relative;
  background: var(--paper);
  padding: 18px 18px 56px;
  box-shadow: var(--shadow-lift);
  transform: rotate(-0.7deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-photo:hover {
  transform: rotate(0deg) translateY(-2px);
}
.hero-photo .image {
  aspect-ratio: 4 / 3;
  width: 100%;
}
.hero-photo .cap {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
}
.hero-photo .cap .date {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.tape {
  position: absolute;
  width: 90px;
  height: 22px;
  background: var(--tape);
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.tape.tl {
  top: -10px;
  left: 34px;
  transform: rotate(-6deg);
}
.tape.tr {
  top: -10px;
  right: 34px;
  transform: rotate(5deg);
}

/* ---------------- Placeholder image ---------------- */
.image {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      var(--stripe-angle, 135deg),
      var(--stripe-a) 0 10px,
      var(--stripe-b) 10px 20px
    );
}
/* Default: fill container (thumbnails) */
.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image::after {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  opacity: 0.55;
}
.sheet .tile .image::after,
.sheet .tile .image .idx { display: none; }
.image .idx {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-2);
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  padding: 3px 6px;
  border: 1px solid var(--line-soft);
  letter-spacing: 0.12em;
}

/* ---------------- Contact sheet grid ---------------- */
.sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sheet .tile {
  position: relative;
  background: var(--paper);
  padding: 0;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s;
  cursor: zoom-in;
  overflow: hidden;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.sheet .tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.sheet .tile .image {
  aspect-ratio: 1 / 1;
  width: 100%;
}
.sheet .tile.wide .image,
.sheet .tile.tall .image {
  aspect-ratio: 1 / 1;
}

/* Caption: frosted glass strip at bottom, fades in on hover */
.sheet .tile .cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 32px 20px 18px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  color: oklch(0.98 0.012 90);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.32));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
}
.sheet .tile:hover .cap { opacity: 1; }
.sheet .tile .cap .title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
  font-size: 26px;
  letter-spacing: -0.005em;
  line-height: 1.15;
}
.sheet .tile .cap .loc {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.sheet .tile .cap .n { display: none; }

/* Clean grid — no rotation, no spans */
.sheet .tile:nth-child(n) {
  grid-column: auto;
  transform: none;
}

/* density variants */
[data-density="tight"] .sheet { gap: 8px; }
[data-density="airy"] .sheet { gap: 28px; }

/* ---------- Albums grid ---------- */
.albums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}
.album {
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.3s;
}
.album:hover { transform: translateY(-3px); }
.album .stack {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
}
.album .stack .layer {
  position: absolute;
  inset: 0;
  background: var(--paper);
  padding: 10px 10px 26px;
  box-shadow: var(--shadow);
}
.album .stack .layer .image {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.album .stack .l1 { transform: rotate(-2.5deg) translate(-8px, 6px); }
.album .stack .l2 { transform: rotate(1.8deg) translate(6px, -2px); }
.album .stack .l3 { transform: rotate(-0.3deg); }
.album:hover .stack .l1 { transform: rotate(-3.5deg) translate(-14px, 10px); }
.album:hover .stack .l2 { transform: rotate(3deg) translate(10px, -4px); }
.album .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}
.album .meta h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.01em;
}
.album .meta .info {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-align: right;
}

/* ---------- Album detail ---------- */
.album-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: end;
}
.album-head h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.album-head h1 em {
  font-style: italic;
  color: var(--accent);
}
.album-head .lede {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 44ch;
  margin: 0;
}
.album-head .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.album-head .stats .cell {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.album-head .stats .cell b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-top: 2px;
}

/* Back link */
.back {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 6px 0;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.back:hover { color: var(--accent); }

/* Album topbar: back + share, inline row */
.album-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.album-topbar .back { margin-bottom: 0; }

/* Share button — used in lightbox bar and album topbar */
.share-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.share-btn:hover { color: var(--accent); border-color: var(--accent); }
.share-btn.lb-share {
  border-color: rgba(255, 255, 255, 0.25);
  color: oklch(0.85 0.02 80);
  letter-spacing: inherit;
  font-size: 11px;
}
.share-btn.lb-share:hover {
  background: rgba(255, 255, 255, 0.08);
  color: oklch(0.95 0.02 80);
  border-color: rgba(255, 255, 255, 0.4);
}
.album-topbar { margin-bottom: 18px; }
@media (max-width: 720px) {
  .album-topbar { margin-bottom: 14px; }
  .share-btn { padding: 5px 10px; font-size: 10px; }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1100px;
}
.about h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.about p {
  color: var(--ink-2);
  font-size: 17.5px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.about-side {
  background: var(--paper);
  padding: 22px 22px 62px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.about-side .image { aspect-ratio: 3 / 4; }
.about-side .cap {
  position: absolute;
  bottom: 16px;
  left: 28px;
  right: 28px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
}
.about-side-wrap { position: relative; }
.contact-list {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
}
.contact-list .row {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.contact-list .row b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 3px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: color-mix(in oklab, var(--bg) 10%, #0a0806 96%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.on {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-bar {
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: oklch(0.85 0.02 80);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lightbox-bar .counter { color: oklch(0.95 0.02 80); }
.lightbox-bar .spacer { flex: 1; }
.lightbox-bar .keys { display: flex; gap: 12px; align-items: center; }
.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 10px;
  color: oklch(0.9 0.02 80);
}
.lightbox-bar button.close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 999px;
}
.lightbox-bar button.close:hover { background: rgba(255, 255, 255, 0.08); }

.lightbox-stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 80px;
  position: relative;
  min-height: 0;
}
.lightbox-stage:has(.zoomed) {
  padding: 0;
}
.lightbox-photo {
  max-width: min(1100px, 85vw);
  width: fit-content;
  background: var(--paper);
  padding: 20px 20px 64px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: opacity 0.25s;
}
.lightbox-photo.fade { opacity: 0; }
.lightbox-zoom { display: block; cursor: zoom-in; }
.lightbox-photo .image { display: block; height: auto; }
.lightbox-photo .image img {
  width: auto;
  height: auto;
  max-width: min(1060px, calc(85vw - 40px));
  max-height: calc(78vh - 84px);
  object-fit: unset;
  display: block;
}

/* Zoomed mode: fills entire stage */
.lightbox-photo.zoomed {
  max-width: 100%;
  width: 100%;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.lightbox-photo.zoomed .lightbox-zoom {
  cursor: zoom-out;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.lightbox-photo.zoomed .lightbox-zoom img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.lightbox-photo .cap {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.lightbox-photo .cap .date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  font-style: normal;
  color: var(--ink-3);
  text-transform: uppercase;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  color: oklch(0.95 0.02 80);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 22px;
  font-family: var(--font-serif);
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.14); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-filmstrip {
  display: flex;
  gap: 8px;
  padding: 14px 32px 24px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}
.lightbox-filmstrip::-webkit-scrollbar { height: 6px; }
.lightbox-filmstrip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}
.lightbox-filmstrip .thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
}
.lightbox-filmstrip .thumb .image {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.lightbox-filmstrip .thumb .image::after,
.lightbox-filmstrip .thumb .image .idx { display: none; }
.lightbox-filmstrip .thumb.active {
  border-color: var(--accent);
}

/* ---------- Footer ---------- */
.foot {
  margin-top: 80px;
  padding: 32px 40px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}
.foot .spacer { flex: 1; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand .mark { width: 26px; height: 26px; }
.foot-brand .mark-aperture i { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.foot-brand .mark-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
.foot-favicon { display: block; }
.foot-brand .wordmark { font-size: 20px; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.foot-brand .wm-tld { color: var(--accent); }
.foot-meta { opacity: 0.85; }
.foot-social { display: inline-flex; gap: 22px; align-items: center; }
.foot .soc {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); text-decoration: none;
  transition: color 0.2s;
}
.foot .soc:hover { color: var(--accent); }
.foot .soc-ico {
  position: relative; width: 18px; height: 18px;
  display: inline-block;
}
/* Instagram glyph */
.ig-frame {
  position: absolute; inset: 0;
  border: 1.4px solid currentColor;
  border-radius: 5px;
}
.ig-lens {
  position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}
.ig-dot {
  position: absolute; right: 2.5px; top: 2.5px;
  width: 2.5px; height: 2.5px;
  background: currentColor; border-radius: 50%;
}
/* Flickr: two dots */
.fl-dot {
  position: absolute; top: 50%; width: 9px; height: 9px;
  margin-top: -4.5px; border-radius: 50%;
}
.fl-blue { left: 0; background: oklch(0.62 0.14 245); }
.fl-pink { right: 0; background: oklch(0.68 0.18 0); }
.foot .soc:hover .fl-blue { background: var(--accent); }
.foot .soc:hover .fl-pink { background: var(--accent); }
/* Envelope */
.em-env {
  position: absolute; inset: 2px 0;
  border: 1.4px solid currentColor;
  border-radius: 2px;
}
.em-env::before {
  content: ""; position: absolute;
  left: 1px; right: 1px; top: 1px;
  height: 7px;
  border-bottom: 1.4px solid currentColor;
  transform: skewY(-14deg); transform-origin: left;
}

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  padding: 16px 18px 18px;
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
}
.tweaks.on { display: block; }
.tweaks-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 0 4px;
}
.tweaks h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.01em;
  text-transform: none;
}
.tweaks-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 22px;
  line-height: 1;
  padding: 0 0 0 8px;
  transition: color 0.15s;
}
.tweaks-close:hover { color: var(--ink); }
.tweaks .hint {
  color: var(--ink-3);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line-soft);
  padding-bottom: 12px;
}
.tweaks .group { margin-bottom: 14px; }
.tweaks .group > label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.tweaks .seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.tweaks .seg button {
  background: transparent;
  border: none;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink-2);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10.5px;
}
.tweaks .seg button + button { border-left: 1px solid var(--line); }
.tweaks .seg button.on {
  background: var(--ink);
  color: var(--bg);
}
.tweaks .swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.tweaks .sw {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.15s;
}
.tweaks .sw:hover { transform: scale(1.08); }
.tweaks .sw.on::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.tweaks .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9.5px;
  margin-top: 10px;
}
.tweaks .row b { color: var(--ink); font-weight: 500; }

/* ---------- Responsive: tablet ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .nav-inner { padding: 12px 24px; }
  .brand .sub { display: none; }
  .hero { grid-template-columns: 1fr; }
  .sheet { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sheet .tile { grid-column: auto !important; }
  .albums { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-side { transform: none; }
  .album-head { grid-template-columns: 1fr; }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 10px 16px; gap: 14px; }
  .nav-meta { display: none; }
  .nav-tabs { display: none; }
  .nav-burger { display: flex; align-items: center; }
  .nav-mobile-menu { display: flex; }
  .brand .wordmark { font-size: 21px; }
  .brand .mark { width: 30px; height: 30px; }
  .page { padding: 28px 0 80px; }
  .hero { gap: 28px; margin-bottom: 36px; }
  .hero-meta { flex-wrap: wrap; gap: 16px 24px; }
  .sheet { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .albums { grid-template-columns: 1fr; gap: 28px; }
  .album-head .stats { grid-template-columns: repeat(2, 1fr); }
  .about-side { padding: 14px 14px 48px; }
  .foot {
    padding: 24px 16px;
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .foot .spacer { display: none; }
  .foot-meta { order: 3; }
  .lightbox-bar { padding: 10px 14px; gap: 12px; }
  .lightbox-bar .keys { display: none; }
  .lightbox-stage { padding: 16px 48px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: 18px; }
  .lightbox-nav.prev { left: 6px; }
  .lightbox-nav.next { right: 6px; }
  .lightbox-photo {
    max-width: 100%;
    width: 100%;
    padding: 10px 10px 44px;
  }
  .lightbox-photo .cap { left: 14px; right: 14px; bottom: 12px; font-size: 16px; }
  .lightbox-filmstrip { padding: 10px 14px 16px; gap: 6px; }
  .lightbox-filmstrip .thumb { width: 56px; height: 42px; }
  .tweaks { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}
