/* =========================
   ANT CHRONICLES v0.3.0
   Design System Pass
========================= */

:root {
  --bg: #050907;
  --bg-2: #08110c;
  --panel: rgba(13, 21, 15, 0.78);
  --panel-2: rgba(20, 31, 22, 0.82);
  --panel-soft: rgba(255, 255, 255, 0.045);

  --text: #f6efe2;
  --muted: #b7ad98;
  --faint: #817865;

  --gold: #d7ad5f;
  --gold-soft: rgba(215, 173, 95, 0.14);
  --moss: #8db35d;
  --moss-soft: rgba(141, 179, 93, 0.14);

  --line: rgba(215, 173, 95, 0.28);
  --line-soft: rgba(255, 255, 255, 0.09);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.24);

  --max-width: 1500px;
}

/* =========================
   Base
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(141, 179, 93, 0.26), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(215, 173, 95, 0.13), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(35, 63, 36, 0.2), transparent 35%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  opacity: 0.7;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,.68) 100%);
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

/* =========================
   Layout
========================= */

.page-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 18px auto 64px;
}

.dashboard-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.dashboard-main {
  display: grid;
  gap: 16px;
}

/* =========================
   Components
========================= */

.glass {
  background:
    linear-gradient(145deg, rgba(24, 35, 25, 0.82), rgba(7, 13, 9, 0.72));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter: blur(18px);
}

.glass:hover {
  border-color: rgba(215, 173, 95, 0.42);
}

.eyebrow {
  color: var(--moss);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  font-size: .72rem;
  margin: 0 0 10px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: .9;
  letter-spacing: -.055em;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.04em;
}

h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.58;
}

small {
  color: var(--muted);
}

/* =========================
   Top Navigation
========================= */

.top-nav {
  min-height: 112px;
  border-radius: var(--radius-lg);
  padding: 8px 22px;
  display: grid;
  grid-template-columns: 310px 1fr 160px;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 14px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(145deg, rgba(215,173,95,.22), rgba(141,179,93,.08));
  border: 1px solid rgba(215,173,95,.34);
  font-size: 1.55rem;
  box-shadow: 0 0 26px rgba(215,173,95,.14);
}

.brand strong,
.brand span {
  display: block;
  letter-spacing: .17em;
  line-height: 1;
}

.brand strong {
  font-size: 1.32rem;
}

.brand span {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 4px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: .9rem;
  transition: 160ms ease;
}

nav a.active,
nav a:hover {
  background: var(--gold-soft);
  color: var(--gold);
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.nav-actions button,
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: 160ms ease;
}

.nav-actions button:hover,
.avatar:hover {
  transform: translateY(-1px);
  background: var(--gold-soft);
}

.avatar {
  background: var(--moss-soft);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
}

/* =========================
   Hero
========================= */

.hero-panel {
  min-height: 390px;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 45%, rgba(141,179,93,.18), transparent 26%),
    linear-gradient(90deg, rgba(0,0,0,.28), transparent 62%);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 570px;
  padding: clamp(30px, 5vw, 62px);
}

.species-pill {
  display: inline-block;
  color: var(--moss);
  background: var(--moss-soft);
  border: 1px solid rgba(141,179,93,.28);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.primary-btn,
.quick-actions button {
  border: 1px solid rgba(141,179,93,.38);
  background:
    linear-gradient(135deg, rgba(72,113,48,.78), rgba(34,67,32,.74));
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: 160ms ease;
}

.primary-btn:hover,
.quick-actions button:hover {
  transform: translateY(-2px);
  border-color: rgba(215,173,95,.44);
}

.primary-btn span {
  color: var(--gold);
  margin-left: 8px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

/* =========================
   Summary Strip
========================= */

.summary-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-radius: var(--radius-lg);
  padding: 14px;
  gap: 0;
}

.summary-strip article,
.side-stats article {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px 14px;
  border-right: 1px solid var(--line-soft);
}

.summary-strip article:last-child {
  border-right: 0;
}

.summary-icon {
  color: var(--gold);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(215,173,95,.32);
  background: var(--gold-soft);
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.summary-strip small,
.side-stats small {
  display: block;
  font-size: .74rem;
}

.summary-strip strong,
.side-stats strong {
  display: block;
  margin-top: 4px;
  font-size: .98rem;
}

/* =========================
   Dashboard Cards
========================= */

.card-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
}

.learn-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius-xl);
  padding: 22px;
  background:
    radial-gradient(circle at 12% 10%, rgba(215,173,95,.16), transparent 34%),
    linear-gradient(145deg, rgba(24, 35, 25, 0.82), rgba(7, 13, 9, 0.72));
}

