/* =============================================================================
   DESIGN SYSTEM - Plain CSS Port
   Ported from Angular SCSS design system
   Version: 1.0.0 | 2026-02
   ============================================================================= */

/* =============================================================================
   1. CUSTOM PROPERTIES
   ============================================================================= */

:root {
  /* Colors - Base */
  --bg: #FAFAFA;
  --bg-elev-1: #FFFFFF;
  --bg-elev-2: #F5F5F5;
  --text: #32373C;
  --text-muted: #666666;
  --text-light: #999999;
  --border: #E5E5E5;
  --border-light: #EBEBEB;
  --accent: #1E3A5F;
  --accent-hover: #152A45;
  --accent-contrast: #ffffff;

  /* Feedback Colors */
  --ok: #34c759;
  --warn: #ff9500;
  --danger: #ff3b30;

  /* Gradients */
  --gradient-dark-from: #1a1a2e;
  --gradient-dark-to: #16213e;
  --gradient-dark: linear-gradient(135deg, var(--gradient-dark-from) 0%, var(--gradient-dark-to) 100%);

  /* Typography - Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;

  /* Typography - Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 3rem;
  --text-4xl: 4.5rem;

  /* Typography - Line Heights */
  --leading-tight: 1.1;
  --leading-normal: 1.55;
  --leading-relaxed: 1.6;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-section: 5rem;
  --space-section-lg: 7.5rem;

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;
  --radius-lg: 0.375rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-inner: inset 0 1px 2px rgba(0, 0, 0, 0.03);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 20px;

  /* Transitions */
  --transition-base: 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 150ms cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Semantic Mappings */
  --bg-page: var(--bg);
  --bg-surface-hover: var(--bg-elev-1);
  --bg-surface-elev: var(--bg-elev-2);
  --text-primary: var(--text);
  --text-secondary: var(--text-muted);
  --text-tertiary: var(--text-light);
  --border-subtle: var(--border-light);
  --border-default: var(--border);
  --accent-main: var(--accent);
  --feedback-success: var(--ok);
  --feedback-warning: var(--warn);
  --feedback-error: var(--danger);

  /* Category Colors */
  --category-technical-bg: #e0f2fe;
  --category-technical-text: #0369a1;
  --category-implementation-bg: #dcfce7;
  --category-implementation-text: #166534;
  --category-analysis-bg: #fef3c7;
  --category-analysis-text: #b45309;

  /* Header */
  --header-height: 3.5rem;
}

/* =============================================================================
   2. RESET & BASE
   ============================================================================= */

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

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  letter-spacing: -0.011em;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

h1 {
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2rem;
  line-height: 1.1;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.5rem;
  max-width: 68ch;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-elev-2);
  padding: 0.2em 0.4em;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

pre {
  background: var(--bg-elev-1);
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

pre code {
  background: transparent;
  padding: 0;
  border: none;
  font-size: 0.875rem;
}

ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-muted);
  font-style: italic;
}

hr {
  border: none;
  margin: 4rem auto;
  text-align: center;
}

hr::before {
  content: '···';
  color: var(--text-light);
  font-size: 1.5rem;
  letter-spacing: 0.5em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th,
td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

th {
  font-weight: 600;
  background: var(--bg-elev-2);
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only.focus:not(.sr-only),
.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

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

.text-light {
  color: var(--text-light);
}

.text-center {
  text-align: center;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

/* =============================================================================
   4. LAYOUT
   ============================================================================= */

.page-shell {
  display: grid;
  grid-template-columns: 1fr min(680px, 100%) 1fr;
  min-height: 100vh;
}

.page-shell > * {
  grid-column: 2;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-sm {
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-lg {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* =============================================================================
   5. HEADER
   ============================================================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header-container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

/* Mobile Toggle */
.mobile-toggle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 60;
  position: relative;
  margin-right: -0.5rem;
}

.hamburger-box {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  align-items: center;
}

.hamburger-inner {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: background var(--transition-fast);
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform var(--transition-base), top var(--transition-base), background var(--transition-fast);
}

.hamburger-inner::before {
  top: -7px;
}

.hamburger-inner::after {
  top: 7px;
}

.mobile-toggle[aria-expanded="true"] .hamburger-inner {
  background: transparent;
}

.mobile-toggle[aria-expanded="true"] .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--text);
}

.mobile-toggle[aria-expanded="true"] .hamburger-inner::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--text);
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

.nav-list {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-link.active {
  color: var(--text);
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  margin-left: 1.5rem;
  text-decoration: none;
  transition: background var(--transition-fast);
  letter-spacing: 0.01em;
}

.header-cta-btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #ffffff;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.25rem;
  transition: border-color var(--transition-fast);
}

.mobile-close-btn:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 2rem;
  font-size: var(--text-xl);
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.mobile-nav-link:hover {
  opacity: 0.7;
  text-decoration: none;
  color: #ffffff;
}

.mobile-cta-item {
  margin-top: 0.5rem;
}

.mobile-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.75rem 2.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  margin-top: 1.5rem;
  min-width: 200px;
  transition: opacity var(--transition-fast);
}

.mobile-cta-btn:hover {
  opacity: 0.9;
  text-decoration: none;
  color: var(--accent);
}

/* Header Spacer */
.header-spacer {
  height: var(--header-height);
}

/* Tablet-up: show desktop nav, hide mobile toggle */
@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }

  .mobile-toggle {
    display: none;
  }
}

