
    /* DESIGN TOKENS */
    :root {
      --cream: #F4EFE4;
      --cream-deep: #ECE5D2;
      --navy: #1A2347;
      --navy-deep: #131A36;
      --navy-soft: #2A3358;
      --gold: #C9A961;
      --gold-light: #D4B677;
      --gold-deep: #A88B47;
      --ink: #1A2347;
      --ink-soft: #2A3358;
      --gray-warm: #5C5A52;
      --gray-soft: #8E8B82;
      --divider: #D6CFBE;
      --teal-deep: #1F3132;
      --teal-mid: #2A4042;

      --font-display: 'Fraunces', Georgia, serif;
      --font-body: 'Manrope', -apple-system, system-ui, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;

      --max-width: 1200px;
      --content-width: 760px;
      --gutter: clamp(1.5rem, 4vw, 3rem);
    }

    /* RESET */
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: var(--font-body);
      background: var(--cream);
      color: var(--ink);
      font-size: 19px;
      line-height: 1.65;
      font-weight: 400;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; }

    /* TYPOGRAPHY */
    h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; margin: 0; line-height: 1.08; }
    h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 350; }
    h2 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); font-weight: 350; }
    h3 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 400; }
    h4 {
      font-size: 1.05rem;
      font-weight: 600;
      font-family: var(--font-body);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold-deep);
    }
    p { margin: 0 0 1.2em 0; }
    em { font-style: italic; font-family: var(--font-display); font-weight: 350; }
    .mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

    /* LAYOUT */
    .container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
    .narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--gutter); }
    section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

    /* NAVIGATION */
    nav {
      position: absolute;
      top: 0; left: 0; right: 0;
      z-index: 100;
      background: transparent;
      transition: all 0.3s;
    }
    nav.scrolled {
      position: fixed;
      background: rgba(244, 239, 228, 0.95);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--divider);
    }
    .nav-inner {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 1.5rem var(--gutter);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 2rem;
    }
    .logo-link { display: flex; align-items: center; line-height: 0; }
    .logo-light { height: 44px; width: auto; display: block; }
    .logo-dark { height: 44px; width: auto; display: none; }
    nav.scrolled .logo-light { display: none; }
    nav.scrolled .logo-dark { display: block; }
    .nav-cta {
      font-size: 0.95rem;
      padding: 0.65rem 1.4rem;
      border: 1.5px solid var(--cream);
      border-radius: 2rem;
      transition: all 0.25s;
      font-weight: 500;
      color: var(--cream);
      white-space: nowrap;
    }
    .nav-cta:hover { background: var(--cream); color: var(--navy); }
    nav.scrolled .nav-cta { border-color: var(--navy); color: var(--navy); }
    nav.scrolled .nav-cta:hover { background: var(--navy); color: var(--cream); }

    /* HERO with door image background; LEFT-justified content stack overlaid */
    .hero {
      position: relative;
      min-height: 92vh;
      display: flex;
      align-items: center;
      overflow: hidden;
      background-color: #1F3132;
      padding: clamp(7rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem) 0;
    }
    .hero-bg {
      position: absolute;
      inset: 0;
      background-image: var(--hero-image);
      background-size: cover;
      background-position: 65% center;
      z-index: 0;
    }
    .hero-scrim {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg,
          rgba(15, 25, 28, 0.92) 0%,
          rgba(15, 25, 28, 0.82) 22%,
          rgba(15, 25, 28, 0.55) 45%,
          rgba(15, 25, 28, 0.20) 65%,
          rgba(15, 25, 28, 0.05) 100%);
      z-index: 1;
      pointer-events: none;
    }
    .hero-inner {
      position: relative;
      z-index: 2;
      max-width: var(--max-width);
      width: 100%;
      margin: 0 auto;
      padding: 0 var(--gutter);
    }
    .hero-content {
      max-width: 620px;
      text-align: left;
    }
    .hero-eyebrow {
      font-family: var(--font-mono);
      font-size: 0.9rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold-light);
      margin: 0 0 1.75rem 0;
      padding-bottom: 0.85rem;
      border-bottom: 1px solid rgba(212, 182, 119, 0.55);
      display: inline-block;
    }
    .hero h1 {
      color: var(--cream);
      margin: 0 0 1.75rem 0;
      max-width: 14ch;
      text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
    }
    .hero h1 em {
      color: var(--gold-light);
      font-style: italic;
    }
    .hero-subhead {
      font-size: clamp(1.2rem, 1.7vw, 1.45rem);
      color: rgba(244, 239, 228, 0.92);
      line-height: 1.55;
      margin: 0 0 2.5rem 0;
      font-weight: 400;
      max-width: 48ch;
      text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
    }
    .hero-ctas {
      display: flex;
      flex-wrap: wrap;
      gap: 1.2rem;
      align-items: center;
      margin-bottom: 3rem;
    }
    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      padding: 1rem 1.9rem;
      background: var(--gold);
      color: var(--navy);
      border-radius: 2.5rem;
      font-weight: 600;
      font-size: 1.02rem;
      transition: all 0.25s;
      letter-spacing: 0.01em;
    }
    .btn-primary:hover {
      background: var(--gold-light);
      transform: translateY(-1px);
    }
    .btn-primary .arrow { transition: transform 0.25s; }
    .btn-primary:hover .arrow { transform: translateX(3px); }
    .btn-secondary {
      color: var(--cream);
      font-weight: 500;
      font-size: 1.02rem;
      border-bottom: 1.5px solid var(--gold-light);
      padding-bottom: 0.15rem;
      transition: color 0.25s;
    }
    .btn-secondary:hover { color: var(--gold-light); }

    .problem-meta {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2.25rem 2.5rem;
      margin-top: 3.5rem;
      padding-top: 2.5rem;
      border-top: 1px solid var(--divider);
    }
    .problem-meta-item { display: flex; flex-direction: column; gap: 0.55rem; }
    .problem-meta-label {
      font-family: var(--font-mono);
      font-size: 0.875rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--gold-deep);
    }
    .problem-meta-value {
      font-size: 1.2rem;
      color: var(--navy);
      font-weight: 600;
      line-height: 1.35;
    }
    @media (max-width: 720px) {
      .problem-meta { grid-template-columns: 1fr; gap: 1.5rem; }
    }
    @media (max-width: 880px) {
      .hero-bg { background-position: 75% center; }
      .hero-scrim {
        background:
          linear-gradient(180deg,
            rgba(15, 25, 28, 0.55) 0%,
            rgba(15, 25, 28, 0.78) 60%,
            rgba(15, 25, 28, 0.92) 100%);
      }
      .hero-content { max-width: 100%; }
    }
    @media (max-width: 600px) {
      .hero { min-height: auto; padding-top: 6.5rem; padding-bottom: 4rem; }
    }

    /* PROBLEM */
    .positioning {
      background: var(--cream);
      padding: clamp(4rem, 7vw, 5.5rem) 0;
      border-bottom: 1px solid var(--divider);
    }
    .positioning-statement {
      font-family: var(--font-display);
      font-size: clamp(1.4rem, 2.6vw, 1.95rem);
      line-height: 1.45;
      letter-spacing: -0.005em;
      color: var(--navy);
      text-align: center;
      max-width: 940px;
      margin: 0 auto;
      font-weight: 400;
    }
    .positioning-statement em {
      font-style: italic;
      color: var(--navy);
    }
    .positioning-counter {
      font-family: var(--font-display);
      font-size: clamp(1.05rem, 1.85vw, 1.35rem);
      line-height: 1.45;
      letter-spacing: 0.01em;
      color: var(--gold-deep);
      text-align: center;
      max-width: 940px;
      margin: 1.4rem auto 0 auto;
      font-style: italic;
      font-weight: 500;
      text-transform: none;
    }
    @media (max-width: 720px) {
      .positioning-statement { text-align: left; }
      .positioning-counter { text-align: left; }
    }

    .problem { background: var(--cream-deep); }
    .problem h2 { margin: 1rem 0 2.5rem 0; }
    .problem h2 em { color: var(--gold-deep); font-style: italic; }
    .problem-list { list-style: none; padding: 0; margin: 0 0 3rem 0; }
    .problem-list li {
      padding: 1.15rem 0;
      border-bottom: 1px solid var(--divider);
      font-size: 1.15rem;
      color: var(--ink-soft);
    }
    .problem-list li:last-child { border-bottom: none; }
    .problem-conclusion {
      font-family: var(--font-display);
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 350;
      line-height: 1.3;
      color: var(--ink);
      margin: 0;
    }
    .problem-conclusion em { color: var(--gold-deep); font-style: italic; }

    /* ARCHITECTURE / 8 LAYERS */
    .architecture { background: var(--cream); }
    .architecture h2 { margin: 1rem 0 1.5rem 0; }
    .architecture h2 em { color: var(--gold-deep); font-style: italic; }
    .architecture-intro {
      max-width: 880px;
      font-size: 1.2rem;
      color: var(--ink-soft);
      margin: 0 auto 4rem auto;
      text-align: center;
      line-height: 1.6;
    }
    .layers {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      border-top: 1px solid var(--divider);
    }
    .layer {
      display: grid;
      grid-template-columns: 80px 1fr 2fr;
      gap: 2rem;
      align-items: baseline;
      padding: 2rem 0;
      border-bottom: 1px solid var(--divider);
      transition: background 0.25s;
    }
    .layer:hover { background: var(--cream-deep); padding-left: 1rem; padding-right: 1rem; }
    .layer-num {
      font-family: var(--font-mono);
      font-size: 1rem;
      color: var(--gold-deep);
      letter-spacing: 0.08em;
    }
    .layer-name {
      font-family: var(--font-display);
      font-size: 1.35rem;
      font-weight: 400;
      color: var(--ink);
      line-height: 1.2;
    }
    .layer-desc {
      font-size: 1.05rem;
      color: var(--ink-soft);
      line-height: 1.55;
    }
    @media (max-width: 720px) {
      .layer { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
    }

    /* WHAT WE DO */
    .services { background: var(--teal-deep); color: var(--cream); }
    .services h4 { color: var(--gold-light); }
    .services h2 { margin: 1rem 0 4rem 0; color: var(--cream); }
    .services h2 em { color: var(--gold-light); font-style: italic; }
    .service-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
      gap: 2.5rem;
    }
    .service {
      padding: 2.25rem 1rem 0 1rem;
      border-top: 1.5px solid var(--gold-deep);
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .service-tag {
      font-family: var(--font-mono);
      font-size: 0.82rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold-light);
      margin-bottom: 1.25rem;
      display: block;
    }
    .service-name {
      color: var(--cream);
      margin-bottom: 0.85rem;
    }
    .service-meta {
      font-family: var(--font-mono);
      font-size: 0.85rem;
      color: rgba(244, 239, 228, 0.7);
      letter-spacing: 0.06em;
      margin-bottom: 1.5rem;
    }
    .service-desc {
      color: rgba(244, 239, 228, 0.85);
      font-size: 1.05rem;
      line-height: 1.6;
      margin: 0 auto;
      max-width: 36ch;
    }

    /* DIAGNOSTIC CTA */
    .diagnostic {
      background: var(--navy);
      color: var(--cream);
      position: relative;
      overflow: hidden;
    }
    .diagnostic::before {
      content: "01";
      position: absolute;
      bottom: -3rem;
      right: -2rem;
      font-family: var(--font-display);
      font-size: clamp(16rem, 28vw, 28rem);
      font-weight: 300;
      color: rgba(201, 169, 97, 0.06);
      line-height: 1;
      pointer-events: none;
    }
    .diagnostic-inner {
      position: relative;
      max-width: 760px;
      text-align: left;
    }
    .diagnostic h4 { color: var(--gold-light); }
    .diagnostic h2 { margin: 1rem 0 1.5rem 0; color: var(--cream); }
    .diagnostic h2 em { color: var(--gold-light); font-style: italic; }
    .diagnostic-desc {
      font-size: 1.2rem;
      color: rgba(244, 239, 228, 0.88);
      max-width: 55ch;
      margin: 0 0 2.5rem 0;
      line-height: 1.55;
    }
    .diagnostic .btn-primary {
      background: var(--gold);
      color: var(--navy);
      font-weight: 600;
    }
    .diagnostic .btn-primary:hover {
      background: var(--gold-light);
      color: var(--navy);
    }
    .diagnostic-meta {
      display: flex;
      gap: 3rem;
      margin-top: 3.5rem;
      flex-wrap: wrap;
    }
    .diagnostic-meta-item {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
      font-size: 0.95rem;
      color: rgba(244, 239, 228, 0.75);
    }
    .diagnostic-meta-item strong {
      font-family: var(--font-display);
      font-size: 1.85rem;
      font-weight: 400;
      color: var(--gold-light);
    }

    /* PROOF / SELECTED WORK */
    .proof { background: var(--cream); }
    .proof h2 { margin: 1rem 0 4rem 0; }
    .proof h2 em { color: var(--gold-deep); font-style: italic; }
    .case-list { display: flex; flex-direction: column; gap: 4rem; }
    .case {
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 3rem;
      padding-bottom: 4rem;
      border-bottom: 1px solid var(--divider);
    }
    .case:last-child { border-bottom: none; padding-bottom: 0; }
    .case-profile {
      font-family: var(--font-mono);
      font-size: 0.92rem;
      line-height: 1.7;
      color: var(--ink-soft);
      letter-spacing: 0.02em;
    }
    .case-profile strong {
      display: block;
      font-family: var(--font-body);
      color: var(--ink);
      font-size: 1.05rem;
      margin-bottom: 0.4rem;
      letter-spacing: normal;
    }
    .case-result h3 { margin-bottom: 1rem; }
    .case-result h3 em { color: var(--gold-deep); font-style: italic; }
    .case-result p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 1.75rem; }
    .case-numbers {
      display: flex;
      gap: 3rem;
      flex-wrap: wrap;
      padding-top: 1.5rem;
      border-top: 1px solid var(--divider);
    }
    .case-num {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      font-size: 0.95rem;
      color: var(--ink-soft);
    }
    .case-num strong {
      font-family: var(--font-display);
      font-size: 1.75rem;
      font-weight: 400;
      color: var(--navy);
    }
    @media (max-width: 720px) {
      .case { grid-template-columns: 1fr; gap: 1.5rem; }
    }

    /* ABOUT */
    .about { background: var(--cream-deep); }
    .about-callout {
      font-family: var(--font-display);
      font-size: clamp(1.5rem, 2.8vw, 2.2rem);
      font-weight: 350;
      line-height: 1.3;
      color: var(--ink);
      margin: 1.5rem 0 3rem 0;
      margin-right: -120px;
      padding-left: 1.5rem;
      border-left: 3px solid var(--gold);
    }
    @media (max-width: 1100px) {
      .about-callout { margin-right: 0; }
    }
    .about-callout em { color: var(--gold-deep); font-style: italic; }
    .about-callout-close {
      margin-top: 3rem;
    }
    .about-body p {
      font-size: 1.1rem;
      color: var(--ink-soft);
      line-height: 1.7;
      margin-bottom: 1.25rem;
      text-align: left;
    }
    .about-anchor {
      font-family: var(--font-display);
      font-style: italic;
      font-size: 1.5rem;
      color: var(--gold-deep);
      margin-top: 2.5rem;
      padding-top: 2rem;
      border-top: 1px solid var(--divider);
    }

    /* FINAL CTA */
    .final { background: var(--cream); }
    .final h2 { margin: 1rem 0 1.5rem 0; }
    .final h2 em { color: var(--gold-deep); font-style: italic; }
    .final-sub {
      font-size: 1.15rem;
      color: var(--ink-soft);
      max-width: 60ch;
      margin: 0 0 3.5rem 0;
    }
    .final-paths {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2.5rem;
    }
    .path {
      padding: 2.5rem 0 0 0;
      border-top: 1.5px solid var(--gold);
    }
    .path-tag {
      font-family: var(--font-mono);
      font-size: 0.82rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold-deep);
      margin-bottom: 1rem;
      display: block;
    }
    .path-name { margin-bottom: 1rem; }
    .path-desc {
      font-size: 1.05rem;
      color: var(--ink-soft);
      line-height: 1.6;
      margin-bottom: 1.75rem;
    }
    .path-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--navy);
      font-weight: 500;
      border-bottom: 1.5px solid var(--gold);
      padding-bottom: 0.2rem;
      transition: all 0.25s;
    }
    .path-link:hover { color: var(--gold-deep); }
    .path-link .arrow { transition: transform 0.25s; }
    .path-link:hover .arrow { transform: translateX(3px); }
    @media (max-width: 720px) {
      .final-paths { grid-template-columns: 1fr; gap: 2rem; }
    }

    /* FOOTER */
    footer {
      background: var(--navy-deep);
      color: var(--cream);
      padding: 4rem 0 2.5rem 0;
    }
    .footer-inner {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 var(--gutter);
      display: flex;
      flex-direction: column;
      gap: 3rem;
    }
    .footer-top {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 2.5rem;
      align-items: flex-start;
    }
    .footer-brand img {
      height: 50px;
      width: auto;
      margin-bottom: 1.2rem;
    }
    .footer-tagline {
      font-family: var(--font-display);
      font-style: italic;
      font-size: 1.3rem;
      max-width: 28ch;
      font-weight: 350;
      color: var(--cream);
      margin: 0;
    }
    .footer-tagline em { color: var(--gold-light); }
    .footer-contact {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      font-size: 1.02rem;
    }
    .footer-contact a { transition: color 0.25s; color: rgba(244, 239, 228, 0.85); }
    .footer-contact a:hover { color: var(--gold-light); }
    .footer-bottom {
      padding-top: 2rem;
      border-top: 1px solid rgba(201, 169, 97, 0.25);
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
      font-family: var(--font-mono);
      font-size: 0.85rem;
      color: rgba(244, 239, 228, 0.55);
      letter-spacing: 0.06em;
    }

    /* ANIMATIONS */
    .fade-in {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
      .fade-in { opacity: 1; transform: none; }
    }

