:root {
    --bg: #F4F0E8;
    --bg-alt: #ECE6DA;
    --ink: #0E1018;
    --ink-2: #15181F;
    --ink-soft: #2A2D3A;
    --muted: #6B6D78;
    --line: #1F2230;
    --line-soft: rgba(14,16,24,0.10);
    --accent: #FF5B2E;
    --accent-soft: #FFD9CC;
    --paper: #FBF8F1;
    --live: #00D67E;
    --info: #6B8AFF;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    overflow-x: hidden;
    cursor: none;
  }
  ::selection { background: var(--accent); color: var(--paper); }

  /* ---------- Custom cursor ---------- */
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
    border-radius: 50%; transition: transform 0.15s ease;
    mix-blend-mode: difference;
  }
  .cursor-dot { width: 6px; height: 6px; background: #fff; transform: translate(-50%,-50%); }
  .cursor-ring { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.5); transform: translate(-50%,-50%); transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease; }
  .cursor-ring.hover { width: 56px; height: 56px; border-color: var(--accent); }
  @media (max-width: 880px), (hover: none) {
    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }
  }

  /* ---------- Grain overlay ---------- */
  body::before {
    content: ""; position: fixed; inset: 0;
    pointer-events: none; z-index: 9998;
    opacity: 0.45;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }

  /* ---------- Layout ---------- */
  .container { max-width: 1320px; margin: 0 auto; padding: 0 32px; position: relative; }
  @media (max-width: 640px) { .container { padding: 0 20px; } }

  .display, h1, h2, h3, h4 {
    font-family: 'Bricolage Grotesque', serif;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.02;
  }

  .eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .eyebrow::before {
    content: ""; width: 24px; height: 1px; background: var(--ink); opacity: 0.4;
  }
  .eyebrow.light { color: rgba(251,248,241,0.55); }
  .eyebrow.light::before { background: rgba(251,248,241,0.4); }

  .live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 0 rgba(0,214,126,0.6);
    animation: pulse 1.8s infinite;
    display: inline-block;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,214,126,0.6); }
    70% { box-shadow: 0 0 0 10px rgba(0,214,126,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,214,126,0); }
  }

  /* ---------- Nav ---------- */
  .nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(244, 240, 232, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
  .logo {
    font-family: 'Bricolage Grotesque', serif;
    font-weight: 600; font-size: 22px; letter-spacing: -0.03em;
    color: var(--ink); text-decoration: none;
    display: flex; align-items: center; gap: 10px;
  }
  .logo-mark {
    width: 30px; height: 30px; background: var(--ink);
    border-radius: 8px; position: relative; display: inline-block;
    overflow: hidden;
  }
  .logo-mark::after {
    content: ""; position: absolute; top: 6px; left: 6px;
    width: 8px; height: 8px; background: var(--accent); border-radius: 2px;
    animation: blink 2.4s infinite;
  }
  @keyframes blink { 0%, 70% { opacity: 1; } 75%, 100% { opacity: 0.3; } }
  .nav-links { display: flex; gap: 36px; list-style: none; }
  .nav-links a {
    color: var(--ink); text-decoration: none;
    font-size: 15px; font-weight: 500;
    transition: opacity 0.2s;
  }
  .nav-links a:hover { opacity: 0.6; }
  .nav-cta {
    background: var(--ink); color: var(--paper);
    padding: 11px 20px; border-radius: 999px;
    font-size: 14px; font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
  .nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; padding: 0; }
  .nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: transform 0.3s; }
  @media (max-width: 980px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .nav-inner.open + .nav-mobile { display: flex; }
    .nav-mobile {
      display: none; flex-direction: column; gap: 4px;
      padding: 8px 0 24px; border-top: 1px solid var(--line-soft);
    }
    .nav-mobile a {
      padding: 14px 0; color: var(--ink); text-decoration: none;
      font-size: 18px; font-family: 'Bricolage Grotesque', serif;
      border-bottom: 1px solid var(--line-soft);
    }
  }

  /* ---------- Hero ---------- */
  .hero { padding: 90px 0 60px; position: relative; }
  .hero-bg {
    position: absolute; inset: 0; z-index: 0;
    overflow: hidden; pointer-events: none;
  }
  .hero-bg .blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.55;
  }
  .hero-bg .blob.b1 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    top: -120px; left: 30%;
    animation: float1 18s ease-in-out infinite;
  }
  .hero-bg .blob.b2 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, #FFC56B, transparent 70%);
    bottom: -80px; right: -60px;
    animation: float2 22s ease-in-out infinite;
  }
  .hero-bg .blob.b3 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, #C8DDFF, transparent 70%);
    top: 40%; left: -100px;
    animation: float3 26s ease-in-out infinite;
  }
  @keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px,40px); } }
  @keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px,-60px); } }
  @keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(80px,-30px); } }

  .hero-grid-wrap { position: relative; z-index: 1; }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: end;
  }
  .hero h1 {
    font-size: clamp(54px, 9vw, 132px);
    font-weight: 400; line-height: 0.92; letter-spacing: -0.045em;
  }
  .hero h1 em {
    font-style: italic; font-weight: 300;
    background: linear-gradient(120deg, var(--accent), #FF8E5C);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Bricolage Grotesque', serif;
  }
  .hero-sub {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 380px;
    margin-bottom: 28px;
  }
  .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 60px; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px;
    font-size: 15px; font-weight: 500;
    text-decoration: none; transition: all 0.25s ease;
    border: 1px solid transparent; cursor: none;
  }
  .btn-primary { background: var(--ink); color: var(--paper); }
  .btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-soft); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn .arrow { width: 14px; height: 14px; display: inline-block; transition: transform 0.25s; }
  .btn:hover .arrow { transform: translateX(3px); }

  /* ---------- Hero agent showcase ---------- */
  .agent-card {
    background: var(--ink); color: var(--paper);
    border-radius: 20px; padding: 22px;
    box-shadow: 0 30px 80px -20px rgba(14,16,24,0.4);
    transform: rotate(1.5deg);
    transition: transform 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 510px;
  }
  .agent-card:hover { transform: rotate(0deg) translateY(-6px); }
  .agent-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 100% 0%, var(--scenario-glow, rgba(255,91,46,0.18)), transparent 55%);
    pointer-events: none;
    transition: background 0.6s ease;
  }
  .agent-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 14px; margin-bottom: 14px;
    border-bottom: 1px solid rgba(251,248,241,0.08);
    position: relative;
  }
  .agent-head .lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; letter-spacing: 0.1em;
    text-transform: uppercase; opacity: 0.65;
  }
  .agent-head .status {
    display: flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px; color: var(--live);
  }
  .agent-tabs {
    position: relative;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: rgba(251,248,241,0.04);
    padding: 4px;
    border-radius: 999px;
    margin-bottom: 18px;
  }
  .agent-tab {
    position: relative; z-index: 2;
    padding: 8px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(251,248,241,0.55);
    border-radius: 999px;
    transition: color 0.4s ease;
    cursor: none;
  }
  .agent-tab.active { color: var(--paper); }
  .tab-pill {
    position: absolute; z-index: 1;
    top: 4px; left: 4px;
    width: calc(33.333% - 2.66px);
    height: calc(100% - 8px);
    background: rgba(255,91,46,0.18);
    border: 1px solid rgba(255,91,46,0.3);
    border-radius: 999px;
    transition: transform 0.5s cubic-bezier(.65,.05,.36,1), background 0.5s, border-color 0.5s;
  }
  .tab-pill.bank { transform: translateX(100%); background: rgba(0,214,126,0.18); border-color: rgba(0,214,126,0.3); }
  .tab-pill.ins  { transform: translateX(200%); background: rgba(107,138,255,0.2); border-color: rgba(107,138,255,0.35); }

  .scenario-stage {
    position: relative;
    min-height: 360px;
  }
  .scenario {
    position: absolute; inset: 0;
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
  }
  .scenario.active { opacity: 1; transform: none; pointer-events: auto; }

  .case-header { margin-bottom: 12px; }
  .case-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px; letter-spacing: 0.1em;
    padding: 3px 10px;
    background: rgba(251,248,241,0.06);
    border: 1px solid rgba(251,248,241,0.1);
    border-radius: 999px;
    color: rgba(251,248,241,0.7);
    margin-bottom: 8px;
  }
  .case-title {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 18px; line-height: 1.25;
    font-weight: 500; letter-spacing: -0.01em;
    color: var(--paper);
  }
  .case-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: rgba(251,248,241,0.5);
    margin-top: 4px;
    letter-spacing: 0.04em;
  }

  .agent-steps {
    display: flex; flex-direction: column;
    gap: 6px;
  }
  .scenario .step {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 11px;
    background: rgba(251,248,241,0.025);
    border: 1px solid rgba(251,248,241,0.05);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    opacity: 0; transform: translateY(6px);
  }
  .scenario.active .step { animation: stepIn 0.5s forwards; }
  .scenario.active .step:nth-child(1) { animation-delay: 0.4s; }
  .scenario.active .step:nth-child(2) { animation-delay: 1.1s; }
  .scenario.active .step:nth-child(3) { animation-delay: 1.8s; }
  .scenario.active .step:nth-child(4) { animation-delay: 2.5s; }
  .scenario.active .step.outcome    { animation-delay: 3.4s; }
  @keyframes stepIn { to { opacity: 1; transform: none; } }

  .step-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .step-tag.observe { background: rgba(107,138,255,0.18); color: var(--info); }
  .step-tag.tool    { background: rgba(255,184,92,0.18); color: #FFB85C; }
  .step-tag.reason  { background: rgba(255,91,46,0.18); color: var(--accent); }
  .step-tag.action  { background: rgba(0,214,126,0.18); color: var(--live); }

  .step-msg { color: rgba(251,248,241,0.82); flex: 1; line-height: 1.5; }
  .step-msg code {
    color: rgba(251,248,241,0.55);
    font-size: 10.5px;
    background: none;
  }

  .step.outcome {
    background: linear-gradient(135deg, rgba(0,214,126,0.12), rgba(0,214,126,0.04));
    border: 1px solid rgba(0,214,126,0.3);
    padding: 11px 12px;
    margin-top: 4px;
    flex-direction: column; align-items: stretch;
  }
  .step.outcome .outcome-row {
    display: flex; align-items: flex-start; gap: 10px;
  }
  .step.outcome .step-msg {
    color: var(--paper);
    font-weight: 500;
    font-size: 11.5px;
  }
  .outcome-metrics {
    display: flex; gap: 14px; margin-top: 8px;
    padding-left: 38px;
    flex-wrap: wrap;
  }
  .outcome-metrics .metric {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(251,248,241,0.55);
    display: inline-flex; align-items: baseline; gap: 4px;
  }
  .outcome-metrics .metric strong {
    color: var(--live);
    font-weight: 700;
    font-size: 11px;
  }

  .hero-strip {
    margin-top: 80px; padding: 28px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  }
  .hero-strip-item .num { font-family: 'Bricolage Grotesque', serif; font-size: 38px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
  .hero-strip-item .lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 8px; }

  @media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-strip { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    .hero { padding: 50px 0 40px; }
    .agent-card { transform: none; }
    .outcome-metrics { padding-left: 0; }
  }
  @media (max-width: 480px) {
    .agent-tab { font-size: 9.5px; letter-spacing: 0.04em; }
    .case-title { font-size: 16px; }
  }

  /* ---------- Section header ---------- */
  section { padding: 100px 0; position: relative; }
  @media (max-width: 768px) { section { padding: 70px 0; } }
  .section-head {
    display: grid; grid-template-columns: 1fr 2fr;
    gap: 60px; margin-bottom: 60px; align-items: end;
  }
  .section-head h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 400; }
  .section-head h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
  .section-head p { color: var(--ink-soft); max-width: 540px; }
  @media (max-width: 768px) {
    .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  }

  /* ---------- About ---------- */
  .about {
    background: var(--paper);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
  }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .about-stat { position: relative; padding: 60px 0; }
  .about-stat .big {
    font-family: 'Bricolage Grotesque', serif;
    font-size: clamp(180px, 26vw, 340px);
    line-height: 0.85; font-weight: 300;
    letter-spacing: -0.06em; color: var(--ink);
    position: relative; z-index: 1;
  }
  .about-stat .big sup { font-size: 0.3em; color: var(--accent); vertical-align: top; font-weight: 400; margin-left: -10px; }
  .about-stat .lbl {
    position: absolute; bottom: 70px; right: 10%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted);
    max-width: 150px; text-align: right; z-index: 2;
  }
  .about-stat .ring {
    position: absolute; top: 20%; right: 5%;
    width: 200px; height: 200px;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    animation: spin 30s linear infinite;
    pointer-events: none;
  }
  .about-stat .ring::before {
    content: ""; position: absolute; top: -4px; left: 50%;
    width: 8px; height: 8px; background: var(--accent);
    border-radius: 50%; transform: translateX(-50%);
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .about-text h3 { font-size: clamp(28px, 3.5vw, 44px); margin-bottom: 24px; font-weight: 400; }
  .about-text p { color: var(--ink-soft); margin-bottom: 18px; font-size: 17px; }
  .about-list { list-style: none; margin-top: 28px; border-top: 1px solid var(--line-soft); }
  .about-list li {
    padding: 16px 0; border-bottom: 1px solid var(--line-soft);
    display: flex; align-items: center; gap: 14px; font-size: 15px;
  }
  .about-list li::before { content: "→"; color: var(--accent); font-family: 'Bricolage Grotesque', serif; font-size: 18px; }
  @media (max-width: 880px) {
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-stat { padding: 20px 0; }
    .about-stat .lbl { position: static; text-align: left; margin-top: 12px; max-width: none; }
    .about-stat .ring { display: none; }
  }

  /* ---------- Terminal section ---------- */
  .terminal-section {
    background: var(--ink); color: var(--paper);
    position: relative; overflow: hidden;
  }
  .terminal-section::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      radial-gradient(circle at 20% 30%, rgba(255,91,46,0.12), transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(0,214,126,0.08), transparent 40%);
    pointer-events: none;
  }
  .terminal-section .grid-bg {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(251,248,241,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(251,248,241,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  }
  .terminal-section .container { position: relative; z-index: 1; }
  .terminal-section .section-head h2 { color: var(--paper); }
  .terminal-section .section-head h2 em {
    background: linear-gradient(120deg, var(--live), #6FF0AE);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .terminal-section .section-head p { color: rgba(251,248,241,0.6); }

  .terminal-grid {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
  }
  .terminal {
    background: #0A0C12;
    border: 1px solid rgba(251,248,241,0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  }
  .term-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: rgba(251,248,241,0.03);
    border-bottom: 1px solid rgba(251,248,241,0.08);
  }
  .term-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(251,248,241,0.2); }
  .term-bar .dot:nth-child(1) { background: #FF5F57; }
  .term-bar .dot:nth-child(2) { background: #FEBC2E; }
  .term-bar .dot:nth-child(3) { background: #28C840; }
  .term-bar .name { margin-left: 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; opacity: 0.5; }
  .term-body {
    padding: 22px 24px; min-height: 380px;
    font-family: 'JetBrains Mono', monospace; font-size: 13.5px; line-height: 1.7;
  }
  .term-line { opacity: 0; animation: termIn 0.3s forwards; display: block; }
  .term-line .prompt { color: var(--live); margin-right: 8px; }
  .term-line .cmd { color: var(--paper); }
  .term-line .out { color: rgba(251,248,241,0.6); }
  .term-line .ok { color: var(--live); }
  .term-line .warn { color: #FFB85C; }
  .term-line .info { color: var(--info); }
  .term-line .accent { color: var(--accent); }
  .term-line .dim { color: rgba(251,248,241,0.35); }
  @keyframes termIn { to { opacity: 1; } }
  .term-line:nth-child(1)  { animation-delay: 0.0s; }
  .term-line:nth-child(2)  { animation-delay: 0.4s; }
  .term-line:nth-child(3)  { animation-delay: 0.8s; }
  .term-line:nth-child(4)  { animation-delay: 1.1s; }
  .term-line:nth-child(5)  { animation-delay: 1.4s; }
  .term-line:nth-child(6)  { animation-delay: 1.7s; }
  .term-line:nth-child(7)  { animation-delay: 2.1s; }
  .term-line:nth-child(8)  { animation-delay: 2.4s; }
  .term-line:nth-child(9)  { animation-delay: 2.8s; }
  .term-line:nth-child(10) { animation-delay: 3.2s; }
  .term-line:nth-child(11) { animation-delay: 3.6s; }
  .term-line:nth-child(12) { animation-delay: 4.0s; }
  .term-line .caret { display: inline-block; width: 8px; height: 14px; background: var(--paper); margin-left: 4px; vertical-align: middle; animation: blink2 1s infinite; }
  @keyframes blink2 { 50% { opacity: 0; } }

  .terminal-side { display: flex; flex-direction: column; gap: 16px; }
  .term-card {
    background: rgba(251,248,241,0.03);
    border: 1px solid rgba(251,248,241,0.08);
    border-radius: 14px; padding: 22px;
    backdrop-filter: blur(10px);
  }
  .term-card h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(251,248,241,0.5); margin-bottom: 14px; }
  .term-card .big-num {
    font-family: 'Bricolage Grotesque', serif; font-size: 56px; font-weight: 300; letter-spacing: -0.03em; line-height: 1;
    background: linear-gradient(120deg, var(--paper), var(--live));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }
  .term-card .delta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--live); margin-top: 8px; }
  .term-card .bars { display: flex; align-items: end; gap: 4px; height: 60px; margin-top: 16px; }
  .term-card .bars .bar { flex: 1; background: linear-gradient(to top, var(--accent), rgba(255,91,46,0.3)); border-radius: 2px; opacity: 0.85; }

  @media (max-width: 880px) {
    .terminal-grid { grid-template-columns: 1fr; }
  }

  /* ---------- Services ---------- */
  .services { background: var(--bg); position: relative; }
  .services::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(14,16,24,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  }
  .services .container { position: relative; z-index: 1; }
  .services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--line-soft);
    border: 1px solid var(--line-soft);
  }
  .service-card {
    background: var(--bg); padding: 36px 32px 32px;
    transition: background 0.3s; cursor: none;
    position: relative; text-decoration: none; color: inherit;
    display: block; min-height: 280px; overflow: hidden;
  }
  .service-card:hover { background: var(--ink); color: var(--paper); }
  .service-card:hover .service-num { color: var(--accent); }
  .service-card:hover .service-arrow { transform: translate(4px, -4px); }
  .service-card:hover .service-icon { color: var(--accent); transform: scale(1.1); }
  .service-icon {
    width: 36px; height: 36px; margin-bottom: 24px;
    color: var(--ink); transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
  }
  .service-card:hover .service-icon { color: var(--accent); }
  .service-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; color: var(--muted);
    letter-spacing: 0.1em; transition: color 0.3s;
    position: absolute; top: 32px; left: 32px;
  }
  .service-card h3 { font-size: 26px; margin: 0 0 12px; font-weight: 500; }
  .service-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
  .service-card:hover p { color: rgba(251, 248, 241, 0.65); }
  .service-arrow {
    position: absolute; top: 32px; right: 32px;
    width: 18px; height: 18px; transition: transform 0.3s;
  }
  @media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: auto; padding: 28px 24px; }
    .service-num { top: 24px; left: 24px; }
    .service-arrow { top: 24px; right: 24px; }
  }

  /* ---------- Cloud ---------- */
  .cloud { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
  .cloud .grid-bg {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(251,248,241,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(251,248,241,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
  }
  .cloud .container { position: relative; z-index: 1; }
  .cloud .section-head h2 { color: var(--paper); }
  .cloud .section-head h2 em {
    background: linear-gradient(120deg, var(--accent), #FFB85C);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }
  .cloud .section-head p { color: rgba(251,248,241,0.65); }
  .cloud-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: rgba(251,248,241,0.08);
    border: 1px solid rgba(251,248,241,0.08);
  }
  .cloud-card {
    background: var(--ink); padding: 40px 32px;
    text-decoration: none; color: var(--paper);
    transition: background 0.3s; position: relative; overflow: hidden;
  }
  .cloud-card::before {
    content: ""; position: absolute; top: 0; right: 0;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,91,46,0.08), transparent 50%);
    transform: translate(50%, -50%) scale(0); transition: transform 0.6s ease;
  }
  .cloud-card:hover::before { transform: translate(50%, -50%) scale(1); }
  .cloud-card:hover { background: var(--ink-2); }
  .cloud-card:hover h3 { color: var(--accent); }
  .cloud-card > * { position: relative; z-index: 1; }
  .cloud-icon {
    width: 56px; height: 56px;
    background: rgba(251,248,241,0.06);
    border: 1px solid rgba(251,248,241,0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 28px;
  }
  .cloud-card h3 { font-size: 22px; margin-bottom: 12px; font-weight: 500; transition: color 0.3s; }
  .cloud-card p { font-size: 14px; color: rgba(251,248,241,0.55); line-height: 1.5; margin-bottom: 16px; }
  .cloud-card .meta {
    display: flex; gap: 8px; flex-wrap: wrap;
  }
  .cloud-card .chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; padding: 4px 10px;
    border: 1px solid rgba(251,248,241,0.15);
    border-radius: 999px; color: rgba(251,248,241,0.55);
    text-transform: uppercase; letter-spacing: 0.06em;
  }
  @media (max-width: 880px) { .cloud-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 480px) { .cloud-grid { grid-template-columns: 1fr; } }

  /* ---------- Engine Room (capabilities) ---------- */
  .engine-room {
    background: var(--ink); color: var(--paper);
    position: relative; overflow: hidden;
  }
  .er-bg {
    position: absolute; inset: 0;
    background-image:
      radial-gradient(circle at 15% 20%, rgba(255,91,46,0.10), transparent 35%),
      radial-gradient(circle at 85% 80%, rgba(0,214,126,0.09), transparent 35%),
      radial-gradient(circle at 70% 30%, rgba(107,138,255,0.07), transparent 35%);
    pointer-events: none;
  }
  .engine-room::after {
    content: ""; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(251,248,241,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(251,248,241,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  }
  .engine-room .container { position: relative; z-index: 1; }
  .engine-room .section-head h2 { color: var(--paper); }
  .engine-room .section-head h2 em {
    background: linear-gradient(120deg, var(--accent), var(--live));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .engine-room .section-head p { color: rgba(251,248,241,0.6); }

  .er-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .er-panel {
    background: rgba(251,248,241,0.025);
    border: 1px solid rgba(251,248,241,0.08);
    border-radius: 18px;
    padding: 26px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative; overflow: hidden;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, border-color 0.4s ease;
  }
  .er-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(251,248,241,0.18);
  }
  .er-panel::before {
    content: ""; position: absolute;
    top: 0; left: 24px; right: 24px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--panel-accent, var(--accent)), transparent);
    opacity: 0.7;
  }
  .ai-panel { --panel-accent: #FF5B2E; }
  .sec-panel { --panel-accent: #00D67E; }
  .data-panel { --panel-accent: #6B8AFF; }
  .auto-panel { --panel-accent: #FFB85C; }

  .er-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 14px; margin-bottom: 18px;
    border-bottom: 1px solid rgba(251,248,241,0.08);
  }
  .er-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(251,248,241,0.75);
    display: inline-flex; align-items: center; gap: 9px;
  }
  .er-bullet {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--panel-accent, var(--accent));
    box-shadow: 0 0 12px var(--panel-accent, var(--accent));
    animation: pulse 1.8s infinite;
  }
  .er-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: 0.1em;
    color: var(--panel-accent, var(--accent));
    padding: 4px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(251,248,241,0.06);
    border-radius: 999px;
  }
  .micro-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(251,248,241,0.4);
    margin-bottom: 8px;
  }

  /* ---- AI panel ---- */
  .ai-task {
    background: rgba(255,91,46,0.06);
    border: 1px solid rgba(255,91,46,0.18);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
  }
  .ai-task .task-text {
    font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
    color: var(--paper); margin-top: 2px;
  }
  .ai-progress {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    color: rgba(251,248,241,0.55);
  }
  .progress-bar {
    flex: 1; height: 4px; background: rgba(251,248,241,0.08);
    border-radius: 2px; overflow: hidden;
  }
  .progress-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--accent), #FFB85C);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent);
    animation: aiFill 5s ease-out infinite;
  }
  @keyframes aiFill {
    0% { width: 0; }
    70% { width: 92%; }
    85% { width: 100%; }
    100% { width: 100%; }
  }
  .ai-stream {
    background: rgba(0,0,0,0.28);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
    border-left: 2px solid var(--accent);
  }
  .stream-text {
    font-family: 'Inter Tight', sans-serif;
    font-size: 13.5px; line-height: 1.55;
    color: rgba(251,248,241,0.85);
  }
  .caret-ai {
    display: inline-block; width: 7px; height: 14px;
    background: var(--accent); margin-left: 2px;
    vertical-align: middle; animation: blink2 0.8s infinite;
  }
  .ai-tags {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 12px;
  }
  .ai-tag {
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    padding: 8px 12px;
    background: rgba(251,248,241,0.03);
    border: 1px solid rgba(251,248,241,0.05);
    border-radius: 6px;
  }
  .tag-key { color: rgba(251,248,241,0.45); letter-spacing: 0.08em; }
  .tag-val { color: var(--paper); font-weight: 500; letter-spacing: 0.06em; }
  .tag-val.pos { color: var(--live); }
  .tag-val.warn { color: var(--accent); }
  .ai-foot {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: 0.05em;
    color: rgba(251,248,241,0.35);
    padding-top: 12px; margin-top: auto;
    border-top: 1px solid rgba(251,248,241,0.05);
  }

  /* ---- Security panel ---- */
  .sec-shield {
    display: flex; flex-direction: column; align-items: center;
    padding: 6px 0 16px;
    position: relative;
  }
  .sec-shield svg {
    color: var(--live);
    filter: drop-shadow(0 0 14px rgba(0,214,126,0.5));
    margin-bottom: 8px;
    position: relative; z-index: 2;
  }
  .shield-pulse {
    position: absolute;
    top: 8px; left: 50%;
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 2px solid var(--live);
    transform: translateX(-50%);
    opacity: 0;
    animation: shieldPulse 2.5s ease-out infinite;
    z-index: 1;
  }
  @keyframes shieldPulse {
    0% { transform: translateX(-50%) scale(0.7); opacity: 0.7; }
    100% { transform: translateX(-50%) scale(1.8); opacity: 0; }
  }
  .sec-headline {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 26px; font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--live);
  }
  .sec-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: rgba(251,248,241,0.5);
    margin-top: 4px;
  }
  .sec-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin-bottom: 16px;
    padding: 14px;
    background: rgba(0,0,0,0.22);
    border-radius: 10px;
  }
  .sec-stat { text-align: center; }
  .sec-num {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 20px; font-weight: 400;
    letter-spacing: -0.02em;
  }
  .sec-lbl {
    font-family: 'JetBrains Mono', monospace; font-size: 9px;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(251,248,241,0.45); margin-top: 4px;
  }
  .sec-feed { flex: 1; display: flex; flex-direction: column; }
  .sec-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    border-bottom: 1px solid rgba(251,248,241,0.04);
    opacity: 0; animation: rowIn 0.6s forwards;
  }
  .sec-row:last-child { border-bottom: none; }
  .sec-row:nth-child(2) { animation-delay: 0.3s; }
  .sec-row:nth-child(3) { animation-delay: 0.7s; }
  .sec-row:nth-child(4) { animation-delay: 1.1s; }
  .sec-row:nth-child(5) { animation-delay: 1.5s; }
  .sec-tag {
    padding: 2px 8px; border-radius: 4px;
    font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
    flex-shrink: 0;
  }
  .sec-tag.block { background: rgba(255,91,46,0.18); color: var(--accent); }
  .sec-tag.scan { background: rgba(107,138,255,0.18); color: var(--info); }
  .sec-tag.auth { background: rgba(0,214,126,0.18); color: var(--live); }
  .sec-tag.policy { background: rgba(255,184,92,0.18); color: #FFB85C; }
  .sec-msg { flex: 1; color: rgba(251,248,241,0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sec-time { color: rgba(251,248,241,0.35); flex-shrink: 0; }

  /* ---- Data panel ---- */
  .pipeline {
    display: flex; align-items: center;
    gap: 4px; margin-bottom: 16px;
    padding: 18px 12px;
    background: rgba(0,0,0,0.22);
    border-radius: 10px;
  }
  .node { flex-shrink: 0; text-align: center; width: 56px; }
  .node-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(107,138,255,0.1);
    border: 1px solid rgba(107,138,255,0.35);
    color: var(--info);
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0 auto;
    position: relative;
  }
  .node-icon::after {
    content: ""; position: absolute;
    inset: -3px; border-radius: 12px;
    border: 1px solid var(--info);
    opacity: 0;
    animation: nodePulse 4s infinite;
  }
  .pipeline > .node:nth-child(3) .node-icon::after { animation-delay: 1s; }
  .pipeline > .node:nth-child(5) .node-icon::after { animation-delay: 2s; }
  .pipeline > .node:nth-child(7) .node-icon::after { animation-delay: 3s; }
  @keyframes nodePulse {
    0%, 75% { transform: scale(1); opacity: 0; }
    80% { opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
  }
  .node-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5px; letter-spacing: 0.06em;
    color: rgba(251,248,241,0.5);
    text-transform: uppercase;
    margin-top: 6px;
    white-space: nowrap;
  }
  .connector {
    flex: 1; height: 2px;
    background: rgba(107,138,255,0.15);
    border-radius: 1px;
    position: relative;
    margin-bottom: 22px;
    overflow: hidden;
  }
  .packet {
    position: absolute;
    top: -2px; left: 0;
    width: 16px; height: 6px;
    background: linear-gradient(90deg, transparent, var(--info), transparent);
    border-radius: 3px;
    box-shadow: 0 0 8px var(--info);
    animation: packetFlow 3s linear infinite;
  }
  .pipeline > .connector:nth-child(4) .packet { animation-delay: 1s; }
  .pipeline > .connector:nth-child(6) .packet { animation-delay: 2s; }
  @keyframes packetFlow {
    0% { left: -10%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
  }
  .data-insight {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(255,184,92,0.07);
    border: 1px solid rgba(255,184,92,0.20);
    border-radius: 8px;
    margin-bottom: 14px;
  }
  .insight-bullet { color: #FFB85C; font-size: 14px; flex-shrink: 0; }
  .insight-text {
    color: rgba(251,248,241,0.85);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; letter-spacing: 0.02em;
  }
  .data-query { flex: 1; display: flex; flex-direction: column; }
  .query-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px; line-height: 1.6;
    color: rgba(251,248,241,0.85);
    background: rgba(0,0,0,0.32);
    padding: 14px;
    border-radius: 8px 8px 0 0;
    border-left: 2px solid var(--info);
    margin: 0;
    overflow-x: auto;
    white-space: pre;
  }
  .query-code .kw { color: var(--info); font-weight: 600; }
  .query-code .fn { color: #FFB85C; }
  .query-code .str { color: var(--live); }
  .query-result {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(251,248,241,0.6);
    padding: 8px 14px;
    background: rgba(0,0,0,0.16);
    border-left: 2px solid var(--info);
    border-radius: 0 0 8px 8px;
  }

  /* ---- Automation panel ---- */
  .workflow {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 10px;
    background: rgba(0,0,0,0.22);
    border-radius: 10px;
    margin-bottom: 16px;
  }
  .wf-node { flex-shrink: 0; width: 60px; text-align: center; }
  .wf-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(255,184,92,0.08);
    border: 1px solid rgba(255,184,92,0.28);
    color: #FFB85C;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    transition: all 0.4s;
    animation: wfActive 4s infinite;
  }
  .workflow > .wf-node:nth-child(3) .wf-icon { animation-delay: 1s; }
  .workflow > .wf-node:nth-child(5) .wf-icon { animation-delay: 2s; }
  .workflow > .wf-node:nth-child(7) .wf-icon { animation-delay: 3s; }
  @keyframes wfActive {
    0%, 20%, 100% { background: rgba(255,184,92,0.08); color: #FFB85C; box-shadow: none; }
    5%, 15% { background: #FFB85C; color: var(--ink); box-shadow: 0 0 22px rgba(255,184,92,0.6); }
  }
  .wf-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; letter-spacing: 0.06em;
    color: rgba(251,248,241,0.5);
    margin-top: 6px;
    text-transform: uppercase;
  }
  .wf-arrow {
    flex: 1; height: 2px;
    background: rgba(255,184,92,0.15);
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
  }
  .wf-arrow::after {
    content: ""; position: absolute;
    top: 0; left: -30%;
    width: 30%; height: 100%;
    background: linear-gradient(90deg, transparent, #FFB85C, transparent);
    animation: wfPulse 4s linear infinite;
  }
  .workflow > .wf-arrow:nth-child(4)::after { animation-delay: 1s; }
  .workflow > .wf-arrow:nth-child(6)::after { animation-delay: 2s; }
  @keyframes wfPulse {
    0%, 25%, 100% { left: -30%; }
    5% { left: -30%; }
    20% { left: 100%; }
  }
  .auto-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin-bottom: 14px;
  }
  .auto-stat {
    background: rgba(251,248,241,0.03);
    border: 1px solid rgba(251,248,241,0.05);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
  }
  .auto-num {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 22px; font-weight: 400; letter-spacing: -0.02em;
  }
  .auto-lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; color: rgba(251,248,241,0.45);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-top: 4px;
  }
  .auto-recent { flex: 1; display: flex; flex-direction: column; }
  .auto-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0;
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    border-bottom: 1px solid rgba(251,248,241,0.04);
    opacity: 0; animation: rowIn 0.6s forwards;
  }
  .auto-row:last-child { border-bottom: none; }
  .auto-row:nth-child(2) { animation-delay: 0.4s; }
  .auto-row:nth-child(3) { animation-delay: 0.8s; }
  .auto-row:nth-child(4) { animation-delay: 1.2s; }
  .auto-name { color: rgba(251,248,241,0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
  .auto-status-tag { color: var(--live); flex-shrink: 0; }

  @media (max-width: 880px) {
    .er-grid { grid-template-columns: 1fr; }
    .er-panel { min-height: auto; padding: 22px; }
    .pipeline { gap: 2px; padding: 14px 6px; }
    .node { width: 48px; }
    .node-icon { width: 38px; height: 38px; font-size: 9px; }
    .workflow { padding: 14px 4px; }
    .wf-node { width: 50px; }
    .wf-icon { width: 38px; height: 38px; font-size: 13px; }
  }

  /* ---------- Approach ---------- */
  .approach { background: var(--paper); }
  .approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .approach-step { border-top: 1px solid var(--ink); padding-top: 24px; position: relative; }
  .approach-step::before {
    content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0;
    background: var(--accent); transition: width 1s ease;
  }
  .approach-step.in::before { width: 30%; }
  .approach-step .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 60px; }
  .approach-step h3 { font-size: 24px; font-weight: 500; margin-bottom: 12px; }
  .approach-step p { font-size: 14.5px; color: var(--ink-soft); }
  @media (max-width: 880px) {
    .approach-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .approach-step .num { margin-bottom: 30px; }
  }
  @media (max-width: 480px) {
    .approach-grid { grid-template-columns: 1fr; }
    .approach-step .num { margin-bottom: 16px; }
  }

  /* ---------- Clients marquee ---------- */
  .clients {
    padding: 60px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden; background: var(--bg);
  }
  .clients-head { text-align: center; margin-bottom: 36px; }
  .clients-head .eyebrow { justify-content: center; }
  .clients-head .eyebrow::before { display: none; }
  .marquee { display: flex; gap: 60px; animation: scroll 40s linear infinite; width: max-content; }
  .marquee span {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 32px; font-weight: 300;
    color: var(--ink); opacity: 0.55;
    white-space: nowrap; letter-spacing: -0.02em;
  }
  .marquee span::after { content: "•"; margin-left: 60px; color: var(--accent); opacity: 0.6; }
  @keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ---------- CTA ---------- */
  .cta { background: var(--accent); color: var(--ink); padding: 120px 0; position: relative; overflow: hidden; }
  .cta::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      radial-gradient(circle at 20% 100%, #FF8E5C, transparent 50%),
      radial-gradient(circle at 90% 0%, #FFB85C, transparent 50%);
    pointer-events: none;
  }
  .cta::after {
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.15 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply; opacity: 0.4; pointer-events: none;
  }
  .cta .container { position: relative; z-index: 1; }
  .cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; }
  .cta h2 { font-size: clamp(44px, 7vw, 92px); line-height: 0.95; font-weight: 400; }
  .cta h2 em { font-style: italic; font-weight: 300; }
  .cta-info { padding-bottom: 12px; }
  .cta-info-block { border-top: 1px solid rgba(14,16,24,0.25); padding: 18px 0; }
  .cta-info-block .lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.6; margin-bottom: 6px; }
  .cta-info-block .val { font-size: 17px; font-weight: 500; }
  .cta-info-block a { color: var(--ink); text-decoration: none; }
  .cta-info-block a:hover { text-decoration: underline; }
  .cta-btn {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--ink); color: var(--paper);
    padding: 18px 28px; border-radius: 999px;
    text-decoration: none; font-size: 16px; font-weight: 500;
    margin-top: 24px; transition: transform 0.2s; cursor: none;
  }
  .cta-btn:hover { transform: translateY(-2px); }
  @media (max-width: 880px) {
    .cta { padding: 80px 0; }
    .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  }

  /* ---------- Footer ---------- */
  .footer { background: var(--ink); color: rgba(251,248,241,0.7); padding: 80px 0 32px; }

  /* Brand strip above the columns */
  .footer-top {
    display: flex; align-items: flex-start; gap: 48px;
    padding-bottom: 40px; margin-bottom: 40px;
    border-bottom: 1px solid rgba(251,248,241,0.1);
    flex-wrap: wrap;
  }
  .footer-brand { flex: 0 0 auto; max-width: 320px; }
  .footer-brand .logo { color: var(--paper); }
  .footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.65; opacity: 0.7; }
  .footer-certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .cert-badge {
    font-family: 'JetBrains Mono', monospace; font-size: 10px;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(251,248,241,0.6); border: 1px solid rgba(251,248,241,0.18);
    border-radius: 4px; padding: 4px 8px;
  }

  /* 5-column links grid */
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    margin-bottom: 60px;
  }
  .footer-col h4 {
    color: var(--paper); font-size: 11.5px; font-weight: 600;
    margin-bottom: 16px; font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase; letter-spacing: 0.12em;
  }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 9px; }
  .footer-col a {
    color: rgba(251,248,241,0.5); text-decoration: none;
    font-size: 13.5px; transition: color 0.2s; line-height: 1.4;
  }
  .footer-col a:hover { color: var(--accent); }
  .footer-col button {
    background: none; border: none; padding: 0; cursor: pointer;
    color: rgba(251,248,241,0.5); font-size: 13.5px;
    font-family: inherit; transition: color 0.2s;
  }
  .footer-col button:hover { color: var(--accent); }
  .footer-bottom {
    padding-top: 32px; border-top: 1px solid rgba(251,248,241,0.1);
    display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 16px; font-size: 13px;
  }
  .footer-bottom a { color: rgba(251,248,241,0.55); text-decoration: none; margin-right: 14px; }
  .footer-bottom a:hover { color: var(--accent); }

  /* Responsive footer */
  @media (max-width: 1100px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  }
  @media (max-width: 760px) {
    .footer-top { gap: 24px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  }
  @media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .footer-bottom { flex-direction: column; gap: 12px; }
  }
  @media (max-width: 360px) {
    .footer-grid { grid-template-columns: 1fr; }
  }

  /* ---------- Reveal ---------- */
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
  .reveal.in { opacity: 1; transform: none; }

  a, button, .service-card, .cloud-card, .nav-cta, .btn, .cta-btn { cursor: none; }
  @media (hover: none) {
    a, button, .service-card, .cloud-card, .nav-cta, .btn, .cta-btn { cursor: pointer; }
  }

