:root{
    --charcoal:#211F1E;
    --charcoal-2:#2B2A28;
    --walnut:#8E4D2C;
    --walnut-light:#B96A44;
    --orange:#FF6D12;
    --orange-dim:#CC5A0F;
    --gray:#8A8B89;
    --paper:#F3EFE7;
    --paper-2:#EAE4D8;
    --white:#FFFFFF;
    --line: rgba(255,255,255,0.10);
    --line-dark: rgba(33,31,30,0.12);
    --maxw: 1180px;
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--charcoal);
    color:var(--paper);
    font-family:'Inter',sans-serif;
    font-size:16px;
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
  }
  img,svg{display:block; max-width:100%;}
  a{color:inherit; text-decoration:none;}
  ul{list-style:none;}

  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
  }

  :focus-visible{
    outline:2px solid var(--orange);
    outline-offset:3px;
  }

  .wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px;}
  @media (max-width:640px){ .wrap{padding:0 20px;} }

  .eyebrow{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    font-weight:600;
    letter-spacing:0.14em;
    text-transform:uppercase;
    color:var(--orange);
    display:inline-flex;
    align-items:center;
    gap:10px;
  }
  .eyebrow::before{
    content:"";
    width:18px; height:1px;
    background:var(--orange);
    display:inline-block;
  }

  h1,h2,h3{
    font-family:'Archivo', sans-serif;
    font-weight:900;
    letter-spacing:-0.02em;
    line-height:1.02;
    color:var(--white);
  }

  /* ---------- Header ---------- */
  header{
    position:sticky; top:0; z-index:50;
    background:rgba(33,31,30,0.88);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  .nav{
    display:flex; align-items:center; justify-content:space-between;
    padding:20px 0;
  }
  .logo{
    font-family:'Archivo', sans-serif;
    font-weight:900;
    font-size:19px;
    letter-spacing:-0.01em;
    color:var(--white);
    display:flex;
    align-items:baseline;
    gap:2px;
  }
  .logo span{color:var(--orange);}
  .navlinks{display:flex; gap:36px; align-items:center;}
  .navlinks a{
    font-size:14px; font-weight:500; color:var(--gray);
    transition:color .15s ease;
  }
  .navlinks a:hover{color:var(--white);}
  .btn{
    display:inline-flex; align-items:center; gap:8px;
    font-family:'Inter',sans-serif;
    font-weight:600; font-size:14px;
    padding:12px 22px;
    border-radius:2px;
    border:1px solid transparent;
    cursor:pointer;
    transition:transform .15s ease, background .15s ease, border-color .15s ease;
  }
  .btn-primary{ background:var(--orange); color:var(--charcoal); }
  .btn-primary:hover{ background:var(--white); transform:translateY(-1px); }
  .btn-ghost{ border-color:var(--line); color:var(--white); }
  .btn-ghost:hover{ border-color:var(--orange); }
  .nav-cta{display:flex; gap:14px;}
  .menu-toggle{display:none; background:none; border:0; color:var(--white); font-size:24px; cursor:pointer;}

  @media (max-width:860px){
    .navlinks{ display:none; }
    .nav-cta .btn-ghost{display:none;}
    .menu-toggle{display:block;}
  }

  /* ---------- Hero ---------- */
  .hero{
    position:relative;
    padding:96px 0 88px;
    overflow:hidden;
    border-bottom:1px solid var(--line);
  }
  .hero::before{
    content:"";
    position:absolute; inset:0;
    background:
      radial-gradient(680px 420px at 82% 10%, rgba(255,109,18,0.16), transparent 65%),
      radial-gradient(500px 500px at -5% 90%, rgba(142,77,44,0.22), transparent 60%);
    pointer-events:none;
  }
  .hero-grid{
    position:relative;
    display:grid;
    grid-template-columns:1.15fr 0.85fr;
    gap:64px;
    align-items:center;
  }
  @media (max-width:960px){
    .hero-grid{grid-template-columns:1fr; gap:56px;}
  }
  .hero h1{
    font-size:clamp(38px, 5vw, 62px);
    margin:22px 0 24px;
  }
  .hero h1 em{
    font-style:normal;
    color:var(--orange);
  }
  .hero p.lede{
    font-size:18px;
    color:var(--gray);
    max-width:46ch;
    margin-bottom:36px;
  }
  .hero-cta{display:flex; gap:16px; flex-wrap:wrap; margin-bottom:40px;}
  .hero-note{
    font-size:13px; color:var(--gray);
    font-family:'IBM Plex Mono', monospace;
  }

  /* Gauge signature element */
  .gauge-card{
    background:var(--charcoal-2);
    border:1px solid var(--line);
    border-radius:4px;
    padding:32px 28px 26px;
  }
  .gauge-card .cap{
    font-family:'IBM Plex Mono', monospace;
    font-size:11px; letter-spacing:0.12em; text-transform:uppercase;
    color:var(--gray); margin-bottom:18px;
  }
  .gauge-svg{width:100%; height:auto;}
  .gauge-readout{
    display:flex; justify-content:space-between; align-items:flex-end;
    margin-top:14px; padding-top:18px; border-top:1px solid var(--line);
  }
  .gauge-readout .metric{}
  .gauge-readout .metric .num{
    font-family:'Archivo',sans-serif; font-weight:800; font-size:26px; color:var(--white);
  }
  .gauge-readout .metric .lbl{
    font-size:11px; color:var(--gray); font-family:'IBM Plex Mono', monospace; letter-spacing:0.06em; text-transform:uppercase; margin-top:2px;
  }
  .gauge-readout .metric.good .num{color:var(--orange);}

  .needle{ transform-origin:150px 150px; transition:transform 1.4s cubic-bezier(.2,.9,.15,1.1); }

  /* ---------- Section shared ---------- */
  section{padding:96px 0;}
  .section-head{
    max-width:640px;
    margin-bottom:56px;
  }
  .section-head h2{
    font-size:clamp(28px, 3.4vw, 42px);
    margin-top:16px;
  }
  .section-head p{
    color:var(--gray);
    font-size:16.5px;
    margin-top:16px;
    max-width:52ch;
  }
  .on-paper{ background:var(--paper); color:var(--charcoal); border-bottom:1px solid var(--line-dark);}
  .on-paper h2, .on-paper h1, .on-paper h3{color:var(--charcoal);}
  .on-paper .eyebrow{color:var(--walnut);}
  .on-paper .eyebrow::before{background:var(--walnut);}
  .on-paper .section-head p{color:#5C5A55;}

  /* ---------- Math section (CPL vs CAC) ---------- */
  .math-panel{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0;
    border:1px solid var(--line-dark);
    border-radius:4px;
    overflow:hidden;
    background:var(--white);
  }
  @media (max-width:800px){ .math-panel{grid-template-columns:1fr;} }
  .math-col{padding:40px 36px;}
  .math-col + .math-col{border-left:1px solid var(--line-dark);}
  @media (max-width:800px){ .math-col + .math-col{border-left:none; border-top:1px solid var(--line-dark);} }
  .math-col .tag{
    font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:0.1em; text-transform:uppercase;
    color:var(--gray); margin-bottom:14px; display:block;
  }
  .math-col h3{font-size:22px; color:var(--charcoal); margin-bottom:14px;}
  .math-col p{color:#5C5A55; font-size:15px; margin-bottom:18px;}
  .math-example{
    background:var(--paper-2);
    border-radius:3px;
    padding:18px 20px;
    font-family:'IBM Plex Mono', monospace;
    font-size:13px;
    color:#4a4844;
    line-height:1.8;
  }
  .math-example .line{display:flex; justify-content:space-between; gap:12px;}
  .math-example .line strong{color:var(--charcoal); font-weight:600;}
  .math-example .sep{border-top:1px dashed rgba(33,31,30,0.25); margin:8px 0;}
  .math-flag{
    font-size:12px; color:var(--gray); margin-top:14px; font-style:italic;
  }

  /* ---------- Process ---------- */
  .steps{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:1px;
    background:var(--line);
    border:1px solid var(--line);
    border-radius:4px;
    overflow:hidden;
  }
  @media (max-width:800px){ .steps{grid-template-columns:1fr;} }
  .step{ background:var(--charcoal-2); padding:38px 32px; }
  .step .idx{
    font-family:'IBM Plex Mono', monospace;
    color:var(--orange); font-size:13px; font-weight:600; letter-spacing:0.08em;
  }
  .step h3{font-size:21px; margin:16px 0 12px;}
  .step p{color:var(--gray); font-size:14.5px;}

  /* ---------- Niches ---------- */
  .niche-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:14px;
  }
  @media (max-width:800px){ .niche-grid{grid-template-columns:1fr 1fr;} }
  @media (max-width:520px){ .niche-grid{grid-template-columns:1fr;} }
  .niche-card{
    border:1px solid var(--line-dark);
    border-radius:4px;
    padding:26px 22px;
    background:var(--white);
    transition:border-color .15s ease, transform .15s ease;
  }
  .niche-card:hover{ border-color:var(--walnut); transform:translateY(-2px); }
  .niche-card .status{
    font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:0.08em; text-transform:uppercase;
    padding:3px 9px; border-radius:20px; display:inline-block; margin-bottom:14px;
  }
  .status.active{ background:rgba(142,77,44,0.12); color:var(--walnut); }
  .status.open{ background:rgba(121,122,121,0.12); color:#6a6a68; }
  .niche-card h3{font-size:17px; color:var(--charcoal); font-weight:800; margin-bottom:8px;}
  .niche-card p{font-size:13.5px; color:#6a6864;}

  /* ---------- Founder / credibility ---------- */
  .founder{
    display:grid;
    grid-template-columns:0.9fr 1.1fr;
    gap:64px;
    align-items:center;
  }
  @media (max-width:860px){ .founder{grid-template-columns:1fr; gap:40px;} }
  .founder-badge{
    border:1px solid var(--line);
    border-radius:4px;
    background:var(--charcoal-2);
    padding:34px;
  }
  .founder-badge .yrs{
    font-family:'Archivo',sans-serif; font-weight:900; font-size:56px; color:var(--orange); line-height:1;
  }
  .founder-badge .yrs-lbl{
    font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--gray); letter-spacing:0.08em; text-transform:uppercase; margin-top:10px;
  }
  .founder-badge .divider{ height:1px; background:var(--line); margin:26px 0; }
  .founder-badge .row{ display:flex; justify-content:space-between; font-size:13.5px; padding:8px 0; color:var(--gray); }
  .founder-badge .row strong{ color:var(--white); font-weight:600; }
  .founder-copy p{ color:var(--gray); font-size:16px; margin-bottom:18px; max-width:52ch; }
  .founder-copy p strong{ color:var(--white); font-weight:600; }

  /* ---------- CTA / Contact ---------- */
  .cta-section{
    background:var(--orange);
    color:var(--charcoal);
    border-bottom:none;
  }
  .cta-inner{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:56px;
    align-items:start;
  }
  @media (max-width:860px){ .cta-inner{grid-template-columns:1fr; gap:36px;} }
  .cta-section .eyebrow{color:var(--charcoal); opacity:0.75;}
  .cta-section .eyebrow::before{background:var(--charcoal);}
  .cta-section h2{ color:var(--charcoal); font-size:clamp(30px,3.6vw,44px); margin-top:16px; }
  .cta-section p.lede{ color:rgba(33,31,30,0.78); font-size:16.5px; margin-top:16px; max-width:44ch; }
  .cta-list{ margin-top:28px; }
  .cta-list li{
    display:flex; gap:10px; font-size:14.5px; color:rgba(33,31,30,0.85); margin-bottom:10px;
  }
  .cta-list li::before{ content:"—"; font-weight:700; }

  form.audit{
    background:var(--charcoal);
    border-radius:4px;
    padding:32px;
  }
  form.audit .frow{ margin-bottom:16px; }
  form.audit label{
    display:block; font-size:12px; font-family:'IBM Plex Mono', monospace;
    letter-spacing:0.06em; text-transform:uppercase; color:var(--gray); margin-bottom:8px;
  }
  form.audit input, form.audit select{
    width:100%;
    background:var(--charcoal-2);
    border:1px solid var(--line);
    border-radius:2px;
    padding:12px 14px;
    color:var(--white);
    font-family:'Inter',sans-serif;
    font-size:14.5px;
  }
  form.audit input:focus, form.audit select:focus{ border-color:var(--orange); outline:none; }
  form.audit .two{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
  @media (max-width:480px){ form.audit .two{grid-template-columns:1fr;} }
  form.audit .btn-primary{ width:100%; justify-content:center; margin-top:6px; padding:14px; }
  form.audit .fine{ font-size:12px; color:var(--gray); margin-top:14px; text-align:center; }

  /* ---------- Footer ---------- */
  footer{ padding:48px 0 40px; }
  .foot-grid{
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px;
    padding-top:32px; border-top:1px solid var(--line);
  }
  .foot-grid .logo{font-size:16px;}
  .foot-links{ display:flex; gap:28px; }
  .foot-links a{ font-size:13.5px; color:var(--gray); }
  .foot-links a:hover{ color:var(--white); }
  .foot-copy{ font-size:12.5px; color:var(--gray); margin-top:24px; font-family:'IBM Plex Mono', monospace; }

  /* reveal on scroll */
  .reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
  .reveal.in{ opacity:1; transform:translateY(0); }
