/* ============================================================
   SIGNALABS — design system
   Palette: abyss green-black / bone / emerald / gold
   Type: Cabinet Grotesk (display) · Satoshi (body) · Sentient (accent serif)
   ============================================================ */

:root {
  --bg: #070a08;
  --bg-2: #0b0f0c;
  --ink: #e9e6dd;
  --ink-dim: #8f9188;
  --line: rgba(233, 230, 221, 0.12);
  --emerald: #2f6f4f;
  --emerald-bright: #57b98a;
  --gold: #d8b56a;
  --font-display: "Cabinet Grotesk", "Arial Black", sans-serif;
  --font-body: "Satoshi", "Helvetica Neue", sans-serif;
  --font-serif: "Sentient", Georgia, serif;
  --pad: clamp(20px, 4vw, 64px);
}

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

html { scroll-behavior: initial; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: clip; /* not `hidden` — that creates a scrollport and breaks position:sticky */
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }

::selection { background: var(--gold); color: var(--bg); }

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 300; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  display: flex; align-items: center; justify-content: center;
  mix-blend-mode: normal;
}
.cursor.is-hover { width: 56px; height: 56px; background: rgba(216, 181, 106, 0.15); border: 1px solid var(--gold); }
.cursor.has-label { width: 84px; height: 84px; background: var(--gold); }
.cursor-label {
  font-size: 10px; letter-spacing: 0.14em; font-weight: 700; color: var(--bg);
  opacity: 0; transition: opacity 0.2s;
}
.cursor.has-label .cursor-label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.preloader-inner { text-align: center; }
.preloader-word {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 8vw, 110px); letter-spacing: 0.02em;
  display: flex; overflow: hidden;
}
.preloader-word span { display: inline-block; transform: translateY(110%); }
.preloader-word .thin { color: var(--gold); font-weight: 500; }
.preloader-count {
  margin-top: 18px;
  font-size: 12px; letter-spacing: 0.3em; color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav-logo {
  font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.03em;
}
.nav-logo em { color: var(--gold); font-weight: 300; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid rgba(233, 230, 221, 0.4); border-radius: 100px;
  padding: 12px 24px; overflow: hidden; position: relative;
}
.nav-cta span { position: relative; z-index: 1; transition: color 0.35s; }
.nav-cta::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(101%); transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-cta:hover::before { transform: translateY(0); }
.nav-cta:hover span { color: #000; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 400vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#heroVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
body.is-mobile-hero #heroCanvas { display: none; }
body.is-mobile-hero #heroVideo { display: block; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 8, 0.92) 0%, rgba(7, 10, 8, 0.25) 34%, rgba(7, 10, 8, 0.15) 60%, rgba(7, 10, 8, 0.55) 100%);
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(7, 10, 8, 0.6) 100%);
}

.hero-stage {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) 10vh;
}
.hero-stage-2, .hero-stage-3 {
  justify-content: center; align-items: center; text-align: center;
  opacity: 0; pointer-events: none;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.28em; color: var(--ink);
  margin-bottom: 3vh;
}
.tick { width: 34px; height: 1px; background: var(--gold); display: inline-block; }
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 13.5vw, 220px);
  line-height: 0.94; letter-spacing: 0.01em;
  margin-left: -0.04em;
}
.hero-line { display: inline-flex; overflow: hidden; }
.hero-title .char { display: inline-block; transform: translateY(115%); }
.hero-title .alt { color: var(--gold); font-weight: 500; }
.hero-subrow {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 4vh; gap: 24px;
}
.hero-sub { font-size: clamp(16px, 1.6vw, 22px); line-height: 1.45; color: var(--ink); max-width: 440px; }
.hero-coords { font-size: 11px; letter-spacing: 0.2em; color: var(--ink-dim); text-align: right; line-height: 1.8; }
.hero-statement {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5.6vw, 92px); letter-spacing: 0.01em;
  color: var(--ink);
}
.hero-statement em { color: var(--gold); font-weight: 300; }
.hero-scroll-hint {
  position: absolute; bottom: 10vh; right: var(--pad); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.3em; color: var(--ink-dim);
}
.hero-scroll-track { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll-thumb {
  position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: var(--gold);
  animation: scrollHint 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}
@media (max-width: 860px) {
  .hero-subrow { flex-direction: column; align-items: flex-start; }
  .hero-coords { text-align: left; }
  .hero-scroll-hint { display: none; }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0; overflow: hidden; background: var(--bg);
  position: relative; z-index: 5;
}
.marquee-track {
  display: flex; white-space: nowrap; will-change: transform;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(16px, 2vw, 26px); letter-spacing: 0.14em; color: var(--ink-dim);
}

/* ---------- manifesto ---------- */
.manifesto {
  padding: clamp(120px, 18vh, 220px) var(--pad);
  max-width: 1280px; margin: 0 auto;
}
.manifesto-kicker { font-size: 11px; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 40px; }
.manifesto-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4.4vw, 64px); line-height: 1.18; letter-spacing: 0.005em;
}
.manifesto-text .w { opacity: 0.12; transition: none; }

