/* ==========================================================================
   Naveen Aggarwal — Botanical & Ayurvedic Heritage Edition
   Warm parchment, sage mist, deep forest ink, and hand-crafted leaf vines.
   ========================================================================== */

:root {
  /* Deep earthy, low-glare botanical palette */
  --bg-parchment: #ebe3d3;
  --bg-sage-mist: #dfe4d6;
  --bg-card: #f3ede1;
  --bg-card-hover: #f7f2e8;
  --bg-deep-forest: #202b21;

  /* Earthy inks */
  --ink-primary: #232b22;
  --ink-secondary: #4a453b;
  --ink-muted: #6e675b;
  --ink-on-dark: #ede5d4;

  /* Botanical & clay accents */
  --leaf-deep: #2f5236;
  --leaf-moss: #5b7454;
  --leaf-soft: #8fa384;
  --turmeric: #a67733;
  --terracotta: #945238;

  /* Borders & shadows */
  --border-soft: rgba(62, 54, 42, 0.14);
  --border-strong: rgba(47, 82, 54, 0.3);
  --shadow-warm: 0 14px 36px -14px rgba(42, 34, 24, 0.16);
  --shadow-card: 0 6px 22px -10px rgba(42, 34, 24, 0.1);

  /* Typography */
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-max: 1120px;
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 26px;
}

/* Warm Sandhya / Dusk Earthy Mode (soothing for eyes in low light) */
html[data-theme="dusk"] {
  --bg-parchment: #1d231d;
  --bg-sage-mist: #242c24;
  --bg-card: #283027;
  --bg-card-hover: #2f382e;
  --bg-deep-forest: #141914;

  --ink-primary: #e8e0cf;
  --ink-secondary: #c5beae;
  --ink-muted: #989283;
  --ink-on-dark: #e8e0cf;

  --leaf-deep: #96b893;
  --leaf-moss: #7a9c77;
  --turmeric: #d6a95c;
  --terracotta: #d18566;

  --border-soft: rgba(232, 224, 207, 0.11);
  --border-strong: rgba(150, 184, 147, 0.28);
  --shadow-warm: 0 16px 40px -14px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 8px 24px -10px rgba(0, 0, 0, 0.32);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-parchment);
}

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink-primary);
  background-color: var(--bg-parchment);
  /* Warm dappled sunlight & earthy clay undertones */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(91, 116, 84, 0.09) 0%, transparent 44%),
    radial-gradient(circle at 86% 36%, rgba(148, 82, 56, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 22% 82%, rgba(166, 119, 51, 0.07) 0%, transparent 46%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.55s ease, color 0.55s ease, opacity 0.35s ease;
}

body.is-page-leaving {
  opacity: 0;
}

/* Subtle organic paper texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--leaf-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--terracotta);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink-primary);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

p {
  margin: 0 0 1.15rem;
}

p:last-child {
  margin-bottom: 0;
}

.mono {
  font-family: var(--font-sans);
  font-size: 0.88em;
  letter-spacing: 0.02em;
  padding: 0.1em 0.42em;
  border-radius: 4px;
  background: rgba(45, 79, 52, 0.08);
  color: var(--leaf-deep);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--leaf-deep);
  color: var(--bg-card);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Welcome Veil (Blurred Sunlit Jungle Entrance)
   ========================================================================== */
.welcome-veil {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 22% 24%, rgba(163, 194, 134, 0.34) 0%, transparent 48%),
    radial-gradient(circle at 80% 76%, rgba(226, 187, 102, 0.28) 0%, transparent 46%),
    radial-gradient(circle at 50% 50%, rgba(242, 236, 224, 0.78) 0%, rgba(229, 233, 222, 0.82) 100%);
  backdrop-filter: blur(22px) saturate(118%);
  -webkit-backdrop-filter: blur(22px) saturate(118%);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.95s ease;
  overflow: hidden;
  cursor: pointer;
}

.welcome-veil.is-leaving {
  opacity: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transform: scale(1.035);
  visibility: hidden;
  pointer-events: none;
}

.welcome-vine {
  position: absolute;
  width: clamp(190px, 28vw, 360px);
  color: var(--leaf-deep);
  opacity: 0.26;
  pointer-events: none;
}

