/* ============================================================
   Eric D. Brown — Custom Design System
   Fonts: IBM Plex Mono · Instrument Serif · DM Sans
   Colors: #FAF9F7 body · #996D1B gold · #1A1A1A dark
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #FAF9F7;
  color: #4A4A4A;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; }

/* --- Typography Utilities --- */
.mono { font-family: 'IBM Plex Mono', monospace; }
.serif { font-family: 'Instrument Serif', Georgia, serif; }

/* --- Layout --- */
.container { max-width: 960px; margin: 0 auto; padding: 0 32px; }
.rule { height: 1px; background: #DDD9D2; max-width: 960px; margin: 0 auto; }

/* --- Navigation --- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(250, 249, 247, .88);
  border-bottom: 1px solid #DDD9D2;
}
.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-name {
  font-family: 'Instrument Serif', serif; font-size: 22px;
  color: #1A1A1A; text-decoration: none; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.nav-mark { height: 22px; width: auto; }
.nav-name em { font-style: italic; color: #7A7A7A; vertical-align: baseline; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  color: #4A4A4A; padding: 8px 12px; text-decoration: none; letter-spacing: .2px;
  transition: color .2s;
}
.nav-link:hover { color: #1A1A1A; }
.nav-link.active { color: #1A1A1A; font-weight: 500; }
.nav-btn {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500;
  color: #FAF9F7; background: #1A1A1A; padding: 8px 18px; border-radius: 3px;
  text-decoration: none; margin-left: 6px; letter-spacing: .2px;
  transition: background .2s;
}
.nav-btn:hover { background: #333; }

/* Mobile menu */
.mobile-menu-btn { display: none; cursor: pointer; color: #1A1A1A; }
.menu-close { display: none; }
#mobile-toggle { display: none; }
.hidden { display: none; }

/* --- Labels --- */
.accent-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500;
  color: #996D1B; text-transform: uppercase; letter-spacing: 2.5px;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.accent-label::before {
  content: ''; display: inline-block; width: 24px; height: 1.5px; background: #996D1B;
}
.section-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500;
  color: #7A7A7A; text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 16px;
}

