/* ==========================================================================
   JOHN & SAHIL'S PHYSICS JOURNAL — LIGHT EDITORIAL DESIGN SYSTEM
   Design Aesthetic:
     • Engineering Field Journal (tactile paper, archival ruling, precision notes)
     • High-End Scientific Magazine (Nature / Quanta / Stripe Press editorial clarity)
     • Apple-Level Editorial Design (tactile restraint, typography, whitespace)
   ========================================================================== */

/* --- Custom Design Tokens (Light Theme) --- */
:root {
  /* Archival Light Palette */
  --bg-deep: #f8fafc;
  --bg-surface: #ffffff;
  --bg-plate: #fafbfd;              /* Clean architectural light exhibit plate for John's physics simulations */
  --bg-placeholder: #f1f5f9;        /* Clean archival frame for Sahil's image placeholders */
  --bg-glass: rgba(255, 255, 255, 0.9);

  /* Editorial Typography Tones */
  --text-headline: #0f172a;         /* Deep obsidian ink */
  --text-primary: #334155;          /* Slate 700 reading body */
  --text-secondary: #475569;        /* Slate 600 secondary */
  --text-muted: #64748b;            /* Slate 500 annotations */
  --text-dim: #94a3b8;              /* Slate 400 micro-labels */

  /* Restrained Scientific Accents */
  --accent-cyan: #0284c7;           /* Sky 600 */
  --accent-cyan-subtle: rgba(2, 132, 199, 0.08);
  --accent-blue: #2563eb;           /* Royal Blue */
  --accent-blue-subtle: rgba(37, 99, 235, 0.08);
  --accent-violet: #7c3aed;         /* Archival Violet */
  --accent-violet-subtle: rgba(124, 58, 237, 0.08);

  /* Hairline Borders */
  --border-hairline: rgba(15, 23, 42, 0.08);
  --border-subtle: rgba(15, 23, 42, 0.13);
  --border-strong: rgba(15, 23, 42, 0.22);

  /* Shadows */
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  --shadow-card-hover: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);

  /* Type Families */
  --font-serif: 'Newsreader', Iowan Old Style, Apple Garamond, Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, monospace;

  /* Layout Constants */
  --nav-height: 68px;
  --max-content-width: 1220px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

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

/* Faint Archival Field-Notebook Grid Ruling */
.field-notebook-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.028) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.9;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-headline);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.84;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* ==========================================================================
   NAVIGATION BAR — Minimal, Light Editorial Masthead
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(248, 250, 252, 0.88);
  border-bottom: 1px solid var(--border-hairline);
  transition: all 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.nav-container {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--text-headline);
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.85;
}

.brand-marker {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
}

.brand-muted {
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text-headline);
  background: rgba(15, 23, 42, 0.04);
}

.nav-link.active {
  color: var(--text-headline);
  background: rgba(15, 23, 42, 0.07);
}

.nav-issue-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border-hairline);
  background: rgba(15, 23, 42, 0.02);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   VIEW SWITCHER / CLIENT ROUTING
   ========================================================================== */
.view-section {
  display: none;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.view-section.active-view {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   VIEW 1: HOME COVER (LIGHT EDITORIAL COVER)
   ========================================================================== */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 2rem 4rem;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 860px;
  text-align: center;
  margin: 0 auto;
  pointer-events: none;
}

.hero-content > * {
  pointer-events: auto;
}

/* Editorial Kicker */
.hero-kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.hero-kicker-sep {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.hero-kicker-stage {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Hero Title */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-title-serif {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-headline);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  max-width: 660px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Dual Call-to-Action Buttons (Apple Light Aesthetics) */
.hero-cta-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: #0f172a;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-cta:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

.btn-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.btn-primary-cta:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-headline);
  background: #ffffff;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary-cta:hover {
  background: #f8fafc;
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.btn-badge-author {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--accent-violet-subtle);
  color: var(--accent-violet);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.hero-meta-footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.hero-meta-sep {
  color: var(--text-dim);
}

/* ==========================================================================
   JOURNAL VIEWS — Student Switcher Tabs & Masthead
   ========================================================================== */
.journal-view {
  padding-top: calc(var(--nav-height) + 2.5rem);
  padding-bottom: 6rem;
}

.journal-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Student Switcher Pill Control */
.student-journal-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.student-journal-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.05);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
}

.student-tab-btn {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.student-tab-btn:hover {
  color: var(--text-headline);
}

.student-tab-btn.active {
  background: #ffffff;
  color: var(--text-headline);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.tab-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
}

/* Post Header Masthead */
.post-header-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 3.5rem 3.5rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-card);
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-hairline);
}

