/* 
   Algorithmica Labs - Computational Physics & Mechanical Engineering AI
   Theme: Distinct light-gray/parchment background and dark slate text.
   Strict Typography: Google Sans only, no italics, no underlines. Bold weights enabled.
   Ultra-Minimalist Editorial Design (No borders, boxes, meshes, consoles, or CTAs).
*/

/* Import Google Sans (400, 500, 700) */
@import url('https://cdn.jsdelivr.net/fontsource/fonts/google-sans@latest/latin-400-normal.css');
@import url('https://cdn.jsdelivr.net/fontsource/fonts/google-sans@latest/latin-500-normal.css');
@import url('https://cdn.jsdelivr.net/fontsource/fonts/google-sans@latest/latin-700-normal.css');

:root {
  --bg-primary: #eef1f6;       /* Light engineering slate/gray-blue - NOT white */
  --text-primary: #1e293b;     /* Dark slate-gray foreground - NOT black */
  --text-secondary: #475569;   /* Cool medium gray */
  --text-muted: #64748b;       /* Muted slate-gray */
  
  /* Layout */
  --max-width: 1400px;
  --header-height: 100px;
  --transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Strict resets for typography and styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-style: normal !important;
  text-decoration: none !important;
}

/* Custom premium text selection highlight */
::selection {
  background-color: #cbd5e1 !important; /* Soft off-grey / slate-300 */
  color: var(--text-primary) !important;
}

::-moz-selection {
  background-color: #cbd5e1 !important;
  color: var(--text-primary) !important;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

html, body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  isolation: isolate;
}

/* Header & Navigation (Sticky blurry modern alignment) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 80px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(238, 241, 246, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.nav-links a:hover,
.nav-links a.active-link {
  color: var(--text-primary);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  user-select: none;
}

.logo a {
  color: inherit;
}

/* Sections Base Layout */
section {
  padding: 5rem 4rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Hero Section: Pure Typographic Scale */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 6rem);
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.hero-content {
  max-width: 1200px;
}

h1 {
  font-size: clamp(4.5rem, 11vw, 10rem);
  font-weight: 700;
  line-height: 0.85;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem; /* Tightly dropped space */
  max-width: 1200px;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 850px;
  margin-left: 0; /* Fully left-aligned under the title */
}

/* Editorial Layout for Sections (Top-to-Bottom Flow) */
.editorial-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section-title-col {
  max-width: 850px;
}

h5 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

/* Content Columns */
.content-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 0.5rem; /* Aligns visually with section title */
  max-width: 850px;
}

/* Feature Item styles */
.feature-item h3 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-item p {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 680px;
}

