/* =======================================================
   RISKCURITY — Design System
   Fog · Ink · Slate · Signal Teal · Clear Amber · Hairline
   ======================================================= */
:root {
  --fog:        #0A0E13;
  --ink:        #F2F1EC;
  --slate:      #94A3B8;
  --teal:       #25886F;
  --teal-hover: #1F6F5A;
  --teal-sub:   rgba(37,136,111,.14);
  --teal-border:rgba(37,136,111,.30);
  --amber:      #C9973D;
  --amber-sub:  rgba(201,151,61,.14);
  --hair:       rgba(255,255,255,.09);
  --hair-dk:    rgba(255,255,255,.07);
  --bg-dk:      #060A0F;
  --fog-text:   #F2F1EC;
  --slate-lt:   #6B7A8D;

  /* dark-specific surfaces */
  --surface:    #111820;
  --surface-2:  #161F2A;
  --surface-3:  #1C2535;
  --border:     rgba(255,255,255,.08);
  --border-hi:  rgba(37,136,111,.35);

  --f-display: 'Newsreader', Georgia, serif;
  --f-body:    'Inter', -apple-system, sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;

  --max-w: 1240px;
  --nav-h: 72px;
  --r1: 4px;
  --r2: 8px;
  --r3: 14px;

  --ease: cubic-bezier(.16,1,.3,1);
  --t-fast: .18s ease;
  --t-smooth: .32s var(--ease);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

html{scroll-behavior:smooth;font-size:16px;background:var(--fog);-webkit-font-smoothing:antialiased;color-scheme:dark;}

body{
  font-family:var(--f-body);
  font-size:1rem;
  line-height:1.65;
  color:var(--ink);
  background:var(--fog);
  overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:var(--f-display);
  font-weight:500;
  letter-spacing:-.025em;
  line-height:1.12;
  color:var(--fog-text);
}

p{color:var(--slate);font-size:1.05rem;line-height:1.7}

a{color:inherit;text-decoration:none}

/* ── Focus ── */
:focus-visible{
  outline:2px solid var(--teal);
  outline-offset:3px;
  border-radius:var(--r1);
}

/* ── Utility ── */
.mono{font-family:var(--f-mono)}
.container{width:100%;max-width:var(--max-w);margin:0 auto;padding:0 2rem}

.label{
  font-family:var(--f-mono);
  font-size:.75rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--teal);
  display:inline-block;
  margin-bottom:.65rem;
}
.label--amber{color:var(--amber)}

.section-title{
  font-size:clamp(2rem,3.8vw,3rem);
  margin-bottom:.9rem;
  max-width:28ch;
}
.section-lead{
  font-size:1.1rem;
  color:var(--slate);
  max-width:60ch;
  margin-bottom:2.75rem;
}

/* ── Buttons ── */
.btn{
  display:inline-flex;align-items:center;gap:.45rem;
  padding:.8rem 1.6rem;
  font-family:var(--f-body);font-size:.92rem;font-weight:500;
  border-radius:var(--r1);
  border:1px solid transparent;
  cursor:pointer;
  transition:background var(--t-fast),border-color var(--t-fast),transform var(--t-fast);
}
.btn:hover{transform:translateY(-1px)}

.btn-primary{background:var(--teal);color:var(--fog);border-color:var(--teal)}
.btn-primary:hover{background:var(--teal-hover);border-color:var(--teal-hover)}

.btn-ghost{background:transparent;color:var(--fog-text);border-color:var(--border)}
.btn-ghost:hover{border-color:var(--fog-text);background:rgba(255,255,255,.05)}

