/* ─── Reset ─── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    img { max-width: 100%; display: block; }
    a { text-decoration: none; }

    /* ─── Design Tokens ─── */
    :root {
      --blue-dark:    #0a2a4a;
      --blue-mid:     #1a5f8a;
      --blue-light:   #5db8e8;
      --blue-pale:    #e8f4fb;
      --orange:       #c8521a;
      --orange-mid:   #e8722a;
      --orange-light: #f09040;
      --cream:        #faf7f3;
      --white:        #ffffff;
      --ink:          #111827;
      --muted:        #6b7280;
      --border:       rgba(10, 42, 74, 0.10);
      --radius-sm:    6px;
      --radius-md:    10px;
      --radius-lg:    16px;
      --shadow-sm:    0 2px 8px rgba(10,42,74,0.08);
      --shadow-md:    0 8px 24px rgba(10,42,74,0.10);
      --shadow-lg:    0 24px 60px rgba(10,42,74,0.16);
    }

    /* ─── Base Typography ─── */
    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--cream);
      color: var(--ink);
      font-size: 16px;
      line-height: 1.6;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }
    h2, h3, h4 {
      font-family: 'Syne', sans-serif;
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: -0.03em;
    }

    /* ─── Utility ─── */
    .container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
    .section-label {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 1.6px; color: var(--orange); margin-bottom: 10px;
      display: block;
    }

    /* ─── Navigation ─── */
    nav {
      position: sticky; top: 0; z-index: 100;
      background: rgba(250,247,243,0.92);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }
    .nav-inner {
      display: flex; align-items: center; justify-content: space-between;
      height: 64px;
    }
    .nav-logo {
      font-family: 'Syne', sans-serif; font-weight: 700;
      font-size: 18px; color: var(--blue-dark); letter-spacing: -0.5px;
    }
    .nav-logo span { color: var(--orange); }
    .nav-links {
      display: flex; gap: 32px; align-items: center;
      list-style: none;
    }
    .nav-links a {
      font-size: 14px; color: var(--muted); font-weight: 500;
      transition: color 0.15s;
    }
    .nav-links a:hover { color: var(--ink); }
    /* Must beat .nav-links a / a:hover specificity so label stays light on orange */
    .nav-links a.btn-nav,
    .nav-links a.btn-nav:hover {
      background: var(--orange);
      color: var(--white);
      padding: 9px 20px;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 600;
      transition: background 0.2s, transform 0.1s, color 0.15s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .nav-links a.btn-nav:hover {
      background: var(--orange-mid);
      color: var(--white);
      transform: translateY(-1px);
    }

    /* ─── Hero ─── */
    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
      gap: clamp(40px, 5vw, 72px);
      align-items: center;
      min-height: calc(100vh - 64px);
      padding: 88px 0 80px;
    }

    /* Availability badge */
    .availability-badge {
      display: inline-flex; align-items: center; gap: 10px;
      background: var(--white); border: 1px solid var(--border);
      border-radius: 100px; padding: 7px 18px 7px 12px;
      font-size: 13px; font-weight: 500; color: var(--blue-mid);
      margin-bottom: 28px; box-shadow: var(--shadow-sm);
    }
    .badge-dot {
      width: 9px; height: 9px; border-radius: 50%;
      background: var(--orange-light);
      box-shadow: 0 0 0 3px rgba(240,144,64,0.25);
      animation: pulse 2.2s ease-in-out infinite;
      flex-shrink: 0;
    }
    @keyframes pulse {
      0%, 100% { box-shadow: 0 0 0 3px rgba(240,144,64,0.25); }
      50%       { box-shadow: 0 0 0 7px rgba(240,144,64,0.07); }
    }

    /* Headline — Syne for multi-line structured hero only */
    .hero-headline {
      font-family: "Syne", sans-serif;
      font-weight: 700;
      font-size: clamp(40px, 5vw, 58px);
      color: var(--blue-dark);
      margin-bottom: 22px;
      line-height: 1.1;
      letter-spacing: -0.03em;
    }
    /* Single-line tagline: Syne — same family as structured hero & “End-to-end technical leadership” */
    h1.hero-headline.hero-headline--tagline {
      font-family: "Syne", sans-serif;
      font-weight: 700;
      font-size: clamp(32px, 4.2vw, 48px);
      letter-spacing: -0.03em;
      line-height: 1.15;
      max-width: min(100%, 36rem);
    }
    .hero-headline .accent { color: var(--orange); }

    .hero-sub {
      font-size: 17px; color: var(--muted); line-height: 1.75;
      max-width: 460px; margin-bottom: 40px;
    }

    /* CTA row */
    .hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
    .btn-primary {
      -webkit-appearance: none;
      appearance: none;
      border: 0;
      box-shadow: none;
      cursor: pointer;
      font-family: inherit;
      line-height: 1.25;
      text-decoration: none;
      background: var(--blue-dark); color: var(--white);
      padding: 14px 30px; border-radius: var(--radius-sm);
      font-size: 15px; font-weight: 500;
      transition: background 0.2s, transform 0.1s;
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    }
    .btn-primary:hover { background: var(--blue-mid); transform: translateY(-1px); }
    .btn-primary:focus-visible {
      outline: 2px solid var(--orange-light);
      outline-offset: 2px;
    }
    /* <button> UA styles (Win/Edge/Firefox): class alone is not always enough */
    button.btn-primary {
      -webkit-appearance: none;
      appearance: none;
      border: none;
      box-shadow: none;
      background-image: none;
    }
    button.btn-primary::-moz-focus-inner {
      border: 0;
      padding: 0;
    }
    .btn-ghost {
      color: var(--orange); font-size: 15px; font-weight: 500;
      display: inline-flex; align-items: center; gap: 5px;
      transition: gap 0.2s;
    }
    .btn-ghost:hover { gap: 9px; }

    /* Right side: headshot card + floating stats */
    .hero-right { position: relative; display: flex; justify-content: center; align-items: center; }
    .headshot-card {
      width: min(100%, 480px);
      aspect-ratio: 4 / 5;
      height: auto;
      min-height: 480px;
      border-radius: 28px;
      background: linear-gradient(150deg, var(--blue-mid) 0%, var(--blue-dark) 100%);
      position: relative; overflow: hidden;
      box-shadow:
        0 2px 4px rgba(10, 42, 74, 0.04),
        0 20px 50px rgba(10, 42, 74, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    /* Replace this div with an <img> once you have your headshot */
    .headshot-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      /* Bias toward upper frame (face) — same idea as portrait heroes on sites like Heavy Chain */
      object-position: center 22%;
      backface-visibility: hidden;
    }
    .headshot-placeholder {
      width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
    }
    .headshot-placeholder svg { opacity: 0.15; }
    .headshot-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(200,82,26,0.75) 0%, transparent 55%);
    }
    .headshot-label {
      position: absolute; bottom: 22px; left: 22px; right: 22px;
    }
    .headshot-label .name {
      display: block; font-family: 'Syne', sans-serif; font-size: 18px;
      font-weight: 700; color: var(--white); margin-bottom: 3px;
    }
    .headshot-label .role {
      font-size: 12px; color: rgba(255,255,255,0.75); font-weight: 400;
    }

    /* Floating stat cards */
    .stat-card {
      position: absolute;
      background: var(--white); border: 1px solid var(--border);
      border-radius: var(--radius-md); padding: 14px 18px;
      box-shadow: var(--shadow-md); min-width: 130px;
    }
    .stat-card .num {
      font-family: 'Syne', sans-serif; font-size: 22px;
      font-weight: 700; color: var(--blue-dark); display: block;
    }
    .stat-card .lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }
    .stat-1 { top: 8%; left: -12%; }
    .stat-2 { bottom: 18%; left: -14%; border-left: 3px solid var(--orange); }
    .stat-3 { top: 22%; right: -10%; }

    /* ─── Trust Strip ─── */
    .trust-strip {
      background: var(--white);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 20px 0;
    }
    .trust-inner {
      display: flex; align-items: center; gap: 40px;
    }
    .trust-label {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 1px; color: var(--muted); white-space: nowrap;
    }
    .trust-logos {
      display: flex; gap: 36px; align-items: center; flex-wrap: wrap;
    }
    .trust-logo {
      font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700;
      color: #c8c3bb; letter-spacing: 0.8px;
    }

    /* ─── Services ─── */
    .services-section { padding: 96px 0; }
    .services-header { margin-bottom: 52px; }
    .services-header .section-label {
      font-family: "Syne", sans-serif;
      font-weight: 700;
    }
    .services-header h2 {
      font-family: "Syne", sans-serif;
      font-size: clamp(28px, 3vw, 36px);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--blue-dark);
    }

    .services-grid {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    }
    .service-card {
      background: var(--white); border: 1px solid var(--border);
      border-radius: var(--radius-lg); padding: 30px 24px;
      position: relative; overflow: hidden;
      transition: box-shadow 0.25s, transform 0.25s;
      cursor: default;
    }
    .service-card:hover {
      box-shadow: var(--shadow-md); transform: translateY(-3px);
    }
    /* Gradient underline on hover */
    .service-card::after {
      content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
      background: linear-gradient(90deg, var(--blue-light), var(--orange-light));
      transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
    }
    .service-card:hover::after { transform: scaleX(1); }

    .service-icon {
      width: 44px; height: 44px; border-radius: 12px;
      background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
      display: flex; align-items: center; justify-content: center;
      font-size: 20px; margin-bottom: 20px;
    }
    .service-card h3 {
      font-size: 16px; color: var(--blue-dark); margin-bottom: 10px;
    }
    .service-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
    .service-link {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 13px; font-weight: 500; color: var(--orange);
      margin-top: 18px; transition: gap 0.2s;
    }
    .service-link:hover { gap: 9px; }

    /* ─── Domain expertise (industries) ─── */
    .domain-expertise-section {
      padding: 96px 0;
      background: var(--blue-pale);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .domain-expertise-header { margin-bottom: 48px; max-width: 44rem; }
    .domain-expertise-header .section-label {
      font-family: "Syne", sans-serif;
      font-weight: 700;
    }
    .domain-expertise-header h2 {
      font-family: "Syne", sans-serif;
      font-size: clamp(28px, 3vw, 36px);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--blue-dark);
      margin-top: 4px;
    }
    .domain-expertise-lede {
      margin-top: 16px;
      font-size: 17px;
      color: var(--muted);
      line-height: 1.7;
      max-width: 40rem;
    }
    .domain-expertise-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
    .domain-expertise-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 28px 24px;
      box-shadow: var(--shadow-sm);
      transition: box-shadow 0.25s, transform 0.25s, border-color 0.2s;
    }
    .domain-expertise-card:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
      border-color: rgba(10, 42, 74, 0.14);
    }
    .domain-expertise-emoji {
      display: block;
      font-size: 2rem;
      line-height: 1;
      margin-bottom: 14px;
    }
    .domain-expertise-card h3 {
      font-family: "Syne", sans-serif;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--blue-dark);
      margin-bottom: 12px;
      line-height: 1.2;
    }
    .domain-expertise-card p {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.65;
      margin: 0;
    }

    /* ─── Blog Preview ─── */
    .blog-section {
      background: var(--blue-dark);
      padding: 96px 0;
    }
    .blog-section .section-label { color: var(--orange-light); }
    .blog-header {
      display: flex; align-items: flex-end;
      justify-content: space-between; margin-bottom: 48px;
    }
    .blog-header h2 {
      font-family: "Syne", sans-serif;
      font-size: clamp(28px, 3vw, 36px);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--white);
    }
    .blog-header a {
      font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 500;
      display: flex; align-items: center; gap: 5px;
      transition: color 0.2s, gap 0.2s;
    }
    .blog-header a:hover { color: var(--white); gap: 9px; }

    .blog-grid {
      display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 20px;
    }
    .blog-card {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.09);
      border-radius: var(--radius-lg); padding: 28px;
      transition: background 0.2s; cursor: pointer;
    }
    .blog-card:hover { background: rgba(255,255,255,0.09); }
    .blog-card.featured {
      background: rgba(232,114,42,0.10);
      border-color: rgba(232,114,42,0.25);
    }
    .blog-tag {
      display: inline-block; font-size: 10px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 1px;
      padding: 4px 11px; border-radius: 100px;
      background: rgba(93,184,232,0.14); color: var(--blue-light);
      margin-bottom: 16px;
    }
    .blog-card.featured .blog-tag {
      background: rgba(240,144,64,0.18); color: var(--orange-light);
    }
    .blog-card h4 {
      font-size: 16px; color: var(--white); line-height: 1.35;
      margin-bottom: 12px;
    }
    .blog-card.featured h4 { font-size: 21px; }
    .blog-card p { font-size: 13.5px; color: rgba(255,255,255,0.48); line-height: 1.65; margin-bottom: 18px; }
    .blog-meta {
      display: flex; gap: 14px; font-size: 12px;
      color: rgba(255,255,255,0.28);
    }

    /* Newsletter on navy: flat accent (not same blue as section bg) + no UA 3D */
    .blog-section .newsletter-landing .btn-primary {
      background: var(--orange);
      color: var(--white);
      box-shadow: none;
      border: none;
    }
    .blog-section .newsletter-landing .btn-primary:hover {
      background: var(--orange-mid);
      transform: translateY(-1px);
    }
    .blog-section .newsletter-landing .btn-primary:focus-visible {
      outline-color: var(--white);
    }

    /* ─── CTA Strip ─── */
    .cta-section {
      background: linear-gradient(130deg, var(--orange) 0%, var(--orange-mid) 100%);
      padding: 80px 0; text-align: center;
    }
    .cta-section h2 {
      font-family: "Syne", sans-serif;
      font-size: clamp(26px, 3vw, 34px);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--white);
      margin-bottom: 12px;
    }
    .cta-section p { color: rgba(255,255,255,0.82); font-size: 16px; margin-bottom: 32px; }
    .btn-white {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--white); color: var(--orange);
      padding: 14px 32px; border-radius: var(--radius-sm);
      font-size: 15px; font-weight: 600;
      transition: transform 0.15s, box-shadow 0.15s;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }
    .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.18); }

    /* ─── Footer ─── */
    footer {
      padding: 28px 0;
      border-top: 1px solid var(--border);
    }
    .footer-inner {
      display: flex; justify-content: space-between; align-items: center;
    }
    .footer-copy { font-size: 13px; color: var(--muted); }
    .footer-links { display: flex; gap: 24px; }
    .footer-links a { font-size: 13px; color: var(--muted); transition: color 0.15s; }
    .footer-links a:hover { color: var(--ink); }

    /* ─── Responsive ─── */
    @media (max-width: 900px) {
      /* Stack copy then photo; clip horizontal bleed from absolutely positioned stat cards */
      .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 72px 0 88px;
        overflow-x: clip;
      }
      .hero-right {
        display: flex;
        margin-top: 36px;
        margin-bottom: 28px;
        width: 100%;
        max-width: 100%;
        padding-inline: 0;
        align-self: center;
      }
      /* Negative offsets spill off-screen on narrow viewports — hide (Heavy Chain–style clean hero on small screens) */
      .hero-right .stat-card {
        display: none;
      }
      .headshot-card {
        width: min(100%, 360px);
        min-height: unset;
        aspect-ratio: 4 / 5;
        border-radius: 24px;
      }
      /* Stronger upward bias on small screens where cover crop is harsher */
      .headshot-img {
        object-position: center 15%;
      }
      .services-grid { grid-template-columns: 1fr 1fr; }
      .domain-expertise-grid { grid-template-columns: 1fr; }
      .blog-grid { grid-template-columns: 1fr; }
      .trust-inner { flex-direction: column; align-items: flex-start; gap: 16px; }

      /* Mobile / tablet: hamburger + dropdown (matches hero stack breakpoint) */
      .nav-links {
        display: none;
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        background: rgba(250, 247, 243, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 12px 40px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(10, 42, 74, 0.08);
        z-index: 99;
      }
      .nav-inner.is-open .nav-links {
        display: flex;
      }
      .nav-links li {
        width: 100%;
      }
      .nav-links a {
        display: block;
        padding: 12px 0;
      }
      .nav-links a.btn-nav {
        margin-top: 8px;
        display: inline-flex;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
      }
    }
    @media (max-width: 600px) {
      /* Only adjust horizontal padding — full `padding` shorthand would wipe `.hero` top/bottom from the 900px rule */
      .container {
        padding-left: 20px;
        padding-right: 20px;
      }
      .nav-links {
        padding: 12px 20px 20px;
      }
      .services-grid { grid-template-columns: 1fr; }
      .hero-headline { font-size: 36px; }
      .hero-headline.hero-headline--tagline { font-size: clamp(26px, 7vw, 34px); line-height: 1.15; }
    }

