/* =============================================
   UNDERDARK.WEBCAM — Specimen Cabinet Styles
   Palette: Warm-Earthy Underdark
   ============================================= */

/* ---- Root Variables ---- */
:root {
  --bg-abyss: #0e0b07;
  --bg-card: #1c1408;
  --bg-hover: #2d1f0a;
  --gold: #c9a84c;
  --parchment: #e8d5a0;
  --bright-parchment: #f5ecd0;
  --green-deep: #7a9e6e;
  --green-under: #4a7c59;
  --coral: #d4824a;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Lora', 'Georgia', serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-abyss);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* =============================================
   SIDEBAR NAVIGATION
   ============================================= */

.sidebar-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 48px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  border-right: 1px solid rgba(201, 168, 76, 0.15);
  z-index: 100;
  background: rgba(14, 11, 7, 0.92);
  backdrop-filter: blur(4px);
}

.sidebar-site-name {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.4);
  margin-bottom: 8px;
}

.sidebar-nav a {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.4);
  text-decoration: none;
  transition: color 220ms ease, opacity 220ms ease;
}

.sidebar-nav a:hover {
  color: var(--gold);
}

/* =============================================
   MAIN CONTENT
   ============================================= */

.main-content {
  margin-left: 48px;
}

/* =============================================
   HERO SECTION — SPECIMEN THEATRE
   ============================================= */

.hero-theatre {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 48px 60px;
}

.hero-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.07) 0%, transparent 65%);
  pointer-events: none;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-illustration {
  width: 100%;
  max-width: 420px;
  position: relative;
}

.hero-svg {
  width: 100%;
  height: auto;
}

.hero-text-block {
  text-align: center;
  margin-top: 40px;
  max-width: 580px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.55);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--bright-parchment);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: rgba(232, 213, 160, 0.65);
  max-width: 460px;
  margin: 0 auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.3);
  animation: pulse-fade 2.5s ease-in-out infinite;
}

@keyframes pulse-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* =============================================
   FISH DIVIDERS
   ============================================= */

.divider-fish {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px auto;
  max-width: 360px;
  padding: 0 48px;
}

.rule-line {
  flex: 1;
  height: 1px;
  background: rgba(201, 168, 76, 0.2);
}

.fish-icon {
  fill: #c9a84c;
  opacity: 0.6;
  flex-shrink: 0;
}

/* =============================================
   SECTION HEADERS
   ============================================= */

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.5);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  color: var(--bright-parchment);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--gold);
  margin-bottom: 48px;
}

/* =============================================
   SPECIMENS SECTION
   ============================================= */

.specimens-section {
  padding: 80px 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* Portfolio Grid with Depth-Plane Stagger */
.specimen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 80px;
  align-items: start;
}

.specimen-card {
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.9);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 280ms ease-out, box-shadow 280ms ease-out, border-color 280ms ease-out;
  opacity: 0;
  transform-origin: center center;
  cursor: default;
}

/* Depth-plane stagger by column */
.specimen-card:nth-child(3n+1) {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transform: scale(1.0) translateY(16px);
  border-color: rgba(201, 168, 76, 0.9);
}

.specimen-card:nth-child(3n+2) {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transform: scale(0.97) translateY(16px);
  border-color: rgba(201, 168, 76, 0.6);
}

.specimen-card:nth-child(3n+3) {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  transform: scale(0.94) translateY(16px);
  border-color: rgba(201, 168, 76, 0.35);
}

/* Visible state after scroll animation */
.specimen-card.visible.col-1 {
  transform: scale(1.0) translateY(0);
  opacity: 1;
}

.specimen-card.visible.col-2 {
  transform: scale(0.97) translateY(0);
  opacity: 1;
}

.specimen-card.visible.col-3 {
  transform: scale(0.94) translateY(0);
  opacity: 1;
}