.welcome-vine--tl {
  top: -10px;
  left: -10px;
  animation: gentleSway 8s ease-in-out infinite;
  transform-origin: top left;
}

.welcome-vine--br {
  bottom: -10px;
  right: -10px;
  animation: gentleSway 9s ease-in-out infinite reverse;
  transform-origin: bottom right;
}

.welcome-card {
  position: relative;
  z-index: 2;
  max-width: 560px;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.6rem, 4vw, 2.8rem);
  background: rgba(247, 243, 234, 0.82);
  border: 1px solid rgba(45, 79, 52, 0.22);
  border-radius: 28px;
  box-shadow: 0 24px 60px -18px rgba(29, 41, 32, 0.22);
  cursor: default;
  animation: welcomeFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.welcome-sprig {
  width: 64px;
  height: 32px;
  color: var(--leaf-deep);
  margin: 0 auto 0.9rem;
}

.welcome-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--leaf-moss);
  margin-bottom: 0.65rem;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink-primary);
  margin-bottom: 0.95rem;
}

.welcome-sub {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: 1.65rem;
}

.welcome-enter {
  cursor: pointer;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(235, 227, 211, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color 0.55s ease, border-color 0.55s ease;
}

html[data-theme="dusk"] .site-header {
  background: rgba(29, 35, 29, 0.86);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.36rem 0.78rem;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--leaf-deep);
  transform: translateY(-1px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.95rem;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink-primary);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.wordmark-leaf {
  width: 22px;
  height: 22px;
  color: var(--leaf-deep);
  flex-shrink: 0;
}

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.65rem;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  padding-block: 0.25rem;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--leaf-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--leaf-deep);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--leaf-deep);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
}

/* ==========================================================================
   Botanical Vines & Decorative Elements
   ========================================================================== */
.vine-layer {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  color: var(--leaf-moss);
}

.vine-hero-left {
  top: -10px;
  left: -30px;
  width: clamp(160px, 22vw, 290px);
  opacity: 0.22;
  animation: gentleSway 9s ease-in-out infinite;
  transform-origin: top left;
}

.vine-hero-right {
  bottom: -20px;
  right: -20px;
  width: clamp(180px, 24vw, 310px);
  opacity: 0.2;
  animation: gentleSway 11s ease-in-out infinite reverse;
  transform-origin: bottom right;
}

.vine-section-corner {
  top: 1.2rem;
  right: 1rem;
  width: clamp(110px, 14vw, 180px);
  opacity: 0.16;
}

.vine-section-left {
  bottom: 1rem;
  left: 0.5rem;
  width: clamp(110px, 14vw, 180px);
  opacity: 0.16;
}

@keyframes gentleSway {
  0%, 100% { transform: rotate(0deg) translateY(0px); }
  50% { transform: rotate(1.8deg) translateY(3px); }
}

.botanical-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  color: var(--leaf-moss);
}

.botanical-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 180px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.botanical-sprig {
  width: 28px;
  height: 18px;
  flex-shrink: 0;
  color: var(--leaf-deep);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(3.2rem, 6vw, 5.5rem) clamp(3rem, 5vw, 4.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--leaf-deep);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-numeral {
  color: var(--turmeric);
  font-family: var(--font-display);
  font-size: 1.15em;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

.hero .lead {
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.75;
  color: var(--ink-secondary);
  max-width: 58ch;
  margin-bottom: 1.9rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.78rem 1.45rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--leaf-deep);
  color: var(--bg-card);
  border: 1px solid var(--leaf-deep);
  box-shadow: 0 8px 20px -8px rgba(45, 79, 52, 0.45);
}

.btn-primary:hover {
  background: #233f29;
  color: var(--bg-card);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--leaf-deep);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-sage-mist);
  color: var(--ink-primary);
  border-color: var(--leaf-deep);
  transform: translateY(-2px);
}

/* Arched Herbarium Portrait Frame */
.hero-portrait {
  margin: 0;
  position: relative;
}

.portrait-frame {
  position: relative;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 180px 180px 22px 22px;
  box-shadow: var(--shadow-warm);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 170px 170px 14px 14px;
}

