/* ============================================================
   OPHIDIOPHILIA.COM — Design System
   Dark nature-editorial aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  --bg:          #080f0a;
  --surface:     #0d1a10;
  --surface-2:   #142019;
  --surface-3:   #1b2e21;
  --border:      #1e3224;
  --border-2:    #2a4833;

  --primary:     #3eb566;
  --primary-dim: #2a7a47;
  --gold:        #c49238;
  --gold-light:  #e0b45a;

  --text:        #d8ead9;
  --text-muted:  #6b8f70;
  --text-dim:    #3d5c42;

  --red:         #c25050;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-sci:     'Playfair Display', Georgia, serif; /* italic for scientific names */

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.7);

  --nav-h: 68px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--gold); }

ul { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { max-width: 68ch; }
p + p { margin-top: 1em; }

.sci-name {
  font-family: var(--font-sci);
  font-style: italic;
  font-size: 0.85em;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.6em 1.4em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 2rem 0;
}

/* ── Layout Utilities ── */
.container {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-top: 0.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
}

.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7em 1.6em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dim);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(62, 181, 102, 0.3);
}

.btn-outline {
  border: 1.5px solid var(--border-2);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(62, 181, 102, 0.06);
}

.btn-gold {
  background: var(--gold);
  color: #000;
}
.btn-gold:hover {
  background: var(--gold-light);
  color: #000;
  transform: translateY(-1px);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(8, 15, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  opacity: 0.9;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo-text span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5em 0.9em;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--surface-3);
}

.nav-cta {
  font-size: 0.82rem !important;
  background: var(--surface-3) !important;
  border: 1px solid var(--border-2) !important;
  color: var(--primary) !important;
}
.nav-cta:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 15, 10, 0.97) 0%,
    rgba(8, 15, 10, 0.55) 45%,
    rgba(8, 15, 10, 0.1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.2rem;
  max-width: 14ch;
}

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

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; }
}

/* ── Media Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-2);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface-2);
}

.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.card:hover .card-media img,
.card:hover .card-media video {
  transform: scale(1.04);
}

.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: background 0.2s;
}

.card-play svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.card:hover .card-play { background: rgba(0,0,0,0.1); }

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25em 0.7em;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.card-badge-video {
  background: rgba(196, 146, 56, 0.25);
  border: 1px solid rgba(196, 146, 56, 0.5);
  color: var(--gold-light);
}

.card-badge-photo {
  background: rgba(62, 181, 102, 0.2);
  border: 1px solid rgba(62, 181, 102, 0.4);
  color: var(--primary);
}

.card-body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tag {
  padding: 0.2em 0.7em;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
}
.tag:hover, .tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-family: var(--font-display);
}

.card-title a {
  color: inherit;
}
.card-title a:hover { color: var(--primary); }

.card-sci { margin-bottom: 0.7rem; }

.card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-date {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.card:hover .card-link { gap: 0.55rem; }

/* ── Gallery Filter Bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.2rem 0 2.5rem;
}

.filter-bar .tag {
  font-size: 0.8rem;
  padding: 0.35em 1em;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 0.5rem;
}

/* ── Gallery Grid (masonry feel) ── */
.gallery-grid {
  columns: 3;
  column-gap: 1.25rem;
}

.gallery-grid .card {
  break-inside: avoid;
  margin-bottom: 1.25rem;
}

.gallery-grid .card-media {
  aspect-ratio: unset;
}

.gallery-grid .card-media.tall { aspect-ratio: 3/4; }
.gallery-grid .card-media.wide { aspect-ratio: 16/9; }
.gallery-grid .card-media.square { aspect-ratio: 1; }
.gallery-grid .card-media.standard { aspect-ratio: 4/3; }

/* ── About / Bio Section ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.about-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 2px solid var(--border-2);
  box-shadow: var(--shadow-lg);
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.badge {
  padding: 0.35em 0.9em;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.badge-gold {
  background: rgba(196, 146, 56, 0.15);
  border-color: rgba(196, 146, 56, 0.35);
  color: var(--gold-light);
}

.badge-green {
  background: rgba(62, 181, 102, 0.12);
  border-color: rgba(62, 181, 102, 0.3);
  color: var(--primary);
}

.timeline {
  margin: 2rem 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  padding-top: 0.15rem;
}

.timeline-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Learn / Educational Section ── */
.learn-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 5vw, 4rem);
  margin-top: var(--nav-h);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.fact-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.fact-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.fact-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.fact-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.rich-content {
  max-width: 72ch;
}

.rich-content h3 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.rich-content p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.rich-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.rich-content li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.rich-content strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Admin / Upload Form ── */
.admin-wrap {
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
  background: var(--bg);
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  width: min(720px, 100%);
  margin-inline: auto;
}

.admin-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.admin-card > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  max-width: none;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.input, .select, .textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75em 1em;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(62, 181, 102, 0.12);
}

.select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b8f70' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.drop-zone {
  border: 2px dashed var(--border-2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface-2);
}

.drop-zone:hover, .drop-zone.dragging {
  border-color: var(--primary);
  background: rgba(62, 181, 102, 0.05);
}

.drop-zone-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.drop-zone p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: none;
  margin: 0;
}

.drop-zone small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6em 0.75em;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  min-height: 46px;
  cursor: text;
  transition: border-color 0.2s;
}

.tag-input-wrap:focus-within {
  border-color: var(--primary);
}

.tag-input-wrap .tag {
  cursor: default;
  user-select: none;
}

.tag-input-wrap .tag-remove {
  cursor: pointer;
  margin-left: 0.25rem;
  opacity: 0.6;
}

.tag-input-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  flex: 1;
  min-width: 100px;
}

/* ── Single Encounter Page ── */
.encounter-hero {
  margin-top: var(--nav-h);
  position: relative;
  background: var(--surface);
}

.encounter-media {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 600px;
  object-fit: cover;
}

.encounter-media-video {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: #000;
}

.encounter-content {
  max-width: 780px;
  margin-inline: auto;
  padding: 3rem clamp(1rem, 4vw, 3rem);
}

.encounter-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.encounter-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.encounter-story {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.encounter-story p { margin-bottom: 1.4em; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ── Teaser / CTA Section ── */
.cta-section {
  background: radial-gradient(ellipse at 50% 100%, rgba(62,181,102,0.08) 0%, transparent 70%);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.cta-section h2 {
  margin: 0.75rem 0 1.25rem;
}

.cta-section p {
  color: var(--text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 30ch;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-dim);
}
.footer-bottom a:hover { color: var(--primary); }

/* ── Dividers & Decorative ── */
.section-rule {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-2), transparent);
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .gallery-grid { columns: 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; }
  .about-photo-frame { aspect-ratio: 16/9; max-height: 400px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(8, 15, 10, 0.97);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }
  .nav-hamburger { display: flex; }

  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero-scroll { display: none; }

  .gallery-grid { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: unset; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

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

.fade-up {
  animation: fadeUp 0.6s var(--ease) both;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }

/* ── Login/Auth overlay ── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.auth-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: min(400px, 90%);
  text-align: center;
}

.auth-box h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.auth-box p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  max-width: none;
}

.auth-error {
  background: rgba(194, 80, 80, 0.15);
  border: 1px solid rgba(194, 80, 80, 0.35);
  border-radius: var(--radius);
  padding: 0.6em 1em;
  color: #e87070;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.auth-error.visible { display: block; }