/* ────────────────────────────
   HEADER
──────────────────────────── */
.site-header{
  position:fixed;top:0;left:0;right:0;
  height:var(--nav-h);
  background:rgba(10,14,19,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
  z-index:900;
  display:flex;align-items:center;
}
.nav-inner{
  display:flex;align-items:center;
  justify-content:space-between;
  width:100%;
}
.nav-brand{
  font-family:var(--f-display);
  font-size:1.3rem;font-weight:600;
  letter-spacing:-.03em;color:var(--ink);
  display:flex;align-items:center;gap:.6rem;
}
.nav-brand-badge{
  font-family:var(--f-mono);font-size:.65rem;font-weight:600;
  padding:.18rem .45rem;
  background:var(--teal-sub);color:var(--teal);
  border:1px solid var(--teal-border);border-radius:var(--r1);
}
.nav-list{
  display:flex;align-items:center;gap:2rem;list-style:none;
}
.nav-list a{
  font-size:.88rem;font-weight:500;color:var(--slate);
  transition:color var(--t-fast);
}
.nav-list a:hover{color:var(--fog-text)}
.nav-toggle{
  display:none;background:none;border:none;
  font-size:1.4rem;color:var(--ink);cursor:pointer;
}

/* ────────────────────────────
   HERO
──────────────────────────── */
.hero{
  position:relative;
  padding-top:calc(var(--nav-h) + 4.5rem);
  padding-bottom:6rem;
  border-bottom:1px solid var(--border);
  overflow:hidden;
}
.hero-bg-svg{
  position:absolute;top:0;right:-8%;
  width:62%;height:100%;
  opacity:.04;pointer-events:none;z-index:0;
}
.hero-bg-path{
  stroke-dasharray:6 8;
  animation:dash-crawl 20s linear infinite;
}
@keyframes dash-crawl{to{stroke-dashoffset:-120}}

.hero-grid{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1.1fr 0.9fr;
  gap:4rem;align-items:center;
}
.hero-eyebrow{animation:fade-up .6s var(--ease) both}
.hero-title{
  font-size:clamp(2.8rem,5vw,4.4rem);
  margin-bottom:1.4rem;
  animation:fade-up .7s .1s var(--ease) both;
}
.hero-sub{
  font-size:1.12rem;color:var(--slate);line-height:1.7;
  max-width:50ch;margin-bottom:2.25rem;
  animation:fade-up .7s .2s var(--ease) both;
}
.hero-ctas{
  display:flex;gap:.85rem;flex-wrap:wrap;
  animation:fade-up .7s .3s var(--ease) both;
}

@keyframes fade-up{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:translateY(0)}
}

/* Gauge card */
.gauge-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r3);
  padding:2rem 1.85rem 1.85rem;
  box-shadow:0 12px 36px rgba(0,0,0,.4);
  display:flex;flex-direction:column;align-items:center;
  max-width:420px;width:100%;
  animation:fade-up .8s .35s var(--ease) both;
}
.gauge-top{
  width:100%;display:flex;
  align-items:center;justify-content:space-between;
  padding-bottom:1rem;border-bottom:1px solid var(--border);
  margin-bottom:1.5rem;
}
.gauge-top-label{
  font-family:var(--f-mono);font-size:.72rem;
  text-transform:uppercase;letter-spacing:.1em;color:var(--slate);
}
.gauge-badge{
  font-family:var(--f-mono);font-size:.72rem;font-weight:600;
  padding:.22rem .55rem;border-radius:100px;
  background:var(--amber-sub);color:var(--amber);
  transition:all .5s ease;
}
.gauge-badge.ok{background:var(--teal-sub);color:var(--teal)}

