/* ─────────────────────────────────────────────
   1. Reset & Variables
───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #0a0a0a;
  --surface:     #111111;
  --surface-2:   #161616;
  --border:      #1e1e1e;
  --border-2:    #2a2a2a;
  --accent:      #11748B;
  --accent-dim:  #11748B;
  --accent-glow: rgba(17, 116, 139, 0.06);
  --text:        #e8e8e8;
  --muted:       #777777;
  --muted-2:     #444444;
  --white:       #ffffff;
  --nav-h:       72px;
  --container:   1100px;
  --pad:         40px;
}

/* ── Light mode overrides ── */
[data-theme="light"] {
  --bg:          #f7f7f5;
  --surface:     #ffffff;
  --surface-2:   #efefed;
  --border:      #e2e2e2;
  --border-2:    #d0d0d0;
  --accent:      #11748B;
  --accent-dim:  #0e5f72;
  --accent-glow: rgba(17, 116, 139, 0.08);
  --text:        #1e1e1e;
  --muted:       #606060;
  --muted-2:     #999999;
  --white:       #0f0f0f;
}

html {
  scroll-behavior: smooth;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul { list-style: none; }

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

button { font-family: inherit; }


/* ─────────────────────────────────────────────
   2. Background Effects
───────────────────────────────────────────── */

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Grid lines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Glow orb */
.orb {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 241, 53, 0.055) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  pointer-events: none;
  z-index: 0;
  animation: pulse 9s ease-in-out infinite;
}


/* ─────────────────────────────────────────────
   3. Layout & Container
───────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.page-main {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
}


/* ─────────────────────────────────────────────
   4. Typography
───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
}

h1 { font-size: clamp(48px, 7.5vw, 92px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: clamp(16px, 2vw, 20px); }

h1 em, h2 em {
  font-style: italic;
  color: #D4F545;
}

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.lead {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  max-width: 580px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.mono {
  font-family: 'DM Mono', monospace;
}


/* ─────────────────────────────────────────────
   5. Navigation
───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s, background 0.3s;
}

.site-nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-color: var(--border-2);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo span { color: var(--muted); }

.nav-logo-img {
  height: 20px;
  width: auto;
  display: block;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-logo-img {
  height: 16px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-logo:hover .footer-logo-img {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s;
}

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

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-cta-item { margin-left: 4px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 7px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: var(--accent-glow);
  border-color: var(--accent-dim);
}

/* Hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  border-radius: 4px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.nav-toggle:hover { background: var(--surface); }

.hamburger-line {
  transform-origin: center;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .hamburger-line-1 {
  transform: translateY(4.75px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line-2 {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .hamburger-line-3 {
  transform: translateY(-4.75px) rotate(-45deg);
}


/* ─────────────────────────────────────────────
   6. Buttons
───────────────────────────────────────────── */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #0a0a0a;
  padding: 14px 28px;
  font-weight: 500;
}

.btn-primary:hover  { background: #d4f545; border-color: #d4f545; }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 13px 28px;
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--muted-2);
}

.btn-ghost:active { transform: scale(0.98); }

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 13px;
}


/* ─────────────────────────────────────────────
   7. Tags
───────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--accent-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--border-2);
  border-radius: 2px;
  padding: 4px 10px;
}


/* ─────────────────────────────────────────────
   8. Page Hero
───────────────────────────────────────────── */
.page-hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
}

.page-hero .eyebrow { margin-bottom: 24px; }

.page-hero h1 {
  margin-bottom: 28px;
}

