/* ==========================================================================
   Asymmetric Technology — coming soon
   Visual language taken from the brand film: near-black, a maroon bloom,
   satin crimson, wide geometric caps, slanted cuts from the "A" mark.
   ========================================================================== */

:root {
  --bg: #050103;
  --ink: #f4eef0;
  --ink-2: #cbbcc0;
  --muted: #8d787d;
  --red: #d6213f;
  --red-hot: #ff4f66;
  --red-deep: #7d0a20;
  --line: rgba(214, 33, 63, .4);
  --hair: rgba(255, 255, 255, .08);
  --glass: rgba(12, 3, 6, .66);

  --font-display: "Syncopate", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --slant: 12px;
}

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

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  /* Shown only if WebGL is unavailable; the canvas covers it otherwise. */
  background:
    radial-gradient(ellipse 55% 45% at 50% 32%, rgba(120, 6, 28, .45), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

::selection { background: var(--red); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.no-webgl #scene { display: none; }

main, .footer { position: relative; z-index: 3; }
main { overflow-x: clip; }
.wrap { max-width: var(--maxw); margin: 0 auto; }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */

.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--bg);
  transition: opacity .8s ease, visibility .8s;
}
.is-loaded .loader { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 64px;
  height: 56px;
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .45; } }
.loader-bar { width: 140px; height: 1px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.loader-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red-hot));
  transform-origin: left;
  transform: scaleX(0);
}
.loader-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Header + rail (appear once the intro has played)
   -------------------------------------------------------------------------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 4.2vw, 64px);
  background: linear-gradient(to bottom, rgba(5, 1, 3, .8), transparent);
  transition: opacity 1s ease, transform 1s var(--ease);
}
.js:not(.intro-done) .topbar { opacity: 0; transform: translateY(-12px); pointer-events: none; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 30px; height: 26px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .3em;
}

.topnav { display: flex; gap: 38px; }
.topnav a {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color .25s ease;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.topnav a:hover { color: #fff; }
.topnav a:hover::after { transform: scaleX(1); transform-origin: left; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.status i, .live i, .footer-ok i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 0 0 rgba(255, 79, 102, .6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { to { box-shadow: 0 0 0 9px rgba(255, 79, 102, 0); } }

.rail {
  position: fixed;
  right: clamp(22px, 2.4vw, 38px);
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: opacity 1s ease;
}
.js:not(.intro-done) .rail { opacity: 0; pointer-events: none; }
.rail a {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail a span { position: relative; padding-right: 26px; transition: color .3s ease; }
.rail a span::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 14px; height: 1px;
  background: currentColor;
  transition: width .35s var(--ease), background .3s ease;
}
.rail a em {
  font-style: normal;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .3s ease, transform .3s var(--ease);
}
.rail a:hover em { opacity: 1; transform: none; }
.rail a.active span { color: var(--red-hot); }
.rail a.active span::after { width: 22px; background: var(--red-hot); }

/* --------------------------------------------------------------------------
   Shared type + buttons
   -------------------------------------------------------------------------- */

.label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red-hot);
}

.display {
  margin: 18px 0 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(25px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(5, 1, 3, .9);
}
.display em {
  font-style: normal;
  background: linear-gradient(100deg, #ff4a62 0%, #d6213f 60%, #a3102c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(16px, 1.25vw, 18.5px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-2);
  text-shadow: 0 1px 18px rgba(5, 1, 3, .95);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s ease, transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 16px; }
.cta-left { justify-content: flex-start; margin-top: 36px; }

/* Slanted like the ends of the mark's crossbar */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 30px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: color .3s ease, background .3s ease;
}
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff; }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(110deg, #e8304d 0%, #c4112f 60%, #8d0a24 100%);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .3) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .22); }
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: rgba(8, 2, 4, .9);
  clip-path: polygon(calc(var(--slant) - .5px) 0, 100% 0, calc(100% - var(--slant) + .5px) 100%, 0 100%);
  transition: background .3s ease;
}
.btn-ghost:hover { background: var(--red); }
.btn-ghost:hover::before { background: rgba(40, 4, 12, .9); }

/* --------------------------------------------------------------------------
   Hero — the film's end card
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 51vh var(--gutter) 120px;
  padding-top: 51svh;
  text-align: center;
}
.hero-card { display: flex; flex-direction: column; align-items: center; }

.lockup { margin: 0; display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.lockup-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 4.3vw, 58px);
  line-height: 1;
  letter-spacing: .26em;
  margin-right: -.26em;
  color: #f3edef;
  text-shadow: 0 2px 30px rgba(5, 1, 3, .8);
}
/* The film's E has a notched spine */
.notch {
  display: inline-block;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 21% 50%);
}
.lockup-sub {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  margin-top: 1.1em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(10px, 1.05vw, 14px);
  letter-spacing: .62em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--red);
}
.lockup-sub span { margin-right: -.62em; }
.lockup-sub i { width: clamp(36px, 9vw, 150px); height: 1px; background: linear-gradient(90deg, transparent, var(--red)); }
.lockup-sub i:last-child { transform: scaleX(-1); }