.post-meta-badges {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-post {
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
}

.badge-tag {
  background: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.badge-author {
  background: var(--accent-violet-subtle);
  color: var(--accent-violet);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.badge-date {
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
  background: rgba(15, 23, 42, 0.02);
}

.badge-category {
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

/* Typographic Timeline: 01 / 07 */
.progress-strip-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.progress-metric {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: var(--font-mono);
}

.progress-active-val {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.progress-sep {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.progress-total-val {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.progress-steps-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.step-node {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.step-node.active-step {
  color: var(--accent-cyan);
  background: var(--accent-cyan-subtle);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.step-node.muted-step {
  color: var(--text-dim);
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--border-hairline);
  opacity: 0.7;
}

.post-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.post-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-headline);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.post-subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 820px;
  line-height: 1.6;
}

/* ==========================================================================
   PASSION SECTIONS — FIELD EXHIBITS & ANALYTICAL PLATES
   ========================================================================== */
.passions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-bottom: 4.5rem;
}

.passion-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.passion-card:hover {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-card-hover);
}

.passion-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  min-height: 420px;
  align-items: stretch;
}

/* Written Content Side */
.passion-content-side {
  min-width: 0;
  padding: 3.25rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-hairline);
}

.passion-kicker-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.passion-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.passion-card[data-accent="cyan"] .passion-number { color: var(--accent-cyan); }
.passion-card[data-accent="blue"] .passion-number { color: var(--accent-blue); }
.passion-card[data-accent="violet"] .passion-number { color: var(--accent-violet); }

.passion-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.passion-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-headline);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.passion-prose {
  font-size: 1.06rem;
  line-height: 1.86;
  color: var(--text-primary);
  font-weight: 400;
}

/* Technical Plate Framing for John's Interactive Canvases */
.passion-visual-side {
  min-width: 0;
  position: relative;
  background: var(--bg-plate);
  border-left: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.passion-canvas {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
}

.visual-hud-tag {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.visual-interactive-tag {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.visual-interactive-hint {
  position: absolute;
  bottom: 0.85rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  pointer-events: none;
  transition: color 0.2s ease;
}

.passion-card:hover .visual-interactive-hint {
  color: var(--accent-cyan);
}

/* ==========================================================================
   SAHIL'S EDITORIAL PHOTOGRAPHIC PLATES & EXHIBIT FRAMES
   ========================================================================== */
.passion-image-side {
  min-width: 0;
  min-height: 0;
  position: relative;
  background: var(--bg-plate);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 2rem;
  overflow: hidden;
  border-left: 1px solid var(--border-hairline);
}

.passion-photo-container {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: 310px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.10), 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.passion-photo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: calc(var(--radius-md) - 1px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.passion-card:hover .passion-photo {
  transform: scale(1.035);
}

.passion-card:hover .passion-photo-container {
  box-shadow: 0 8px 28px -4px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.passion-photo-container .visual-hud-tag {
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
}

.photo-caption-bar {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  z-index: 2;
}

.photo-caption-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-headline);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.passion-placeholder-side {
  position: relative;
  background: var(--bg-placeholder);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 2.5rem;
  overflow: hidden;
  border-left: 1px solid var(--border-hairline);
}

.placeholder-inner-frame {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  position: relative;
}

.placeholder-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.placeholder-plate-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-headline);
  margin-bottom: 0.35rem;
}

.placeholder-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--accent-violet);
  background: var(--accent-violet-subtle);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-top: 0.75rem;
}

.placeholder-ratio-tag {
  position: absolute;
  bottom: 0.75rem;
  right: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   FINAL REFLECTION — EDITORIAL EPILOGUE
   ========================================================================== */
.reflection-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4rem 4rem;
  margin-bottom: 5rem;
  box-shadow: var(--shadow-card);
}

.reflection-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.reflection-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--text-headline);
  margin-bottom: 1.75rem;
}

.reflection-prose {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--text-headline);
  max-width: 860px;
}

.reflection-footer-row {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.reflection-author-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.reflection-timestamp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-violet);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  padding: 2.5rem 2rem;
}

.footer-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--text-headline);
}

/* ==========================================================================
   SCROLL REVEAL OBSERVER
   Safe Editorial Display: Content is visible by default (failsafe)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .passion-card-grid {
    grid-template-columns: 1fr;
  }

  .passion-content-side {
    padding: 2.75rem;
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
  }

  .passion-visual-side,
  .passion-placeholder-side {
    min-height: 320px;
    border-left: none;
  }

  .passion-image-side {
    border-left: none;
    border-top: 1px solid var(--border-hairline);
    padding: 1.75rem 1.5rem;
    min-height: auto;
  }

  .passion-photo-container {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: 320px;
  }

  .post-header-card {
    padding: 2.5rem;
  }

  .reflection-card {
    padding: 3rem 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav-container {
    padding: 0 1.25rem;
  }

  .nav-issue-tag {
    display: none;
  }

  .journal-container {
    padding: 0 1.25rem;
  }

  .post-header-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2.5rem;
  }

  .post-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .progress-strip-container {
    width: 100%;
    justify-content: space-between;
  }

  .passion-content-side {
    padding: 2rem 1.5rem;
  }

  .passion-visual-side,
  .passion-placeholder-side {
    min-height: 280px;
  }

  .passion-image-side {
    padding: 1.25rem 1rem;
    min-height: auto;
  }

  .passion-photo-container {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: 280px;
  }

  .reflection-card {
    padding: 2rem 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