/* --- Hero (shared across pages) --- */
.hero { padding: 160px 0 100px; }
.hero-sm { padding: 150px 0 80px; }
.hero h1,
.page-title {
  font-family: 'Instrument Serif', serif; font-size: 52px; font-weight: 400;
  color: #1A1A1A; line-height: 1.15; letter-spacing: -.5px;
  margin-bottom: 32px; max-width: 680px;
}
.hero-sm h1,
.hero-sm .page-title {
  font-size: 48px; line-height: 1.12; margin-bottom: 24px; max-width: 640px;
}
.hero-body { max-width: 620px; margin-bottom: 48px; }
.hero-body p:first-child { font-size: 19px; color: #2C2C2C; line-height: 1.75; margin-bottom: 16px; }
.hero-body p:last-child { font-size: 17px; color: #4A4A4A; line-height: 1.7; }
.hero-sub {
  font-size: 16.5px; color: #2C2C2C; line-height: 1.75; max-width: 520px; margin-bottom: 36px;
}

/* Credential pills */
.cred-pills-block { display: flex; flex-direction: column; gap: 12px; }
.cred-pills { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cred-pill {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #7A7A7A;
  display: flex; align-items: center; gap: 7px; letter-spacing: .3px;
}
.cred-dot {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: #996D1B; opacity: .6;
}

/* Hero split layout (photo + text) */
.hero-split {
  display: flex; gap: 48px; align-items: center;
}
.hero-text { flex: 1; min-width: 0; }
.hero-photo { flex-shrink: 0; }
.hero-headshot {
  width: 240px; height: 240px; border-radius: 6px; object-fit: cover;
  border: 1px solid #DDD9D2;
}

/* --- Homepage: Thinking/Newsletter Section --- */
.thinking { padding: 80px 0; background: #F3F1ED; }
.thinking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.thinking-right { border-left: 1px solid #DDD9D2; padding-left: 48px; }
.nl-post + .nl-post { margin-top: 28px; padding-top: 28px; border-top: 1px solid #DDD9D2; }
.nl-title {
  font-family: 'Instrument Serif', serif; font-size: 24px; color: #1A1A1A;
  line-height: 1.25; margin-bottom: 10px; letter-spacing: -.2px;
}
.nl-title a { text-decoration: none; color: inherit; }
.nl-title a:hover { color: #996D1B; }
.nl-excerpt { font-size: 15px; color: #4A4A4A; line-height: 1.65; margin-bottom: 16px; }
.nl-link {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 500;
  color: #996D1B; letter-spacing: .3px; text-decoration: none;
}
.nl-link:hover { text-decoration: underline; }
.quote {
  display: block; text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-size: 18px; font-style: italic;
  color: #2C2C2C; line-height: 1.55; padding-left: 18px; margin-bottom: 24px;
  transition: color .2s;
}
.quote:hover { color: #996D1B; }
.quote-gold { border-left: 2px solid #996D1B; }
.quote-gray { border-left: 2px solid #DDD9D2; color: #4A4A4A; }
.quote-gray:hover { color: #996D1B; }

/* --- Homepage: Services Bridge --- */
.svc-bridge { padding: 80px 0; }
.svc-intro {
  font-size: 18px; color: #2C2C2C; line-height: 1.7;
  max-width: 580px; margin-bottom: 40px;
}
.svc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid #DDD9D2; border-radius: 4px; overflow: hidden;
}
.svc-card { padding: 32px; background: #FAF9F7; transition: background .25s; }
.svc-card:hover { background: #F3F1ED; }
.svc-card:nth-child(1), .svc-card:nth-child(2) { border-bottom: 1px solid #DDD9D2; }
.svc-card:nth-child(1), .svc-card:nth-child(3) { border-right: 1px solid #DDD9D2; }
.svc-card .svc-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
  color: #996D1B; letter-spacing: 1.5px; margin-bottom: 10px;
}
.svc-card .svc-q {
  font-family: 'Instrument Serif', serif; font-size: 24px; font-style: italic;
  color: #1A1A1A; line-height: 1.25; margin-bottom: 6px;
}
.svc-card .svc-sub {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  color: #4A4A4A;
}
.svc-footer {
  margin-top: 28px; display: flex; gap: 20px; align-items: center;
}
.svc-footer a {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 500;
  color: #996D1B; letter-spacing: .3px; text-decoration: none;
}
.svc-footer a:hover { text-decoration: underline; }
.svc-footer span {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #A0A0A0;
}

/* --- Homepage: Proof Section --- */
.proof { padding: 80px 0; background: #F3F1ED; }
.proof-grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start;
}
.proof-item {
  padding: 20px 0; border-bottom: 1px solid #DDD9D2;
  display: flex; gap: 16px; align-items: baseline;
}
.proof-list .proof-item:last-child { border-bottom: none; }
.proof-arrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: #996D1B;
  font-weight: 600; flex-shrink: 0; line-height: 1.65;
}
.proof-text { font-size: 15px; color: #2C2C2C; line-height: 1.65; }
.proof-stats {
  position: sticky; top: 100px;
  background: #fff; border: 1px solid #DDD9D2; border-radius: 4px;
  padding: 8px 24px;
}
.proof-stat {
  padding: 20px 0; border-bottom: 1px solid #EBE8E3;
}
.proof-stat:last-child { border-bottom: none; }
.proof-stat-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 28px; font-weight: 700;
  color: #1A1A1A; line-height: 1.2; margin-bottom: 4px;
}
.proof-stat-desc {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 400;
  color: #4A4A4A; line-height: 1.5;
}

/* --- CTA Section --- */
.cta { background: #1A1A1A; padding: 88px 0; text-align: center; }
.cta h2 {
  font-family: 'Instrument Serif', serif; font-size: 36px; font-weight: 400;
  color: #fff; line-height: 1.15; margin-bottom: 16px; letter-spacing: -.3px;
  white-space: pre-line;
}
.cta p {
  font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.65;
  max-width: 420px; margin: 0 auto 32px;
}
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,.25); margin-top: 20px;
}

/* --- Buttons --- */
.btn-gold {
  display: inline-flex; padding: 14px 28px; background: #FF6600; color: #fff;
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 500;
  border-radius: 3px; letter-spacing: .3px; text-decoration: none;
  transition: background .2s;
}
.btn-gold:hover { background: #E55C00; }
.btn-outline-white {
  display: inline-flex; padding: 14px 28px; background: transparent;
  color: rgba(255,255,255,.85); font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px; font-weight: 500; border: 1px solid rgba(255,255,255,.35);
  border-radius: 3px; letter-spacing: .3px; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-dark {
  display: inline-flex; padding: 14px 28px; background: #1A1A1A; color: #FAF9F7;
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 500;
  border-radius: 3px; letter-spacing: .3px; text-decoration: none; border: none;
  transition: background .2s;
}
.btn-dark:hover { background: #333; }
.svc-cta-btn {
  display: inline-flex; padding: 12px 24px; background: #1A1A1A; color: #FAF9F7;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500;
  border-radius: 3px; letter-spacing: .3px; text-decoration: none; margin-top: 20px;
  transition: background .2s;
}
.svc-cta-btn:hover { background: #333; }

/* --- Services Page: Accordion --- */
.svc-row { border-bottom: 1px solid #DDD9D2; }
.svc-header {
  display: grid; grid-template-columns: 60px 1fr 40px;
  align-items: center; padding: 32px 0; cursor: pointer; gap: 16px;
}
.svc-header .svc-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
  color: #996D1B; letter-spacing: 1.5px;
}
.svc-header .svc-q {
  font-family: 'Instrument Serif', serif; font-size: 28px; font-style: italic;
  color: #1A1A1A; line-height: 1.25; margin-bottom: 8px;
}
.svc-title {
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  color: #2C2C2C;
}
.svc-toggle {
  text-align: right; font-family: 'Instrument Serif', serif; font-size: 24px;
  color: #A0A0A0; transition: transform .3s;
  user-select: none;
}
.svc-row.open .svc-toggle { transform: rotate(45deg); }
.svc-detail {
  display: grid; grid-template-columns: 60px 1fr 1fr; gap: 40px;
  padding-bottom: 0; max-height: 0; overflow: hidden;
  transition: max-height .45s cubic-bezier(.22,1,.36,1), padding-bottom .45s cubic-bezier(.22,1,.36,1);
}
.svc-row.open .svc-detail { max-height: 800px; padding-bottom: 40px; }
.svc-detail-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600;
  color: #1A1A1A; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.svc-detail p { font-size: 15px; color: #2C2C2C; line-height: 1.7; margin-bottom: 24px; }
.del-item { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.del-arrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: #996D1B;
  font-weight: 600; flex-shrink: 0;
}
.del-text { font-size: 15px; color: #2C2C2C; line-height: 1.6; }
.sig-item { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.sig-dash { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #A0A0A0; }
.sig-text { font-size: 15px; color: #4A4A4A; line-height: 1.6; }

/* --- Services Page: Fractional --- */
.fractional { padding: 80px 0; background: #F3F1ED; }
.fractional-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.fractional h2 {
  font-family: 'Instrument Serif', serif; font-size: 28px; font-weight: 400;
  color: #1A1A1A; line-height: 1.2; margin-bottom: 16px;
}
.fractional-card {
  background: #fff; border: 1px solid #DDD9D2; border-radius: 4px; padding: 32px 28px;
}
.fractional-price {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid #DDD9D2;
}
.fractional-price-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 15px; font-weight: 500; color: #1A1A1A;
}
.fractional-price-note {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #7A7A7A; margin-top: 4px;
}

/* --- About Page --- */
.about-headshot {
  width: 100%; max-width: 280px; border-radius: 6px; object-fit: cover;
  border: 1px solid #DDD9D2; margin-bottom: 32px;
}
.about-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start;
}
.about-story { font-size: 15.5px; color: #2C2C2C; line-height: 1.8; }
.about-story p + p { margin-top: 18px; }

/* Timeline */
.timeline-item {
  padding: 18px 0; border-bottom: 1px solid #DDD9D2; display: flex; gap: 16px;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
  color: #996D1B; letter-spacing: .5px; min-width: 50px; padding-top: 2px;
}
.timeline-desc { font-size: 15px; color: #2C2C2C; line-height: 1.55; }

/* Credentials */
.credentials { padding: 80px 0; background: #F3F1ED; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 8px; }
.cred-card {
  background: #fff; border: 1px solid #DDD9D2; border-radius: 4px; padding: 32px;
}
.cred-card-title {
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600;
  color: #1A1A1A; margin-bottom: 10px;
}
.cred-card-desc {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 400;
  color: #4A4A4A; line-height: 1.65;
}

/* How I Work + What to Expect */
.how-expect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.how-i-work { margin-top: 8px; }
.how-item { padding: 22px 0; border-bottom: 1px solid #DDD9D2; }
.how-item:last-child { border-bottom: none; }
.how-item p { font-size: 15px; color: #2C2C2C; line-height: 1.7; }
.how-item strong { color: #1A1A1A; font-weight: 600; }
.expect-card {
  background: #fff; border: 1px solid #DDD9D2; border-radius: 4px; padding: 32px;
}
.expect-card .section-label { margin-bottom: 8px; }
.expect-items .how-item p { font-size: 14.5px; }

/* --- Contact Page --- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
}
.contact-info p { font-size: 15px; color: #2C2C2C; line-height: 1.7; margin-bottom: 14px; }
.contact-details { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.contact-detail { display: flex; gap: 14px; }
.contact-detail-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500;
  color: #996D1B; text-transform: uppercase; letter-spacing: 1.5px;
  min-width: 60px; padding-top: 3px;
}
.contact-detail-value { font-size: 15px; line-height: 1.5; }
.contact-detail-value a { color: #996D1B; text-decoration: none; }
.contact-detail-value a:hover { color: #7A570F; text-decoration: underline; }

/* Form */
.form-group { margin-bottom: 18px; }
.form-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500;
  color: #1A1A1A; text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 6px; display: block;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: 12px 14px; background: #fff;
  border: 1px solid #CCC7BE; border-radius: 3px; color: #1A1A1A;
  font-family: 'DM Sans', sans-serif; font-size: 15px; outline: none;
  transition: border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #996D1B;
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-submit {
  padding: 14px 28px; background: #1A1A1A; color: #FAF9F7;
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 500;
  border-radius: 3px; border: none; cursor: pointer; letter-spacing: .3px;
  transition: background .2s;
}
.form-submit:hover { background: #333; }

/* --- Photography Page --- */
.photo-hero { padding: 160px 0 48px; background: #FAF9F7; }
.photo-hero-headline {
  font-family: 'Instrument Serif', serif; font-size: 42px; color: #1A1A1A;
  line-height: 1.15; letter-spacing: -.5px; margin: 16px 0 20px;
}
.photo-hero-desc {
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: #4A4A4A;
  line-height: 1.65; max-width: 600px;
}
.photo-hero-link {
  margin-top: 20px;
}
.photo-hero-link a {
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: #996D1B; text-decoration: none; font-weight: 500;
}
.photo-hero-link a:hover { text-decoration: underline; }
.photo-grid-section { padding: 0 0 80px; }
.photo-grid {
  columns: 3;
  column-gap: 12px;
  margin-top: 48px;
}
.photo-grid img {
  width: 100%; height: auto; display: block;
  margin-bottom: 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .3s ease, filter .3s ease;
}
.photo-grid img:hover {
  transform: scale(1.02); filter: brightness(.93);
}

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox-overlay.lightbox-open {
  opacity: 1; visibility: visible;
}
.lightbox-img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff;
  font-size: 36px; cursor: pointer; line-height: 1;
  opacity: .7; transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff;
  font-size: 48px; cursor: pointer; line-height: 1;
  opacity: .5; transition: opacity .2s;
  padding: 20px;
}
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (max-width: 768px) {
  .photo-hero { padding: 100px 0 28px; }
  .photo-hero-headline { font-size: 28px; }
  .photo-hero-desc { font-size: 14px; }
  .photo-hero-link a { font-size: 14px; }
  .photo-grid { columns: 2; column-gap: 8px; margin-top: 32px; }
  .photo-grid img { margin-bottom: 8px; }
  .photo-grid-section { padding: 0 0 48px; }
  .lightbox-prev, .lightbox-next { font-size: 32px; padding: 12px; }
}
@media (max-width: 480px) {
  .photo-hero { padding: 80px 0 24px; }
  .photo-hero-headline { font-size: 24px; }
  .photo-grid { columns: 1; }
}

/* --- Newsletter Hero (two-column) --- */
.newsletter-hero { padding: 160px 0 100px; background: #FAF9F7; }
.newsletter-hero-grid {
  display: grid; grid-template-columns: 55% 1fr; gap: 60px; align-items: center;
}
.newsletter-hero-left {}
.newsletter-hero-headline {
  font-family: 'Instrument Serif', serif; font-size: 42px; color: #1A1A1A;
  line-height: 1.15; letter-spacing: -.5px; margin: 16px 0 20px;
}
.newsletter-hero-desc {
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: #4A4A4A;
  line-height: 1.65; max-width: 480px;
}
.newsletter-hero-right {
  display: flex; flex-direction: column; align-items: flex-start;
}
.newsletter-hero-form {
  flex-direction: column; max-width: 100%; width: 100%;
}
.newsletter-hero-form .subscribe-input { width: 100%; margin-bottom: 10px; }
.newsletter-hero-form .subscribe-btn { width: 100%; }

@media (max-width: 768px) {
  .newsletter-hero { padding: 100px 0 48px; }
  .newsletter-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-hero-headline { font-size: 28px; }
  .newsletter-hero-desc { max-width: 100%; font-size: 14px; }
  .newsletter-hero-right { align-items: stretch; }
}
@media (max-width: 480px) {
  .newsletter-hero { padding: 80px 0 36px; }
  .newsletter-hero-headline { font-size: 24px; }
  .newsletter-hero-grid { gap: 20px; }
}

/* --- Newsletter Page --- */
.subscribe-form { display: flex; gap: 8px; max-width: 440px; }
.subscribe-input {
  flex: 1; padding: 13px 16px; background: #fff; border: 1px solid #CCC7BE;
  border-radius: 3px; color: #1A1A1A; font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; outline: none;
}
.subscribe-input:focus { border-color: #996D1B; }
.subscribe-btn {
  padding: 13px 24px; background: #1A1A1A; border: none; border-radius: 3px;
  color: #FAF9F7; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .2s;
}
.subscribe-btn:hover { background: #333; }
.subscribe-note {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  color: #A0A0A0; margin-top: 10px; letter-spacing: .2px;
}

/* Dark subscribe variant (in CTA) */
.subscribe-dark .subscribe-input {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15);
  color: #fff;
}
.subscribe-dark .subscribe-input::placeholder { color: rgba(255,255,255,.35); }
.subscribe-dark .subscribe-btn { background: #FF6600; }
.subscribe-dark .subscribe-btn:hover { background: #E55C00; }

/* Inline subscribe block */
.subscribe-inline { padding: 60px 0; text-align: center; background: #FAF9F7; }
.subscribe-inline.subscribe-warm { background: #F3F1ED; }
.subscribe-inline-text {
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: #2C2C2C;
  margin-bottom: 20px;
}

/* Issue listing */
.issue-list { }
.issue-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 20px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid #DDD9D2;
  text-decoration: none; color: inherit;
}
.issue-item:last-child { border-bottom: none; }
.issue-item:hover .issue-title { color: #996D1B; }
.issue-thumb {
  width: 80px; height: 80px; border-radius: 4px; object-fit: cover;
  background: #F3F1ED; flex-shrink: 0;
}
.issue-thumb-placeholder {
  width: 80px; height: 80px; border-radius: 4px; background: #F3F1ED;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.issue-thumb-placeholder span {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  color: #A0A0A0; letter-spacing: 1px; text-transform: uppercase;
}
.issue-date {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: #7A7A7A; letter-spacing: .3px; margin-bottom: 4px;
}
.issue-title {
  font-family: 'Instrument Serif', serif; font-size: 22px;
  color: #1A1A1A; line-height: 1.25; margin-bottom: 8px; letter-spacing: -.2px;
  transition: color .2s;
}
.issue-excerpt {
  font-size: 15px; color: #4A4A4A; line-height: 1.65; max-width: 500px;
}
.view-all {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500;
  color: #996D1B; letter-spacing: .3px; text-decoration: none; margin-top: 32px;
  display: inline-block;
}
.view-all:hover { text-decoration: underline; }

/* What to expect */
.expect { padding: 80px 0; background: #F3F1ED; }
.expect-content { max-width: 520px; }
.expect-content > p { font-size: 15px; color: #2C2C2C; line-height: 1.75; margin-bottom: 20px; }
.expect-item { display: flex; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.expect-arrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: #996D1B; font-weight: 600;
}
.expect-text { font-size: 15px; color: #2C2C2C; line-height: 1.6; }

/* --- Footer --- */
.site-footer { border-top: 1px solid #DDD9D2; padding: 28px 0; }
.footer-inner {
  max-width: 960px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #7A7A7A;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: #7A7A7A; text-decoration: none;
}
.footer-links a:hover { color: #1A1A1A; }

/* --- Prose: Markdown Content (single posts) --- */
.prose { max-width: 680px; }
.prose h1 {
  font-family: 'Instrument Serif', serif; font-size: 38px; font-weight: 400;
  color: #1A1A1A; line-height: 1.15; letter-spacing: -.3px; margin-bottom: 24px;
}
.prose h2 {
  font-family: 'Instrument Serif', serif; font-size: 28px; font-weight: 400;
  color: #1A1A1A; line-height: 1.2; margin-top: 48px; margin-bottom: 16px;
}
.prose h3 {
  font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 600;
  color: #1A1A1A; margin-top: 36px; margin-bottom: 12px;
}
.prose h4 {
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600;
  color: #1A1A1A; margin-top: 28px; margin-bottom: 8px;
}
.prose p { font-size: 16px; color: #2C2C2C; line-height: 1.8; margin-bottom: 20px; }
.prose a { color: #996D1B; text-decoration: none; }
.prose a:hover { color: #7A570F; text-decoration: underline; }
.prose ul, .prose ol { margin-bottom: 20px; padding-left: 24px; }
.prose li { font-size: 16px; color: #2C2C2C; line-height: 1.8; margin-bottom: 6px; }
.prose blockquote {
  border-left: 2px solid #996D1B; padding-left: 20px; margin: 28px 0;
  font-family: 'DM Sans', sans-serif; font-size: 15.5px; font-style: italic;
  color: #2C2C2C; line-height: 1.6;
}
.prose code {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px;
  background: #F3F1ED; padding: 2px 6px; border-radius: 3px;
}
.prose pre {
  background: #1A1A1A; color: #FAF9F7; padding: 20px 24px; border-radius: 4px;
  overflow-x: auto; margin: 28px 0;
}
.prose pre code { background: transparent; padding: 0; font-size: 13px; }
.prose img { border-radius: 4px; margin: 28px 0; }
.prose hr { border: none; height: 1px; background: #DDD9D2; margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.prose th {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; color: #7A7A7A;
  text-align: left; padding: 10px 12px; border-bottom: 2px solid #DDD9D2;
}
.prose td {
  font-size: 15px; color: #2C2C2C; padding: 10px 12px;
  border-bottom: 1px solid #DDD9D2;
}

/* Post metadata */
.post-meta {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: #7A7A7A; letter-spacing: .3px; margin-bottom: 8px;
}
.post-categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.post-cat {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500;
  color: #996D1B; letter-spacing: .5px; text-transform: uppercase;
  background: rgba(153,109,27,.07); border: 1px solid rgba(153,109,27,.14);
  padding: 4px 10px; border-radius: 3px; text-decoration: none;
}
.post-cat:hover { background: rgba(153,109,27,.14); }

/* --- Pagination --- */
.pagination {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  padding: 60px 0 80px;
}
.pagination a, .pagination span {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  padding: 8px 14px; border-radius: 3px; text-decoration: none;
}
.pagination a { color: #4A4A4A; border: 1px solid #DDD9D2; }
.pagination a:hover { background: #F3F1ED; }
.pagination .active {
  background: #1A1A1A; color: #FAF9F7; border: 1px solid #1A1A1A;
}
.pagination .pag-dots {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: #7A7A7A; padding: 8px 4px; user-select: none;
}

/* --- Subscribe Popup --- */
.popup-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.popup-overlay.popup-visible { display: flex; }
.popup-card {
  background: #fff; border-radius: 6px; padding: 40px 36px 36px;
  max-width: 420px; width: 90%; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.popup-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 24px; color: #999;
  cursor: pointer; line-height: 1; padding: 4px;
}
.popup-close:hover { color: #1A1A1A; }
.popup-title {
  font-family: 'Instrument Serif', serif; font-size: 24px;
  color: #1A1A1A; margin-bottom: 8px; line-height: 1.2;
}
.popup-desc {
  font-size: 14px; color: #4A4A4A; line-height: 1.6; margin-bottom: 20px;
}
.popup-card .subscribe-form {
  flex-direction: column; gap: 10px;
}
.popup-card .subscribe-btn {
  width: 100%; justify-content: center;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero { padding: 120px 0 60px; }
  .hero-sm { padding: 120px 0 60px; }
  .hero h1, .page-title { font-size: 32px; }
  .hero-sm h1, .hero-sm .page-title { font-size: 30px; }
  .cta h2 { font-size: 28px; }

  /* Nav mobile */
  .mobile-menu-btn { display: flex; align-items: center; padding: 8px; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 56px; left: 0; right: 0; background: rgba(250,249,247,.96);
    backdrop-filter: blur(14px); border-bottom: 1px solid #DDD9D2;
    padding: 16px 32px; gap: 4px;
  }
  #mobile-toggle:checked ~ .nav-links { display: flex; }
  #mobile-toggle:checked ~ .mobile-menu-btn .menu-open { display: none; }
  #mobile-toggle:checked ~ .mobile-menu-btn .menu-close { display: block; }
  .nav-link { padding: 10px 0; }
  .nav-btn { margin-left: 0; margin-top: 8px; text-align: center; display: block; }

  /* Hero split → stacked on mobile */
  .hero-split { flex-direction: column; gap: 32px; align-items: flex-start; }
  .hero-photo { order: -1; }
  .hero-headshot { width: 160px; height: 160px; }

  /* Grids → single column */
  .thinking-grid { grid-template-columns: 1fr; }
  .thinking-right { border-left: none; padding-left: 0; border-top: 1px solid #DDD9D2; padding-top: 32px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card:nth-child(1), .svc-card:nth-child(3) { border-right: none; }
  .svc-card:nth-child(2) { border-bottom: 1px solid #DDD9D2; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .fractional-grid { grid-template-columns: 1fr; gap: 32px; }
  .how-expect-grid { grid-template-columns: 1fr; gap: 32px; }
  .cred-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; gap: 32px; }
  .proof-stats { position: static; }

  /* Service accordion */
  .svc-header { grid-template-columns: 40px 1fr 40px; }
  .svc-detail { grid-template-columns: 1fr; gap: 24px; }
  .svc-detail > div:first-child { display: none; }

  /* Issue listing */
  .issue-item { grid-template-columns: 60px 1fr; gap: 14px; }
  .issue-thumb, .issue-thumb-placeholder { width: 60px; height: 60px; }
  .issue-title { font-size: 20px; }

  /* Pagination */
  .pagination { flex-wrap: wrap; }

  /* Subscribe form */
  .subscribe-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero h1, .page-title { font-size: 28px; }
  .hero-sm h1, .hero-sm .page-title { font-size: 26px; }
  .cred-pills { flex-direction: column; gap: 8px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .btn-gold, .btn-outline-white { width: 100%; justify-content: center; }
}