/* ---------- section head ---------- */
.section-head {
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--pad); margin-bottom: clamp(48px, 8vh, 90px);
}
.section-num { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 15px; color: var(--gold); }
.section-label { font-size: 12px; letter-spacing: 0.3em; color: var(--ink-dim); }
.section-rule { flex: 1; height: 1px; background: var(--line); }

/* ---------- flagship ---------- */
.flagship { padding: clamp(80px, 12vh, 160px) 0; }
.flagship-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 100px);
  padding: 0 var(--pad);
  align-items: center;
}
.flagship-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(56px, 7.5vw, 128px); line-height: 0.98; letter-spacing: 0.005em;
  margin-bottom: 22px;
}
.flagship-title em { color: var(--emerald-bright); }
.reveal-mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.reveal-mask > span { display: inline-block; transform: translateY(110%); }
.flagship-tag {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: clamp(19px, 2vw, 26px); color: var(--gold); margin-bottom: 28px;
}
.flagship-desc { font-size: 16px; line-height: 1.75; color: var(--ink-dim); max-width: 520px; margin-bottom: 40px; }
.flagship-list { list-style: none; margin-bottom: 48px; border-top: 1px solid var(--line); }
.flagship-list li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; letter-spacing: 0.02em;
}
.flagship-list li span { font-family: var(--font-serif); font-style: italic; font-size: 12px; color: var(--gold); }

.flagship-media { position: relative; min-height: clamp(420px, 60vh, 720px); }
.flagship-img-main {
  position: absolute; top: 0; right: 0; width: 82%; height: 78%;
  overflow: hidden; border-radius: 4px;
}
.flagship-img-alt {
  position: absolute; bottom: 0; left: 0; width: 46%; height: 42%;
  overflow: hidden; border-radius: 4px;
  border: 1px solid rgba(233, 230, 221, 0.15);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}
.flagship-img-main img, .flagship-img-alt img { transform: scale(1.15); }
.flagship-chip {
  position: absolute; top: 58%; left: 34%;
  background: rgba(11, 15, 12, 0.72);
  border: 1px solid rgba(233, 230, 221, 0.16);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 14px; padding: 18px 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.chip-row { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: 0.22em; color: var(--ink-dim); margin-bottom: 10px; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 12px var(--emerald-bright); }
.chip-big { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--emerald-bright); }
.chip-big small { font-size: 22px; font-weight: 500; }
.chip-sub { font-size: 11px; color: var(--ink-dim); margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  border: 1px solid rgba(233, 230, 221, 0.35); border-radius: 100px;
  padding: 18px 32px; position: relative; overflow: hidden;
}
.btn span, .btn i { position: relative; z-index: 1; transition: color 0.35s; font-style: normal; }
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: translateY(101%); transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover span, .btn:hover i { color: var(--bg); }
.btn i { transition: transform 0.35s, color 0.35s; }
.btn:hover i { transform: translateX(5px); }
.btn-big { padding: 24px 44px; font-size: 15px; }

@media (max-width: 960px) {
  .flagship-grid { grid-template-columns: 1fr; }
  .flagship-media { min-height: 70vw; }
}

/* ---------- suite (horizontal) ---------- */
.suite { position: relative; }
.suite-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg-2);
}
.suite-head { position: absolute; top: 36px; left: 0; right: 0; margin-bottom: 0; }
.suite-count { font-size: 12px; letter-spacing: 0.2em; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.suite-count b { color: var(--gold); font-weight: 500; }
.suite-track {
  display: flex; gap: clamp(24px, 3vw, 48px);
  padding: 0 var(--pad);
  will-change: transform; width: max-content;
  align-items: center;
}
.app-card {
  width: clamp(300px, 34vw, 480px);
  flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(7, 10, 8, 0.5);
  overflow: hidden;
  transition: border-color 0.4s;
}
.app-card:hover { border-color: var(--card-accent, var(--gold)); }
.app-media { height: clamp(240px, 30vh, 340px); overflow: hidden; }
.app-media img { transform: scale(1.06); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); filter: saturate(0.9); }
.app-card:hover .app-media img { transform: scale(1.01); filter: saturate(1.05); }
.app-body { padding: clamp(20px, 2.4vw, 34px); }
.app-top { display: flex; justify-content: space-between; margin-bottom: 14px; }
.app-index { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--card-accent, var(--gold)); }
.app-domain { font-size: 10px; letter-spacing: 0.26em; color: var(--ink-dim); }
.app-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 3.6vw, 54px); line-height: 1; letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.app-desc { font-size: 14px; line-height: 1.7; color: var(--ink-dim); margin-bottom: 22px; min-height: 4.8em; }
.app-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.app-tags span {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 13px; color: var(--ink-dim);
}

