/* Brand: black, white, blue (#1877F2). Each product card borrows its app's own palette. */
:root {
  --bg: #050505;
  --ink: #F4F4F2;
  --ink-2: rgba(244, 244, 242, .68);
  --muted: rgba(244, 244, 242, .44);
  --line: rgba(244, 244, 242, .12);
  --blue: #1877F2;
  --blue-2: #4C97FF;

  --display: "Archivo", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--display);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  /* film grain */
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
  animation: grain 1.2s 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); }
}
::selection { background: var(--blue); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.label { color: var(--muted); margin-bottom: 28px; }
.huge {
  font-size: clamp(48px, 9vw, 150px); line-height: .9; letter-spacing: -.045em;
  font-weight: 800; font-variation-settings: "wdth" 112;
}
.huge em { font-weight: 300; font-variation-settings: "wdth" 80; color: var(--blue-2); letter-spacing: -.03em; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .25s;
  opacity: 0;
}
.cursor__label { font: 600 13px/1 var(--mono); text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.cursor.is-label { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--blue); mix-blend-mode: normal; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px var(--gutter);
  mix-blend-mode: difference; color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; font-variation-settings: "wdth" 110; }
.brand img { border-radius: 8px; }
.top__clock { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.top nav { justify-self: end; display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.top nav a { position: relative; }
.top nav a:not(.top__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.top nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.top__cta { padding: 9px 16px; border: 1.5px solid #fff; border-radius: 99px; transition: background .25s, color .25s; }
.top__cta:hover { background: #fff; color: #000; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  padding: 96px var(--gutter) 40px;
  isolation: isolate;
}
#air { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 80%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(24,119,242,.35), transparent 70%);
  filter: blur(20px);
}
.hero__meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.hero__mark {
  align-self: center;
  display: flex; justify-content: space-between;
  /* "AERIS" at full width is ~3.95em wide, so this fills the row edge to edge */
  font-size: calc((100vw - 2 * var(--gutter)) / 4.02); line-height: .8; font-weight: 900; letter-spacing: -.02em;
  user-select: none;
  overflow: hidden; padding: .05em 0 .03em;
}
.hero__mark span {
  display: inline-block;
  font-variation-settings: "wdth" var(--w, 125), "wght" var(--g, 900);
  transition: font-variation-settings .5s var(--ease), color .4s;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
  animation-delay: calc(var(--n) * 70ms + 100ms);
}
.hero__mark span:nth-child(1) { --n: 0; }
.hero__mark span:nth-child(2) { --n: 1; }
.hero__mark span:nth-child(3) { --n: 2; }
.hero__mark span:nth-child(4) { --n: 3; }
.hero__mark span:nth-child(5) { --n: 4; }
.hero__mark span.is-hot { color: var(--blue); }
@keyframes rise { to { transform: translateY(0); } }

.hero__foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.hero__line {
  font-size: clamp(30px, 4.6vw, 68px); line-height: .98; letter-spacing: -.035em;
  font-weight: 700; font-variation-settings: "wdth" 100;
}
.scramble { color: var(--blue-2); font-style: italic; font-weight: 400; font-variation-settings: "wdth" 85; white-space: nowrap; }
.hero__side { display: grid; gap: 22px; justify-items: start; max-width: 420px; justify-self: end; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px; border-radius: 99px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 16px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { color: #000; }
.btn:hover::before { transform: translateY(0); }
.btn i { font-style: normal; transition: transform .45s var(--ease); }
.btn:hover i { transform: translate(3px, -3px) rotate(0deg); }

/* ---------- Tapes ---------- */
.tapes { position: relative; height: 230px; margin: 40px 0 0; overflow: hidden; }
.tape {
  position: absolute; left: -5%; right: -5%; top: 50%;
  padding: 18px 0; overflow: hidden; white-space: nowrap;
  font-size: clamp(26px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase;
  font-variation-settings: "wdth" 118;
}
.tape--blue { background: var(--blue); color: #fff; transform: translateY(-50%) rotate(-4deg); z-index: 2; box-shadow: 0 20px 60px -20px rgba(24,119,242,.7); }
.tape--white { background: var(--ink); color: #000; transform: translateY(-50%) rotate(3deg); font-size: clamp(16px, 1.8vw, 24px); font-weight: 600; font-variation-settings: "wdth" 100; padding: 14px 0; }
.tape__track { display: inline-flex; animation: slide 38s linear infinite; }
.tape__track--rev { animation-direction: reverse; animation-duration: 50s; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: 140px var(--gutter) 120px; }
.manifesto__text {
  max-width: 22ch; font-size: clamp(34px, 5.4vw, 88px); line-height: 1.02; letter-spacing: -.035em;
  font-weight: 700; font-variation-settings: "wdth" 96;
  max-width: 1300px;
}
.manifesto__text .w { opacity: .14; transition: opacity .25s linear; }
.manifesto__text .w.on { opacity: 1; }

/* ---------- Products ---------- */
.products { padding: 40px var(--gutter) 0; }
.products__head { margin-bottom: 72px; }

.cards { display: grid; gap: 40px; padding-bottom: 80px; }
.card {
  --bg-c: #111; --glow: var(--blue); --acc: #fff;
  position: sticky; top: calc(84px + var(--i) * 22px);
  height: min(calc(100svh - 120px), 820px); min-height: 600px;
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 32px; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 90% at 85% 10%, color-mix(in srgb, var(--glow) 38%, transparent), transparent 70%), var(--bg-c);
  border: 1px solid rgba(255,255,255,.08);
  transform-origin: 50% 0;
  will-change: transform;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: #000; opacity: var(--dim, 0); border-radius: inherit;
}
.card--vela    { --bg-c: #0D0A1C; --glow: #6E4FD8; --acc: #C2AEF5; }
.card--sofi    { --bg-c: #150903; --glow: #F26A1F; --acc: #FF9A5A; }
.card--astro   { --bg-c: #2A0C40; --glow: #F5A623; --acc: #FFC24D; }
.card--sanatan { --bg-c: #160C06; --glow: #E8892C; --acc: #FFD08A; }

.card__text { display: grid; gap: 18px; align-content: center; }
.card__top { display: flex; justify-content: space-between; color: var(--acc); opacity: .9; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.card__title { display: grid; justify-items: start; gap: 18px; }
.card__title img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 10px 30px -8px var(--glow); }
.card h3 { font-size: clamp(40px, 4.3vw, 76px); line-height: .9; letter-spacing: -.045em; font-weight: 800; font-variation-settings: "wdth" 100; }
.card__sum { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.25; font-weight: 600; color: var(--acc); letter-spacing: -.01em; }
.card__body { color: var(--ink-2); font-size: 16px; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 0; list-style: none; }
.chips li { padding: 7px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; color: var(--ink-2); font-size: 11px; }
.chip--live { border-color: var(--acc) !important; color: var(--acc) !important; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .45; } }
.btn--card { justify-self: start; margin-top: 6px; background: var(--acc); color: #0A0A0A; }

.card__shot {
  position: relative; display: block; border-radius: 16px; overflow: hidden;
  background: #0B0B0B; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 100px -30px color-mix(in srgb, var(--glow) 70%, transparent), 0 20px 40px -20px rgba(0,0,0,.8);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  will-change: transform;
}
.card__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #161616; border-bottom: 1px solid rgba(255,255,255,.08); }
.card__bar i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.card__bar i:nth-child(1) { background: #FF5F57; } .card__bar i:nth-child(2) { background: #FEBC2E; } .card__bar i:nth-child(3) { background: #28C840; }
.card__bar b { margin-left: 10px; padding: 3px 12px; border-radius: 6px; background: #222; font: 500 11px/1.4 var(--mono); color: var(--muted); }
.card__shot img { width: 100%; transition: transform .8s var(--ease); }
a.card__shot:hover img { transform: scale(1.03); }

.card__shot--soon {
  aspect-ratio: 16 / 11; display: grid; place-items: center; align-content: center; gap: 20px;
  background: radial-gradient(circle at 50% 45%, #3A2010, #160C06 65%);
  color: var(--acc);
}
.card__shot--soon > * { grid-area: 1 / 1; }
.card__shot--soon img { width: 120px; border-radius: 28px; z-index: 2; animation: float 4s ease-in-out infinite; }
.card__shot--soon p { align-self: end; margin-bottom: 24px; color: rgba(255,208,138,.7); }
.ring { width: min(78%, 330px); z-index: 1; animation: spin 22s linear infinite; }
.ring text { fill: var(--acc); font: 500 15px var(--mono); letter-spacing: 3.2px; }
.halo { width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(243,163,58,.55), transparent 65%); animation: pulse 3s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes pulse { 50% { transform: scale(1.25); opacity: .6; } }

/* ---------- Directory ---------- */
.dir { position: relative; padding: 120px var(--gutter); }
.dir__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dir__row {
  position: relative; display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 24px;
  padding: 26px 8px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), padding .5s var(--ease);
}
.dir__row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
a.dir__row:hover { padding-left: 28px; padding-right: 28px; }
a.dir__row:hover::before { transform: scaleY(1); }
.dir__name { font-size: clamp(32px, 5.5vw, 84px); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variation-settings: "wdth" 110; transition: font-variation-settings .5s var(--ease); }
a.dir__row:hover .dir__name { font-variation-settings: "wdth" 125; font-style: italic; }
.dir__what { color: var(--ink-2); }
a.dir__row:hover .dir__what { color: #fff; }
.dir__url { white-space: nowrap; }
.dir__row--soon { color: var(--muted); }
.dir__row--soon .dir__name { -webkit-text-stroke: 1.5px var(--muted); color: transparent; }
.dir__preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 340px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease);
}
.dir__preview.is-on { opacity: 1; transform: scale(1); }
.dir__preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: grid; gap: 14px; padding: 48px var(--gutter); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font-size: clamp(80px, 12vw, 200px); line-height: .8; font-weight: 900; letter-spacing: -.06em; font-variation-settings: "wdth" 125; }
.stat:nth-child(odd) b { color: var(--blue); }
.stat span { color: var(--muted); max-width: 18ch; }

/* ---------- Company ---------- */
.company { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); padding: 140px var(--gutter); align-items: start; }
.company__intro > p:last-child { margin-top: 36px; color: var(--ink-2); max-width: 52ch; font-size: 18px; }
.spec { margin: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.02); position: sticky; top: 100px; }
.spec div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 20px 24px; border-top: 1px solid var(--line); font-size: 13px; text-transform: none; letter-spacing: 0; }
.spec div:first-child { border-top: 0; }
.spec dt { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; padding-top: 2px; }
.spec dd { margin: 0; line-height: 1.6; }
.copy { all: unset; display: inline-flex; gap: 10px; align-items: center; font: inherit; cursor: pointer; }
.copy span { padding: 2px 8px; border-radius: 6px; background: rgba(24,119,242,.2); color: var(--blue-2); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; transition: background .2s; }
.copy:hover span { background: var(--blue); color: #fff; }
.copy.is-done span { background: #3DDC84; color: #000; }

/* ---------- Contact ---------- */
.contact { padding: 60px var(--gutter) 120px; }
.contact__big { font-size: clamp(80px, 17vw, 300px); line-height: .85; letter-spacing: -.06em; font-weight: 900; font-variation-settings: "wdth" 120; }
.contact__big a { display: inline-block; transition: color .4s; }
.contact__big em { font-weight: 200; font-variation-settings: "wdth" 70; color: transparent; -webkit-text-stroke: 2px var(--ink); transition: color .4s, -webkit-text-stroke-color .4s; }
.contact__big a:hover span { color: var(--blue); }
.contact__big a:hover em { color: var(--ink); }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 64px 0 0; }
.contact__grid div { padding-top: 18px; border-top: 1px solid var(--line); }
.contact__grid dt { color: var(--muted); margin-bottom: 8px; }
.contact__grid dd { margin: 0; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.contact__grid a { background: linear-gradient(var(--blue-2), var(--blue-2)) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.contact__grid a:hover { background-size: 100% 1.5px; color: var(--blue-2); }

/* ---------- Footer ---------- */
.foot { padding: 0 var(--gutter) 28px; overflow: hidden; }
.foot__mark {
  font-size: calc((100vw - 2 * var(--gutter)) / 6.35); line-height: .78; font-weight: 900; letter-spacing: -.06em; white-space: nowrap;
  font-variation-settings: "wdth" 125;
  margin: 0 -0.03em 28px;
  background: linear-gradient(180deg, var(--ink) 20%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }
.totop:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .top__clock { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .hero__foot { grid-template-columns: 1fr; gap: 28px; }
  .hero__side { justify-self: start; }
  .card { position: relative; top: auto; height: auto; min-height: 0; grid-template-columns: 1fr; }
  .card::after { display: none; }
  .company { grid-template-columns: 1fr; }
  .spec { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .dir__row { grid-template-columns: 1fr auto; }
  .dir__what { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top nav { gap: 16px; font-size: 14px; }
  .top nav a[href="#products"] { display: none; }
  .top__cta { padding: 7px 13px; }
  .hero { padding-top: 84px; }
  .hero__meta p:nth-child(2) { display: none; }
  .tapes { height: 160px; margin-top: 10px; }
  .manifesto { padding: 90px var(--gutter) 80px; }
  .products__head { margin-bottom: 40px; }
  .cards { gap: 20px; }
  .card { border-radius: 24px; padding: 22px; }
  .card__shot--soon { aspect-ratio: 1; }
  .dir { padding: 80px var(--gutter); }
  .dir__row { padding: 20px 4px; }
  .dir__url { font-size: 10px; }
  .stat { padding: 32px 16px; }
  .company { padding: 90px var(--gutter); }
  .spec div { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__big em { -webkit-text-stroke-width: 1.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__mark span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .manifesto__text .w { opacity: 1; }
}
