/* =============================================================
   SAHRO DataGrid — From PDF to Political Intelligence.
   Restrained, cinematic, enterprise. Dark only by design.
   ============================================================= */

:root {
  /* ---- SAHRO brand palette, taken from sahro.in ---- */
  --bg:        #04091A;   /* sahro.in body            rgb(4, 9, 26)    */
  --bg-2:      #060C1C;   /* raised sections          rgb(6, 12, 28)   */
  --bg-3:      #02050F;   /* deepest wells            rgb(2, 5, 15)    */
  --navy-glow: rgba(13, 27, 62, .5);            /* their hero radial    */
  --surface:   rgba(255, 255, 255, .03);        /* their card fill      */
  --surface-2: rgba(255, 255, 255, .06);
  --line:      rgba(255, 255, 255, .09);
  --line-2:    rgba(255, 255, 255, .17);

  --ink:       #FFFFFF;
  --ink-2:     #B4C0D4;
  --muted:     #7A879D;

  --cyan:      #06B6D4;   /* SAHRO accent 1 */
  --cyan-soft: rgba(6, 182, 212, .14);
  --orange:    #F97316;   /* SAHRO accent 2 */
  --orange-soft: rgba(249, 115, 22, .12);
  --brand-blue:#0A84F0;   /* the blue inside the SAHRO mark */
  --ok:        #34D399;

  --grid:      rgba(6, 182, 212, .05);          /* their cyan grid */

  /* ---- type ---- */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ---- rhythm ---- */
  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --r: 14px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --z-nav: 50;
  --z-modal: 60;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint engineering grid — the only "texture" on the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

img, canvas { max-width: 100%; display: block; }

::selection { background: rgba(6, 182, 212, .32); }

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}

section { position: relative; }

/* =============================================================
   type scale
   ============================================================= */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.04; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid rgba(6, 182, 212, .38);
  border-radius: 999px;
  background: rgba(6, 182, 212, .07);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .18);
}

.h-xl  { font-size: clamp(44px, 8.5vw, 108px); font-weight: 620; letter-spacing: -.045em; }
.h-lg  { font-size: clamp(34px, 5.6vw, 68px);  letter-spacing: -.04em; }
.h-md  { font-size: clamp(26px, 3.4vw, 42px);  letter-spacing: -.032em; }

.lead {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.55;
}
.body { color: var(--ink-2); max-width: 62ch; }
.small { font-size: 14.5px; color: var(--muted); }

.grad {
  background: linear-gradient(96deg, #FF9D4D 4%, #F97316 52%, #EA580C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dim { color: var(--muted); }

/* =============================================================
   nav
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--pad);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(4, 6, 12, .72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.brand .mark {
  width: 30px; height: 30px; flex: none;
  object-fit: contain; object-position: center;
  display: block;
  position: relative; top: -1px;      /* the arcs sit high — nudge for optical centring */
}
.brand .brand-text { display: block; line-height: 1; padding-top: 1px; }
.brand-foot img { height: 36px; width: auto; display: block; }
.brand-text { white-space: nowrap; }
.brand span { font-size: 15.5px; }
.brand em { font-style: normal; color: var(--muted); font-weight: 400; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.only-mobile { display: none; }

.navtoggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 42px; height: 42px;
  color: var(--ink);
  cursor: pointer;
}

/* =============================================================
   buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s, transform .22s var(--ease);
  will-change: transform;
}
.btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, #FB923C, #F97316 55%, #EA580C);
  border-color: rgba(251, 146, 60, .55);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 34px -14px rgba(249,115,22,.9);
}
.btn-primary:hover { background: linear-gradient(135deg, #FDB176, #FB8A3C 55%, #F2700F); border-color: rgba(253, 186, 116, .75); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }

.btn-sm { min-height: 38px; padding: 0 15px; font-size: 14px; border-radius: 9px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }

.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btnrow { display: flex; flex-wrap: wrap; gap: 12px; }

/* =============================================================
   hero
   ============================================================= */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 128px 0 72px;
  overflow: hidden;
}
.hero::after {                       /* one soft light source, top-centre */
  content: "";
  position: absolute;
  top: -34vh; left: 50%;
  width: 120vw; height: 90vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--navy-glow), rgba(6,182,212,.10) 42%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }

