:root {
  --bg-color: #0c0805;
  --ink: #f3e6cf;
  --accent: #e8a545;
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ── Site logo (top right, standalone on every page) ─────────────────── */
#site-logo {
  position: fixed;
  top: 3vh;
  right: 4.5vw;
  z-index: 55;
  height: 75px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(244, 185, 66, 0.3));
}

@media (max-width: 900px) {
  #site-logo { top: 1.4vh; right: 5vw; height: 45px; }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  /* min-height (not height): a fixed height:100% on both html and body
     stops the viewport from scrolling once a descendant's content grows
     past one screen (confirmed on about.html) — min-height still gives a
     full-bleed background on short pages without capping taller ones. */
  min-height: 100%;
  background: var(--bg-color);
  color: var(--ink);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

/* ---------------------------------- */
/* Phase 1 — sequential logo preloader */
/* ---------------------------------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  pointer-events: none;
  will-change: opacity;
}

/* Stacked, cross-fading logo frames (1..5), centered mid-page */
.loader-stage {
  position: relative;
  width: min(300px, 62vw);
  aspect-ratio: 508 / 465;
}

.loader-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 0 26px rgba(232, 165, 69, 0.28));
  animation: loader-cycle 5s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.loader-img:nth-child(1) { animation-delay: 0s; }
.loader-img:nth-child(2) { animation-delay: -1s; }
.loader-img:nth-child(3) { animation-delay: -2s; }
.loader-img:nth-child(4) { animation-delay: -3s; }
.loader-img:nth-child(5) { animation-delay: -4s; }

@keyframes loader-cycle {
  0%   { opacity: 0; transform: scale(0.97); }
  6%   { opacity: 1; transform: scale(1); }
  16%  { opacity: 1; transform: scale(1); }
  22%  { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.02); }
}

/* Golden loading bar — rolls in step with each frame change */
.loader-bar-track {
  position: relative;
  width: min(210px, 46vw);
  height: 3px;
  margin-top: 34px;
  background: rgba(232, 165, 69, 0.16);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 42%;
  border-radius: 3px;
  background: linear-gradient(90deg,
    transparent,
    var(--accent) 30%,
    #fff3d6 50%,
    var(--accent) 70%,
    transparent);
  animation: loader-bar-roll 1s linear infinite;
}

@keyframes loader-bar-roll {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}

/* ---------------------------------- */
/* Hero                                */
/* ---------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  perspective: 1200px;
}

.hero-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: url(#chromaticAberration);
  transform: scale(1.06);
  will-change: filter, transform;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%, transparent 35%, rgba(0,0,0,0.35) 78%, rgba(0,0,0,0.75) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 6vw 12vh;
  max-width: 900px;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  color: var(--accent);
  opacity: 0;
  transform: translateY(14px);
  font-weight: 600;
}

.title {
  /* Sized for Playfair Display: its italic is wider than the old sans,
     so the cap keeps "the eternal city" on one line inside .hero-copy */
  font-size: var(--fs-h1);
  line-height: 1.02;
  font-weight: 700;
  margin-top: 0.5rem;
  font-family: var(--font-display);
}

.title .line {
  display: block;
  white-space: nowrap;
  padding-bottom: 0.06em;   /* room for Playfair italic descenders under overflow:hidden */
  overflow: hidden;
}

.title .line span,
.title .line {
  opacity: 0;
  transform: translateY(100%);
}

.title .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
  font-family: var(--font-display);
}

.subtitle {
  margin-top: 1.5rem;
  max-width: 42ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(243, 230, 207, 0.75);
  opacity: 0;
  transform: translateY(14px);
}

.scroll-cue {
  position: absolute;
  right: 6vw;
  bottom: 6vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: rgba(243, 230, 207, 0.6);
  opacity: 0;
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(243, 230, 207, 0.2);
  overflow: hidden;
}

.scroll-line i {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: scroll-drip 1.8s ease-in-out infinite;
}

@keyframes scroll-drip {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ---------------------------------- */
/* Next section (placeholder)          */
/* ---------------------------------- */
.next {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 4rem 6vw;
}

.next h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  max-width: 20ch;
  font-family: var(--font-display);
}

.next p {
  color: rgba(243, 230, 207, 0.6);
  max-width: 40ch;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
}

@media (max-width: 600px) {
  .hero-copy { padding-bottom: 16vh; }
  .scroll-cue { right: 6vw; bottom: 4vh; }
}

/* ================================================================ */
/* 3D SCENE SECTION                                                  */
/* ================================================================ */

/* Extended design tokens */
:root {
  --gold:    #F4B942;
  --amber:   #E09A2D;
  --deep-bg: #070E10;
  --mid-bg:  #0E1A1C;
  --ink-dim: rgba(243, 230, 207, 0.7);
  --font-body: var(--font-ui);   /* Inter — see css/type.css */
}

