/*
Theme Name: Noviota
Theme URI: https://noviota.online/
Author: RAAJE FUSION
Author URI: https://www.raajefusion.com/
Description: Custom theme for Noviota Oy — a private biotechnology company designing programmable cellular systems for infectious disease across human and animal health. Clean editorial design, DM Sans typography, deep navy accent.
Version: 1.0.1
License: All rights reserved
Text Domain: noviota
*/


  :root {
    --bg: #ffffff;
    --surface: #f6f7f8;
    --ink: #0d0d0d;
    --ink-soft: #2a2a2a;
    --muted: #595959;
    --rule: #e5e7eb;
    --rule-soft: #f0f2f4;
    --blue: #15326b;
    --blue-deep: #0c2150;
    --blue-soft: #eef2f8;
    --dark-accent: #c8cdd4;
    --dark: #0d0d0d;
    --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max: 1180px;
    --max-text: 720px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }

  .container {
    width: min(calc(100% - 48px), var(--max));
    margin: 0 auto;
  }

  /* ============ HEADER ============ */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
  }
  .nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .logo {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    display: inline-flex;
    align-items: flex-start;
    gap: 3px;
    line-height: 1;
  }
  .logo-wordmark {
    line-height: 1;
  }
  .logo-dot {
    width: 7px;
    height: 7px;
    background: var(--blue);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    margin-top: 3px;
  }
  .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
  }
  .nav-links a {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 6px 0;
    border-bottom: 1.5px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    color: var(--blue);
    border-bottom-color: var(--blue);
  }
  .nav-cta {
    background: var(--ink);
    color: var(--bg) !important;
    padding: 9px 18px !important;
    border-radius: 2px;
    border: none !important;
    font-size: 0.84rem;
    font-weight: 500;
    transition: background 0.15s;
  }
  .nav-cta:hover {
    background: var(--blue) !important;
    border: none !important;
  }
  @media (max-width: 800px) {
    .nav-links { gap: 18px; }
    .nav-links li:nth-child(2),
    .nav-links li:nth-child(3) { display: none; }
  }

  /* ============ HERO ============ */
  .hero {
    padding: 100px 0 80px;
    border-bottom: 1px solid var(--rule);
  }
  .hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 28px;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.2rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 32px;
    max-width: 900px;
  }
  .hero-lede {
    font-size: 1.18rem;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 600px;
    margin-bottom: 48px;
  }
  .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 2px;
    border: 1.5px solid var(--ink);
    background: var(--ink);
    color: var(--bg);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    cursor: pointer;
  }
  .btn:hover { background: var(--blue); border-color: var(--blue); }
  .btn--ghost { background: transparent; color: var(--ink); }
  .btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .arrow { transition: transform 0.15s; }
  .btn:hover .arrow { transform: translateX(3px); }

  /* ============ FEATURE STRIP ============ */
  .feature-strip {
    background: var(--ink);
    color: var(--bg);
    padding: 64px 0;
  }
  .feature-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
  }
  @media (max-width: 760px) {
    .feature-strip-grid { grid-template-columns: 1fr; gap: 28px; }
  }
  .feature-strip-item {
    border-top: 1px solid #2a2a2a;
    padding-top: 24px;
  }
  .feature-strip-item .num {
    color: var(--dark-accent);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
  }
  .feature-strip-item h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
  }
  .feature-strip-item p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .feature-strip-item a {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--dark-accent);
    border-bottom: 1px solid var(--dark-accent);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
  }
  .feature-strip-item a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
  }

  /* ============ SECTION BASE ============ */
  .section { padding: 88px 0; }
  .section--bordered { border-bottom: 1px solid var(--rule); }
  .section--surface {
    background: var(--surface);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .section-eyebrow {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
  }
  .section-title {
    font-size: clamp(1.85rem, 3.6vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 760px;
    color: var(--ink);
  }
  .section-intro {
    font-size: 1.08rem;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 620px;
    margin-bottom: 52px;
  }

  /* ============ HOMEPAGE: WHAT WE DO PREVIEW ============ */
  .what-we-do {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
  @media (max-width: 800px) {
    .what-we-do { grid-template-columns: 1fr; gap: 40px; }
  }
  .what-we-do-text p {
    color: var(--ink-soft);
    margin-bottom: 18px;
    font-size: 1rem;
  }
  .what-we-do-text p strong { color: var(--ink); font-weight: 600; }

  .what-we-do-list {
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--rule);
  }
  .what-we-do-list li {
    padding: 22px 24px;
    border-bottom: 1px solid var(--rule);
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  .what-we-do-list li:last-child { border-bottom: none; }
  .what-we-do-list .marker {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--blue);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: 50%;
  }
  .what-we-do-list h4 {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
  }
  .what-we-do-list p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
  }

  /* ============ STATEMENT (dark) ============ */
  .statement {
    padding: 110px 0;
    background: var(--dark);
    color: var(--bg);
  }
  .statement-body {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    line-height: 1.4;
    font-weight: 400;
    max-width: 880px;
    letter-spacing: -0.005em;
  }
  .statement-body .accent { color: var(--dark-accent); font-weight: 500; }
  .statement-cite {
    margin-top: 32px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #808080;
    font-weight: 500;
  }

  /* ============ LATEST WRITING ============ */
  .latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 44px;
  }
  @media (max-width: 760px) {
    .latest-grid { grid-template-columns: 1fr; }
  }
  .latest-card {
    background: var(--bg);
    border: 1px solid var(--rule);
    padding: 30px;
    transition: border-color 0.15s, transform 0.15s;
    display: block;
  }
  .latest-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
  }
  .latest-card .meta {
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
    font-weight: 500;
  }
  .latest-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .latest-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 16px;
  }
  .latest-card .read-more {
    font-size: 0.82rem;
    color: var(--blue);
    font-weight: 500;
    border-bottom: 1px solid var(--blue);
    padding-bottom: 1px;
  }

  /* ============ INNER PAGE HEADER ============ */
  .page-header {
    padding: 88px 0 56px;
    border-bottom: 1px solid var(--rule);
  }
  .page-header .eyebrow {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 24px;
  }
  .page-header h1 {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 22px;
    max-width: 860px;
  }
  .page-header .subtitle {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 640px;
    line-height: 1.5;
  }

  /* ============ PROSE ============ */
  .prose { max-width: var(--max-text); }
  .prose h2 {
    font-size: clamp(1.5rem, 2.4vw, 1.85rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    margin: 44px 0 16px;
    line-height: 1.2;
    color: var(--ink);
  }
  .prose h2:first-child { margin-top: 0; }
  .prose h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 26px 0 10px;
    color: var(--ink);
  }
  .prose p {
    margin-bottom: 16px;
    color: var(--ink-soft);
    font-size: 1.02rem;
  }
  .prose p strong { color: var(--ink); font-weight: 600; }
  .prose .layer {
    margin-bottom: 18px;
    padding-left: 20px;
    border-left: 2px solid var(--blue);
  }
  .prose .layer strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
  }

  /* ============ PARTNERS ============ */
  .partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    margin-top: 40px;
  }
  @media (max-width: 700px) {
    .partners-grid { grid-template-columns: 1fr; }
  }
  .partner-card {
    padding: 32px 28px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
  }
  .partner-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .partner-card p {
    font-size: 0.96rem;
    color: var(--ink-soft);
    line-height: 1.55;
  }
  .partner-cta {
    margin-top: 48px;
    padding: 36px;
    background: var(--ink);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
  }
  .partner-cta h3 {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
  }
  .partner-cta p {
    color: #a0a0a0;
    font-size: 0.94rem;
  }
  .partner-cta .btn {
    background: var(--blue);
    border-color: var(--blue);
  }
  .partner-cta .btn:hover {
    background: var(--bg);
    color: var(--ink);
    border-color: var(--bg);
  }

  /* ============ WRITING ============ */
  .writing-list { list-style: none; max-width: var(--max-text); }
  .writing-item {
    padding: 30px 0;
    border-bottom: 1px solid var(--rule);
  }
  .writing-item:first-child { padding-top: 0; }
  .writing-item .meta {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 500;
  }
  .writing-item h3 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -0.015em;
  }
  .writing-item h3 a:hover { color: var(--blue); }
  .writing-item p { color: var(--ink-soft); }

  /* Featured writing block */
  .writing-featured {
    padding: 36px 40px;
    background: var(--surface);
    border-left: 3px solid var(--blue);
    margin-bottom: 56px;
    max-width: 900px;
  }
  .writing-featured .featured-label {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--blue);
    margin-bottom: 12px;
  }
  .writing-featured .meta {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 14px;
    font-weight: 500;
  }
  .writing-featured h2 {
    font-size: clamp(1.6rem, 2.8vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
    color: var(--ink);
  }
  .writing-featured h2 a:hover { color: var(--blue); }
  .writing-featured .excerpt {
    color: var(--ink-soft);
    font-size: 1.04rem;
    line-height: 1.55;
    margin-bottom: 20px;
    max-width: 640px;
  }
  .writing-featured .featured-cta {
    display: inline-block;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--blue);
    border-bottom: 1px solid var(--blue);
    padding-bottom: 1px;
  }
  .writing-list-header {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
    max-width: var(--max-text);
  }

  /* ============ ARTICLE PAGE ============ */
  .article-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 64px;
    max-width: calc(720px + 220px + 64px);
    margin: 0 auto;
    padding: 64px 24px 96px;
  }
  @media (max-width: 900px) {
    .article-wrap {
      grid-template-columns: 1fr;
      gap: 32px;
      padding: 48px 24px 64px;
    }
  }
  .article-toc {}
  @media (min-width: 901px) {
    .article-toc {
      position: sticky;
      top: 100px;
      align-self: start;
      max-height: calc(100vh - 130px);
      overflow-y: auto;
    }
  }
  .article-toc h4 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin-bottom: 14px;
  }
  .article-toc ul { list-style: none; }
  .article-toc li { margin-bottom: 8px; }
  .article-toc a {
    font-size: 0.84rem;
    color: var(--ink-soft);
    line-height: 1.4;
    border-left: 2px solid var(--rule);
    padding-left: 12px;
    display: block;
    transition: color 0.15s, border-color 0.15s;
  }
  .article-toc a:hover,
  .article-toc a.active {
    color: var(--blue);
    border-left-color: var(--blue);
  }

  .article-main { max-width: 720px; min-width: 0; }
  .article-breadcrumb {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
  }
  .article-breadcrumb a { color: var(--ink-soft); }
  .article-breadcrumb a:hover { color: var(--blue); }
  .article-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--ink);
  }
  .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.76rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 36px;
    font-weight: 500;
  }
  .article-meta span { display: inline-flex; align-items: center; gap: 8px; }
  .article-meta span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--blue);
    border-radius: 50%;
    margin-right: 4px;
  }

  .article-lede {
    font-size: 1.18rem;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--rule);
    font-weight: 400;
  }
  .article-lede em { color: var(--ink); font-style: italic; }

  .article-body h2 {
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink);
    margin: 56px 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
    scroll-margin-top: 100px;
  }
  .article-body h2 .roman {
    color: var(--blue);
    font-weight: 500;
    margin-right: 10px;
    font-variant-numeric: tabular-nums;
  }
  .article-body p {
    font-size: 1.04rem;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 20px;
  }
  .article-body p strong { color: var(--ink); font-weight: 600; }
  .article-body em { font-style: italic; }
  .article-body blockquote {
    margin: 28px 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid var(--blue);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--ink);
  }
  .article-body a {
    color: var(--blue);
    border-bottom: 1px solid var(--blue-soft);
    transition: border-color 0.15s;
  }
  .article-body a:hover { border-bottom-color: var(--blue); }

  .article-references {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--rule);
  }
  .article-references h2 {
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 24px;
    color: var(--ink);
  }
  .article-references ol {
    list-style: none;
    counter-reset: ref;
  }
  .article-references li {
    counter-increment: ref;
    padding: 12px 0 12px 36px;
    position: relative;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--rule-soft);
  }
  .article-references li:last-child { border-bottom: none; }
  .article-references li::before {
    content: counter(ref) ".";
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 0.78rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
  }
  .article-references em { font-style: italic; }
  .article-references a { color: var(--blue); border-bottom: 1px solid var(--blue-soft); }
  .article-references a:hover { border-bottom-color: var(--blue); }

  .article-newsletter {
    margin-top: 64px;
    padding: 36px;
    background: var(--surface);
    border-left: 3px solid var(--blue);
  }
  .article-newsletter h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .article-newsletter .nb-intro {
    font-size: 0.98rem;
    color: var(--ink-soft);
    margin-bottom: 22px;
    line-height: 1.55;
  }
  .article-newsletter-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
  }
  @media (max-width: 600px) {
    .article-newsletter-form { grid-template-columns: 1fr; }
  }
  .article-newsletter-form input {
    font-family: var(--sans);
    font-size: 0.96rem;
    padding: 11px 14px;
    border: 1px solid var(--rule);
    background: var(--bg);
    color: var(--ink);
    border-radius: 2px;
  }
  .article-newsletter-form input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(21, 50, 107, 0.12);
  }
  .article-newsletter-form button {
    font-family: var(--sans);
    font-size: 0.86rem;
    font-weight: 500;
    padding: 11px 22px;
    background: var(--ink);
    color: var(--bg);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.15s;
  }
  .article-newsletter-form button:hover { background: var(--blue); }
  .newsletter-note {
    font-size: 0.76rem;
    color: var(--muted);
    margin-top: 12px;
  }
  .newsletter-status {
    margin-top: 14px;
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 2px;
    display: none;
  }
  .newsletter-status.success {
    display: block;
    background: var(--blue-soft);
    color: var(--blue-deep);
    border-left: 3px solid var(--blue);
  }
  .newsletter-status.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border-left: 3px solid #dc2626;
  }

  .article-byline {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
  }
  .article-byline .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 600;
  }
  .article-byline p {
    font-size: 0.98rem;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: var(--max-text);
  }

  /* ============ CONTACT FORM ============ */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    max-width: 1000px;
  }
  @media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  }
  .contact-meta h3 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--blue);
    margin-bottom: 12px;
  }
  .contact-meta p {
    color: var(--ink-soft);
    margin-bottom: 18px;
    font-size: 0.98rem;
  }
  .contact-meta .email-direct {
    display: block;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
  }
  .contact-meta .email-direct a {
    color: var(--ink);
    font-weight: 500;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
  }
  .contact-meta .email-direct a:hover {
    color: var(--blue);
    border-bottom-color: var(--blue);
  }

  .contact-form {
    background: var(--surface);
    border: 1px solid var(--rule);
    padding: 32px;
  }
  .form-row {
    margin-bottom: 18px;
  }
  .form-row label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
    margin-bottom: 6px;
  }
  .form-row label .req {
    color: var(--blue);
    font-weight: 500;
    margin-left: 2px;
  }
  .form-row input,
  .form-row textarea {
    width: 100%;
    font-family: var(--sans);
    font-size: 1rem;
    padding: 11px 14px;
    border: 1px solid var(--rule);
    background: var(--bg);
    color: var(--ink);
    border-radius: 2px;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .form-row input:focus,
  .form-row textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(21, 50, 107, 0.15);
  }
  .form-row textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
  }
  .form-submit-row {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .form-note {
    font-size: 0.78rem;
    color: var(--muted);
  }
  .form-status {
    margin-top: 14px;
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 2px;
    display: none;
  }
  .form-status.success {
    display: block;
    background: var(--blue-soft);
    color: var(--blue-deep);
    border-left: 3px solid var(--blue);
  }
  .form-status.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border-left: 3px solid #dc2626;
  }

  /* ============ SITEMAP PAGE ============ */
  .sitemap-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 900px;
  }
  @media (max-width: 700px) {
    .sitemap-page-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 480px) {
    .sitemap-page-grid { grid-template-columns: 1fr; }
  }
  .sitemap-page-group h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--blue);
    margin-bottom: 14px;
    font-weight: 600;
  }
  .sitemap-page-group ul { list-style: none; }
  .sitemap-page-group li { margin-bottom: 10px; }
  .sitemap-page-group a {
    color: var(--ink-soft);
    font-size: 0.96rem;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
  }
  .sitemap-page-group a:hover {
    color: var(--blue);
    border-bottom-color: var(--blue);
  }

  /* ============ LEGAL PAGE ============ */
  .legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--rule);
  }
  .legal-nav a {
    font-size: 0.82rem;
    color: var(--ink-soft);
    padding: 8px 14px;
    border: 1px solid var(--rule);
    border-radius: 2px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
  }
  .legal-nav a:hover {
    color: var(--blue);
    border-color: var(--blue);
    background: var(--blue-soft);
  }
  .legal-section {
    max-width: var(--max-text);
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid var(--rule);
    scroll-margin-top: 100px;
  }
  .legal-section:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
  }
  .legal-section h2 {
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
    color: var(--ink);
  }
  .legal-section .updated {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
  }
  .legal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 26px 0 8px;
  }
  .legal-section p {
    margin-bottom: 14px;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.6;
  }
  .legal-section ul {
    margin: 0 0 16px 22px;
    color: var(--ink-soft);
  }
  .legal-section ul li {
    margin-bottom: 6px;
    font-size: 0.98rem;
    line-height: 1.55;
  }
  .legal-section a { color: var(--blue); border-bottom: 1px solid transparent; transition: border-color 0.15s; }
  .legal-section a:hover { border-bottom-color: var(--blue); }
  .company-info-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px 32px;
    padding: 24px 28px;
    background: var(--surface);
    border-left: 3px solid var(--blue);
    margin-bottom: 14px;
  }
  @media (max-width: 600px) {
    .company-info-grid { grid-template-columns: 1fr; gap: 4px 0; }
    .company-info-grid dt { margin-top: 14px; }
    .company-info-grid dt:first-child { margin-top: 0; }
  }
  .company-info-grid dt {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
  }
  .company-info-grid dd {
    font-size: 0.98rem;
    color: var(--ink-soft);
  }
  .placeholder {
    background: var(--blue-soft);
    color: var(--blue-deep);
    padding: 1px 6px;
    font-family: "DM Sans", monospace;
    font-size: 0.86em;
    border-radius: 2px;
  }

  /* ============ FOOTER ============ */
  .site-footer {
    background: var(--ink);
    color: #a0a0a0;
    padding: 64px 0 28px;
    font-size: 0.9rem;
  }
  .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 44px;
    border-bottom: 1px solid #2a2a2a;
  }
  @media (max-width: 800px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-top .footer-brand { grid-column: 1 / -1; }
  }
  @media (max-width: 500px) {
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
  }
  .footer-brand .footer-logo {
    display: inline-flex;
    align-items: flex-start;
    gap: 3px;
    line-height: 1;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bg);
    margin-bottom: 14px;
  }
  .footer-brand p {
    color: #808080;
    line-height: 1.6;
    max-width: 380px;
    font-size: 0.9rem;
  }
  .footer-col h4 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--bg);
    margin-bottom: 14px;
  }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 9px; }
  .footer-col a {
    color: #a0a0a0;
    font-size: 0.88rem;
    transition: color 0.15s;
  }
  .footer-col a:hover { color: var(--bg); }

  .footer-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #707070;
    font-size: 0.78rem;
  }
  .footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  .footer-bottom a {
    color: #a0a0a0;
    transition: color 0.15s;
  }
  .footer-bottom a:hover { color: var(--bg); }
  .designed-by { font-size: 0.76rem; letter-spacing: 0.04em; }
  .designed-by a { font-weight: 600; letter-spacing: 0.06em; }

  /* ============ ANIMATIONS ============ */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-eyebrow,
  .hero h1,
  .hero-lede,
  .hero-actions,
  .page-header .eyebrow,
  .page-header h1,
  .page-header .subtitle {
    animation: fadeUp 0.5s ease-out backwards;
  }
  .hero h1,
  .page-header h1 { animation-delay: 0.08s; }
  .hero-lede,
  .page-header .subtitle { animation-delay: 0.18s; }
  .hero-actions { animation-delay: 0.28s; }


/* ============ WordPress-specific overrides ============ */
.wp-block-image img { max-width: 100%; height: auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption-text { font-size: 0.86rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* Hide the dashboard admin bar offset interference */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}