/* ============================================================
   Lewis Lab — Shared Stylesheet
   styles.css
   Root-level pages: <link rel="stylesheet" href="styles.css">
   Post pages (/posts/): <link rel="stylesheet" href="../styles.css">
   ============================================================ */


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


/* ── TOKENS ── */
:root {
  --ink:       #0D0D0D;
  --moss:      #527D45;
  --prussian:  #1E3A4A;
  --parchment: #F5F4F0;
  --stone:     #6B6B64;
  --white:     #FFFFFF;
  --display:   "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:      "Host Grotesk", sans-serif;
  --wordmark:  "Exo 2", sans-serif;
  --pad:       3.25rem;
}


/* ── BASE ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--parchment);
  border-bottom: 1px solid rgba(13,13,13,0.08);
  padding: 0.9rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-logo-divider {
  width: 1px;
  height: 28px;
  background: var(--ink);
  margin: 0 16px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--wordmark);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  transform: scaleX(1);
}

.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Desktop: About is visible */
.mobile-hide { display: inline; }


/* ── FOOTER ── */
footer {
  padding: 1.3rem var(--pad);
  border-top: 1px solid rgba(13,13,13,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-mark {
  height: 24px;
  width: auto;
  display: block;
}

.footer-logo-divider {
  width: 1px;
  height: 18px;
  background: var(--stone);
  margin: 0 12px;
}

.footer-logo-text {
  font-family: var(--wordmark);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

footer span {
  font-size: 0.7rem;
  color: var(--stone);
  letter-spacing: 0.08em;
}


/* ── SECTION / LAYOUT ── */
.section {
  padding: 2.75rem var(--pad);
}

.rule {
  border: none;
  border-top: 1px solid rgba(13,13,13,0.1);
  margin: 0 var(--pad);
}


/* ── TYPOGRAPHY ── */
.section-label {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.25rem;
}


/* ── BUTTONS / CTA ── */
.hero-cta,
.page-hero-cta,
.post-cta {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 0.875rem 2rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.hero-cta:hover,
.hero-cta:focus,
.hero-cta:active,
.page-hero-cta:hover,
.page-hero-cta:focus,
.post-cta:hover,
.post-cta:focus,
.post-cta:active {
  background: var(--moss);
}

.post-cta {
  margin-top: 0.5rem;
}

.contact-form button {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  border: none;
  padding: 0.875rem 2rem;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
  white-space: nowrap;
}

.contact-form button:hover,
.contact-form button:focus,
.contact-form button:active {
  background: var(--moss);
}


/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.75rem;
  align-items: start;
}

.contact-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.contact-sub {
  font-size: 1.05rem;
  color: var(--stone);
  line-height: 1.7;
  margin-top: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.35rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(13,13,13,0.15);
  padding: 0.9rem 1.1rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
}

.contact-form textarea {
  min-height: 120px;
}


/* ── REVEAL / SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-piece {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.service-card.is-visible .reveal-piece {
  opacity: 1;
  transform: translateY(0);
}

.service-card.is-visible .reveal-piece:nth-child(1) { transition-delay: 0.08s; }
.service-card.is-visible .reveal-piece:nth-child(2) { transition-delay: 0.18s; }
.service-card.is-visible .reveal-piece:nth-child(3) { transition-delay: 0.28s; }
.service-card.is-visible .reveal-piece:nth-child(4) { transition-delay: 0.38s; }

.services-grid .service-card:nth-child(2) { transition-delay: 0.10s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.20s; }

.contact-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.services-intro-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.services-intro-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── INTERNAL PAGE LAYOUT SYSTEM ── */
.internal-page main {
  padding-top: 4.5rem;
}

.ll-container {
  max-width: 72rem;
  width: calc(100% - 2 * var(--pad));
  margin-left: auto;
  margin-right: auto;
}

.ll-page-hero {
  padding: 3.5rem 0 3rem;
  max-width: 56rem;
}

.ll-page-label {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.25rem;
}

.ll-page-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}

.ll-page-sub {
  font-size: 1.1rem;
  color: var(--stone);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.ll-page-rule {
  border: none;
  border-top: 1px solid rgba(13,13,13,0.1);
  max-width: 72rem;
  width: calc(100% - 2 * var(--pad));
  margin-left: auto;
  margin-right: auto;
}

.ll-section {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .ll-page-hero {
    padding: 3rem 0 2.5rem;
  }
  .ll-section {
    padding: 2rem 0 4rem;
  }
}

/* ── BLOG LISTING ── */
.page-header {
  padding: 7rem var(--pad) 3rem;
  border-bottom: 1px solid rgba(13,13,13,0.1);
}

.page-header .section-label {
  font-size: 0.78rem;
  margin-bottom: 1.25rem;
}

.page-header h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 24ch;
  margin-bottom: 0;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--stone);
  line-height: 1.65;
  max-width: 52ch;
}

.blog-section {
  padding: 3.5rem var(--pad) 5rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(13,13,13,0.08);
}

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

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

.post-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  border-top: 2px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.post-card-inner:hover {
  border-color: var(--moss);
  background: var(--white);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-meta time {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

.post-category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  background: rgba(82,125,69,0.1);
  padding: 0.2rem 0.55rem;
}

.post-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.post-excerpt {
  font-size: 0.95rem;
  color: var(--stone);
  line-height: 1.65;
  flex: 1;
}

.post-read-more {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 0.5rem;
}


/* ── BLOG POST TEMPLATE ── */
.post-header {
  padding: 7rem var(--pad) 3rem;
  max-width: 780px;
  margin: 0 auto;
}

/* .post-meta defined above (shared with listing) */

.post-header .post-meta {
  margin-bottom: 1.5rem;
}

/* post-title in post context (larger than listing context) */
.post-header .post-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.post-dek {
  font-size: 1.2rem;
  color: var(--stone);
  line-height: 1.6;
  max-width: 58ch;
}

.post-header .post-author {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--stone);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
}

.post-rule {
  border: none;
  border-top: 1px solid rgba(13,13,13,0.1);
  max-width: 780px;
  margin: 0 auto;
}

.post-body {
  padding: 3rem var(--pad) 5rem;
  max-width: 780px;
  margin: 0 auto;
}

.post-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.post-body p:last-child { margin-bottom: 0; }

.post-body strong {
  font-weight: 700;
  color: var(--ink);
}

.post-body h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}

