:root {
  /* Default Dark-Green Theme (Emil/Apple Style) */
  --ink: #eaf3eb;
  --ink-bright: #ffffff;
  --muted: #8fa595;
  --muted-dark: #586e5e;
  --lime: #3bd172; /* Vibrant Light-Green Accent */
  --lime-glow: rgba(59, 209, 114, 0.35);
  --lime-soft: rgba(59, 209, 114, 0.12);
  --cream: #0c1a11;
  --paper: #08100b; /* Rich Dark-Green Background */
  --dark-green: #0a140d;
  --dark-slate-gray: #0e2015;
  --card-bg: rgba(14, 32, 21, 0.7);
  --card-border: rgba(59, 209, 114, 0.12);
  --card-hover-border: rgba(59, 209, 114, 0.45);
  --line: rgba(143, 165, 149, 0.15);
  --line-lime: rgba(59, 209, 114, 0.25);
  --dark: #040906;

  /* Layout & Apple Design Standards */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Mono", monospace;

  /* Theme-specific custom elements */
  --hero-color-1: #0f2518;
  --hero-color-2: #08100b;
  --header-bg: rgba(8, 16, 11, 0.82);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --glass-specular: inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --heading-grad-1: var(--lime);
  --heading-grad-2: #a4e637;

  --card-info-bg: rgba(18, 30, 22, 0.9);
  --contact-text: #22330b;
  --contact-em: #142219;
  --button-dark-hover: #132017;
}

html[data-theme="light"] {
  /* Light-Green Theme (Emil/Apple Style) */
  --ink: #132b1a;
  --ink-bright: #09170e;
  --muted: #55725d;
  --muted-dark: #7a9c84;
  --lime: #16a34a; /* Vibrant Medium-Green Accent */
  --lime-glow: rgba(22, 163, 74, 0.25);
  --lime-soft: rgba(22, 163, 74, 0.08);
  --cream: #e1efe4;
  --paper: #f1f8f3; /* Soft Light-Green Background */
  --dark-green: #e6f2e9;
  --dark-slate-gray: #e6f0e8;
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(22, 163, 74, 0.12);
  --card-hover-border: rgba(22, 163, 74, 0.4);
  --line: rgba(22, 163, 74, 0.1);
  --line-lime: rgba(22, 163, 74, 0.2);
  --dark: #ffffff; /* White text on green backgrounds */

  --hero-color-1: #e2f0e6;
  --hero-color-2: #f1f8f3;
  --header-bg: rgba(241, 248, 243, 0.82);
  --shadow-sm: 0 2px 8px rgba(22, 163, 74, 0.05);
  --shadow-md: 0 12px 30px rgba(22, 163, 74, 0.08);
  --shadow-lg: 0 24px 60px rgba(22, 163, 74, 0.12);
  --glass-specular: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  --heading-grad-1: var(--lime);
  --heading-grad-2: #15803d;

  --card-info-bg: rgba(255, 255, 255, 0.9);
  --contact-text: #dcfce7;
  --contact-em: #eafbe7;
  --button-dark-hover: #f1f8f3;
}

* { box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
  background-color: var(--paper);
  transition: background-color 0.4s var(--ease-out);
}
body { 
  margin: 0; 
  color: var(--ink); 
  background: var(--paper); 
  font-family: var(--font-sans); 
  line-height: 1.6; 
  direction: ltr; 
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.section-pad { padding: 140px 0; }

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), #8df43a);
  z-index: 100;
  width: 0%;
  box-shadow: 0 0 10px var(--lime-glow);
  transition: width 0.1s ease-out;
}