.gauge-svg-wrap{position:relative;width:220px;height:130px}
.gauge-svg{width:220px;height:130px}
.g-track{fill:none;stroke:#1E2A38;stroke-width:13;stroke-linecap:round}
.g-fill{
  fill:none;stroke:var(--amber);
  stroke-width:13;stroke-linecap:round;
  stroke-dasharray:261;stroke-dashoffset:50;
  transition:stroke-dashoffset 1.9s var(--ease), stroke 1.1s ease;
}
.gauge-readout{
  position:absolute;bottom:0;left:50%;transform:translateX(-50%);
  text-align:center;
}
.gauge-num{
  font-family:var(--f-mono);font-size:3.2rem;
  font-weight:600;line-height:1;
  color:var(--amber);
  transition:color 1.1s ease;
}
.gauge-sub{
  font-family:var(--f-mono);font-size:.68rem;
  color:var(--slate);text-transform:uppercase;letter-spacing:.06em;
  margin-top:.2rem;
}

.gauge-compare{
  width:100%;display:grid;grid-template-columns:1fr 1fr;
  gap:.85rem;margin-top:1.75rem;
  padding-top:1.4rem;border-top:1px solid var(--border);
}
.gc-item{}
.gc-label{
  font-family:var(--f-mono);font-size:.66rem;
  text-transform:uppercase;color:var(--slate);
  margin-bottom:.2rem;display:block;
}
.gc-val{
  font-family:var(--f-mono);font-size:1.1rem;font-weight:600;
}
.gc-val.before{color:var(--amber)}
.gc-val.after{color:var(--teal)}

/* ────────────────────────────
   CASE STUDY
──────────────────────────── */
.case-study{padding:7rem 0;border-bottom:1px solid var(--border)}

.stat-strip{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:1.25rem;margin-bottom:4.5rem;
}
.stat-cell{
  background:var(--surface);border:1px solid var(--hair);
  border-radius:var(--r2);padding:1.6rem 1.4rem;
  transition:border-color var(--t-smooth), transform var(--t-smooth);
}
.stat-cell:hover{transform:translateY(-3px);border-color:var(--teal);background:var(--surface-2)}

.stat-nums{
  display:flex;align-items:center;gap:.35rem;
  font-family:var(--f-mono);font-size:2rem;
  font-weight:600;margin-bottom:.6rem;
}
.sn-before{color:var(--amber)}
.sn-arr{color:var(--slate);font-size:1.3rem}
.sn-after{color:var(--teal)}
.stat-title{font-size:.95rem;font-weight:600;color:var(--ink);margin-bottom:.3rem}
.stat-desc{font-size:.82rem;color:var(--slate);line-height:1.5}

/* Narrative stages */
.stages{display:flex;flex-direction:column;gap:1.75rem}

.stage{
  background:var(--surface);border:1px solid var(--hair);
  border-radius:var(--r2);padding:2.25rem;
  display:grid;grid-template-columns:200px 1fr;gap:2.25rem;
  opacity:.45;transform:translateY(14px);
  transition:opacity .55s var(--ease), transform .55s var(--ease),
             border-color .3s ease, box-shadow .3s ease;
}
.stage.in-view{
  opacity:1;transform:translateY(0);
  border-color:var(--teal);
  box-shadow:0 6px 22px rgba(31,111,99,.07);
}
.stage-key{display:flex;flex-direction:column}
.stage-num{
  font-family:var(--f-mono);font-size:.72rem;
  text-transform:uppercase;letter-spacing:.1em;
  color:var(--teal);margin-bottom:.4rem;
}
.stage-name{
  font-family:var(--f-display);font-size:1.5rem;color:var(--ink);
}
.stage-body p{font-size:1rem;color:var(--slate);line-height:1.7}
.pills{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1.1rem}
.pill{
  font-family:var(--f-mono);font-size:.7rem;
  padding:.28rem .6rem;
  background:var(--teal-sub);color:var(--teal);
  border-radius:var(--r1);
  border:1px solid var(--teal-border);
}

/* ────────────────────────────
   DISCIPLINES
──────────────────────────── */
.disciplines{padding:7rem 0;border-bottom:1px solid var(--border)}

.disc-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem;
}
.disc-card{
  background:var(--surface);border:1px solid var(--hair);
  border-radius:var(--r2);padding:2.1rem;
  display:flex;flex-direction:column;
  transition:border-color var(--t-smooth), transform var(--t-smooth);
}
.disc-card:hover{
  transform:translateY(-5px);
  border-color:var(--teal);
  background:var(--surface-2);
}
.disc-icon{
  width:40px;height:40px;margin-bottom:1.35rem;
  display:flex;align-items:center;justify-content:center;
}
.disc-icon svg{
  width:28px;height:28px;
  stroke:var(--teal);stroke-width:1.7;
  fill:none;stroke-linecap:round;stroke-linejoin:round;
}
.disc-title{
  font-family:var(--f-display);font-size:1.35rem;
  margin-bottom:.55rem;
}
.disc-plain{
  font-size:.98rem;color:var(--slate);line-height:1.65;
  margin-bottom:.5rem;
}
.disc-tech{
  font-family:var(--f-mono);font-size:.75rem;
  color:var(--teal);margin-bottom:1.25rem;
}
.disc-feats{
  list-style:none;display:flex;flex-direction:column;
  gap:.5rem;margin-top:auto;
  padding-top:1.1rem;border-top:1px solid var(--border);
}
.disc-feats li{
  font-size:.83rem;color:var(--ink);
  display:flex;align-items:flex-start;gap:.45rem;
}
.disc-feats li::before{
  content:"";width:5px;height:5px;border-radius:50%;
  background:var(--teal);flex-shrink:0;margin-top:.45rem;
}

/* ────────────────────────────
   METHODOLOGY
──────────────────────────── */
.methodology{padding:7rem 0;border-bottom:1px solid var(--border)}

.method-grid{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:1.25rem;position:relative;margin-top:3.5rem;
}
.method-grid::before{
  content:"";position:absolute;
  top:23px;left:0;right:0;height:2px;
  background:var(--border);z-index:0;
}
.m-card{
  position:relative;z-index:1;
  background:var(--surface);border:1px solid var(--hair);
  border-radius:var(--r2);padding:1.85rem 1.4rem;
  display:flex;flex-direction:column;
  transition:border-color var(--t-smooth),box-shadow var(--t-smooth);
}
.m-card.in-view{
  border-color:var(--teal);
  box-shadow:0 4px 16px rgba(31,111,99,.06);
}
.m-num{
  width:46px;height:46px;border-radius:50%;
  border:2px solid var(--border);
  font-family:var(--f-mono);font-size:.88rem;font-weight:600;
  color:var(--slate);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:1.35rem;
  transition:all var(--t-smooth);
}
.m-card.in-view .m-num{
  background:var(--teal);border-color:var(--teal);color:var(--fog);
}
.m-stage-label{
  font-family:var(--f-mono);font-size:.7rem;font-weight:600;
  letter-spacing:.1em;text-transform:uppercase;
  color:var(--teal);margin-bottom:.3rem;
}
.m-title{font-family:var(--f-display);font-size:1.25rem;margin-bottom:.6rem}
.m-desc{font-size:.88rem;color:var(--slate);line-height:1.55;flex:1}
.m-deliv{
  margin-top:1rem;padding-top:.85rem;
  border-top:1px dashed var(--border);
  font-family:var(--f-mono);font-size:.72rem;color:var(--ink);
}

