/* ==========================================================================
   Novaton — launch page
   ========================================================================== */
:root {
  --bg: #030407;
  --fg: #f4f6fb;
  --mute: #858e9f;
  --line: rgba(255, 255, 255, .08);
  --cyan: #4ce6ff;
  --magenta: #ff52be;
  --violet: #8c68ff;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(1.25rem, 5vw, 5rem);
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
}

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

html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; height: 100vh; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -4rem; left: 1rem; z-index: 200; background: var(--fg); color: #000; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* ---------- WebGL + grain ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.no-webgl #gl { display: none; }
.no-webgl body {
  background:
    radial-gradient(60vmax 60vmax at 70% 30%, rgba(122, 92, 255, .28), transparent 60%),
    radial-gradient(50vmax 50vmax at 20% 80%, rgba(61, 232, 255, .18), transparent 60%),
    var(--bg);
}

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--pad);
}
.pl__top { display: flex; justify-content: space-between; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.pl__count { font-family: var(--f-display); font-weight: 500; line-height: .8; letter-spacing: -.06em; font-size: clamp(8rem, 28vw, 26rem); display: flex; align-items: flex-start; font-variant-numeric: tabular-nums; }
.pl__count small { font-size: .18em; letter-spacing: 0; margin: .5em 0 0 .15em; color: var(--cyan); }
.pl__bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.pl__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--cyan), var(--magenta)); transform-origin: left; transform: scaleX(0); }
.no-gsap .preloader { display: none; }
.no-gsap body { overflow: auto; height: auto; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor input { cursor: none; }
.cursor__ring, .cursor__dot { position: fixed; top: 0; left: 0; z-index: 110; pointer-events: none; width: 0; height: 0; }
.cursor__ring span {
  display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%;
  transition: transform .5s var(--ease), background .3s, border-color .3s;
}
.cursor__ring em { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .2s; color: #000; font-weight: 500; }
.cursor__dot span { display: block; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.cursor.is-hover .cursor__ring span { transform: scale(1.7); background: rgba(255, 255, 255, .92); border-color: transparent; mix-blend-mode: difference; }
.cursor.is-text .cursor__ring span { transform: scale(.5); }
.cursor.is-hover .cursor__dot span { transform: scale(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem var(--pad);
  background: rgba(3, 4, 8, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav__logo { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; }
.nav__logo-img { display: block; border-radius: 8px; filter: drop-shadow(0 2px 8px rgba(0, 245, 212, .25)); transition: transform .4s var(--ease); }
.nav__logo:hover .nav__logo-img { transform: scale(1.08) rotate(3deg); }
.nav__logo-text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .08em;
  display: flex;
  align-items: baseline;
  gap: .4rem;
  color: #ffffff;
}
.nav__logo-text small {
  font-size: .62rem;
  letter-spacing: .24em;
  font-weight: 600;
  color: var(--cyan);
}
.nav__links { display: flex; gap: 2.2rem; font-size: .9rem; font-weight: 400; color: #a2abbd; }
.nav__links a:hover { color: #ffffff; }
.nav__links a { position: relative; color: var(--mute); transition: color .3s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem; border-radius: 999px; font: 500 .9rem/1 var(--f-body);
  border: 1px solid var(--line); color: var(--fg); background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .35s, color .35s, border-color .35s; white-space: nowrap;
}
.btn:hover { background: var(--fg); color: #000; border-color: var(--fg); }
.btn--solid { background: var(--fg); color: #000; border-color: var(--fg); }
.btn--solid:hover { background: var(--cyan); border-color: var(--cyan); }

/* ---------- Layout ---------- */
main, .foot { position: relative; z-index: 2; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--pad) 3.5rem; position: relative;
  pointer-events: none;
}
.hero > * { pointer-events: auto; }
.hero__top { position: absolute; top: 6rem; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.tag { display: inline-flex; align-items: center; gap: .6rem; color: var(--fg); }
.tag--quiet { color: var(--mute); letter-spacing: .14em; font-size: .75rem; }
.tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

.hero__title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(3.4rem, 12.5vw, 12rem); line-height: .9; letter-spacing: -.055em;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  text-shadow: 0 2px 40px rgba(5, 6, 11, .45);
}
.hero__title em { font-weight: 700; }

/* kinetic characters (built by main.js) */
.w { display: inline-block; white-space: nowrap; }
.c-o { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin-bottom: -.12em; }
.c { display: inline-block; will-change: transform; }
.c.is-grad { color: color-mix(in oklab, var(--cyan), var(--magenta) calc(var(--p, 0) * 100%)); }

.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; flex-wrap: wrap; }
.hero__copy { max-width: 42rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; color: #c3c9d8; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; align-items: center; }
.count__lbl { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

.cue { position: absolute; left: 50%; bottom: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); transform: translateX(-50%); }
.cue i { width: 1px; height: 36px; background: linear-gradient(var(--fg), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(5, 6, 11, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 1.6rem 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -.04em; white-space: nowrap; text-transform: uppercase; }
.marquee__group .o { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); }
.marquee__group i { font-size: .4em; color: var(--cyan); font-style: normal; }

/* ---------- Manifesto ---------- */
.manifesto {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--pad);
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, rgba(3,4,8,0) 0%, rgba(3,4,8,0.85) 25%, rgba(3,4,8,0.85) 75%, rgba(3,4,8,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.manifesto__text { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.8rem, 4.4vw, 4.2rem); line-height: 1.12; letter-spacing: -.035em; max-width: min(100%, 1100px); color: #ffffff; }
.mf-w { display: inline-block; margin-right: .25em; }

/* ---------- Capabilities ---------- */
.work {
  padding: 8rem var(--pad);
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, rgba(3,4,8,0) 0%, rgba(3,4,8,0.92) 15%, rgba(3,4,8,0.94) 85%, rgba(3,4,8,0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.work__head { margin-bottom: 4rem; }
.sec-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 5.5vw, 5rem); line-height: 1; letter-spacing: -.045em; color: #ffffff; }
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative; display: grid; grid-template-columns: 4rem 1fr minmax(0, 24rem) 3rem; align-items: center; gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.4rem) 0; border-bottom: 1px solid var(--line); outline-offset: -2px;
  transition: opacity .4s, background-color .3s;
}
.row__n { font-size: .85rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.row__t { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 4.2vw, 3.8rem); letter-spacing: -.04em; line-height: 1; color: #ffffff; transition: transform .6s var(--ease), color .4s; }
.row__d { color: #b0b8c8; font-size: 1rem; line-height: 1.5; transition: color .4s; }
.row__a { font-size: 1.6rem; justify-self: end; color: #b0b8c8; transition: transform .5s var(--ease), color .3s; }
@media (hover: hover) {
  .rows:hover .row:not(:hover) { opacity: .4; }
  .row:hover { background-color: rgba(255, 255, 255, 0.02); }
  .row:hover .row__t { transform: translateX(1.5rem); color: var(--cyan); }
  .row:hover .row__a { transform: translate(.4rem, -.4rem) rotate(0); color: var(--cyan); }
  .row:hover .row__d { color: #ffffff; }
}
.row:focus-visible .row__t { transform: translateX(1.5rem); color: var(--cyan); }

.peek { display: none !important; }

/* ---------- Footer ---------- */
.foot {
  padding: 10rem var(--pad) 2.5rem;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, rgba(3,4,8,0) 0%, rgba(3,4,8,0.95) 20%, #030408 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.foot__big {
  display: inline-block; align-self: flex-start;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.8rem, 9.5vw, 9rem); line-height: .94; letter-spacing: -.055em;
  margin-top: 3rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  color: #ffffff;
  text-shadow: 0 4px 50px rgba(0, 0, 0, .85);
}
.foot__big em { font-weight: 700; }
.foot__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2.5rem; padding-block: 2.5rem; border-top: 1px solid var(--line);
}
.foot__grid h4 {
  font-size: .75rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem;
}
.foot__grid p { color: #e1e6f0; font-size: 1rem; line-height: 1.6; }
.foot__grid a { color: #ffffff; border-bottom: 1px solid rgba(255,255,255,0.3); transition: border-color .3s, color .3s; }
.foot__grid a:hover { color: var(--cyan); border-color: var(--cyan); }
.foot__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .85rem; color: #858e9f; }
.foot__base a:hover { color: #ffffff; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .hero__top { top: 4.8rem; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .row { grid-template-columns: 2.5rem 1fr 2rem; }
  .row__d { grid-column: 2 / 3; grid-row: 2; }
  .row__a { grid-row: 1; grid-column: 3; }
  .cue { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .tag__dot, .cue i { animation: none; }
  * { transition-duration: .01ms !important; }
}