/* ---------- Real logo styling ---------- */
.logo-mark {
  width: 38px; height: 38px;
  background: var(--ink);
  border-radius: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid rgba(14,16,24,0.06);
}
.logo-mark::after { display: none !important; }
.logo-mark img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  border-radius: 50%;
}
.footer .logo-mark {
  background: rgba(251,248,241,0.06);
  border-color: rgba(251,248,241,0.1);
}
.cta .logo-mark { background: rgba(14,16,24,0.08); }

/* ---------- Sub-page hero ---------- */
.subhero {
  padding: 70px 0 60px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.subhero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.subhero-bg .blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.45;
}
.subhero-bg .b1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -120px; right: 8%;
  animation: float1 22s ease-in-out infinite;
}
.subhero-bg .b2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #C8DDFF, transparent 70%);
  bottom: -100px; left: 10%;
  animation: float3 26s ease-in-out infinite;
}
.subhero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: end;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--ink); }
.subhero h1 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 400; line-height: 0.96; letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.subhero h1 em {
  font-style: italic; font-weight: 300;
  background: linear-gradient(120deg, var(--accent), #FFB85C);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.subhero p.lede {
  font-size: 18px; color: var(--ink-soft);
  max-width: 540px; line-height: 1.5;
}
.subhero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 28px;
}
@media (max-width: 880px) {
  .subhero-grid { grid-template-columns: 1fr; gap: 32px; }
  .subhero { padding: 40px 0 50px; }
}

