/* sygnoses.com - THE TRADING FLOOR (direction C, production).
   House tokens, single accent, no libraries. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #101014;
  --bg2: #16161c;
  --bg3: #1c1c24;
  --line: #24242e;
  --tx: #e8e8ec;
  --tx2: #9b9ba6;
  --acc: #e5484d;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --max: 1220px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--tx);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--acc); color: #fff; }
p { color: var(--tx2); max-width: 60ch; }
a { color: inherit; }

/* ---------- drifting perspective grid backdrop ---------- */
.grid-bg {
  position: fixed; inset: -20% -10%; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.5;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
}
@media (prefers-reduced-motion: no-preference) {
  .grid-bg { animation: drift 34s linear infinite; }
  @keyframes drift { to { background-position: 64px 64px; } }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 9;
  display: flex; justify-content: space-between; align-items: center;
  height: 62px; padding: 0 26px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.mark { display: inline-flex; align-items: center; text-decoration: none; }
.marklogo { display: block; height: 34px; width: auto; }
.mark:hover .marklogo { filter: drop-shadow(0 0 10px rgba(222, 15, 63, 0.55)); }
.mark span { color: var(--tx); margin-left: 10px; letter-spacing: 0.22em; font-size: 13px; }
.nav nav { display: flex; gap: 26px; align-items: center; }
.nav nav a { font-size: 14.5px; color: var(--tx2); text-decoration: none; transition: color 0.25s var(--ease); }
.nav nav a:hover { color: var(--tx); }
.navcta { border: 1px solid var(--acc); border-radius: 999px; padding: 8px 20px; color: var(--tx) !important; transition: background 0.25s var(--ease); }
.navcta:hover { background: var(--acc); }

/* ---------- ticker (the one marquee) ---------- */
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg2); white-space: nowrap; }
.tk { display: inline-block; padding: 9px 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--tx2); }
.tk b { color: var(--tx); font-weight: 600; }
.tk em { font-style: normal; color: var(--acc); }
.tk span { margin: 0 28px; }
@media (prefers-reduced-motion: no-preference) {
  .tk { animation: tick 38s linear infinite; }
  @keyframes tick { to { transform: translateX(-50%); } }
}

main { max-width: var(--max); margin: 0 auto; padding: 0 26px; }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100dvh - 110px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 0 90px; position: relative;
}
.hero h1 {
  /* capped against HEIGHT too: a scaled FHD laptop gives ~680px of viewport,
     and width-only sizing let the headline eat the whole screen (Faisal, 30-Aug) */
  font-size: clamp(2.4rem, min(6.2vw, 8.4dvh), 5.2rem); line-height: 0.99;
  letter-spacing: -0.03em; font-weight: 700; max-width: 18ch;
}
.hero h1 .l2 { color: var(--acc); display: block; }
.hero h1 .l2::after { content: "_"; animation: caret 1.1s steps(2) infinite; font-weight: 300; }
@keyframes caret { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .l2::after { content: none; } }
.hsub { margin: 30px 0 38px; font-size: 1.15rem; }
.btn {
  display: inline-block; background: var(--acc); color: #fff; font-weight: 700;
  font-size: 16px; padding: 15px 34px; border-radius: 999px; text-decoration: none;
  margin-right: 14px; box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.5);
  transition: box-shadow 0.4s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { box-shadow: 0 0 34px 2px rgba(229, 72, 77, 0.35); }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--tx); }
.btn.ghost:hover { border-color: var(--tx2); }
.heromark { position: absolute; right: 0; bottom: 60px; text-align: right; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--tx2); }
.heromark b { display: block; font-size: clamp(2.4rem, 5.6vw, 4rem); color: var(--tx); letter-spacing: 0; line-height: 1.05; }
.heromark i { font-style: normal; color: var(--acc); }

/* ---------- acts ---------- */
.act {
  min-height: 86dvh; display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 60px; align-items: center; border-top: 1px solid var(--line); padding: 70px 0;
}
.act .no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: var(--acc); font-weight: 600; display: block; margin-bottom: 16px; }
.act h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 20px; }
.act p { font-size: 1.1rem; }
.act.rev .stage { order: -1; }