/* Header */
.site-header { position: absolute; z-index: 50; width: 100%; color: var(--ink); transition: all 0.3s var(--ease-out); }
.site-header.is-scrolled { 
  position: fixed; 
  top: 16px; 
  right: 16px; 
  left: 16px; 
  width: auto; 
  background: var(--header-bg); 
  border: 1px solid var(--card-border); 
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), var(--glass-specular); 
  backdrop-filter: blur(20px) saturate(180%); 
}
.site-header.is-scrolled .nav-wrap { height: 64px; border-bottom: 0; padding: 0 24px; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 96px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 1.1rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink-bright); }
.brand-logo { width: 32px; height: 28px; object-fit: cover; filter: grayscale(1) brightness(0) invert(1); transition: transform 0.3s var(--ease-spring); }
html[data-theme="light"] .brand-logo { filter: grayscale(1) brightness(0.2); }
.brand:hover .brand-logo { transform: scale(1.1) rotate(-4deg); }
.desktop-nav { display: flex; gap: 36px; margin-right: auto; margin-left: 64px; font-size: .85rem; font-weight: 500; color: var(--muted); }
.desktop-nav a { position: relative; transition: color 0.25s ease; padding: 6px 0; }
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width 0.25s var(--ease-out);
  box-shadow: 0 0 8px var(--lime);
}
.desktop-nav a:hover { color: var(--lime); }
.desktop-nav a:hover::after { width: 100%; }

/* Apple/Emil Theme Switcher Button */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--ink);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-spring);
  padding: 0;
  margin-right: 12px;
  position: relative;
  overflow: hidden;
}
html[data-theme="light"] .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.03);
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--card-hover-border);
  color: var(--lime);
  transform: scale(1.05);
}
html[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}
.theme-toggle-btn:active {
  transform: scale(0.95);
}
html[data-theme="dark"] .theme-toggle-btn .sun-icon { display: block; }
html[data-theme="dark"] .theme-toggle-btn .moon-icon { display: none; }
html[data-theme="light"] .theme-toggle-btn .sun-icon { display: none; }
html[data-theme="light"] .theme-toggle-btn .moon-icon { display: block; }
.theme-toggle-btn svg {
  transition: transform 0.3s var(--ease-spring);
  stroke: currentColor;
}
.theme-toggle-btn:hover svg {
  transform: rotate(15deg);
}

.nav-cta { 
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px; 
  font-size: .8rem; 
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--lime-soft);
  border: 1px solid var(--line-lime); 
  color: var(--lime); 
  transition: all 0.25s var(--ease-out);
}
.nav-cta:hover {
  background: var(--lime);
  color: var(--dark);
  box-shadow: 0 0 20px var(--lime-glow);
  transform: translateY(-2px);
}
.menu-toggle, .mobile-nav { display: none; }

/* Hero Section */
.hero { 
  position: relative; 
  overflow: hidden; 
  min-height: 880px; 
  padding-top: 190px; 
  padding-bottom: 80px;
  color: var(--ink); 
  background: radial-gradient(circle at 70% 30%, var(--hero-color-1) 0%, var(--hero-color-2) 70%); 
  transition: background 0.4s var(--ease-out);
}
.hero-grid { 
  position: absolute; 
  inset: 0; 
  opacity: .18; 
  background-image: 
    linear-gradient(var(--line-lime) 1px, transparent 1px), 
    linear-gradient(90deg, var(--line-lime) 1px, transparent 1px); 
  background-size: 64px 64px; 
  mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 80%); 
}