.hero h1 { margin-bottom: 6px; }
.hero .h-lg { margin: 4px 0 26px; }
.hero .lead b { color: var(--ink); font-weight: 500; }
.hero .btnrow { margin-top: 34px; }
.hero .support { margin-top: 22px; max-width: 56ch; font-size: 15.5px; }

/* the PDF -> AI -> grid canvas */
.scene {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(6,182,212,.08), transparent 60%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  overflow: hidden;
}
.scene canvas { width: 100%; height: 100%; }
.scene-label {
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.scene-legend {
  position: absolute;
  top: 14px; right: 16px;
  display: flex; gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.scene-legend i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.scene-legend b { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); display: inline-block; }
.scene-legend i:nth-child(2) b { background: var(--orange); }
.scene-legend i:nth-child(3) b { background: var(--cyan); }

/* =============================================================
   section shell
   ============================================================= */
.sec { padding: clamp(88px, 12vh, 148px) 0; }
.sec-tight { padding: clamp(64px, 8vh, 104px) 0; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-2 { transition-delay: .09s; }
.rv-3 { transition-delay: .18s; }
.rv-4 { transition-delay: .27s; }

/* =============================================================
   problem — drifting document stack
   ============================================================= */
.stack { position: relative; height: 380px; overflow: hidden; }
.sheet {
  position: absolute;
  width: 168px; height: 218px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.9);
  overflow: hidden;
}
.sheet::before {                    /* fake text lines */
  content: "";
  position: absolute;
  left: 14px; right: 14px; top: 20px; height: 150px;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.14) 0 2px, transparent 2px 11px);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.sheet::after {
  content: "PDF";
  position: absolute;
  left: 14px; bottom: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--muted);
}
.punch { font-size: clamp(22px, 3vw, 34px); font-weight: 560; letter-spacing: -.03em; margin-top: 30px; }

/* =============================================================
   solution — the four verbs
   ============================================================= */
.verbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin: 44px 0 34px;
}
.verb {
  padding: 34px 26px 30px;
  border-right: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.verb:last-child { border-right: 0; }
.verb:hover { background: var(--surface); }
.verb b {
  display: block;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .2em; color: var(--muted);
  margin-bottom: 14px; font-weight: 400;
}
.verb span { font-size: clamp(21px, 2.3vw, 29px); font-weight: 560; letter-spacing: -.03em; }

/* =============================================================
   AI section
   ============================================================= */
.core-wrap { position: relative; display: grid; place-items: center; }
.core { width: 100%; aspect-ratio: 1 / 1; max-width: 460px; }
.core-words {
  display: flex; gap: 30px; justify-content: center; flex-wrap: wrap;
  margin-top: 26px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

/* =============================================================
   demo — scroll-driven stages
   ============================================================= */
.demo { position: relative; }
.demo-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 92px 0 34px;
}
.demo-canvas { position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); }
.demo-canvas canvas { width: 100%; height: 100%; }
.demo-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.step {
  flex: 1 1 130px;
  border-top: 2px solid var(--line);
  padding-top: 11px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.step.on { color: var(--ink); border-top-color: var(--cyan); }
.demo-cap { position: absolute; left: 20px; bottom: 18px; right: 20px; }
.demo-cap b { display: block; font-size: clamp(19px, 2.2vw, 26px); font-weight: 560; letter-spacing: -.03em; }
.demo-cap span { color: var(--muted); font-size: 14.5px; }

/* =============================================================
   before / after
   ============================================================= */
.ba { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ba-col { padding: clamp(26px, 3.4vw, 44px); }
.ba-col + .ba-col { border-left: 1px solid var(--line); }
.ba-before { background: rgba(255,255,255,.012); }
.ba-after  { background: radial-gradient(120% 100% at 50% 0%, rgba(6,182,212,.10), transparent 62%); }
.ba h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 26px; font-weight: 400; }
.ba-before h3 { color: var(--muted); }
.ba-after h3 { color: var(--cyan); }
.ba ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ba li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.8vw, 20px);
  display: flex; align-items: center; gap: 12px;
}
.ba li:last-child { border-bottom: 0; }
.ba-before li { color: var(--muted); }
.ba-after li { color: var(--ink); }
.ba li i { width: 15px; height: 15px; flex: none; opacity: .8; }