.learn-preview h2 {
  margin-bottom: 8px;
}

.learn-preview p:last-child {
  margin-bottom: 0;
}

.panel-card,
.quick-actions,
.colony-stats,
.feeding-log,
.side-panel {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.latest-chronicle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: center;
  border-radius: var(--radius-xl);
  padding: 18px;
  overflow: hidden;
}

.latest-chronicle-copy {
  padding: 8px 8px 8px 10px;
}

.latest-chronicle h2 {
  margin-bottom: 10px;
}

.latest-chronicle img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
}

.chronicle-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chronicle-meta span {
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(215,173,95,.24);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: .76rem;
  font-weight: 800;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-head span,
.card-head a {
  color: var(--moss);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
}

.mini-chart {
  width: 100%;
  height: 150px;
  margin-top: 10px;
  overflow: visible;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
}

.mini-chart polyline {
  fill: none;
  stroke: var(--moss);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(141,179,93,.7));
}

.mini-chart circle {
  fill: var(--gold);
}

.photo-grid,
.latest-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.photo-grid img,
.latest-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 13px;
  border: 1px solid var(--line-soft);
  opacity: .92;
}

.latest-photo-grid {
  margin: 10px 0 12px;
}

.latest-photo-grid a {
  display: block;
  overflow: hidden;
  border-radius: 13px;
}

.latest-photo-grid img {
  display: block;
  transition: 180ms ease;
}

.latest-photo-grid a:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.progress-bar {
  height: 8px;
  background: rgba(255,255,255,.075);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 16px;
}

.progress-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--moss), var(--gold));
  border-radius: inherit;
}

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

.badge {
  min-height: 76px;
  border: 1px solid rgba(215,173,95,.22);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 9px;
  color: var(--muted);
  background: rgba(255,255,255,.028);
}

.badge span {
  color: var(--gold);
}

.badge.unlocked {
  background:
    radial-gradient(circle at top, rgba(215,173,95,.16), transparent 70%),
    rgba(215,173,95,.07);
  color: var(--text);
}

/* =========================
   Quick Actions / Stats
========================= */

.quick-actions h3 {
  margin-bottom: 14px;
}

.quick-actions div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.quick-actions button {
  background: rgba(255,255,255,.035);
  border-color: var(--line-soft);
  min-height: 64px;
  box-shadow: none;
}

.tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tabs span {
  color: var(--muted);
  font-size: .78rem;
}

.tabs span:first-child {
  color: var(--gold);
}

.stats-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.stat-panel,
.health-panel {
  border: 1px solid var(--line-soft);
  background: var(--panel-soft);
  border-radius: var(--radius-md);
  padding: 16px;
}

.stat-panel strong {
  display: block;
  font-size: 1.65rem;
  margin: 8px 0 4px;
}

.stat-panel span {
  color: var(--moss);
  font-size: .8rem;
}

.health-panel {
  grid-column: span 2;
  background:
    linear-gradient(90deg, rgba(18,36,20,.96), rgba(18,36,20,.62)),
    radial-gradient(circle at right, rgba(141,179,93,.36), transparent 55%);
}

/* =========================
   Timeline / Gallery
========================= */

.section {
  margin-top: 42px;
}