/* Publications Feed */
.research-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.research-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.research-tag {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-date {
  font-weight: 400;
}

.research-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.research-desc {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 680px;
}

/* Careers Section */
.careers-intro {
  margin-bottom: 4rem;
}

.careers-intro h3 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.careers-intro p {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.positions-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.position-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.position-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.position-meta {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Footer Section */
footer {
  padding: 10rem 4rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.footer-headline-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
}

.footer-headline {
  max-width: 500px;
}

.footer-headline h2 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 0;
}

.footer-links-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.footer-col a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  display: inline-block;
}

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

.footer-address {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 500;
}

/* Giant base branding text */
.footer-giant-wrapper {
  margin-top: 4rem;
}

.footer-giant-title {
  font-size: 13.5vw;
  font-weight: 700;
  line-height: 0.75;
  color: var(--text-primary);
  letter-spacing: -0.06em;
  user-select: none;
  pointer-events: none;
  width: 100%;
  text-align: left;
  margin-bottom: 3.5rem;
}

.footer-meta-row {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Scroll Fade In Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 960px) {
  section {
    padding: 8rem 2rem 4rem;
  }
  
  header {
    min-height: 80px;
    padding: 1rem 0;
  }
  
  .nav-container {
    padding: 0 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .nav-links {
    gap: 1rem 2rem;
  }
  
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .section-title-col {
    position: static;
  }
  
  .content-col {
    gap: 4rem;
  }
  
  footer {
    padding: 6rem 2rem 2rem;
  }

  .footer-headline-row {
    flex-direction: column;
    gap: 3rem;
  }

  .footer-links-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-links-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Custom Editorial Typographic Classes */
.intro-paragraph {
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 820px;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: block;
}

/* Editorial Vertical List (Top-to-Bottom Layout) */
.editorial-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  margin: 2rem 0;
  list-style: none;
}

.editorial-vertical-list li {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.seq-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 2.5rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.list-text {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Em-dashed lists stacking vertically */
.editorial-vertical-list li.dashed-item {
  gap: 1.25rem;
}

.dashed-prefix {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  width: 1.5rem;
  flex-shrink: 0;
  line-height: 1.2;
  text-align: right;
}

.dashed-text {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Principles Vertical Stack */
.principles-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.principle-vertical-item {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.principle-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 3rem;
  flex-shrink: 0;
  line-height: 1.1;
}

.principle-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.principle-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.principle-content p {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.45;
  margin-bottom: 0;
}

/* Responsive adjust for mobile */
@media (max-width: 600px) {
  .editorial-vertical-list li {
    gap: 1rem;
  }
  .seq-num {
    width: 2rem;
    font-size: 1.1rem;
  }
  .list-text {
    font-size: 1.15rem;
  }
  .principle-vertical-item {
    gap: 1.25rem;
  }
  .principle-num {
    width: 2rem;
    font-size: 1.25rem;
  }
  .principle-content h3 {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Bespoke Left-Aligned Print-Editorial Layout Utilities
   ========================================================================== */

/* Layout wrapper */
.editorial-layout {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  max-width: 850px;
}

/* Styled Section H2 Titles (Hierarchy Bump) */
.editorial-h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Styled Section H3 Titles (Hierarchy Bump) */
.editorial-h3 {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Home & Lists Typographic Styles */
.editorial-focus-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 2rem 0;
}

.focus-item-left {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.focus-num-large {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 0.85;
  color: var(--text-muted);
  width: clamp(3.5rem, 7vw, 6rem);
  flex-shrink: 0;
  letter-spacing: -0.04em;
}

.focus-text-large {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0.2rem;
}

/* Clean Left-Aligned Outro Quote */
.editorial-outro-quote {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

/* About Page Styles */
.about-human-statement {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* Philosophy Page Styles */
.philosophy-principles-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 2.5rem 0;
}

.principle-item-left {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.principle-num-left {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-muted);
  line-height: 0.95;
  width: clamp(2rem, 4vw, 3rem);
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

.principle-content-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.principle-content-left h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.principle-content-left p {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Horizon Crescendo (Left-Aligned Stack) */
.horizon-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.crescendo-step-1 {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.crescendo-step-2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
}

.crescendo-step-3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Founder Page Styles */
.founder-focused-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 2.5rem 0;
}

.founder-focus-item-left {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.founder-focus-num-left {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--text-muted);
  width: clamp(2.5rem, 5vw, 3.5rem);
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

.founder-focus-text-left {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-top: 0.1rem;
}

/* Fixed Background Editorial Engineering Drawing */
.fixed-drawing-bg {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: -1; /* Placed behind content to act as a watermark */
}

.fixed-drawing-bg svg {
  position: absolute;
  left: -400px; /* Shift by half of its 800px width to let only the left half protrude */
  top: -500px;  /* Center vertically (half of its 1000px height) */
  width: 800px;
  height: 1000px;
  color: var(--text-secondary);
  opacity: 0.08; /* Subtle watermark */
  transition: opacity 0.3s ease;
}

/* Subtle illumination on document interaction */
body:hover .fixed-drawing-bg svg {
  opacity: 0.12;
}

/* Adjustments on smaller responsive break points to ensure text contrast */
@media (max-width: 1200px) {
  .fixed-drawing-bg svg {
    opacity: 0.03; /* Make it barely visible so that overlapping text remains highly legible */
  }
}

@media (max-width: 768px) {
  .fixed-drawing-bg svg {
    display: none; /* Turn off completely on mobile screens */
  }
}

/* Learnings, Research & Builds Feed & Cards */
.learnings-feed,
.research-feed,
.builds-feed {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.learning-card,
.research-card,
.build-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  padding: 2.5rem;
  background-color: rgba(30, 41, 59, 0.015);
  border: 1px solid rgba(30, 41, 59, 0.06);
  border-radius: 8px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.learning-card:hover,
.research-card:hover,
.build-card:hover {
  transform: translateY(-4px);
  background-color: rgba(30, 41, 59, 0.035);
  border-color: rgba(30, 41, 59, 0.12);
}

.learning-card-meta,
.research-card-meta,
.build-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.learning-card-meta .dot-separator,
.research-card-meta .dot-separator,
.build-card-meta .dot-separator {
  opacity: 0.5;
}

.learning-card-title,
.research-card-title,
.build-card-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.learning-card-excerpt,
.research-card-excerpt,
.build-card-excerpt {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 720px;
}

.read-more-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.read-more-text .arrow {
  transition: transform 0.2s ease;
}

.learning-card:hover .learning-card-title,
.research-card:hover .research-card-title,
.build-card:hover .build-card-title {
  color: var(--text-muted);
}

.learning-card:hover .read-more-text .arrow,
.research-card:hover .read-more-text .arrow,
.build-card:hover .read-more-text .arrow {
  transform: translateX(4px);
}

/* Article Page Layout */
.article-section {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.article-header {
  margin-bottom: 4rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.article-title {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.article-body p {
  margin-bottom: 2rem;
}

.article-body h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.article-body h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-body blockquote {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  border-left: 3px solid var(--text-primary);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
}

/* Custom Editorial List in Article */
.article-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.article-body ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-body ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Beautiful Embedded SVG diagrams */
.article-diagram-wrapper {
  margin: 3.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.article-diagram {
  width: 100%;
  max-width: 650px;
  background-color: rgba(30, 41, 59, 0.015);
  border: 1px solid rgba(30, 41, 59, 0.06);
  border-radius: 4px;
  padding: 1.5rem;
  box-sizing: border-box;
}

.article-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.article-diagram-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

/* Minimalist Clean Editorial Table */
.article-table-wrapper {
  margin: 3rem 0;
  overflow-x: auto;
}

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

.article-table th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 1rem;
  border-bottom: 2px solid var(--text-primary);
}

.article-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
  color: var(--text-secondary);
}

.article-table tr:hover td {
  color: var(--text-primary);
  background-color: rgba(30, 41, 59, 0.008);
}

/* Responsive spacing for mobile */
@media (max-width: 600px) {
  .article-section {
    padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
  }
  .article-header {
    margin-bottom: 2.5rem;
  }
}/* Editorial Back Navigation Links */
.back-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
  margin-bottom: 2.5rem;
}

.back-link .arrow {
  display: inline-block;
  transform: scaleX(-1);
  transition: transform 0.2s ease;
}

.back-link:hover {
  color: var(--text-muted);
}

.back-link:hover .arrow {
  transform: scaleX(-1) translateX(4px);
}

/* Pagination Container & Navigation */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(30, 41, 59, 0.06);
  user-select: none;
}

.page-nav,
.page-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0.25rem 0.5rem;
}

.page-nav:hover,
.page-num:hover {
  color: var(--text-primary);
}

.page-num.active {
  color: var(--text-primary);
  border-bottom: 2px solid var(--text-primary);
}

.page-nav.disabled {
  color: var(--text-muted);
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.page-numbers {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Mobile Responsive Header Menu Toggle */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 2rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 120;
  }
  
  .hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }
  
  /* Hamburger to X conversion */
  .mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(238, 241, 246, 0.98); /* Muted parchment overlay */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 110;
  }
  
  .nav-links.nav-open {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  /* Responsive content paddings to ensure mobile readability */
  section {
    padding: 4rem 2rem 2rem;
  }
  
  .hero-section {
    padding-top: calc(var(--header-height) + 2rem);
  }
  
  h1 {
    font-size: clamp(3rem, 12vw, 5rem);
    line-height: 0.9;
  }
  
  .editorial-grid {
    gap: 2rem;
  }
  
  .section-title-col h2 {
    font-size: 1.85rem;
  }
  
  footer {
    padding: 6rem 2rem 2rem;
  }
  
  .footer-headline-row {
    flex-direction: column;
    gap: 3rem;
  }
  
  .footer-links-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Monospace and Code Block Styling */
pre {
  background-color: rgba(30, 41, 59, 0.02) !important;
  border: 1px solid rgba(30, 41, 59, 0.07) !important;
  border-radius: 6px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: 0.9rem;
  color: var(--text-primary) !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: block;
  line-height: 1.5;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: 0.85em;
  background-color: rgba(30, 41, 59, 0.035) !important;
  color: var(--text-primary) !important;
  padding: 0.2rem 0.4rem !important;
  border-radius: 4px;
}

/* Product Iframe Styles */
.product-iframe-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin-top: 80px; /* Header height offset */
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
  background-color: var(--bg-primary);
}

.product-iframe {
  width: 100%;
  height: 96vh;
  min-height: 780px;
  border: none;
  display: block;
}

@keyframes sandbox-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}