/* ────────────────────────────
   WHY
──────────────────────────── */
.why{padding:7rem 0;border-bottom:1px solid var(--border)}

.why-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.75rem}

.why-card{
  background:var(--surface);border:1px solid var(--hair);
  border-radius:var(--r2);padding:2.25rem;
  transition:border-color var(--t-smooth),transform var(--t-smooth);
}
.why-card:hover{transform:translateY(-3px);border-color:var(--teal);background:var(--surface-2)}
.why-title{
  font-family:var(--f-display);font-size:1.4rem;
  margin-bottom:.75rem;
}
.why-body{font-size:.98rem;color:var(--slate);line-height:1.7}

/* ────────────────────────────
   CONTACT
──────────────────────────── */
.contact-section{
  padding:7rem 0;
  background:var(--bg-dk);
}
.contact-section .section-title{color:var(--fog-text)}
.contact-section .section-lead{color:var(--slate-lt)}

.contact-grid{
  display:grid;grid-template-columns:.9fr 1.1fr;gap:4rem;
}
.ci-list{display:flex;flex-direction:column;gap:1.85rem;margin-top:2rem}
.ci-item{}
.ci-label{
  font-family:var(--f-mono);font-size:.7rem;text-transform:uppercase;
  letter-spacing:.1em;color:var(--teal);margin-bottom:.28rem;display:block;
}
.ci-val{
  font-family:var(--f-mono);font-size:1.08rem;color:var(--fog-text);
}

.form-card{
  background:var(--surface-2);
  border:1px solid var(--hair-dk);
  border-radius:var(--r3);padding:2.75rem;
}
.fg{display:flex;flex-direction:column;margin-bottom:1.6rem}
.fl{font-size:.88rem;font-weight:500;color:var(--fog-text);margin-bottom:.45rem}
.fi,.fsel,.fta{
  width:100%;padding:.8rem .95rem;
  background:rgba(255,255,255,.06);
  border:1px solid var(--hair-dk);border-radius:var(--r1);
  color:var(--fog-text);font-family:var(--f-body);font-size:.92rem;
  transition:border-color var(--t-fast),background var(--t-fast);
}
.fi:focus,.fsel:focus,.fta:focus{
  outline:none;border-color:var(--teal);
  background:rgba(255,255,255,.10);
}
.fsel option{background:var(--bg-dk);color:var(--fog-text)}
.fta{min-height:110px;resize:vertical}
.fsub{width:100%;padding:.95rem;font-size:.95rem}

/* ────────────────────────────
   RISKMATE AI WIDGET
──────────────────────────── */

/* Trigger bubble */
.rm-trigger{
  position:fixed;bottom:1.75rem;right:1.75rem;
  z-index:1000;
  width:52px;height:52px;border-radius:50%;
  background:var(--ink);border:1px solid rgba(255,255,255,.1);
  box-shadow:0 4px 18px rgba(18,24,31,.22);
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:transform var(--t-smooth),box-shadow var(--t-smooth),opacity var(--t-smooth);
  opacity:0;
  animation:rm-appear .5s 1.4s var(--ease) forwards;
}
@keyframes rm-appear{
  from{opacity:0;transform:scale(.7)}
  to{opacity:1;transform:scale(1)}
}
.rm-trigger:hover{
  transform:scale(1.06);
  box-shadow:0 6px 24px rgba(18,24,31,.28);
}
.rm-trigger svg{
  width:22px;height:22px;
  stroke:var(--fog-text);stroke-width:1.8;
  fill:none;stroke-linecap:round;stroke-linejoin:round;
}
.rm-teal-dot{
  position:absolute;top:10px;right:10px;
  width:8px;height:8px;border-radius:50%;
  background:var(--teal);
  border:2px solid var(--ink);
}

/* Panel */
.rm-panel{
  position:fixed;bottom:4.5rem;right:1.75rem;
  z-index:9999;
  width:360px;max-width:calc(100vw - 3rem);
  height:500px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r3);
  box-shadow:0 16px 44px rgba(0,0,0,.55);
  display:flex;flex-direction:column;
  overflow:hidden;

  opacity:0;visibility:hidden;
  transform:translateY(12px) scale(.97);
  transition:opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.rm-panel.open{
  opacity:1;visibility:visible;transform:translateY(0) scale(1);
}