.post-body a:not(.post-cta) {
  color: var(--moss);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.post-body a:not(.post-cta):hover,
.post-body a:not(.post-cta):focus {
  color: var(--prussian);
  text-decoration-color: var(--prussian);
}

.post-body a[target="_blank"]:not(.post-cta) {
  color: var(--ink);
  text-decoration-color: rgba(13, 13, 13, 0.45);
}

.post-body a[target="_blank"]:not(.post-cta):hover,
.post-body a[target="_blank"]:not(.post-cta):focus {
  color: var(--moss);
  text-decoration-color: var(--moss);
}

.post-body .post-cta {
  color: var(--white);
  text-decoration: none;
}

.post-body .post-cta:hover,
.post-body .post-cta:focus,
.post-body .post-cta:active {
  color: var(--white);
  text-decoration: none;
}

.stat-callout {
  border-left: 3px solid var(--moss);
  padding: 1.25rem 1.5rem;
  margin: 2.25rem 0;
  background: rgba(82,125,69,0.06);
}

.stat-callout p {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 0;
}

.stat-callout span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.4rem;
}

.stat-callout .callout-source {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--stone);
}

.diagnostic-box {
  border: 1.5px solid rgba(13,13,13,0.12);
  padding: 2rem;
  margin: 2.5rem 0;
  background: var(--white);
}

.diagnostic-box p.box-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
}

.diagnostic-box ol {
  list-style: none;
  counter-reset: diag;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.diagnostic-box ol li {
  counter-increment: diag;
  display: flex;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}

.diagnostic-box ol li::before {
  content: counter(diag);
  font-family: var(--wordmark);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--stone);
  flex-shrink: 0;
  width: 1.5rem;
  padding-top: 0.05rem;
}

.source-note {
  border-top: 1px solid rgba(13,13,13,0.12);
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.source-note p.source-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.9rem;
}

.source-note ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  list-style: none;
}

.source-note li {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--stone);
}

.source-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.source-note a:hover { color: var(--moss); }

.back-link {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  padding: 2rem var(--pad) 0;
  transition: color 0.2s;
}

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