/* ---------- Demo cards (universal sub-page widget styling) ---------- */
.demo {
  background: var(--ink); color: var(--paper);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px -20px rgba(14,16,24,0.35);
  position: relative;
  overflow: hidden;
  min-height: 380px;
}
.demo::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255,91,46,0.16), transparent 55%);
  pointer-events: none;
}
.demo-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(251,248,241,0.08);
  position: relative;
}
.demo-head .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.7;
}
.demo-head .status {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--live);
}
.demo-content { position: relative; z-index: 1; }

/* Generic stat row */
.stat-row { display: grid; gap: 10px; margin-bottom: 14px; }
.stat-row.cols-2 { grid-template-columns: 1fr 1fr; }
.stat-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.stat-pill {
  background: rgba(251,248,241,0.04);
  border: 1px solid rgba(251,248,241,0.08);
  border-radius: 10px;
  padding: 12px;
}
.stat-pill .v {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 24px; font-weight: 400; letter-spacing: -0.02em; line-height: 1;
}
.stat-pill .v .unit { font-size: 13px; opacity: 0.5; margin-left: 2px; }
.stat-pill .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.55;
  margin-top: 6px;
}

.bar-row {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  margin-bottom: 10px;
}
.bar-row .name { width: 95px; opacity: 0.75; flex-shrink: 0; }
.bar-row .track {
  flex: 1; height: 6px;
  background: rgba(251,248,241,0.07);
  border-radius: 3px; overflow: hidden;
  position: relative;
}
.bar-row .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #FFB85C);
  border-radius: 3px;
  width: 0;
  animation: barFill 1.2s ease-out forwards;
  box-shadow: 0 0 12px rgba(255,91,46,0.4);
}
.bar-row .fill.green { background: linear-gradient(90deg, #00D67E, #6FF0AE); box-shadow: 0 0 12px rgba(0,214,126,0.4); }
.bar-row .fill.blue  { background: linear-gradient(90deg, #6B8AFF, #A8BAFF); box-shadow: 0 0 12px rgba(107,138,255,0.4); }
.bar-row .pct { width: 42px; text-align: right; opacity: 0.7; flex-shrink: 0; }
@keyframes barFill { from { width: 0; } }

/* ---------- Section blocks ---------- */
.block { padding: 90px 0; }
.block.alt { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.block.dark { background: var(--ink); color: var(--paper); }
.block.dark .eyebrow { color: rgba(251,248,241,0.55); }
.block.dark .eyebrow::before { background: rgba(251,248,241,0.4); }
.block.dark h2 { color: var(--paper); }
.block.dark p { color: rgba(251,248,241,0.7); }

.block-head { margin-bottom: 50px; max-width: 720px; }
.block-head h2 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400; letter-spacing: -0.03em; line-height: 1;
  margin-top: 18px;
}
.block-head h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
.block-head p { color: var(--ink-soft); font-size: 17px; margin-top: 18px; max-width: 560px; }

/* Two-column content */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.two-col h3 { font-family: 'Bricolage Grotesque', serif; font-size: 28px; font-weight: 500; margin-bottom: 16px; }
.two-col p { color: var(--ink-soft); margin-bottom: 14px; }
.block.dark .two-col p { color: rgba(251,248,241,0.7); }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* Feature list */
.feature-list { list-style: none; padding: 0; margin-top: 24px; border-top: 1px solid var(--line-soft); }
.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px;
}
.feature-list li::before {
  content: "→"; color: var(--accent);
  font-family: 'Bricolage Grotesque', serif; font-size: 18px;
  flex-shrink: 0;
}
.block.dark .feature-list { border-top-color: rgba(251,248,241,0.1); }
.block.dark .feature-list li { border-bottom-color: rgba(251,248,241,0.1); }

/* Tile grid */
.tile-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.tile {
  background: var(--bg);
  padding: 32px 28px;
  min-height: 200px;
  position: relative;
}
.tile .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.tile h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 500;
  margin-bottom: 10px;
}
.tile p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.block.alt .tile { background: var(--paper); }
.block.dark .tile-grid { background: rgba(251,248,241,0.08); border-color: rgba(251,248,241,0.08); }
.block.dark .tile { background: var(--ink); color: var(--paper); }
.block.dark .tile .num { color: rgba(251,248,241,0.5); }
.block.dark .tile p { color: rgba(251,248,241,0.55); }
@media (max-width: 880px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tile-grid { grid-template-columns: 1fr; } }

/* CTA strip */
.cta-strip {
  background: var(--accent); color: var(--ink);
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 100%, #FF8E5C, transparent 50%),
    radial-gradient(circle at 90% 0%, #FFB85C, transparent 50%);
  pointer-events: none;
}
.cta-strip .container {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.cta-strip h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400; letter-spacing: -0.03em; line-height: 1.05;
  flex: 1;
  min-width: 280px;
}
.cta-strip h3 em { font-style: italic; font-weight: 300; }
.cta-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-strip .btn-primary { background: var(--ink); color: var(--paper); }
.cta-strip .btn-primary:hover { background: var(--paper); color: var(--ink); }
.cta-strip .btn-ghost { border-color: rgba(14,16,24,0.3); color: var(--ink); }
.cta-strip .btn-ghost:hover { border-color: var(--ink); }

/* Pipeline / process steps */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.process-step {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}
.block.dark .process-step { border-top-color: var(--paper); }
.process-step .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 50px;
}
.process-step h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 500; margin-bottom: 10px;
}
.process-step p { color: var(--ink-soft); font-size: 14.5px; }
.block.dark .process-step p { color: rgba(251,248,241,0.6); }
@media (max-width: 880px) { .process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }

/* Code block */
.codeblock {
  background: #0A0C12;
  border: 1px solid rgba(251,248,241,0.08);
  border-radius: 12px;
  padding: 20px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.65;
  color: rgba(251,248,241,0.85);
  overflow-x: auto;
}
.codeblock .kw { color: #6B8AFF; font-weight: 600; }
.codeblock .fn { color: #FFB85C; }
.codeblock .str { color: #00D67E; }
.codeblock .com { color: rgba(251,248,241,0.4); font-style: italic; }

/* Timeline (for About page) */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--line-soft);
  margin-top: 30px;
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -38px; top: 6px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line-soft);
}
.timeline-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 6px;
}
.timeline-item h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 500; margin-bottom: 8px;
}
.timeline-item p { color: var(--ink-soft); font-size: 15px; }

/* Job card */
.job-list { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.job-card {
  background: var(--bg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  text-decoration: none; color: inherit;
  transition: background 0.3s;
}
.job-card:hover { background: var(--ink); color: var(--paper); }
.job-card:hover .job-meta { color: rgba(251,248,241,0.6); }
.job-card:hover .job-arrow { transform: translateX(4px); color: var(--accent); }
.job-card h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 500; margin-bottom: 6px;
}
.job-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--muted);
  letter-spacing: 0.04em;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.job-arrow {
  width: 22px; height: 22px;
  transition: transform 0.3s, color 0.3s;
  flex-shrink: 0;
}

/* Phone mockup (for mobile-apps page) */
.phone {
  width: 220px; margin: 0 auto;
  border: 8px solid var(--ink);
  border-radius: 32px;
  padding: 4px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(14,16,24,0.4);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 18px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  width: 100%; aspect-ratio: 9/19;
  background: linear-gradient(135deg, #1a1d2a, #0E1018);
  border-radius: 24px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 32px 14px 14px;
  font-family: 'Inter Tight', sans-serif;
  color: var(--paper);
}

/* Lighthouse-style score circles */
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.score-circle {
  position: relative;
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.score-circle svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.score-circle .ring-bg { fill: none; stroke: rgba(251,248,241,0.08); }
.score-circle .ring { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.5s ease; }
.score-circle.green .ring { stroke: var(--live); }
.score-circle.amber .ring { stroke: #FFB85C; }
.score-circle .num {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 500;
  position: relative; z-index: 1;
}
.score-circle .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px; opacity: 0.6;
  text-transform: uppercase;
  margin-top: 2px;
  position: relative; z-index: 1;
  text-align: center;
  line-height: 1.1;
}

/* Funnel */
.funnel { display: flex; flex-direction: column; gap: 6px; }
.funnel-stage {
  display: flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.funnel-bar {
  height: 36px;
  background: linear-gradient(90deg, rgba(255,91,46,0.6), rgba(255,184,92,0.4));
  border-radius: 6px;
  display: flex; align-items: center; padding: 0 12px;
  font-weight: 500;
  color: var(--paper);
  transition: width 0.8s ease;
  box-shadow: 0 0 14px rgba(255,91,46,0.2);
}
.funnel-meta { width: 80px; text-align: right; flex-shrink: 0; opacity: 0.6; font-size: 10.5px; }

/* Compliance grid */
.compliance-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(251,248,241,0.03);
  border: 1px solid rgba(251,248,241,0.06);
  border-radius: 10px;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.compliance-row .name { flex: 1; color: rgba(251,248,241,0.85); font-weight: 500; }
.compliance-row .pct { color: var(--live); font-weight: 700; font-size: 13px; }
.compliance-row .check {
  width: 22px; height: 22px;
  border-radius: 50%; background: rgba(0,214,126,0.15);
  color: var(--live); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* Color palette demo */
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.swatch {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(251,248,241,0.08);
  position: relative;
  display: flex; align-items: flex-end;
  padding: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  color: var(--paper);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  letter-spacing: 0.04em;
}

/* Adjustments to bring back small footer logo */
.footer .logo-mark { width: 32px; height: 32px; }


/* =============================================================
   AI CHAT WIDGET
   ============================================================= */

.tp-chat-toggle {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: var(--ink); color: var(--paper);
  border: none; border-radius: 50%;
  cursor: pointer;
  z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px -8px rgba(14,16,24,0.45);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4),
              box-shadow 0.3s, background 0.2s;
  font-family: inherit;
}
.tp-chat-toggle.visible { transform: scale(1); }
.tp-chat-toggle:hover { background: var(--accent); box-shadow: 0 16px 40px -8px rgba(255,91,46,0.5); }
.tp-chat-toggle::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; background: var(--accent);
  z-index: -1; opacity: 0.45;
  animation: chatPulse 2.6s ease-out infinite;
}
@keyframes chatPulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
.tp-chat-toggle svg { width: 26px; height: 26px; transition: opacity 0.2s, transform 0.2s; }
.tp-chat-toggle .icon-close { position: absolute; opacity: 0; transform: rotate(-90deg) scale(0.6); }
.tp-chat-toggle.open .icon-chat { opacity: 0; transform: rotate(90deg) scale(0.6); }
.tp-chat-toggle.open .icon-close { opacity: 1; transform: rotate(0) scale(1); }
.tp-chat-toggle.open::before { animation: none; opacity: 0; }
.tp-chat-toggle .badge {
  position: absolute; top: 0; right: 0;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0);
  transition: transform 0.3s 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.tp-chat-toggle.has-badge .badge { transform: scale(1); }
.tp-chat-toggle.open .badge { transform: scale(0); }

.tp-chat-panel {
  position: fixed;
  bottom: 100px; right: 24px;
  width: 380px; height: 580px;
  max-height: calc(100vh - 130px);
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 24px 60px -12px rgba(14,16,24,0.32);
  border: 1px solid var(--line-soft);
  z-index: 9997;
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.tp-chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.tp-chat-header {
  background: var(--ink); color: var(--paper);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.tp-chat-avatar {
  width: 38px; height: 38px;
  background: rgba(251,248,241,0.06);
  border: 1px solid rgba(251,248,241,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', serif;
  font-size: 13px; font-weight: 600;
  color: var(--paper);
  position: relative;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.tp-chat-avatar::after {
  content: ""; position: absolute;
  bottom: -1px; right: -1px;
  width: 10px; height: 10px;
  background: var(--live);
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-shadow: 0 0 8px rgba(0,214,126,0.6);
}
.tp-chat-info { flex: 1; min-width: 0; }
.tp-chat-info .title {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 15px; font-weight: 500; line-height: 1.2;
  margin-bottom: 2px;
}
.tp-chat-info .status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: rgba(251,248,241,0.55);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.tp-chat-close {
  background: rgba(251,248,241,0.06);
  border: 1px solid rgba(251,248,241,0.1);
  color: var(--paper);
  width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  font-family: inherit;
}
.tp-chat-close:hover { background: rgba(251,248,241,0.14); }

.tp-chat-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 16px 14px 6px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.tp-chat-body::-webkit-scrollbar { width: 5px; }
.tp-chat-body::-webkit-scrollbar-track { background: transparent; }
.tp-chat-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.tp-msg {
  max-width: 86%;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 16px;
  animation: tpMsgIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  word-wrap: break-word;
}
.tp-msg.bot {
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
  border-bottom-left-radius: 5px;
  border: 1px solid var(--line-soft);
}
.tp-msg.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 5px;
}
.tp-msg.system {
  align-self: center;
  background: transparent;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  max-width: 100%;
}
.tp-msg strong { font-weight: 600; }
.tp-msg a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.tp-msg.user a { color: #FFB85C; }
.tp-msg p { margin: 0 0 6px; }
.tp-msg p:last-child { margin-bottom: 0; }
.tp-msg .info-line {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.tp-msg .info-line .ico { width: 14px; height: 14px; opacity: 0.6; flex-shrink: 0; }

@keyframes tpMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tp-chat-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 2px 0 4px;
  align-self: flex-start;
  max-width: 100%;
}
.tp-chat-action {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: 'Inter Tight', sans-serif;
  font-size: 12.5px; font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  animation: tpMsgIn 0.4s 0.15s both;
  font-family: inherit;
  white-space: nowrap;
}
.tp-chat-action:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  transform: translateY(-1px);
}
.tp-chat-action.primary {
  background: var(--accent); color: var(--ink); border-color: var(--accent);
}
.tp-chat-action.primary:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.tp-chat-action.link {
  background: transparent; border-color: transparent;
  color: var(--accent); padding: 5px 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.tp-chat-action.link:hover {
  background: transparent; color: var(--ink); transform: none;
}

.tp-chat-typing {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 16px; border-bottom-left-radius: 5px;
  padding: 14px 16px;
  display: inline-flex; gap: 5px;
  animation: tpMsgIn 0.3s both;
}
.tp-chat-typing span {
  width: 7px; height: 7px;
  background: var(--muted);
  border-radius: 50%;
  opacity: 0.4;
  animation: tpTyping 1.4s ease-in-out infinite;
}
.tp-chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.tp-chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes tpTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.tp-chat-input-wrap {
  border-top: 1px solid var(--line-soft);
  padding: 12px 12px 8px;
  background: var(--bg);
  position: relative;
  flex-shrink: 0;
}
.tp-chat-input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px 46px 10px 16px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13.5px;
  color: var(--ink);
  resize: none;
  max-height: 96px;
  min-height: 40px;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.4;
  display: block;
  box-sizing: border-box;
}
.tp-chat-input:focus { border-color: var(--ink); }
.tp-chat-input::placeholder { color: var(--muted); }
.tp-chat-send {
  position: absolute;
  bottom: 16px; right: 18px;
  width: 32px; height: 32px;
  background: var(--accent); color: var(--ink);
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
  font-family: inherit;
}
.tp-chat-send svg { width: 16px; height: 16px; }
.tp-chat-send:hover { transform: scale(1.05); background: var(--ink); color: var(--paper); }
.tp-chat-send:disabled { opacity: 0.35; cursor: not-allowed; transform: none; background: var(--line); color: var(--muted); }

.tp-chat-foot {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--muted);
  padding: 0 12px 8px;
  background: var(--bg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .tp-chat-panel {
    bottom: 0; right: 0; left: 0;
    width: 100%;
    height: 100vh; max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .tp-chat-toggle {
    bottom: 18px; right: 18px;
    width: 56px; height: 56px;
  }
}

@media print {
  .tp-chat-toggle, .tp-chat-panel { display: none !important; }
}

/* =============================================================
   NO-VACANCY CARD (Careers page)
   ============================================================= */

.no-vacancy-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: 36px 36px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}
.no-vacancy-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255,91,46,0.18), transparent 55%);
  pointer-events: none;
}
.no-vacancy-mark {
  width: 52px; height: 52px;
  background: rgba(255,91,46,0.14);
  border: 1px solid rgba(255,91,46,0.3);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.no-vacancy-mark svg { width: 24px; height: 24px; }
.no-vacancy-body { position: relative; z-index: 1; }
.no-vacancy-body h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 24px; font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.no-vacancy-body p {
  color: rgba(251,248,241,0.75);
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.6;
}
.no-vacancy-body p.no-vacancy-note {
  font-size: 13.5px;
  color: rgba(251,248,241,0.55);
  font-style: italic;
}
.no-vacancy-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 24px;
}
.no-vacancy-card .btn-primary {
  background: var(--accent); color: var(--ink); border-color: var(--accent);
}
.no-vacancy-card .btn-primary:hover {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.no-vacancy-card .btn-ghost {
  border-color: rgba(251,248,241,0.25);
  color: var(--paper);
}
.no-vacancy-card .btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(251,248,241,0.05);
}

@media (max-width: 720px) {
  .no-vacancy-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  .no-vacancy-mark { width: 44px; height: 44px; }
}

.no-vacancy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.no-vacancy-tile {
  background: var(--bg);
  padding: 28px 26px;
  min-height: 180px;
}
.no-vacancy-tile .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.08em; margin-bottom: 16px;
}
.no-vacancy-tile h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 19px; font-weight: 500;
  margin-bottom: 8px;
}
.no-vacancy-tile p {
  color: var(--ink-soft);
  font-size: 14px; line-height: 1.55;
}
@media (max-width: 880px) { .no-vacancy-grid { grid-template-columns: 1fr; } }

/* Footer btn-link for the chat-trigger contact button */
.footer .btn-link {
  background: none; border: none; padding: 0;
  color: rgba(251,248,241,0.55);
  font-family: inherit; font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
  text-align: left;
}
.footer .btn-link:hover { color: var(--paper); }

/* Nav-CTA as button (for legal pages where it's a chat trigger) */
.nav-cta[type="button"] {
  font-family: inherit;
  cursor: pointer;
}
.nav-mobile button[data-open-chat] {
  background: none; border: none;
  padding: 14px 0; color: var(--ink);
  font-size: 18px; font-family: 'Bricolage Grotesque', serif;
  border-bottom: 1px solid var(--line-soft);
  text-align: left; cursor: pointer;
  width: 100%;
}