/* =============================================================================
   6. FOOTER
   ============================================================================= */

.footer {
  margin-top: 8rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border-light);
}

.footer-container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1.5rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: var(--text-xs);
  text-align: center;
  align-items: center;
}

.copyright {
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
}

/* =============================================================================
   7. COMPONENTS
   ============================================================================= */

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: #152A45;
  text-decoration: none;
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-weight: 500;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  letter-spacing: -0.01em;
}

.btn-secondary:hover {
  background: var(--bg-elev-2);
  border-color: #cccccc;
  text-decoration: none;
  color: var(--text);
}

.btn-minimal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-weight: 500;
  font-size: var(--text-xs);
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.btn-minimal:hover {
  color: var(--text);
  border-color: #cccccc;
  text-decoration: none;
}

/* Card */
.card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
}

.filter-tab:hover {
  color: var(--text);
  border-color: #cccccc;
  text-decoration: none;
}

.filter-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* =============================================================================
   8. HOMEPAGE
   ============================================================================= */

.home-page {
  min-height: 100vh;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero */
.hero {
  max-width: 800px;
  width: 100%;
  margin: clamp(80px, 12vw, 160px) auto 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.hero-lede {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-muted);
  max-width: 45ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  text-wrap: balance;
  line-height: var(--leading-relaxed);
}

/* Hero Proof Ribbon */
.hero-proof-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.proof-item-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.proof-number-inline {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.proof-label-inline {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: background var(--transition-fast);
  min-height: 48px;
}

.primary-action:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #ffffff;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  min-height: 48px;
}

.secondary-action:hover {
  border-color: #cccccc;
  background: var(--bg-elev-2);
  text-decoration: none;
  color: var(--text);
}

/* Sections */
.services-section,
.featured-work-section,
.selected-writing-section {
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 5rem;
  border-top: 1px solid var(--border-light);
  margin-bottom: 5rem;
}

.hero-content {
  width: 100%;
}

.proof-context-inline {
  font-size: var(--text-xs);
  color: var(--text-light);
}

.section-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 2.5rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding-left: 1.5rem;
  position: relative;
}

.service-card::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.6rem;
}

.service-name {
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* Work Items */
.featured-work-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .featured-work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.featured-work-card {
  background: var(--gradient-dark);
  padding: 2rem;
  border-radius: 6px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.featured-work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.work-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
  margin-top: 0;
  letter-spacing: -0.02em;
}

.work-description {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
  margin-bottom: 1rem;
}

.work-link-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA Section */
.cta-section {
  background: var(--gradient-dark);
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 4rem;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 5rem;
}

.cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.cta-body {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  min-height: 48px;
}

.cta-primary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #ffffff;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast), color var(--transition-fast);
  min-height: 48px;
}

.cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  text-decoration: none;
}

/* Post Cards in Writing Section */
.writing-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.writing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.writing-card:hover {
  border-color: #d1d5db;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.writing-card-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.writing-card-meta {
  font-size: var(--text-xs);
  color: var(--text-light);
  white-space: nowrap;
  margin-left: 1rem;
}

.writing-card-image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
}

.writing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.writing-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.writing-card-tag {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  font-weight: 600;
}

