/* ==========================================================================
   NOVA CORPORATE — black & white, Helvetica Neue, built in code
   ========================================================================== */

:root {
  --bg: #0e0e0e;
  --fg: #f5f5f3;
  --white: #ffffff;
  --mute: #9a9a97;
  --dim: #3a3a39;
  --line: rgba(255, 255, 255, 0.12);
  --sans: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--white); color: var(--bg); }
:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.sr-focusable:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; clip-path: none; z-index: 30; background: var(--white); color: var(--bg); padding: 8px 14px; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* film grain over everything */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ================================================================ INTRO */
.intro { display: none; }
.js .intro {
  display: block;
  position: fixed; inset: 0;
  z-index: 50;
  background: var(--bg);
  transition: opacity 0.9s ease;
  -webkit-user-select: none; user-select: none;
  touch-action: none;
}
.no-intro .intro, .intro[hidden] { display: none !important; }
.js:not(.is-site) body { overflow: hidden; height: 100vh; height: 100svh; }
.intro-out .intro { opacity: 0; pointer-events: none; }

.intro-eye { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-fx {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 50% 47%, transparent 52%, rgba(0, 0, 0, 0.72) 100%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 3px);
}
.eye-hover .intro { cursor: pointer; }

.subtitle {
  position: absolute;
  left: 50%; bottom: max(5vh, 30px);
  transform: translateX(-50%);
  width: min(92vw, 640px); height: 1.5em;
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-shadow: 0 0 14px #000, 0 0 3px #000;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.sub-line {
  position: absolute; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.sub-line.is-on { opacity: 1; }
.sub-word {
  display: inline-block;
  opacity: 0; filter: blur(5px); transform: translateY(3px);
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}
.sub-word.is-on { opacity: 1; filter: none; transform: none; }
.sub-prompt { transition-delay: 0.4s; }
.sub-prompt.is-on { animation: breathe 2.8s ease-in-out 0.9s infinite; }
.sub-prompt::before, .sub-prompt::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 22px; height: 1px; margin: 0 14px; background: currentColor; opacity: 0.5;
}
.prompt-nudge .sub-prompt { animation: nudge 0.5s ease, breathe 2.8s ease-in-out 0.5s infinite; }
.intro-entering .subtitle { opacity: 0; }

@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes nudge {
  0%, 100% { transform: none; }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* =============================================================== CURSOR */
.cursor { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor .cursor {
  display: block;
  position: fixed; left: 0; top: 0;
  z-index: 100;
  pointer-events: none;
  mix-blend-mode: difference;
}
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--white); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid var(--white); opacity: 0.55;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), opacity 0.35s;
}
.cursor.is-hot .cursor-ring, .eye-hover .cursor-ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; opacity: 1; }
.has-cursor .cursor { transition: opacity 0.6s ease; }
.intro-entering:not(.intro-out) .cursor { opacity: 0; }