/* ---------- licensing ---------- */
.license { padding: clamp(120px, 16vh, 200px) 0 0; }
.license-intro {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 90px); align-items: end;
  padding: 0 var(--pad); margin-bottom: clamp(48px, 8vh, 90px);
}
.license-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5.6vw, 96px); line-height: 1.02; letter-spacing: 0.005em;
}
.license-title em { color: var(--gold); }
.license-sub { font-size: 16px; line-height: 1.75; color: var(--ink-dim); max-width: 480px; }
.license-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 32px);
  padding: 0 var(--pad);
}
.license-card {
  border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(24px, 2.6vw, 40px);
  background: rgba(11, 15, 12, 0.5);
  transition: border-color 0.4s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.license-card:hover { border-color: var(--gold); transform: translateY(-6px); }
.license-num { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--gold); display: block; margin-bottom: 26px; }
.license-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.2vw, 32px); letter-spacing: 0.01em; margin-bottom: 16px;
}
.license-desc { font-size: 14px; line-height: 1.7; color: var(--ink-dim); margin-bottom: 26px; min-height: 6.8em; }
.license-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.license-tags span {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 13px; color: var(--ink-dim);
}
@media (max-width: 960px) {
  .license-intro { grid-template-columns: 1fr; align-items: start; }
  .license-grid { grid-template-columns: 1fr; }
  .license-desc { min-height: 0; }
}

/* ---------- capabilities ---------- */
.caps { padding: clamp(120px, 16vh, 200px) 0 clamp(60px, 8vh, 100px); }
.caps-list { border-top: 1px solid var(--line); }
.cap-row {
  display: grid; grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(16px, 3vw, 60px); align-items: baseline;
  padding: clamp(28px, 4vh, 44px) var(--pad);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.cap-row::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(216, 181, 106, 0.04);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.cap-row:hover::before { transform: scaleY(1); }
.cap-num { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--gold); position: relative; }
.cap-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3.2vw, 44px); letter-spacing: 0.01em; position: relative;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cap-row:hover .cap-title { transform: translateX(12px); }
.cap-desc { font-size: 15px; line-height: 1.7; color: var(--ink-dim); position: relative; }
@media (max-width: 860px) {
  .cap-row { grid-template-columns: 48px 1fr; }
  .cap-desc { grid-column: 2; }
}

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin: 0;
}
.stat {
  padding: clamp(40px, 7vh, 80px) var(--pad);
  border-right: 1px solid var(--line);
  text-align: left;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 6.5vw, 110px); line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.stat-inf { color: var(--gold); }
.stat-label { font-size: 11px; letter-spacing: 0.24em; color: var(--ink-dim); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- contact ---------- */
.contact {
  position: relative; overflow: hidden;
  padding: clamp(140px, 22vh, 260px) var(--pad);
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact-bg { position: absolute; inset: -12% 0; z-index: 0; opacity: 0.22; }
.contact-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(7,10,8,0.25) 0%, var(--bg) 82%);
}
.contact-inner { position: relative; z-index: 1; }
.contact-kicker { font-size: 11px; letter-spacing: 0.32em; color: var(--gold); margin-bottom: 36px; }
.contact-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(52px, 9vw, 150px); line-height: 0.98; letter-spacing: 0.005em;
  margin-bottom: 34px;
}
.contact-title em { color: var(--gold); }
.contact-sub { font-size: 16px; line-height: 1.7; color: var(--ink-dim); max-width: 520px; margin: 0 auto 52px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(60px, 9vh, 110px) var(--pad) 30px; background: var(--bg-2); }
.footer-top { display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; margin-bottom: 80px; }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4vw, 56px); }
.footer-logo em { color: var(--gold); font-weight: 300; }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 110px); }
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col span { font-size: 10px; letter-spacing: 0.28em; color: var(--ink-dim); margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: var(--ink); opacity: 0.75; transition: opacity 0.3s, transform 0.3s; }
.footer-col a:hover { opacity: 1; transform: translateX(4px); color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 26px;
  font-size: 10px; letter-spacing: 0.22em; color: var(--ink-dim);
}