.page-hero .lead {
  margin-bottom: 0;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Home hero has more vertical breathing room */
.home-hero {
  padding: 96px 0 80px;
}

.home-hero .lead {
  margin-bottom: 0;
}


/* ─────────────────────────────────────────────
   9. Sections
───────────────────────────────────────────── */
.section {
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.section:last-child {
  border-bottom: none;
}

.section-header {
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-cta {
  margin-top: 48px;
}


/* ─────────────────────────────────────────────
   10. Home: Pillars
───────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.pillar {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
}

.pillar:last-child { border-right: none; }

.pillar:hover { background: var(--surface); }

.pillar-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent-dim);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.pillar-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}


/* ─────────────────────────────────────────────
   11. Home: About Tease
───────────────────────────────────────────── */
.about-tease-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
}

.about-tease-text h2 {
  margin-bottom: 20px;
}

.about-tease-text p {
  margin-bottom: 16px;
}

.about-tease-cta {
  margin-top: 32px;
}

.about-tease-aside {
  padding-top: 4px;
}

.stat-block {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  background: var(--surface);
}

.stat-block + .stat-block {
  margin-top: 1px;
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ─────────────────────────────────────────────
   12. About: Bio
───────────────────────────────────────────── */
.bio-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}

.bio-text p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  font-weight: 300;
}

.bio-text p:last-child { margin-bottom: 0; }

.bio-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 24px;
}

.bio-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.bio-detail {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.bio-detail:last-child { border-bottom: none; }

.bio-detail-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bio-detail-value {
  font-size: 14px;
  color: var(--text);
}


/* ─────────────────────────────────────────────
   13. About: Expertise Tags
───────────────────────────────────────────── */
.section-expertise h2 {
  margin-bottom: 32px;
}

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


/* ─────────────────────────────────────────────
   14. How I Work: Process Steps
───────────────────────────────────────────── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}

.process-step:last-child { border-bottom: none; }

.process-step:hover { background: var(--surface); }

.step-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent-dim);
  letter-spacing: 0.15em;
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  padding-top: 38px;
}

.step-body {
  padding: 36px 40px;
}

.step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.step-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 580px;
}


/* ─────────────────────────────────────────────
   15. How I Work: Deliverables
───────────────────────────────────────────── */
.section-deliverables h2 {
  margin-bottom: 40px;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.deliverable {
  background: var(--bg);
  padding: 32px 36px;
  transition: background 0.25s;
}

.deliverable:hover { background: var(--surface); }

.deliverable-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 10px;
}

.deliverable-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}


/* ─────────────────────────────────────────────
   16. Page CTA Section
───────────────────────────────────────────── */
.section-page-cta {
  background: var(--surface);
}

.page-cta-inner {
  max-width: 680px;
}

.page-cta-inner h2 {
  margin-bottom: 16px;
}

.page-cta-inner p {
  margin-bottom: 0;
  font-size: 17px;
}

.page-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}


