/* Techy Recruiter — shared design system.
   Single source of truth for every page, including the homepage. */

  :root {
    /* Brand */
    --teal: #2ec4b6;          /* fills, borders, graphics only — fails AA as text on light */
    --teal-ink: #0f8177;      /* teal for text on light backgrounds (4.7:1 on white) */
    --teal-deep: #0d6e66;
    --sky: #7dd3e8;
    --gradient: linear-gradient(135deg, var(--teal), var(--sky));

    /* Neutrals */
    --ink: #0e1b26;
    --dark: #0f1f2e;
    --dark-2: #152838;
    --paper: #ffffff;
    --surface: #f7faf9;
    --line: #e5ecea;
    --line-strong: #cfdad6;
    --muted: #4a5e6f;         /* secondary text on light (6.7:1 on white) */
    --subtle: #64798c;        /* tertiary text, white backgrounds only (4.5:1) */
    --dark-muted: #8a9bab;    /* secondary text on dark sections (5.9:1 on --dark) */

    /* Type scale (fluid) */
    --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --step-1: clamp(1.125rem, 1.06rem + 0.33vw, 1.3125rem);
    --step-2: clamp(1.5rem, 1.34rem + 0.78vw, 1.9375rem);
    --step-3: clamp(1.875rem, 1.6rem + 1.4vw, 2.625rem);
    --step-4: clamp(2.375rem, 1.9rem + 2.4vw, 3.75rem);

    /* System */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;
    --shadow-1: 0 1px 2px rgba(15,31,46,.05);
    --shadow-2: 0 8px 24px rgba(15,31,46,.07);
    --shadow-3: 0 16px 48px rgba(15,31,46,.10);
    --space-section: clamp(72px, 10vw, 128px);
    --nav-h: 72px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html {
    scroll-padding-top: calc(var(--nav-h) + 16px);
  }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }

  [hidden] { display: none !important; }

  body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  ::selection { background: rgba(46,196,182,.25); }

  a:focus-visible,
  button:focus-visible,
  summary:focus-visible {
    outline: 2px solid var(--teal-ink);
    outline-offset: 3px;
    border-radius: 4px;
  }

  .skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 12px 20px;
    background: var(--dark);
    color: var(--paper);
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    text-decoration: none;
    transition: top 0.2s ease;
  }
  .skip-link:focus { top: 0; }

  .container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
  }

  h1, h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
  }

  /* ============ NAV ============ */
  body > nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }
  body > nav.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 4px 16px rgba(15,31,46,.04);
  }
  body > nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-h);
  }
  .nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
  }
  .nav-logo img { display: block; }
  .nav-logo span { color: var(--teal-ink); }
  .nav-links {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vw, 32px);
  }
  .nav-links a:not(.btn-primary) {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 0;
    background-image: linear-gradient(var(--teal-ink), var(--teal-ink));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1.5px;
    transition: color 0.2s ease, background-size 0.25s ease;
  }
  .nav-links a:not(.btn-primary):hover {
    color: var(--ink);
    background-size: 100% 1.5px;
  }
  .nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 12px;
    margin-right: -12px;
    cursor: pointer;
  }
  .nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-toggle-bar + .nav-toggle-bar { margin-top: 6px; }
  body > nav.open .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
  body > nav.open .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }

  /* ============ BUTTONS ============ */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: var(--gradient);
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--r-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15,31,46,.10), 0 4px 14px rgba(46,196,182,.25);
    transition: transform 0.2s cubic-bezier(.2,.6,.2,1), box-shadow 0.2s ease, filter 0.2s ease;
  }
  .btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(15,31,46,.10), 0 8px 24px rgba(46,196,182,.35);
  }
  .btn-primary:active { transform: translateY(0); filter: brightness(0.98); }
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--r-sm);
    text-decoration: none;
    border: 1.5px solid var(--line-strong);
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }
  .btn-secondary:hover {
    border-color: var(--teal);
    background: rgba(46,196,182,.06);
  }

  /* ============ SECTION PRIMITIVES ============ */
  section { padding: var(--space-section) 0; }

  .section-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-ink);
    margin-bottom: 16px;
  }
  .section-h2 {
    font-size: var(--step-3);
    line-height: 1.12;
    margin-bottom: 16px;
  }
  .section-sub {
    font-size: var(--step-1);
    line-height: 1.6;
    color: var(--muted);
  }

  /* Reveal on scroll — only when JS is running; harmless otherwise */
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(.16,1,.3,1), transform 0.6s cubic-bezier(.16,1,.3,1);
  }
  html.js .reveal.active {
    opacity: 1;
    transform: none;
  }

  /* ============ HERO ============ */
  .hero {
    padding: calc(var(--nav-h) + clamp(56px, 9vw, 104px)) 0 clamp(64px, 9vw, 104px);
    background:
      radial-gradient(900px 480px at 88% -10%, rgba(46,196,182,.09), transparent 65%),
      radial-gradient(700px 420px at -10% 110%, rgba(125,211,232,.08), transparent 60%),
      var(--surface);
  }
  .hero .container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
  }
  .hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-ink);
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: var(--step-4);
    line-height: 1.05;
    margin-bottom: 22px;
  }
  .hero h1 em {
    font-style: normal;
    color: var(--teal-ink);
  }
  .hero p {
    font-size: var(--step-1);
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 52ch;
  }
  .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
  .trust-bar {
    display: flex;
    gap: clamp(28px, 4vw, 48px);
    margin-top: clamp(40px, 5vw, 56px);
  }
  .trust-item .number {
    font-family: var(--font-display);
    font-size: clamp(26px, 2.4vw, 32px);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
  }
  .trust-item .label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
  }

  /* Hero visual — layered engagement snapshot */
  .hero-visual {
    position: relative;
    padding: 24px 0 40px;
  }
  .hero-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-3);
  }
  .hero-card--main {
    position: relative;
    z-index: 1;
    padding: 28px;
    transform: rotate(-1.2deg);
  }
  .hero-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  .hero-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
  }
  .hero-card-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-ink);
    background: rgba(46,196,182,.10);
    padding: 4px 10px;
    border-radius: var(--r-pill);
  }
  .hero-stats { list-style: none; display: grid; gap: 16px; }
  .hero-stats li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
  .hero-stat-label { font-size: 13px; color: var(--muted); }
  .hero-stat-value {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
  }
  .hero-bar {
    grid-column: 1 / -1;
    height: 6px;
    border-radius: var(--r-pill);
    background: var(--surface);
    overflow: hidden;
  }
  .hero-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--w, 50%);
    border-radius: inherit;
    background: var(--gradient);
  }
  .hero-card--float {
    position: absolute;
    z-index: 2;
    right: -8px;
    bottom: 0;
    padding: 20px 24px;
    transform: rotate(1.6deg);
    text-align: left;
  }
  .hero-num {
    display: block;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
  }
  .hero-num-unit {
    font-size: 15px;
    font-weight: 500;
    color: var(--teal-ink);
    margin-left: 4px;
  }
  .hero-num-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
  }
  .hero-chip {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 8px;
    padding: 8px 16px;
    background: var(--dark);
    color: var(--paper);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-2);
    transform: rotate(-2deg);
  }

  /* ============ PROOF STRIP ============ */
  .proof-strip {
    padding: 44px 0;
    border-bottom: 1px solid var(--line);
  }
  .proof-strip p {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 22px;
  }
  .proof-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(28px, 4.5vw, 56px);
    flex-wrap: wrap;
  }
  .proof-logos span {
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: -0.01em;
    opacity: 0.75;
    transition: opacity 0.2s ease;
  }
  .proof-logos span:hover { opacity: 1; }

  /* ============ PROBLEM ============ */
  .problem .container {
    max-width: 760px;
    text-align: center;
  }
  .problem .section-h2 { margin-bottom: 24px; }
  .problem p {
    font-size: var(--step-1);
    line-height: 1.7;
    color: var(--muted);
  }

  /* ============ SERVICES — numbered editorial rows ============ */
  .services { background: var(--surface); }
  .services-header {
    max-width: 720px;
    margin-bottom: clamp(40px, 6vw, 64px);
  }
  .services-list {
    border-top: 1px solid var(--line-strong);
  }
  .service-row {
    display: grid;
    grid-template-columns: 96px 1fr 1.15fr;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(40px, 6vw, 64px) 0;
    border-bottom: 1px solid var(--line-strong);
    transition: background-color 0.25s ease;
  }
  .service-index {
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: 500;
    line-height: 1;
    color: var(--teal);
    opacity: 0.55;
  }
  .service-row h3 {
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .service-kicker {
    font-size: 15px;
    font-weight: 500;
    color: var(--teal-ink);
  }
  .service-body p {
    font-size: var(--step-0);
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 20px;
    max-width: 56ch;
  }
  .service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .service-tags span {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: var(--r-pill);
    color: var(--muted);
    border: 1px solid var(--line-strong);
    background: transparent;
  }
  .services-note {
    margin-top: 28px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 64ch;
  }

  /* ============ HOW IT WORKS ============ */
  .how-it-works-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
  }
  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 32px);
  }
  .step { text-align: center; padding: 16px; }
  .step-number {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--dark);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
  }
  .step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink);
  }
  .step p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
  }

  /* ============ TESTIMONIALS (dark) ============ */
  .testimonials {
    background:
      radial-gradient(800px 400px at 15% 0%, rgba(46,196,182,.07), transparent 60%),
      var(--dark);
    color: var(--paper);
  }
  .testimonials-header {
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 56px);
  }
  .testimonials-header .section-eyebrow { color: var(--sky); }
  .testimonials-header .section-h2 { color: var(--paper); }
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--dark-2);
    border-radius: var(--r-md);
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.07);
  }
  .testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 14px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 64px;
    line-height: 1;
    color: rgba(125,211,232,.22);
    pointer-events: none;
  }
  .testimonial-card blockquote {
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
  }
  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
  }
  .testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(125,211,232,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--sky);
    flex-shrink: 0;
  }
  .testimonial-meta .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--paper);
  }
  .testimonial-meta .role {
    font-size: 13px;
    color: var(--dark-muted);
  }
  .testimonial-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sky);
    border: 1px solid rgba(125,211,232,.35);
    border-radius: var(--r-pill);
    padding: 2px 10px;
  }

  /* ============ JOBS ============ */
  .jobs { background: var(--surface); }
  .jobs-header {
    text-align: center;
    margin-bottom: clamp(36px, 5vw, 48px);
  }
  .jobs-header p {
    font-size: var(--step-1);
    color: var(--muted);
    max-width: 580px;
    margin: 0 auto;
  }
  .jobs-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--teal-ink);
    text-transform: uppercase;
  }
  .jobs-count .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 0 rgba(46,196,182,0.5);
    animation: pulse-dot 2s infinite;
  }
  @keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(46,196,182,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(46,196,182,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,196,182,0); }
  }
  .jobs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    min-height: 150px;
  }
  .jobs-grid--single {
    grid-template-columns: minmax(0, 540px);
    justify-content: center;
  }
  .job-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--paper);
    border-radius: var(--r-md);
    padding: 28px;
    border: 1px solid var(--line);
    text-decoration: none;
    box-shadow: var(--shadow-1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }
  .job-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-2);
    transform: translateY(-3px);
  }
  .job-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .job-dept {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-ink);
  }
  .job-arrow {
    font-size: 18px;
    line-height: 1;
    color: var(--muted);
    transition: transform 0.2s ease, color 0.2s ease;
  }
  .job-card:hover .job-arrow {
    color: var(--teal-ink);
    transform: translateX(4px);
  }
  .job-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--ink);
  }
  .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
  }
  .job-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--muted);
    border: 1px solid var(--line);
  }
  .job-tag--loc { display: inline-flex; align-items: center; }
  .job-pin { color: var(--teal-ink); margin-right: 5px; flex-shrink: 0; }
  .jobs-empty {
    text-align: center;
    padding: 40px 32px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 40px;
  }
  .jobs-empty p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
  }
  .jobs-empty a { color: var(--teal-ink); font-weight: 600; }
  .jobs-footer { text-align: center; }
  .jobs-footer .btn-primary { font-size: 15px; padding: 15px 32px; }
  .jobs-note {
    margin-top: 18px;
    font-size: 14px;
    color: var(--muted);
  }
  .jobs-note a {
    color: var(--teal-ink);
    text-decoration: none;
    font-weight: 600;
  }
  .jobs-note a:hover { text-decoration: underline; }
  .skel {
    background: linear-gradient(90deg, #eef2f1 25%, var(--surface) 50%, #eef2f1 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: 6px;
  }
  @keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
  .skel-label { width: 42%; height: 12px; }
  .skel-title { width: 78%; height: 20px; }
  .skel-meta { width: 60%; height: 26px; border-radius: var(--r-pill); margin-top: 4px; }

  /* ============ ABOUT ============ */
  .about .container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
  }
  .about-visual { position: relative; }
  .about-visual img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-3);
  }
  .about-credential {
    position: absolute;
    bottom: -18px;
    right: clamp(-12px, 2vw, 24px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    padding: 14px 20px;
  }
  .about-credential .cred-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
  }
  .about-credential .cred-sub {
    font-size: 12px;
    color: var(--muted);
  }
  .about-content .section-h2 { margin-bottom: 20px; }
  .about-content p {
    font-size: var(--step-0);
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 16px;
  }
  .about-badges {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
  }
  .about-badges span {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--muted);
    border: 1px solid var(--line-strong);
  }

  /* ============ INSIGHTS ============ */
  .insights {
    padding: clamp(48px, 7vw, 72px) 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .insights .container { text-align: center; }
  .insights h2 {
    font-size: var(--step-2);
    margin-bottom: 8px;
  }
  .insights p {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 24px;
  }
  .insights-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .insights-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--teal-ink);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-strong);
    background: var(--paper);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .insights-links a:hover {
    border-color: var(--teal);
    transform: translateY(-1px);
    box-shadow: var(--shadow-1);
  }

  /* ============ FAQ ============ */
  .faq .container { max-width: 800px; }
  .faq .section-eyebrow { text-align: center; }
  .faq .section-h2 {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 48px);
  }
  .faq-list { border-top: 1px solid var(--line-strong); }
  .faq-list details { border-bottom: 1px solid var(--line-strong); }
  .faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 4px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }
  .faq-list summary::-webkit-details-marker { display: none; }
  .faq-icon {
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    color: var(--teal-ink);
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }
  .faq-list details[open] .faq-icon { transform: rotate(45deg); }
  .faq-list details p {
    padding: 0 4px 24px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 64ch;
    animation: fadeIn 0.3s ease;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ============ CTA ============ */
  .cta-box {
    position: relative;
    background: var(--dark);
    border: 1px solid rgba(125,211,232,.14);
    border-radius: var(--r-lg);
    padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 72px);
    text-align: center;
    overflow: hidden;
  }
  .cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(560px 320px at 25% 20%, rgba(46,196,182,.14), transparent 60%),
      radial-gradient(480px 300px at 80% 90%, rgba(125,211,232,.10), transparent 55%);
    pointer-events: none;
  }
  .cta-box > * { position: relative; }
  .cta-box h2 {
    font-size: var(--step-3);
    color: var(--paper);
    margin-bottom: 16px;
  }
  .cta-box p {
    font-size: var(--step-1);
    color: var(--dark-muted);
    margin: 0 auto 36px;
    max-width: 480px;
  }
  .cta-box .btn-primary {
    font-size: 16px;
    padding: 16px 36px;
  }
  .cta-reassure {
    margin-top: 18px;
    font-size: 13px;
    color: var(--dark-muted);
  }

  /* ============ FOOTER ============ */
  footer {
    padding: 48px 0;
    border-top: 1px solid var(--line);
  }
  footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }
  .footer-left {
    font-size: 14px;
    line-height: 1.8;
    color: var(--subtle);
  }
  .footer-left a {
    color: var(--muted);
    text-decoration: none;
  }
  .footer-left a:hover { color: var(--teal-ink); }
  .footer-right { display: flex; gap: 24px; }
  .footer-right a {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease;
  }
  .footer-right a:hover { color: var(--teal-ink); }

  /* ============ BACK TO TOP ============ */
  .back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }
  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .back-to-top:hover {
    transform: translateY(-2px);
    border-color: var(--teal);
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 1024px) {
    .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .service-row { grid-template-columns: 64px 1fr; }
    .service-row .service-body { grid-column: 2; }
  }

  @media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-links {
      position: fixed;
      top: var(--nav-h);
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      padding: 12px 24px 24px;
      background: var(--paper);
      border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow-2);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }
    .nav-links a:not(.btn-primary) {
      font-size: 16px;
      padding: 12px 0;
      width: 100%;
    }
    .nav-links .btn-primary {
      margin-top: 12px;
      width: 100%;
      justify-content: center;
    }
    body > nav.open .nav-links {
      opacity: 1;
      visibility: visible;
      transform: none;
    }
    .hero .container { grid-template-columns: 1fr; }
    .hero-right { display: none; }
  }

  @media (max-width: 768px) {
    .service-row { grid-template-columns: 1fr; gap: 12px; }
    .service-row .service-body { grid-column: 1; }
    .service-index { font-size: 24px; }
    .jobs-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .about .container { grid-template-columns: 1fr; }
    .about-visual { margin: 0 auto; }
    .about-credential { right: 8px; }
    .trust-bar { flex-wrap: wrap; gap: 24px; }
    footer .container {
      flex-direction: column;
      text-align: center;
    }
  }

  @media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-secondary {
      width: 100%;
      justify-content: center;
    }
  }

  /* ============ REDUCED MOTION ============ */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    html.js .reveal { opacity: 1; transform: none; }
  }

  /* ============ SUBPAGE / ARTICLE COMPONENTS ============ */
  .page-hero {
    padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) 0 clamp(40px, 6vw, 64px);
    background:
      radial-gradient(900px 480px at 88% -10%, rgba(46,196,182,.09), transparent 65%),
      var(--surface);
  }
  .page-hero h1 {
    font-size: var(--step-3);
    line-height: 1.1;
    max-width: 20ch;
    margin-bottom: 18px;
  }
  .page-hero .lede {
    font-size: var(--step-1);
    line-height: 1.6;
    color: var(--muted);
    max-width: 62ch;
  }
  .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
  }
  .breadcrumb a { color: var(--teal-ink); text-decoration: none; font-weight: 500; }
  .breadcrumb a:hover { text-decoration: underline; }
  .breadcrumb span[aria-hidden] { color: var(--line-strong); }

  .prose { max-width: 72ch; }
  .prose h2 {
    font-size: var(--step-2);
    line-height: 1.2;
    margin: clamp(40px, 5vw, 56px) 0 14px;
  }
  .prose h2:first-child { margin-top: 0; }
  .prose h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 10px;
    color: var(--ink);
  }
  .prose p { margin-bottom: 16px; color: var(--muted); }
  .prose p strong { color: var(--ink); font-weight: 600; }
  .prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--muted); }
  .prose li { margin-bottom: 8px; }
  .prose a { color: var(--teal-ink); font-weight: 500; }
  .prose .answer {
    font-size: var(--step-1);
    line-height: 1.6;
    color: var(--ink);
    border-left: 3px solid var(--teal);
    padding-left: 20px;
    margin: 0 0 20px;
  }

  .table-wrap { overflow-x: auto; margin: 24px 0 28px; }
  table.cmp {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 15px;
  }
  table.cmp th, table.cmp td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-strong);
    vertical-align: top;
  }
  table.cmp thead th {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--teal-ink);
    border-bottom-width: 1px;
  }
  table.cmp tbody th {
    font-weight: 600;
    color: var(--ink);
    width: 22%;
  }
  table.cmp td { color: var(--muted); }

  .callout {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: clamp(24px, 3vw, 32px);
    margin: 28px 0;
  }
  .callout h3 { margin-top: 0; }
  .callout p:last-child { margin-bottom: 0; }

  .fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0 8px;
  }
  .fit-col {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: 28px;
  }
  .fit-col h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .fit-col ul { margin: 0 0 0 20px; }
  .fit-yes { border-top: 3px solid var(--teal); }
  .fit-no { border-top: 3px solid var(--line-strong); }
  @media (max-width: 768px) { .fit-grid { grid-template-columns: 1fr; } }

  .page-cta {
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .page-cta .container { text-align: center; max-width: 720px; }
  .page-cta h2 { font-size: var(--step-2); margin-bottom: 12px; }
  .page-cta p { color: var(--muted); margin-bottom: 28px; }

  .updated {
    font-size: 13px;
    color: var(--subtle);
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 28px;
  }
  .related a {
    display: block;
    padding: 20px 22px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    text-decoration: none;
    background: var(--paper);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .related a:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-1);
  }
  .related .r-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
  .related .r-sub { font-size: 13px; color: var(--muted); }

  /* Service row → dedicated page link */
  .service-more { margin-top: 16px; }
  .service-more a {
    font-size: 14px;
    font-weight: 600;
    color: var(--teal-ink);
    text-decoration: none;
  }
  .service-more a:hover { text-decoration: underline; }
  .service-row h3 a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--teal), var(--teal));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    transition: background-size 0.25s ease;
  }
  .service-row h3 a:hover { background-size: 100% 2px; }

  /* Keep the reading column left-aligned with the page hero rather than
     centring it in the viewport (.container's `margin: 0 auto` would otherwise
     centre the narrower .prose max-width). */
  .container.prose { max-width: 1160px; }
  .container.prose > * { max-width: 74ch; }
  .container.prose > .table-wrap,
  .container.prose > .fit-grid,
  .container.prose > .related { max-width: 980px; }