.badge {
  position: relative;
  isolation: isolate;
  margin: clamp(26px, 4vh, 38px) 0 0;
  padding: 9px 30px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--red), rgba(214, 33, 63, .35));
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: rgba(10, 2, 5, .88);
  clip-path: polygon(9.5px 0, 100% 0, calc(100% - 9.5px) 100%, 0 100%);
}
.badge span { margin-right: -.5em; }

.tagline {
  margin: 18px 0 32px;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 300;
  color: var(--ink-2);
  text-shadow: 0 1px 16px rgba(5, 1, 3, .95);
}

/* Hero reveal choreography, triggered when the mark has formed */
.js .hero-card > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s ease, transform 1.3s var(--ease), letter-spacing 1.6s var(--ease), filter 1.4s ease;
}
.js .lockup-word { letter-spacing: .5em; filter: blur(8px); }
.intro-done .hero-card > * { opacity: 1; transform: none; }
.intro-done .lockup-word { letter-spacing: .26em; filter: none; }
.intro-done .hero-card > :nth-child(2) { transition-delay: .35s; }
.intro-done .hero-card > :nth-child(3) { transition-delay: .5s; }
.intro-done .hero-card > :nth-child(4) { transition-delay: .65s; }

.skip {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s ease, opacity .6s ease;
}
.skip:hover { color: var(--ink); }
.skip { display: none; }
.js .skip { display: block; }
.intro-done .skip { opacity: 0; pointer-events: none; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 1px;
  height: 46px;
  transform: translateX(-50%);
  transition: opacity 1s ease 1s;
}
.js:not(.intro-done) .scroll-cue { opacity: 0; pointer-events: none; }
.scroll-cue i { position: absolute; inset: 0; background: rgba(214, 33, 63, .22); overflow: hidden; }
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 16px;
  background: var(--red-hot);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { from { transform: translateY(-16px); } to { transform: translateY(48px); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  min-height: 100vh;
  padding: clamp(110px, 16vh, 180px) var(--gutter);
  display: flex;
  align-items: center;
}
.section > .wrap { width: 100%; }

.thesis::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 1, 3, .85) 0%, rgba(5, 1, 3, .5) 42%, transparent 66%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.thesis-copy { position: relative; max-width: 620px; }

.principles { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.principles li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.principles .pi { font-family: var(--font-mono); font-size: 11px; color: var(--red-hot); padding-top: 3px; }
.principles b { display: block; font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.principles p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; font-weight: 300; line-height: 1.65; }

.capabilities { flex-direction: column; justify-content: center; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 6vh, 64px); }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(18, 4, 8, .82), rgba(7, 1, 3, .74));
  border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color .4s ease, transform .5s var(--ease), opacity 1s ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 1px;
  background: linear-gradient(90deg, var(--red-hot), transparent);
  transition: width .5s var(--ease);
}
.card:hover { border-color: rgba(214, 33, 63, .35); }
.card:hover::before { width: 100%; }
.js .card.is-in:hover { transform: translateY(-4px); }