/* ─────────────────────────────────────────────
   17. Writing: Posts Grid
───────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.post-card {
  background: var(--bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.25s;
}

.post-card:hover { background: var(--surface); }

.post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-date {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.post-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--white);
  line-height: 1.2;
}

.post-title a {
  transition: color 0.2s;
}

.post-title a:hover { color: var(--accent); }

.post-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
}

.post-read-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.post-read-link:hover { opacity: 0.7; }

/* Empty state */
.posts-empty {
  padding: 80px 0;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.posts-empty .eyebrow {
  margin-bottom: 20px;
}

.posts-empty h2 {
  margin-bottom: 16px;
}


/* ─────────────────────────────────────────────
   18. Contact
───────────────────────────────────────────── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.required { color: var(--accent); }

.optional {
  color: var(--muted-2);
  text-transform: none;
  letter-spacing: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
}

.form-input {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.form-input::placeholder { color: var(--muted-2); }

.form-input:focus {
  border-color: var(--accent-dim);
  background: var(--surface-2);
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
}

.form-error-banner {
  background: rgba(255, 60, 60, 0.08);
  border: 1px solid rgba(255, 60, 60, 0.25);
  border-radius: 4px;
  padding: 14px 18px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #ff6b6b;
  letter-spacing: 0.04em;
}

/* Success state */
.contact-success {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px 0;
}

.contact-success-icon {
  font-family: 'DM Mono', monospace;
  font-size: 24px;
  color: var(--accent);
}

.contact-success h2 {
  font-size: 32px;
}

/* Info sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 4px;
}

.contact-info-block .eyebrow {
  margin-bottom: 8px;
}

.contact-info-link {
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s;
}

.contact-info-link:hover { color: var(--accent); }


/* ─────────────────────────────────────────────
   19. Footer
───────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

/* Brand block */
.footer-brand-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-brand-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.footer-brand-contact a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer-brand-contact a:hover { color: var(--accent); }

.footer-sep { color: var(--border-2); }

/* Links column */
.footer-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 4px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

/* Bottom row */
.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

.footer-disclaimer {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-align: right;
  max-width: 420px;
}


/* ─────────────────────────────────────────────
   21. Animations
───────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%       { transform: scale(1.1); opacity: 0.7; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* Entry animations */
.site-nav                           { animation: fadeDown 0.6s ease both; }
.page-hero .eyebrow                 { animation: fadeUp 0.7s 0.05s ease both; }
.page-hero h1                       { animation: fadeUp 0.7s 0.12s ease both; }
.page-hero .lead                    { animation: fadeUp 0.7s 0.19s ease both; }
.page-hero .hero-ctas               { animation: fadeUp 0.7s 0.26s ease both; }
.section-pillars .pillars           { animation: fadeUp 0.7s 0.1s  ease both; }
.section-about-tease .about-tease-inner { animation: fadeUp 0.7s 0.1s ease both; }


/* ─────────────────────────────────────────────
   22. Responsive — 900px
───────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --pad: 32px; }

  .about-tease-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .bio-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .bio-aside {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: start;
  }

  .bio-image-placeholder {
    margin-bottom: 0;
  }

  .deliverables-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .footer-neulinc-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}


/* ─────────────────────────────────────────────
   23. Responsive — 768px (Nav breakpoint)
───────────────────────────────────────────── */
@media (max-width: 768px) {

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 28px var(--pad) 32px;
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .nav-link {
    font-size: 15px;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-link::after { display: none; }

  .nav-link:last-of-type { border-bottom: none; }

  .nav-cta-item {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 12px;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .pillar:last-child { border-bottom: none; }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────────
   24. Responsive — 640px
───────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --pad: 20px; }

  .page-hero {
    padding: 60px 0 52px;
  }

  .home-hero {
    padding: 68px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .process-step {
    grid-template-columns: 56px 1fr;
  }

  .step-num {
    padding: 28px 16px;
    padding-top: 30px;
    font-size: 10px;
  }

  .step-body {
    padding: 28px 24px;
  }

  .bio-aside {
    grid-template-columns: 1fr;
  }

  .bio-image-placeholder {
    max-width: 240px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    gap: 20px;
  }

  .page-cta-actions {
    flex-direction: column;
    gap: 12px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .footer-links-col {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .footer-disclaimer {
    text-align: left;
    max-width: 100%;
  }

  .newsletter-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}


/* ─────────────────────────────────────────────
   25. New Sections — Copy Phase
───────────────────────────────────────────── */

/* ── Home: two-column text sections ── */
.text-section-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

.text-section-header h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
}

.text-section-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  font-weight: 300;
}

.text-section-body p + p {
  margin-top: 18px;
}

/* ── Home: bottom CTA ── */
.section-home-cta {
  background: var(--surface);
}

.home-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.home-cta-text h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 10px;
}

.home-cta-text p {
  font-size: 15px;
  color: var(--muted);
}

/* ── How I Work: Spectrum ── */
.spectrum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.spectrum-block {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.25s;
}

.spectrum-block:hover { background: var(--surface); }

.spectrum-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent-dim);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}

