:root{
    --bg:#ffffff; --panel:#f7f8fb; --panel-2:#eef1f6; --line:#e2e6ec; --text:#0f1420; --muted:#5b6472;
    --night:#0a0e1c; --night-2:#131a2e; --blue:#0b84ff; --magenta:#ff2e88; --orange:#ff8a00; --teal:#00d6b4; --purple:#8b5cf6;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{background:var(--bg); color:var(--text); font-family:'Inter', sans-serif; line-height:1.6; -webkit-font-smoothing:antialiased;}
  h1,h2,h3{font-family:'Space Grotesk', sans-serif; font-weight:600; letter-spacing:-0.01em;}
  a{color:inherit;}
  .wrap{max-width:760px; margin:0 auto; padding:0 24px;}
  ::selection{background:var(--magenta); color:#fff;}

  .topbar{position:sticky; top:0; z-index:50; background:rgba(255,255,255,0.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line);}
  .topbar .inner{max-width:1180px; margin:0 auto; padding:0 28px; display:flex; align-items:center; justify-content:space-between; height:52px;}
  .brand{display:flex; align-items:center; text-decoration:none;}
  .brand img{height:22px; width:auto; display:block;}
  .topbar nav a{font-size:14px; color:var(--muted); text-decoration:none; margin-left:22px;}
  .topbar nav a:hover{color:var(--text);}
  .topbar .cta{
    font-family:'IBM Plex Mono'; font-size:13px; color:#0a0e1c; font-weight:600;
    background:linear-gradient(90deg, var(--teal), var(--blue)); padding:6px 12px; border-radius:20px; text-decoration:none;
  }

  .article-hero{background:var(--night); padding:56px 0 48px; color:#fff; position:relative; overflow:hidden;}
  .article-hero::before{content:''; position:absolute; top:-40%; right:-10%; width:60%; height:180%; background:radial-gradient(ellipse, rgba(11,132,255,0.35), transparent 65%); pointer-events:none;}
  .article-hero::after{content:''; position:absolute; bottom:-50%; left:-10%; width:55%; height:160%; background:radial-gradient(ellipse, rgba(255,46,136,0.28), transparent 65%); pointer-events:none;}
  .article-hero .wrap{position:relative; z-index:1;}
  .eyebrow{font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:0.14em; text-transform:uppercase; color:var(--teal); display:flex; align-items:center; gap:10px; margin-bottom:12px;}
  .eyebrow::before{content:''; width:6px; height:6px; background:var(--teal); border-radius:50%; box-shadow:0 0 8px var(--teal);}
  .article-hero h1{font-size:clamp(28px,4.4vw,42px); line-height:1.2; max-width:680px; margin-bottom:14px;}
  .meta{font-family:'IBM Plex Mono'; font-size:13px; color:rgba(255,255,255,0.6);}

  .article-body{padding:40px 0 20px;}
  .article-body h2{font-size:24px; margin:32px 0 12px;}
  .article-body h3{font-size:18px; margin:24px 0 8px;}
  .article-body p{font-size:16px; color:#242b3a; margin-bottom:16px;}
  .article-body ul, .article-body ol{margin:0 0 16px 22px; font-size:16px; color:#242b3a;}
  .article-body li{margin-bottom:8px;}
  .callout{background:linear-gradient(120deg, var(--blue), #0a3d91); border-radius:10px; padding:16px 20px; margin:24px 0; font-size:15px; color:#fff;}
  .callout strong{color:#fff;}
  .table-wrap{overflow-x:auto; margin:20px 0;}
  table{border-collapse:collapse; width:100%; font-size:14.5px;}
  th,td{border:1px solid var(--line); padding:10px 12px; text-align:left;}
  th{background:var(--panel); font-family:'IBM Plex Mono'; font-size:12.5px; text-transform:uppercase; letter-spacing:0.04em; color:var(--muted);}

  .cta-block{background:var(--night); border-radius:16px; padding:36px 32px; margin:36px 0; text-align:left; position:relative; overflow:hidden;}
  .cta-block::before{content:''; position:absolute; top:-30%; right:-10%; width:60%; height:160%; background:radial-gradient(ellipse, rgba(0,214,180,0.25), transparent 65%); pointer-events:none;}
  .cta-block > *{position:relative; z-index:1;}
  .cta-block h3{color:#fff; margin-bottom:12px; font-size:22px;}
  .cta-block p{color:#c3c9d4; margin-bottom:22px; font-size:15.5px;}
  .cta-block .btn-primary{background:var(--teal); color:var(--night); border-radius:30px; padding:13px 24px; font-weight:600;}
  .btn-primary{background:#fff; color:#101826; font-weight:600; font-size:15px; padding:10px 20px; border-radius:30px; text-decoration:none; display:inline-block;}

  .back-link{display:inline-block; margin:28px 0 0; font-size:14px; color:var(--muted); text-decoration:none;}
  .back-link:hover{color:var(--blue);}

  footer{border-top:1px solid var(--line); padding:20px 0; color:var(--muted); font-size:13px; text-align:center;}

html{overflow-x:hidden;}

/* ============================================================
   HOMEPAGE-SPECIFIC OVERRIDES (scoped to body.page-home so they
   never affect the 44 subpages sharing the article template above)
   ============================================================ */
body.page-home{ line-height:1.5; overflow-x:hidden; }
body.page-home .wrap{ max-width:1180px; padding:0 28px; }
body.page-home .brand img{ height:24px; }
body.page-home .btn-primary{
  background:linear-gradient(90deg, var(--blue), var(--magenta));
  color:#fff; padding:10px 18px; display:inline-flex; align-items:center; gap:8px;
  transition:transform .15s ease, box-shadow .15s ease;
}
body.page-home footer{ padding:14px 0; }
body.page-home footer .wrap{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; text-align:left; max-width:1180px; }

/* ============================================================
   HOMEPAGE-ONLY COMPONENTS (hero, rack/modules, stats, log, etc.)
   These selectors are unique to index.html's markup - harmless
   to include globally since no subpage HTML matches them.
   ============================================================ */

.mono{font-family:'IBM Plex Mono', monospace;}

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

  /* ---------- topbar ---------- */

  .topbar .wrap{display:flex; align-items:center; justify-content:space-between; height:52px;}

  @keyframes blink{0%,100%{opacity:1;} 50%{opacity:0.35;}}
  .nav-links{display:flex; gap:28px; font-size:14px; color:var(--muted);}
  .nav-links a{text-decoration:none; transition:color .2s;}
  .nav-links a:hover{color:var(--text);}

  .topbar .cta:hover{transform:translateY(-1px); box-shadow:0 6px 18px rgba(11,132,255,0.4);}
  @media (max-width:820px){ .nav-links{display:none;} }

  /* ---------- hero (night stage) ---------- */
  .hero{
    position:relative; overflow:hidden;
    background:radial-gradient(ellipse 120% 90% at 20% -10%, var(--night-2), var(--night) 60%);
    padding:32px 0 24px;
  }
  .beam{
    position:absolute; top:-30%; width:60vw; height:160vh;
    filter:blur(60px); opacity:0.45; mix-blend-mode:screen;
    animation:sway 14s ease-in-out infinite;
    pointer-events:none;
  }
  .beam-1{ left:-10%; background:conic-gradient(from 200deg, var(--blue), transparent 40%); transform:rotate(18deg); animation-delay:0s;}
  .beam-2{ left:20%; background:conic-gradient(from 200deg, var(--magenta), transparent 40%); transform:rotate(8deg); animation-delay:-4s;}
  .beam-3{ left:55%; background:conic-gradient(from 200deg, var(--orange), transparent 40%); transform:rotate(-4deg); animation-delay:-8s;}
  .beam-4{ left:75%; background:conic-gradient(from 200deg, var(--purple), transparent 40%); transform:rotate(-14deg); animation-delay:-11s;}
  @keyframes sway{
    0%,100%{ transform:translateX(0) rotate(10deg); }
    50%{ transform:translateX(6vw) rotate(2deg); }
  }
  .hero .wrap{position:relative; z-index:2;}

  h1.headline{font-size:clamp(34px,5.4vw,60px); line-height:1.15; max-width:840px; margin-bottom:12px; color:#fff;}
  @media (max-width:480px){ h1.headline{font-size:6vw;} }
  h1.headline span{
    background:linear-gradient(90deg, var(--blue), var(--magenta) 55%, var(--orange));
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .sub{font-size:17px; color:rgba(255,255,255,0.68); max-width:560px; margin-bottom:16px;}
  .cta-row{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:8px;}

  .btn-primary:hover{transform:translateY(-2px) scale(1.02); box-shadow:0 10px 30px rgba(255,46,136,0.35);}
  .btn-secondary{
    border:1px solid rgba(255,255,255,0.22); color:#fff; font-size:15px; padding:10px 18px;
    border-radius:30px; text-decoration:none; transition:border-color .15s ease, background .15s ease;
  }
  .btn-secondary:hover{border-color:rgba(255,255,255,0.5); background:rgba(255,255,255,0.06);}

  /* console panel - signature element */
  .console{
    border:1px solid rgba(255,255,255,0.12); border-radius:12px;
    background:rgba(255,255,255,0.05); backdrop-filter:blur(14px);
    overflow:hidden;
  }
  .console-head{
    display:flex; align-items:center; justify-content:space-between;
    padding:12px 18px; border-bottom:1px solid rgba(255,255,255,0.1);
  }
  .console-head .tag{font-family:'IBM Plex Mono'; font-size:11.5px; color:rgba(255,255,255,0.5); letter-spacing:0.06em;}
  .console-head .status{display:flex; align-items:center; gap:7px; font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--teal);}
  .console-head .status .d{width:7px; height:7px; border-radius:50%; background:var(--teal); box-shadow:0 0 8px var(--teal); animation:blink 2s infinite;}
  .console-grid{ display:grid; grid-template-columns:repeat(4,1fr); }
  @media (max-width:760px){ .console-grid{grid-template-columns:repeat(2,1fr);} }
  .console-cell{ padding:22px 18px; border-right:1px solid rgba(255,255,255,0.08); border-bottom:1px solid rgba(255,255,255,0.08); }
  .console-grid .console-cell:nth-child(4n){border-right:none;}
  .console-cell .label{font-family:'IBM Plex Mono'; font-size:11px; color:rgba(255,255,255,0.45); text-transform:uppercase; letter-spacing:0.08em; margin-bottom:8px;}
  .console-cell .val{font-family:'IBM Plex Mono'; font-size:26px; color:#fff; font-weight:500;}
  .console-cell .val small{font-size:14px; color:rgba(255,255,255,0.5); font-weight:400;}
  .bars{display:flex; align-items:flex-end; gap:3px; height:24px; margin-top:10px;}
  .bars i{flex:1; background:linear-gradient(180deg, var(--teal), var(--blue)); opacity:0.9; animation:signal 1.6s ease-in-out infinite;}
  .bars i:nth-child(1){height:40%; animation-delay:0s;}
  .bars i:nth-child(2){height:70%; animation-delay:.15s;}
  .bars i:nth-child(3){height:100%; animation-delay:.3s;}
  .bars i:nth-child(4){height:55%; animation-delay:.45s;}
  .bars i:nth-child(5){height:85%; animation-delay:.6s;}
  @keyframes signal{0%,100%{opacity:0.45;} 50%{opacity:1;}}

  /* ---------- section shell ---------- */
  section{padding:36px 0;}
  section.alt{background:var(--panel); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
  .section-head{max-width:600px; margin-bottom:20px;}
  .section-head .eyebrow{color:var(--magenta);}
  .section-head .eyebrow::before{background:var(--magenta); box-shadow:0 0 8px var(--magenta);}
  .heading-row{display:flex; align-items:baseline; gap:14px; flex-wrap:wrap;}
  .heading-row h2{margin-bottom:0;}
  .inline-eyebrow{margin-bottom:0 !important;}
  .section-head h2{font-size:clamp(26px,3.4vw,36px); margin-bottom:12px;}
  .nowrap-heading{white-space:nowrap;}
  @media (max-width:640px){ .nowrap-heading{white-space:normal;} }
  .section-head p{color:var(--muted); font-size:15.5px;}

  /* ---------- services (colour-coded rack) ---------- */
  .rack{display:grid; grid-template-columns:repeat(3,1fr); gap:10px;}
  @media (max-width:900px){ .rack{grid-template-columns:repeat(2,1fr);} }
  @media (max-width:600px){ .rack{grid-template-columns:1fr;} }
  .module{
    background:var(--bg); padding:14px 12px; border-radius:14px; border:1px solid var(--line);
    border-top:3px solid var(--accent, var(--blue));
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .module:hover{transform:translateY(-4px); box-shadow:0 16px 32px rgba(15,20,32,0.08);}
  .module .idx{
    display:inline-block; font-family:'IBM Plex Mono'; font-size:11px; font-weight:600;
    color:var(--accent, var(--blue)); margin-bottom:2px; letter-spacing:0.04em;
  }
  .module-head{display:flex; align-items:center; gap:12px; margin-bottom:10px;}
  .module-icon{width:30px; height:30px; flex-shrink:0; color:var(--accent, var(--blue));}
  .module-icon svg{width:100%; height:100%; display:block;}
  .module h3{font-size:17px; margin-bottom:0;}
  .module h3 a{color:inherit; text-decoration:none;}
  .module h3 a:hover{color:var(--accent, var(--blue)); text-decoration:underline; text-underline-offset:2px;}
  .module p{font-size:14px; color:var(--muted);}
  .m-blue{--accent:var(--blue);}
  .m-teal{--accent:var(--teal);}
  .m-purple{--accent:var(--purple);}
  .m-magenta{--accent:var(--magenta);}
  .m-orange{--accent:var(--orange);}

  /* ---------- stats strip ---------- */
  .stats{display:grid; grid-template-columns:repeat(3,1fr); gap:10px;}
  @media (max-width:760px){ .stats{grid-template-columns:1fr; justify-items:center;} }
  .stat{
    aspect-ratio:1 / 1; border-radius:50%; color:#fff;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    text-align:center; padding:24px; max-width:260px; width:100%; margin:0 auto;
  }
  @media (max-width:760px){
    .stat{width:220px; height:220px; max-width:220px; padding:20px;}
  }
  .stat:nth-child(1){background:linear-gradient(135deg, var(--blue), #0a5fc4);}
  .stat:nth-child(2){background:linear-gradient(135deg, var(--magenta), #c81763);}
  .stat:nth-child(3){background:linear-gradient(135deg, var(--orange), #c4610a);}
  .stat .n{font-family:'IBM Plex Mono'; font-size:28px; font-weight:500; color:#fff;}
  .stat .l{font-size:12.5px; opacity:0.95; margin-top:6px; max-width:150px; color:#fff;}
  .stat:nth-child(1) .n, .stat:nth-child(2) .n{font-size:38px;}
  .stat:nth-child(1) .l, .stat:nth-child(2) .l{font-size:15px;}

  /* ---------- event log ---------- */
  .log-category{
    font-family:'IBM Plex Mono'; font-size:12px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase;
    color:var(--blue); margin:28px 0 14px; padding-bottom:8px; border-bottom:1px solid var(--line);
  }
  .log-category:first-of-type{margin-top:0;}
  .log{border-left:2px solid var(--line); margin-left:6px;}

  /* ---------- trusted-by clients ---------- */
  .client-card-combined{
    background:var(--bg); border:1px solid var(--line); border-radius:14px; padding:20px;
  }
  .client-tags{display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:center;}
  .client-tags span{
    font-size:12.5px; padding:4px 10px; border-radius:20px; border:1px solid var(--line);
    color:var(--muted); background:var(--panel); white-space:nowrap;
  }
  .client-tags .logo-tag{padding:14px 20px; display:inline-flex; align-items:center; justify-content:center; background:#fff; width:150px; height:72px;}
  .client-tags .logo-tag img{max-height:100%; max-width:100%; width:auto; height:auto; display:block; object-fit:contain; margin:auto;}
  .entry{position:relative; padding:0 0 16px 20px;}
  .entry::before{
    content:''; position:absolute; left:-7px; top:4px; width:11px; height:11px;
    border-radius:50%; background:var(--bg);
    border:3px solid var(--accent, var(--blue));
  }
  .entry:nth-child(4n+1){--accent:var(--blue);}
  .entry:nth-child(4n+2){--accent:var(--magenta);}
  .entry:nth-child(4n+3){--accent:var(--orange);}
  .entry:nth-child(4n+4){--accent:var(--purple);}
  .entry:last-child{padding-bottom:0;}
  .entry .date{font-family:'IBM Plex Mono'; font-size:12px; color:var(--accent, var(--blue)); margin-bottom:3px; font-weight:600;}
  .entry .client{font-size:16px; font-weight:600; margin-bottom:2px;}
  .entry .detail{font-size:14px; color:var(--muted); max-width:640px;}

  /* ---------- contact ---------- */
  .contact-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:14px;}
  @media (max-width:820px){ .contact-grid{grid-template-columns:1fr;} }
  .contact-card{border:1px solid var(--line); border-radius:14px; padding:14px; background:var(--bg);}
  .contact-card .row{display:flex; justify-content:center; text-align:center; padding:8px 0; border-bottom:1px solid var(--line); font-size:14.5px; gap:16px;}
  .contact-card .row.stack{flex-direction:column; align-items:center; gap:4px;}
  .contact-card .row.stack .k{white-space:normal;}
  .address-block{padding-top:6px;}
  .address-block p{font-size:14px; color:var(--muted); line-height:1.6; margin:0 0 8px;}
  .address-block p:last-child{margin-bottom:0;}
  .address-block .addr-line{color:var(--text); font-family:'IBM Plex Mono'; font-size:13.5px; font-weight:500;}
  .map-embed{width:100%; margin-top:10px; border-radius:10px; overflow:hidden; border:1px solid var(--line);}
  .map-embed iframe{width:100%; height:220px; display:block; border:0;}
  .address-block .map-link{display:inline-block; margin-top:8px; font-size:13.5px; font-weight:600; color:var(--blue); text-decoration:none;}
  .address-block .map-link:hover{color:var(--magenta);}
  .contact-card .row:last-child{border-bottom:none;}
  .contact-card .row .k{color:var(--muted); font-family:'IBM Plex Mono'; font-size:12.5px; white-space:nowrap;}
  .contact-card .row a{text-decoration:none; color:var(--text); font-family:'IBM Plex Mono'; text-align:left;}
  .contact-card .row a:hover{color:var(--magenta);}
  .contact-cta{
    border-radius:14px; padding:14px; display:flex; flex-direction:column; justify-content:center; gap:8px;
    background:linear-gradient(135deg, var(--blue), var(--magenta) 60%, var(--orange));
    color:#fff;
  }
  .contact-cta h3{color:#fff; font-size:20px;}
  .contact-cta p{font-size:14px; opacity:0.9;}
  .contact-cta .btn-primary{background:#fff; color:#101826; align-self:flex-start;}
  .contact-cta .btn-primary:hover{box-shadow:0 10px 24px rgba(0,0,0,0.2);}

  /* ---------- articles ---------- */
  .article-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:14px;}
  @media (max-width:760px){ .article-grid{grid-template-columns:1fr;} }
  .article-card{
    background:var(--bg); border:1px solid var(--line); border-radius:14px; padding:20px;
    text-decoration:none; color:var(--text); display:flex; flex-direction:column; gap:10px;
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .article-card:hover{transform:translateY(-4px); box-shadow:0 16px 32px rgba(15,20,32,0.08);}
  .article-card .tag{
    font-family:'IBM Plex Mono'; font-size:11px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase;
    color:var(--blue);
  }
  .article-card h3{font-size:18px; margin-bottom:0;}
  .article-card p{font-size:14.5px; color:var(--muted); margin:0;}
  .article-card .read-more{
    font-family:'IBM Plex Mono'; font-size:13px; font-weight:600; color:var(--magenta); margin-top:auto;
  }

  footer .wrap{display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;}

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

  /* ---------- on-the-ground ("part of your team" messaging) ---------- */
  .ground{padding:8px 0 8px;}
  .ground-copy{max-width:720px;}
  .ground-copy h2{font-size:clamp(22px,3vw,30px); margin-bottom:14px;}
  .ground-copy p{font-size:15.5px; color:var(--muted); margin-bottom:12px;}
  .ground-copy strong{color:var(--text);}
/* ============================================================
   ACCESSIBILITY: minimum 48x48px tap targets (WCAG 2.5.5)
   ============================================================ */
.topbar nav a{ display:inline-flex; align-items:center; min-height:48px; padding:0 4px; }
.back-link{ display:inline-flex; align-items:center; min-height:48px; }
.btn-primary, .cta-button{ min-height:48px; }

/* ============================================================
   CLICKABLE SERVICE CARDS (whole box, not just the title)
   ============================================================ */
a.module{ display:block; text-decoration:none; color:inherit; cursor:pointer; transition:transform .15s ease, border-color .15s ease; }
a.module:hover{ transform:translateY(-2px); }

/* ============================================================
   MOBILE MENU (homepage only - scoped to body.page-home)
   ============================================================ */
body.page-home .menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:48px;
  height:48px;
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
}
body.page-home .menu-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:var(--text);
  border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}
body.page-home .topbar.menu-open .menu-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
body.page-home .topbar.menu-open .menu-toggle span:nth-child(2){ opacity:0; }
body.page-home .topbar.menu-open .menu-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

body.page-home .mobile-menu{
  display:none;
  flex-direction:column;
  background:var(--bg);
  border-top:1px solid var(--line);
  padding:8px 28px 16px;
}
body.page-home .mobile-menu a{
  display:flex;
  align-items:center;
  min-height:48px;
  font-size:15px;
  color:var(--text);
  text-decoration:none;
  border-bottom:1px solid var(--panel-2);
}
body.page-home .mobile-menu a:last-child{ border-bottom:none; }
body.page-home .mobile-menu a.mobile-cta{
  margin-top:8px;
  justify-content:center;
  background:linear-gradient(90deg, var(--blue), var(--magenta));
  color:#fff;
  font-weight:600;
  border-radius:10px;
  border-bottom:none;
}
body.page-home .topbar.menu-open .mobile-menu{ display:flex; }

@media (max-width:820px){
  body.page-home .menu-toggle{ display:flex; }
  body.page-home .topbar .cta{ margin-left:auto; margin-right:12px; }
}

/* ============================================================
   MOBILE MENU FOR SUBPAGES (services, case-studies, about, etc.)
   Distinct classes from the homepage's own mobile menu to avoid
   any collision between the two independent implementations.
   ============================================================ */
.page-menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:48px;
  height:48px;
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
}
.page-menu-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:var(--text);
  border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}
.topbar.page-menu-open .page-menu-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.topbar.page-menu-open .page-menu-toggle span:nth-child(2){ opacity:0; }
.topbar.page-menu-open .page-menu-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.page-mobile-menu{
  display:none;
  flex-direction:column;
  background:var(--bg);
  border-top:1px solid var(--line);
  padding:8px 24px 16px;
}
.page-mobile-menu a{
  display:flex;
  align-items:center;
  min-height:48px;
  font-size:15px;
  color:var(--text);
  text-decoration:none;
  border-bottom:1px solid var(--panel-2);
}
.page-mobile-menu a:last-child{ border-bottom:none; }
.topbar.page-menu-open .page-mobile-menu{ display:flex; }

@media (max-width:640px){
  .topbar nav.page-nav{ display:none; }
  .page-menu-toggle{ display:flex; }
}

/* ============================================================
   PRICING PAGE COMPONENTS (spectrum bar, tier cards, factors list)
   ============================================================ */
.mono{font-family:'IBM Plex Mono', monospace;}

.spectrum-label{font-family:'IBM Plex Mono'; font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:0.08em; margin:32px 0 18px;}
.spectrum-track{position:relative; height:14px; border-radius:8px; overflow:hidden; display:flex; margin-bottom:10px;}
.spectrum-track div{height:100%;}
.seg-1{width:14%; background:linear-gradient(90deg, var(--teal), #00b89c);}
.seg-2{width:30%; background:linear-gradient(90deg, var(--blue), #0a5fc4);}
.seg-3{width:56%; background:linear-gradient(90deg, var(--magenta), var(--orange));}
.spectrum-ticks{display:flex; justify-content:space-between; font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--muted); margin-bottom:8px;}
.spectrum-ticks span:last-child{color:var(--text); font-weight:600;}

.tiers{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:24px;}
@media (max-width:760px){ .tiers{grid-template-columns:1fr;} }
.tier{background:var(--bg); border:1px solid var(--line); border-radius:14px; padding:24px 22px; border-top:4px solid var(--accent);}
.tier.t1{--accent:var(--teal);}
.tier.t2{--accent:var(--blue);}
.tier.t3{--accent:var(--magenta);}
.tier .name{font-family:'IBM Plex Mono'; font-size:11.5px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:var(--muted); margin-bottom:10px;}
.tier .price{font-family:'IBM Plex Mono'; font-size:22px; font-weight:600; margin-bottom:12px; line-height:1.3;}
.tier.t1 .price{color:var(--teal);}
.tier.t2 .price{color:var(--blue);}
.tier.t3 .price{color:var(--magenta);}
.tier p{font-size:14.5px; color:var(--muted);}

.factors{margin-top:8px;}
.factor{display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--line);}
.factor:last-child{border-bottom:none;}
.factor .num{font-family:'IBM Plex Mono'; font-size:13px; color:var(--blue); font-weight:600; flex-shrink:0; width:26px; padding-top:2px;}
.factor h3{font-size:16px; margin-bottom:4px;}
.factor p{font-size:14.5px; color:var(--muted);}