.specimen-card:hover {
  transform: scale(1.02) translateY(0) !important;
  box-shadow: 0 0 32px rgba(201, 168, 76, 0.2), 0 8px 32px rgba(0, 0, 0, 0.7) !important;
  border-color: rgba(201, 168, 76, 1.0) !important;
  background: var(--bg-hover);
}

/* Card Label Zone */
.card-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.card-order {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.5);
}

.card-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Card Illustration Zone */
.card-illustration {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 0;
}

.card-svg {
  width: 100%;
  height: 100%;
  max-height: 200px;
}

/* Card Footer */
.card-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.card-desc {
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(232, 213, 160, 0.6);
}

/* Card Corner Brackets */
.card-corner {
  position: absolute;
  width: 12px;
  height: 12px;
}

.card-corner::before,
.card-corner::after {
  content: '';
  position: absolute;
  background: var(--gold);
  opacity: 0.4;
  transition: opacity 280ms ease;
}

.specimen-card:hover .card-corner::before,
.specimen-card:hover .card-corner::after {
  opacity: 0.9;
}

.card-corner--tl { top: 6px; left: 6px; }
.card-corner--tr { top: 6px; right: 6px; }
.card-corner--bl { bottom: 6px; left: 6px; }
.card-corner--br { bottom: 6px; right: 6px; }

.card-corner--tl::before { width: 8px; height: 1px; top: 0; left: 0; }
.card-corner--tl::after  { width: 1px; height: 8px; top: 0; left: 0; }

.card-corner--tr::before { width: 8px; height: 1px; top: 0; right: 0; }
.card-corner--tr::after  { width: 1px; height: 8px; top: 0; right: 0; }

.card-corner--bl::before { width: 8px; height: 1px; bottom: 0; left: 0; }
.card-corner--bl::after  { width: 1px; height: 8px; bottom: 0; left: 0; }

.card-corner--br::before { width: 8px; height: 1px; bottom: 0; right: 0; }
.card-corner--br::after  { width: 1px; height: 8px; bottom: 0; right: 0; }

/* Horizontal rule between grid rows */
.specimen-grid::after {
  content: none;
}

/* =============================================
   COLLECTION SECTION
   ============================================= */

.collection-section {
  padding: 80px 48px;
}

.collection-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.collection-text .section-title {
  margin-bottom: 24px;
}

.collection-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--parchment);
  margin-bottom: 20px;
}

.collection-pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--gold);
  margin: 28px 0;
  padding-left: 24px;
  border-left: 1px solid rgba(201, 168, 76, 0.3);
  line-height: 1.4;
}

.collection-feature {
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  opacity: 0;
  transition: opacity 600ms ease-out;
}

.collection-svg.visible {
  opacity: 1;
}

/* =============================================
   ABOUT SECTION
   ============================================= */

.about-section {
  padding: 80px 48px;
}

.about-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.about-inner .section-title {
  margin-bottom: 48px;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.about-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.about-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(232, 213, 160, 0.75);
}

/* =============================================
   CONTACT SECTION
   ============================================= */

.contact-section {
  padding: 80px 48px;
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--gold);
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.45);
  width: 120px;
  text-align: right;
}

.contact-value {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--parchment);
  width: 280px;
  text-align: left;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  padding: 40px 48px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-rule {
  height: 1px;
  background: rgba(201, 168, 76, 0.15);
  margin-bottom: 24px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.3);
}

.footer-fish {
  display: flex;
  align-items: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .specimen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .collection-feature {
    display: none;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 680px) {
  .sidebar-nav {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .specimen-grid {
    grid-template-columns: 1fr;
    padding: 0 0 48px;
  }

  .hero-theatre {
    padding: 60px 24px 48px;
  }

  .specimens-section,
  .collection-section,
  .about-section,
  .contact-section,
  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .contact-label,
  .contact-value {
    width: auto;
    text-align: center;
  }
}

/* =============================================
   UTILITY ANIMATIONS
   ============================================= */

@keyframes specimen-emerge {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Thin folio rules between grid rows - added via JS */
.folio-rule {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(201, 168, 76, 0.12);
  margin: 8px 0;
}