.stage {
  position: relative; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 13px;
}
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 75% 12%, rgba(229, 72, 77, 0.09), transparent 55%);
}
.kcap { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--tx2); text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--acc); }
.ldot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
@media (prefers-reduced-motion: no-preference) {
  .ldot { animation: blink 1.6s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: 0.25; } }
}
.bigkpi { font-family: var(--mono); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; }
.bigkpi i { font-style: normal; font-size: 0.42em; color: var(--tx2); }
.meter { height: 8px; border-radius: 4px; background: var(--bg3); overflow: hidden; }
.meter b { display: block; height: 100%; background: var(--acc); border-radius: 4px; width: var(--w); }
@media (prefers-reduced-motion: no-preference) {
  .inview .meter b { width: 0; animation: mfill 1.2s var(--ease) forwards; animation-delay: calc(0.3s + var(--i, 0) * 0.15s); }
  @keyframes mfill { to { width: var(--w); } }
}
.srow { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--tx2); letter-spacing: 0.08em; }
.srow b { color: var(--tx); }
.srow em { font-style: normal; color: var(--acc); font-weight: 600; }

.stage svg { width: 100%; height: auto; }
.cg { stroke: var(--line); stroke-width: 1; }
.ct { font-family: var(--mono); font-size: 10px; fill: var(--tx2); }
.ca { fill: var(--acc); font-weight: 600; }
.cline { fill: none; stroke-width: 2; stroke-linejoin: round; }
.cline-a { stroke: var(--acc); }
.cline-b { stroke: #3f3f4a; }
.cdot { fill: var(--acc); }
.cping { fill: none; stroke: var(--acc); stroke-width: 1.5; }
.carea { fill: rgba(229, 72, 77, 0.06); stroke: none; }
.cband { fill: rgba(229, 72, 77, 0.07); }
.cbandt { fill: rgba(229, 72, 77, 0.75); letter-spacing: 0.12em; }
@media (prefers-reduced-motion: no-preference) {
  .inview .cline-a { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) 0.3s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .cping { animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite; transform-origin: center; transform-box: fill-box; }
  @keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
}

/* register rows (act 03) */
.reg { border-top: 1px solid var(--line); }
.regrow { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--bg3); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--tx2); align-items: center; }
.regrow b { color: var(--tx); }
.regrow .ok { color: var(--acc); font-weight: 600; }

/* ---------- pipeline band ---------- */
.engine { border-top: 1px solid var(--line); padding: 96px 0; }
.engine h2 { font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.engine h2 i { font-style: normal; color: var(--acc); }
.engine > p { font-size: 1.12rem; max-width: 58ch; }
.pipe { margin: 44px 0 10px; overflow-x: auto; }
.pipe svg { min-width: 900px; width: 100%; height: auto; }
.pn { fill: var(--bg2); stroke: var(--line); }
.pnb { stroke: var(--tx2); }
.png { stroke: var(--acc); }
.pns { fill: rgba(229, 72, 77, 0.08); stroke: var(--acc); }
.pt { font-family: var(--mono); font-size: 11px; fill: var(--tx); letter-spacing: 0.08em; }
.ptb { font-weight: 600; }
.ptg, .ptsg { fill: var(--acc); font-weight: 600; }
.pts { font-family: var(--mono); font-size: 8.5px; fill: var(--tx2); letter-spacing: 0.08em; }
.flow { fill: none; stroke: var(--line); stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .flow { stroke-dasharray: 6 8; animation: flowdash 1.2s linear infinite; animation-delay: var(--fd, 0s); stroke: #4a4a56; }
  @keyframes flowdash { to { stroke-dashoffset: -14; } }
  .png { animation: gatepulse 2.4s ease-in-out infinite; }
  @keyframes gatepulse { 50% { stroke-opacity: 0.45; } }
}
.built { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--acc); margin-top: 24px; }

/* ---------- roles ---------- */
.roles { border-top: 1px solid var(--line); padding: 96px 0; }
.roles h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.025em; margin-bottom: 40px; }
.rolegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.role {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 28px 26px; text-decoration: none; overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.4s var(--ease);
}
.role:hover { transform: translateY(-4px); border-color: var(--acc); box-shadow: 0 14px 44px -18px rgba(229, 72, 77, 0.45); }
.role::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 0%, rgba(229, 72, 77, 0.10), transparent 50%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.role:hover::before { opacity: 1; }
.rn { position: absolute; top: 18px; right: 22px; font-family: var(--mono); font-size: 12px; color: var(--tx2); }
.rl { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; color: var(--acc); font-weight: 600; }
.rt { font-size: 1.15rem; font-weight: 500; color: var(--tx); max-width: 34ch; }
.ra { color: var(--tx2); transition: transform 0.25s var(--ease), color 0.25s var(--ease); margin-top: 6px; }
.role:hover .ra { transform: translateX(5px); color: var(--acc); }