/* =============================================================
   scale
   ============================================================= */
.scale-num {
  font-size: clamp(84px, 17vw, 220px);
  font-weight: 640;
  letter-spacing: -.055em;
  line-height: .88;
  font-variant-numeric: tabular-nums;
}
.scale-row { display: flex; flex-wrap: wrap; gap: clamp(24px, 6vw, 88px); align-items: flex-end; margin-top: 30px; }
.scale-row div b { display: block; font-size: clamp(26px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.035em; }
.scale-row div span { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.collapse { width: 100%; aspect-ratio: 16 / 8; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); margin-top: 44px; }

/* =============================================================
   features — horizontal panels
   ============================================================= */
.panels { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 46px; }
.panel {
  display: grid;
  grid-template-columns: 62px 1fr 240px;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  padding: 26px clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .32s var(--ease);
}
.panel:last-child { border-bottom: 0; }
.panel:hover, .panel:focus-visible { background: var(--surface); }
.panel .no { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.panel h3 { font-size: clamp(19px, 2vw, 25px); font-weight: 560; }
.panel p { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 52ch; }
.panel .viz {
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-3);
  opacity: .45;
  transition: opacity .32s var(--ease), border-color .32s var(--ease), transform .32s var(--ease);
  overflow: hidden;
}
.panel:hover .viz { opacity: 1; border-color: rgba(6,182,212,.45); transform: translateY(-1px); }
.panel .viz canvas { width: 100%; height: 100%; }

/* =============================================================
   use cases
   ============================================================= */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 46px; }
.case {
  background: var(--bg);
  padding: 30px 24px 26px;
  min-height: 188px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .3s var(--ease);
}
.case:hover { background: var(--bg-3); }
.case .glyph { width: 40px; height: 40px; color: var(--cyan); opacity: .9; }
.case b { font-size: 18.5px; font-weight: 560; letter-spacing: -.02em; }
.case span { display: block; color: var(--muted); font-size: 14px; margin-top: 5px; }

/* =============================================================
   statement
   ============================================================= */