/* Panel header */
.rm-head{
  background:#0D1520;
  padding:1.1rem 1.4rem;
  display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.08);
  flex-shrink:0;
}
.rm-head-text{
  display:flex;flex-direction:column;gap:.18rem;
}
.rm-head-name{
  font-family:var(--f-display);
  font-size:1.12rem;
  font-weight:600;
  color:#F2F1EC;
  letter-spacing:-.02em;
  line-height:1.2;
}
.rm-head-sub{
  font-family:var(--f-mono);
  font-size:.66rem;
  color:#6B7A8D;
  display:flex;align-items:center;gap:.4rem;
}
.rm-head-sub::before{
  content:'';
  display:inline-block;
  width:6px;height:6px;border-radius:50%;
  background:var(--teal);
  box-shadow:0 0 6px rgba(37,136,111,.7);
}
.rm-close{
  background:none;border:none;
  color:#6B7A8D;font-size:1.15rem;
  cursor:pointer;line-height:1;padding:.3rem;
  border-radius:var(--r1);
  transition:color var(--t-fast),background var(--t-fast);
}
.rm-close:hover{color:#F2F1EC;background:rgba(255,255,255,.07)}

/* Login gate */
.rm-gate{
  flex:1;display:flex;flex-direction:column;
  justify-content:center;padding:2rem 1.6rem;
  gap:1.1rem;
}
.rm-gate-title{
  font-family:var(--f-display);font-size:1.4rem;
  color:var(--ink);margin-bottom:.1rem;
}
.rm-gate-sub{
  font-size:.9rem;color:var(--slate);line-height:1.6;
}
.rm-gate .fg{margin-bottom:1rem}
.rm-gate .fl{color:var(--ink)}
.rm-gate .fi{
  background:var(--fog);
  border-color:var(--hair);
  color:var(--ink);
}
.rm-gate .fi:focus{border-color:var(--teal);background:var(--surface)}
.rm-gate-submit{
  width:100%;padding:.8rem;
  background:var(--teal);color:var(--fog-text);
  border:none;border-radius:var(--r1);
  font-family:var(--f-body);font-size:.92rem;font-weight:500;
  cursor:pointer;
  transition:background var(--t-fast);
}
.rm-gate-submit:hover{background:var(--teal-hover)}

/* Chat area */
.rm-chat{
  flex:1;display:flex;flex-direction:column;
  min-height:0;
  overflow:hidden;
}
.rm-msgs{
  flex:1;padding:1.1rem 1.2rem;
  overflow-y:auto;
  min-height:0;
  display:flex;flex-direction:column;gap:.9rem;
  background:var(--surface-2);
  scroll-behavior:smooth;
}
.rm-msgs::-webkit-scrollbar{width:4px}
.rm-msgs::-webkit-scrollbar-track{background:transparent}
.rm-msgs::-webkit-scrollbar-thumb{background:var(--hair);border-radius:4px}
.rm-msgs::-webkit-scrollbar-thumb:hover{background:var(--slate)}
.rm-msg{
  max-width:90%;padding:.75rem 1rem;
  border-radius:var(--r2);
  font-size:.86rem;line-height:1.55;
}
.rm-msg.bot{
  background:var(--surface);color:var(--ink);
  border:1px solid var(--hair);align-self:flex-start;
}
.rm-msg.user{
  background:var(--teal);color:var(--fog-text);
  align-self:flex-end;
}
.rm-chips{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.5rem}
.rm-chip{
  font-family:var(--f-mono);font-size:.68rem;
  padding:.28rem .58rem;
  background:var(--surface);border:1px solid var(--hair);border-radius:100px;
  color:var(--ink);cursor:pointer;
  transition:border-color var(--t-fast),color var(--t-fast);
}
.rm-chip:hover{border-color:var(--teal);color:var(--teal);background:var(--teal-sub)}

.rm-input-row{
  padding:.75rem 1rem;background:var(--surface);
  border-top:1px solid var(--border);
  display:flex;gap:.5rem;flex-shrink:0;
}
.rm-input{
  flex:1;padding:.6rem .85rem;
  border:1px solid var(--border);border-radius:var(--r1);
  font-family:var(--f-body);font-size:.86rem;
  background:var(--surface-2);color:var(--fog-text);
}
.rm-input:focus{outline:none;border-color:var(--teal);background:var(--surface-3)}
.rm-send{
  padding:.6rem 1rem;background:var(--teal);
  color:var(--fog-text);border:none;border-radius:var(--r1);
  font-family:var(--f-body);font-size:.84rem;font-weight:500;
  cursor:pointer;
  transition:background var(--t-fast);
}
.rm-send:hover{background:var(--teal-hover)}

/* ────────────────────────────
   FOOTER
──────────────────────────── */
.site-footer{
  background:var(--bg-dk);
  border-top:1px solid var(--hair-dk);
  padding:3.75rem 0 2rem;
}
.footer-grid{
  display:grid;grid-template-columns:2fr 1fr 1fr;
  gap:2.75rem;margin-bottom:2.75rem;
}
.footer-brand-name{
  font-family:var(--f-display);font-size:1.25rem;
  color:var(--fog-text);margin-bottom:.85rem;
}
.footer-brand-desc{font-size:.88rem;color:var(--slate-lt);max-width:34ch}
.footer-col-title{
  font-family:var(--f-mono);font-size:.75rem;font-weight:600;
  text-transform:uppercase;letter-spacing:.1em;
  color:var(--fog-text);margin-bottom:1.1rem;
}
.footer-links{list-style:none;display:flex;flex-direction:column;gap:.65rem}
.footer-links a{
  font-size:.87rem;color:var(--slate-lt);
  transition:color var(--t-fast);
}
.footer-links a:hover{color:var(--fog-text)}
.footer-bottom{
  padding-top:1.75rem;
  border-top:1px solid var(--hair-dk);
  display:flex;justify-content:space-between;align-items:center;
  font-family:var(--f-mono);font-size:.76rem;color:var(--slate-lt);
}

/* ────────────────────────────
   SCROLL REVEAL
──────────────────────────── */
.reveal{
  opacity:0;transform:translateY(20px);
  transition:opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.in-view{opacity:1;transform:translateY(0)}

/* ────────────────────────────
   REDUCED MOTION
──────────────────────────── */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
  }
  .reveal,.stage{opacity:1!important;transform:none!important}
  .rm-trigger{animation:none;opacity:1}
}