.portrait-vine-badge {
  position: absolute;
  bottom: -14px;
  left: -14px;
  width: 78px;
  height: 78px;
  color: var(--leaf-deep);
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(30, 45, 34, 0.12));
}

.hero-portrait figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: center;
}

/* ==========================================================================
   Record Strip (Apothecary Ledger)
   ========================================================================== */
.record-strip {
  background: var(--bg-deep-forest);
  color: var(--ink-on-dark);
  padding-block: 2.3rem;
  border-block: 1px solid rgba(163, 120, 50, 0.35);
  position: relative;
}

.record-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.record-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(239, 234, 221, 0.2);
}

.record-grid li:first-child {
  padding-left: 0;
  border-left: none;
}

.record-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: #e4c687;
  line-height: 1.15;
}

.record-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(239, 234, 221, 0.82);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  position: relative;
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden;
}

.section--alt {
  background-color: var(--bg-sage-mist);
  border-block: 1px solid var(--border-soft);
}

.section-header {
  max-width: 72ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header .lead {
  font-size: 1.12rem;
  color: var(--ink-secondary);
  margin-top: 0.65rem;
}

/* Two-column layout + Timeline */
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}

.prose p {
  color: var(--ink-secondary);
}

.prose strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  position: relative;
}

.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px dashed var(--border-soft);
}

.timeline li:first-child {
  padding-top: 0.25rem;
}

.timeline li:last-child {
  padding-bottom: 0.25rem;
  border-bottom: none;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--turmeric);
}

.timeline-body strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 0.25rem;
}

.timeline-body p {
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--ink-secondary);
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.75rem;
}

.photo-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-warm);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 6px);
}

.photo-card figcaption {
  padding: 0.85rem 0.35rem 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Verification Table */
.table-wrap {
  margin-top: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.verify-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.verify-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 1rem;
}

.verify-table th {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--leaf-deep);
  padding: 0.75rem 0.9rem;
  border-bottom: 1.5px solid var(--border-strong);
}

.verify-table td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink-secondary);
  vertical-align: top;
}

.verify-table tbody tr:last-child td {
  border-bottom: none;
}

.verify-table tbody tr:hover {
  background: rgba(45, 79, 52, 0.035);
}

/* Statement Box */
.statement-box {
  margin: 0 0 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border-left: 4px solid var(--leaf-deep);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-card);
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.8vw, 1.45rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-primary);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.card-meta {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--turmeric);
  margin-bottom: 0.45rem;
}

.card p:last-child {
  font-size: 0.96rem;
  color: var(--ink-secondary);
}

/* Talks / Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.yt-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-deep-forest);
  overflow: hidden;
}

.yt-facade img,
.yt-facade iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.yt-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: linear-gradient(to top, rgba(29, 41, 32, 0.72), rgba(29, 41, 32, 0.15));
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.15rem;
  transition: background 0.25s ease;
}

.yt-play-btn:hover {
  background: linear-gradient(to top, rgba(29, 41, 32, 0.85), rgba(29, 41, 32, 0.25));
}

.yt-play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  color: var(--leaf-deep);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-card-body p:not(.card-meta) {
  font-size: 0.96rem;
  color: var(--ink-secondary);
}

.link-list {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
}

.speaking-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.speaking-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.speaking-list li:last-child {
  border-bottom: none;
}

.speaking-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.speaking-meta {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* Writing / Article List */
.article-list {
  display: grid;
  gap: 1.25rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.65rem 1.85rem;
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.article-card h3 {
  margin-bottom: 0.45rem;
}

.article-card h3 a {
  color: var(--ink-primary);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--leaf-deep);
}

.article-card p:not(.card-meta) {
  font-size: 0.96rem;
  color: var(--ink-secondary);
  max-width: 68ch;
}

.read-more {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-parchment);
  text-decoration: none;
  white-space: nowrap;
}

.read-more:hover {
  background: var(--leaf-deep);
  color: var(--bg-card);
  border-color: var(--leaf-deep);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
}

.contact-block h3 {
  color: var(--leaf-deep);
  margin-bottom: 0.85rem;
}