.writing-card-excerpt {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.writing-card-date {
  font-size: var(--text-xs);
  color: var(--text-light);
}

.writing-card-cta {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 500;
}

.writing-placeholder {
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
  padding: 2rem 0;
}

.writing-browse {
  text-align: center;
  margin-top: 2rem;
}

.browse-link {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.browse-link:hover {
  text-decoration: underline;
}

/* =============================================================================
   9. WRITING PAGE
   ============================================================================= */

.writing-page {
  min-height: 100vh;
  padding: 0 1.5rem;
  background: var(--bg);
}

.page-header {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(60px, 10vw, 100px);
  text-align: center;
  padding-bottom: 4rem;
}

.page-header-container {
  max-width: 800px;
  margin: 0 auto;
}

.writing-container {
  max-width: 800px;
  margin: 0 auto;
}

.writing-empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 0;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  line-height: var(--leading-relaxed);
}

/* Featured Article */
.featured-article {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.featured-article-card {
  display: block;
  background: var(--gradient-dark);
  padding: 3rem 2rem;
  border-radius: 16px;
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.featured-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.featured-article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.featured-badge {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
  font-weight: 600;
}

.featured-article-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 1rem;
}

.featured-article-excerpt {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
  margin-bottom: 1.5rem;
}

.featured-article-footer {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.featured-article-date {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.featured-article-cta {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* Category Tags */
.category-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
}

.category-tag.technical-guidance,
.category-tag[data-category="technical-guidance"] {
  background: var(--category-technical-bg);
  color: var(--category-technical-text);
}

.category-tag.implementation,
.category-tag[data-category="implementation"] {
  background: var(--category-implementation-bg);
  color: var(--category-implementation-text);
}

.category-tag.sector-analysis,
.category-tag[data-category="sector-analysis"] {
  background: var(--category-analysis-bg);
  color: var(--category-analysis-text);
}

/* Category tags on dark backgrounds (reversed) */
.featured-article-card .category-tag.technical-guidance,
.featured-article-card .category-tag[data-category="technical-guidance"] {
  background: rgba(3, 105, 161, 0.3);
  color: #7dd3fc;
}

.featured-article-card .category-tag.implementation,
.featured-article-card .category-tag[data-category="implementation"] {
  background: rgba(22, 101, 52, 0.3);
  color: #86efac;
}

.featured-article-card .category-tag.sector-analysis,
.featured-article-card .category-tag[data-category="sector-analysis"] {
  background: rgba(180, 83, 9, 0.3);
  color: #fcd34d;
}

/* Pillar tag-- variants (used by writing template pillarClass()) */
.tag--technical {
  background: var(--category-technical-bg);
  color: var(--category-technical-text);
}

.tag--implementation {
  background: var(--category-implementation-bg);
  color: var(--category-implementation-text);
}

.tag--sector {
  background: var(--category-analysis-bg);
  color: var(--category-analysis-text);
}

.tag--default {
  background: var(--bg-elev-2);
  color: var(--text-muted);
}

/* Dark background variants for tag-- */
.featured-article-card .tag--technical {
  background: rgba(3, 105, 161, 0.3);
  color: #7dd3fc;
}

.featured-article-card .tag--implementation {
  background: rgba(22, 101, 52, 0.3);
  color: #86efac;
}

.featured-article-card .tag--sector {
  background: rgba(180, 83, 9, 0.3);
  color: #fcd34d;
}

.featured-article-card .tag--default {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Article Grid */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 5rem;
}

.article-card-link {
  display: flex;
  flex-direction: column;
  padding: 3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.article-card-link:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.article-card-image {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  margin: -3rem -3rem 1.5rem -3rem;
}

.article-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.article-card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: 1rem;
}

.article-card-footer {
  font-size: var(--text-xs);
  color: var(--text-light);
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: auto;
}

.article-card-date {
  font-size: var(--text-xs);
  color: var(--text-light);
}

.article-card-cta {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 500;
}

/* =============================================================================
   10. ARTICLE PAGE
   ============================================================================= */

.article-page {
  min-height: 100vh;
  padding: 0 var(--space-6);
}

.article {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

/* Article Back Nav */
.article-back {
  width: 100%;
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* Article Cover */
.article-cover {
  width: 100%;
  max-width: 66ch;
  margin: 0 auto 2rem;
}

.article-cover-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}


.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.back-link:hover .back-arrow {
  transform: translateX(-3px);
}

.back-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

/* Article Header */
.article-header {
  width: 100%;
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.5rem;
}

.article-meta time,
.article-meta span {
  display: inline;
}

.article-meta > *:not(:first-child)::before {
  content: '\00b7';
  margin: 0 0.5rem;
  color: var(--text-light);
}

.article-pillar {
  font-weight: 500;
}

.pillar-implementation {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.pillar-technical-guidance {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.pillar-sector-analysis {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

/* Article Title */
.article-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* Article Deck */
.article-deck {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: var(--leading-relaxed);
  margin-bottom: 0.75rem;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 3rem 0 2rem;
}

.article-tag {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elev-2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0;
  text-transform: none;
}

/* Article Layout */
.article-layout {
  width: 100%;
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
}

/* Article Body */
.article-body {
  max-width: 66ch;
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.8;
  color: var(--text);
}

.article-body p:first-of-type {
  font-size: clamp(1.1875rem, 2.5vw, 1.375rem);
  margin-bottom: 2rem;
}

.article-body h2 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.article-body h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.article-body p {
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: none;
}

.article-body a {
  color: var(--accent);
  text-decoration: none;
  position: relative;
}

.article-body a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.article-body a:hover::after {
  transform: scaleX(1);
}

.article-body blockquote {
  margin: 4rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.article-body blockquote p {
  margin-bottom: 0;
}

.article-body code {
  background: rgba(30, 58, 95, 0.06);
  border: 1px solid rgba(30, 58, 95, 0.12);
  font-size: 0.875em;
  padding: 2px 6px;
  border-radius: 3px;
}

.article-body pre {
  background: var(--bg-elev-2);
  color: var(--text);
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  overflow-x: auto;
  margin: 2.5rem 0;
}

.article-body pre code {
  color: var(--text);
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.875rem;
}

.article-body ul,
.article-body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

/* Article Table */
.article-table {
  width: 100%;
  overflow-x: auto;
  margin: 2.5rem 0;
  border: none;
  border-radius: 0;
}

.article-table table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  margin: 0;
}

.article-table th,
.article-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  border-right: none;
  text-align: left;
  font-size: var(--text-sm);
}

.article-table th {
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border-bottom: 2px solid var(--border);
}

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

.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 2.5rem auto;
}

.article-body hr {
  border: none;
  margin: 6rem auto;
  text-align: center;
}

.article-body hr::before {
  content: '···';
  color: var(--text-light);
  font-size: 1.5rem;
  letter-spacing: 0.5em;
}

/* Article Sources */
.article-sources {
  width: 100%;
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  margin-top: 3rem;
}

.sources-title {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 1rem;
}

.article-sources ol {
  padding-left: 1.5rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.article-sources a {
  color: var(--accent);
  text-decoration: none;
}

.article-sources a:hover {
  text-decoration: underline;
}

/* Article Afterword */
.article-afterword {
  width: 100%;
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 2rem;
  background: var(--bg-elev-2);
  border-radius: var(--radius-xl);
  box-shadow: none;
  text-align: center;
  margin-top: 6rem;
}

.article-afterword h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
}

.article-afterword p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: 1.5rem;
  max-width: none;
}

/* Afterword child elements */
.afterword-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.afterword-text {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0;
  max-width: none;
}

.afterword-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
}

.afterword-sub {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: 1rem;
  max-width: none;
}

.afterword-cta:hover {
  text-decoration: underline;
}

/* Article End Marker */
.article-end-marker {
  text-align: center;
  margin: 4rem 0 2rem;
}

.article-end-marker::before {
  content: '···';
  color: var(--text-light);
  font-size: 1.5rem;
  letter-spacing: 0.5em;
}

/* Article Share (was article-footer) */
.article-share {
  width: 100%;
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.share-btn:hover {
  border-color: #cccccc;
  color: var(--text);
  text-decoration: none;
}

/* Article page - tablet styles */
@media (min-width: 768px) {
  .article-page {
    padding: 0 3rem;
  }
}

@media (min-width: 1024px) {
  .article-page {
    padding: 0 4rem;
  }
}

/* =============================================================================
   11. SEARCH PAGE
   ============================================================================= */

.search-page {
  padding: 5rem 1.5rem 5rem;
}

.search-container {
  max-width: 680px;
  margin: 0 auto;
}

.search-page h1 {
  margin-top: 0;
  margin-bottom: 2rem;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: var(--text-lg);
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-elev-1);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.search-result-item {
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: block;
}

.search-result-item:hover {
  border-color: #d1d5db;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.search-result-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.search-result-excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
  max-width: none;
}

.search-result-date {
  font-size: var(--text-xs);
  color: var(--text-light);
  display: block;
  margin-top: 0.5rem;
}

.search-empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
}

/* =============================================================================
   11b. ABOUT PAGE
   ============================================================================= */

.about-page {
  min-height: 100vh;
  padding: 0 1.5rem;
}

.about-container {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.about-lead {
  margin-bottom: 3rem;
}

.lead-statement {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--text);
  font-weight: 500;
  line-height: var(--leading-relaxed);
  max-width: 50ch;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 1rem;
}

.impact-list {
  list-style: none;
  padding: 0;
}

.impact-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
}

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

.about-contact {
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.contact-links {
  display: flex;
  gap: 2rem;
}

.contact-link {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* =============================================================================
   11c. SERVICES PAGE
   ============================================================================= */

.services-page {
  min-height: 100vh;
  padding: 0 1.5rem;
}

.services-container {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
}

.service-article {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-light);
}

.service-article:last-child {
  border-bottom: none;
}

.service-article-title {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 1rem;
}

.service-article-description {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: 1.5rem;
}

.service-deliverables-title {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.service-deliverables {
  list-style: none;
  padding: 0;
}

.service-deliverables li {
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: var(--text-sm);
  color: var(--text);
}

.service-deliverables li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.7rem;
}

.services-cta {
  background: var(--gradient-dark);
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
}

.services-cta-title {
  color: #ffffff;
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
}

.services-cta-body {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
  margin-bottom: 1.5rem;
}

.services-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.services-cta-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #ffffff;
}

/* =============================================================================
   12. 404 PAGE
   ============================================================================= */

.not-found-page {
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 8rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.not-found-page h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 1rem;
}

.not-found-page p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: none;
}

.not-found-page a {
  color: var(--accent);
  font-weight: 500;
}

/* =============================================================================
   13. RESPONSIVE OVERRIDES
   ============================================================================= */

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  /* Hero */
  .hero {
    margin-top: 80px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    width: 100%;
    justify-content: center;
  }

  .hero-proof-ribbon {
    gap: 2rem;
  }

  /* Article Title */
  .article-title {
    font-size: 1.75rem;
  }

  /* Article Body */
  .article-body {
    font-size: 1rem;
  }

  .article-body p:first-of-type {
    font-size: 1.0625rem;
  }

  /* Featured Article Card */
  .featured-article-card {
    padding: 2rem 1.5rem;
  }

  .featured-article-card:hover {
    transform: none;
  }

  /* Article Cards */
  .article-card-link {
    padding: 1.5rem;
  }

  .article-card-link:hover {
    transform: none;
  }

  .article-card-title {
    font-size: var(--text-lg);
  }

  /* Work Items */
  .featured-work-card:hover {
    transform: none;
  }

  /* CTA Section */
  .cta-section {
    padding: 2.5rem 1.5rem;
  }

  /* Sections */
  .services-section,
  .featured-work-section,
  .selected-writing-section {
    padding-top: 3rem;
    margin-bottom: 3rem;
  }

  /* Footer */
  .footer {
    margin-top: 4rem;
  }
}

/* Tablet Only (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
  .featured-work-card:hover,
  .featured-article-card:hover,
  .article-card-link:hover {
    transform: none;
  }

  .nav-link,
  .social-links a {
    padding: 0.25rem 0;
  }
}

/* =============================================================================
   14. REDUCED MOTION
   ============================================================================= */

@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;
  }

  .featured-work-card:hover,
  .featured-article-card:hover,
  .article-card-link:hover {
    transform: none;
  }
}

/* =============================================================================
   15. PRINT STYLES
   ============================================================================= */

@media print {
  .header,
  .mobile-toggle,
  .mobile-menu-overlay,
  .article-back,
  .article-share,
  .article-afterword,
  .article-sidebar,
  .footer,
  .hero-actions,
  .cta-section,
  .share-btn {
    display: none !important;
  }

  .header-spacer {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000000;
    background: #ffffff;
  }

  .article-body {
    max-width: 100%;
    font-size: 11pt;
    line-height: 1.6;
  }

  .article-title {
    font-size: 22pt;
    margin-bottom: 1rem;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .article-body a::after {
    display: none;
  }

  pre,
  blockquote {
    page-break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
  }
}