.nav-inner { position: relative; }
/* Shown by default; hidden on wide screens (rules after @media (max-width: 900px) must not set display:none here or they override the open menu breakpoint). */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  color: var(--blue-dark);
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 901px) {
  .nav-toggle {
    display: none;
  }
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--orange-light);
  outline-offset: 2px;
}
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 16px;
  position: relative;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--blue-dark);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  transform-origin: center;
}
.nav-inner.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-inner.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-inner.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.flash-messages { padding: 12px 40px; background: var(--blue-pale); border-bottom: 1px solid var(--border); }
.flash { margin: 0; font-size: 14px; color: var(--blue-dark); }
.flash-error { color: #b91c1c; }
.flash-warning { color: #c2410c; }

.page-main { padding: 64px 0 96px; max-width: 720px; }
.page-main h1 { font-size: clamp(28px, 3vw, 40px); color: var(--blue-dark); margin-bottom: 12px; }
.error-404-page { max-width: 640px; }
.error-404-page .section-label { margin-bottom: 8px; }
.error-404-lead { font-size: 17px; line-height: 1.6; margin-bottom: 28px; }
.error-404-path { word-break: break-all; font-weight: 600; color: var(--ink); }
.error-404-debug {
  font-size: 13px;
  padding: 12px 14px;
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.error-404-debug code { font-size: 12px; }
.error-404-search { margin-bottom: 36px; max-width: 100%; }
.error-404-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.error-404-links a {
  font-weight: 600;
  color: var(--blue-mid);
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.error-404-links a:hover { color: var(--blue-dark); border-bottom-color: var(--orange-mid); }
.prose { font-size: 17px; color: var(--muted); line-height: 1.75; }
.about-page .prose { max-width: min(100%, 40rem); }
.about-page .about-bio p { margin: 0 0 1em; }
.about-page .about-bio p:last-child { margin-bottom: 0; }
.about-page .about-bio ul,
.about-page .about-bio ol { margin: 0 0 1em; padding-left: 1.35em; }
.about-page .about-bio li { margin-bottom: 0.35em; }
.about-page .about-bio a { color: var(--blue-mid); font-weight: 500; }
.about-page .about-bio a:hover { text-decoration: underline; }
.contact-form .field-wrapper { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--blue-dark); font-size: 14px; }
.cf-input {
  width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 15px; background: var(--white);
}
.contact-form .field-wrapper:has(.cf-checkbox) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 10px;
}
.contact-form .field-wrapper:has(.cf-checkbox) label {
  margin-bottom: 0;
  order: 2;
  flex: 1;
  min-width: 0;
  font-weight: 500;
}
.contact-form .field-wrapper:has(.cf-checkbox) .cf-checkbox {
  order: 1;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.field-error { color: #b91c1c; font-size: 13px; margin: 6px 0 0; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { margin-bottom: 14px; }
.blog-index.page-main { max-width: 1160px; }
.blog-index.page-main .blog-index-header h1 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.services-page.page-main { max-width: 1160px; }
.services-page.page-main h1 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.about-page.page-main { max-width: 1160px; }
.post-detail.page-main { max-width: 720px; }
.post-detail h1 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--blue-dark);
}
.post-detail-main > h1 + .post-body {
  margin-top: 1.5rem;
}

.blog-card h4 a { color: inherit; text-decoration: none; }
.blog-card h4 a:hover { text-decoration: underline; }
.blog-empty { color: rgba(255,255,255,0.45); grid-column: 1 / -1; }

.newsletter-landing { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.nl-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,0.45); margin-bottom: 12px; }
.newsletter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.nl-input {
  flex: 1; min-width: 200px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: var(--white);
}
.nl-submit {
  margin: 0;
  flex-shrink: 0;
  min-height: 44px;
  padding-left: 22px;
  padding-right: 22px;
}
.post-detail .post-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}
/* Prose inside article: global reset zeros margins on all tags */
.post-detail .post-body > *:first-child { margin-top: 0; }
.post-detail .post-body p {
  margin: 0 0 1.15em;
  color: var(--ink);
}
.post-detail .post-body p:last-child { margin-bottom: 0; }
.post-detail .post-body h2,
.post-detail .post-body h3,
.post-detail .post-body h4,
.post-detail .post-body h5,
.post-detail .post-body h6 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-top: 1.85em;
  margin-bottom: 0.55em;
}
.post-detail .post-body h2:first-child,
.post-detail .post-body h3:first-child,
.post-detail .post-body h4:first-child { margin-top: 0; }
.post-detail .post-body h2 { font-size: clamp(1.35rem, 2.5vw, 1.6rem); }
.post-detail .post-body h3 { font-size: clamp(1.2rem, 2vw, 1.35rem); }
.post-detail .post-body h4 { font-size: 1.15rem; }
.post-detail .post-body ul,
.post-detail .post-body ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}
.post-detail .post-body li { margin-bottom: 0.4em; }
.post-detail .post-body li:last-child { margin-bottom: 0; }
.post-detail .post-body blockquote {
  margin: 0 0 1.15em;
  padding: 0.25em 0 0.25em 1rem;
  border-left: 3px solid var(--orange);
  color: var(--muted);
}
.post-detail .post-body hr {
  margin: 2em 0;
  border: none;
  border-top: 1px solid var(--border);
}
.post-detail .post-body a {
  color: var(--blue-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-detail .post-body a:hover { color: var(--blue-dark); }
.post-detail .post-body strong { color: var(--ink); font-weight: 600; }
.post-detail .post-body :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  background: rgba(10, 42, 74, 0.07);
  padding: 0.12em 0.35em;
  border-radius: 4px;
}
.post-code-wrap {
  position: relative;
  margin: 0 0 1.25em;
}
.post-code-wrap:last-child { margin-bottom: 0; }
.post-code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--blue-mid);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.post-code-copy:hover {
  background: var(--blue-pale);
  color: var(--blue-dark);
  border-color: rgba(10, 42, 74, 0.18);
}
.post-code-copy:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.post-detail .post-body pre {
  margin: 0;
  padding: 44px 16px 16px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.post-detail .post-body pre code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}