/* Updated logo (64px nav, 56px footer) — these override the base */
.logo-mark { width: 64px; height: 64px; background: var(--bg); box-shadow: 0 2px 8px -2px rgba(14,16,24,0.12), 0 0 0 1px rgba(14,16,24,0.04); border: none; transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); }
.logo:hover .logo-mark { transform: scale(1.05) rotate(-3deg); }
.logo-mark img { image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
.footer .logo-mark { width: 56px; height: 56px; background: rgba(251,248,241,0.05); box-shadow: 0 0 0 1px rgba(251,248,241,0.1); }

/* =============================================================
   LEGAL PAGES
   ============================================================= */

.legal-hero { padding: 60px 0 50px; }
.legal-head { max-width: 880px; }
.legal-head h1 { font-size: clamp(36px, 5.5vw, 64px); }
.legal-head p.lede { max-width: 640px; }
.legal-meta {
  display: flex; gap: 12px; align-items: center;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em;
}
.legal-meta .sep { opacity: 0.4; }
.legal-meta strong { color: var(--ink); font-weight: 500; }

.legal-main { padding: 70px 0 100px; background: var(--paper); border-top: 1px solid var(--line-soft); }
.legal-main .container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 70px;
  align-items: start;
}

.legal-prose {
  max-width: 720px;
  font-size: 15.5px; line-height: 1.7;
  color: var(--ink);
}
.legal-prose h2 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500; letter-spacing: -0.02em;
  margin: 42px 0 14px;
  padding-top: 4px;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px; font-weight: 500;
  margin: 26px 0 8px;
  letter-spacing: -0.01em;
}
.legal-prose p { margin-bottom: 16px; color: var(--ink-soft); }
.legal-prose ul {
  list-style: none; padding: 0;
  margin: 0 0 18px;
}
.legal-prose ul li {
  position: relative;
  padding: 4px 0 4px 22px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.legal-prose ul li::before {
  content: "›";
  position: absolute;
  left: 0; top: 4px;
  color: var(--accent);
  font-weight: 600;
  font-family: 'Bricolage Grotesque', serif;
}
.legal-prose strong { color: var(--ink); font-weight: 600; }
.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal-prose a:hover { color: var(--ink); }

.legal-aside {
  position: sticky; top: 100px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 22px 24px;
}
.legal-aside h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 17px; font-weight: 500;
  margin-bottom: 10px;
}
.legal-aside p {
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.legal-aside p:last-child { margin-bottom: 0; }
.legal-aside strong { color: var(--ink); font-weight: 500; }
.legal-aside a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

@media (max-width: 880px) {
  .legal-main .container { grid-template-columns: 1fr; gap: 40px; }
  .legal-aside { position: static; }
}

/* =============================================================
   FIX: nav-mobile must be hidden on desktop too
   ============================================================= */
.nav-mobile { display: none; }
@media (max-width: 980px) {
  .nav-inner.open + .nav-mobile { display: flex !important; }
}

/* =============================================================
   FOOTER REGISTRATION LINE
   ============================================================= */

.footer-bottom-left { display: flex; flex-direction: column; gap: 4px; }
.footer-reg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(251,248,241,0.4);
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .footer-bottom-left { gap: 6px; }
  .footer-reg { font-size: 10.5px; line-height: 1.5; }
}

/* =============================================================
   404 PAGE
   ============================================================= */

.error-hero {
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.error-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.error-bg .blob {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
}
.error-bg .blob.b1 { background: var(--accent); top: -100px; right: -100px; }
.error-bg .blob.b2 { background: var(--info); bottom: -150px; left: 20%; opacity: 0.25; }

.error-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: center;
  position: relative; z-index: 1;
}
.error-content { max-width: 620px; }
.error-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.error-content h1 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400; line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.error-content h1 em {
  font-style: italic; font-weight: 300;
  color: var(--accent);
}
.error-content .lede {
  font-size: 17px; line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 32px; max-width: 540px;
}
.error-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.error-glyph {
  color: var(--ink);
  position: relative;
}
.error-glyph svg { width: 100%; height: auto; max-width: 320px; }

@media (max-width: 880px) {
  .error-grid { grid-template-columns: 1fr; gap: 30px; }
  .error-glyph { max-width: 220px; margin: 0 auto; }
}

.error-suggestions {
  background: var(--paper);
  padding: 80px 0 100px;
  border-top: 1px solid var(--line-soft);
}
.error-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.error-card {
  display: block;
  background: var(--bg);
  padding: 30px 28px 26px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  transition: background 0.25s;
  position: relative;
  min-height: 200px;
}
.error-card:hover {
  background: var(--ink);
  color: var(--paper);
}
.error-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.08em; margin-bottom: 18px;
}
.error-card h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.error-card p {
  font-size: 14px; line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.error-card:hover p { color: rgba(251,248,241,0.7); }
.error-card strong { color: inherit; font-weight: 500; }
.error-card .arrow-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
}
.error-card.error-card-cta { background: var(--ink); color: var(--paper); width: 100%; }
.error-card.error-card-cta p { color: rgba(251,248,241,0.65); }
.error-card.error-card-cta:hover { background: var(--accent); color: var(--ink); }
.error-card.error-card-cta:hover p, .error-card.error-card-cta:hover .arrow-text { color: var(--ink); }
.error-card.error-card-cta .arrow-text { color: var(--accent); }
.error-card.error-card-cta:hover .arrow-text { color: var(--ink); }

@media (max-width: 880px) {
  .error-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .error-links { grid-template-columns: 1fr; }
}


.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.result-card {
  background: var(--bg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-card .result-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.result-card .result-stat {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.result-card .result-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 14px;
}
.result-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 720px) {
  .result-grid { grid-template-columns: 1fr; }
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.faq-item {
  background: var(--bg);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  user-select: none;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--paper); }
.faq-item summary h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  flex: 1;
}
.faq-item .faq-icon {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 28px 24px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 760px;
}

/* Tile tag — for "Most common" callout in engagement tiles */
.tile-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  font-weight: 500;
}
/* =============================================================
   ADDITIONS FOR CONSULTING PAGE
   Append this to assets/style.css (alongside the digital marketing
   additions if you've already added those — these are different patterns)
   ============================================================= */

/* Defensive: if the previous rule in style.css is missing a closing
   brace, this comment-then-close-brace recovers parsing. Harmless if not. */
}

/* ---------- Engagement grid (3×2 cards) ---------- */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.engagement-card {
  background: var(--bg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.25s;
}
.engagement-card:hover {
  background: var(--paper);
}
.engagement-card .eng-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.engagement-card .eng-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.engagement-card h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.engagement-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 22px;
  flex: 1;
}
.engagement-card .eng-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-soft);
}
.engagement-card .eng-meta span {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.engagement-card .eng-meta strong {
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
}
@media (max-width: 980px) { .engagement-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .engagement-grid { grid-template-columns: 1fr; } }

/* ---------- Value grid (3×2 with icon cards) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  padding: 4px 0;
}
.value-card .value-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 91, 46, 0.1);
  border: 1px solid rgba(255, 91, 46, 0.25);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.value-card .value-icon svg {
  width: 22px;
  height: 22px;
}
.value-card h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.value-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 980px) { .value-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 640px)  { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Sector grid (3×2 with stat) ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.sector-card {
  background: var(--bg);
  padding: 30px 28px;
}
.sector-card .sector-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.sector-card .sector-stat {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(34px, 4vw, 42px);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.sector-card .sector-stat-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 14px;
}
.sector-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 980px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .sector-grid { grid-template-columns: 1fr; } }

/* ---------- Roadmap card (real engagement walkthrough) ---------- */
.roadmap-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: 36px 36px 30px;
  position: relative;
  overflow: hidden;
}
.roadmap-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle at top right, rgba(255,91,46,0.18), transparent 60%);
  pointer-events: none;
}
.roadmap-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(251,248,241,0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.roadmap-meta-item {
  background: rgba(251,248,241,0.04);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.roadmap-meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: rgba(251,248,241,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.roadmap-meta-val {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.01em;
}
@media (max-width: 880px) {
  .roadmap-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .roadmap-meta { grid-template-columns: 1fr; }
  .roadmap-card { padding: 28px 22px 22px; }
}

.roadmap-timeline {
  position: relative;
  z-index: 1;
}
.roadmap-phase {
  display: grid;
  grid-template-columns: 100px 200px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(251,248,241,0.08);
  align-items: start;
}
.roadmap-phase:last-child {
  border-bottom: 1px solid rgba(251,248,241,0.08);
}
.phase-week {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.phase-name {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.phase-detail {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(251,248,241,0.7);
}
@media (max-width: 880px) {
  .roadmap-phase { grid-template-columns: 1fr; gap: 8px; }
  .phase-name { font-size: 17px; }
}

/* ---------- Pricing grid (4 cards, one highlighted) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(14,16,24,0.18);
}
.pricing-card.highlighted {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pricing-card .pricing-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pricing-card.highlighted .pricing-tag { color: rgba(251,248,241,0.55); }
.pricing-card .pricing-amount {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.pricing-card.highlighted .pricing-amount { color: var(--paper); }
.pricing-card .pricing-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.pricing-card.highlighted .pricing-period { border-bottom-color: rgba(251,248,241,0.12); }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}
.pricing-features li {
  position: relative;
  padding: 5px 0 5px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.pricing-card.highlighted .pricing-features li { color: rgba(251,248,241,0.75); }
.pricing-features li::before {
  content: "›";
  position: absolute;
  left: 0; top: 5px;
  color: var(--accent);
  font-weight: 600;
}
.pricing-card .pricing-fit {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.pricing-card.highlighted .pricing-fit {
  color: rgba(251,248,241,0.55);
  border-top-color: rgba(251,248,241,0.12);
}
.pricing-card .pricing-badge {
  position: absolute;
  top: -10px; right: 18px;
  background: var(--accent);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
@media (max-width: 1080px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-note {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.pricing-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- FAQ accordion (shared with digital marketing if you've already added) ---------- */
/* Only add this block if you haven't already added it from digital-marketing-bundle */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.faq-item { background: var(--bg); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  user-select: none;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--paper); }
.faq-item summary h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  flex: 1;
}
.faq-item .faq-icon {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p {
  padding: 0 28px 24px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 760px;
}

/* =============================================================
   ADDITIONS FOR MISSING PAGES (services.html, about.html,
   what-we-support.html, pricing-and-plans.html, upcoming.html,
   blog article, sidebar article)

   Append this to assets/style.css
   ============================================================= */

/* Defensive: protects against unclosed rule in earlier style.css */
}

/* ---------- Active nav state ---------- */
.nav-links a.active {
  color: var(--accent);
}

/* ---------- Services dropdown ---------- */
.nav-links li { position: relative; }

.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 4px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 0.45;
  transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
}
.has-dropdown:hover > a::after,
.has-dropdown.open > a::after {
  transform: rotate(180deg);
  opacity: 0.9;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 8px;
  min-width: 230px;
  box-shadow: 0 16px 48px rgba(14,16,24,0.13), 0 2px 8px rgba(14,16,24,0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 300;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

/* Subtle bridge so mouse can move from link to dropdown without closing */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.dd-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px 4px;
}
.dd-divider {
  height: 1px;
  background: var(--line-soft);
  margin: 6px 4px;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  opacity: 1 !important;
  transition: background 0.14s, color 0.14s;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: rgba(255,91,46,0.07);
  color: var(--accent);
}
.dd-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255,91,46,0.08);
  border: 1px solid rgba(255,91,46,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.nav-dropdown a:hover .dd-icon {
  background: rgba(255,91,46,0.14);
}

/* Mobile nav: services sub-section */
.nav-mobile-section {
  padding: 0;
}
.nav-mobile-section .nm-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 0 4px;
}
.nav-mobile-sub {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 2px solid var(--line-soft);
  margin: 4px 0 8px;
  gap: 0;
}
.nav-mobile-sub a {
  font-size: 15px !important;
  padding: 9px 0 !important;
  font-family: 'Inter Tight', sans-serif !important;
  border-bottom: none !important;
  opacity: 0.8;
}
.nav-mobile-sub a:hover { opacity: 1 !important; color: var(--accent) !important; }

@media (max-width: 980px) {
  .nav-dropdown { display: none !important; }
}

/* ---------- Service-card-grid (services.html) ---------- */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.service-card-large {
  background: var(--bg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s, transform 0.25s;
}
.service-card-large:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}
.service-card-large .sc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.service-card-large h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: inherit;
}
.service-card-large p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 20px;
  flex: 1;
}
.service-card-large:hover p { color: rgba(251,248,241,0.7); }
.service-card-large .sc-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@media (max-width: 980px) { .service-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .service-card-grid { grid-template-columns: 1fr; } }

/* ---------- Stats row (about.html big number cards) ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.stat-card-big {
  background: var(--bg);
  padding: 32px 28px 28px;
}
.stat-card-big .stat-num {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.stat-card-big .stat-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}
.stat-card-big p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 880px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-row { grid-template-columns: 1fr; } }

/* ---------- Timeline (about.html) ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--line-soft);
  padding-left: 0;
  margin-left: 80px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 24px 0;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.timeline-row:last-child { border-bottom: none; }
.timeline-row::before {
  content: "";
  position: absolute;
  left: -7px; top: 32px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
  z-index: 1;
}
.timeline-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 2px;
  padding-left: 24px;
}
.timeline-body h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.timeline-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 720px) {
  .timeline { margin-left: 30px; }
  .timeline-row { grid-template-columns: 1fr; gap: 6px; padding-left: 24px; }
  .timeline-year { padding-left: 0; }
}

/* ---------- Value grid (reuse if not already added; same as consulting bundle) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card { padding: 4px 0; }
.value-card .value-icon {
  width: 44px; height: 44px;
  background: rgba(29, 78, 216, 0.1);
  border: 1px solid rgba(29, 78, 216, 0.25);
  color: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.value-card .value-icon svg { width: 22px; height: 22px; }
.value-card h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 19px; font-weight: 500;
  letter-spacing: -0.01em; margin-bottom: 10px;
}
.value-card p {
  font-size: 14.5px; line-height: 1.6;
  color: var(--ink-soft); margin: 0;
}
@media (max-width: 980px) { .value-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 640px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Certificate grid (about, what-we-support) ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cert-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 20px 22px;
}
.cert-card .cert-name {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 16px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.cert-card .cert-desc {
  font-size: 13px; line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 980px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cert-grid { grid-template-columns: 1fr; } }

/* ---------- Next-grid (about.html "where to next") ---------- */
.next-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.next-card {
  background: var(--bg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s;
}
.next-card:hover { background: var(--paper); }
.next-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.next-card h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.next-card p {
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-soft); margin: 0;
}
@media (max-width: 980px) { .next-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .next-grid { grid-template-columns: 1fr; } }

/* ---------- Stack-grid (what-we-support — cloud platforms) ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stack-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 24px 22px 22px;
}
.stack-card.primary { border-color: rgba(29, 78, 216, 0.35); background: rgba(29, 78, 216, 0.03); }
.stack-card .stack-name {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stack-card .stack-depth {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.stack-card p {
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-soft); margin: 0;
}
@media (max-width: 880px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stack-grid { grid-template-columns: 1fr; } }

/* ---------- Lang-grid (what-we-support — languages & tooling) ---------- */
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.lang-section h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.lang-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.lang-tag {
  display: inline-block;
  padding: 7px 14px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.lang-tag.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.lang-tag.muted {
  color: var(--muted);
  font-style: italic;
}
@media (max-width: 720px) { .lang-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Sector-grid (already in consulting bundle, included for safety) ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.sector-card {
  background: var(--bg);
  padding: 30px 28px;
}
.sector-card .sector-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.sector-card .sector-stat {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(34px, 4vw, 42px);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.sector-card .sector-stat-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 14px;
}
.sector-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 980px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sector-grid { grid-template-columns: 1fr; } }

/* ---------- "What we don't do" list ---------- */
.dont-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.dont-item {
  background: var(--bg);
  padding: 26px 24px 22px;
  position: relative;
}
.dont-item::before {
  content: "✕";
  position: absolute;
  top: 22px; right: 22px;
  color: var(--muted);
  font-size: 18px;
  opacity: 0.3;
}
.dont-item h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 30px 8px 0;
}
.dont-item p {
  font-size: 14px; line-height: 1.55;
  color: var(--ink-soft); margin: 0;
}
@media (max-width: 720px) { .dont-list { grid-template-columns: 1fr; } }

/* ---------- Pricing grid (already in consulting bundle) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 28px 24px 24px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -12px rgba(14,16,24,0.18); }
.pricing-card.highlighted { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pricing-card .pricing-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.pricing-card.highlighted .pricing-tag { color: rgba(251,248,241,0.55); }
.pricing-card .pricing-amount {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 28px; font-weight: 500;
  color: var(--ink); line-height: 1;
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.pricing-card.highlighted .pricing-amount { color: var(--paper); }
.pricing-card .pricing-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.05em; margin-bottom: 20px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line-soft);
}
.pricing-card.highlighted .pricing-period { border-bottom-color: rgba(251,248,241,0.12); }
.pricing-features { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.pricing-features li {
  position: relative;
  padding: 5px 0 5px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.pricing-card.highlighted .pricing-features li { color: rgba(251,248,241,0.75); }
.pricing-features li::before {
  content: "›";
  position: absolute;
  left: 0; top: 5px;
  color: var(--accent);
  font-weight: 600;
}
.pricing-card .pricing-fit {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.pricing-card.highlighted .pricing-fit {
  color: rgba(251,248,241,0.55);
  border-top-color: rgba(251,248,241,0.12);
}
.pricing-card .pricing-badge {
  position: absolute;
  top: -10px; right: 18px;
  background: var(--accent);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
@media (max-width: 1080px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- Project-pricing-grid (pricing-and-plans.html) ---------- */
.project-pricing-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}
.project-row {
  display: grid;
  grid-template-columns: 220px 150px 140px 1fr;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
  background: var(--bg);
}
.project-row:last-child { border-bottom: none; }
.project-row:hover { background: var(--paper); }
.project-name {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 16px; font-weight: 500;
  letter-spacing: -0.01em;
}
.project-price {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px; font-weight: 500;
  color: var(--accent);
}
.project-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.05em;
}
.project-detail {
  font-size: 13.5px; line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 980px) {
  .project-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- FAQ accordion (shared) ---------- */
.faq-list {
  display: flex; flex-direction: column;
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.faq-item { background: var(--bg); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; user-select: none; transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--paper); }
.faq-item summary h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em; margin: 0;
  color: var(--ink); flex: 1;
}
.faq-item .faq-icon {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 300;
  color: var(--accent);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p {
  padding: 0 28px 24px; margin: 0;
  font-size: 14.5px; line-height: 1.65;
  color: var(--ink-soft); max-width: 760px;
}

/* ---------- Upcoming events ---------- */
.featured-event {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 40px;
}
.event-date-block {
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 24px 16px 20px;
}
.event-date-block .event-day {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}
.event-date-block .event-month {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-top: 4px;
}
.event-date-block .event-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(251,248,241,0.5);
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.event-content .event-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.event-type {
  background: rgba(0,214,126,0.1);
  color: #00a85f;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.event-time {
  color: var(--muted);
}
.event-content h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.event-content p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.event-speakers {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.speaker { display: flex; align-items: center; gap: 12px; }
.speaker-avatar {
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em;
}
.speaker-info .speaker-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
}
.speaker-info .speaker-role {
  font-size: 12px; color: var(--muted);
}
@media (max-width: 720px) {
  .featured-event { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}
.event-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 28px;
  padding: 22px 28px;
  background: var(--bg);
  align-items: center;
}
.event-row:hover { background: var(--paper); }
.event-row-date {
  text-align: center;
  border-right: 1px solid var(--line-soft);
  padding-right: 28px;
}
.event-row-day {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.event-row-month {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.event-row-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.event-row-content h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.event-row-content p {
  font-size: 13.5px; line-height: 1.5;
  color: var(--ink-soft); margin: 0;
}
.btn-small {
  display: inline-block;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-small:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 720px) {
  .event-row { grid-template-columns: 80px 1fr; gap: 18px; padding: 18px 20px; }
  .event-row-date { padding-right: 18px; }
  .event-row-action { grid-column: 2; padding-top: 6px; }
}

.past-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.past-card {
  background: var(--bg);
  padding: 28px 24px;
}
.past-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.past-card h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.past-card p {
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.past-link {
  background: none; border: none; padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 500;
}
.past-link:hover { text-decoration: underline; }
@media (max-width: 880px) { .past-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .past-grid { grid-template-columns: 1fr; } }

.newsletter-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter-card::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.22), transparent 60%);
  pointer-events: none;
}
.newsletter-body { position: relative; z-index: 1; }
.newsletter-body h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  margin-top: 12px;
}
.newsletter-body h3 em { font-style: italic; color: var(--accent); }
.newsletter-body p {
  font-size: 15px; line-height: 1.6;
  color: rgba(251,248,241,0.7);
  margin: 0; max-width: 580px;
}
.newsletter-card .btn { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .newsletter-card { grid-template-columns: 1fr; padding: 32px; }
}

