/* Peragia — launch site.
 *
 * Dark-first, on purpose and in one theme: the brand's ink as the ground and
 * its teal as the only accent. Enterprise, not chatbot -- no gradients, glow
 * or neon. The page impresses by showing the machine working: a live console,
 * a loop with work moving through it, a ticket walked step by step, a dial you
 * can operate. Every animation is evidence of something the product does, all
 * of it stops under prefers-reduced-motion, and the page reads whole without it.
 */

/* ── tokens (a single, deliberate dark theme) ─────────────────────────── */
:root{
  color-scheme: dark;
  --ground:#0A1117;   --band:#0D151C;   --card:#121C25;  --card-2:#16222C;  --well:#0B131A;
  --ink:#EEF2F4;      --body:#B4C2CA;   --muted:#8294A0; --faint:#4E5F6B;
  --rule:#1F2C37;     --rule-soft:#17222B;
  --teal:#3FA68E;     --teal-hi:#7FD0BD; --teal-soft:#122C26; --teal-line:#3FA68E55;
  --amber:#D9A55A;    --amber-soft:#2E2416;
  --stop:#E08A70;     --stop-soft:#33201B;
  --on-teal:#06100D;

  --display:"Archivo",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --sans:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  --gutter:clamp(16px,5vw,56px);
  --max:1200px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --spring:cubic-bezier(.34,1.3,.5,1);
}

/* ── baseline ─────────────────────────────────────────────────────────── */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:72px; background:var(--ground); }
body{ margin:0; background:var(--ground); color:var(--body); font-family:var(--sans);
      font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
h1,h2,h3{ font-family:var(--display); color:var(--ink); margin:0; letter-spacing:-.025em; text-wrap:balance; }
h1{ font-size:clamp(44px,7.4vw,104px); font-weight:900; line-height:.94; letter-spacing:-.05em; }
h2{ font-size:clamp(30px,4.6vw,58px); font-weight:800; line-height:1.02; letter-spacing:-.04em; }
h3{ font-size:17px; font-weight:700; line-height:1.3; letter-spacing:-.01em; }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
b{ color:var(--ink); font-weight:600; }
button{ font:inherit; }
::selection{ background:var(--teal); color:var(--on-teal); }
:focus-visible{ outline:2px solid var(--teal); outline-offset:3px; border-radius:6px; }
.eyebrow{ display:inline-flex; align-items:center; gap:10px; font-family:var(--mono); font-size:11px; font-weight:500;
          letter-spacing:.18em; text-transform:uppercase; color:var(--teal-hi); }
.eyebrow::before{ content:""; width:18px; height:1px; background:var(--teal); }
.accent{ color:var(--teal); }
.lead{ margin-top:20px; font-size:clamp(16px,1.5vw,18.5px); max-width:60ch; }
.aside{ margin-top:22px; font-size:13.5px; color:var(--muted); max-width:78ch; }

.night{ background:var(--band); border-block:1px solid var(--rule-soft); }
.band{ max-width:var(--max); margin-inline:auto; padding:clamp(88px,11vw,150px) var(--gutter); }
.head-row{ display:grid; gap:20px; align-items:end; }
.head-row .eyebrow + h2, .story-head .eyebrow + h2{ margin-top:16px; }
@media (min-width:960px){ .head-row{ grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:64px; } }
.side-note{ font-size:15.5px; color:var(--muted); max-width:46ch; }

/* faint engineering grid behind the light-weight bands: drawn, not glowing */
.gridded{ position:relative; }
.gridded::before{ content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:linear-gradient(var(--rule-soft) 1px, transparent 1px), linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size:64px 64px; mask-image:radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image:radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%); }