/* ---------- trust vault ---------- */
.trust { border-top: 1px solid var(--line); padding: 100px 0; text-align: center; }
.trust h2 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); letter-spacing: -0.03em; max-width: 20ch; margin: 0 auto 44px; }
.trust h2 em { font-style: normal; color: var(--acc); }
.pillrow { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 22px;
  color: var(--tx2); text-transform: uppercase;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.pill:hover { border-color: var(--acc); color: var(--tx); }
.docrow { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.doc {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 26px; text-align: left; min-width: 280px; position: relative;
}
.doc::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: var(--acc); border-radius: 2px; }
.doc b { display: block; font-size: 1rem; margin-bottom: 4px; }
.doc span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--tx2); text-transform: uppercase; }
.trust .note { margin: 36px auto 0; font-size: 0.98rem; }

/* ---------- proof ---------- */
.proof { border-top: 1px solid var(--line); padding: 92px 0; }
.proof .who { margin-bottom: 8px; font-size: 1.06rem; }
.peerstrip { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx2); margin-bottom: 38px; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.nums > div { border-left: 1px solid var(--line); padding-left: 20px; }
.nums b { font-family: var(--mono); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); display: block; }
.nums span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--tx2); text-transform: uppercase; }

/* ---------- cta / footer ---------- */
.cta { border-top: 1px solid var(--line); text-align: center; padding: 120px 0; }
.cta h2 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -0.03em; margin-bottom: 38px; }
.mail { font-family: var(--mono); font-size: 14px; margin: 20px auto 0; }
footer:not(.bigfoot) {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 24px 26px 42px;
  border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--tx2);
}
.wallnote { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx2); display: block; margin-top: 10px; }

/* ---------- reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .rv.in { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.p404 .hero { min-height: 80dvh; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .act { grid-template-columns: 1fr; min-height: auto; gap: 28px; padding: 54px 0; }
  .act.rev .stage { order: 0; }
  .heromark { position: static; text-align: left; margin-top: 44px; }
  .rolegrid { grid-template-columns: 1fr; }
  .nums { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .nav nav { gap: 16px; }
  .nav nav a:not(.navcta) { display: none; }
  .hero { min-height: auto; padding: 48px 0 64px; }
  .engine, .roles, .trust, .proof { padding: 60px 0; }
}

/* ============ layered scenes: depth without clutter ============ */
.scene { position: relative; padding: 0 26px 56px 0; }
.scene .stage { position: relative; z-index: 1; }
.float {
  position: absolute; z-index: 2;
  background: var(--bg3); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 18px 48px -14px rgba(0, 0, 0, 0.65), 0 4px 14px rgba(0, 0, 0, 0.4);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.float:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -16px rgba(0, 0, 0, 0.75), 0 0 26px -6px rgba(229, 72, 77, 0.25); }
