/* ─── FONTS ─── */
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/syne-v24-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/lora-v37-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/lora-v37-latin-italic.woff2") format("woff2");
}

/* ─── TOKENS ─── */
:root {
  --bg: #0e0e0f;
  --bg2: #141416;
  --bg3: #1a1a1d;
  --surface: #1e1e22;
  --surface2: #252529;
  --border: rgba(255, 255, 255, 0.07);
  --text: #e8e6e0;
  --text-muted: #7a7870;
  --text-dim: #4a4845;
  --accent: #c8a96e;
  --accent2: #8fb89a;
  --accent-glow: rgba(200, 169, 110, 0.15);
  --red: #c06060;
  --serif: "Merriweather", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Ensures anchor links and scroll arrows don't hide section titles under the navbar */
section[id] {
  scroll-margin-top: 100px;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  background: rgba(14, 14, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: border-bottom-color 0.3s ease;
}

.nav-logo {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.nav-logo-img {
  height: 7em;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
  padding: 0.3em 0.55em;
  border-radius: 3px;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(200, 169, 110, 0.1);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.nav-links a.nav-active {
  color: var(--accent);
}

.nav-links a.nav-active::before {
  transform: scaleX(1);
}

.nav-links a:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-muted);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--sans);
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-height: 600px) {
  .mobile-menu {
    justify-content: flex-start;
    padding: 4rem 1rem 2rem;
    overflow-y: auto;
  }
}

/* ─── HERO FRAME ─── */
.hero-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 4rem;
  position: relative;
  z-index: 3;
}

.hero-frame .hero-eyebrow,
.hero-frame .hero-title,
.hero-frame .hero-sub {
  position: relative;
  z-index: 1;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 40%,
      rgba(200, 169, 110, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 80% at 20% 70%,
      rgba(143, 184, 154, 0.04) 0%,
      transparent 50%
    );
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 20%,
    transparent 80%
  );
}

.hero-eyebrow {
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
  text-align: center;
  margin-right: -0.35em;
}

.hero-title {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow:
    0 10px 30px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(200, 169, 110, 0.3);
  opacity: 0;
  position: relative;
  isolation: isolate;
  animation:
    fadeUp 0.8s ease 0.4s forwards,
    titleOmen 6.5s ease-in-out 1.2s infinite;
}

.hero-title::before,
.hero-title::after {
  content: "Venom\A Detective";
  position: absolute;
  top: 0.64em;
  right: -0.12em;
  bottom: -0.08em;
  left: -0.12em;
  z-index: -1;
  white-space: pre;
  pointer-events: none;
  opacity: 0;
}

.hero-title::before {
  color: rgba(143, 184, 154, 0.28);
  filter: blur(10px);
  transform: translate3d(-0.035em, 0.025em, 0);
  animation: titleMist 7.8s ease-in-out 1.1s infinite;
}

.hero-title::after {
  color: rgba(192, 96, 96, 0.18);
  text-shadow: 0 0 24px rgba(192, 96, 96, 0.2);
  transform: translate3d(0.035em, -0.018em, 0);
  mix-blend-mode: screen;
  animation: titlePhantom 5.6s steps(1, end) 1.35s infinite;
}

.hero-title .the {
  font-style: italic;
  text-transform: lowercase;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.4em;
  display: block;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.glitch-word {
  position: relative;
  display: inline-block;
}

.glitch-word::before,
.glitch-word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  opacity: 0;
  pointer-events: none;
}

.glitch-word::before {
  color: #e84040;
  text-shadow: none;
  animation: glitch-r 7s steps(1, end) 1.4s infinite;
}

.glitch-word::after {
  color: #40d9e8;
  text-shadow: none;
  animation: glitch-b 7s steps(1, end) 1.45s infinite;
}

@keyframes glitch-r {
  0%, 85%, 100% { opacity: 0; clip-path: none; transform: none; }
  86% { opacity: 0.9; clip-path: inset(10% 0 70% 0); transform: translate(-5px, 0); }
  87% { opacity: 0;   clip-path: none; transform: none; }
  89% { opacity: 0.8; clip-path: inset(55% 0 20% 0); transform: translate(4px, 0); }
  90% { opacity: 0;   clip-path: none; transform: none; }
  92% { opacity: 0.6; clip-path: inset(30% 0 50% 0); transform: translate(-3px, 0) skewX(-4deg); }
  93% { opacity: 0; }
}