/* ── Scene container ─────────────────────────────────────────── */
#scene-section {
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  background: url('../assets/BG_Space_169.webp') center center / cover no-repeat;
}

@media (max-width: 600px) {
  #scene-section {
    background-image: url('../assets/BG_Space_916.webp');
  }
}

#scene-section.active {
  pointer-events: all;
}

#three-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

/* ── Scene hint text ─────────────────────────────────────────── */
#scene-hint {
  position: absolute;
  bottom: 5.5vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 185, 66, 0.55);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  user-select: none;
  font-weight: 500;
}

#scene-hint.visible {
  opacity: 1;
}

/* ── Left content panel (PRD §12–13) ──────────────────────────── */
#content-panel {
  position: absolute;
  top:    0;
  left:   0;
  bottom: 0;
  width:  min(420px, 40vw);
  z-index: 25;

  /* Glassmorphism */
  background: rgba(7, 14, 16, 0.88);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  border-right: 1px solid rgba(244, 185, 66, 0.14);

  padding: 2rem 2.25rem 3rem;
  overflow-y: auto;
  overscroll-behavior: contain;

  /* Slide in from left */
  transform: translateX(-100%);
  transition: transform 0.52s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

#content-panel.open {
  transform: translateX(0);
}

/* Gold line at right edge of panel */
#content-panel::after {
  content: '';
  position: absolute;
  top: 8%; right: 0; bottom: 8%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 40%, transparent);
  opacity: 0.3;
}

/* ── Panel back button ─────────────────────────────────────────── */
#panel-close {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;

  background: rgba(244, 185, 66, 0.07);
  border: 1px solid rgba(244, 185, 66, 0.22);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  min-height: 44px;
  color: rgba(244, 185, 66, 0.75);
  font-family: var(--font-body);
  font-size: var(--fs-button);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-weight: 600;
}
#panel-close:hover,
#panel-close:focus-visible {
  background: rgba(244, 185, 66, 0.15);
  color: var(--gold);
  border-color: rgba(244, 185, 66, 0.45);
  outline: none;
}

/* ── Panel header ──────────────────────────────────────────────── */
.panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.panel-icon {
  font-size: 2.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.panel-meta { display: flex; flex-direction: column; gap: 0.2rem; }

.panel-category {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--amber);
  margin: 0;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0;
  margin: 0;
}

/* ── Panel story text ──────────────────────────────────────────── */
.panel-story {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(244, 185, 66, 0.10);
  padding-bottom: 1.75rem;
}

/* ── Article cards (PRD §13) ───────────────────────────────────── */
.panel-articles {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.article-card {
  background: rgba(244, 185, 66, 0.04);
  border: 1px solid rgba(244, 185, 66, 0.10);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, transform 0.18s;
}
@media (hover: hover) {
  .article-card:hover {
    background: rgba(244, 185, 66, 0.09);
    border-color: rgba(244, 185, 66, 0.28);
    transform: translateX(4px);
  }
}
.article-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: rgba(244, 185, 66, 0.90);
  margin: 0 0 0.4rem;
  letter-spacing: 0;
}
/* ── "See it in Patra" deep link ─────────────────────────────────── */
.panel-patra-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  background: rgba(244, 185, 66, 0.10);
  border: 1px solid rgba(244, 185, 66, 0.30);
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s, transform 0.18s;
}
@media (hover: hover) {
  .panel-patra-link:hover {
    background: rgba(244, 185, 66, 0.18);
    border-color: rgba(244, 185, 66, 0.5);
    transform: translateX(4px);
  }
}
.panel-patra-link-label {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(244, 185, 66, 0.95);
}
.panel-patra-link-arrow {
  font-size: 1rem;
  color: rgba(244, 185, 66, 0.95);
  transition: transform 0.22s;
}
@media (hover: hover) {
  .panel-patra-link:hover .panel-patra-link-arrow {
    transform: translateX(3px);
  }
}

.article-desc {
  font-family: var(--font-body);
  font-size: var(--fs-card);
  line-height: 1.65;
  color: rgba(243, 230, 207, 0.60);
  margin: 0;
}

/* ── Featured "from Patra" excerpt card — image + title + excerpt + CTA ── */
.article-card--featured {
  display: block;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
}
.article-card-img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: rgba(244, 185, 66, 0.07);
  padding: 0.9rem;
}
.article-card--featured .article-title { padding: 0.9rem 1.25rem 0; }
.article-card--featured .article-desc  { padding: 0.5rem 1.25rem 0; }
.article-readmore {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.9rem 1.25rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.2s ease;
}
.article-card--featured:hover .article-readmore { gap: 0.65rem; }

