:root{
    --navy:#0B1B3A;
    --navy-2:#12295C;
    --blue:#0966C3;
    --blue-deep:#07529C;
    --blue-soft:#EBF0FA;
    --blue-soft-2:#F5F8FF;
    --white:#FFFFFF;
    --ink:#0F1424;
    --ink-soft:#525A70;
    --line:#DCE3F7;
    --rust:#D97A3B;
    --ok:#1E8F5F;
    --warn:#C8501E;
    --radius:16px;
    --radius-sm:10px;
    --shadow: 0 10px 30px rgba(11,27,58,0.08);
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    font-family:'Inter',sans-serif;
    color:var(--ink);
    background:var(--white);
    line-height:1.55;
  }
  h1,h2,h3,h4{
    font-family:'Space Grotesk',sans-serif;
    color:var(--navy);
    margin:0;
    line-height:1.15;
  }
  .mono{font-family:'IBM Plex Mono',monospace;}
  a{color:var(--blue);}
  img{max-width:100%;display:block;}
  .wrap{max-width:1120px;margin:0 auto;padding:0 24px;}
  section{scroll-margin-top:84px;}

  /* Header */
  header.site{
    position:sticky; top:0; z-index:50;
    background:rgba(255,255,255,0.92);
    backdrop-filter:blur(8px);
    border-bottom:1px solid var(--line);
  }
  .nav-inner{
    max-width:1120px;margin:0 auto;padding:0 24px;
    display:flex; align-items:center; justify-content:space-between;
    height:64px;
  }
  .brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--navy); font-weight:600;}
  .brand img{width:30px;height:30px;border-radius:50%;}
  .brand span{font-family:'Space Grotesk',sans-serif; font-size:15px;}
  nav.modules{display:flex; gap:4px;}
  nav.modules a{
    font-family:'IBM Plex Mono',monospace;
    font-size:12.5px; color:var(--ink-soft); text-decoration:none;
    padding:8px 10px; border-radius:8px;
  }
  nav.modules a:hover{background:var(--blue-soft); color:var(--blue-deep);}
  nav.modules a.nav-cta{
    color:var(--white); background:var(--blue); border:1px solid var(--blue); margin-left:6px;
  }
  nav.modules a.nav-cta:hover{background:var(--blue-deep); border-color:var(--blue-deep);}
  .nav-toggle{display:none; background:none; border:none; cursor:pointer; padding:8px;}
  .nav-toggle span{display:block; width:22px; height:2px; background:var(--navy); margin:5px 0; border-radius:2px;}

  /* Hero */
  .hero{
    background:
      radial-gradient(1100px 500px at 85% -10%, rgba(46,92,255,0.16), transparent 60%),
      linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    color:var(--white);
    padding:76px 0 64px;
  }
  .eyebrow{
    font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.08em; text-transform:uppercase;
    color:#9FB3F0; margin-bottom:16px; display:flex; align-items:center; gap:8px;
  }
  .eyebrow::before{content:""; width:18px; height:1px; background:#9FB3F0; display:inline-block;}
  .hero h1{
    font-size:clamp(28px,4.4vw,44px);
    color:var(--white);
    max-width:820px;
    font-weight:700;
  }
  .hero p.lead{
    max-width:640px; margin-top:18px; font-size:16.5px; color:#CBD6F5;
  }
  .stat-row{display:flex; flex-wrap:wrap; gap:14px; margin-top:36px;}
  .stat-chip{
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.14);
    border-radius:12px; padding:14px 18px; min-width:150px;
  }
  .stat-chip b{display:block; font-family:'Space Grotesk',sans-serif; font-size:20px; color:var(--white);}
  .stat-chip span{font-size:12px; color:#AEBEEB;}

  /* Overview grid */
  .overview{padding:64px 0 20px;}
  .overview .kicker{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--blue-deep); text-transform:uppercase; letter-spacing:.06em;}
  .overview h2{font-size:clamp(22px,3vw,30px); margin-top:8px; max-width:640px;}
  .grid5{
    display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-top:34px;
  }
  .mcard{
    border:1px solid var(--line); border-radius:var(--radius); padding:20px 16px;
    text-decoration:none; color:var(--ink); background:var(--white);
    transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  }
  .mcard:hover{transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--blue);}
  .mcard .num{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--blue-deep);}
  .mcard h3{font-size:15px; margin-top:10px;}
  .mcard p{font-size:12.5px; color:var(--ink-soft); margin:8px 0 0;}

  /* Module sections */
  .module{padding:64px 0; border-top:1px solid var(--line);}
  .module.alt{background:var(--blue-soft-2);}
  .mod-head{display:flex; align-items:baseline; gap:14px; margin-bottom:8px;}
  .mod-head .num{font-family:'IBM Plex Mono',monospace; color:var(--blue-deep); font-size:13px;}
  .module h2{font-size:clamp(20px,2.8vw,27px);}
  .module .intro{max-width:680px; color:var(--ink-soft); margin-top:10px; font-size:15px;}

  .panel{
    margin-top:28px; border:1px solid var(--line); border-radius:var(--radius);
    background:var(--white); padding:24px; box-shadow:var(--shadow);
  }

  /* Journey/Discovery module */
  .segment-toggle{display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap;}
  .seg-btn{
    font-family:'IBM Plex Mono',monospace; font-size:12.5px;
    border:1px solid var(--line); background:var(--white); color:var(--ink);
    padding:9px 14px; border-radius:999px; cursor:pointer;
  }
  .seg-btn.active{background:var(--blue); color:var(--white); border-color:var(--blue);}
  .friction-list{display:grid; grid-template-columns:repeat(2,1fr); gap:12px;}
  .friction{
    border:1px solid var(--line); border-radius:var(--radius-sm); padding:14px 16px; background:var(--blue-soft-2);
  }
  .friction b{display:block; font-size:13.5px; margin-bottom:4px;}
  .friction span{font-size:12.5px; color:var(--ink-soft);}
  .friction .tag{
    display:inline-block; font-family:'IBM Plex Mono',monospace; font-size:10.5px;
    color:var(--blue-deep); background:var(--blue-soft); padding:2px 8px; border-radius:6px; margin-bottom:6px;
  }

  /* Forms shared */
  .form-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; align-items:end;}
  .field{display:flex; flex-direction:column; gap:6px;}
  .field label{font-size:11.5px; color:var(--ink-soft); font-family:'IBM Plex Mono',monospace;}
  .field input, .field select{
    border:1px solid var(--line); border-radius:8px; padding:10px 12px; font-size:14px; font-family:'Inter',sans-serif;
    background:var(--white);
  }
  .field input:focus, .field select:focus{outline:2px solid var(--blue); outline-offset:1px; border-color:var(--blue);}
  .btn{
    background:var(--blue); color:var(--white); border:none; border-radius:8px;
    padding:11px 18px; font-size:13.5px; font-weight:600; cursor:pointer; font-family:'Inter',sans-serif;
  }
  .btn:hover{background:var(--blue-deep);}
  .btn.ghost{background:transparent; color:var(--blue-deep); border:1px solid var(--blue);}

  table{width:100%; border-collapse:collapse; margin-top:18px; font-size:13.5px;}
  th,td{padding:10px 12px; border-bottom:1px solid var(--line); text-align:left;}
  th{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.03em;}
  td.num{font-family:'IBM Plex Mono',monospace;}
  .badge{
    display:inline-block; font-size:11px; padding:3px 8px; border-radius:999px; font-family:'IBM Plex Mono',monospace;
  }
  .badge.ancla{background:#E4F6ED; color:var(--ok);}
  .badge.explora{background:var(--blue-soft); color:var(--blue-deep);}
  .badge.retira{background:#FBE7DD; color:var(--warn);}

  /* Quadrant */
  .quadrant-wrap{display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:22px;}
  .quadrant{
    position:relative; aspect-ratio:1/1; border:1px solid var(--line); border-radius:var(--radius-sm);
    background:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size:20% 20%;
  }
  .quadrant .axis-x, .quadrant .axis-y{
    position:absolute; font-family:'IBM Plex Mono',monospace; font-size:10px; color:var(--ink-soft);
  }
  .quadrant .axis-x{bottom:-22px; left:50%; transform:translateX(-50%);}
  .quadrant .axis-y{left:-30px; top:50%; transform:rotate(-90deg) translateX(50%); transform-origin:left;}
  .qlabel{position:absolute; font-family:'IBM Plex Mono',monospace; font-size:10px; color:var(--ink-soft); opacity:.7;}
  .dot{
    position:absolute; width:11px; height:11px; border-radius:50%; border:2px solid var(--white);
    box-shadow:0 0 0 1px rgba(0,0,0,0.08); transform:translate(-50%,50%);
  }

  .note{
    font-size:13px; color:var(--ink-soft); background:var(--blue-soft-2);
    border-left:3px solid var(--blue); padding:10px 14px; border-radius:6px; margin-top:16px;
  }
  .result-row{display:flex; flex-wrap:wrap; gap:14px; margin-top:20px;}
  .result-chip{
    flex:1; min-width:150px; border:1px solid var(--line); border-radius:var(--radius-sm);
    padding:14px 16px; background:var(--blue-soft-2);
  }
  .result-chip b{display:block; font-family:'Space Grotesk',sans-serif; font-size:19px; color:var(--navy);}
  .result-chip span{font-size:11.5px; color:var(--ink-soft); font-family:'IBM Plex Mono',monospace;}

  /* CTA portfolio band */
  .cta-portfolio{
    background:linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
    padding:52px 0;
  }
  .cta-portfolio-inner{
    display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  }
  .cta-portfolio .kicker{
    font-family:'IBM Plex Mono',monospace; font-size:12px; color:#9FB3F0;
    text-transform:uppercase; letter-spacing:.06em;
  }
  .cta-portfolio h2{color:var(--white); font-size:clamp(20px,2.6vw,26px); margin-top:6px;}
  .cta-portfolio p{color:#CBD6F5; font-size:14px; margin-top:8px; max-width:480px;}
  .cta-btn{
    background:var(--white); color:var(--navy); white-space:nowrap; padding:13px 22px; font-size:14px;
  }
  .cta-btn:hover{background:var(--blue-soft); color:var(--navy);}

  /* Footer */
  footer.site{border-top:1px solid var(--line); padding:44px 0 30px; background:var(--white);}
  .footer-links{
    display:flex; justify-content:center; gap:18px; font-size:12.5px; color:var(--ink-soft);
    margin-bottom:20px;
  }
  .footer-links a{color:var(--ink-soft); text-decoration:none; border-bottom:1px solid var(--line);}
  .footer-links a:hover{color:var(--blue-deep); border-color:var(--blue-deep);}

  .brand-mark{ text-align:center; pointer-events:none; }
  .brand-mark .brand-sig{
    display:flex; align-items:center; justify-content:center; gap:6px;
    font-family:'IBM Plex Mono',monospace; font-size:9px; letter-spacing:0.03em;
    color:rgba(15,20,36,0.55);
  }
  .brand-mark .brand-icon{width:14px; height:14px; border-radius:50%; flex-shrink:0;}
  .brand-mark .brand-sig a{
    color:rgba(15,20,36,0.8); pointer-events:auto; text-decoration:none; border-bottom:1px solid rgba(15,20,36,0.35);
  }
  .brand-mark .brand-sig a:hover{color:#0F1424; border-bottom-color:#0F1424;}
  .brand-mark .claude-star{color:var(--rust); font-size:14px; display:inline-block;}
  .brand-mark .brand-inspired{
    margin-top:1px;
    font-family:'IBM Plex Mono',monospace; font-size:8.5px;
    color:rgba(15,20,36,0.35);
  }
  .brand-mark .brand-inspired a{
    color:rgba(15,20,36,0.5); pointer-events:auto; text-decoration:none; border-bottom:1px solid rgba(15,20,36,0.2);
  }
  .brand-mark .brand-inspired a:hover{color:rgba(15,20,36,0.8);}

  @media (max-width:900px){
    .form-grid{grid-template-columns:repeat(2,1fr);}
    .quadrant-wrap{grid-template-columns:1fr;}
    .grid5{grid-template-columns:repeat(2,1fr);}
    .friction-list{grid-template-columns:1fr;}
  }
  @media (max-width:720px){
    nav.modules{
      position:fixed; top:64px; left:0; right:0; background:var(--white);
      flex-direction:column; padding:10px 24px 16px; border-bottom:1px solid var(--line);
      display:none; box-shadow:var(--shadow);
    }
    nav.modules.open{display:flex;}
    .nav-toggle{display:block;}
    .form-grid{grid-template-columns:1fr;}
    .grid5{grid-template-columns:1fr;}
  }