/* ========== Split-site nav additions ========== */
/* The original site had nav styled as a transparent overlay on the dark hero.
   After the split, every page needs the nav, and most pages have NO hero behind it.
   These rules keep the Home-page overlay behavior AND add a solid cream nav
   for all the other pages, with navy text that reads on cream. */

/* Default (non-home pages): solid cream nav, navy text */
body.page-standard nav {
  position: relative;
  background: var(--cream);
  border-bottom: 1px solid var(--divider);
}

body.page-standard .logo-light { display: none; }
body.page-standard .logo-dark { display: block; }

/* Nav links row layout */
#nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

#nav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

#nav .nav-links a {
  text-decoration: none;
  font-family: 'Manrope', -apple-system, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  transition: opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

/* On the Home page, the nav floats over the dark hero image. Cream text. */
body.page-home #nav .nav-links a {
  color: var(--cream);
}

/* On all other pages, the nav is solid cream. Navy text. */
body.page-standard #nav .nav-links a {
  color: var(--navy);
}

/* When Home nav scrolls to sticky state, it also becomes cream+navy */
body.page-home nav.scrolled .nav-links a {
  color: var(--navy);
}

#nav .nav-links a:hover {
  opacity: 0.7;
}

#nav .nav-links a.active {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

#nav .nav-links a.nav-diagnostic {
  padding: 0.5rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 500;
}