/* ── RESPONSIVE: 768px ── */
@media (max-width: 768px) {
  :root { --pad: 1.5rem; }

  nav {
    padding: 0.85rem 1.2rem;
  }

  .nav-logo-mark  { height: 28px; }

  .nav-logo-text  {
    font-size: 14px;
    letter-spacing: 0.15em;
  }

  .nav-logo-divider {
    margin: 0 10px;
    height: 22px;
  }

  .nav-links {
    gap: 0.7rem;
  }

  .nav-links a {
    font-size: 0.64rem;
    letter-spacing: 0.07em;
  }

  .nav-links a::after {
    display: none;
  }

  footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.8rem 1rem;
  }

  .page-header {
    padding: 7.5rem var(--pad) 2rem;
  }

  .blog-section {
    padding: 0 0 4rem;
  }

  .post-grid {
    display: block;
    background: none;
    gap: 0;
    border-top: 1px solid rgba(13,13,13,0.1);
  }

  .post-card {
    background: none;
    border-bottom: 1px solid rgba(13,13,13,0.1);
  }

  .post-card-inner {
    padding: 1.5rem var(--pad);
    border-top: none;
    gap: 0.6rem;
  }

  .post-card-inner:hover {
    background: none;
    border-color: transparent;
  }

  .post-read-more {
    color: var(--moss);
  }

  .post-header {
    padding: 5.5rem var(--pad) 2.25rem;
  }

  .post-body {
    padding: 2.5rem var(--pad) 4rem;
  }

  .post-body p { font-size: 1rem; }

  .stat-callout p { font-size: 1.15rem; }
}


/* ── RESPONSIVE: 640px ── */
@media (max-width: 640px) {
  /* Hide About on mobile */
  .mobile-hide {
    display: none;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.72rem;
    padding: 0.85rem 0.95rem 0.75rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.55rem;
  }

  .nav-links a {
    font-size: 0.62rem;
    letter-spacing: 0.065em;
    white-space: nowrap;
  }
}


/* ── RESPONSIVE: 430px ── */
@media (max-width: 430px) {
  nav {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .nav-logo-mark {
    height: 27px;
  }

  .nav-logo-divider {
    margin: 0 8px;
    height: 21px;
  }

  .nav-logo-text {
    font-size: 13px;
    letter-spacing: 0.13em;
  }

  .nav-links {
    gap: 0.68rem;
  }

  .nav-links a {
    font-size: 0.63rem;
    letter-spacing: 0.06em;
  }
}


/* ════════════════════════════════════════════════
   INDEX PAGE — homepage-specific styles
   ════════════════════════════════════════════════ */


.hero {
  padding: 7rem var(--pad) 2.75rem;
  min-height: min(620px, 66vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-headline {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 5.35rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 14.5ch;
  margin: 0 auto 1.25rem;
}

.hero-headline .desktop-line { display: block; }
.hero-headline .mobile-line  { display: none; }

.hero-sub {
  font-size: 1.15rem;
  color: var(--stone);
  line-height: 1.65;
  max-width: 56ch;
  margin: 0 auto 1.75rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.75rem;
  align-items: start;
}

.about-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.about-body {
  font-size: 1.08rem;
  color: var(--stone);
  line-height: 1.75;
}

.about-body p + p { margin-top: 1.25rem; }

.services {
  background: var(--prussian);
  color: var(--white);
}

.services .section-label {
  color: rgba(255,255,255,0.53);
}

.services-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  max-width: 14ch;
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--prussian);
  border-top: 2px solid rgba(82,125,69,0.72);
  padding: 2.1rem 1.8rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  background: #223F50;
  border-color: #527D45;
}

.service-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.86);
  flex: 0 0 48px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-2px);
  color: var(--white);
}

.service-icon svg {
  width: 48px;
  height: 48px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.service-num {
  font-family: var(--wordmark);
  font-size: 2.25rem;
  font-weight: 500;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  margin-bottom: 0;
}

.service-method {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
  margin-bottom: 0.55rem;
}

.service-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--white);
}