@keyframes glitch-b {
  0%, 85%, 100% { opacity: 0; clip-path: none; transform: none; }
  87% { opacity: 0.9; clip-path: inset(45% 0 35% 0); transform: translate(5px, 0); }
  88% { opacity: 0;   clip-path: none; transform: none; }
  90% { opacity: 0.7; clip-path: inset(15% 0 65% 0); transform: translate(-4px, 0); }
  91% { opacity: 0;   clip-path: none; transform: none; }
  93% { opacity: 0.5; clip-path: inset(65% 0 15% 0); transform: translate(3px, 0) skewX(3deg); }
  94% { opacity: 0; }
}

.hero-sub {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-top: 1.5rem;
  text-align: center;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
  position: relative;
  z-index: 3;
}

/* ─── BUTTONS ─── */
.btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  color: var(--bg);
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(200, 169, 110, 0.4);
}

/* ─── HERO SCROLL INDICATOR ─── */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
  z-index: 3;
  text-decoration: none;
}

.hero-scroll span {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ─── DUAL PATHWAY ─── */
.dual-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 55vh;
  min-height: 420px;
  margin-bottom: 6rem;
}

.path-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  cursor: pointer;
  text-decoration: none;
}

.path-card::before {
  content: "";
  position: absolute;
  inset: 0;
  transition: opacity 0.5s;
}

.path-photo::before {
  background: linear-gradient(
    160deg,
    rgba(143, 184, 154, 0.06) 0%,
    rgba(14, 14, 15, 0.85) 70%
  );
}
.path-science::before {
  background: linear-gradient(
    160deg,
    rgba(200, 169, 110, 0.06) 0%,
    rgba(14, 14, 15, 0.85) 70%
  );
}
.path-card:hover::before {
  opacity: 0.7;
}

.path-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.35);
}

.path-card:hover .path-bg {
  transform: scale(1.06);
  filter: brightness(0.45);
}

.path-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--border);
  z-index: 2;
}

.path-content {
  position: relative;
  z-index: 1;
  background: rgba(14, 14, 15, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  max-width: 440px;
}

.path-tag {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.path-photo .path-tag {
  color: var(--accent2);
}
.path-science .path-tag {
  color: var(--accent);
}

.path-title {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.path-desc {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.path-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all 0.25s;
}

.path-card:hover .path-arrow {
  color: var(--accent);
  transform: translateX(6px);
}
.path-photo:hover .path-arrow {
  color: var(--accent2);
}

/* ─── TEASER CAROUSEL ─── */
.teaser-section {
  padding: 5rem 0;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.28rem;
}

.carousel-track {
  display: grid;
  grid-template-rows: repeat(2, 240px);
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  padding: 0 3rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track:active {
  cursor: grabbing;
}

/* Every 3rd item (1, 4, 7 …) spans both rows — tall portrait */
.carousel-item:nth-child(3n + 1) {
  grid-row: span 2;
}

.carousel-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s;
  animation: masonryIn 0.45s ease both;
}

.carousel-item:hover {
  transform: scale(1.02);
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.85) saturate(1.1);
  transition: all 0.5s;
}

.carousel-item:hover .carousel-img {
  filter: brightness(1) saturate(1.2);
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(14, 14, 15, 0.95), transparent);
}

.carousel-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── GALLERIES ─── */
#galleries {
  padding: 6rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-tab {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.gallery-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(160px, 1fr)) auto;
  gap: 0.85rem;
  align-items: end;
  margin: -1.5rem auto 2.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
}