.f-tr { top: -22px; right: 0; }
.f-bl { bottom: 8px; left: -14px; }
.fk { font-family: var(--mono); font-weight: 600; font-size: 1.75rem; line-height: 1; color: var(--tx); }
.fk i { font-style: normal; font-size: 0.6em; color: var(--tx2); }
.fl2 { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--tx2); text-transform: uppercase; }
.float svg { width: 118px; height: auto; }
.float .spk { stroke-width: 2.4; }
.chip {
  flex-direction: row; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em;
  color: var(--tx); text-transform: uppercase; padding: 11px 16px;
  border-color: color-mix(in srgb, var(--acc) 40%, var(--line));
  background: color-mix(in srgb, var(--acc) 8%, var(--bg3));
}
.chdot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex: 0 0 auto; }
@media (prefers-reduced-motion: no-preference) {
  .chdot { animation: blink 1.6s ease-in-out infinite; }
  .float { opacity: 0; transform: translateY(18px); }
  .inview ~ .float, .scene:has(.inview) .float {
    animation: floatin 0.7s var(--ease) forwards;
  }
  .scene:has(.inview) .f-tr { animation-delay: 0.55s; }
  .scene:has(.inview) .f-bl { animation-delay: 0.8s; }
  @keyframes floatin { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .float { opacity: 1; } }

.fdonut { padding: 12px; }
.fdonut svg { width: 116px; }
.dnum { font-family: var(--mono); font-size: 21px; font-weight: 600; fill: var(--tx); }
.dcap { font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; fill: var(--tx2); }
@media (prefers-reduced-motion: no-preference) {
  .scene:has(.inview) .darc { opacity: 0; animation: dshow 1s var(--ease) 0.7s forwards; }
  @keyframes dshow { from { opacity: 0; transform: rotate(-30deg); transform-origin: center; transform-box: fill-box; } to { opacity: 1; transform: rotate(0); } }
}
.fwater { padding: 14px 16px 10px; }
.fwater svg { width: 220px; }
.wseg { fill: var(--acc); opacity: 0.85; }
.wtot { fill: #3f3f4a; }
.wlab { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; fill: var(--tx2); }
.wlink { stroke: var(--line); stroke-dasharray: 3 3; }
@media (prefers-reduced-motion: no-preference) {
  .scene:has(.inview) .wseg, .scene:has(.inview) .wtot {
    transform: scaleY(0); transform-origin: bottom; transform-box: fill-box;
    animation: wgrow 0.7s var(--ease) forwards; animation-delay: calc(0.5s + var(--i, 0) * 0.09s);
  }
  @keyframes wgrow { to { transform: scaleY(1); } }
}

/* wallnote inside scene sits under everything */
.scene .wallnote { position: absolute; bottom: 4px; right: 26px; margin: 0; max-width: 52%; text-align: right; }

/* hero depth: faint oversized chart line behind the headline */
.hero::before {
  content: ""; position: absolute; right: -6%; top: 8%; width: 58%; height: 80%;
  background:
    radial-gradient(circle at 70% 30%, rgba(229, 72, 77, 0.07), transparent 60%);
  pointer-events: none; z-index: -1;
}

@media (max-width: 900px) {
  .scene { padding: 0 0 10px 0; }
  .float { position: static; margin-top: 12px; box-shadow: none; opacity: 1 !important; transform: none !important; animation: none !important; }
  .f-tr, .f-bl { top: auto; right: auto; bottom: auto; left: auto; }
  .scene .wallnote { position: static; display: block; margin-top: 10px; }
}

/* ============ v3 IMPRESSIVE PASS ============ */
/* the hero scene canvas */
.hero { min-height: calc(100dvh - 110px); }
#scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  mask-image: linear-gradient(180deg, black 55%, transparent 96%);
  -webkit-mask-image: linear-gradient(180deg, black 55%, transparent 96%);
}
.hero h1 { font-size: clamp(2.4rem, min(6.6vw, 8.8dvh), 5.6rem); text-shadow: 0 4px 40px rgba(16,16,20,0.85); }
.hsub { font-size: 1.2rem; text-shadow: 0 2px 18px rgba(16,16,20,0.9); }

/* film grain over everything, fixed, cheap */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

/* FIG labels: the spec-document voice */
.fig {
  position: absolute; top: -11px; left: 22px; z-index: 3;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--acc); background: var(--bg); border: 1px solid var(--line);
  border-radius: 4px; padding: 3px 10px;
}
.pipe { position: relative; padding-top: 14px; }
.pipe .fig { top: 3px; left: 0; }