.section-heading {
  margin-bottom: 14px;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.premium-timeline {
  position: relative;
}

.timeline-card {
  display: grid;
  grid-template-columns: 110px 1fr 150px;
  gap: 16px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--gold), var(--moss));
  opacity: .78;
}

.timeline-card img {
  width: 150px;
  height: 92px;
  object-fit: cover;
  border-radius: 13px;
  border: 1px solid var(--line-soft);
}

.date-chip {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  background: rgba(255,255,255,.025);
}

.date-chip strong {
  display: block;
  color: var(--gold);
}

.date-chip span {
  color: var(--muted);
  font-size: .78rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-card img,
.gallery-trigger img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--line-soft);
  display: block;
  transition: 180ms ease;
}

.gallery-trigger:hover img {
  transform: scale(1.035);
  filter: saturate(1.06);
}

.gallery-card div {
  padding: 16px;
}

.gallery-card small {
  display: block;
  color: var(--moss);
  font-weight: 700;
  margin-bottom: 8px;
}

.gallery-card p {
  margin-bottom: 0;
}

/* =========================
   Footer Strip / Sidebar
========================= */

.feature-strip {
  margin-top: 42px;
  border-radius: var(--radius-xl);
  padding: 22px;
  text-align: center;
}

.feature-strip div {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.feature-strip span {
  color: var(--muted);
  border-right: 1px solid var(--line-soft);
  padding: 8px;
}

.feature-strip span:last-child {
  border-right: 0;
}

.footer-credit {
  display: block;
  margin-top: 16px;
  color: var(--faint);
}

.feeding-log {
  display: grid;
  gap: 14px;
}

.feeding-list {
  display: grid;
  gap: 10px;
}

.feeding-entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  padding: 14px;
}

.feeding-entry h3,
.feeding-entry p {
  margin-bottom: 4px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  position: sticky;
  top: 112px;
}

.side-card {
  display: flex;
  gap: 14px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 14px;
}

.side-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.side-card h3 {
  margin-bottom: 3px;
}

.side-card p {
  margin: 0;
}

.side-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.side-stats article {
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.035);
  border-radius: var(--radius-md);
  padding: 12px;
  border-right: 1px solid var(--line-soft);
}

.side-panel p {
  font-size: .9rem;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1180px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .side-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .top-nav {
    grid-template-columns: 1fr;
  }

  nav,
  .nav-actions {
    justify-content: flex-start;
  }

  .summary-strip,
  .card-grid,
  .learn-grid,
  .latest-chronicle,
  .quick-actions div,
  .stats-panels,
  .gallery-grid,
  .feature-strip div,
  .side-stats,
  .sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .latest-chronicle {
    grid-template-columns: 1fr;
  }

  .latest-chronicle img {
    height: 260px;
  }

  .feeding-entry {
    grid-template-columns: 1fr;
  }

  .learn-preview {
    grid-template-columns: 1fr;
  }

  .timeline-card img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, var(--max-width));
    margin-top: 10px;
  }

  .summary-strip,
  .card-grid,
  .learn-grid,
  .quick-actions div,
  .stats-panels,
  .gallery-grid,
  .feature-strip div,
  .side-stats,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 430px;
  }

  h1 {
    font-size: 3rem;
  }

  .top-nav {
    position: static;
  }
}

.featured-photo-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  margin: 8px 0 12px;
}

.featured-metric p,
.featured-photo-card p {
  min-height: 48px;
}

.gallery-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
  border-radius: var(--radius-xl);
  padding: 18px;
}

.gallery-feature img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
}

.gallery-feature h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

@media (max-width: 900px) {
  .gallery-feature {
    grid-template-columns: 1fr;
  }

  .gallery-feature img {
    height: 260px;
  }
}

.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.split-heading > p {
  max-width: 360px;
  margin-bottom: 8px;
  text-align: right;
}

.timeline-feature {
  display: grid;
  grid-template-columns: 130px 1fr 240px;
  gap: 20px;
  align-items: center;
  border-radius: var(--radius-xl);
  padding: 18px;
}