/* ────────────────────────────
   RESPONSIVE
──────────────────────────── */
@media(max-width:1024px){
  .hero-grid{grid-template-columns:1fr;gap:3rem}
  .stat-strip{grid-template-columns:repeat(2,1fr)}
  .disc-grid{grid-template-columns:repeat(2,1fr)}
  .method-grid{grid-template-columns:repeat(2,1fr)}
  .method-grid::before{display:none}
  .contact-grid{grid-template-columns:1fr}
}
@media(max-width:768px){
  .nav-list{
    display:none;position:absolute;top:var(--nav-h);
    left:0;right:0;flex-direction:column;
    background:var(--fog);border-bottom:1px solid var(--border);
    padding:1.75rem 2rem;gap:1.25rem;
  }
  .nav-list.open{display:flex}
  .nav-toggle{display:block}
  .stat-strip{grid-template-columns:1fr}
  .stage{grid-template-columns:1fr;gap:1rem;padding:1.6rem}
  .disc-grid{grid-template-columns:1fr}
  .method-grid{grid-template-columns:1fr}
  .why-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;gap:1.75rem}
  .footer-bottom{flex-direction:column;gap:.75rem;align-items:flex-start}
  .rm-panel{right:1rem;bottom:4.25rem;width:calc(100vw - 2rem)}
}

/* ── Typing indicator dots ── */
.rm-typing{display:flex;align-items:center;gap:4px;padding:.75rem 1rem!important}
.rm-typing span{
  width:6px;height:6px;border-radius:50%;
  background:var(--hair);
  animation:dot-bounce .9s infinite ease-in-out;
}
.rm-typing span:nth-child(2){animation-delay:.15s}
.rm-typing span:nth-child(3){animation-delay:.30s}
@keyframes dot-bounce{
  0%,80%,100%{transform:translateY(0)}
  40%{transform:translateY(-6px)}
}


/* ════════════════════════════════
   RATING SECTION
════════════════════════════════ */
.rating-section{
  padding:7rem 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.rating-card{
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:5rem;
  align-items:start;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r3);
  padding:3.25rem 3rem;
}

.rating-title{
  font-size:clamp(1.7rem,2.5vw,2.4rem);
  margin-bottom:.9rem;
}
.rating-lead{
  font-size:.98rem;
  color:var(--slate);
  line-height:1.7;
  max-width:44ch;
  margin-bottom:2rem;
}
.rating-trust{
  display:flex;
  flex-direction:column;
  gap:1.1rem;
  padding-top:1.6rem;
  border-top:1px solid var(--border);
}
.rt-item{display:flex;align-items:baseline;gap:.7rem}
.rt-num{
  font-family:var(--f-mono);
  font-size:1.9rem;
  font-weight:600;
  color:var(--teal);
  line-height:1;
}
.rt-label{font-size:.88rem;color:var(--slate)}

/* ── Star group ── */
.star-group{margin-bottom:1.75rem}
.star-label{
  font-size:.88rem;font-weight:500;
  color:var(--ink);display:block;margin-bottom:.65rem;
}
.stars{
  display:flex;gap:.3rem;
  margin-bottom:.4rem;
}
.star{
  background:none;border:none;
  padding:.1rem;cursor:pointer;
  transition:transform .15s var(--ease);
  line-height:0;
}
.star:hover{transform:scale(1.18)}
.star svg{
  width:36px;height:36px;
  fill:#1E2A38;
  stroke:#1E2A38;
  stroke-width:.5;
  transition:fill .18s ease, stroke .18s ease, filter .18s ease;
}
.star.hovered svg,
.star.selected svg{
  fill:var(--amber);
  stroke:var(--amber);
  filter:drop-shadow(0 2px 6px rgba(184,134,59,.35));
}
.star.selected svg{
  filter:drop-shadow(0 2px 8px rgba(184,134,59,.5));
}