/* reveal: only with JS, so the page is whole without it */
.js .rv{ opacity:0; transform:translateY(24px); transition:opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in{ opacity:1; transform:none; }

/* ── progress + masthead ──────────────────────────────────────────────── */
.progress{ position:fixed; inset:0 0 auto; height:2px; z-index:30; pointer-events:none; }
.progress span{ display:block; height:100%; background:var(--teal); transform-origin:left; transform:scaleX(0); }
.masthead{ position:fixed; inset:0 0 auto; z-index:20; display:flex; align-items:center; gap:24px;
           padding:18px var(--gutter); border-bottom:1px solid transparent;
           transition:background .3s, border-color .3s, padding .3s; }
.masthead.solid{ background:color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter:blur(14px) saturate(1.2);
                 -webkit-backdrop-filter:blur(14px) saturate(1.2); border-color:var(--rule-soft); padding-block:12px; }
.nav{ display:flex; gap:2px; margin-left:auto; padding:4px; border:1px solid var(--rule); border-radius:999px; background:#ffffff05; }
.nav a{ font-size:13.5px; padding:6px 13px; border-radius:999px; color:var(--muted); transition:color .2s, background .2s; }
.nav a:hover, .nav a.on{ color:var(--ink); background:var(--card-2); }
.pill{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; padding:8px 15px;
       border-radius:999px; color:var(--on-teal); background:var(--teal); transition:background .2s, transform .25s var(--spring); }
.pill:hover{ background:var(--teal-hi); transform:translateY(-1px); }
.beat{ width:7px; height:7px; border-radius:50%; background:var(--on-teal); animation:beat 2.2s ease-in-out infinite; }
@keyframes beat{ 0%,100%{ opacity:1 } 50%{ opacity:.35 } }
@media (max-width:860px){ .nav{ display:none; } .pill{ margin-left:auto; } }

/* the mark */
.lockup{ display:inline-flex; flex-direction:column; }
.word{ font-family:var(--display); font-weight:900; color:var(--ink); letter-spacing:.06em; line-height:1; font-size:19px; }
.under{ display:flex; align-items:center; gap:4px; margin-top:5px; }
.under .line{ flex:1; height:3px; background:var(--teal); border-radius:2px; transform-origin:left; }
.under .dot{ width:6px; height:6px; border-radius:50%; flex:none; }
.under .dot.hollow{ border:1.5px solid var(--teal); }
.under .dot.solid{ background:var(--teal); }
.masthead .under .line{ animation:draw .8s var(--ease) both .2s; }
.masthead .under .dot{ animation:pop .35s var(--spring) both; }
.masthead .under .dot:nth-of-type(2){ animation-delay:.9s } .masthead .under .dot:nth-of-type(3){ animation-delay:1s }
.masthead .under .dot:nth-of-type(4){ animation-delay:1.1s }
@keyframes draw{ from{ transform:scaleX(0) } to{ transform:scaleX(1) } }
@keyframes pop{ from{ transform:scale(0) } to{ transform:scale(1) } }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn{ display:inline-flex; align-items:center; gap:8px; font-size:15px; font-weight:600; padding:13px 20px;
      border-radius:11px; cursor:pointer; background:var(--teal); color:var(--on-teal); border:1px solid var(--teal);
      transition:background .2s, transform .25s var(--spring), border-color .2s; }
.btn:hover{ background:var(--teal-hi); border-color:var(--teal-hi); transform:translateY(-2px); }
.btn:active{ transform:translateY(0) scale(.98); }
.btn .arr{ transition:transform .3s var(--spring); } .btn:hover .arr{ transform:translateX(3px); }
.btn.ghost{ background:#ffffff06; color:var(--ink); border-color:var(--rule); }
.btn.ghost:hover{ border-color:var(--teal); background:#ffffff0a; }
.btn.sm{ font-size:13px; padding:8px 13px; border-radius:9px; }
.btn.warn{ background:var(--stop-soft); color:var(--stop); border-color:#E08A7055; }
.btn.warn:hover{ background:#4a2a22; border-color:var(--stop); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero{ position:relative; min-height:max(720px, 100svh); display:flex; align-items:center; overflow:hidden;
       border-bottom:1px solid var(--rule-soft); }
.net{ position:absolute; inset:0; width:100%; height:100%; }
.hero-in{ position:relative; width:100%; max-width:var(--max); margin-inline:auto; padding:130px var(--gutter) 100px;
          display:grid; gap:56px; align-items:center; }
@media (min-width:1080px){
  .hero-in{ grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr); gap:56px; align-items:start; }
  /* the console's top edge lines up with the top of the headline: the badge's height plus its gap */
  .hero .console{ margin-top:calc(var(--badge-h, 32px) + 26px); }
}
.badge{ display:inline-flex; align-items:center; gap:10px; padding:5px 12px 5px 6px; border:1px solid var(--rule);
        border-radius:999px; background:#ffffff06; font-size:13px; color:var(--body); }
.badge b{ font-family:var(--mono); font-size:10.5px; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
          color:var(--on-teal); background:var(--teal); padding:2px 8px; border-radius:999px; }
.hero h1{ margin-top:26px; }
.say{ margin-top:28px; font-size:clamp(16.5px,1.6vw,19.5px); max-width:44ch; }
.cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:36px; }
.split-words .w{ display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.1em; margin-bottom:-.1em; }
.split-words .w > span{ display:inline-block; transform:translateY(108%); animation:wordup 1s var(--ease) forwards; }
@keyframes wordup{ to{ transform:none } }

.scroll-cue{ position:absolute; left:50%; bottom:24px; translate:-50% 0; width:22px; height:36px;
             border:1.5px solid var(--rule); border-radius:12px; }
.scroll-cue span{ position:absolute; left:50%; top:7px; width:3px; height:7px; translate:-50% 0;
                  border-radius:2px; background:var(--teal); animation:cue 1.8s var(--ease) infinite; }
@keyframes cue{ 0%{ transform:translateY(0); opacity:1 } 70%{ transform:translateY(12px); opacity:0 } 100%{ opacity:0 } }

/* the console */
.console{ margin:0; border:1px solid var(--rule); border-radius:18px; background:var(--well); overflow:hidden;
          box-shadow:0 50px 100px -50px #000, 0 0 0 6px #ffffff04; }
.con-top{ display:flex; align-items:center; gap:12px; padding:11px 14px; border-bottom:1px solid var(--rule);
          font-family:var(--mono); font-size:11.5px; color:var(--muted); background:#ffffff03; }
.lights{ display:flex; gap:6px; } .lights i{ width:9px; height:9px; border-radius:50%; background:var(--rule); }
.con-title{ flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.con-live{ display:inline-flex; align-items:center; gap:6px; color:var(--teal-hi); }
.con-live i{ width:6px; height:6px; border-radius:50%; background:var(--teal); animation:beat 1.4s infinite; }
.clocks{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-bottom:1px solid var(--rule); }
.clock{ padding:11px 14px 12px; border-right:1px solid var(--rule); font-family:var(--mono); transition:opacity .4s; }
.clock:last-child{ border-right:0; }
.clock span{ display:block; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.clock b{ display:block; margin-top:2px; font-size:18px; font-weight:500; color:var(--ink); font-variant-numeric:tabular-nums; }
.clock i{ display:block; margin-top:8px; height:3px; border-radius:2px; background:var(--rule); overflow:hidden; }
.clock s{ display:block; height:100%; width:0; background:var(--teal); transition:width .25s linear; }
.clock.met b{ color:var(--teal-hi); } .clock.met b::after{ content:" ✓"; font-size:13px; }
.clock.idle{ opacity:.4; }
.feed{ list-style:none; margin:0; padding:10px 0; height:310px; overflow:hidden; display:flex; flex-direction:column;
       justify-content:flex-end; font-size:13.5px; }
.feed li{ display:grid; grid-template-columns:44px 76px minmax(0,1fr); gap:10px; padding:6px 14px; align-items:baseline;
          animation:feedin .45s var(--ease) both; }
.feed .t{ font-family:var(--mono); font-size:11px; color:var(--faint); font-variant-numeric:tabular-nums; }
.feed .who{ font-family:var(--mono); font-size:11px; padding:1px 7px; border-radius:6px; justify-self:start;
            background:#ffffff0c; color:var(--muted); }
.feed .who.a{ background:var(--teal-soft); color:var(--teal-hi); }
.feed .who.p{ background:var(--amber-soft); color:var(--amber); }
.feed .x{ color:#D3DCE1; }
.feed .x em{ font-style:normal; font-family:var(--mono); font-size:11px; margin-left:6px; padding:1px 6px; border-radius:5px;
             background:#ffffff0c; color:var(--muted); white-space:nowrap; }
.feed .x em.ok{ color:var(--teal-hi); background:var(--teal-soft); }
.feed .x em.wait{ color:var(--amber); background:var(--amber-soft); }
@keyframes feedin{ from{ opacity:0; transform:translateY(10px) } to{ opacity:1; transform:none } }
.con-foot{ display:flex; align-items:center; gap:6px; padding:10px 14px; border-top:1px solid var(--rule);
           font-family:var(--mono); font-size:11.5px; color:var(--muted); }
.cursor{ width:7px; height:13px; background:var(--teal); animation:blink 1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity:0 } }
@media (max-width:520px){ .feed li{ grid-template-columns:64px minmax(0,1fr); } .feed .t{ display:none; } .clock b{ font-size:14px; } }

/* ── ticker ───────────────────────────────────────────────────────────── */
.ticker{ overflow:hidden; border-bottom:1px solid var(--rule-soft); background:var(--band);
         mask-image:linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
         -webkit-mask-image:linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tick-track{ display:flex; align-items:center; gap:30px; width:max-content; padding:20px 0; animation:tick 50s linear infinite; }
.tick-track span{ font-family:var(--display); font-weight:700; font-size:clamp(17px,2vw,22px); color:var(--muted);
                  letter-spacing:-.01em; white-space:nowrap; }
.tick-track b{ color:var(--teal); font-size:14px; }
@keyframes tick{ to{ transform:translateX(-50%) } }

/* ── gap ──────────────────────────────────────────────────────────────── */
.lit{ margin-top:22px; font-size:clamp(28px,4.3vw,58px); line-height:1.08; max-width:23ch; }
.lit .lw{ color:#26343F; transition:color .35s; }
.lit .lw.on{ color:var(--ink); }
.stalls{ list-style:none; margin:80px 0 0; padding:0; display:grid; gap:14px; }
@media (min-width:760px){ .stalls{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1100px){ .stalls{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
.stalls li{ padding:22px; border:1px solid var(--rule); border-radius:16px; background:var(--card); }
.stalls .ix{ display:block; font-family:var(--mono); font-size:11px; color:var(--stop); margin-bottom:14px; }
.stalls p{ margin-top:6px; font-size:14.5px; }

/* ── atlas ────────────────────────────────────────────────────────────── */
.ide{ margin-top:60px; display:grid; border:1px solid var(--rule); border-radius:20px; overflow:hidden; background:var(--card); }
@media (min-width:980px){ .ide{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
.code{ background:var(--well); color:#C8D3D9; min-width:0; border-bottom:1px solid var(--rule); }
@media (min-width:980px){ .code{ border-bottom:0; border-right:1px solid var(--rule); } }
.code-h{ display:flex; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--rule);
         font-family:var(--mono); font-size:11.5px; color:var(--ink); background:#ffffff03; }
.code-h span{ color:var(--muted); }
.code pre{ margin:0; padding:12px 0; overflow-x:auto; font-family:var(--mono); font-size:13px; line-height:1.75; counter-reset:ln; }
.code pre span{ display:block; padding:0 16px 0 52px; position:relative; transition:background .3s, color .3s; min-height:1.75em; }
.code pre span::before{ counter-increment:ln; content:counter(ln); position:absolute; left:0; width:36px; text-align:right;
                        color:var(--faint); font-size:11.5px; }
.code pre span.hl{ background:var(--teal-soft); color:#E9F5F1; box-shadow:inset 2px 0 var(--teal); }
.claims{ display:flex; flex-direction:column; min-width:0; }
.claims > ul{ list-style:none; margin:0; padding:10px; display:grid; gap:4px; }
.claims > ul li{ padding:12px 14px; border-radius:12px; font-size:15px; color:var(--ink); cursor:default; transition:background .25s; }
.claims > ul li code{ display:inline-block; margin-left:4px; font-family:var(--mono); font-size:11.5px; color:var(--teal-hi);
                      background:var(--teal-soft); padding:1px 7px; border-radius:6px; }
.claims > ul li.on{ background:#ffffff08; }
.claims > ul li.on code{ background:var(--teal); color:var(--on-teal); }
.claims > ul li.q{ color:var(--amber); }
.claims > ul li.q code{ background:var(--amber-soft); color:var(--amber); }
.docs{ margin-top:auto; padding:16px 20px 20px; border-top:1px solid var(--rule); }
.docs-h{ font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
.docs ul{ list-style:none; margin:12px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.docs li{ font-size:12.5px; padding:5px 11px; border-radius:999px; border:1px solid var(--rule); color:var(--muted);
          transition:all .4s var(--ease); }
.docs li.w{ border-color:var(--teal-line); color:var(--teal-hi); background:var(--teal-soft); }
.docs li.w::before{ content:"✓ "; }
.docs li.q{ border-style:dashed; }

/* ── trust ────────────────────────────────────────────────────────────── */
.rules{ list-style:none; margin:60px 0 0; padding:0; display:grid; gap:14px; }
@media (min-width:760px){ .rules{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1080px){ .rules{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
.rules li{ padding:26px; border:1px solid var(--rule); border-radius:18px; background:var(--card);
           transition:transform .35s var(--spring), border-color .3s; }
.rules li:hover{ transform:translateY(-4px); border-color:var(--teal-line); }
.rules .ic{ display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:var(--teal-soft); }
.rules svg{ width:22px; height:22px; fill:none; stroke:var(--teal-hi); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.rules h3{ margin-top:18px; }
.rules p{ margin-top:8px; font-size:14.5px; }

/* ── contact ──────────────────────────────────────────────────────────── */
.talk{ position:relative; overflow:hidden; }
.talk-in{ position:relative; max-width:var(--max); margin-inline:auto; padding:clamp(100px,14vw,190px) var(--gutter); }
.huge{ margin-top:18px; font-size:clamp(40px,6.6vw,92px); line-height:.96; letter-spacing:-.05em; }
.mail{ display:flex; flex-wrap:wrap; align-items:center; gap:16px 24px; margin-top:48px; }
.mail-big{ position:relative; font-family:var(--display); font-weight:800; font-size:clamp(26px,4.4vw,58px); color:var(--ink);
           letter-spacing:-.03em; display:inline-flex; gap:12px; align-items:baseline; }
.mail-big span{ color:var(--teal); font-size:.6em; transition:transform .3s var(--spring); }
.mail-big::after{ content:""; position:absolute; left:0; right:0; bottom:-6px; height:3px; background:var(--teal);
                  transform:scaleX(.16); transform-origin:left; transition:transform .5s var(--ease); }
.mail-big:hover::after{ transform:scaleX(1); }
.mail-big:hover span{ transform:translate(4px,-4px); }

/* ── footer ───────────────────────────────────────────────────────────── */
.foot{ border-top:1px solid var(--rule-soft); }
.foot-in{ max-width:var(--max); margin-inline:auto; padding:56px var(--gutter) 28px; display:grid; gap:40px; }
@media (min-width:860px){ .foot-in{ grid-template-columns:1.4fr repeat(3,minmax(0,1fr)); } }
.foot-brand p{ margin-top:16px; font-size:14px; color:var(--muted); max-width:30ch; }
.foot h4{ margin:0; font-family:var(--mono); font-size:10.5px; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); }
.foot ul{ list-style:none; margin:14px 0 0; padding:0; display:grid; gap:8px; font-size:14px; }
.foot ul a{ color:var(--body); transition:color .2s; } .foot ul a:hover{ color:var(--teal-hi); }
.foot-base{ max-width:var(--max); margin-inline:auto; padding:18px var(--gutter) 30px; display:flex; flex-wrap:wrap; gap:12px 24px;
            align-items:center; font-size:12.5px; color:var(--muted); border-top:1px solid var(--rule-soft); }
.status{ display:inline-flex; align-items:center; gap:8px; font-family:var(--mono); font-size:11.5px; }
.status i{ width:7px; height:7px; border-radius:50%; background:var(--amber); animation:beat 2s infinite; }
.foot-base .copy{ margin-left:auto; }
.lockup.small .word{ font-size:16px; }

/* ── less motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001s !important; animation-iteration-count:1 !important;
                        transition:none !important; scroll-behavior:auto !important; }
  .js .rv{ opacity:1; transform:none; }
  .tick-track{ animation:none !important; }
  .loop .packets{ display:none; }
}

/* ── atlas fits one screen: the code and what was written from it, side by side,
      without scrolling between them ──────────────────────────────────────── */
#atlas{ padding-block:clamp(56px,6.5vw,84px); }
#atlas h2{ font-size:clamp(28px,3.4vw,44px); }
#atlas .side-note{ font-size:15px; }
#atlas .ide{ margin-top:32px; }
#atlas .code-h{ padding-block:9px; }
#atlas .code pre{ padding:8px 0; font-size:12.5px; line-height:1.55; }
#atlas .code pre span{ min-height:1.55em; }
#atlas .claims > ul{ padding:8px; gap:2px; }
#atlas .claims > ul li{ padding:8px 12px; font-size:14px; line-height:1.45; }
#atlas .docs{ padding:12px 16px 14px; }
#atlas .docs ul{ margin-top:8px; gap:5px; }
#atlas .docs li{ font-size:11.5px; padding:3px 9px; }
#atlas .aside{ margin-top:12px; font-size:12.5px; }
/* each line is a block; as a grid, the newlines between them are not drawn as blank lines */
.code pre code{ display:grid; }

/* ── the five agents, as a carousel ───────────────────────────────────────
 * One agent in the middle, its neighbours peeking either side so it reads as
 * a set you move through. Swipe, drag, arrows, keys or the dots; it moves on
 * by itself until someone takes the wheel, and the dot fills as it waits. */
.carousel{ margin-top:14px; }
.c-viewport{ position:relative; overflow:hidden; border-radius:20px; touch-action:pan-y; cursor:grab;
             mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
             -webkit-mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.c-viewport.dragging{ cursor:grabbing; }
.c-track{ display:flex; gap:16px; will-change:transform; transition:transform .7s var(--ease); }
.c-viewport.dragging .c-track{ transition:none; }
.c-card{ flex:0 0 min(780px, 84%); position:relative; padding:20px 24px 22px; border:1px solid var(--rule); border-radius:20px;
         background:var(--card); opacity:.38; transform:scale(.94); user-select:none;
         transition:opacity .6s var(--ease), transform .7s var(--ease), border-color .5s; }
.c-card.on{ opacity:1; transform:none; border-color:var(--teal-line); }
.c-card:not(.on){ cursor:pointer; }
.c-card::before{ content:""; position:absolute; left:24px; right:24px; top:-1px; height:2px; background:var(--teal);
                 transform:scaleX(0); transform-origin:left; transition:transform .8s var(--ease) .15s; }
.c-card.on::before{ transform:scaleX(1); }
.c-card header{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.c-ix{ font-family:var(--mono); font-size:11px; color:var(--teal-hi); }
.c-card h3{ font-size:clamp(24px,2.4vw,32px); font-weight:800; letter-spacing:-.035em; }
.c-role{ font-family:var(--mono); font-size:11px; padding:2px 9px; border-radius:999px; background:var(--teal-soft); color:var(--teal-hi); }
.c-say{ margin-top:4px; font-size:14.5px; color:var(--muted); }
.c-card dl{ margin:14px 0 0; display:grid; gap:10px 26px; }
/* what you get, then the line it never crosses */
@media (min-width:760px){ .c-card dl{ grid-template-columns:minmax(0,2fr) minmax(0,1fr); } }
.c-card dt{ font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--teal-hi); }
.c-card dd{ margin:3px 0 0; font-size:13.5px; line-height:1.5; }
/* the words rise in after the card arrives */
.c-card dl > div{ transition:opacity .5s var(--ease), transform .5s var(--ease); }
.c-card:not(.on) dl > div{ opacity:.5; transform:translateY(6px); }
.c-card.on dl > div:nth-child(2){ transition-delay:.08s } .c-card.on dl > div:nth-child(3){ transition-delay:.16s }

.c-controls{ display:flex; align-items:center; gap:18px; margin-top:14px; padding-inline:4px; }
.c-count{ font-family:var(--mono); font-size:12px; color:var(--muted); min-width:64px; }
.c-count b{ color:var(--ink); font-weight:500; }
.c-dots{ display:flex; gap:6px; margin-inline:auto; }
.c-dots button{ position:relative; width:10px; height:6px; padding:0; border:0; border-radius:999px; background:var(--rule);
                cursor:pointer; overflow:hidden; transition:width .5s var(--ease), background .3s; }
.c-dots button:hover{ background:var(--muted); }
.c-dots button[aria-selected="true"]{ width:46px; background:var(--card-2); }
.c-dots button i{ position:absolute; inset:0; background:var(--teal); transform:scaleX(0); transform-origin:left; }
.c-dots button[aria-selected="true"] i{ transform:scaleX(1); }
.carousel.auto .c-dots button[aria-selected="true"] i{ animation:fillDot var(--dwell, 6s) linear both; }
.carousel.auto.paused .c-dots button[aria-selected="true"] i{ animation-play-state:paused; }
@keyframes fillDot{ from{ transform:scaleX(0) } to{ transform:scaleX(1) } }
.c-arrows{ display:flex; gap:8px; min-width:64px; justify-content:flex-end; }
.c-arrow{ display:grid; place-items:center; width:38px; height:38px; border-radius:50%; border:1px solid var(--rule);
          background:var(--card); color:var(--ink); cursor:pointer; transition:border-color .2s, transform .25s var(--spring), background .2s; }
.c-arrow:hover{ border-color:var(--teal); background:var(--teal-soft); transform:scale(1.06); }
.c-arrow:active{ transform:scale(.94); }
.c-arrow svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#agents .loop svg{ max-width:860px; }

/* the carousel has a section of its own, so its cards can breathe */
.meet{ padding-block:clamp(64px,8vw,110px); }
.meet h2{ font-size:clamp(28px,3.6vw,48px); }
.meet .carousel{ margin-top:40px; }
.meet .c-card{ padding:28px 32px 30px; min-height:250px; }
.meet .c-card h3{ font-size:clamp(30px,3.2vw,44px); }
.meet .c-card dl{ margin-top:22px; gap:14px 32px; }
.meet .c-card dd{ font-size:15px; line-height:1.55; margin-top:6px; }
.meet .c-controls{ margin-top:18px; }
.c-ghost{ cursor:pointer; }

/* ── hero: what it is, said first ─────────────────────────────────────── */
.say b{ display:block; margin-bottom:6px; color:var(--ink); font-weight:600; }

/* ── the gap: dim before it is read, but never unreadable ──────────────── */
.lit .lw{ color:#3C4C58; }

/* ── carousel pause ───────────────────────────────────────────────────── */
.c-pause .i-play{ display:none; }
.c-pause[aria-pressed="true"] .i-play{ display:block; }
.c-pause[aria-pressed="true"] .i-pause{ display:none; }
.c-pause .i-play path{ fill:currentColor; stroke:none; }

/* ── trust: how it behaves, how it is deployed ────────────────────────── */
.trust-cols{ display:grid; gap:40px; margin-top:52px; }
@media (min-width:1000px){ .trust-cols{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; } }
.trust-h{ font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); }
.trust .rules{ margin-top:14px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)) !important; gap:12px; }
.trust .rules li{ padding:22px; }

/* ── pilot ────────────────────────────────────────────────────────────── */
.pilot-steps{ list-style:none; margin:52px 0 0; padding:0; display:grid; gap:12px; counter-reset:none; }
@media (min-width:760px){ .pilot-steps{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1100px){ .pilot-steps{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
.pilot-steps li{ position:relative; padding:24px 22px; border:1px solid var(--rule); border-radius:18px; background:var(--card); }
.pilot-steps .n{ display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--teal);
                 color:var(--on-teal); font-family:var(--mono); font-size:13px; font-weight:500; }
.pilot-steps h3{ margin-top:16px; }
.pilot-steps p{ margin-top:8px; font-size:14.5px; }
@media (min-width:1100px){
  .pilot-steps li:not(:last-child)::after{ content:""; position:absolute; top:39px; right:-13px; width:14px; height:1px; background:var(--teal-line); }
}
.pilot-give{ margin-top:14px; display:grid; gap:12px; }
@media (min-width:760px){ .pilot-give{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.pilot-give > div{ padding:22px; border:1px solid var(--rule); border-radius:18px; background:var(--band); }
.pilot-give ul{ list-style:none; margin:14px 0 0; padding:0; display:grid; gap:9px; font-size:15px; }
.pilot-give li{ position:relative; padding-left:24px; color:var(--ink); }
.pilot-give li::before{ content:"✓"; position:absolute; left:0; color:var(--teal-hi); font-size:13px; }

/* ── contact: copy and form side by side ──────────────────────────────── */
.talk-in{ display:grid; gap:48px; align-items:start; }
@media (min-width:1000px){ .talk-in{ grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:64px; } }
.talk .huge{ font-size:clamp(38px,5vw,72px); }
.talk-alt{ margin-top:22px; font-size:15px; color:var(--muted); }
.talk-alt a{ color:var(--ink); border-bottom:1px solid var(--teal); }
.linkish{ margin-left:8px; border:0; background:none; padding:0; color:var(--teal-hi); cursor:pointer; font-size:13px; }
.linkish:hover{ text-decoration:underline; }
.form{ display:grid; gap:14px; padding:26px; border:1px solid var(--rule); border-radius:20px; background:var(--card);
       box-shadow:0 40px 80px -50px #000; }
.f-pair{ display:grid; gap:14px; }
@media (min-width:560px){ .f-pair{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.f-row{ display:grid; gap:6px; }
.f-row label{ font-size:13px; font-weight:500; color:var(--ink); }
.f-row label span{ font-weight:400; color:var(--muted); margin-left:4px; font-size:12px; }
.form input, .form textarea{ width:100%; font:inherit; font-size:15px; color:var(--ink); background:var(--well);
       border:1px solid var(--rule); border-radius:10px; padding:11px 13px; transition:border-color .2s, box-shadow .2s; }
.form textarea{ resize:vertical; min-height:84px; }
.form input::placeholder, .form textarea::placeholder{ color:var(--faint); }
.form input:focus, .form textarea:focus{ outline:none; border-color:var(--teal); box-shadow:0 0 0 3px var(--teal-soft); }
.form .bad input, .form .bad textarea{ border-color:var(--stop); }
.f-err{ min-height:0; font-size:12.5px; color:var(--stop); }
.f-err:empty{ display:none; }
.f-trap{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.f-foot{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:4px; }
.f-note{ font-size:12.5px; color:var(--muted); }
.f-note a{ color:var(--body); border-bottom:1px solid var(--rule); }
.f-status{ font-size:14px; }
.f-status:empty{ display:none; }
.f-status.ok{ padding:12px 14px; border-radius:10px; background:var(--teal-soft); color:var(--teal-hi); }
.f-status.err{ padding:12px 14px; border-radius:10px; background:var(--stop-soft); color:var(--stop); }
.form.sent .f-row, .form.sent .f-pair, .form.sent .f-foot{ display:none; }
.btn[disabled]{ opacity:.6; cursor:progress; transform:none; }

/* ── pages other than the home page ───────────────────────────────────── */
.page{ max-width:760px; margin-inline:auto; padding:140px var(--gutter) 80px; }
.page h1{ font-size:clamp(36px,5vw,56px); }
.page h2{ font-size:22px; margin-top:36px; letter-spacing:-.02em; }
.page p, .page li{ margin-top:12px; font-size:16px; }
.page ul{ padding-left:20px; }
.page a{ color:var(--teal-hi); border-bottom:1px solid var(--teal-line); }
.page .meta{ margin-top:10px; font-family:var(--mono); font-size:12px; color:var(--muted); }
.page .btn{ margin-top:28px; border-bottom:0; color:var(--on-teal); }
.talk .huge{ font-size:clamp(36px,4.4vw,64px); max-width:13ch; }
#security h2, #pilot h2{ font-size:clamp(28px,3.4vw,44px); }

/* ── security fits one screen: icon beside the title, tighter band ──────── */
#security{ padding-block:clamp(56px,7vw,92px); }
#security h2{ max-width:20ch; }
#security .trust-cols{ margin-top:32px; }
@media (min-width:1000px){ #security .trust-cols{ gap:24px; } }
#security .rules{ gap:10px; }
#security .rules li{ display:grid; grid-template-columns:34px 1fr; column-gap:14px; align-items:start; padding:16px 18px; }
#security .rules .ic{ grid-row:1 / span 2; width:34px; height:34px; border-radius:10px; }
#security .rules svg{ width:18px; height:18px; }
#security .rules h3{ margin-top:6px; font-size:16px; }
#security .rules p{ margin-top:6px; font-size:13.5px; line-height:1.5; }
/* four cards per column read as a 2 × 2 block at every width that has room */
@media (min-width:560px){ #security .rules{ grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media (max-width:559px){ #security .rules{ grid-template-columns:1fr !important; } }
#security .rules li{ align-content:start; }   /* spare height goes below the text, not between title and text */
/* two groups, told apart at a glance: a vertical rule between them, and equal cards within each */
#security .rules{ grid-auto-rows:1fr; }
@media (min-width:1000px){
  #security .trust-cols{ gap:0; }
  #security .trust-cols > div:first-child{ padding-right:32px; }
  #security .trust-cols > div:last-child{ padding-left:32px; border-left:1px solid var(--teal-line); }
}

/* ── the difference: today and with Peragia, read across one row ───────── */
.shift-in{ padding-block:clamp(88px,11vw,140px); }
.ba-head{ display:none; margin-top:56px; font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; }
.ba-head span:first-child{ color:var(--stop); } .ba-head span:last-child{ color:var(--teal-hi); }
.ba{ list-style:none; margin:40px 0 0; padding:0; }
.ba li{ display:grid; gap:6px; padding:20px 0; border-top:1px solid var(--rule); }
.ba li:last-child{ border-bottom:1px solid var(--rule); }
.ba-was{ color:var(--muted); font-size:15.5px; }
.ba-arr{ display:none; color:var(--teal); font-family:var(--mono); }
.ba-now{ color:var(--ink); font-size:16.5px; font-weight:500; }
@media (min-width:860px){
  .ba-head, .ba li{ display:grid; grid-template-columns:minmax(0,1fr) 48px minmax(0,1.15fr); align-items:baseline; gap:0 12px; }
  .ba{ margin-top:14px; }
  .ba-arr{ display:block; text-align:center; }
  .ba li{ padding:22px 0; }
}

/* ── who it's for: four people, one promise each ──────────────────────── */
.who-list{ list-style:none; margin:52px 0 0; padding:0; display:grid; gap:12px; }
@media (min-width:640px){ .who-list{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1080px){ .who-list{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
.who-list li{ padding:24px 22px; border:1px solid var(--rule); border-radius:18px; background:var(--card); border-top:2px solid var(--teal); }
.who-list p{ margin-top:10px; font-size:14.5px; }

/* ── works with: one-colour marks, so a row of brands reads as one set ── */
.fits-groups{ margin-top:48px; display:grid; gap:28px; }
@media (min-width:640px){ .fits-groups{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1080px){ .fits-groups{ grid-template-columns:1fr 1.25fr 3fr; gap:32px; } }
.fits-groups ul{ list-style:none; margin:14px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.fits-groups li{ display:inline-flex; align-items:center; gap:9px; padding:8px 14px 8px 11px; border:1px solid var(--rule);
  border-radius:999px; background:var(--card); color:var(--ink); font-size:14px; transition:border-color .3s var(--ease); }
.fits-groups li:hover{ border-color:var(--teal-line); }
.fits-groups svg{ width:17px; height:17px; flex:none; fill:var(--teal-hi); }
.fits-groups svg.ln{ fill:none; stroke:var(--teal-hi); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
/* the commonest tools first; the rest behind "+ N more", and all of them without script */
.js .fits-groups li.extra{ display:none; }
.js .fits-groups ul.all li.extra{ display:inline-flex; }
.fits-groups li.more-li{ padding:0; border:0; background:none; }
.fits-groups .more{ display:inline-flex; align-items:center; gap:8px; padding:8px 14px 8px 12px; border:1px dashed var(--teal-line);
  border-radius:999px; background:transparent; color:var(--teal-hi); font-size:14px; cursor:pointer; transition:background .3s var(--ease); }
.fits-groups .more:hover{ background:var(--teal-soft); }
.fits-groups .more span{ font-family:var(--mono); font-size:15px; line-height:1; transition:transform .3s var(--ease); }
.fits-groups .more b{ color:inherit; font-weight:500; }
.fits-groups .more[aria-expanded="true"] span{ transform:rotate(45deg); }
html:not(.js) .fits-groups li.more-li{ display:none; }

/* ── questions: native disclosure, so it works without script ─────────── */
.faq-list{ margin-top:44px; max-width:860px; border-top:1px solid var(--rule); }
.faq-list details{ border-bottom:1px solid var(--rule); }
.faq-list summary{ list-style:none; cursor:pointer; display:flex; justify-content:space-between; gap:20px; padding:22px 4px;
  font-family:var(--display); font-weight:700; font-size:clamp(16px,1.6vw,19px); color:var(--ink); letter-spacing:-.01em; }
.faq-list summary::-webkit-details-marker{ display:none; }
.faq-list summary::after{ content:"+"; font-family:var(--mono); font-weight:400; color:var(--teal-hi); transition:transform .3s var(--ease); }
.faq-list details[open] summary::after{ transform:rotate(45deg); }
.faq-list details p{ padding:0 4px 24px; max-width:70ch; font-size:15.5px; }
a.inline{ color:var(--teal-hi); border-bottom:1px solid var(--teal-line); }

/* ── the page's backdrop: the hero's lattice, quieter, behind every section ──
   Dark bands let a little of it through; the hero keeps its own, so it stays solid. */
.backdrop{ position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; }
main, .foot{ position:relative; z-index:1; }
.night{ background:color-mix(in srgb, var(--band) 86%, transparent); }
.hero.night{ background:var(--band); }
@media (prefers-reduced-motion: reduce){ .backdrop{ opacity:.6; } }