.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero-copy { max-width: 600px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--cream);
  border: 1px solid var(--line-lime);
  border-radius: 100px;
  font: 500 .68rem var(--font-mono);
  color: var(--lime);
  letter-spacing: .06em;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.pulse { 
  width: 8px; 
  height: 8px; 
  border-radius: 50%; 
  background: var(--lime); 
  box-shadow: 0 0 0 0 var(--lime-glow);
  animation: pulse-ring 2s infinite var(--ease-out); 
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 var(--lime-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
 
h1 { 
  margin: 0 0 24px; 
  font-size: clamp(3.4rem, 6.5vw, 6.2rem); 
  line-height: 1.04; 
  letter-spacing: -.05em; 
  font-weight: 900; 
  color: var(--ink-bright);
}
h1 em { 
  background: linear-gradient(135deg, var(--heading-grad-1) 0%, var(--heading-grad-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}
.hero-lead { 
  max-width: 480px; 
  color: var(--muted); 
  font-size: 1.02rem; 
  line-height: 1.8; 
  margin-bottom: 38px;
}
.hero-actions { display: flex; align-items: center; gap: 24px; }
 
/* Emil-style Spring Button */
.button { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px;
  min-height: 54px; 
  padding: 0 28px; 
  border-radius: var(--radius); 
  font-size: .85rem; 
  font-weight: 700; 
  letter-spacing: -.01em;
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.button-primary { 
  color: var(--dark); 
  background: var(--lime); 
  box-shadow: 0 4px 20px var(--lime-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.button-primary:hover { 
  transform: translateY(-4px) scale(1.02); 
  box-shadow: 0 12px 30px var(--lime-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.button-primary:active { transform: translateY(-1px) scale(0.98); }
 
.text-link { 
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem; 
  font-weight: 600;
  color: var(--ink); 
  transition: all 0.2s var(--ease-out); 
}
.text-link:hover { color: var(--lime); transform: translateX(4px); }

/* 3D Visual Hero Container */
.hero-visual { 
  position: relative; 
  width: 100%; 
  height: 560px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
#hero-3d-canvas { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  z-index: 1; 
  cursor: grab; 
}
#hero-3d-canvas:active { cursor: grabbing; }

.visual-label { 
  position: absolute; 
  z-index: 3; 
  color: var(--muted); 
  font: 500 .66rem var(--font-mono); 
  letter-spacing: .06em; 
  pointer-events: none; 
}
.label-top { 
  top: 16px; 
  right: 16px; 
  background: var(--card-bg); 
  padding: 6px 12px; 
  border-radius: var(--radius-sm); 
  border: 1px solid var(--line-lime);
  backdrop-filter: blur(8px);
}
.label-bottom { 
  bottom: 16px; 
  left: 16px; 
  background: var(--card-bg); 
  padding: 6px 12px; 
  border-radius: var(--radius-sm); 
  border: 1px solid var(--line-lime);
  backdrop-filter: blur(8px);
}
.prompt-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  font: 500 .62rem var(--font-mono);
  color: var(--lime);
  background: var(--card-bg);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-lime);
  pointer-events: none;
  animation: pulse-subtle 3s infinite ease-in-out;
}
@keyframes pulse-subtle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.hero-footer { 
  position: relative; 
  z-index: 2; 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  color: var(--muted); 
  font: 500 .7rem var(--font-mono); 
  letter-spacing: .05em;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.scroll-hint { display: flex; gap: 10px; align-items: center; }
.scroll-hint i { display: block; width: 36px; height: 1px; background: var(--lime); }

/* Marquee Ticker */
.ticker { 
  overflow: hidden; 
  padding: 22px 0; 
  color: var(--dark); 
  background: var(--lime); 
  box-shadow: 0 0 30px var(--lime-glow);
}
.ticker-track { 
  display: flex; 
  gap: 40px; 
  align-items: center; 
  width: max-content; 
  animation: marquee 24s linear infinite; 
  font-size: .9rem; 
  font-weight: 800; 
  letter-spacing: .05em;
}
.ticker b { font-size: 1.2rem; font-weight: 400; opacity: 0.6; }
.ticker span { white-space: nowrap; } 
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* Emil-style Cards & Section Aesthetics */
.intro { background: var(--dark-slate-gray); border-bottom: 1px solid var(--line); position: relative; }
.intro-grid { display: grid; grid-template-columns: .8fr 1.5fr .8fr; gap: 48px; }
.intro-content h2, .section-heading h2, .contact h2 { 
  margin: 16px 0 24px; 
  font-size: clamp(2.4rem, 4.5vw, 4.2rem); 
  line-height: 1.12; 
  letter-spacing: -.05em; 
  color: var(--ink-bright); 
}
.intro-content h2 span { color: var(--muted); }
.intro-content p { max-width: 540px; color: var(--muted); font-size: 1rem; line-height: 1.8; }

.metrics { display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.metric { 
  padding: 20px 24px; 
  background: var(--card-bg);
  border: 1px solid var(--card-border); 
  border-radius: var(--radius);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.metric:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.metric strong { display: block; font: 800 2.8rem/1 var(--font-mono); letter-spacing: -.08em; color: var(--lime); }
.metric small { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; display: block; }
 
/* Intelligence Section */
.intelligence { 
  position: relative; 
  overflow: hidden; 
  background: var(--paper); 
  border-bottom: 1px solid var(--line); 
}
.intelligence-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.reference-copy h2 { margin: 16px 0 24px; font-size: clamp(2.3rem, 4vw, 3.8rem); line-height: 1.15; letter-spacing: -.05em; color: var(--ink-bright); }
.reference-copy p { max-width: 480px; color: var(--muted); font-size: .98rem; }
.reference-points { display: grid; gap: 14px; margin-top: 36px; font: 500 .75rem var(--font-mono); }
.reference-points span { 
  display: flex; 
  gap: 16px; 
  align-items: center; 
  padding: 14px 18px; 
  background: var(--card-bg);
  border: 1px solid var(--card-border); 
  border-radius: var(--radius-sm);
  color: var(--ink); 
  transition: all 0.25s var(--ease-out);
}
.reference-points span:hover {
  border-color: var(--card-hover-border);
  background: var(--lime-soft);
  transform: translateX(6px);
}
.reference-points b { color: var(--lime); font-weight: 700; font-size: .9rem; }
 
.reference-card { 
  margin: 0; 
  padding: 16px; 
  background: var(--card-bg); 
  border: 1px solid var(--card-border); 
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); 
  transition: all 0.4s var(--ease-out);
  position: relative;
}
.reference-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-lg), 0 0 30px var(--lime-soft);
}
.reference-card img { display: block; width: 100%; height: auto; border-radius: var(--radius); opacity: 0.92; }
.reference-card figcaption { padding: 14px 8px 4px; color: var(--muted); font: 500 .68rem var(--font-mono); letter-spacing: .06em; }

/* Platform Modules Section */
.projects { background: var(--dark-slate-gray); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 54px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* Emil Kowalski Spotlight Hover Card */
.project-card { 
  display: flex; 
  flex-direction: column; 
  background: var(--card-bg); 
  border: 1px solid var(--card-border); 
  border-radius: var(--radius-lg); 
  overflow: hidden; 
  position: relative;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background-color 0.4s var(--ease-out); 
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--lime-soft), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}
.project-card:hover::before { opacity: 1; }
.project-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-lg), 0 0 30px var(--lime-soft); 
  border-color: var(--card-hover-border); 
}
.project-large { grid-column: 1 / -1; }
.project-image { 
  position: relative; 
  min-height: 340px; 
  background: var(--dark-green); 
  overflow: hidden; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
.project-image img { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  opacity: 0.85; 
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out); 
}
.project-card:hover .project-image img { opacity: 1; transform: scale(1.04); }
 
.project-number { 
  position: absolute; 
  top: 20px; 
  left: 20px; 
  font: 700 .75rem var(--font-mono); 
  color: var(--dark); 
  background: var(--lime); 
  padding: 6px 12px; 
  border-radius: var(--radius-sm); 
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.project-type { 
  position: absolute; 
  top: 20px; 
  right: 20px; 
  font: 500 .72rem var(--font-mono); 
  color: var(--ink-bright); 
  background: var(--card-bg); 
  padding: 6px 12px; 
  border-radius: var(--radius-sm); 
  border: 1px solid var(--line-lime); 
  backdrop-filter: blur(8px);
  z-index: 2;
}
.project-info { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 26px 28px; 
  background: var(--card-info-bg); 
  border-top: 1px solid var(--line); 
}
.project-info h3 { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--ink-bright); }
.project-info span { font: 500 .72rem var(--font-mono); color: var(--muted); }
.project-info i { 
  font-style: normal; 
  color: var(--lime); 
  font-weight: 700; 
  font-size: 1.3rem; 
  transition: transform 0.3s var(--ease-spring);
}
.project-card:hover .project-info i { transform: translate(4px, -4px); }

/* Process Section */
.process { background: var(--paper); border-bottom: 1px solid var(--line); }
.process-heading p { max-width: 300px; margin: 0 0 8px; color: var(--muted); font-size: .85rem; }
.process-list { border-top: 1px solid var(--line); }
.process-item { 
  display: grid; 
  grid-template-columns: 14% 1fr 40px; 
  align-items: center; 
  gap: 32px; 
  padding: 32px 20px; 
  border-bottom: 1px solid var(--line); 
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out); 
}
.process-item:hover { 
  padding-left: 32px; 
  background: var(--lime-soft); 
}
.process-item > span { color: var(--lime); font: 700 .82rem var(--font-mono); }
.process-item h3 { margin: 0; font-size: 1.35rem; color: var(--ink-bright); }
.process-item p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.process-item b { color: var(--lime); font-size: 1.3rem; font-weight: 400; transition: transform 0.3s var(--ease-spring); }
.process-item:hover b { transform: translateX(6px); }
 
/* Contact Section (High Impact Glow Banner) */
.contact { background: var(--lime); color: var(--dark); transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out); }
.contact-box { display: grid; grid-template-columns: .3fr 1.35fr .75fr; gap: 40px; align-items: end; }
.contact .section-kicker { color: var(--contact-em); font-weight: 800; }
.contact h2 { margin: 18px 0 0; color: var(--dark); font-size: clamp(2.4rem, 4.5vw, 4.2rem); }
.contact h2 em { color: var(--contact-em); font-style: normal; }
.contact-mark { align-self: start; font-size: 5.5rem; line-height: 1; color: var(--line-lime); }
.contact-side p { max-width: 260px; margin-bottom: 28px; color: var(--contact-text); font-size: .88rem; font-weight: 600; }
.button-dark { color: var(--ink-bright); background: var(--dark); box-shadow: var(--shadow-md); }
.button-dark:hover { background: var(--button-dark-hover); transform: translateY(-3px); }
.button-dark span { color: var(--lime); }

/* Footer */
.site-footer { padding: 60px 0; color: var(--muted); background: var(--dark); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; }
.footer-grid .brand { color: var(--ink-bright); }
.footer-grid p { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
.footer-links { display: flex; gap: 28px; justify-content: center; color: var(--ink); font-size: .78rem; }
.footer-links a:hover { color: var(--lime); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: .72rem; }
.mono { font: 500 .68rem var(--font-mono); color: var(--muted-dark); }

/* Single Page Markdown Rendering */
.single-page-content { padding: 180px 0 120px; background: var(--paper); }
.single-header { margin-bottom: 48px; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.single-title { font-size: 3.2rem; font-weight: 900; letter-spacing: -.05em; color: var(--ink-bright); }
.markdown-body { font-size: 1.08rem; line-height: 1.85; color: var(--ink); }
.markdown-body h2 { margin-top: 40px; font-size: 1.9rem; color: var(--ink-bright); }
.markdown-body h3 { margin-top: 30px; font-size: 1.45rem; color: var(--ink-bright); }
.markdown-body ul { padding-left: 24px; }
.markdown-body li { margin-bottom: 10px; }

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .container { width: min(100% - 32px, 560px); }
  .section-pad { padding: 90px 0; }
  .desktop-nav, .nav-cta { display: none; }
  .nav-wrap { height: 75px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 8px 8px; border: 0; background: transparent; }
  .menu-toggle span { width: 23px; height: 1.5px; background: var(--ink-bright); }
  .mobile-nav { display: flex; position: absolute; top: 75px; right: 0; left: 0; flex-direction: column; gap: 12px; padding: 0 20px; max-height: 0; overflow: hidden; background: var(--dark); transition: max-height .3s ease, padding .3s ease; }
  .mobile-nav.is-open { max-height: 260px; padding-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .mobile-nav a { padding: 8px 0; color: var(--ink); font-size: .85rem; border-bottom: 1px solid var(--line); }
  .hero { min-height: 740px; padding-top: 140px; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-visual { height: 380px; margin-top: 20px; }
  .intro-grid, .contact-box { grid-template-columns: 1fr; gap: 24px; }
  .metrics { flex-direction: row; padding-top: 20px; gap: 12px; }
  .metric { flex: 1; padding: 14px; }
  .metric strong { font-size: 1.8rem; }
  .section-heading { display: block; margin-bottom: 36px; }
  .project-grid { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 12% 1fr 20px; gap: 16px; padding: 24px 0; }
  .process-item h3 { font-size: 1.1rem; }
  .contact-mark { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { justify-content: flex-start; }
  .footer-meta { align-items: flex-start; }
}