/* ============================================================
   ARTICLE STYLES (blog post + sidebar article)
   ============================================================ */

.article-header {
  padding: 80px 0 50px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.article-header.compact { padding: 60px 0 36px; }
.article-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}
.article-meta-sep { opacity: 0.5; }
.article-tag {
  background: var(--accent);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
}
.article-h1 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 900px;
}
.article-h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.article-standfirst {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 760px;
  margin-bottom: 32px;
  font-style: italic;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.author-avatar {
  width: 48px; height: 48px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em;
}
.author-info .author-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.5px; font-weight: 600;
  color: var(--ink);
}
.author-info .author-role {
  font-size: 12.5px; color: var(--muted);
}

.article-body {
  padding: 60px 0 40px;
}
.article-container {
  max-width: 780px;
}
.article-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 32px;
  font-weight: 400;
}
.article-lede em { font-style: italic; color: var(--accent); font-weight: 500; }
.article-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 22px;
}
.article-body p strong { color: var(--ink); font-weight: 600; }
.article-body p em { font-style: italic; color: var(--ink); }
.article-h2 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 48px 0 18px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.article-h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.article-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-weight: 400;
}
.article-hr {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 48px 0 32px;
}
.article-list {
  margin: 16px 0 28px;
  padding-left: 22px;
}
.article-list li {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 10px;
}

.pull-quote {
  margin: 32px 0;
  padding: 26px 32px;
  border-left: 3px solid var(--accent);
  background: var(--paper);
  border-radius: 0 12px 12px 0;
}
.pull-quote p {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.article-callout {
  margin: 40px 0;
  padding: 28px 32px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
}
.article-callout h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.article-callout p {
  color: rgba(251,248,241,0.85);
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

.article-share {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.article-share strong { color: var(--ink); }
.share-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}
.share-link:hover { text-decoration: underline; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.related-card {
  background: var(--bg);
  padding: 28px 26px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s;
}
.related-card:hover { background: var(--paper); }
.related-card .related-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.related-card h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.related-card p {
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-soft); margin: 0;
}
@media (max-width: 880px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Article hero image + sidebar layout ---------- */
.article-hero-image {
  padding: 32px 0 16px;
  background: var(--bg);
}
.hero-image-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.hero-image-frame svg {
  width: 100%;
  height: auto;
  display: block;
}
.image-caption {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
}

.article-with-sidebar {
  padding: 40px 0 60px;
}
.article-with-sidebar .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}
.article-with-sidebar .article-main {
  max-width: 760px;
}
.article-with-sidebar .article-main p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 22px;
}
.article-with-sidebar .article-main h2 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 400;
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.article-with-sidebar .article-main h2 em {
  font-style: italic; font-weight: 300; color: var(--accent);
}
.article-with-sidebar .article-main ul {
  margin: 16px 0 24px;
  padding-left: 22px;
}
.article-with-sidebar .article-main ul li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 10px;
}

.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 22px 22px 20px;
}
.sidebar-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.sidebar-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.sidebar-toc li {
  counter-increment: toc;
  margin-bottom: 8px;
}
.sidebar-toc a {
  display: block;
  padding: 4px 0 4px 22px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}
.sidebar-toc a:hover { color: var(--accent); }
.sidebar-author { display: flex; gap: 12px; margin-bottom: 12px; }
.sidebar-avatar {
  width: 40px; height: 40px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.sidebar-author-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px; font-weight: 600;
  line-height: 1.2;
}
.sidebar-author-role {
  font-size: 12px; color: var(--muted);
  line-height: 1.3;
}
.sidebar-author-bio {
  font-size: 13px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.sidebar-cta p {
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.btn-block { width: 100%; justify-content: center; }
.sidebar-related {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-related li { margin-bottom: 8px; }
.sidebar-related a {
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-related a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .article-with-sidebar .container { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { position: static; }
}

/* =============================================================
   ADDITIONS FOR ENHANCED CLOUD-MIGRATION ARTICLE
   (team byline · case-meta grid · author attribution · sidebar team)

   Append AFTER any previous CSS additions in /htdocs/assets/style.css
   ============================================================= */

/* Defensive — protects against any unclosed rule above */
}

/* ---------- Team byline (article header) ---------- */
.article-team-byline {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-byline-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.team-byline-avatars {
  display: flex;
  gap: -10px;
  align-items: center;
}
.team-byline-avatars .team-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px solid var(--bg);
  margin-left: -8px;
  position: relative;
  cursor: default;
  transition: transform 0.2s;
}
.team-byline-avatars .team-avatar:first-child { margin-left: 0; }
.team-byline-avatars .team-avatar.lead {
  background: var(--accent);
  color: var(--ink);
}
.team-byline-avatars .team-avatar:hover {
  transform: translateY(-2px);
  z-index: 10;
}
.team-byline-names {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.team-byline-names strong {
  color: var(--ink);
  font-weight: 600;
}
.team-byline-names .muted {
  color: var(--muted);
  font-size: 12.5px;
}
@media (max-width: 720px) {
  .team-byline-names { font-size: 13px; }
  .team-byline-avatars .team-avatar { width: 36px; height: 36px; font-size: 11px; }
}

/* ---------- Case-study meta grid (inline within article) ---------- */
.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0 32px;
}
.case-meta-item {
  background: var(--bg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-meta-item .case-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-meta-item .case-value {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
@media (max-width: 720px) {
  .case-meta-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .case-meta-grid { grid-template-columns: 1fr; }
}

/* ---------- Author attribution (inline within article paragraphs) ---------- */
.author-attribution {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-right: 6px;
  text-transform: none;
}
.author-attribution strong {
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Sidebar team card ---------- */
.sidebar-team {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-team-member {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-team-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.sidebar-team-body {
  flex: 1;
  min-width: 0;
}
.sidebar-team-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.team-role-lead {
  display: inline-block;
  padding: 1px 7px;
  background: var(--accent);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
}
.sidebar-team-role {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}
.sidebar-team-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

/* =============================================================
   ADDITIONS FOR "CLIENTS WE'VE SHIPPED FOR" SECTION (about.html)

   Append AFTER all previous CSS additions in /htdocs/assets/style.css.
   This file does NOT include a defensive `}` opener — previous bundles
   already compensated for the original unclosed rule.
   ============================================================= */

/* ---------- Client grid (3×3) ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.client-card {
  background: var(--bg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.25s;
  min-height: 240px;
}
.client-card:hover {
  background: var(--paper);
}

/* Typographic wordmark — clean, brand-neutral.
   Each client gets the same treatment: site display font, weight 500,
   carefully sized to read like a heading and not a brand logo. */
.client-wordmark {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 12px;
  /* Make slightly-longer names not feel cramped */
  word-break: normal;
  overflow-wrap: break-word;
}

.client-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.client-summary {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 18px;
  flex: 1;
}

.client-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.client-service-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
  font-family: 'Inter Tight', sans-serif;
  white-space: nowrap;
}
.client-card:hover .client-service-tag {
  background: var(--bg);
}

@media (max-width: 980px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .client-grid { grid-template-columns: 1fr; }
  .client-card { min-height: auto; padding: 26px 22px 22px; }
}

/* Disclaimer — small, italic, muted */
.client-disclaimer {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* =============================================================
   ADDITIONS FOR CLIENTS-V2 + WHERE-TO-NEXT V2 (about.html)

   This is the v2 of the clients section — testimonial widget,
   monogram client cards, trusted-by strip, redesigned hub cards.

   IMPORTANT: This REPLACES the clients-bundle/_append-to-style.css.
   See README for how to handle it.
   ============================================================= */


/* ============================================================
   MONOGRAM TILES — colour families
   Used on client cards + testimonial widget attributions
   ============================================================ */
.client-monogram,
.ts-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 12px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Monogram sizes */
.client-monogram {
  width: 48px;
  height: 48px;
  font-size: 22px;
}
.ts-monogram {
  width: 44px;
  height: 44px;
  font-size: 20px;
  border-radius: 10px;
}

/* Colour families — each gives the monogram a subtle gradient anchor */
.from-blue {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  color: #fff;
}
.from-green {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
}
.from-purple {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  color: #fff;
}
.from-orange {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  color: #fff;
}


/* ============================================================
   TESTIMONIAL WIDGET — rotating featured testimonial
   ============================================================ */
.testimonial-widget {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 48px 56px 40px;
  margin: 32px 0 40px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.testimonial-widget::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.testimonial-track {
  position: relative;
  z-index: 1;
}

.testimonial-slide {
  display: none;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  animation: ts-fade-in 0.5s ease-out;
}
.testimonial-slide.active {
  display: grid;
}
@keyframes ts-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Quote block (left side) */
.ts-quote-block {
  position: relative;
}
.ts-mark {
  width: 36px;
  height: auto;
  color: rgba(59, 130, 246, 0.45);
  margin-bottom: 16px;
  display: block;
}
.ts-quote {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0 0 28px;
  max-width: 640px;
}
.ts-attribution {
  display: flex;
  gap: 14px;
  align-items: center;
}
.ts-author-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0;
}
.ts-author-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(251, 248, 241, 0.6);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Metric block (right side) */
.ts-metric-block {
  border-left: 1px solid rgba(251, 248, 241, 0.1);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ts-metric-big {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #3B82F6;
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ts-metric-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.5px;
  color: rgba(251, 248, 241, 0.75);
  margin-bottom: 16px;
  line-height: 1.35;
  max-width: 220px;
}
.ts-supporting {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(251, 248, 241, 0.1);
  padding-top: 16px;
}
.ts-support-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(251, 248, 241, 0.6);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.ts-support-tag::before {
  content: "✓ ";
  color: #10B981;
  font-weight: 700;
  margin-right: 4px;
}

/* Pagination dots */
.testimonial-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}
.ts-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(251, 248, 241, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.ts-dot:hover {
  background: rgba(251, 248, 241, 0.4);
}
.ts-dot.active {
  background: #3B82F6;
  width: 28px;
  border-radius: 999px;
}

/* Responsive */
@media (max-width: 880px) {
  .testimonial-widget {
    padding: 36px 28px 32px;
  }
  .testimonial-slide.active {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ts-metric-block {
    border-left: none;
    border-top: 1px solid rgba(251, 248, 241, 0.1);
    padding-left: 0;
    padding-top: 28px;
  }
}


/* ============================================================
   CLIENT CARD V2 — monogram + metric + summary + tags
   ============================================================ */
.client-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.client-card-v2 {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.client-card-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.client-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(14, 16, 24, 0.18);
  border-color: rgba(29, 78, 216, 0.25);
}
.client-card-v2:hover::before {
  opacity: 1;
}

.client-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.client-card-id {
  flex: 1;
  min-width: 0;
}
.client-wordmark-v2 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.client-meta-v2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-metric-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 16px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  z-index: 1;
}
.client-metric-value {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.client-metric-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-soft);
  flex: 1;
}

.client-summary-v2 {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}

.client-services {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: relative;
  z-index: 1;
}
.client-service-tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--ink);
  font-weight: 500;
  font-family: 'Inter Tight', sans-serif;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

@media (max-width: 1020px) {
  .client-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .client-grid-v2 { grid-template-columns: 1fr; }
}


/* ============================================================
   TRUSTED-BY STRIP — auto-scrolling marquee at the bottom
   ============================================================ */
.trusted-by-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin: 32px 0 24px;
  overflow: hidden;
}
.trust-strip-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}
.trust-strip-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  /* Mask the edges for a smooth fade-out */
  mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}
.trust-strip-inner {
  display: flex;
  gap: 56px;
  animation: trust-marquee 32s linear infinite;
  width: max-content;
}
.trust-strip-item {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.015em;
  white-space: nowrap;
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
}
.trust-strip-item:hover {
  opacity: 1;
  color: var(--ink);
}
@keyframes trust-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .trusted-by-strip { flex-direction: column; align-items: flex-start; gap: 16px; }
  .trust-strip-item { font-size: 18px; }
}


/* ============================================================
   CLIENT DISCLAIMER
   ============================================================ */
.client-disclaimer {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}


/* ============================================================
   WHERE-TO-NEXT V2 — actionable hub cards with icons + previews
   ============================================================ */
.where-next-v2 {
  /* Inherits .block base styling */
}

.next-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.next-card-v2 {
  display: grid;
  grid-template-columns: 56px 1fr 32px;
  gap: 24px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 26px 28px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.next-card-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.next-card-v2:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.3);
  box-shadow: 0 16px 40px -16px rgba(14, 16, 24, 0.15);
}
.next-card-v2:hover::before {
  opacity: 1;
}
.next-card-v2:hover .next-card-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.next-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08) 0%, rgba(29, 78, 216, 0.02) 100%);
  border: 1px solid rgba(29, 78, 216, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.next-card-icon svg {
  width: 24px;
  height: 24px;
}

.next-card-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.next-card-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.next-card-v2 h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 6px;
}
.next-card-v2 p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

/* Preview area — bottom of body */
.next-card-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.next-preview-tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--ink-soft);
  font-weight: 500;
  font-family: 'Inter Tight', sans-serif;
}
.next-preview-tag.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Pricing preview variant — table-style rows */
.next-card-preview.pricing-preview {
  flex-direction: column;
  gap: 4px;
}
.preview-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.preview-price-row span {
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.preview-price-row strong {
  color: var(--ink);
  font-weight: 600;
  font-family: 'Bricolage Grotesque', serif;
  font-size: 13px;
}

.next-card-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), color 0.3s;
}
.next-card-arrow svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 880px) {
  .next-grid-v2 { grid-template-columns: 1fr; }
  .next-card-v2 {
    grid-template-columns: 48px 1fr 24px;
    gap: 18px;
    padding: 22px 22px;
  }
  .next-card-icon { width: 48px; height: 48px; }
  .next-card-icon svg { width: 22px; height: 22px; }
}

/* =============================================================
   ADDITIONS FOR HOMEPAGE #about CTA BLOCK

   Adds a "See clients & engagements" CTA at the bottom of the
   homepage's About section, linking visitors who land on the
   homepage anchor to the full /company/about.html page.

   Append to /htdocs/assets/style.css
   ============================================================= */

.about-cta {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* The .btn .btn-ghost styles are already defined elsewhere in the
   stylesheet (used by the hero "Explore services" button). We only
   need to handle the arrow icon alignment + spacing here. */
.about-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.about-cta .btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.about-cta .btn:hover .arrow {
  transform: translateX(3px);
}

.about-cta-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.5;
}

/* =============================================================
   ADDITIONS FOR "INSIDE TECHPROF" PROFILE WIDGET (static grid)

   This is the profile widget at /company/profile.html.
   Pure CSS — no JS dependencies, fully visible on first paint.

   Append AFTER all previous CSS additions in /htdocs/assets/style.css.
   No defensive `}` — earlier bundles already compensated.
   ============================================================= */

/* ---------- Section container ---------- */
.inside-techprof-section .block-head h2 {
  margin-bottom: 12px;
}

/* ---------- Profile grid (the main asymmetric layout) ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 18px;
  margin-top: 32px;
}
.pcard-scale    { grid-column: 1; grid-row: 1; }
.pcard-team     { grid-column: 2; grid-row: 1 / 3; }
.pcard-sectors  { grid-column: 1; grid-row: 2 / 4; }
.pcard-stack    { grid-column: 2; grid-row: 3; }
.pcard-culture  { grid-column: 1 / 3; grid-row: 4; }

/* ---------- Card base ---------- */
.pcard {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.3s;
}
.pcard::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.14) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.4s;
}
.pcard:hover::before {
  opacity: 1;
}
.pcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -20px rgba(14, 16, 24, 0.4);
}

/* Card sub-elements (shared across cards) */
.pcard-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #3B82F6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.pcard-title {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.pcard-title em {
  font-style: italic;
  color: #3B82F6;
  font-weight: 300;
}
.pcard-detail {
  font-size: 14px;
  color: rgba(251, 248, 241, 0.7);
  line-height: 1.5;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   /01 SCALE CARD
   ============================================================ */
.pcard-bignum {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(72px, 9vw, 116px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.pcard-bignum .plus {
  color: rgba(251, 248, 241, 0.3);
  font-size: 0.5em;
  font-weight: 300;
  -webkit-text-fill-color: rgba(251, 248, 241, 0.3);
  margin-left: 4px;
}
.pcard-caption {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  color: rgba(251, 248, 241, 0.75);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.pcard-supports {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(251, 248, 241, 0.1);
  position: relative;
  z-index: 1;
}
.pcard-support {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ps-val {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.ps-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(251, 248, 241, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   /02 TEAM CARD
   ============================================================ */
.team-list-v2 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.team-list-v2 li {
  display: grid;
  grid-template-columns: 28px 60px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(251, 248, 241, 0.04);
  border: 1px solid rgba(251, 248, 241, 0.08);
  border-radius: 10px;
}
.tl-flag {
  font-size: 18px;
  line-height: 1;
}
.tl-country {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
}
.tl-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(251, 248, 241, 0.55);
  letter-spacing: 0.02em;
}

/* ============================================================
   /03 SECTORS CARD — bars (static-rendered, no animation
   timing dependencies so the rendering is robust)
   ============================================================ */
.sector-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.sector-row {
  display: grid;
  grid-template-columns: 140px 1fr 36px;
  gap: 14px;
  align-items: center;
}
.sr-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  color: rgba(251, 248, 241, 0.85);
}
.sr-bar {
  display: block;
  height: 12px;
  background: rgba(251, 248, 241, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.sr-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1D4ED8 0%, #3B82F6 100%);
  border-radius: 999px;
}
/* Set widths via data-pct */
.sr-fill[data-pct="95"] { width: 95%; }
.sr-fill[data-pct="82"] { width: 82%; }
.sr-fill[data-pct="78"] { width: 78%; }
.sr-fill[data-pct="65"] { width: 65%; }
.sr-fill[data-pct="58"] { width: 58%; }
.sr-fill[data-pct="52"] { width: 52%; }
.sr-fill[data-pct="48"] { width: 48%; }
.sr-fill[data-pct="42"] { width: 42%; }
.sr-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #3B82F6;
  font-weight: 600;
  text-align: right;
}

/* ============================================================
   /04 STACK CARD
   ============================================================ */
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
  position: relative;
  z-index: 1;
}
.stag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 600;
  background: rgba(251, 248, 241, 0.06);
  border: 1px solid rgba(251, 248, 241, 0.1);
  color: var(--paper);
  letter-spacing: -0.01em;
}
.stag-lg {
  font-size: 14px;
  padding: 7px 14px;
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.4);
  color: #fff;
}
.stag-md {
  font-size: 13px;
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}
.stag-sm {
  font-size: 11px;
  padding: 5px 10px;
  color: rgba(251, 248, 241, 0.7);
}

/* ============================================================
   /05 CULTURE CARD — wide, 6 items in 3 cols
   ============================================================ */
.culture-list-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.culture-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(251, 248, 241, 0.04);
  border: 1px solid rgba(251, 248, 241, 0.08);
  border-radius: 10px;
}
.ci-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #3B82F6;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 22px;
  padding-top: 1px;
}
.ci-body {
  flex: 1;
  min-width: 0;
}
.ci-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.25;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.ci-detail {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(251, 248, 241, 0.6);
}