/* ================================================================= NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--pad);
  color: var(--white);
  border-bottom: 1px solid transparent;
  opacity: 0; transform: translateY(-12px);
  transition: opacity 1s var(--ease) 0.9s, transform 1s var(--ease) 0.9s, background-color 0.5s, border-color 0.5s, padding 0.5s var(--ease);
}
.is-site .nav { opacity: 1; transform: none; }
.nav.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background-color: rgba(14, 14, 14, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
          backdrop-filter: blur(16px) saturate(120%);
  border-bottom-color: var(--line);
}
.nav-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; justify-self: start; }
.nav-mark { width: 26px; height: auto; fill: var(--white); }
.nav-links { display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: 13px; font-weight: 500; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-clock { justify-self: end; display: inline-flex; align-items: center; gap: 10px; }
.pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: pulse 2s ease-in-out infinite; vertical-align: middle; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* =============================================================== HERO */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 120px var(--pad) 36px;
  overflow: hidden;
}
.hero-grid { position: absolute; inset: 0 var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; }
.hero-grid i { border-left: 1px solid var(--line); opacity: 0; transition: opacity 2s ease 0.4s; }
.hero-grid i:last-child { border-right: 1px solid var(--line); position: absolute; right: 0; top: 0; bottom: 0; width: 0; }
.is-site .hero-grid i { opacity: 0.55; }
.hero-mark {
  position: absolute;
  top: 12vh; right: var(--pad);
  width: min(36vw, 560px); aspect-ratio: 392 / 300;
  pointer-events: auto;
}
.hero-kicker { position: relative; z-index: 1; }
.hero-kicker span, .label span { color: var(--mute); margin-right: 10px; }
.hero-title {
  position: relative; z-index: 1;
  align-self: end;
  font-size: clamp(40px, 13.6vw, 240px);
  font-weight: 700;
  line-height: 0.83;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  margin: 0 0 0 -0.05em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.line > span { display: block; transform: translateY(108%); transition: transform 1.3s var(--ease); }
.is-site .hero .line > span { transform: none; }
.hero .line:nth-child(2) > span { transition-delay: 0.12s; }
.hero-foot {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 32px; align-items: end;
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-lede { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.4; color: #c9c9c6; max-width: 34ch; }
.hero-stats { display: flex; gap: clamp(20px, 3vw, 48px); }
.hero-stats dt { color: var(--mute); margin-bottom: 6px; }
.hero-stats dd { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero-scroll i { position: relative; width: 1px; height: 40px; background: var(--line); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--white); animation: drop 2s var(--ease) infinite; }
@keyframes drop { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* reveal helpers */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.is-site .hero .reveal { opacity: 1; transform: none; transition-delay: 0.55s; }
.is-site .hero .hero-stats { transition-delay: 0.7s; }
.is-site .hero .hero-scroll { transition-delay: 0.85s; }
.lines-in .line > span { transform: none; }
.lines-in .line:nth-child(2) > span { transition-delay: 0.1s; }

.label { margin-bottom: 28px; }

/* ============================================================= VISION */
.vision { padding: 24vh var(--pad) 22vh; }
.vision-text {
  font-size: clamp(34px, 5.4vw, 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 19ch;
}
.vision-text .w { color: var(--dim); transition: color 0.4s ease; }
.vision-text .w.on { color: var(--fg); }

/* ============================================================ SECTIONS */
.section-head {
  display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; gap: 24px;
  padding: 0 var(--pad) 44px;
}
.section-head .label { margin: 0 0 0.6em; }
.h2 { font-size: clamp(48px, 8.4vw, 140px); font-weight: 700; line-height: 0.86; letter-spacing: -0.05em; text-transform: uppercase; }
.section-note { justify-self: end; color: var(--mute); margin-bottom: 0.6em; }

/* ============================================================ VENTURES */
.ventures { padding-bottom: 18vh; }
.vlist { list-style: none; border-top: 1px solid var(--line); }
.v { border-bottom: 1px solid var(--line); }
.js .v.reveal { transform: translateY(40px); }
.v-link {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid;
  grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 0.75fr) minmax(0, 1.5fr) auto;
  gap: 28px; align-items: start;
  padding: 38px var(--pad);
  transition: color 0.5s var(--ease);
}
.v-link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--white);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
a.v-link:hover, a.v-link:focus-visible { color: var(--bg); }
a.v-link:hover::before, a.v-link:focus-visible::before { transform: scaleY(1); }
.v-idx { padding-top: 0.6em; color: var(--mute); transition: color 0.5s; }
.v-name { font-size: clamp(40px, 5.2vw, 88px); font-weight: 700; line-height: 0.88; letter-spacing: -0.05em; text-transform: uppercase; }
.v-tags { padding-top: 0.6em; }
.v-body { display: flex; flex-direction: column; gap: 14px; padding-top: 0.2em; }
.v-desc { font-size: 16px; line-height: 1.5; color: #c9c9c6; max-width: 46ch; transition: color 0.5s; }
.v-feat { color: var(--mute); line-height: 1.8; transition: color 0.5s; }
.v-go { padding-top: 0.6em; white-space: nowrap; justify-self: end; }
.v-go b { display: inline-block; margin-left: 8px; font-weight: 400; transition: transform 0.5s var(--ease); }
a.v-link:hover .v-go b { transform: translate(4px, -4px); }
a.v-link:hover .v-idx, a.v-link:hover .v-desc, a.v-link:hover .v-feat { color: #3d3d3c; }
.v--locked .v-name { color: var(--dim); }
.v--locked .v-link::before {
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 9px);
  transform: scaleY(1); opacity: 0; transition: opacity 0.6s;
}
.v--locked .v-link:hover::before { opacity: 1; }
.redact { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; }
.v--open .v-name { color: transparent; -webkit-text-stroke: 1px var(--fg); transition: color 0.5s, -webkit-text-stroke-color 0.5s; }
.v--open a.v-link:hover .v-name { color: var(--bg); -webkit-text-stroke-color: var(--bg); }

/* ============================================================= MARQUEE */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 48s linear infinite; }
.marquee span {
  font-size: clamp(44px, 7.2vw, 120px); font-weight: 700; line-height: 1; letter-spacing: -0.045em;
  text-transform: uppercase; white-space: nowrap; padding: 0 0.32em;
}
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--fg); }
.marquee i {
  flex: none; width: clamp(28px, 3.4vw, 54px); aspect-ratio: 392 / 281; background: var(--white);
  -webkit-mask: url(../img/nova-mark.svg) center / contain no-repeat;
          mask: url(../img/nova-mark.svg) center / contain no-repeat;
}
.marquee:hover .marquee-track, .js:not(.is-site) .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================ APPROACH */
.approach { padding: 20vh 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { padding: 34px var(--pad) 72px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step-n { color: var(--mute); }
.step h3 { font-size: clamp(44px, 4.8vw, 80px); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; text-transform: uppercase; margin: 72px 0 22px; }
.step p:last-child { color: #c9c9c6; max-width: 32ch; }
.js .step.reveal:nth-child(2) { transition-delay: 0.1s; }
.js .step.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ================================================================ NEXT */
.next { padding: 24vh var(--pad) 18vh; }
.mega { font-size: clamp(60px, 13vw, 230px); font-weight: 700; line-height: 0.84; letter-spacing: -0.058em; text-transform: uppercase; margin-left: -0.05em; }
.next-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
}
.next-text { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; max-width: 30ch; color: #c9c9c6; }
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 18px;
  padding: 20px 30px; border: 1px solid var(--white); border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white);
  transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn b { font-weight: 400; transition: transform 0.5s var(--ease); }
.btn:hover b { transform: translateX(5px); }

/* ============================================================== FOOTER */
.footer { padding: 64px var(--pad) 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-brand svg { width: 52px; fill: var(--white); }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-col .mono { color: var(--mute); margin-bottom: 8px; }
.footer-col a { width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.footer-col a:hover { background-size: 100% 1px; }
.footer-word {
  font-size: 34vw; font-weight: 700; line-height: 0.74; letter-spacing: -0.075em;
  text-align: center; margin: 8vh -0.04em 4vh;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  -webkit-user-select: none; user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); color: var(--mute); }
.footer-bottom a:hover { color: var(--fg); }

/* ========================================================== RESPONSIVE */
@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { padding-top: 96px; }
  .hero-mark { top: 132px; left: 50%; right: auto; transform: translateX(-50%); width: min(80vw, 480px); }
  .hero-foot { grid-template-columns: 1fr; gap: 22px; }
  .hero-scroll { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .section-note { justify-self: start; }
  .v-link { grid-template-columns: 40px minmax(0, 1fr); gap: 14px 16px; padding: 30px var(--pad); }
  .v-tags, .v-body, .v-go { grid-column: 2; }
  .v-go { justify-self: start; padding-top: 0; }
  .v-tags { padding-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 48px; }
  .step:last-child { border-bottom: 0; }
  .step h3 { margin-top: 36px; }
  .next-row { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero-stats { flex-wrap: wrap; row-gap: 14px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .subtitle { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; }
}
