: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; }
  .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
  .footer-brand .logo { color: var(--paper); }
  .footer-brand p { margin-top: 20px; font-size: 14px; max-width: 280px; line-height: 1.6; }
  .footer-col h4 {
    color: var(--paper); font-size: 14px; font-weight: 500;
    margin-bottom: 18px; font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase; letter-spacing: 0.1em;
  }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 10px; }
  .footer-col a {
    color: rgba(251,248,241,0.55); text-decoration: none;
    font-size: 14.5px; transition: color 0.2s;
  }
  .footer-col a: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); }
  @media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
  @media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
  }

  /* ---------- 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;
}