/* ── Right object label panel (PRD §10) ───────────────────────── */
#object-panel {
  position: absolute;
  right: 4vw;
  bottom: 8vh;
  z-index: 20;
  text-align: right;
  pointer-events: none;

  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
#object-panel.open {
  opacity: 1;
  transform: translateY(0);
}

.object-label {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 185, 66, 0.55);
  margin: 0;
}

/* ── WebGL fallback ──────────────────────────────────────────── */
.webgl-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 4rem 8vw;
  text-align: center;
  font-family: var(--font-body);
}

.webgl-fallback h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0;
  font-family: var(--font-display);
}

.webgl-fallback p {
  font-size: 1rem;
  color: var(--ink-dim);
  max-width: 36ch;
  line-height: 1.65;
}

/* ── Golden aura CSS pulse (complement to Three.js aura) ────── */
@keyframes aura-ring {
  0%   { transform: scale(0.9);  opacity: 0.5; }
  50%  { transform: scale(1.05); opacity: 0.2; }
  100% { transform: scale(0.9);  opacity: 0.5; }
}

/* ── Responsive adaptations ──────────────────────────────────── */
@media (max-width: 900px) {
  #content-panel {
    width:   100vw;
    top:     auto;
    bottom:  0;
    height:  65vh;
    height:  65svh;
    border-right: none;
    border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  #content-panel.open { transform: translateY(0); }
  #content-panel { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
  /* Drag handle — swiping the sheet down closes it (js/scene.js). */
  #content-panel::after {
    display: block;
    top: 8px; left: 50%; right: auto; bottom: auto;
    width: 40px; height: 4px;
    margin-left: -20px;
    border-radius: 2px;
    background: rgba(244, 185, 66, 0.45);
    opacity: 1;
  }
  .panel-title  { font-size: 1.25rem; font-size: 1.375rem; }
  .panel-story  { font-size: 0.88rem; font-size: 1rem; }
  #scene-hint   {
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.12em;
    white-space: normal;
    text-align: center;
    width: 88vw;
    max-width: 380px;
    line-height: 1.5;
  }
}

@media (max-width: 600px) {
  #content-panel { height: 72vh; height: 72svh; padding: 1.5rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom)); }
}

/* ── Skip-to-3D button ───────────────────────────────────────────────── */
#skip-to-3d {
  position: absolute;
  bottom: calc(5.5vh + env(safe-area-inset-bottom));
  min-height: 44px;
  right: 4.5vw;
  z-index: 10;

  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: 600;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  color: rgba(244, 185, 66, 0.85);

  /* No dark glass window here — that treatment is reserved for the navbar. */
  background: transparent;
  border: 1px solid rgba(244, 185, 66, 0.45);
  border-radius: 100px;
  padding: 0.65rem 1.35rem;
  cursor: pointer;

  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease,
              background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

#skip-to-3d.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#skip-to-3d:hover,
#skip-to-3d:focus-visible {
  background: rgba(244, 185, 66, 0.12);
  color: var(--gold, #F4B942);
  border-color: rgba(244, 185, 66, 0.75);
  outline: none;
}


@media (max-width: 900px) {
  #skip-to-3d {
    font-size: var(--fs-button);
    padding: 0.55rem 1.1rem;
    right: 5vw;
    bottom: 4vh;
  }
}

/* ── Carousel arrow buttons ──────────────────────────────────────────────── */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;

  /* Circle size — enlarged so they read clearly as primary controls */
  width:  72px;
  height: 72px;
  border-radius: 50%;

  /* A soft dark glass disc keeps the gold glyph legible over any artifact
     or background, and reads as a clickable button rather than a hint. */
  background: rgba(7, 14, 16, 0.55);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border: 1.5px solid rgba(244, 185, 66, 0.55);
  box-shadow: 0 0 22px rgba(244, 185, 66, 0.12), 0 4px 18px rgba(0, 0, 0, 0.35);

  /* Arrow glyph */
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(244, 185, 66, 0.95);

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Transition — opacity driven by GSAP from JS; rest by CSS */
  transition: background 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease,
              transform 0.15s ease,
              box-shadow 0.2s ease;

  /* Initial state: start hidden (GSAP fades in after spawn) */
  pointer-events: all;
  user-select: none;
}

.carousel-arrow--prev { left:  2.5vw; }
.carousel-arrow--next { right: 2.5vw; }

@media (hover: hover) {
  .carousel-arrow:hover {
    background:   rgba(244, 185, 66, 0.22);
    border-color: rgba(244, 185, 66, 0.85);
    color:        #FFD979;
    box-shadow:   0 0 28px rgba(244, 185, 66, 0.30), 0 4px 18px rgba(0, 0, 0, 0.35);
    transform:    translateY(-50%) scale(1.08);
  }
}

/* Press */
.carousel-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