.gallery-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gallery-filter-field label {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gallery-filter-field input,
.gallery-filter-field select {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gallery-filter-field input:focus,
.gallery-filter-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.gallery-filter-clear {
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.gallery-filter-clear:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-filter-count {
  grid-column: 1 / -1;
  min-height: 1.1rem;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  text-align: center;
}

.masonry-grid {
  columns: 4 220px;
  column-gap: 1.25rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  animation: masonryIn 0.45s ease both;
}

/* Staggered height cycle */
.masonry-item:nth-child(6n + 1) {
  height: 280px;
}
.masonry-item:nth-child(6n + 2) {
  height: 380px;
}
.masonry-item:nth-child(6n + 3) {
  height: 230px;
}
.masonry-item:nth-child(6n + 4) {
  height: 320px;
}
.masonry-item:nth-child(6n + 5) {
  height: 260px;
}
.masonry-item:nth-child(6n + 6) {
  height: 350px;
}

@keyframes masonryIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.masonry-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.8) saturate(1.1);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.masonry-item:hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1.25);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 15, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-view {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1rem;
}

.masonry-cat {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(14, 14, 15, 0.8);
  padding: 0.2rem 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.masonry-item:hover .masonry-cat {
  opacity: 1;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 8, 9, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.lb-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--sans);
  transition: color 0.2s;
}

.lb-close:hover {
  color: var(--accent);
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.lb-arrow:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.lb-prev {
  left: 1.5rem;
}
.lb-next {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}

.lb-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ─── DETECTIVE / ABOUT ─── */
#detective {
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.detective-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
  margin-top: 4rem;
}

.detective-portrait {
  position: sticky;
  top: 100px;
}

.portrait-frame {
  position: relative;
  display: inline-block;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -8px -8px 8px 8px;
  border: 1px solid var(--accent);
  opacity: 0.3;
}

.portrait-frame img {
  width: 100%;
  max-width: 360px;
  display: block;
  filter: brightness(0.85) saturate(0.9);
}

.portrait-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-item {
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat-num {
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detective-bio p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.detective-bio p strong {
  color: var(--text);
  font-weight: 600;
}
.detective-bio p a,
.detective-bio p a strong {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.detective-bio p a:hover,
.detective-bio p a:hover strong {
  color: var(--accent2);
}

/* ─── TIMELINE ─── */
.timeline {
  margin-top: 3rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.tl-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.tl-dot {
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-3px);
}

.tl-year {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.tl-title {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.tl-desc {
  font-family: var(--serif);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── ACCORDION ─── */
.cv-section {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.cv-title {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.2s;
}

.accordion-header:hover {
  color: var(--accent);
}

.accordion-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.3s;
  line-height: 1;
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-item.open .accordion-body {
  max-height: 2500px;
}

.accordion-content {
  padding: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.cv-entry {
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(200, 169, 110, 0.3);
}
.cv-entry-title {
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
}
.cv-entry-inst {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.cv-entry-year {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
}

/* ─── BLOG / FIELD NOTES ─── */
#blog {
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1rem;
  margin-top: 3.5rem;
}

.blog-card {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  isolation: isolate;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-card-soon {
  cursor: default;
}

.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to top,
      rgba(14, 14, 15, 0.96) 0%,
      rgba(14, 14, 15, 0.72) 42%,
      rgba(14, 14, 15, 0.18) 100%
    ),
    linear-gradient(
      135deg,
      rgba(200, 169, 110, 0.18),
      rgba(143, 184, 154, 0.06) 44%,
      transparent 72%
    );
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.blog-featured {
  grid-column: span 1;
  grid-row: span 2;
  min-height: 620px;
}

.blog-card:last-child {
  grid-column: span 2;
  min-height: 300px;
}

.blog-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: brightness(0.58) saturate(1.05);
  transform: scale(1);
  transition:
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.7s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.06);
  filter: brightness(0.74) saturate(1.16);
}

.blog-content {
  width: 100%;
  padding: 1.5rem;
}

.blog-featured .blog-content {
  padding: 2rem;
}

.blog-kicker {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(200, 169, 110, 0.34);
  background: rgba(14, 14, 15, 0.72);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.blog-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.32rem 0.68rem;
  overflow: hidden;
  border: 1px solid rgba(143, 184, 154, 0.46);
  background: rgba(14, 14, 15, 0.76);
  color: var(--accent2);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 0 0 rgba(143, 184, 154, 0);
  animation: coming-soon-pulse 2.8s ease-in-out infinite;
}

.blog-status-badge::after {
  content: "";
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.26) 50%,
    transparent 65%
  );
  transform: translateX(-70%);
  animation: coming-soon-sheen 3.6s ease-in-out infinite;
}

@keyframes coming-soon-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(143, 184, 154, 0);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 24px rgba(143, 184, 154, 0.18);
    transform: translateY(-1px);
  }
}

@keyframes coming-soon-sheen {
  0%,
  38% {
    transform: translateX(-70%);
  }
  68%,
  100% {
    transform: translateX(70%);
  }
}

.blog-card h3 {
  max-width: 12em;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 0.75rem;
}

.blog-featured h3 {
  max-width: 10em;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.blog-card p {
  max-width: 32rem;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.blog-featured p {
  font-size: 1rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blog-meta span:first-child {
  color: var(--accent2);
}

.blog-comment-jump {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-comment-jump:hover {
  color: var(--accent2);
}

.blog-action {
  margin-top: 3rem;
  text-align: center;
}

/* ─── BLOG ARCHIVE ─── */
#blog-archive {
  padding: 9rem 3rem 6rem;
  max-width: 1240px;
  margin: 0 auto;
}

.archive-feature {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  margin-top: 4rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  isolation: isolate;
}

.archive-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(14, 14, 15, 0.96) 0%,
      rgba(14, 14, 15, 0.82) 42%,
      rgba(14, 14, 15, 0.24) 100%
    ),
    linear-gradient(
      150deg,
      rgba(200, 169, 110, 0.22),
      rgba(143, 184, 154, 0.08) 52%,
      transparent 78%
    );
}

.archive-feature-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: brightness(0.68) saturate(1.08);
  transition:
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.8s ease;
}

.archive-feature:hover .archive-feature-image {
  transform: scale(1.04);
  filter: brightness(0.82) saturate(1.16);
}

.archive-feature-content {
  max-width: 660px;
  padding: 3rem;
}

.archive-feature h2 {
  max-width: 10em;
  color: var(--accent);
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  margin-bottom: 1rem;
}

.archive-feature p {
  max-width: 36rem;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.archive-feature-link {
  display: inline-flex;
  margin-top: 1.35rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.archive-feature-link:hover {
  color: var(--accent2);
}

.blog-post {
  max-width: 820px;
  margin: 4rem auto 0;
  padding: 3rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(200, 169, 110, 0.08), transparent 42%),
    var(--surface);
}

.blog-post-header {
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}

.blog-post-header h1,
.blog-post-header h2 {
  max-width: 11em;
  color: var(--accent);
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
  margin-bottom: 1rem;
}

.blog-post-header p {
  max-width: 40rem;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.blog-post-body {
  padding-top: 2rem;
  min-width: 0;
}

.blog-post-body h2,
.blog-post-body h3 {
  color: var(--accent);
  font-family: var(--sans);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-post-hero {
  min-height: 360px;
  margin-top: 2rem;
  background-position: center;
  background-size: cover;
  filter: brightness(0.82) saturate(1.08);
}

.blog-post-body p {
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.35rem;
  overflow-wrap: anywhere;
}

.blog-post-body .blog-post-callout {
  margin: 1.6rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(200, 169, 110, 0.3);
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, rgba(200, 169, 110, 0.08), transparent 70%), var(--surface2);
}

.blog-post-body li {
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.blog-post-body p a,
.blog-post-body p a strong,
.blog-post-body li a,
.blog-post-body li a strong {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-post-body p a:hover,
.blog-post-body p a:hover strong,
.blog-post-body li a:hover,
.blog-post-body li a:hover strong {
  color: var(--accent2);
}

.blog-post-body em {
  color: var(--text);
}

.blog-post img,
.blog-post iframe {
  max-width: 100%;
}

.blog-post-media {
  width: 100%;
  margin-bottom: 1.35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--surface2);
}

.blog-post-media-hero {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.blog-post-media-portrait {
  width: 75%;
  margin-right: auto;
  margin-left: auto;
}

.blog-post-media img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.blog-post-media figcaption {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

.blog-post-source {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem !important;
}

.blog-post-source a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-post-source a:hover {
  color: var(--accent2);
}

.post-comments {
  position: relative;
  margin-top: 4rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200, 169, 110, 0.04), transparent 40%), var(--surface);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.post-comments::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.post-comments h2 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

.comments-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(200, 169, 110, 0.34);
  background:
    linear-gradient(135deg, rgba(200, 169, 110, 0.16), transparent),
    rgba(255, 255, 255, 0.03);
  color: var(--accent);
}

.comments-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comments-intro,
.comments-status,
.comments-setup {
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.comments-status {
  margin-top: -0.35rem;
}

.comments-ready {
  color: var(--accent2);
}

.comments-setup {
  padding: 1.5rem;
  border: 1px solid rgba(200, 169, 110, 0.3);
  background: rgba(200, 169, 110, 0.05);
  border-radius: 8px;
  color: var(--text);
  text-align: center;
}

.comments-setup a {
  color: var(--accent);
  text-decoration: none;
}

.comments-setup a:hover {
  color: var(--accent2);
}

.comments-setup code {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

#cusdis_thread {
  max-width: 100%;
  min-height: 34rem;
  padding: 1rem 0 0;
}

#cusdis_thread iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 34rem;
  border: 0;
  background: transparent;
  color-scheme: dark;
  border-radius: 8px;
}

.post-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 9rem 3rem 6rem;
}

.post-page .blog-post {
  margin-top: 1.5rem;
}

.post-back-link {
  display: inline-flex;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.post-back-link:hover {
  color: var(--accent2);
}

.blog-filter-tabs {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.archive-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.archive-card-soon {
  cursor: default;
}

.archive-card-link {
  position: relative;
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.archive-card[hidden] {
  display: none;
}

.archive-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: var(--surface2);
}

.archive-card-soon:hover,
.blog-card-soon:hover {
  border-color: rgba(143, 184, 154, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  .blog-status-badge,
  .blog-status-badge::after {
    animation: none;
  }
}

.archive-card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.72) saturate(1.05);
  transition:
    transform 0.55s ease,
    filter 0.55s ease;
}

.archive-card:hover .archive-card-image {
  transform: scale(1.04);
  filter: brightness(0.9) saturate(1.16);
}

.archive-card-body {
  padding: 1.4rem;
}

.archive-card h2 {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.24;
  margin-bottom: 0.75rem;
}

.archive-card p {
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.archive-empty {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
}

/* ─── PUBLICATIONS ─── */
#files {
  padding: 6rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pub-year-group {
  margin-bottom: 3rem;
}

.pub-year {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.pub-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.pub-card:hover {
  background: var(--surface);
  margin: 0 -1rem;
  padding: 1.5rem 1rem;
}

.pub-thumb-placeholder {
  width: 80px;
  height: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pub-icon-badge {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #c8a96e 34%, var(--border));
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 25% 20%,
      color-mix(in srgb, #c8a96e 42%, transparent) 0 18%,
      transparent 42%
    ),
    radial-gradient(
      circle at 82% 88%,
      color-mix(in srgb, var(--pub-icon-glow) 18%, transparent) 0 22%,
      transparent 48%
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--pub-icon-a) 64%, var(--surface) 36%),
      color-mix(in srgb, var(--pub-icon-b) 86%, var(--bg) 14%)
    );
  color: #f2efe6;
  box-shadow:
    0 18px 35px color-mix(in srgb, #c8a96e 12%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  isolation: isolate;
}

.pub-icon-badge::before {
  content: "";
  position: absolute;
  inset: -35% 48% 40% -24%;
  background: color-mix(in srgb, #c8a96e 22%, transparent);
  transform: rotate(-22deg);
  border-radius: 999px;
  z-index: -1;
}

.pub-icon-badge::after {
  content: attr(data-icon-number);
  position: absolute;
  right: 0.45rem;
  bottom: 0.35rem;
  font-family: var(--sans);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
}

.pub-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.24)) saturate(0.9)
    contrast(1.04);
  position: relative;
  z-index: 1;
}

.pub-icon-badge[data-icon-kind="snake"] .pub-icon-img {
  width: 54px;
  height: 54px;
  transform: rotate(-8deg);
}

.pub-icon-badge[data-icon-kind="vial"] .pub-icon-img {
  width: 42px;
  height: 50px;
  transform: rotate(-10deg);
}

.pub-icon-badge[data-icon-kind="antibody"] .pub-icon-img {
  width: 50px;
  height: 50px;
  transform: scale(1.06);
}

.pub-icon-badge[data-icon-kind="ecology"] .pub-icon-img {
  width: 52px;
  height: 48px;
  transform: translateY(-1px);
}

.pub-icon-badge[data-icon-kind="research"] .pub-icon-img {
  width: 42px;
  height: 52px;
  transform: rotate(7deg);
}

.pub-title {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.pub-authors {
  font-family: var(--serif);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.pub-journal {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--accent);
}

.pub-doi {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
  transition: all 0.2s;
  align-self: center;
}

.pub-doi:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── CONTACT ─── */
#contact {
  padding: 6rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.contact-info h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.contact-info p {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--accent);
}
.contact-link-icon {
  font-size: 1rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--serif);
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field textarea {
  height: 130px;
}

/* ─── SOCIAL ─── */
.social-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-btn {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s;
}

.social-btn svg {
  width: 32px;
  height: 32px;
}
.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ─── AGENCIES ─── */
#agencies {
  padding: 6rem 3rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* ─── AGENCY DUAL NETWORK ─── */
.agency-split {
  display: flex;
  height: 480px;
  margin-top: 4rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(14, 14, 15, 0.4);
}

.agency-panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
  text-decoration: none;
  transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
  overflow: hidden;
}

.agency-panel:first-child {
  border-right: 1px solid var(--border);
}

.agency-split:hover .agency-panel {
  flex: 0.75;
  filter: brightness(0.4) grayscale(0.6);
}

.agency-split:hover .agency-panel:hover {
  flex: 1.25;
  filter: brightness(1) grayscale(0);
}

.agency-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  transform: scale(1);
  transition: opacity 0.6s ease, transform 0.8s ease;
  z-index: 0;
}

.agency-panel:hover .agency-bg {
  opacity: 0.35;
  transform: scale(1.05);
}

.agency-panel-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  width: 100%;
}

.agency-evl-logo {
  height: 200px;
  width: 100%;
  max-width: 340px;
  margin-bottom: 1.5rem;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.agency-vai-logo {
  height: 90px;
  width: 100%;
  max-width: 400px;
  margin-top: 55px;
  margin-bottom: calc(1.5rem + 55px);
  object-fit: contain;
  transition: transform 0.4s ease;
}

.agency-panel:hover .agency-evl-logo,
.agency-panel:hover .agency-vai-logo {
  transform: scale(1.05);
}

.agency-panel .agency-desc {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: rgba(14, 14, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.agency-panel:hover .agency-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.agency-arrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  transition: color 0.2s, transform 0.2s;
}

.agency-panel:first-child .agency-arrow {
  color: var(--accent);
}

.agency-panel:last-child .agency-arrow {
  color: var(--accent2);
}

.agency-panel:hover .agency-arrow {
  color: #fff;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--accent);
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  animation: btt-bounce 1.8s ease-in-out infinite;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

@keyframes btt-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}


/* ─── DIVIDER ─── */
.section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border),
    transparent
  );
  margin: 0 3rem;
}

/* ─── BORDER BEAM ─── */
@property --border-beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-beam-rotate {
  to {
    --border-beam-angle: 360deg;
  }
}

.border-beam-host {
  position: relative;
  isolation: isolate;
}

.border-beam-host::after {
  content: "";
  position: absolute;
  inset: var(--beam-inset, 0px);
  border-radius: inherit;
  padding: var(--beam-width, 1.5px);
  background: conic-gradient(
    from var(--border-beam-angle),
    transparent 0deg,
    transparent 270deg,
    var(--beam-trail) 310deg,
    var(--beam-color) 348deg,
    var(--beam-trail) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: border-beam-rotate var(--beam-duration, 3s) linear infinite;
  pointer-events: none;
  z-index: -1;
}

/* ─── SCROLL NEXT BUTTON ─── */
@keyframes snb-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

.scroll-next-btn {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 169, 110, 0.5);
  background: rgba(7, 9, 15, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #c8a96e;
  cursor: pointer;
  padding: 0;
  animation: snb-bounce 1.8s ease-in-out infinite;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    border-color 0.2s,
    background 0.2s;
}

.scroll-next-btn:hover,
.scroll-next-btn:focus-visible {
  border-color: #c8a96e;
  background: rgba(7, 9, 15, 0.85);
  outline: none;
}

.scroll-next-btn.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shimmerBar {
  100% {
    transform: translateX(100%);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes titleOmen {
  0%,
  100% {
    filter: brightness(1);
    text-shadow:
      0 10px 30px rgba(0, 0, 0, 0.9),
      0 0 20px rgba(200, 169, 110, 0.28);
  }
  38% {
    filter: brightness(0.82);
    text-shadow:
      0 14px 36px rgba(0, 0, 0, 0.96),
      0 0 14px rgba(143, 184, 154, 0.2);
  }
  43% {
    filter: brightness(1.25);
    text-shadow:
      0 10px 30px rgba(0, 0, 0, 0.9),
      0 0 30px rgba(200, 169, 110, 0.52),
      0 0 54px rgba(143, 184, 154, 0.16);
  }
  46%,
  49% {
    filter: brightness(0.72);
  }
  51% {
    filter: brightness(1.12);
  }
}

@keyframes titleMist {
  0%,
  100% {
    opacity: 0.08;
    transform: translate3d(-0.035em, 0.025em, 0) scale(1);
  }
  42% {
    opacity: 0.26;
    transform: translate3d(-0.08em, 0.04em, 0) scale(1.015);
  }
  58% {
    opacity: 0.14;
    transform: translate3d(0.045em, -0.015em, 0) scale(1.01);
  }
}

@keyframes titlePhantom {
  0%,
  72%,
  100% {
    opacity: 0;
  }
  73% {
    opacity: 0.34;
    transform: translate3d(0.045em, -0.018em, 0);
  }
  74% {
    opacity: 0;
  }
  82% {
    opacity: 0.24;
    transform: translate3d(-0.035em, 0.02em, 0);
  }
  83% {
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  nav {
    padding: 0 2rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.64rem;
    padding: 0.3em 0.4em;
  }
  .masonry-grid {
    columns: 3 200px;
  }
  .detective-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .detective-portrait {
    position: static;
    text-align: center;
  }
  .portrait-stats {
    max-width: 360px;
    margin: 2rem auto 0;
    text-align: left;
  }
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .blog-featured,
  .blog-card:last-child {
    grid-column: span 2;
  }
  .blog-featured {
    min-height: 520px;
  }
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  nav {
    padding: 0 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .hero-frame {
    padding: 2rem 1.5rem;
  }
  .hamburger {
    display: flex;
  }
  .dual-path {
    grid-template-columns: 1fr;
    height: auto;
    margin-bottom: 4rem;
  }
  .path-card {
    min-height: 280px;
  }
  .path-divider {
    display: none;
  }
  .masonry-grid {
    columns: 2 160px;
  }
  #galleries,
  #detective,
  #blog,
  #blog-archive,
  #files,
  #agencies,
  #contact {
    padding: 4rem 1.5rem;
  }
  #blog-archive {
    padding-top: 7rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }
  .blog-featured,
  .blog-card:last-child {
    grid-column: span 1;
  }
  .blog-card,
  .blog-featured,
  .blog-card:last-child {
    min-height: 360px;
  }
  .blog-featured h3 {
    font-size: 1.6rem;
  }
  .archive-feature {
    min-height: 430px;
    margin-top: 2.5rem;
  }
  .archive-feature::after {
    background:
      linear-gradient(
        to top,
        rgba(14, 14, 15, 0.96) 0%,
        rgba(14, 14, 15, 0.78) 54%,
        rgba(14, 14, 15, 0.2) 100%
      ),
      linear-gradient(
        150deg,
        rgba(200, 169, 110, 0.2),
        rgba(143, 184, 154, 0.08) 52%,
        transparent 78%
      );
  }
  .archive-feature-content {
    padding: 1.5rem;
  }
  .archive-feature h2 {
    font-size: 1.8rem;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .archive-card-image {
    height: 210px;
  }
  .blog-post {
    margin-top: 3rem;
    padding: 1.5rem;
  }
  .blog-post-media-hero {
    margin-top: 1.5rem;
  }
  .blog-post-media-portrait {
    width: 100%;
  }
  .post-comments {
    margin-top: 2.5rem;
    padding: 1rem;
  }
  #cusdis_thread,
  #cusdis_thread iframe {
    min-height: 28rem;
  }
  .blog-post-header h1,
  .blog-post-header h2 {
    font-size: 1.8rem;
  }
  .blog-post-hero {
    min-height: 240px;
  }
  .blog-post-header p,
  .blog-post-body p {
    font-size: 0.96rem;
  }
  .post-page {
    padding: 7rem 1.5rem 4rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pub-card {
    grid-template-columns: 56px 1fr;
    gap: 1rem;
  }
  .pub-thumb-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .pub-thumb-placeholder svg {
    width: 24px;
    height: 24px;
  }
  .pub-icon-img,
  .pub-icon-badge[data-icon-kind="snake"] .pub-icon-img,
  .pub-icon-badge[data-icon-kind="antibody"] .pub-icon-img,
  .pub-icon-badge[data-icon-kind="ecology"] .pub-icon-img {
    width: 36px;
    height: 36px;
  }
  .pub-icon-badge[data-icon-kind="vial"] .pub-icon-img,
  .pub-icon-badge[data-icon-kind="research"] .pub-icon-img {
    width: 32px;
    height: 40px;
  }
  .pub-card .pub-doi {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.5rem;
  }
  footer {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
  }
  .nav-logo-img {
    height: 5em;
  }
  .agency-split {
    flex-direction: column;
    height: auto;
  }
  .agency-panel,
  .agency-panel:first-child {
    padding: 2rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .agency-panel-content {
    height: auto;
  }
  .agency-split:hover .agency-panel {
    flex: 1;
    filter: none;
  }
  .agency-panel .agency-desc {
    opacity: 1;
    transform: none;
  }
  .agency-arrow {
    margin-top: 1.25rem;
  }
  .agency-evl-logo {
    height: 110px;
  }
  .agency-vai-logo {
    height: 55px;
    margin-top: 0;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .post-page {
    padding-right: 1rem;
    padding-left: 1rem;
  }
  .blog-post {
    padding: 1rem;
  }
  .blog-post-media {
    padding: 0.5rem;
  }
  .path-card {
    padding: 1.5rem;
  }
  .masonry-grid {
    columns: 1;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }
  .hero-cta .btn {
    text-align: center;
  }
  .path-content {
    padding: 1.5rem;
  }
  .carousel-track {
    grid-template-rows: repeat(2, 180px);
    grid-auto-columns: 220px;
    padding: 0 1.5rem;
  }
  .filter-tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.6rem;
  }
  .gallery-filters {
    grid-template-columns: 1fr;
    margin-top: -1.5rem;
    padding: 0.85rem;
  }
  .gallery-filter-count {
    text-align: left;
  }
  .contact-link {
    word-break: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-title::before,
  .hero-title::after {
    animation: none;
  }
  .hero-title {
    opacity: 1;
  }
  .hero-title::before,
  .hero-title::after {
    display: none;
  }
}

/* ─── 404 PAGE ─── */
.e-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
}

.e-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 15, 0.88);
  z-index: 0;
}

.e-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(200, 169, 110, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 169, 110, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    black,
    transparent
  );
}

.e-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 680px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.e-eyebrow {
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.1s;
}

.e-code {
  font-family: "Syne", sans-serif;
  font-size: clamp(7rem, 18vw, 12rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent) 20%, var(--accent2) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.2s;
  position: relative;
}

.e-code::before {
  content: "404";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 20%, var(--accent2) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(28px);
  opacity: 0.25;
  z-index: -1;
}

.e-rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.3s;
}

.e-title {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.35s;
}

.e-desc {
  font-family: "Syne", sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2.75rem;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.45s;
}

.e-btn-wrap {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.55s;
}

.e-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(200, 169, 110, 0.35);
  border-radius: 4px;
  background: rgba(200, 169, 110, 0.05);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.e-btn:hover {
  background: rgba(200, 169, 110, 0.12);
  border-color: rgba(200, 169, 110, 0.6);
  color: #e8d9b4;
  transform: translateY(-2px);
}

.e-coords {
  margin-top: 3rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.45;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.7s;
}

/* ─── CATEGORY PAGE ─── */
.load-more-wrap {
  text-align: center;
  margin-top: 3rem;
  padding-bottom: 1rem;
}

.cat-back {
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.2em;
  transition: opacity 0.2s;
}
.cat-back:hover { opacity: 0.7; }

/* ─── Recently Added Strip ─────────────────────────────────── */
.recent-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  opacity: 0.65;
  margin-bottom: 1rem;
}

.recent-strip {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 400px;
  margin-bottom: 3rem;
}

.recent-item {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: block;
  text-decoration: none;
}

.recent-item:nth-child(1),
.recent-item:nth-child(5) { height: 57%; }
.recent-item:nth-child(2),
.recent-item:nth-child(4) { height: 75%; }
.recent-item:nth-child(3)  { height: 100%; }

.recent-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82) saturate(1.1);
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.55s;
}