.statement { text-align: center; padding: clamp(110px, 17vh, 200px) 0; }
.statement .h-lg { max-width: 20ch; margin: 0 auto; }
.statement .h-lg + .h-lg { margin-top: 26px; }
.float-words {
  display: flex; justify-content: center; gap: clamp(26px, 7vw, 88px); flex-wrap: wrap;
  margin-top: 58px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.float-words span { animation: bob 6s ease-in-out infinite; }
.float-words span:nth-child(2) { animation-delay: -2s; }
.float-words span:nth-child(3) { animation-delay: -4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* =============================================================
   login
   ============================================================= */
.login-sec { padding: clamp(80px, 11vh, 132px) 0; }
.login-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 6vw, 76px); align-items: center; }
.login-card {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(26px, 3.4vw, 38px);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.95);
}
.login-card h3 { font-size: 23px; letter-spacing: -.03em; }
.login-card > p { color: var(--muted); font-size: 14.5px; margin: 8px 0 24px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }
.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,.32);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder { color: #55607400; }
.field input:focus {
  outline: none;
  border-color: rgba(6,182,212,.75);
  background: rgba(0,0,0,.5);
  box-shadow: 0 0 0 3px rgba(6,182,212,.18);
}
.login-card .btn { width: 100%; margin-top: 7px; }
.msg {
  margin: 0 0 15px;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 14px;
  border: 1px solid;
}
.msg-error { color: #FFB4B4; background: rgba(220, 60, 60, .1); border-color: rgba(220, 60, 60, .34); }
.msg-ok { color: #A8F0CE; background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .34); }
.login-foot { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.roles { display: grid; gap: 10px; margin-top: 26px; }
.role {
  display: flex; gap: 13px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 11px; padding: 15px 17px;
  background: var(--surface);
}
.role svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 2px; }
.role b { display: block; font-size: 15px; font-weight: 560; }
.role span { color: var(--muted); font-size: 14px; }

/* =============================================================
   final CTA + footer
   ============================================================= */
.final { position: relative; padding: clamp(110px, 16vh, 190px) 0; overflow: hidden; text-align: center; }
.final canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.final .wrap { position: relative; z-index: 2; }
.final .btnrow { justify-content: center; margin-top: 38px; }
.final .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); margin-top: 30px; }

.footer { border-top: 1px solid var(--line); padding: 54px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.footer .small { margin-top: 30px; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 34px;
  padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* =============================================================
   responsive
   ============================================================= */
@media (max-width: 1040px) {
  .split, .login-grid { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 40px 1fr; }
  .panel .viz { display: none; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .navtoggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 100%; left: var(--pad); right: var(--pad);
    background: rgba(7,10,19,.97);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line); border-radius: 12px; padding: 10px;
  }
  .nav-cta .btn-ghost { display: none; }   /* keep the primary Login button visible on mobile too */
  .only-mobile { display: block; }
  .nav { padding-left: 18px; padding-right: 18px; }
  .ba { grid-template-columns: 1fr; }
  .ba-col + .ba-col { border-left: 0; border-top: 1px solid var(--line); }
  .verb { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-sticky { height: auto; position: relative; padding-top: 40px; }
  .demo-canvas { aspect-ratio: 4 / 3; }
  .stack { height: 300px; }
  .sheet { width: 138px; height: 182px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
}

/* =============================================================
   contact
   ============================================================= */
.contact-sec { padding: clamp(80px, 11vh, 132px) 0; }
.contact-lines { display: grid; gap: 10px; margin-top: 26px; }
.contact-line {
  display: flex; gap: 13px; align-items: center;
  border: 1px solid var(--line); border-radius: 11px; padding: 15px 17px;
  background: var(--surface);
  transition: border-color .2s, background .2s;
}
a.contact-line:hover { border-color: rgba(6,182,212,.42); background: var(--surface-2); }
.contact-line svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.contact-line b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }
.contact-line span { font-size: 15.5px; color: var(--ink); }
.field textarea {
  width: 100%; min-height: 108px; resize: vertical;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(0,0,0,.32);
  color: var(--ink); font: inherit; font-size: 15px; line-height: 1.5;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea:focus {
  outline: none; border-color: rgba(6,182,212,.75); background: rgba(0,0,0,.5);
  box-shadow: 0 0 0 3px rgba(6,182,212,.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.login-foot a, .msg-ok a { color: var(--cyan); font-weight: 500; }

/* =============================================================
   sign-in page (/login)
   ============================================================= */
.auth-body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.auth-body::before { mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 10%, transparent 78%); }
.auth-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .75; pointer-events: none; }
.auth-body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 62% 52% at 50% 46%, var(--navy-glow), transparent 70%);
}

.auth-nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--pad);
}

.auth-main { position: relative; z-index: 2; flex: 1; display: flex; align-items: center;
  padding: clamp(24px, 5vh, 64px) var(--pad) clamp(30px, 6vh, 70px); }
.auth-grid {
  width: 100%; max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.auth-intro .h-lg { font-size: clamp(34px, 4.6vw, 56px); }
.auth-intro .lead { margin: 22px 0 0; font-size: clamp(16px, 1.4vw, 19px); }
.auth-intro .roles { margin-top: 28px; }
.auth-note {
  display: flex; align-items: center; gap: 9px;
  margin: 22px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5;
}
.auth-note svg { flex: none; color: var(--cyan); }

.auth-card { animation: authIn .6s var(--ease) both; }
@keyframes authIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.field-wrap { position: relative; }
.field-wrap input { padding-right: 46px; }
.peek {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
  color: var(--muted); transition: color .2s, background .2s;
}
.peek svg { width: 18px; height: 18px; }
.peek:hover { color: var(--ink-2); background: var(--surface-2); }
.peek.is-on { color: var(--cyan); }
.caps { margin: 8px 0 0; font-size: 12.5px; color: #FCD34D; }

.auth-foot {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 9px;
  padding: 0 var(--pad) 26px;
  color: var(--muted); font-size: 13.5px;
}
.auth-foot a { color: var(--ink-2); }
.auth-foot a:hover { color: var(--cyan); }
.auth-foot .dot { opacity: .5; }

@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; gap: 30px; max-width: 460px; }
  .auth-intro .roles, .auth-note { display: none; }
  .auth-intro { text-align: center; }
  .auth-intro .lead { margin-left: auto; margin-right: auto; }
  .auth-main { align-items: flex-start; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .auth-nav .brand-text { font-size: 14px; }
}