/* ============================================================
   Fade-in on scroll (subtle, optional — purely CSS)
   Cards appear normally; fade-in is just a touch of polish
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: pcard-fade-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  }
  .pcard-scale    { animation-delay: 0.05s; }
  .pcard-team     { animation-delay: 0.15s; }
  .pcard-sectors  { animation-delay: 0.25s; }
  .pcard-stack    { animation-delay: 0.35s; }
  .pcard-culture  { animation-delay: 0.45s; }
}
@keyframes pcard-fade-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .profile-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .pcard-scale, .pcard-team, .pcard-sectors,
  .pcard-stack, .pcard-culture {
    grid-column: 1;
    grid-row: auto;
  }
  .culture-list-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .pcard { padding: 22px 22px; }
  .pcard-supports { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sector-row { grid-template-columns: 110px 1fr 32px; gap: 10px; }
  .culture-list-v2 { grid-template-columns: 1fr; }
}

/* =============================================================
   START CONVERSATION BUTTON FIX

   Previously the "Start the conversation" CTA was an <a> element
   linking to mailto:info@techprofessional.co.uk, which opened the
   visitor's default mail client. It's been changed to a <button>
   element with data-open-chat (matching the hero "Start a project"
   button) so it opens the in-page TechProf chat assistant instead.

   Because <button> elements have user-agent default styling
   (border, font, background-color in some browsers), this rule
   resets those properties so button.cta-btn looks identical to
   the original anchor.cta-btn.

   Append to /htdocs/assets/style.css
   ============================================================= */

button.cta-btn {
  border: none;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* =============================================================
   ENHANCED: AI-DRIVEN INNOVATOR — NEW SECTIONS
   ============================================================= */

/* ---------- Tech Ticker ---------- */
.tech-ticker {
  background: var(--ink);
  color: rgba(251,248,241,0.7);
  height: 36px;
  overflow: hidden;
  position: relative;
  z-index: 101;
  border-bottom: 1px solid rgba(251,248,241,0.06);
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: tickerScroll 40s linear infinite;
  height: 100%;
  align-items: center;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 1px solid rgba(251,248,241,0.08);
}
.tk-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(255,91,46,0.6);
}
.tk-dot.accent { background: var(--accent); box-shadow: 0 0 6px rgba(255,91,46,0.6); }
.tk-dot.green  { background: var(--live);   box-shadow: 0 0 6px rgba(0,214,126,0.6); }
.tk-dot.blue   { background: var(--info);   box-shadow: 0 0 6px rgba(107,138,255,0.6); }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Hero enhancements ---------- */
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,16,24,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,16,24,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 60% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, black 20%, transparent 70%);
}
.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(251,248,241,0.5);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(255,91,46,0.6);
  flex-shrink: 0;
}
.badge-dot.accent { background: var(--accent); }
.badge-dot.green  { background: var(--live);   box-shadow: 0 0 6px rgba(0,214,126,0.6); }
.badge-dot.blue   { background: var(--info);   box-shadow: 0 0 6px rgba(107,138,255,0.6); }

/* 4-tab agent card adjustment */
.agent-tabs {
  grid-template-columns: repeat(4, 1fr) !important;
}
.tab-pill.avia { transform: translateX(200%); background: rgba(107,138,255,0.18); border-color: rgba(107,138,255,0.3); }
.tab-pill.ins4  { transform: translateX(300%); background: rgba(0,214,126,0.12); border-color: rgba(0,214,126,0.25); }

/* ---------- Service badges ---------- */
.service-card { position: relative; }
.service-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}
.service-badge.new   { background: rgba(255,91,46,0.14);  color: var(--accent); border: 1px solid rgba(255,91,46,0.3); }
.service-badge.cyber { background: rgba(0,214,126,0.12);  color: var(--live);   border: 1px solid rgba(0,214,126,0.3); }
.service-badge.avia  { background: rgba(107,138,255,0.14); color: var(--info);  border: 1px solid rgba(107,138,255,0.3); }

/* ---------- Case Studies ---------- */
.case-studies {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.cs-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cs-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
}
.cs-card.cs-avia::before   { background: linear-gradient(90deg, var(--info), #A8BAFF); }
.cs-card.cs-cyber::before  { background: linear-gradient(90deg, var(--live), #6FF0AE); }
.cs-card.cs-cloud::before  { background: linear-gradient(90deg, var(--accent), #FFB85C); }
.cs-card.cs-energy::before { background: linear-gradient(90deg, #FFB85C, var(--accent)); }
.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -12px rgba(14,16,24,0.14);
}
.cs-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cs-sector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.cs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cs-dot.avia   { background: var(--info);   box-shadow: 0 0 6px rgba(107,138,255,0.6); }
.cs-dot.cyber  { background: var(--live);   box-shadow: 0 0 6px rgba(0,214,126,0.6); }
.cs-dot.cloud  { background: var(--accent); box-shadow: 0 0 6px rgba(255,91,46,0.6); }
.cs-dot.energy { background: #FFB85C;       box-shadow: 0 0 6px rgba(255,184,92,0.6); }
.cs-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}
.cs-title {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--ink);
}
.cs-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}
.cs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--ink);
  border-radius: 12px;
}
.cs-metric { text-align: center; }
.cs-val {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--paper);
  line-height: 1;
}
.cs-val span {
  font-size: 16px;
  opacity: 0.6;
}
.cs-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(251,248,241,0.45);
  margin-top: 6px;
  line-height: 1.3;
}
.cs-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cs-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
}
.cs-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 880px) {
  .cs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cs-metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
  .cs-val { font-size: 22px; }
}

/* ---------- Emerging Tech ---------- */
.emerging-tech {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.et-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.et-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.et-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -12px rgba(14,16,24,0.12);
}
.et-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.et-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.et-status.adopt  { background: rgba(0,214,126,0.12);  color: var(--live);   border: 1px solid rgba(0,214,126,0.3); }
.et-status.trial  { background: rgba(255,184,92,0.12); color: #FFB85C;       border: 1px solid rgba(255,184,92,0.3); }
.et-status.assess { background: rgba(107,138,255,0.12); color: var(--info);  border: 1px solid rgba(107,138,255,0.3); }
.et-ring {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--live);
  position: relative;
  flex-shrink: 0;
  animation: ringPulse 2.4s ease-out infinite;
}
.et-ring::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: rgba(0,214,126,0.3);
}
.et-ring.amber { border-color: #FFB85C; }
.et-ring.amber::after { background: rgba(255,184,92,0.3); }
.et-ring.blue  { border-color: var(--info); }
.et-ring.blue::after  { background: rgba(107,138,255,0.3); }
@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.15); opacity: 0.7; }
}
.et-icon {
  margin-bottom: 14px;
  color: var(--ink);
  opacity: 0.7;
}
.et-card h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.et-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 18px;
}
.et-bar {
  height: 4px;
  background: rgba(14,16,24,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.et-fill {
  height: 100%;
  width: var(--fill, 0%);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--live), #6FF0AE);
  box-shadow: 0 0 8px rgba(0,214,126,0.4);
  animation: barFill 1.4s ease-out forwards;
}
.et-fill.green { background: linear-gradient(90deg, var(--live), #6FF0AE); }
.et-fill.amber { background: linear-gradient(90deg, #FFB85C, #FFDDA0); box-shadow: 0 0 8px rgba(255,184,92,0.4); }
.et-fill.blue  { background: linear-gradient(90deg, var(--info), #A8BAFF); box-shadow: 0 0 8px rgba(107,138,255,0.4); }
.et-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.et-clients { color: var(--accent); }
@media (max-width: 980px) {
  .et-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .et-grid { grid-template-columns: 1fr; }
}

/* ---------- Aviation Section ---------- */
.aviation-section {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.avia-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(107,138,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,138,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.aviation-section::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(107,138,255,0.14), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(0,214,126,0.08), transparent 40%);
  pointer-events: none;
}
.aviation-section .container { position: relative; z-index: 1; }
.aviation-section .section-head h2 { color: var(--paper); }
.aviation-section .section-head p  { color: rgba(251,248,241,0.6); }

.avia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Telemetry widget */
.avia-telemetry {
  background: rgba(251,248,241,0.03);
  border: 1px solid rgba(251,248,241,0.08);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(10px);
}
.avia-tele-head {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(251,248,241,0.08);
}
.avia-tele-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 6px;
}
.avia-tele-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(251,248,241,0.45);
  letter-spacing: 0.06em;
}
.avia-gauges {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.avia-gauge {
  flex: 1;
  text-align: center;
}
.gauge-svg { width: 100%; max-width: 90px; }
.gauge-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.gauge-val.green { color: var(--live); }
.gauge-val.amber { color: #FFB85C; }
.gauge-pct {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--paper);
}
.gauge-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  color: rgba(251,248,241,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.avia-alerts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.avia-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.avia-alert.ok   { background: rgba(0,214,126,0.06);   border: 1px solid rgba(0,214,126,0.15); }
.avia-alert.warn { background: rgba(255,184,92,0.06);  border: 1px solid rgba(255,184,92,0.2); }
.avia-alert.info { background: rgba(107,138,255,0.06); border: 1px solid rgba(107,138,255,0.15); }
.aa-tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.avia-alert.ok   .aa-tag { background: rgba(0,214,126,0.2);   color: var(--live); }
.avia-alert.warn .aa-tag { background: rgba(255,184,92,0.2);  color: #FFB85C; }
.avia-alert.info .aa-tag { background: rgba(107,138,255,0.2); color: var(--info); }
.aa-msg { flex: 1; color: rgba(251,248,241,0.8); line-height: 1.4; }
.aa-time { color: rgba(251,248,241,0.35); font-size: 10px; flex-shrink: 0; }
.avia-footer {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: rgba(251,248,241,0.35);
  padding-top: 12px;
  border-top: 1px solid rgba(251,248,241,0.06);
}
.avia-confidence strong { color: var(--live); }

/* Aviation capabilities */
.avia-capabilities h3 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--paper);
}
.avia-capabilities > p {
  color: rgba(251,248,241,0.65);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.avia-cap-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.avia-cap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(251,248,241,0.07);
}
.avia-cap:first-child { border-top: 1px solid rgba(251,248,241,0.07); }
.avia-cap-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(107,138,255,0.1);
  border: 1px solid rgba(107,138,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--info);
  flex-shrink: 0;
}
.avia-cap-title {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 4px;
}
.avia-cap-desc {
  font-size: 13.5px;
  color: rgba(251,248,241,0.55);
  line-height: 1.55;
}
@media (max-width: 880px) {
  .avia-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Digital Transformation ---------- */
.digital-transformation {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.dt-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.dt-phases {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dt-phase {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
  background: var(--bg);
}
.dt-phase.active {
  background: var(--ink);
  border-color: rgba(251,248,241,0.1);
}
.dt-phase-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
  width: 24px;
}
.dt-phase h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink);
  transition: color 0.3s;
}
.dt-phase.active h4 { color: var(--paper); }
.dt-phase p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  transition: color 0.3s;
}
.dt-phase.active p { color: rgba(251,248,241,0.65); }
.dt-phase-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.dt-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,91,46,0.3);
  color: var(--accent);
  background: rgba(255,91,46,0.06);
}
.dt-phase.active .dt-tag {
  border-color: rgba(255,91,46,0.4);
  background: rgba(255,91,46,0.12);
}

/* DT visual card */
.dt-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px -20px rgba(14,16,24,0.3);
  position: sticky;
  top: 100px;
}
.dt-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251,248,241,0.6);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(251,248,241,0.08);
}
.dt-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.dt-stat {
  background: rgba(251,248,241,0.04);
  border: 1px solid rgba(251,248,241,0.07);
  border-radius: 12px;
  padding: 16px;
}
.dt-stat-val {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--paper), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}
.dt-stat-unit {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px;
  font-weight: 300;
  opacity: 0.5;
  display: inline;
  -webkit-text-fill-color: rgba(251,248,241,0.5);
}
.dt-stat-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(251,248,241,0.4);
  margin-top: 8px;
  line-height: 1.3;
}
.dt-card-foot {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: rgba(251,248,241,0.35);
  letter-spacing: 0.04em;
  padding-top: 14px;
  border-top: 1px solid rgba(251,248,241,0.07);
}
@media (max-width: 980px) {
  .dt-grid { grid-template-columns: 1fr; gap: 40px; }
  .dt-card { position: static; }
}

/* ---------- Footer cert badges ---------- */
.footer-certs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.cert-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(251,248,241,0.06);
  border: 1px solid rgba(251,248,241,0.1);
  color: rgba(251,248,241,0.55);
}

/* ---------- sc-avia in agent card ---------- */
.sc-avia { }


/* =============================================================
   AI CAPABILITY ASSESSMENT WIDGET
   ============================================================= */

/* --- Trigger button --- */
.assess-trigger {
  position: fixed;
  bottom: 100px;
  left: 24px;
  z-index: 9990;
  cursor: pointer;
  transform: translateX(-120px);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.assess-trigger.visible {
  transform: translateX(0);
}
.assess-trigger-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 8px 28px -6px rgba(14,16,24,0.45);
  border: 1px solid rgba(255,91,46,0.25);
  transition: transform 0.25s, box-shadow 0.25s, background 0.2s;
  position: relative;
}
.assess-trigger-inner::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 14px;
  background: var(--accent);
  z-index: -1; opacity: 0.4;
  animation: assessPulse 2.8s ease-out infinite;
}
@keyframes assessPulse {
  0%   { transform: scale(1); opacity: 0.4; }
  70%  { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1.08); opacity: 0; }
}
.assess-trigger:hover .assess-trigger-inner {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(255,91,46,0.5);
}
.assess-trigger-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.assess-trigger-badge {
  background: var(--accent);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.assess-trigger:hover .assess-trigger-badge {
  background: var(--ink);
  color: var(--paper);
}
@media (max-width: 640px) {
  .assess-trigger { bottom: 90px; left: 16px; }
}

/* --- Overlay --- */
.assess-overlay {
  position: fixed; inset: 0;
  background: rgba(14,16,24,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9991;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.assess-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Modal --- */
.assess-modal {
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
  border: 1px solid rgba(251,248,241,0.08);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  position: relative;
}
.assess-overlay.open .assess-modal {
  transform: translateY(0) scale(1);
}
.assess-modal::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(107,138,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,138,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  border-radius: 24px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 70%);
}

/* --- Header --- */
.assess-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(251,248,241,0.07);
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.assess-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251,248,241,0.6);
}
.assess-logo-text { color: rgba(251,248,241,0.6); }
.assess-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(251,248,241,0.06);
  border: 1px solid rgba(251,248,241,0.1);
  color: rgba(251,248,241,0.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  flex-shrink: 0;
}
.assess-close:hover { background: rgba(255,91,46,0.2); color: var(--accent); }

/* --- Progress bar --- */
.assess-progress {
  height: 2px;
  background: rgba(251,248,241,0.07);
  flex-shrink: 0;
}
.assess-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #FFB85C);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(255,91,46,0.5);
}

/* --- Steps container --- */
.assess-steps {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(251,248,241,0.15) transparent;
}
.assess-steps::-webkit-scrollbar { width: 4px; }
.assess-steps::-webkit-scrollbar-thumb { background: rgba(251,248,241,0.15); border-radius: 2px; }

/* --- Individual step --- */
.assess-step {
  display: none;
  animation: stepSlideIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.assess-step.active { display: block; }
.assess-step.leaving {
  display: block;
  animation: stepSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes stepSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-40px); }
}

.assess-step-inner {
  padding: 28px 28px 32px;
}

/* --- Welcome step --- */
.assess-welcome-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: rgba(255,91,46,0.1);
  border: 1px solid rgba(255,91,46,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 22px;
}
.assess-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.assess-title {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--paper);
}
.assess-title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(120deg, var(--accent), #FFB85C);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.assess-desc {
  font-size: 14.5px;
  color: rgba(251,248,241,0.65);
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 440px;
}
.assess-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.assess-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(251,248,241,0.1);
  background: rgba(251,248,241,0.04);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(251,248,241,0.6);
}

/* --- Option buttons --- */
.assess-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}
.assess-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(251,248,241,0.03);
  border: 1px solid rgba(251,248,241,0.08);
  border-radius: 12px;
  color: rgba(251,248,241,0.8);
  font-family: 'Inter Tight', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.assess-option::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ao-color, rgba(255,91,46,0.08));
  opacity: 0;
  transition: opacity 0.2s;
}
.assess-option:hover {
  border-color: rgba(255,91,46,0.3);
  transform: translateY(-1px);
}
.assess-option:hover::before { opacity: 1; }
.assess-option.selected {
  border-color: var(--ao-color, var(--accent));
  background: rgba(255,91,46,0.08);
}
.assess-option.selected::before { opacity: 1; }

.ao-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(251,248,241,0.06);
  border: 1px solid rgba(251,248,241,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.assess-option:hover .ao-icon,
.assess-option.selected .ao-icon {
  background: rgba(255,91,46,0.12);
  border-color: rgba(255,91,46,0.25);
}
.ao-label { flex: 1; line-height: 1.3; }
.ao-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--live);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.assess-option.selected .ao-check { opacity: 1; transform: scale(1); }

/* Scale options (3 wide, vertical layout) */
.scale-options {
  grid-template-columns: 1fr;
}
.scale-opt {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
}
.ao-scale-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
}
.ao-scale-label {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.ao-scale-size {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(251,248,241,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ao-scale-desc {
  font-size: 13px;
  color: rgba(251,248,241,0.55);
  line-height: 1.55;
  margin: 0;
  text-align: left;
}
.scale-opt .ao-check {
  position: absolute;
  top: 18px; right: 18px;
}

/* --- Primary button --- */
.assess-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--ink);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.assess-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(255,91,46,0.55);
  background: #ff6b3d;
}
.assess-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(251,248,241,0.55);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid rgba(251,248,241,0.15);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-top: 8px;
}
.assess-btn-ghost:hover { color: var(--paper); border-color: rgba(251,248,241,0.35); }

/* --- Results --- */
.assess-result-inner { padding: 24px 28px 28px; }
.assess-result-top {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}
.assess-score-ring {
  position: relative;
  width: 90px; height: 90px;
  flex-shrink: 0;
}
.assess-ring-svg { width: 100%; height: 100%; }
.ring-fill {
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.3s;
}
.assess-score-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.assess-score-num {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--paper);
  background: linear-gradient(120deg, var(--paper), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.assess-score-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(251,248,241,0.35);
  letter-spacing: 0.06em;
}
.assess-result-headline { flex: 1; }
.assess-result-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,91,46,0.15);
  border: 1px solid rgba(255,91,46,0.3);
  color: var(--accent);
  margin-bottom: 8px;
}
.assess-result-sub {
  font-size: 13px;
  color: rgba(251,248,241,0.55);
  line-height: 1.5;
  margin-top: 6px;
}

/* Case study match */
.assess-result-case { margin-bottom: 18px; }
.arc-label, .ars-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251,248,241,0.4);
  margin-bottom: 10px;
}
.arc-card {
  background: rgba(251,248,241,0.04);
  border: 1px solid rgba(251,248,241,0.1);
  border-radius: 12px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.arc-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), #FFB85C);
  border-radius: 12px 12px 0 0;
}
.arc-sector {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.arc-title {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.arc-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.arc-metric-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: rgba(251,248,241,0.6);
}
.arc-metric-item strong { color: var(--live); }

/* Recommended services */
.assess-result-services { margin-bottom: 22px; }
.ars-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ars-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(251,248,241,0.03);
  border: 1px solid rgba(251,248,241,0.07);
  border-radius: 10px;
  font-size: 13.5px;
  color: rgba(251,248,241,0.8);
  opacity: 0;
  animation: arsItemIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.ars-item:nth-child(1) { animation-delay: 0.6s; }
.ars-item:nth-child(2) { animation-delay: 0.8s; }
.ars-item:nth-child(3) { animation-delay: 1.0s; }
@keyframes arsItemIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ars-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.assess-result-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 480px) {
  .assess-options { grid-template-columns: 1fr; }
  .assess-step-inner { padding: 20px 20px 24px; }
  .assess-result-inner { padding: 18px 20px 22px; }
  .assess-result-top { flex-direction: column; text-align: center; align-items: center; }
  .assess-score-ring { width: 80px; height: 80px; }
  .arc-metrics { flex-direction: column; gap: 6px; }
}

/* =============================================================
   EMAIL CAPTURE CARD (within Assessment Results)
   ============================================================= */