/* Focus ring for keyboard users */
.carousel-arrow:focus-visible {
  outline: 2px solid rgba(244, 185, 66, 0.6);
  outline-offset: 3px;
}

/* Gentle attention pulse on first appearance */
@keyframes arrow-pulse {
  0%   { box-shadow: 0 0 0   0 rgba(244, 185, 66, 0.30); }
  60%  { box-shadow: 0 0 0  14px rgba(244, 185, 66, 0); }
  100% { box-shadow: 0 0 0  14px rgba(244, 185, 66, 0); }
}
.carousel-arrow.pulsed {
  animation: arrow-pulse 1.6s ease 0.3s 2;
}

@media (max-width: 900px) {
  .carousel-arrow {
    width:  58px;
    height: 58px;
    font-size: 1.45rem;
  }
  .carousel-arrow--prev { left:  3vw; }
  .carousel-arrow--next { right: 3vw; }
}

@media (max-width: 600px) {
  .carousel-arrow {
    width:  52px;
    height: 52px;
    font-size: 1.3rem;
  }
}


/* ── Site footer (shared) ────────────────────────────────────────────── */
#site-footer {
  position: relative;
  z-index: 30;
  min-height: 33vh;
  min-height: 33svh;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px 6vw;
  background: #EBD7B5;
  border-top: 1px solid #E3D7C2;
}

/* "Crafted at Tvashta Labs" — sits directly under the copyright line
   in the left column, not centred above everything anymore. */
.foot-crafted {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  text-align: left;
  color: #5E5A52;
}

.footer-main {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-col--left { display: flex; flex-direction: column; gap: 8px; }

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: #5E5A52;
}

.footer-credit {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5E5A52;
}

.footer-col--right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* Vertical list format, per spec */
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5E5A52;
  text-decoration: none;
  transition: color 0.25s ease;
  font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a:focus-visible { color: #A33A2A; }

.footer-logo { height: 78px; width: auto; display: block; }

@media (max-width: 600px) {
  .footer-logo { height: 60px; }
}

@media (max-width: 600px) {
  #site-footer {
    align-items: flex-start;
    padding: 40px 6vw;
    gap: 24px;
    min-height: auto;
  }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-col--right { align-items: flex-start; }
  .footer-nav { align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════════════
   Content panel — ivory paper, matching the other pages (About, Patra,
   footers) instead of the dark glass it started with.
   ══════════════════════════════════════════════════════════════════════ */
#content-panel {
  background: rgba(255, 253, 248, 0.96);
  border-right-color: rgba(201, 169, 106, 0.55);
  box-shadow: 12px 0 40px rgba(41, 38, 32, 0.18);
  color: #292620;
}
#content-panel::after { background: linear-gradient(180deg, transparent, #C9A96A 40%, transparent); opacity: 0.6; }

#panel-close {
  background: #F6F0E4;
  border-color: rgba(201, 169, 106, 0.7);
  color: #5E5A52;
}
#panel-close:hover,
#panel-close:focus-visible {
  background: #FFFDF8;
  border-color: #A83221;
  color: #A83221;
}

#content-panel .panel-category { color: #8A6A3A; }
#content-panel .panel-title    { color: #A83221; }
#content-panel .panel-story    { color: #3E3A33; border-bottom-color: rgba(201, 169, 106, 0.4); }

#content-panel .article-card {
  background: #F6F0E4;
  border-color: rgba(201, 169, 106, 0.45);
  box-shadow: 0 6px 18px rgba(139, 115, 85, 0.12);
}
@media (hover: hover) {
  #content-panel .article-card:hover {
    background: #FFF8EC;
    border-color: rgba(168, 50, 33, 0.45);
  }
}
#content-panel .article-card-img { background: #EFE6D4; }
#content-panel .article-title    { color: #292620; }
#content-panel .article-desc     { color: #5E5A52; }
#content-panel .article-readmore { color: #A83221; }

#content-panel .panel-patra-link {
  background: #A83221;
  border-color: #A83221;
}
@media (hover: hover) {
  #content-panel .panel-patra-link:hover { background: #8E2A1B; border-color: #8E2A1B; }
}
#content-panel .panel-patra-link-label,
#content-panel .panel-patra-link-arrow { color: #FFFDF8; }

@media (max-width: 900px) {
  #content-panel { border-top-color: rgba(201, 169, 106, 0.55); box-shadow: 0 -12px 40px rgba(41, 38, 32, 0.2); }
  #content-panel::after { background: rgba(138, 106, 58, 0.45); }
}
/* Story photos fill the card top (they used to be line drawings). */
#content-panel .article-card-img { height: 150px; padding: 0; object-fit: cover; }
/* Desktop: start the panel's content below the fixed nav pill. */
@media (min-width: 901px) {
  #content-panel { padding-top: calc(max(3vh, env(safe-area-inset-top)) + 72px); }
}