#nav .nav-links a.nav-diagnostic:hover {
  opacity: 1;
}

/* main wrapper: on non-home pages, push below the nav */
body.page-standard main {
  padding-top: 0;
}

/* Sections on sub-pages need to start somewhere visible, since they
   were originally designed to sit AFTER the hero section.
   Add generous top padding so the first section breathes. */
body.page-standard main > section:first-child {
  padding-top: 4rem;
}

@media (max-width: 860px) {
  #nav .nav-inner { gap: 1rem; padding: 1rem var(--gutter); }
  #nav .nav-links { gap: 1rem; font-size: 0.85rem; }
}

@media (max-width: 640px) {
  #nav .nav-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  #nav .nav-links { gap: 0.6rem 1.25rem; }
}

/* ========== Services page: justified card descriptions ========== */
/* Justify both edges, with aggressive hyphenation to prevent elongated
   word-spacing gaps that would otherwise appear when justify stretches a line. */

.services .service-desc {
  text-align: justify;
  text-align-last: center;          /* keep last short line centered */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphenate-limit-chars: 6 3 2;     /* min 6-char word, 3 before break, 2 after */
  hyphenate-limit-lines: 2;         /* don't let >2 consecutive lines end in hyphens */
  text-wrap: pretty;                /* modern browsers: better line-break balancing */
  word-spacing: normal;             /* do not inflate gaps between words */
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

/* ========== About page: justified body paragraphs ========== */
/* Same treatment as the Services card descriptions: justified both edges,
   aggressive hyphenation, tight word-spacing, controlled max-width.
   Scoped to .about-body p only; the .about-callout pull quotes and
   .about-anchor closing line are intentionally left alone. */

.about .about-body p {
  text-align: justify;
  text-align-last: left;              /* body paragraphs read better with last line left-aligned */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphenate-limit-chars: 6 3 2;
  hyphenate-limit-lines: 2;
  text-wrap: pretty;
  word-spacing: normal;
  max-width: 68ch;                    /* wider than service cards since this is long-form body copy */
}


/* ========== Footer upgrade (4 columns, attribution, rights) ========== */
footer .footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

footer .footer-heading {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep, #A8854A);
  margin: 0 0 1.1rem 0;
  padding: 0;
}

footer .footer-navigate,
footer .footer-resources,
footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

footer .footer-navigate a,
footer .footer-resources a,
footer .footer-contact a {
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

footer .footer-navigate a:hover,
footer .footer-resources a:hover,
footer .footer-contact a:hover {
  opacity: 1;
}

footer .footer-attribution {
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

footer .footer-divider {
  color: var(--gold-deep, #A8854A);
  margin: 0 0.4rem;
}

@media (max-width: 900px) {
  footer .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 560px) {
  footer .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========== FAQ page ========== */
.faq {
  padding: 6rem 0 7rem 0;
  background: var(--cream, #F4EEE2);
}

.faq .container.narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter, 2rem);
}

.faq h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep, #A8854A);
  margin: 0 0 1.5rem 0;
  font-weight: 600;
}

.faq h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--navy, #1A2347);
  line-height: 1.15;
  margin: 0 0 3rem 0;
}

.faq h2 em {
  color: var(--gold-deep, #A8854A);
  font-style: italic;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-top: 1px solid rgba(26, 35, 71, 0.12);
  padding-top: 2.5rem;
}

.faq-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(26, 35, 71, 0.08);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy, #1A2347);
  margin: 0 0 0.9rem 0;
  line-height: 1.3;
}

.faq-a {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy, #1A2347);
  opacity: 0.88;
  margin: 0;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphenate-limit-chars: 6 3 2;
  hyphenate-limit-lines: 2;
  text-wrap: pretty;
  word-spacing: normal;
  max-width: 68ch;
}

/* ========== Privacy page ========== */
.privacy {
  padding: 6rem 0 7rem 0;
  background: var(--cream, #F4EEE2);
}

.privacy .container.narrow {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--gutter, 2rem);
}

.privacy h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep, #A8854A);
  margin: 0 0 1.5rem 0;
  font-weight: 600;
}

.privacy h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--navy, #1A2347);
  line-height: 1.2;
  margin: 0 0 3rem 0;
}