.recent-item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.2);
}

.recent-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.75rem 0.6rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recent-item:hover .recent-caption {
  opacity: 1;
}

.recent-name {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
}

.recent-badge {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200, 169, 110, 0.5);
  padding: 2px 5px;
  border-radius: 2px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .recent-strip {
    height: 290px;
  }
}

@media (max-width: 640px) {
  .recent-strip {
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 2rem;
  }

  .recent-strip::-webkit-scrollbar { display: none; }

  .recent-item:nth-child(n) {
    flex: 0 0 72vw;
    height: 250px;
    scroll-snap-align: start;
  }

  .recent-caption {
    opacity: 1;
  }
}

/* ─── ALBUM GRID (main page category showcase) ─── */
#gallery-preview,
#gallery {
  padding: 6rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 260px 200px 200px;
  gap: 0.5rem;
  margin-top: 3rem;
}

.album-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
}

.album-c-2 { grid-column: span 2; }
.album-c-3 { grid-column: span 3; }
.album-r-2 { grid-row: span 2; }

.album-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65) saturate(1.1);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.6s;
}

.album-card:hover .album-bg {
  transform: scale(1.06);
  filter: brightness(0.85) saturate(1.25);
}

.album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 14, 15, 0.88) 0%,
    rgba(14, 14, 15, 0.25) 55%,
    transparent 100%
  );
}

.album-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.album-name {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  display: block;
}

.album-c-2.album-r-2 .album-name {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
}

.album-r-2:not(.album-c-2) .album-name {
  font-size: 1.3rem;
}

.album-c-2:not(.album-r-2) .album-name,
.album-c-3 .album-name {
  font-size: 1.05rem;
}

.album-arrow {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.album-card:hover .album-arrow {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 210px;
  }
  .album-c-2, .album-c-3, .album-r-2 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 540px) {
  .album-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  #gallery-preview,
  #gallery {
    padding: 4rem 1.25rem;
  }
  .social-btn {
    width: 60px;
    height: 60px;
  }
  .social-btn svg {
    width: 24px;
    height: 24px;
  }
}