.card-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-idx { color: var(--red-hot); }
.card-icon { width: 42px; height: 42px; margin: 30px 0 22px; color: var(--red-hot); }
.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: .01em; }
.card p { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.65; color: var(--ink-2); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 22px 0 0; }
.tags li {
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--hair);
}

.arrival-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}
.arrival-copy { position: relative; }
.arrival-copy::before {
  content: "";
  position: absolute;
  inset: -60px -80px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 1, 3, .75), transparent);
}
.mail {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease;
}
.mail:hover { color: #fff; border-color: var(--red-hot); }

.panel {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.panel::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px;
  width: 64px; height: 1px;
  background: linear-gradient(90deg, var(--red-hot), transparent);
}

.seq { padding: 26px 26px 22px; font-family: var(--font-mono); }
.seq-head {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hair);
}
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--red-hot); }
.seq ol { list-style: none; margin: 0; padding: 8px 0; }
.seq li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-2);
  border-bottom: 1px dashed rgba(255, 255, 255, .06);
}
.seq li span::before { content: "○"; margin-right: 10px; color: var(--muted); }
.seq li b { font-weight: 500; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.seq li.done span::before { content: "●"; color: var(--red); }
.seq li.done b { color: var(--ink-2); }
.seq li.active span::before { content: "◐"; color: var(--red-hot); }
.seq li.active b { color: var(--red-hot); animation: blinkSoft 1.6s ease-in-out infinite; }
@keyframes blinkSoft { 50% { opacity: .55; } }
.seq-bar { position: relative; height: 2px; margin: 18px 0 14px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.seq-bar i { position: absolute; inset: 0 auto 0 0; width: 62%; background: linear-gradient(90deg, var(--red-deep), var(--red-hot)); }
.seq-bar i::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: sweep 2.4s ease-in-out infinite;
}
@keyframes sweep { from { left: -40px; } to { left: 100%; } }
.seq-foot { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.redacted { color: var(--ink-2); background: rgba(214, 33, 63, .18); padding: 1px 8px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { padding: 0 var(--gutter); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-brand svg { width: 22px; height: 19px; }
.footer-mid { color: var(--ink-2); }
.footer-ok { display: inline-flex; align-items: center; gap: 8px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { display: none; }
}

@media (max-width: 900px) {
  .arrival-grid { grid-template-columns: 1fr; }
  .seq { max-width: 460px; }
  .thesis::before { background: rgba(5, 1, 3, .55); }
}

@media (max-width: 760px) {
  .topbar { padding: 16px 20px; }
  .topnav { display: none; }
  .brand-name { font-size: 10.5px; }
  .status { font-size: 9.5px; letter-spacing: .16em; }
  .cards { grid-template-columns: 1fr; }
  .card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 2, 5, .86); }
  .section { min-height: auto; padding-top: 96px; padding-bottom: 96px; }
  .thesis, .arrival { min-height: 92vh; }
  .hero { padding-top: 47vh; padding-top: 47svh; padding-bottom: 100px; }
  .lockup-word { letter-spacing: .2em; margin-right: -.2em; }
  .intro-done .lockup-word { letter-spacing: .2em; }
  .btn { padding: 0 22px; font-size: 11.5px; }
  .arrival-copy::before { inset: -40px -16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue i::after, .seq-bar i::after, .loader-mark { animation: none; }
  .js [data-reveal], .js .hero-card > * { transform: none; transition: opacity .6s ease; }
  .js .lockup-word { filter: none; letter-spacing: .26em; }
}