.star-hint{
  font-family:var(--f-mono);font-size:.75rem;
  color:var(--slate);
  min-height:1.1em;
  display:block;
  transition:opacity .15s ease;
}

/* ── Form fields inside rating ── */
.rating-fields{
  display:grid;grid-template-columns:1fr 1fr;
  gap:1rem;margin-bottom:1.25rem;
}
.rl{color:var(--ink)}
.ri{
  background:var(--fog);
  border:1px solid var(--hair);
  color:var(--ink);
}
.ri:focus{border-color:var(--teal);background:var(--surface);outline:none}

.rating-submit{
  width:100%;justify-content:center;
  padding:.95rem;font-size:.95rem;
  transition:background var(--t-fast), opacity var(--t-fast), transform var(--t-fast);
}
.rating-submit:disabled{
  opacity:.45;cursor:not-allowed;transform:none!important;
}
.rating-privacy{
  font-size:.78rem;color:var(--slate);
  text-align:center;margin-top:.75rem;
}

/* ── Success state ── */
.rating-success{
  display:flex;flex-direction:column;
  align-items:center;text-align:center;
  padding:2.5rem 1rem;gap:1rem;
}
.rs-icon{
  width:60px;height:60px;border-radius:50%;
  background:var(--surface-3);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:.5rem;
}
.rs-icon svg{width:30px;height:30px}
.rs-title{
  font-family:var(--f-display);font-size:1.6rem;color:var(--fog-text);
}
.rs-body{font-size:.9rem;color:var(--slate);max-width:38ch}
.rs-stars{display:flex;gap:.35rem;margin-top:.5rem}
.rs-stars svg{width:26px;height:26px;fill:var(--amber);stroke:var(--amber)}

@media(max-width:900px){
  .rating-card{grid-template-columns:1fr;gap:2.5rem;padding:2.25rem 1.75rem}
  .rating-fields{grid-template-columns:1fr}
}

::selection{background:var(--teal);color:var(--fog-text)}


/* ── Riskmate AI launcher wrapper + label ── */
.rm-launcher{
  position:fixed;
  bottom:1.75rem;right:1.75rem;
  z-index:9998;
  display:flex;
  align-items:center;
  gap:.75rem;
  opacity:0;
  animation:rm-appear .5s 1.4s var(--ease) forwards;
}

.rm-launcher-label{
  display:flex;align-items:center;gap:.45rem;
  padding:.42rem .95rem .42rem .65rem;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:100px;
  font-family:var(--f-body);
  font-size:.82rem;
  font-weight:500;
  color:var(--fog-text);
  white-space:nowrap;
  box-shadow:0 4px 16px rgba(0,0,0,.35);
  cursor:pointer;
  transition:border-color var(--t-fast), background var(--t-fast);
}
.rm-launcher-label:hover{
  border-color:var(--teal-border);
  background:var(--surface-3);
}

.rm-label-dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--teal);
  box-shadow:0 0 0 0 rgba(37,136,111,.5);
  animation:rm-pulse 2.2s infinite;
  flex-shrink:0;
}
@keyframes rm-pulse{
  0%  {box-shadow:0 0 0 0 rgba(37,136,111,.55)}
  70% {box-shadow:0 0 0 7px rgba(37,136,111,0)}
  100%{box-shadow:0 0 0 0 rgba(37,136,111,0)}
}

/* Remove the fixed positioning from .rm-trigger
   since it now lives inside .rm-launcher */
.rm-trigger{
  position:static;
  width:48px;height:48px;border-radius:50%;
  background:var(--surface-2);border:1px solid var(--border);
  box-shadow:0 4px 14px rgba(0,0,0,.35);
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  transition:transform var(--t-smooth),box-shadow var(--t-smooth);
  opacity:1;
  animation:none;
}
.rm-trigger:hover{
  transform:scale(1.08);
  box-shadow:0 6px 22px rgba(0,0,0,.45);
}


/* ════════════════════════════════════
   ANIMATION SYSTEM — calm, deliberate
   ease: cubic-bezier(.16,1,.3,1)
════════════════════════════════════ */