.assess-email-card {
  background: linear-gradient(135deg, rgba(255,91,46,0.07) 0%, rgba(107,138,255,0.07) 100%);
  border: 1px solid rgba(255,91,46,0.22);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(12px);
  animation: aecSlideIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) 0.2s forwards;
}
@keyframes aecSlideIn {
  to { opacity: 1; transform: translateY(0); }
}
.assess-email-card.dismissed {
  animation: aecSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes aecSlideOut {
  to { opacity: 0; transform: translateY(-8px); max-height: 0; margin-bottom: 0; padding: 0; }
}

/* Top info row */
.aec-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 12px;
}
.aec-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,91,46,0.12);
  border: 1px solid rgba(255,91,46,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.aec-copy { flex: 1; }
.aec-headline {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.aec-sub {
  font-size: 12.5px;
  color: rgba(251,248,241,0.58);
  line-height: 1.55;
}
.aec-dismiss {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(251,248,241,0.06);
  border: 1px solid rgba(251,248,241,0.1);
  color: rgba(251,248,241,0.45);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.aec-dismiss:hover { background: rgba(255,91,46,0.15); color: var(--accent); }

/* Form area */
.aec-form { padding: 0 18px 16px; }
.aec-fields {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.aec-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 110px;
}
.aec-field-grow { flex: 1; min-width: 160px; }
.aec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(251,248,241,0.45);
}
.aec-input {
  background: rgba(251,248,241,0.05);
  border: 1px solid rgba(251,248,241,0.12);
  border-radius: 9px;
  padding: 10px 14px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13.5px;
  color: var(--paper);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
}
.aec-input::placeholder { color: rgba(251,248,241,0.28); }
.aec-input:focus {
  border-color: rgba(255,91,46,0.45);
  background: rgba(255,91,46,0.05);
  box-shadow: 0 0 0 3px rgba(255,91,46,0.1);
}
.aec-input.error {
  border-color: rgba(255,91,46,0.7);
  box-shadow: 0 0 0 3px rgba(255,91,46,0.15);
}

/* Submit button */
.aec-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 9px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
  flex-shrink: 0;
  height: 42px;
  letter-spacing: -0.01em;
}
.aec-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(255,91,46,0.5);
  background: #ff6b3d;
}
.aec-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.aec-submit.loading .aec-submit-icon { animation: aecSpinIcon 0.7s linear infinite; }
@keyframes aecSpinIcon {
  to { transform: rotate(360deg); }
}
.aec-submit.loading .aec-submit-label { opacity: 0.7; }

/* Privacy footer */
.aec-footer { margin-top: 8px; }
.aec-privacy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: rgba(251,248,241,0.32);
}
.aec-error {
  font-size: 12px;
  color: #ff7054;
  margin-top: 6px;
  min-height: 0;
  font-family: 'Inter Tight', sans-serif;
}

/* Success state */
.aec-success {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}
.aec-success.visible { display: flex; }
.aec-success-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,214,126,0.12);
  border: 1px solid rgba(0,214,126,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--live);
  flex-shrink: 0;
  animation: aecSuccessPop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) forwards;
}
@keyframes aecSuccessPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.aec-success-headline {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.aec-success-sub {
  font-size: 13px;
  color: rgba(251,248,241,0.55);
  line-height: 1.5;
}

/* Compact mode after success — shrinks card */
.assess-email-card.submitted {
  border-color: rgba(0,214,126,0.25);
  background: linear-gradient(135deg, rgba(0,214,126,0.05) 0%, rgba(107,138,255,0.04) 100%);
}

@media (max-width: 480px) {
  .aec-fields { flex-direction: column; }
  .aec-submit { width: 100%; justify-content: center; }
  .aec-field-wrap, .aec-field-grow { min-width: 0; width: 100%; }
}

/* =============================================================
   FAQ SECTION
   ============================================================= */
.faq-section {
  padding: 100px 0;
  background: var(--paper);
  border-top: 1px solid rgba(14,16,24,0.07);
}
.faq-section-head {
  margin-bottom: 52px;
}
.faq-intro {
  font-size: 16px;
  color: rgba(14,16,24,0.55);
  margin-top: 16px;
  max-width: 500px;
  line-height: 1.6;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(14,16,24,0.1);
  border-radius: 20px;
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid rgba(14,16,24,0.08);
  border-right: 1px solid rgba(14,16,24,0.08);
}
.faq-item:nth-child(even) { border-right: none; }
.faq-item:nth-last-child(-n+2) { border-bottom: none; }
.faq-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: none;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: transparent;
  border: none;
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.faq-q:hover { background: rgba(255,91,46,0.04); }
.faq-q[aria-expanded="true"] {
  background: rgba(255,91,46,0.05);
  color: var(--accent);
}
.faq-chevron {
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(14,16,24,0.35);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}
.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: rgba(14,16,24,0.65);
  line-height: 1.7;
  animation: faqSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer[hidden] { display: none; }
.faq-answer p { margin: 0; }
.faq-answer strong { color: var(--ink); font-weight: 600; }
@keyframes faqSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-item { border-right: none; }
  .faq-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(14,16,24,0.08); }
  .faq-item:last-child { border-bottom: none; }
  .faq-section { padding: 72px 0; }
}

/* =============================================================
   MOBILE RESPONSIVENESS — All New Sections
   ============================================================= */

/* --- Case Studies grid --- */
@media (max-width: 720px) {
  .cs-grid {
    grid-template-columns: 1fr !important;
  }
  .cs-card { padding: 24px; }
  .cs-metrics { flex-wrap: wrap; gap: 10px; }
}

/* --- Emerging Tech cards --- */
@media (max-width: 720px) {
  .emerging-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
}
@media (max-width: 460px) {
  .emerging-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- Aviation section --- */
@media (max-width: 900px) {
  .aviation-grid {
    grid-template-columns: 1fr !important;
  }
  .aviation-telemetry {
    order: -1;
  }
  .telemetry-gauges {
    gap: 12px;
  }
}
@media (max-width: 560px) {
  .telemetry-gauges {
    grid-template-columns: 1fr 1fr !important;
  }
  .gauge-ring-wrap svg { width: 70px !important; height: 70px !important; }
}

/* --- Digital Transformation section --- */
@media (max-width: 900px) {
  .dt-layout {
    grid-template-columns: 1fr !important;
  }
  .dt-stats-card {
    position: static !important;
    margin-top: 32px;
  }
}
@media (max-width: 560px) {
  .dt-phases { gap: 10px; }
  .dt-phase-header { padding: 14px 16px; }
  .dt-phase-body { padding: 0 16px 14px; }
}

/* --- Agent card 4-tab on mobile --- */
@media (max-width: 520px) {
  .agent-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }
  .agent-tab {
    font-size: 10px !important;
    padding: 5px 10px !important;
  }
  .agent-card { padding: 18px; }
}

/* --- Hero badges wrapping --- */
@media (max-width: 480px) {
  .hero-badges {
    flex-wrap: wrap;
    gap: 6px;
  }
  .hero-badge {
    font-size: 10px;
    padding: 5px 10px;
  }
}

/* --- Section headings — fluid scaling --- */
@media (max-width: 600px) {
  .case-studies h2,
  .faq-section h2,
  .cloud h2,
  .services h2 {
    font-size: clamp(26px, 7vw, 40px) !important;
  }
  .cs-card .cs-sector { font-size: 9px; }
  .cs-card .cs-title { font-size: 17px; }
}

/* --- Navigation mobile polish --- */
@media (max-width: 480px) {
  .nav .container { padding: 0 16px; }
  .nav-mobile a,
  .nav-mobile button {
    font-size: 18px;
    padding: 14px 0;
  }
}

/* --- Assessment modal responsive fixes --- */
@media (max-width: 560px) {
  .assess-modal { border-radius: 18px; }
  .assess-step-inner { padding: 18px 18px 22px; }
  .assess-title { font-size: clamp(20px, 6vw, 28px); }
  .assess-options { grid-template-columns: 1fr; }
  .assess-option { padding: 12px 14px; }
  .ao-label { font-size: 13px; }
}


/* =============================================================
   LAYOUT & CLIPPING FIXES — v2
   ============================================================= */

/* Fix 1 — Hero h1 letter clipping (line-height too tight) */
.hero h1 {
  line-height: 1.0 !important;
  padding-bottom: 6px;
  overflow: visible;
}
.hero h1 em {
  display: inline-block;
  padding-bottom: 0.06em;
  overflow: visible;
}
.hero-grid > div:first-child {
  overflow: visible;
}

/* Fix 2 — "Engineering at the speed of thought" 'f' clipped
   background-clip: text cuts descenders when overflow:hidden is on parent */
.terminal-section .section-head h2 {
  overflow: visible;
  line-height: 1.1;
}
.terminal-section .section-head h2 em {
  display: inline-block;
  padding-bottom: 0.08em;
  overflow: visible;
}

/* Fix 3 — Service card: num / badge / arrow / icon overlapping
   ── service-num       absolute top-left (reposition to top-left, higher)
   ── service-arrow     absolute top-right (reposition)
   ── service-badge     absolute was top-right — conflicts with arrow → move to bottom-left
   ── service-icon      first flow element — needs top margin to clear num          */