.privacy h2 em {
  color: var(--gold-deep, #A8854A);
  font-style: italic;
}

.privacy-body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy, #1A2347);
  margin: 2.5rem 0 0.75rem 0;
}

.privacy-body p {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy, #1A2347);
  opacity: 0.88;
  margin: 0 0 1rem 0;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 2;
  hyphenate-limit-lines: 2;
  text-wrap: pretty;
  word-spacing: normal;
}

.privacy-body p strong {
  font-weight: 600;
  opacity: 1;
}

.privacy-body a {
  color: var(--gold-deep, #A8854A);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ========== Footer attribution: tighten inside Connect column ========== */
footer .footer-contact .footer-attribution {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: inherit;
  opacity: 1;
  margin: 0 0 0.6rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


/* ========== Footer attribution: two-line stacked ========== */
footer .footer-contact .footer-attribution .footer-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}


/* ========== About page H1 (SEO semantic) ========== */
/* Styled to match the visual weight of the existing about-callout treatment
   so adding semantic structure does not disrupt the existing layout. */
.about .about-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  color: var(--navy, #1A2347);
  line-height: 1.15;
  margin: 0 0 2.5rem 0;
  padding: 0;
  max-width: 100%;
}
.about .about-h1 em {
  color: var(--gold-deep, #A8854A);
  font-style: italic;
}

/* ========== Sub-page H1 sizing ========== */
/* Global h1 was designed for the hero. On sub-pages (page-standard body class)
   the H1 sits above body text and should be meaningfully smaller so it reads
   more like a section headline than a hero. The Home hero h1 is not affected
   because .hero h1 has its own size rule. */

body.page-standard h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 350;
}

/* About page uses the existing .about-h1 utility; override to match the new sub-page scale */
body.page-standard .about .about-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* ========== H1 spacing + Services one-line + Privacy last-updated ========== */
/* 1. Breathing room: add consistent margin below sub-page H1s before body text starts */
body.page-standard main h1 {
  margin-bottom: 2.5rem;
}

/* On typographically dense sections (services on dark bg, FAQ, privacy, cases),
   give the H1 a little extra breathing room before the body copy begins */
body.page-standard .services h1,
body.page-standard .faq h1,
body.page-standard .privacy h1,
body.page-standard .proof h1,
body.page-standard .architecture h1,
body.page-standard .diagnostic h1,
body.page-standard .about h1 {
  margin-bottom: 3rem;
}
/* 3. Privacy "Last updated" at bottom styling */
.privacy .privacy-divider {
  border: none;
  border-top: 1px solid rgba(26, 35, 71, 0.15);
  margin: 3.5rem 0 1.5rem 0;
}

.privacy .privacy-last-updated {
  font-size: 0.85rem;
  opacity: 0.6;
  letter-spacing: 0.02em;
  margin: 0;
  text-align: left;
}