/* ── Staggered reveals ── */
.reveal-stagger > *{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-stagger.in-view > *{opacity:1;transform:translateY(0)}
.reveal-stagger.in-view > *:nth-child(1){transition-delay:0ms}
.reveal-stagger.in-view > *:nth-child(2){transition-delay:70ms}
.reveal-stagger.in-view > *:nth-child(3){transition-delay:140ms}
.reveal-stagger.in-view > *:nth-child(4){transition-delay:210ms}
.reveal-stagger.in-view > *:nth-child(5){transition-delay:280ms}
.reveal-stagger.in-view > *:nth-child(6){transition-delay:350ms}

/* ── Nav shrink on scroll ── */
.site-header{
  transition:height .35s var(--ease), box-shadow .35s ease;
}
.site-header.scrolled{
  height:56px;
  box-shadow:0 1px 12px rgba(0,0,0,.25);
}
.site-header.scrolled .nav-brand{font-size:1.15rem}
.site-header.scrolled .nav-brand-badge{font-size:.6rem;padding:.14rem .38rem}

/* ── Stat counters ── */
.stat-num-anim{
  font-family:var(--f-mono);
  font-variant-numeric:tabular-nums;
  display:inline-block;
  min-width:1.5ch;
}

/* ── Methodology line draw ── */
.method-grid::before{
  transform-origin:left center;
  transform:scaleX(0);
  transition:transform 1.2s var(--ease);
}
.method-grid.line-drawn::before{
  transform:scaleX(1);
}

/* ── Methodology card stagger ── */
.m-card{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .55s var(--ease), transform .55s var(--ease),
             border-color .3s ease, box-shadow .3s ease;
}
.m-card.in-view{
  opacity:1;
  transform:translateY(0);
}

/* ── Submit tactile feedback ── */
.btn-primary:active{
  transform:scale(0.97)!important;
  transition:transform .08s ease;
}

/* ── Contact fields reveal ── */
.form-card .fg{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .45s var(--ease), transform .45s var(--ease);
}
.form-card.in-view .fg{opacity:1;transform:translateY(0)}
.form-card.in-view .fg:nth-child(1){transition-delay:0ms}
.form-card.in-view .fg:nth-child(2){transition-delay:60ms}
.form-card.in-view .fg:nth-child(3){transition-delay:120ms}
.form-card.in-view .fg:nth-child(4){transition-delay:180ms}
.form-card.in-view .fg:nth-child(5){transition-delay:240ms}
.form-card.in-view .fg:nth-child(6){transition-delay:300ms}
.form-card.in-view .fg:nth-child(7){transition-delay:360ms}

/* ── prefers-reduced-motion overrides ── */
@media(prefers-reduced-motion:reduce){
  .reveal-stagger > *,
  .m-card,
  .form-card .fg{
    opacity:1!important;
    transform:none!important;
    transition:none!important;
  }
  .method-grid::before{
    transform:scaleX(1)!important;
    transition:none!important;
  }
  .site-header{transition:none!important}
  .btn-primary:active{transform:none!important}
}


/* ════════════════════════════════
   FRAMEWORKS & STANDARDS SECTION
════════════════════════════════ */
.frameworks-section{
  padding:7rem 0;
  border-bottom:1px solid var(--border);
  background:var(--fog);
}

.frameworks-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1.75rem;
}

.fw-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r2);
  padding:2rem;
  display:flex;
  flex-direction:column;
  transition:border-color var(--t-smooth), transform var(--t-smooth), background var(--t-smooth);
}
.fw-card:hover{
  transform:translateY(-4px);
  border-color:var(--teal);
  background:var(--surface-2);
}

.fw-card--featured{
  border-color:rgba(201,151,61,.3);
  background:linear-gradient(180deg, var(--surface) 0%, rgba(201,151,61,.04) 100%);
}
.fw-card--featured:hover{
  border-color:var(--amber);
}

.fw-header{
  margin-bottom:1.5rem;
  padding-bottom:1rem;
  border-bottom:1px solid var(--border);
}

.fw-category-tag{
  font-family:var(--f-mono);
  font-size:.68rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--teal);
  margin-bottom:.4rem;
}
.fw-category-tag--amber{
  color:var(--amber);
}

.fw-card-title{
  font-family:var(--f-display);
  font-size:1.3rem;
  color:var(--fog-text);
  line-height:1.2;
}

.fw-items{
  display:flex;
  flex-direction:column;
  gap:1.35rem;
}

.fw-item{
  display:flex;
  flex-direction:column;
  gap:.2rem;
}

.fw-code{
  font-family:var(--f-mono);
  font-size:.82rem;
  font-weight:600;
  color:var(--teal);
  letter-spacing:-.01em;
}
.fw-card--featured .fw-code{
  color:var(--amber);
}

.fw-name{
  font-family:var(--f-body);
  font-size:.88rem;
  font-weight:500;
  color:var(--fog-text);
}

.fw-desc{
  font-family:var(--f-body);
  font-size:.8rem;
  color:var(--slate);
  line-height:1.5;
}

@media(max-width:1024px){
  .frameworks-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}
@media(max-width:768px){
  .frameworks-grid{
    grid-template-columns:1fr;
  }
}