/* glass + gradient-edge stages */
.stage {
  background: color-mix(in srgb, var(--bg2) 82%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
  background-clip: padding-box;
}
.stage::after {
  content: ""; position: absolute; inset: -1px; border-radius: 17px; z-index: -1;
  background: linear-gradient(160deg, rgba(229,72,77,0.26), rgba(229,72,77,0.04) 30%, rgba(255,255,255,0.04) 60%, rgba(229,72,77,0.12));
}
.float { backdrop-filter: blur(8px); background: color-mix(in srgb, var(--bg3) 86%, transparent); }

/* section headings glow softly on arrival */
@media (prefers-reduced-motion: no-preference) {
  .rv.in { text-shadow: 0 0 34px rgba(229,72,77,0.0); }
  h2.rv.in { animation: hglow 1.4s var(--ease); }
  @keyframes hglow { 30% { text-shadow: 0 0 34px rgba(229,72,77,0.35); } 100% { text-shadow: none; } }
}

/* trust doc cards: tilt on hover */
.doc { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.doc:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 20px 50px -18px rgba(0,0,0,0.7); }

@media (max-width: 900px) {
  #scene { opacity: 0.55; }
}

/* ============ inner pages ============ */
.phero { padding: 84px 0 46px; max-width: 880px; }
.phero h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.02; letter-spacing: -0.03em; margin: 14px 0 20px; }
.phero .hsub { margin: 0; }
.pscene { padding: 30px 0 50px; max-width: 860px; }
.ptgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 30px 0; }
.ptgrid.two { max-width: 980px; }
.pt2 { background: color-mix(in srgb, var(--bg2) 82%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
.pt2 h3 { font-size: 1.06rem; margin-bottom: 8px; }
.pt2 p { font-size: 0.97rem; }
.pt2.dim { opacity: 0.75; }
.pt2.lit { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
.closer { padding: 26px 0 60px; }
.closer .fh { display: block; margin-bottom: 14px; }
.contactbig { text-align: center; padding: 40px 0 80px; }
.prose { max-width: 720px; padding: 8px 0 30px; }
.prose p { margin-bottom: 18px; font-size: 1.06rem; }
.prose h2 { font-size: 1.5rem; margin: 30px 0 12px; letter-spacing: -0.02em; }
.article p { color: #b9b9c3; }
.clientline { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx2); margin: -18px 0 30px; }
.clientline a, .note a { color: var(--acc); }
.rolegrid.caps { grid-template-columns: repeat(3, 1fr); }
.rolegrid.one { grid-template-columns: 1fr; }
.role.wide { flex-direction: row; align-items: baseline; gap: 20px; }
.role.wide .rt { flex: 1; }
.stepflow { list-style: none; max-width: 860px; padding: 20px 0 30px; }
.sysrow { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.stepname { font-size: 1.35rem; font-weight: 700; }
.pillrow.left { justify-content: flex-start; }
.pill.plink { text-decoration: none; }
.pill.plink:hover { background: color-mix(in srgb, var(--acc) 12%, transparent); }
.teamgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 34px 0 40px; }
.tcard { background: color-mix(in srgb, var(--bg2) 82%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
.tcard h3 { margin: 8px 0 8px; font-size: 1.15rem; }
.tcard p { font-size: 0.93rem; }
.proof.case { border-top: none; padding: 12px 0 26px; }
.pfeedlike .fl { font-family: var(--mono); font-size: 11.5px; color: var(--tx2); padding: 5px 0; border-top: 1px solid var(--bg3); }
.pfeedlike .fl:first-child { border-top: none; }
.fwater.big svg { width: 100%; max-width: 460px; }
body.sub .phero { position: relative; }

/* big footer */
.bigfoot { border-top: 1px solid var(--line); margin-top: 20px; }
.fcols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; max-width: var(--max); margin: 0 auto; padding: 48px 26px 30px; }
.fcols a { display: block; font-size: 14px; color: var(--tx2); text-decoration: none; padding: 4px 0; }
.fcols a:hover { color: var(--tx); }
.fh { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--acc); text-transform: uppercase; display: block; margin-bottom: 10px; }
.ftag { margin: 12px 0 6px; font-size: 0.95rem; }
.fmail { font-family: var(--mono); font-size: 12px; }
.fbase { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; padding: 18px 26px 40px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--tx2); }

@media (max-width: 900px) {
  .ptgrid, .rolegrid.caps, .teamgrid { grid-template-columns: 1fr; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .sysrow { grid-template-columns: 1fr; gap: 6px; }
}

/* ============ six-act structure ============ */
/* scroll affordance at hero bottom (user-directed) */
.scrolldown {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-decoration: none; opacity: 0.85; transition: opacity 0.3s var(--ease);
}
.scrolldown:hover { opacity: 1; }
.sd-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; color: var(--tx2); }
.scrolldown:hover .sd-label { color: var(--acc); }
.sd-line { width: 1px; height: 34px; background: linear-gradient(180deg, transparent, var(--acc)); }
.sd-chev { width: 10px; height: 10px; border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(45deg); margin-top: -7px; }
@media (prefers-reduced-motion: no-preference) {
  .sd-chev, .sd-line { animation: sdpulse 2s var(--ease) infinite; }
  @keyframes sdpulse { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: 1; } 50% { transform: translateY(5px) rotate(45deg); opacity: 0.55; } }
  .sd-line { animation: sdline 2s var(--ease) infinite; }
  @keyframes sdline { 50% { opacity: 0.5; } }
}

/* the act rail: vertical marker + spine node on the far left */
.hasrail { position: relative; }
.rail {
  position: absolute; left: -46px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px;
}
.rail i {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--mono); font-style: normal; font-size: 10px;
  letter-spacing: 0.3em; color: var(--tx2); white-space: nowrap;
}
.rail::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 12px rgba(229, 72, 77, 0.6);
  order: 2;
}
.rail::after {
  content: ""; position: absolute; left: 50%; top: -34dvh; bottom: -34dvh;
  width: 1px; background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  z-index: -1;
}
.no.center { display: block; text-align: center; }