.service-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* Mobile overrides for index-specific elements */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 5.25rem var(--pad) 2.25rem;
    text-align: left;
    align-items: flex-start;
  }

  .hero-headline {
    font-size: clamp(2.35rem, 9.8vw, 3.15rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
    max-width: 12.5ch;
    margin: 0 0 1.05rem;
  }

  .hero-headline .desktop-line { display: none; }
  .hero-headline .mobile-line  { display: block; }
  .hero-headline .mobile-line + .mobile-line { margin-top: 0; }
  .hero-headline .hero-question { margin-top: 0.18em; }

  .hero-sub {
    max-width: 100%;
    font-size: 1.02rem;
    line-height: 1.52;
    margin: 0 0 1.4rem;
  }

  .hero-cta {
    display: block;
    width: min(100%, 22rem);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .section { padding: 2rem var(--pad) 2.25rem; }

  #about.section { padding-top: 1.7rem; }

  .section-label { margin-bottom: 0.75rem; }

  .about-grid { grid-template-columns: 1fr; gap: 1.25rem; }

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

  .service-card { padding: 2rem 1.5rem; }

  .service-topline { margin-bottom: 0.9rem; }

  .service-icon,
  .service-icon svg {
    width: 42px;
    height: 42px;
  }

  .service-desc { font-size: 0.98rem; line-height: 1.6; }

  .about-heading,
  .services-heading,
  .contact-heading {
    font-size: clamp(2.05rem, 8.4vw, 2.8rem);
    line-height: 1.07;
    letter-spacing: -0.04em;
  }

  .about-body { font-size: 1rem; line-height: 1.6; }
}

@media (max-width: 640px) {
  .hero { padding-top: 7.25rem; }
}

@media (max-width: 430px) {
  .hero {
    padding-top: 7.25rem;
    padding-bottom: 2rem;
  }
}

.diagnostic-feature {
  padding: 3.25rem var(--pad);
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.diagnostic-feature-inner {
  max-width: 48rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.diagnostic-feature .section-label {
  color: rgba(255,255,255,0.75);
}

.diagnostic-feature .section-label::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--moss);
  margin-right: 0.65rem;
  vertical-align: 0.02em;
}

.diagnostic-feature-heading {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 0;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.diagnostic-feature-body {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.diagnostic-feature-cta-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.diagnostic-feature .hero-cta {
  background: var(--white);
  color: var(--ink);
}

.diagnostic-feature .hero-cta:hover,
.diagnostic-feature .hero-cta:focus,
.diagnostic-feature .hero-cta:active {
  background: var(--moss);
  color: var(--white);
}

.diagnostic-feature-note {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .diagnostic-feature {
    text-align: left;
  }
  .diagnostic-feature-inner {
    align-items: flex-start;
  }
  .diagnostic-feature-heading {
    margin-left: 0;
    margin-right: 0;
  }
  .diagnostic-feature-body {
    margin-left: 0;
    margin-right: 0;
  }
  .diagnostic-feature-cta-col {
    align-items: flex-start;
  }
  .diagnostic-feature .hero-cta {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }
}

.hero-cta,
.diagnostic-feature .hero-cta {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
  .hero-cta:hover,
  .hero-cta:focus,
  .hero-cta:active {
    background: var(--ink);
    color: var(--white);
  }
  .diagnostic-feature .hero-cta:hover,
  .diagnostic-feature .hero-cta:focus,
  .diagnostic-feature .hero-cta:active {
    background: var(--white);
    color: var(--ink);
  }
}
.field-notes-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  max-width: 20ch;
  color: var(--ink);
}

#field-notes .post-grid {
  grid-template-columns: repeat(3, 1fr);
  background: none;
  gap: 1.5rem;
}

#field-notes .post-card {
  background: var(--parchment);
}

@media (max-width: 900px) {
  #field-notes .post-grid {
    grid-template-columns: 1fr;
    display: block;
    border-top: 1px solid rgba(13,13,13,0.1);
    gap: 0;
  }
  #field-notes .post-card {
    background: none;
    border-bottom: 1px solid rgba(13,13,13,0.1);
  }
}

/* ── Global anchor offset: mobile ── */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 7rem;
  }
}

/* ── Field Notes homepage section ── */
#field-notes.section {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.field-notes-heading {
  margin-bottom: 1.25rem;
}

.field-notes-intro {
  margin-bottom: 1.75rem;
}

.field-notes-cta-wrap {
  margin-top: 1.5rem;
}

.field-notes-cta {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