.contact-block p,
.contact-block li {
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.contact-block ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

/* ==========================================================================
   Individual Writing / Article Pages
   ========================================================================== */
.article-header {
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  background: var(--bg-sage-mist);
  border-bottom: 1px solid var(--border-soft);
}

.breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.article-header .lead {
  font-size: 1.15rem;
  color: var(--ink-secondary);
  max-width: 66ch;
}

.article-content {
  padding-block: 3rem 4.5rem;
}

.article-content .prose {
  max-width: 72ch;
}

.article-content h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
}

.article-content ol,
.article-content ul {
  padding-left: 1.35rem;
  color: var(--ink-secondary);
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Explore Tiles Grid (Homepage Directory) & Sub-page Banner
   ========================================================================== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.explore-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.28s ease;
}

.explore-tile:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--leaf-deep);
  box-shadow: var(--shadow-warm);
  color: inherit;
}

.tile-leaf-accent {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 74px;
  height: 74px;
  color: var(--leaf-moss);
  opacity: 0.14;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.explore-tile:hover .tile-leaf-accent {
  opacity: 0.26;
  transform: rotate(4deg) scale(1.05);
}

.tile-numeral {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--turmeric);
  margin-bottom: 0.35rem;
}

.explore-tile h3 {
  font-size: 1.55rem;
  color: var(--ink-primary);
  margin-bottom: 0.55rem;
}

.explore-tile p {
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--ink-secondary);
  margin-bottom: 1.35rem;
}

.tile-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-soft);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--leaf-deep);
}

.tile-meta {
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.page-banner {
  position: relative;
  padding-block: clamp(2.6rem, 5vw, 4rem) 2.2rem;
  background: var(--bg-sage-mist);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

.page-banner .lead {
  font-size: 1.12rem;
  color: var(--ink-secondary);
  max-width: 64ch;
}

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

@media (max-width: 640px) {
  .tile-grid {
    grid-template-columns: 1fr;
  }
}

/* Subtle warm radial glow on tile hover */
.explore-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(166, 119, 51, 0.11),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.explore-tile:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Interactive Botanical Monograph Explorer (Homepage)
   ========================================================================== */
.herbarium-box {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.herb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.herb-pill {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--bg-parchment);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.52rem 1.15rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.herb-pill:hover {
  border-color: var(--leaf-deep);
  color: var(--leaf-deep);
  transform: translateY(-1px);
}

.herb-pill[aria-selected="true"] {
  background: var(--leaf-deep);
  color: var(--bg-card);
  border-color: var(--leaf-deep);
}

.herb-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  animation: fadeSlideUp 0.4s ease;
}

.herb-panel[hidden] {
  display: none;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.herb-specs {
  background: var(--bg-parchment);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  display: grid;
  gap: 0.85rem;
}

.herb-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--border-soft);
}

.herb-spec-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.herb-spec-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--turmeric);
}

.herb-spec-value {
  font-size: 0.94rem;
  color: var(--ink-primary);
  font-weight: 500;
}

/* Filter Bar (Work Page Credentials) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.filter-pill {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-parchment);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill.is-active,
.filter-pill:hover {
  background: var(--leaf-deep);
  color: var(--bg-card);
  border-color: var(--leaf-deep);
}

/* Copy Email & Calm Toast */
.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.copy-btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-parchment);
  color: var(--leaf-deep);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  background: var(--leaf-deep);
  color: var(--bg-card);
}

@media (max-width: 820px) {
  .herb-panel {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-deep-forest);
  color: rgba(239, 234, 221, 0.82);
  padding-block: 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 920px) {
  .hero-grid,
  .two-col,
  .card-grid,
  .media-grid,
  .contact-grid,
  .record-grid {
    grid-template-columns: 1fr;
  }

  .record-grid li {
    padding-left: 0;
    border-left: none;
    padding-top: 1rem;
    border-top: 1px solid rgba(239, 234, 221, 0.16);
  }

  .record-grid li:first-child {
    padding-top: 0;
    border-top: none;
  }

  .hero-portrait {
    max-width: 360px;
  }

  .article-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-parchment);
    border-bottom: 1px solid var(--border-strong);
    padding: 1rem 1.25rem 1.35rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vine-hero-left,
  .vine-hero-right {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