/* evidence chips under act copy */
.evrow { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.ev {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px;
  color: var(--tx2); background: color-mix(in srgb, var(--bg2) 70%, transparent);
}

@media (max-width: 1330px) { .rail { display: none; } }
@media (max-width: 900px) { .scrolldown { position: static; transform: none; margin-top: 40px; } }

/* ============ the giant act numeral + next-act line ============ */
.actid { position: relative; display: block; margin-bottom: 6px; line-height: 1; }
.an {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(6rem, 13vw, 11rem); line-height: 0.9; display: block;
  color: transparent; -webkit-text-stroke: 1.5px #33333f;
  letter-spacing: -0.04em; user-select: none;
}
.aname {
  position: absolute; left: 6px; bottom: 14px;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  letter-spacing: 0.34em; color: var(--acc); text-transform: uppercase;
  background: var(--bg); padding: 4px 10px 4px 6px;
}
.adots { display: flex; gap: 7px; margin-top: 14px; }
.adots i { width: 6px; height: 6px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--line); }
.adots i.on { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 10px rgba(229,72,77,0.6); }
.actid.center { text-align: center; }
.actid.center .aname { left: 50%; transform: translateX(-50%); }
.actid.center .adots { justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .rv.in .an, .in .an { animation: anpop 0.9s var(--ease); }
  @keyframes anpop { from { opacity: 0; transform: translateY(20px); } }
}

.nextact {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  grid-column: 1 / -1; margin-top: 34px; padding: 18px 0 6px;
  text-decoration: none; font-family: var(--mono);
  border-top: 1px dashed var(--line);
  transition: gap 0.3s var(--ease);
}
.nextact span:first-child { font-size: 10px; letter-spacing: 0.3em; color: var(--tx2); }
.nextact b { font-size: 12px; letter-spacing: 0.2em; color: var(--tx); font-weight: 600; }
.nextact .nchev {
  width: 9px; height: 9px; border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc);
  transform: rotate(45deg); flex: 0 0 auto;
}
.nextact:hover { gap: 22px; }
.nextact:hover b { color: var(--acc); }
@media (prefers-reduced-motion: no-preference) {
  .nextact .nchev { animation: sdpulse 2s var(--ease) infinite; }
}

/* the acts now open with the numeral; tighten act padding */
.act h2 { margin-top: 4px; }
.engine .actid, .roles .actid { margin-bottom: 10px; }


/* short-viewport fit: scaled laptops (FHD at 125-150%) */
@media (max-height: 800px) and (min-width: 901px) {
  .hero { padding: 24px 0 64px; }
  .hsub { margin: 22px 0 28px; font-size: 1.08rem; }
  .heromark { bottom: 46px; }
  .heromark b { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
  .scrolldown { bottom: 8px; }
  .an { font-size: clamp(5rem, 11vw, 8.5rem); }
  .act { min-height: auto; }
}

/* ============ breadcrumbs + sibling circulation ============ */
.no .cr { color: var(--tx2); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.no .cr:hover { color: var(--acc); border-color: var(--acc); }
.crsep { color: var(--tx2); }
.sibrow { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 4px 0 26px; }
.nextact.inpage { flex: 1; justify-content: flex-start; margin-top: 0; border-top: 1px dashed var(--line); padding-top: 18px; }
.nchev.side { transform: rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) {
  .nextact.inpage .nchev { animation: sidepulse 2s var(--ease) infinite; }
  @keyframes sidepulse { 0%, 100% { transform: translateX(0) rotate(-45deg); opacity: 1; } 50% { transform: translateX(5px) rotate(-45deg); opacity: 0.55; } }
}
.alllink { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--tx2); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.alllink:hover { border-color: var(--acc); color: var(--tx); }
@media (max-width: 900px) { .sibrow { flex-direction: column; align-items: stretch; } .alllink { text-align: center; } }