.spectrum-label {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.spectrum-block p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── About: sub-sections ── */
.about-sub-section {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.about-sub-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.about-list li {
  font-size: 15px;
  color: var(--text);
  font-weight: 300;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 14px;
  line-height: 1.5;
  transition: background 0.2s;
}

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

.about-list li:hover { background: var(--surface); }

.about-list li::before {
  content: '—';
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent-dim);
  flex-shrink: 0;
}

/* Bio detail links */
.bio-details a {
  color: var(--text);
  transition: color 0.2s;
}

.bio-details a:hover { color: var(--accent); }

/* ── Writing: Newsletter CTA ── */
.section-newsletter-cta {
  background: var(--surface);
}

.newsletter-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.newsletter-cta-text .eyebrow {
  margin-bottom: 12px;
}

.newsletter-cta-text h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  margin-bottom: 14px;
}

.newsletter-cta-text p {
  font-size: 15px;
  max-width: 520px;
  line-height: 1.65;
}

/* ── Contact: form note ── */
.form-note {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-top: 4px;
}

.contact-info-text {
  font-size: 14px;
  color: var(--text);
}

/* ── Inline links (body copy) ── */
.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-dim);
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.inline-link:hover { opacity: 0.75; }

/* ── Responsive additions ── */
@media (max-width: 900px) {
  .text-section-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .spectrum-grid {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────────
   26. Theme Toggle & Logo Swap
───────────────────────────────────────────── */

/* Logo visibility */
.logo-light { display: none; }
.logo-dark  { display: block; }

[data-theme="light"] .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* Toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 6px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--accent-dim);
  color: var(--text);
}

/* Sun shown in light mode only, moon shown in dark mode only */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

/* Nav right group (toggle + hamburger) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* On desktop: nav-right sits between logo and links — push links to right */
@media (min-width: 769px) {
  .nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .nav-right {
    order: 3;
    margin-left: 24px;
  }

  .nav-links {
    margin-left: auto;
    margin-right: 0;
  }

  .nav-toggle {
    display: none;
  }
}


/* ─────────────────────────────────────────────
   27. Light Mode Specific Overrides
───────────────────────────────────────────── */

/* Nav background */
[data-theme="light"] .site-nav {
  background: rgba(247, 247, 245, 0.88);
  border-bottom-color: var(--border);
}

[data-theme="light"] .site-nav.scrolled {
  background: rgba(247, 247, 245, 0.97);
}

/* Mobile nav menu */
[data-theme="light"] .nav-links.open {
  background: rgba(247, 247, 245, 0.98);
}

/* Orb — subtle teal glow in light mode */
[data-theme="light"] .orb {
  background: radial-gradient(circle, rgba(17, 116, 139, 0.05) 0%, transparent 70%);
  opacity: 0.6;
}

/* Grid lines — slightly more visible on light bg */
[data-theme="light"] body::after {
  opacity: 0.5;
}

/* Noise overlay — reduced on light */
[data-theme="light"] body::before {
  opacity: 0.2;
}

/* h1 em — lime doesn't read on light backgrounds */
[data-theme="light"] h1 em,
[data-theme="light"] h2 em {
  color: var(--accent);
}

/* Buttons */
[data-theme="light"] .btn-ghost {
  color: var(--text);
}

/* Form inputs */
[data-theme="light"] .form-input {
  background: var(--surface);
  color: var(--text);
}

/* Post cards base bg */
[data-theme="light"] .post-card,
[data-theme="light"] .deliverable,
[data-theme="light"] .spectrum-block,
[data-theme="light"] .pillar {
  background: var(--surface);
}

[data-theme="light"] .post-card:hover,
[data-theme="light"] .deliverable:hover,
[data-theme="light"] .spectrum-block:hover,
[data-theme="light"] .pillar:hover {
  background: var(--surface-2);
}

/* Process steps */
[data-theme="light"] .process-step:hover {
  background: var(--surface-2);
}

/* About list */
[data-theme="light"] .about-list li:hover {
  background: var(--surface-2);
}

/* Bio image placeholder */
[data-theme="light"] .bio-image-placeholder {
  background: var(--surface-2);
}

/* Section CTA + newsletter bg */
[data-theme="light"] .section-page-cta,
[data-theme="light"] .section-home-cta,
[data-theme="light"] .section-newsletter-cta {
  background: var(--surface);
}
