/* ==========================================================================
   Srusan — main stylesheet
   Author: Sanjay Sivakumar (github.com/SruSanCyborg)
   ========================================================================== */

:root {
  --bg: #060606;
  --bg-2: #0e0e0d;
  --bg-3: #161615;
  --ink: #f3f1ec;
  --ink-2: #c9c7c1;
  --muted: #7d7c77;
  --line: rgba(243, 241, 236, .12);
  --line-2: rgba(243, 241, 236, .22);
  --red: #ff3b2f;
  --green: #1fb26b;
  --blue: #3d5afe;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1560px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

::selection { background: var(--red); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.red { color: var(--red); }
.muted { color: var(--muted); }

.eyebrow, .section-label, .layer-tag, .cap-num, .row-num, .step-num, .loader-meta, .term-bar span {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-label { display: flex; align-items: center; gap: 14px; color: var(--muted); margin-bottom: clamp(28px, 4vw, 56px); }
.section-label span { color: var(--red); }
.section-label::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--line-2); }

.h2 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: clamp(2.2rem, 5.6vw, 6rem);
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--red);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; }
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: rotate(45deg); }
.btn .gh { width: 20px; height: 20px; }
.btn:hover .gh { transform: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover svg { transform: translateY(3px); }
.btn-sm { --h: 44px; padding: 0 20px; font-size: 14px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-items: center;
}
.no-js .loader, .reduced .loader { display: none; }
.loader-inner { width: min(440px, 70vw); }
.loader-mark { width: 100%; height: auto; overflow: visible; }
.loader-meta { display: flex; justify-content: space-between; margin-top: 32px; color: var(--muted); }
.loader-num { color: var(--ink); font-variant-numeric: tabular-nums; }
.loader-bar { margin-top: 12px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 999; display: none; opacity: 0; }
.has-cursor .cursor { display: block; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--red); }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(243, 241, 236, .4);
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .3s, border-color .3s;
}
.cursor-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--ink); }
.cursor.is-label .cursor-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--ink); border-color: var(--ink); }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-label .cursor-dot { opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }

/* ---------- Grain & progress ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 998; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 4%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(6%, 3%); }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--ink) 70%, var(--green)); transform-origin: left; transform: scaleX(0); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 20px var(--gutter);
  transition: background-color .4s, padding .4s;
}
.header.is-scrolled { background: rgba(6, 6, 6, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 58px; height: auto; color: var(--ink); }
.brand-word { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
.nav { display: flex; gap: 30px; font-size: 14px; }
.nav a { position: relative; overflow: hidden; display: block; height: 1.5em; }
.nav a span { display: block; transition: transform .5s var(--ease-out); }
.nav a span::after { content: attr(data-text); position: absolute; top: 100%; left: 0; color: var(--red); }
.nav a:hover span { transform: translateY(-100%); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; z-index: 2; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu-nav a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 800;
  font-size: clamp(2rem, 9.6vw, 4.5rem); line-height: 1.08; text-transform: uppercase; letter-spacing: -.03em;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.menu-nav em { font-family: var(--f-mono); font-style: normal; font-size: 12px; font-weight: 400; color: var(--red); letter-spacing: 0; }
.menu-foot { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(40px, 7vh, 90px); pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); margin-bottom: clamp(20px, 3vh, 36px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31, 178, 107, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(31, 178, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 178, 107, 0); } }
.hero-title {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  font-size: clamp(2.7rem, 8.6vw, 10.5rem);
  line-height: .9;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.hl { display: block; }
.hl-indent { padding-left: 1.1em; }
.hero-foot { margin-top: clamp(28px, 5vh, 56px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero-sub { max-width: 440px; color: var(--ink-2); font-size: clamp(15px, 1.15vw, 18px); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; z-index: 2; right: var(--gutter); top: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}
.hero-scroll i { width: 1px; height: 60px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ink); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: clamp(18px, 2.4vw, 30px) 0; }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee span {
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 3.2rem); text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap;
  padding: 0 clamp(18px, 2.4vw, 40px);
}
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--ink-2); }
.marquee b { width: clamp(14px, 1.6vw, 22px); aspect-ratio: 1; flex-shrink: 0; background: var(--red); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.marquee b:nth-of-type(3n) { background: var(--green); }

/* ---------- About ---------- */
.about { padding-top: clamp(100px, 16vw, 220px); padding-bottom: clamp(80px, 12vw, 180px); }
.manifesto {
  font-family: var(--f-display); font-variation-settings: "wdth" 100; font-weight: 500;
  font-size: clamp(1.6rem, 3.7vw, 4rem); line-height: 1.12; letter-spacing: -.025em;
  max-width: 22em;
}
.manifesto .word { opacity: .14; }
.about-grid { margin-top: clamp(60px, 9vw, 140px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.about-item { padding: 36px 32px 0 0; }
.about-item + .about-item { padding-left: 32px; border-left: 1px solid var(--line); }
.about-item h3 { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 700; font-size: 22px; text-transform: uppercase; margin-bottom: 14px; }
.about-item h3::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; background: var(--red); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.about-item:nth-child(2) h3::before { background: var(--ink); }
.about-item:nth-child(3) h3::before { background: var(--green); }
.about-item p { color: var(--ink-2); max-width: 34ch; }

/* ---------- Capabilities ---------- */
.caps { position: relative; padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(60px, 8vw, 120px); background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.caps-head { position: relative; margin-bottom: clamp(36px, 5vw, 64px); }
.caps-progress { position: absolute; right: var(--gutter); bottom: 6px; display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.caps-count { color: var(--ink); }
.caps-progress i { width: 120px; height: 1px; background: var(--line-2); }
.caps-progress b { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.caps-track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.cap {
  position: relative;
  width: clamp(320px, 30vw, 440px);
  min-height: clamp(460px, 62vh, 580px);
  padding: 32px;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s;
}
.cap::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 59, 47, .14), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.cap:hover { border-color: var(--line-2); }
.cap:hover::before { opacity: 1; }
.cap-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.cap-num { color: var(--muted); }
.cap-icon { width: 64px; height: 64px; color: var(--ink); transition: color .4s, transform .8s var(--ease-out); }
.cap:hover .cap-icon { color: var(--red); transform: rotate(-8deg) scale(1.08); }
.cap h3 { font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 800; font-size: clamp(1.6rem, 2.1vw, 2.2rem); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; margin: 48px 0 16px; }
.cap p { color: var(--ink-2); font-size: 15px; }
.cap ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cap li { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-2); }
.cap-end { justify-content: center; align-items: flex-start; gap: 28px; background: transparent; border-style: dashed; }
.cap-end-title { font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 800; font-size: clamp(2rem, 3vw, 3rem); line-height: 1; text-transform: uppercase; letter-spacing: -.03em; }

/* ---------- Security ---------- */
.security { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 120px); padding-top: clamp(100px, 14vw, 200px); padding-bottom: clamp(60px, 10vw, 140px); }
.security-visual { position: sticky; top: 12vh; height: 76vh; display: grid; place-items: center; align-self: start; }
.rings { width: 100%; max-width: 560px; overflow: visible; }
.ring { transform-origin: 250px 250px; }
.ring circle { fill: none; stroke: var(--line-2); stroke-width: 1; transition: stroke .5s; }
.ring .ring-arc { stroke: var(--ink); stroke-width: 2; stroke-dasharray: inherit; opacity: .35; transition: stroke .5s, opacity .5s; }
.ring text { font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; fill: var(--muted); transition: fill .5s; }
.ring.is-active circle { stroke: rgba(255, 59, 47, .45); }
.ring.is-active .ring-arc { stroke: var(--red); opacity: 1; }
.ring.is-active text { fill: var(--ink); }
.ring-2.is-active .ring-arc { stroke: var(--ink); }
.ring-3.is-active .ring-arc { stroke: var(--green); }
.ring-3.is-active circle { stroke: rgba(31, 178, 107, .5); }
.security-copy .h2 { margin-bottom: clamp(40px, 8vh, 100px); }
.layer { min-height: 52vh; padding: 36px 0; border-top: 1px solid var(--line); opacity: .3; transition: opacity .6s; }
.layer.is-active { opacity: 1; }
.layer-tag { color: var(--red); }
.layer[data-layer="2"] .layer-tag { color: var(--green); }
.layer h3 { font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 800; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; text-transform: uppercase; letter-spacing: -.03em; margin: 16px 0 18px; }
.layer p { color: var(--ink-2); max-width: 46ch; font-size: clamp(15px, 1.2vw, 18px); }

/* ---------- Approach ---------- */
.approach { padding-top: clamp(80px, 10vw, 160px); padding-bottom: clamp(80px, 12vw, 180px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px); }
.approach-head { position: sticky; top: 18vh; align-self: start; }
.steps { position: relative; counter-reset: s; }
.step { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 36px 0; border-top: 1px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step-num { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 56px; line-height: .9; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--muted); }
.step h3 { font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 700; font-size: clamp(1.4rem, 2vw, 2rem); text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 10px; }
.step p { color: var(--ink-2); max-width: 48ch; }

/* ---------- Open source ---------- */
.oss { background: var(--ink); color: var(--bg); padding: clamp(80px, 12vw, 180px) 0; border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0; }
.oss .section-label { color: #6d6c67; }
.oss .section-label::after { background: rgba(6, 6, 6, .2); }
.oss-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.oss-copy p { margin: 28px 0 36px; max-width: 46ch; color: #3a3a37; font-size: clamp(15px, 1.2vw, 18px); }
.oss .btn { background: var(--bg); color: var(--ink); }
.terminal { background: #0b0b0a; color: var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a28; }
.term-bar i:nth-child(1) { background: var(--red); }
.term-bar i:nth-child(3) { background: var(--green); }
.term-bar span { margin-left: auto; font-size: 11px; }
.term-body { margin: 0; padding: 24px; min-height: 320px; font-family: var(--f-mono); font-size: clamp(12px, 1vw, 14px); line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.term-body .t-p { color: var(--green); }
.term-body .t-c { color: var(--muted); }
.term-body .t-r { color: var(--red); }
.term-caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: text-bottom; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.oss-feature { display: grid; gap: 10px; margin-top: 28px; padding: 26px; border-radius: 10px; background: var(--bg); color: var(--ink); max-width: 480px; transition: transform .6s var(--ease-out); }
.oss-feature:hover { transform: translateY(-4px); }
.oss-feature-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.oss-feature-name { width: max-content; font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 40px; line-height: 1; text-transform: uppercase; letter-spacing: -.03em; background: linear-gradient(90deg, #1fb26b, #22c3e6 38%, #3d5afe 70%, #7c4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oss-feature-desc { color: var(--ink-2); font-size: 15px; }
.oss-feature-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-weight: 600; font-size: 14px; }
.oss-feature-go svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.oss-feature:hover .oss-feature-go svg { transform: rotate(45deg); }

/* ---------- Frontier ---------- */
.frontier { position: relative; padding-top: clamp(100px, 14vw, 200px); padding-bottom: clamp(60px, 8vw, 120px); }
.frontier-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: clamp(40px, 6vw, 80px); }
.frontier-head .section-label { grid-column: 1 / -1; margin-bottom: 0; }
.frontier-note { max-width: 36ch; color: var(--ink-2); }
.row {
  position: relative;
  display: grid; grid-template-columns: 90px 1fr 1fr 40px; align-items: center; gap: 24px;
  padding: clamp(22px, 2.6vw, 38px) 0;
  border-top: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); }
.row:hover::before { transform: scaleY(1); }
.row > * { transition: color .4s, transform .6s var(--ease-out); }
.row:hover > * { color: var(--bg); }
.row:hover .row-title { transform: translateX(16px); }
.row-num { color: var(--muted); }
.row-title { font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 3.6rem); line-height: 1; text-transform: uppercase; letter-spacing: -.03em; }
.row-desc { color: var(--ink-2); }
.row-arrow { width: 28px; height: 28px; justify-self: end; }
.row:hover .row-arrow { transform: rotate(45deg); color: var(--red); }
.row-glyph-m { display: none; }
.glyph-follow {
  position: fixed; top: 0; left: 0; z-index: 50; width: 220px; height: 220px; margin: -110px 0 0 -110px;
  pointer-events: none; color: var(--red); opacity: 0; transform: scale(.6);
  mix-blend-mode: normal;
}
.glyph-follow svg { width: 100%; height: 100%; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: clamp(100px, 14vw, 200px); }
.principle { padding: 36px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); }
.principle-icon { width: 40px; height: 40px; color: var(--red); margin-bottom: 48px; }
.principle:nth-child(3) .principle-icon { color: var(--green); }
.principle h3 { font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 700; font-size: 22px; text-transform: uppercase; margin-bottom: 10px; }
.principle p { color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { padding: clamp(100px, 12vw, 180px) 0; border-top: 1px solid var(--line); background: radial-gradient(1200px 600px at 85% 0%, rgba(255, 59, 47, .08), transparent 60%), var(--bg); }
.contact-title {
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 800;
  font-size: clamp(2.8rem, 9.6vw, 12rem); line-height: .86; letter-spacing: -.05em; text-transform: uppercase;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 120px); margin-top: clamp(60px, 8vw, 120px); }
.contact-info p { color: var(--ink-2); max-width: 40ch; font-size: clamp(15px, 1.2vw, 18px); }
.contact-mail {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 40px;
  font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.6rem); letter-spacing: -.02em;
  position: relative;
}
.contact-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.contact-mail:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-mail svg { width: .8em; height: .8em; transition: transform .5s var(--ease-out); }
.contact-mail:hover svg { transform: rotate(45deg); color: var(--red); }
.contact-gh { display: flex; width: max-content; align-items: center; gap: 10px; margin-top: 28px; color: var(--ink-2); font-family: var(--f-mono); font-size: 13px; }
.contact-gh svg { width: 20px; height: 20px; }
.contact-gh:hover { color: var(--ink); }
.contact-gh + .contact-gh { margin-top: 12px; }

.form { display: grid; gap: 8px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 28px 0 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  color: var(--ink); font: inherit; font-size: 17px; outline: none; resize: vertical; border-radius: 0;
  transition: border-color .3s;
}
.field textarea { min-height: 120px; }
.field label { position: absolute; left: 0; top: 28px; color: var(--muted); pointer-events: none; transition: transform .4s var(--ease-out), color .3s; transform-origin: left; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(.78); color: var(--ink-2); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.chips { border: 0; padding: 24px 0 8px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 14px; transition: background-color .3s, color .3s, border-color .3s; cursor: pointer; }
.chips span:hover { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.form-status { font-size: 14px; color: var(--ink-2); }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.form.is-sending .btn { opacity: .6; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { padding: clamp(60px, 8vw, 100px) 0 32px; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand img { width: 110px; height: auto; }
.footer-brand p { margin-top: 20px; max-width: 32ch; color: var(--muted); font-size: 14px; }
.footer-cols { display: flex; gap: clamp(40px, 7vw, 120px); flex-wrap: wrap; }
.footer-cols h4 { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-cols a { display: block; color: var(--ink-2); font-size: 15px; padding: 4px 0; transition: color .3s, transform .4s var(--ease-out); }
.footer-cols a:hover { color: var(--ink); transform: translateX(4px); }
.footer-word {
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 900;
  font-size: 17.6vw; line-height: .8; letter-spacing: -.06em; text-align: center; white-space: nowrap;
  margin: clamp(60px, 8vw, 120px) calc(var(--gutter) * -1) 24px;
  color: var(--ink);
  -webkit-mask-image: linear-gradient(180deg, #000 25%, rgba(0, 0, 0, .06));
  mask-image: linear-gradient(180deg, #000 25%, rgba(0, 0, 0, .06));
  user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; }
.footer-bottom a:hover { color: var(--ink); border-color: var(--red); }
.to-top { width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; transition: background-color .3s, color .3s; }
.to-top svg { width: 18px; height: 18px; transform: rotate(180deg); }
.to-top:hover { background: var(--ink); color: var(--bg); }

@media (min-width: 1024px) {
  .caps { height: 100vh; min-height: 640px; display: flex; flex-direction: column; justify-content: center; padding: 90px 0 40px; }
  .caps .h2 { font-size: clamp(2rem, 4.2vw, 4.8rem); }
  .caps .section-label { margin-bottom: 24px; }
  .caps-head { margin-bottom: clamp(24px, 3.5vh, 48px); }
  .cap { min-height: clamp(380px, 54vh, 540px); }
  .cap h3 { margin-top: clamp(24px, 4vh, 48px); }
}


/* ---------- AI Governance ---------- */
.gov { padding: clamp(100px, 12vw, 180px) 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gov-head { max-width: 980px; }
.gov-lead { margin-top: 28px; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 20px); max-width: 58ch; }
.gov-cycle { margin: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); }
.gov-svg { width: 100%; height: auto; overflow: visible; }
.gov-line { stroke: var(--red); stroke-width: 1.5; fill: none; }
.gov-node circle { fill: var(--bg-2); stroke: var(--ink); stroke-width: 1.5; }
.gov-node text { fill: var(--ink); font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 700; font-size: 17px; text-transform: uppercase; text-anchor: middle; }
.gov-step { fill: var(--muted); font-family: var(--f-mono); font-size: 12px; text-anchor: middle; }
.gov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gov-card { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); transition: border-color .4s, transform .6s var(--ease-out); }
.gov-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.gov-n { font-family: var(--f-mono); font-size: 12px; color: var(--red); }
.gov-card h3 { font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 800; font-size: clamp(1.3rem, 1.7vw, 1.7rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.02em; margin: 40px 0 14px; }
.gov-card p { color: var(--ink-2); font-size: 15px; }
.gov-card ul { margin-top: auto; padding-top: 24px; display: grid; gap: 8px; }
.gov-card li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.gov-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--green); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.gov-frameworks { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.gov-fw-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gov-fw { display: flex; flex-wrap: wrap; gap: 8px; }
.gov-fw span { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 100px; font-size: 14px; color: var(--ink); }
.cap-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cap-link svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.cap-link:hover svg { transform: rotate(45deg); color: var(--red); }
@media (max-width: 1100px) { .gov-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .gov-grid { grid-template-columns: 1fr; }
  .gov-cycle { overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .gov-svg { width: 760px; max-width: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-scroll { display: none; }
  .caps-progress { display: none; }
  .caps-track { flex-direction: column; width: 100%; }
  .cap { width: 100%; min-height: 0; }
  .cap h3 { margin-top: 40px; }
  .cap-end { padding: 40px 32px; }
  .security { grid-template-columns: 1fr; }
  .security-visual { position: relative; top: 0; height: auto; max-width: 420px; margin: 0 auto; width: 100%; }
  .security-copy { order: -1; }
  .layer { min-height: 0; opacity: 1; }
  .approach { grid-template-columns: 1fr; }
  .approach-head { position: static; }
  .oss-inner { grid-template-columns: 1fr; }
  .frontier-head { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-item, .about-item + .about-item { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .row-num { grid-column: 1 / -1; }
  .row-desc { grid-column: 1; font-size: 14px; }
  .row-arrow { grid-row: 2; grid-column: 2; }
  .row-glyph-m { display: block; position: absolute; right: -20px; top: 50%; width: 120px; height: 120px; margin-top: -60px; color: var(--line-2); z-index: -1; }
  .glyph-follow { display: none; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step-num { font-size: 40px; }
  .hero-ctas .btn { --h: 52px; }
  .brand-word { display: none; }
  .term-body { min-height: 260px; padding: 18px; }
  .footer-word { font-size: 17vw; }
  .hero-title { font-size: 9.4vw; font-variation-settings: "wdth" 108; }
  .hl-indent { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .manifesto .word { opacity: 1; }
  .grain { animation: none; }
}
