/* nowill-orbit — futuristic sister. Michroma HUD type, chrome-and-teal, space blacks. */

:root {
  --bg: #04060b;
  --ink: #eaf4f6;
  --ink-dim: rgba(234, 244, 246, 0.62);
  --teal: #0fb5ba;
  --teal-bright: #46e6e0;
  --teal-glow: rgba(15, 181, 186, 0.38);
  --hair: rgba(234, 244, 246, 0.18);
  --display: 'Michroma', -apple-system, sans-serif;
  --body: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

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

body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

::selection { background: var(--teal); color: #02282a; }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 70;
  padding: 0.7em 1.2em; background: var(--teal); color: #02282a;
  font-family: var(--display); font-size: 0.8rem; text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

.loader {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-content: center; justify-items: center; gap: 0.7rem;
  background: var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-pct { font-family: var(--display); font-size: 1.4rem; color: var(--teal-bright); font-variant-numeric: tabular-nums; }
.loader-note { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim); }

.head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(0.9rem, 2vw, 1.3rem) var(--pad);
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-size: 0.9rem;
}
.head-cta {
  font-family: var(--display); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 0.8em 1.6em; border: 1px solid var(--hair);
  backdrop-filter: blur(10px); background: rgba(4, 6, 11, 0.25);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.head-cta:hover { border-color: var(--teal); color: var(--teal-bright); box-shadow: 0 0 24px var(--teal-glow); }

.rail {
  position: fixed; right: clamp(0.9rem, 2vw, 1.8rem); top: 50%; z-index: 40;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-end;
}
.rail span {
  font-family: var(--display); font-size: 0.5rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(234, 244, 246, 0.35);
  transition: color 0.35s, text-shadow 0.35s;
}
.rail span.is-here { color: var(--teal-bright); text-shadow: 0 0 12px var(--teal-glow); }

.leg { position: relative; height: 340vh; }
.leg:last-of-type { height: 360vh; }
.stage-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; perspective: 1100px;
}
.stage { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform, filter, opacity; }

.film { position: absolute; inset: 0; }
.film video { width: 100%; height: 100%; object-fit: cover; object-position: 50% center; position: relative; opacity: 0; transition: opacity 0.5s ease; display: block; }
.film video.is-ready { opacity: 1; }
.film::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--still); background-size: cover; background-position: 50% center;
}

.tint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,6,11,0.45) 0%, rgba(4,6,11,0.03) 30%,
              rgba(4,6,11,0.03) 58%, rgba(4,6,11,0.62) 100%);
}

.caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 0 var(--pad) clamp(3.2rem, 9vh, 6rem);
  max-width: 58rem;
  opacity: 0; will-change: opacity, transform;
}
.cap-right { left: auto; text-align: right; }
.cap-center {
  left: 50%; right: auto; bottom: auto; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center; width: min(100% - 2 * var(--pad), 56rem); padding: 0;
}
.cap-svc { max-width: 42rem; }

.k {
  font-family: var(--display); font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 1.1rem;
  text-shadow: 0 0 22px var(--teal-glow);
}
.h {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.6rem, 4.4vw, 3.6rem);
  line-height: 1.14; letter-spacing: 0.01em; text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 3px 36px rgba(1, 3, 6, 0.85);
}
.h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.3rem, 3.2vw, 2.5rem);
  line-height: 1.16; text-transform: uppercase; letter-spacing: 0.01em;
  text-shadow: 0 3px 30px rgba(1, 3, 6, 0.85);
}
.s {
  margin-top: 1.2rem;
  font-size: clamp(0.94rem, 1.2vw, 1.06rem);
  color: var(--ink-dim); line-height: 1.7; max-width: 46ch;
  text-shadow: 0 1px 18px rgba(1, 3, 6, 0.9);
}
.cap-center .s { margin-inline: auto; }
.cap-right .s { margin-left: auto; }

.acts { margin-top: 2.2rem; }
.btn {
  display: inline-block;
  font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: #02282a; background: var(--teal);
  text-decoration: none; padding: 1.1em 2.4em;
  transition: background 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
  white-space: nowrap;
}
.btn:hover { background: var(--teal-bright); transform: translateY(-2px); box-shadow: 0 10px 36px var(--teal-glow); }

.foot { position: relative; z-index: 3; padding: 2.8rem var(--pad); text-align: center; font-size: 0.75rem; color: var(--ink-dim); }

.grade {
  position: fixed; inset: 0; z-index: 20; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, rgba(0,0,0,0) 55%, rgba(1, 2, 5, 0.55) 100%),
    linear-gradient(165deg, rgba(15, 181, 186, 0.04), rgba(4, 6, 11, 0) 45%, rgba(6, 18, 24, 0.12) 100%);
}
.grain {
  position: fixed; inset: -100px; z-index: 21; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.66s steps(8) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 12.5% { transform: translate(-28px, 16px); }
  25% { transform: translate(14px, -30px); } 37.5% { transform: translate(-34px, -8px); }
  50% { transform: translate(22px, 26px); } 62.5% { transform: translate(-12px, 34px); }
  75% { transform: translate(30px, -18px); } 87.5% { transform: translate(-20px, -26px); }
  100% { transform: translate(0, 0); }
}

@media (max-width: 760px) {
  .rail { display: none; }
  .leg { height: 280vh; }
  .caption, .cap-right { text-align: left; left: 0; right: 0; }
  .cap-right .s { margin-left: 0; }
  .cap-center { text-align: center; }
}
@media (max-width: 380px) { .h { font-size: 1.45rem; } }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .grain { animation: none; }
  .leg { height: auto; }
  .stage-pin { position: relative; height: auto; min-height: 100vh; overflow: visible; perspective: none; }
  .stage { position: relative; inset: auto; transform: none !important; filter: none !important; opacity: 1 !important; }
  .film { position: absolute; inset: 0; }
  .film video { display: none; }
  .caption, .cap-right, .cap-center, .cap-svc {
    position: relative; left: auto; right: auto; top: auto; bottom: auto;
    opacity: 1 !important; transform: none !important;
    width: auto; max-width: 60rem;
    padding: 3rem var(--pad);
  }
}