.date-chip.large {
  min-height: 150px;
  display: grid;
  place-items: center;
}

.date-chip.large strong {
  font-size: 1.35rem;
}

.timeline-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.timeline-feature img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
}

@media (max-width: 900px) {
  .split-heading {
    display: block;
  }

  .split-heading > p {
    text-align: left;
  }

  .timeline-feature {
    grid-template-columns: 1fr;
  }

  .timeline-feature img {
    height: 240px;
  }
}

.chart-wrap {
  margin-top: 10px;
}

.chart-note {
  color: var(--moss);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 8px;
}

.real-chart {
  height: 150px;
}

.chart-range {
  fill: none;
  stroke-width: 3;
}

.chart-low {
  stroke: rgba(141,179,93,.45);
  stroke-dasharray: 4 5;
}

.chart-high {
  stroke: var(--moss);
  filter: drop-shadow(0 0 8px rgba(141,179,93,.65));
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .75rem;
  margin-top: 6px;
}

.chart-empty {
  margin-top: 12px;
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 5, 3, .82);
  backdrop-filter: blur(12px);
}

.lightbox-dialog {
  width: min(920px, 100%);
  max-height: min(86vh, 860px);
  border-radius: var(--radius-xl);
  padding: 16px;
  overflow: auto;
  position: relative;
}

.lightbox-dialog img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,.32);
}

.lightbox-dialog div {
  padding: 16px 4px 2px;
}

.lightbox-dialog h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.lightbox-dialog p:last-child {
  margin-bottom: 0;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 9, 7, .86);
  color: var(--gold);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

/* =========================
   Learn
========================= */

.learn-shell {
  max-width: 1320px;
}

.learn-hero {
  min-height: 380px;
  margin-top: 20px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 62px);
  background:
    radial-gradient(circle at 72% 20%, rgba(215,173,95,.18), transparent 28%),
    radial-gradient(circle at 18% 80%, rgba(141,179,93,.2), transparent 30%),
    linear-gradient(145deg, rgba(18, 30, 20, .94), rgba(5, 9, 7, .84));
}

.learn-hero > div {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.learn-hero p:not(.eyebrow) {
  font-size: 1.12rem;
  max-width: 520px;
}

.learn-logo-watermark {
  position: absolute;
  right: 32px;
  bottom: 18px;
  width: min(390px, 42%);
  opacity: .12;
  mix-blend-mode: screen;
  pointer-events: none;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.learn-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: 180ms ease;
}

.learn-card:hover {
  transform: translateY(-2px);
}

.learn-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.learn-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
  margin-bottom: 0;
}

.learn-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(215,173,95,.35);
  font-weight: 800;
}

.learn-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.learn-card li + li {
  margin-top: 8px;
}

.learn-note {
  margin: 16px 0 0;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(141,179,93,.24);
  background: var(--moss-soft);
  color: var(--text);
  font-size: .92rem;
}

.nav-pill {
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(255,255,255,.045);
  font-size: .86rem;
  font-weight: 700;
}

.logo-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-brand img {
    height: 118px;
    width: auto;
    display: block;
    object-fit: contain;

    filter:
        drop-shadow(0 0 12px rgba(215,173,95,.12))
        drop-shadow(0 0 30px rgba(215,173,95,.08));

    transition: all .25s ease;
}

.logo-brand:hover img {
    transform: scale(1.03);
}

.hero-logo-watermark {
  position: absolute;
  right: 34px;
  bottom: 28px;
  width: min(340px, 38%);
  opacity: 0.14;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  filter: blur(0.2px);
}

.footer-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
  mix-blend-mode: screen;
  opacity: 0.85;
  filter: drop-shadow(0 0 18px rgba(215, 173, 95, 0.18));
}

@media (max-width: 900px) {
  .logo-brand img {
    height: 68px;
  }

  .hero-logo-watermark {
    width: 260px;
    right: 18px;
    bottom: 18px;
    opacity: 0.1;
  }
}