.service-card {
  padding-top: 56px !important;
}
.service-num {
  top: 18px !important;
  left: 28px !important;
}
.service-arrow {
  top: 18px !important;
  right: 28px !important;
}
.service-badge {
  position: absolute !important;
  top: auto !important;
  bottom: 28px !important;
  right: auto !important;
  left: 28px !important;
}
.service-icon {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

/* Fix 3b — mobile service card adjustments */
@media (max-width: 600px) {
  .service-card {
    padding: 48px 24px 32px !important;
  }
  .service-num {
    top: 16px !important;
    left: 20px !important;
  }
  .service-arrow {
    top: 16px !important;
    right: 20px !important;
  }
  .service-badge {
    bottom: 20px !important;
    left: 20px !important;
  }
}

/* Fix 4 — Global: ensure section headings never clip descenders */
.section-head h2,
.section-head h2 em,
h1 em, h2 em, h3 em {
  overflow: visible;
}

/* ============================================================
   INDUSTRY SECTIONS — Banking, Insurance, Transport, Telecom
   ============================================================ */

/* Shared section shell */
.industry-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.banking-section,
.transport-section {
  background: var(--ink);
  color: var(--paper);
}
.banking-section .eyebrow,
.transport-section .eyebrow {
  color: rgba(251,248,241,0.55);
}
.banking-section .eyebrow::before,
.transport-section .eyebrow::before {
  background: rgba(251,248,241,0.4);
}
.banking-section .section-head h2,
.banking-section .section-head p,
.transport-section .section-head h2,
.transport-section .section-head p {
  color: var(--paper);
}

.insurance-section,
.telecom-section {
  background: var(--bg-alt);
}

/* Dark bg grid overlay */
.industry-grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Two-column layout */
.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.reverse-grid {
  direction: rtl;
}
.reverse-grid > * {
  direction: ltr;
}
@media (max-width: 900px) {
  .industry-grid { grid-template-columns: 1fr; gap: 48px; }
  .reverse-grid { direction: ltr; }
}

/* ---- Live widget card ---- */
.industry-widget {
  background: #0E1018;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: rgba(251,248,241,0.8);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.insurance-section .industry-widget,
.telecom-section .industry-widget {
  border-color: var(--line-soft);
  box-shadow: 0 12px 48px rgba(14,16,24,0.12);
}

.iw-head {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 20px;
}
.iw-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.iw-sub {
  font-size: 11px;
  color: rgba(251,248,241,0.4);
}

/* Metrics row */
.bank-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.bank-metric {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.bm-val {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.bm-val.green { color: var(--live); }
.bm-val.amber { color: #FFB85C; }
.bm-lbl {
  font-size: 10px;
  color: rgba(251,248,241,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Stream label */
.iw-stream-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(251,248,241,0.35);
  margin-bottom: 10px;
}

/* Feed rows */
.bank-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.bf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.bf-row:hover { background: rgba(255,255,255,0.06); }
.bf-row.approved { border-left: 2px solid var(--live); }
.bf-row.flagged  { border-left: 2px solid #FFB85C; }
.bf-row.blocked  { border-left: 2px solid #FF5B2E; }

.bf-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  min-width: 56px;
  text-align: center;
}
.bf-tag.approve    { background: rgba(0,214,126,0.15); color: var(--live); }
.bf-tag.flag       { background: rgba(255,184,92,0.15); color: #FFB85C; }
.bf-tag.block-tag  { background: rgba(255,91,46,0.15); color: #FF5B2E; }

.bf-desc {
  flex: 1;
  font-size: 11px;
  color: rgba(251,248,241,0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bf-time {
  font-size: 10px;
  color: rgba(251,248,241,0.3);
  flex-shrink: 0;
}

/* Widget footer */
.iw-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(251,248,241,0.3);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.iw-confidence { color: rgba(251,248,241,0.5); }
.iw-confidence strong { color: var(--live); }

/* ---- Industry capabilities ---- */
.industry-capabilities h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.banking-section .industry-capabilities h3,
.transport-section .industry-capabilities h3 {
  color: var(--paper);
}
.industry-capabilities > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 480px;
}
.banking-section .industry-capabilities > p,
.transport-section .industry-capabilities > p {
  color: rgba(251,248,241,0.6);
}

/* Capability list */
.ind-cap-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ind-cap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ind-cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bank-icon      { background: rgba(0,214,126,0.12);  color: var(--live); }
.ins-icon       { background: rgba(107,138,255,0.12); color: #6B8AFF; }
.transport-icon { background: rgba(255,184,92,0.12);  color: #FFB85C; }
.telecom-icon   { background: rgba(255,91,46,0.12);   color: var(--accent); }

.insurance-section .ind-cap-icon,
.telecom-section .ind-cap-icon {
  border: 1px solid var(--line-soft);
}

.ind-cap-title {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  color: var(--ink);
}
.banking-section .ind-cap-title,
.transport-section .ind-cap-title {
  color: var(--paper);
}
.ind-cap-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.banking-section .ind-cap-desc,
.transport-section .ind-cap-desc {
  color: rgba(251,248,241,0.5);
}

/* ---- Transport-specific ---- */
.transport-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.ts-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
}
.ts-val {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 4px;
}
.ts-val.green { color: var(--live); }
.ts-val.amber { color: #FFB85C; }
.ts-lbl { font-size: 9.5px; color: rgba(251,248,241,0.4); text-transform: uppercase; letter-spacing: 0.07em; }

.transport-signal-bar { margin-bottom: 20px; }
.tsb-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(251,248,241,0.35); margin-bottom: 8px; }
.tsb-bars { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.tsb-seg { height: 100%; border-radius: 3px; font-size: 0; }
.green-seg { background: var(--live); }
.amber-seg { background: #FFB85C; }
.red-seg   { background: #FF5B2E; }
.tsb-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 10px; color: rgba(251,248,241,0.4); }
.tsb-legend span { display: flex; align-items: center; gap: 5px; }
.dot-g { width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block; }
.dot-a { width: 7px; height: 7px; border-radius: 50%; background: #FFB85C; display: inline-block; }
.dot-r { width: 7px; height: 7px; border-radius: 50%; background: #FF5B2E; display: inline-block; }

/* ---- Telecom spectrum bars ---- */
.telecom-spectrum { margin-bottom: 20px; }
.ts-spec-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(251,248,241,0.35); margin-bottom: 10px; }
.spectrum-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 56px;
}
.spec-bar {
  flex: 1;
  background: var(--c, var(--live));
  height: var(--h, 50%);
  border-radius: 4px 4px 0 0;
  opacity: 0.75;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  transition: height 1.5s ease;
}
.spec-bar span {
  font-size: 9px;
  color: rgba(255,255,255,0.7);
  writing-mode: horizontal-tb;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .bank-metrics-row { grid-template-columns: repeat(3, 1fr); }
  .transport-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-section { padding: 80px 0; }
  .industry-capabilities h3 { font-size: 26px; }
  .bf-desc { white-space: normal; }
}


/* ================================================================
   GLOBAL TRUST ENHANCEMENTS
   ================================================================ */

/* ---------- Social-proof ticker ---------- */
.trust-bar {
  padding: 60px 0 0;
  overflow: hidden;
}
.trust-bar-head {
  text-align: center;
  margin-bottom: 32px;
}
.trust-bar-head p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker-wrap {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 28px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.7;
  border-right: 1px solid var(--line-soft);
  transition: opacity 0.2s;
}
.ticker-item:hover { opacity: 1; }
.ticker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.ticker-metric {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 80px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  border-color: rgba(255,91,46,0.25);
  box-shadow: 0 8px 32px rgba(14,16,24,0.07);
}
.tc-stars {
  display: flex;
  gap: 3px;
}
.tc-star {
  width: 14px; height: 14px;
  color: #F59E0B;
}
.tc-quote {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  font-style: italic;
  flex: 1;
}
.tc-quote::before { content: '\201C'; color: var(--accent); font-style: normal; font-size: 22px; line-height: 0; vertical-align: -6px; margin-right: 2px; }
.tc-quote::after  { content: '\201D'; color: var(--accent); font-style: normal; font-size: 22px; line-height: 0; vertical-align: -6px; margin-left: 2px; }
.tc-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.tc-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8f6e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}
.tc-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.tc-role { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.tc-sector {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,91,46,0.08);
  border: 1px solid rgba(255,91,46,0.15);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; gap: 14px; } }
@media (min-width: 600px) and (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Enquiry Form ---------- */
.enquiry-section {
  padding: 80px 0;
  background: var(--ink);
  color: var(--paper);
}
.enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.enquiry-left .eyebrow { color: rgba(251,248,241,0.5); margin-bottom: 20px; }
.enquiry-left h2 { color: var(--paper); }
.enquiry-left p { color: rgba(251,248,241,0.65); font-size: 16px; line-height: 1.65; margin-top: 16px; max-width: 360px; }
.enquiry-details { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.eq-detail { display: flex; align-items: flex-start; gap: 14px; }
.eq-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,91,46,0.12);
  border: 1px solid rgba(255,91,46,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.eq-detail-text .lbl { font-size: 11px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(251,248,241,0.4); }
.eq-detail-text .val { font-size: 15px; font-weight: 500; color: var(--paper); margin-top: 2px; }
.eq-detail-text .val a { color: var(--paper); text-decoration: none; }
.eq-detail-text .val a:hover { color: var(--accent); }

.enquiry-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(251,248,241,0.55);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: 'Inter Tight', sans-serif;
  color: var(--paper);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(251,248,241,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-group select option { background: #1a1c28; color: var(--paper); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(251,248,241,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255,91,46,0.06);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-consent { flex-direction: row !important; align-items: flex-start; gap: 10px !important; margin-top: 4px; }
.form-consent input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.form-consent label { font-size: 12.5px !important; text-transform: none !important; letter-spacing: 0 !important; color: rgba(251,248,241,0.5) !important; line-height: 1.5; cursor: pointer; }
.form-consent label a { color: var(--accent); text-decoration: none; }
.form-consent label a:hover { text-decoration: underline; }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.form-submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter Tight', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
}
.form-submit-btn:hover { background: #e04a22; transform: translateY(-2px); }
.form-submit-btn svg { transition: transform 0.2s; }
.form-submit-btn:hover svg { transform: translateX(3px); }
.form-note { font-size: 12px; color: rgba(251,248,241,0.35); }
.form-success {
  display: none;
  text-align: center;
  padding: 32px 16px;
}
.form-success .success-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(0,214,126,0.12);
  border: 1px solid rgba(0,214,126,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--live);
}
.form-success h3 { color: var(--paper); font-size: 20px; margin-bottom: 8px; }
.form-success p { color: rgba(251,248,241,0.55); font-size: 14.5px; }
@media (max-width: 860px) {
  .enquiry-grid { grid-template-columns: 1fr; gap: 40px; }
  .enquiry-form { padding: 24px; }
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }


/* =============================================================
   COMPREHENSIVE MOBILE & RESPONSIVE ENHANCEMENT PASS
   Fixes layout, font-size, spacing, overflow, and touch targets
   across all breakpoints (≤980px down to 320px)
   ============================================================= */

/* ---- 1. Clamp overrides: hero h1 minimum too large for phones ---- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(36px, 11vw, 54px);
    letter-spacing: -0.03em;
  }
}

/* ---- 2. About stat big number: 180px min is way too large on mobile ---- */
@media (max-width: 880px) {
  .about-stat .big {
    font-size: clamp(80px, 18vw, 180px);
  }
}
@media (max-width: 480px) {
  .about-stat .big {
    font-size: clamp(64px, 18vw, 120px);
  }
}

/* ---- 3. Agent card / scenario stage: remove fixed min-height on phones ---- */
@media (max-width: 640px) {
  .agent-card { min-height: auto; padding: 18px; }
  .scenario-stage { min-height: 280px; }
}
@media (max-width: 420px) {
  .scenario-stage { min-height: 240px; }
  .case-title { font-size: 15px; }
}

/* ---- 4. Terminal body: remove fixed min-height on mobile ---- */
@media (max-width: 880px) {
  .term-body { min-height: auto; padding: 16px 18px; font-size: 12px; }
  .term-body code, .term-line { font-size: 12px; }
}

/* ---- 5. Hero strip: go single-column on very small screens ---- */
@media (max-width: 400px) {
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip-item .num { font-size: 30px; }
}

/* ---- 6. Section & block padding reduction on phones ---- */
@media (max-width: 480px) {
  section { padding: 52px 0; }
  .block { padding: 52px 0; }
  .hero { padding: 40px 0 32px; }
}

/* ---- 7. CTA section padding reduction on phones ---- */
@media (max-width: 640px) {
  .cta { padding: 72px 0; }
  .cta-grid { gap: 28px; }
}
@media (max-width: 480px) {
  .cta { padding: 52px 0; }
  .cta h2 { font-size: clamp(34px, 9vw, 56px); }
}

/* ---- 8. CTA strip on mobile ---- */
@media (max-width: 480px) {
  .cta-strip { padding: 52px 0; }
  .cta-strip h3 { min-width: unset; }
}

/* ---- 9. Navigation: logo mark too large on mobile, touch targets ---- */
@media (max-width: 640px) {
  .logo-mark { width: 44px; height: 44px; }
  .logo { font-size: 19px; }
}
@media (max-width: 980px) {
  .nav-toggle { width: 44px; height: 44px; }
  .nav-inner { padding: 14px 0; }
}
/* Mobile nav menu links bigger tap target */
@media (max-width: 980px) {
  .nav-mobile a { padding: 16px 0; font-size: 17px; }
}

/* ---- 10. Featured event card: break grid on mobile ---- */
@media (max-width: 720px) {
  .featured-event {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }
  .event-date-block { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
  .event-date-block .event-day { font-size: 48px; }
}
@media (max-width: 480px) {
  .featured-event { padding: 22px 18px; }
}

/* ---- 11. FAQ accordion: tighter padding on mobile ---- */
@media (max-width: 640px) {
  .faq-item summary { padding: 16px 18px; gap: 14px; }
  .faq-item summary h4 { font-size: 15px; }
  .faq-item p { padding: 0 18px 18px; font-size: 14px; }
}

/* ---- 12. Subhero: padding and font on mobile ---- */
@media (max-width: 480px) {
  .subhero { padding: 32px 0 36px; }
  .subhero h1 { font-size: clamp(32px, 10vw, 52px); margin-bottom: 16px; }
  .subhero p.lede { font-size: 16px; }
  .subhero-actions { margin-top: 20px; }
}

/* ---- 13. Section head: smaller gap on phones ---- */
@media (max-width: 480px) {
  .section-head { gap: 16px; margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(28px, 8vw, 42px); }
}

/* ---- 14. Block head on phones ---- */
@media (max-width: 480px) {
  .block-head { margin-bottom: 32px; }
  .block-head h2 { font-size: clamp(26px, 8vw, 42px); }
  .block-head p { font-size: 15px; }
}

/* ---- 15. Buttons: ensure proper touch-target height on mobile ---- */
@media (max-width: 640px) {
  .btn { padding: 13px 20px; font-size: 14px; }
  .cta-btn { padding: 15px 22px; font-size: 15px; }
  .nav-cta { padding: 11px 16px; font-size: 13px; }
}

/* ---- 16. Service card h3 on mobile ---- */
@media (max-width: 480px) {
  .service-card h3 { font-size: 22px; }
  .service-card { padding: 24px 20px; }
}

/* ---- 17. Cloud card on mobile ---- */
@media (max-width: 480px) {
  .cloud-card { padding: 28px 22px; }
  .cloud-card h3 { font-size: 19px; }
}

/* ---- 18. Engine-room panels on phones ---- */
@media (max-width: 480px) {
  .er-panel { padding: 18px 16px; }
  .sec-stats { grid-template-columns: 1fr 1fr; }
  .pipeline { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .pipeline .connector { display: none; }
  .workflow { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .workflow .wf-arrow { display: none; }
}

/* ---- 19. Process/approach grid on phones (already 1-col at 480px) ---- */
@media (max-width: 480px) {
  .approach-step h3 { font-size: 20px; }
  .process-step h4 { font-size: 18px; }
}

/* ---- 20. Pricing grid responsive on phones ---- */
@media (max-width: 480px) {
  .pricing-card { padding: 22px 18px; }
  .pricing-card .pricing-amount { font-size: 24px; }
}

/* ---- 21. Legal pages on mobile ---- */
@media (max-width: 640px) {
  .legal-hero { padding: 40px 0 32px; }
  .legal-main { padding: 48px 0 64px; }
  .legal-prose { font-size: 14.5px; }
  .legal-prose h2 { font-size: clamp(18px, 5vw, 24px); margin: 32px 0 12px; }
}

/* ---- 22. Footer on very small screens ---- */
@media (max-width: 400px) {
  .footer { padding: 56px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-top { gap: 18px; }
  .footer-brand p { font-size: 13px; }
}

/* ---- 23. Marquee / clients strip font size on mobile ---- */
@media (max-width: 640px) {
  .marquee span { font-size: 22px; }
  .marquee { gap: 40px; }
  .clients { padding: 40px 0; }
}

/* ---- 24. Hero actions stacking on very small screens ---- */
@media (max-width: 380px) {
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .subhero-actions { flex-direction: column; align-items: flex-start; }
}

/* ---- 25. Roadmap card on phones ---- */
@media (max-width: 400px) {
  .roadmap-card { padding: 22px 16px 18px; }
  .roadmap-meta { grid-template-columns: 1fr; }
}

/* ---- 26. Pricing page section head on mobile ---- */
@media (max-width: 480px) {
  .pricing-and-plans-hero h1, .subhero h1 {
    font-size: clamp(30px, 10vw, 52px);
  }
}

/* ---- 27. Stats row: go single column at 480px ---- */
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat-card-big { padding: 22px 20px; }
}

/* ---- 28. Two-col gap on phones ---- */
@media (max-width: 480px) {
  .two-col { gap: 28px; }
  .two-col h3 { font-size: 22px; }
}

/* ---- 29. Tile padding on phones ---- */
@media (max-width: 480px) {
  .tile { padding: 24px 20px; min-height: unset; }
  .tile h4 { font-size: 18px; }
}

/* ---- 30. No-overflow global guard ---- */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, iframe { max-width: 100%; }
table { width: 100%; overflow-x: auto; display: block; }
pre, .query-code { overflow-x: auto; }

/* ---- 31. Container min-padding on tiny screens ---- */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
}

/* ---- 32. Engine room / er-grid on tablets ---- */
@media (max-width: 640px) {
  .er-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .er-status { align-self: flex-start; }
}

/* ---- 33. Hero strip number size on tablets ---- */
@media (max-width: 640px) {
  .hero-strip-item .num { font-size: 30px; }
  .hero-strip { margin-top: 48px; padding: 20px 0; }
}

/* ---- 34. Sector card on phones ---- */
@media (max-width: 480px) {
  .sector-card { padding: 22px 18px; }
  .sector-card .sector-stat { font-size: clamp(28px, 8vw, 36px); }
}

/* ---- 35. Engagement card on phones ---- */
@media (max-width: 480px) {
  .engagement-card { padding: 24px 20px; }
  .engagement-card h3 { font-size: 19px; }
}

/* ---- 36. Job card on phones ---- */
@media (max-width: 640px) {
  .job-card { grid-template-columns: 1fr; gap: 12px; padding: 22px 18px; }
  .job-arrow { display: none; }
}

/* ---- 37. Error page on phones ---- */
@media (max-width: 480px) {
  .error-hero { padding: 48px 0 40px; }
  .error-content h1 { font-size: clamp(36px, 10vw, 60px); }
}

/* ---- 38. Service card large on phones ---- */
@media (max-width: 480px) {
  .service-card-large { padding: 24px 20px; }
  .service-card-large h3 { font-size: 20px; }
}

/* ---- 39. Testimonials on phones ---- */
@media (max-width: 480px) {
  .testimonials-grid { grid-template-columns: 1fr !important; }
}

/* ---- 40. Enquiry form on phones ---- */
@media (max-width: 480px) {
  .enquiry-form { padding: 20px 16px; border-radius: 16px; }
  .enquiry-section { padding: 52px 0; }
  .form-submit-row { flex-direction: column; align-items: stretch; }
  .form-submit-btn { justify-content: center; }
}

/* ---- 41. Nav mobile: ensure the mobile menu CTA looks right ---- */
@media (max-width: 980px) {
  .nav-mobile .btn, .nav-mobile .nav-cta {
    display: inline-flex;
    margin-top: 12px;
  }
}

/* ---- 42. Image containers on mobile ---- */
@media (max-width: 640px) {
  .demo { min-height: auto; padding: 18px 16px; }
  .demo::before { opacity: 0.5; }
}

/* ---- 43. Cert grid on very small screens ---- */
@media (max-width: 400px) {
  .cert-grid { grid-template-columns: 1fr; }
  .footer-certs { gap: 6px; }
  .cert-badge { font-size: 9px; }
}

/* ---- 44. Scroll snap guard: prevent horizontal scroll from decorative blobs ---- */
.hero-bg, .subhero-bg, .er-bg, .cloud .grid-bg, .terminal-section::before {
  pointer-events: none;
  overflow: hidden;
}
.hero-bg .blob, .subhero-bg .blob {
  max-width: 100vw;
}

/* ---- 45. About grid: reduce gap on tablet ---- */
@media (max-width: 640px) {
  .about-grid { gap: 20px; }
  .about-text h3 { font-size: clamp(22px, 5vw, 32px); }
  .about-text p { font-size: 15.5px; }
}

/* ---- 46. Ensure form inputs have font-size ≥16px to prevent iOS zoom ---- */
@media (max-width: 980px) {
  .form-group input,
  .form-group select,
  .form-group textarea,
  .tp-chat-input {
    font-size: 16px;
  }
}

/* ---- 47. Process grid on small phones ---- */
@media (max-width: 380px) {
  .process-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
}

/* ---- 48. Hero stat strip items on mobile ---- */
@media (max-width: 640px) {
  .hero-strip { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
}

/* ---- 49. Clients section head on mobile ---- */
@media (max-width: 480px) {
  .clients-head { margin-bottom: 24px; }
}

/* ---- 50. cta-info-block font on mobile ---- */
@media (max-width: 480px) {
  .cta-info-block .val { font-size: 15px; }
  .cta-info-block .lbl { font-size: 10px; }
  .cta-btn { padding: 15px 20px; font-size: 14px; }
}



/* =============================================================
   BACK TO TOP BUTTON
   ============================================================= */

.tp-back-top {
  position: fixed;
  bottom: 96px; /* sits above the chat toggle */
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  cursor: pointer;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px -4px rgba(14,16,24,0.18), 0 0 0 1px rgba(14,16,24,0.04);
  opacity: 0;
  transform: translateY(12px) scale(0.88);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2,0.9,0.3,1.2),
              background 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.tp-back-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tp-back-top:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 24px -6px rgba(14,16,24,0.28);
  transform: translateY(-2px) scale(1);
}

.tp-back-top:hover svg {
  transform: translateY(-2px);
}

.tp-back-top svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* Progress ring around button */
.tp-back-top .tp-progress-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  pointer-events: none;
}

.tp-back-top .tp-progress-ring circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.2s linear;
  opacity: 0.7;
}

/* On dark sections, invert colours */
@media (prefers-color-scheme: dark) {
  .tp-back-top {
    background: var(--ink-2);
    color: var(--paper);
    border-color: rgba(251,248,241,0.12);
  }
}

/* Adjust position when chat panel is visible */
@media (max-width: 480px) {
  .tp-back-top {
    bottom: 88px;
    right: 18px;
    width: 42px;
    height: 42px;
  }
}



/* =============================================================
   TRUST BADGE STRIP (Certifications visual section)
   ============================================================= */

.cert-trust {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 56px 0;
}
.cert-trust-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}
.cert-trust-label .eyebrow { margin-bottom: 14px; }
.cert-trust-label p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 280px;
}
.cert-trust-badges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.ctb {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ctb:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -8px rgba(255,91,46,0.18);
}
.ctb-icon {
  width: 44px; height: 44px;
  background: rgba(255,91,46,0.08);
  border: 1px solid rgba(255,91,46,0.18);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
}
.ctb-name {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.ctb-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
@media (max-width: 1100px) {
  .cert-trust-badges { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .cert-trust-inner { grid-template-columns: 1fr; gap: 32px; }
  .cert-trust-label p { max-width: none; }
  .cert-trust-badges { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .cert-trust-badges { grid-template-columns: repeat(2, 1fr); }
  .cert-trust { padding: 40px 0; }
}
@media (max-width: 380px) {
  .cert-trust-badges { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   CASE STUDY PAGES
   ============================================================= */

/* Case study listing card */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.cs-card {
  background: var(--bg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s;
  position: relative;
}
.cs-card:hover { background: var(--ink); color: var(--paper); }
.cs-card:hover .cs-desc { color: rgba(251,248,241,0.65); }
.cs-card:hover .cs-meta { color: rgba(251,248,241,0.5); }
.cs-card:hover .cs-cta { color: var(--accent); }
.cs-industry {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.cs-industry::before { content: ""; width: 20px; height: 1px; background: var(--accent); }
.cs-card h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 24px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 14px;
}
.cs-desc {
  font-size: 14.5px; line-height: 1.6;
  color: var(--ink-soft); flex: 1;
  margin-bottom: 24px;
}
.cs-metrics {
  display: flex; gap: 20px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255,91,46,0.05);
  border: 1px solid rgba(255,91,46,0.12);
  border-radius: 10px;
}
.cs-card:hover .cs-metrics {
  background: rgba(255,91,46,0.12);
  border-color: rgba(255,91,46,0.25);
}
.cs-metric-item { display: flex; flex-direction: column; gap: 2px; }
.cs-metric-val {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 400;
  color: var(--accent); letter-spacing: -0.02em; line-height: 1;
}
.cs-metric-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.cs-card:hover .cs-metric-lbl { color: rgba(251,248,241,0.5); }
.cs-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.cs-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.cs-card:hover .cs-cta { gap: 10px; }

@media (max-width: 980px) { .cs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-card { padding: 28px 22px; }
}

/* Case study detail: outcome stats */
.cs-outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-bottom: 0;
}
.cs-outcome-cell {
  background: var(--bg);
  padding: 32px 28px;
}
.cs-outcome-cell .num {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400; line-height: 1;
  color: var(--accent); letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.cs-outcome-cell .lbl {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink); margin-bottom: 8px;
}
.cs-outcome-cell p {
  font-size: 13px; line-height: 1.5;
  color: var(--ink-soft); margin: 0;
}
.block.dark .cs-outcome-cell { background: rgba(251,248,241,0.03); }
.block.dark .cs-outcome-cell .lbl { color: var(--paper); }
.block.dark .cs-outcome-cell p { color: rgba(251,248,241,0.55); }

@media (max-width: 880px) { .cs-outcomes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .cs-outcomes { grid-template-columns: 1fr 1fr; }
  .cs-outcome-cell { padding: 22px 18px; }
}

/* Challenge / Solution two-pane */
.cs-challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.cs-pane {
  padding: 40px 36px;
  background: var(--bg);
}
.cs-pane.dark { background: var(--ink); color: var(--paper); }
.cs-pane-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.cs-pane.dark .cs-pane-label { color: rgba(251,248,241,0.45); }
.cs-pane h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500; letter-spacing: -0.02em;
  margin-bottom: 18px; line-height: 1.1;
}
.cs-pane.dark h3 { color: var(--paper); }
.cs-pane p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 14px; }
.cs-pane.dark p { color: rgba(251,248,241,0.7); }
.cs-pane p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  .cs-challenge-grid { grid-template-columns: 1fr; }
  .cs-pane { padding: 28px 24px; }
}

/* Tags strip on case study hero */
.cs-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 24px;
}
.cs-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
}



/* =============================================================
   READING PROGRESS BAR
   ============================================================= */
.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0%;
  background: var(--accent);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* =============================================================
   INSIGHTS / BLOG INDEX
   ============================================================= */

/* Filter tabs */
.insights-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.insights-filter-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.insights-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.insights-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Article cards grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.insights-card {
  background: var(--bg);
  padding: 32px 28px 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.2s;
}
.insights-card:hover { background: var(--paper); }
.insights-card.hidden { display: none; }
.insights-card-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.insights-card-cat::before { content: ""; width: 16px; height: 1px; background: var(--accent); }
.insights-card h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 12px; color: var(--ink);
  transition: color 0.2s;
}
.insights-card:hover h3 { color: var(--accent); }
.insights-card-standfirst {
  font-size: 14px; line-height: 1.6;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 22px;
}
.insights-card-foot {
  display: flex; gap: 10px; align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.insights-card-avatar {
  width: 30px; height: 30px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', serif;
  font-size: 11px; font-weight: 500; color: #fff;
  flex-shrink: 0;
}
.insights-card-byline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.04em;
  color: var(--muted); line-height: 1.4;
}
.insights-card-read {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}

/* Featured card (first card — spans 2 cols) */
.insights-card.featured {
  grid-column: span 2;
}
.insights-card.featured h3 { font-size: clamp(22px, 2.8vw, 32px); }

@media (max-width: 1024px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-card.featured { grid-column: span 2; }
}
@media (max-width: 640px) {
  .insights-grid { grid-template-columns: 1fr; }
  .insights-card.featured { grid-column: span 1; }
  .insights-card { padding: 24px 20px 20px; }
}

/* Empty state */
.insights-empty {
  padding: 60px 32px;
  text-align: center;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase;
  grid-column: 1 / -1;
  display: none;
}
.insights-empty.visible { display: block; }

/* Article count badge */
.insights-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}

/* Newsletter inline strip */
.insights-newsletter {
  background: var(--ink);
  border-top: 1px solid rgba(251,248,241,0.06);
  padding: 56px 0;
  text-align: center;
}
.insights-newsletter h2 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 400; color: var(--paper);
  letter-spacing: -0.02em; margin-bottom: 14px;
}
.insights-newsletter p {
  color: rgba(251,248,241,0.6);
  font-size: 16px; margin-bottom: 28px;
  max-width: 440px; margin-left: auto; margin-right: auto;
}
.newsletter-form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  max-width: 480px; margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 13px 18px;
  background: rgba(251,248,241,0.07);
  border: 1px solid rgba(251,248,241,0.14);
  border-radius: 8px; color: var(--paper);
  font-family: 'Inter Tight', sans-serif; font-size: 15px;
  outline: none; transition: border-color 0.2s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.newsletter-form input[type="email"]::placeholder { color: rgba(251,248,241,0.35); }
.newsletter-form button {
  padding: 13px 24px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px; cursor: pointer;
  font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 15px;
  transition: opacity 0.2s;
}
.newsletter-form button:hover { opacity: 0.88; }

/* CTA strip (reusable on article pages) */
.cta-strip {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  padding: 48px 0;
}
.cta-strip .container {
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-strip h3 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400; letter-spacing: -0.02em;
}
.cta-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .cta-strip .container { flex-direction: column; align-items: flex-start; }
}