.services-page .services-page-grid {
  margin-top: 40px;
  gap: clamp(20px, 2.2vw, 28px);
}
.services-page .service-card h3 { line-height: 1.2; }
.services-page .hero-sub { max-width: min(100%, 40rem); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-index-header { margin-bottom: 28px; }
.blog-lead { margin-bottom: 20px; max-width: 42rem; }
.blog-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.blog-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; flex: 1; min-width: 240px; }
.blog-search-input {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
}
.blog-search-submit {
  flex-shrink: 0;
  width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--blue-mid);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.blog-search-submit:hover {
  background: var(--blue-pale);
  color: var(--blue-dark);
  border-color: rgba(10, 42, 74, 0.2);
}
.blog-search-submit:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.blog-search-icon { display: block; }
.blog-rss-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  white-space: nowrap;
}
.blog-rss-link:hover { color: var(--orange-mid); }

.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.blog-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.blog-tag:hover { color: var(--ink); border-color: rgba(10, 42, 74, 0.2); }
.blog-tag.is-active {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}

.blog-post-cards { display: grid; gap: 0; }
.blog-post-card { margin: 0; border-bottom: 1px solid var(--border); }
.blog-post-card:first-child { border-top: 1px solid var(--border); }
.blog-post-card-link {
  display: block;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
.blog-post-card-link:hover { background: rgba(10, 42, 74, 0.03); }
.blog-post-card-meta {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 8px;
}
.blog-post-card-title {
  display: block;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.blog-post-card-excerpt { display: block; font-size: 15px; color: var(--muted); line-height: 1.5; }

.blog-index .blog-empty { color: var(--muted); padding: 24px 0; border-bottom: 1px solid var(--border); }

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.blog-newsletter-footer {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 480px;
}
.blog-nl-copy { color: var(--muted); margin-bottom: 16px; font-size: 15px; }
.newsletter-inline.newsletter-landing {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.newsletter-inline .nl-label { color: var(--muted); }
.newsletter-inline .nl-input {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
}

.post-detail.page-main { max-width: 1160px; }
.post-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.post-detail-main { min-width: 0; }
.post-detail-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-detail-tags a {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-mid);
  text-decoration: none;
}
.post-detail-tags a:hover { text-decoration: underline; }
.post-cover { margin: 0 0 28px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.post-cover img { width: 100%; height: auto; display: block; }

.post-detail-sidebar {
  position: sticky;
  top: 88px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.sidebar-block + .sidebar-block { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.sidebar-heading {
  font-family: Syne, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-dark);
  margin: 0 0 12px;
}
.sidebar-muted { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.share-links, .related-posts { list-style: none; padding: 0; margin: 0; }
.share-links li, .related-posts li { margin-bottom: 10px; }
.share-links a, .related-posts a {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-mid);
  text-decoration: none;
}
.share-links a:hover, .related-posts a:hover { text-decoration: underline; }

.newsletter-sidebar .nl-input {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--ink);
}
.nl-submit--full { width: 100%; }

@media (max-width: 840px) {
  .post-detail-grid { grid-template-columns: 1fr; }
  .post-detail-sidebar { position: static; }
}

.portfolio-page.page-main, .portfolio-detail.page-main { max-width: 1160px; }
.portfolio-page.page-main h1 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.portfolio-detail .section-label {
  font-family: "Syne", sans-serif;
  font-weight: 700;
}
.portfolio-lead { margin-bottom: 36px; }
.portfolio-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.portfolio-card {
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
}
.portfolio-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.portfolio-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}
.portfolio-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.portfolio-card-title {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.portfolio-card-client { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.portfolio-card-outcome { font-size: 14px; color: var(--ink); line-height: 1.45; }

.portfolio-detail-client { margin-bottom: 20px; }
.portfolio-detail-cover { margin: 24px 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.portfolio-detail-cover img { width: 100%; height: auto; display: block; }
.tech-badges {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-badges li {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--blue-pale);
  color: var(--blue-mid);
}
.portfolio-detail-body { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 720px; margin-bottom: 24px; }
.portfolio-detail-outcome { font-size: 16px; color: var(--ink); max-width: 720px; }
.portfolio-detail .section-label a { color: var(--orange); text-decoration: none; font-weight: inherit; }
.portfolio-detail .section-label a:hover { text-decoration: underline; }
