/*
 * nascori.com, in the app's own system: Industrial Signal (docs/adr/0045).
 * Carbon and bone carry the page; signal orange marks the one thing to press.
 * Behind it all, the work itself, blurred and dark.
 */

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --carbon: #121516;
  --shell: #1b1e1f;
  --panel: #242829;
  --steel: #3e4445;
  --bone: #eeeae1;
  --muted: #a5aaa8;
  --orange: #f05b23;
  --blue: #83adb9;
  --sans: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--carbon);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

/* ── The work, behind everything ─────────────────────────────────────────── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--carbon);
}

.backdrop video {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  /* Mood, not content: blurred past reading, and the carbon over it. */
  filter: blur(18px) saturate(0.8);
  transform: translate3d(0, var(--drift, 0px), 0);
}

.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgb(18 21 22 / 0.72), rgb(18 21 22 / 0.94) 75%),
    rgb(18 21 22 / 0.35);
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(20px, calc((100% - 1200px) / 2));
  transition:
    background-color 200ms,
    border-color 200ms;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgb(27 30 31 / 0.92);
  border-bottom-color: var(--steel);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.88rem;
}

.nav nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav nav a:hover {
  color: var(--bone);
}

.nav .nav-cta {
  color: var(--bone);
  padding: 6px 14px;
  border: 1px solid var(--steel);
  border-radius: 3px;
}

/* ── Type ────────────────────────────────────────────────────────────────── */
.label {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Headlines broken where they are meant to break. */
h1 span,
h2 span {
  display: block;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.02;
}

h1 span:last-child {
  color: var(--muted);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.06;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(24px, 5vh, 56px) 0 40px;
}

.tagline {
  max-width: 34ch;
  margin: 24px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--bone);
}

.lede {
  max-width: 56ch;
  margin: 12px 0 28px;
  font-size: 1.15rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 13px 24px;
  background: var(--orange);
  color: var(--carbon);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--orange);
  border-radius: 3px;
}

.button:hover {
  filter: brightness(1.1);
}

.button.ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--steel);
}

.button.ghost:hover {
  filter: none;
  border-color: var(--muted);
}

/* The mark at the foot of the hero, beside the buttons and clear of the
   headline: the brand at a size it was drawn for. */
.hero-mark {
  position: absolute;
  right: 0;
  bottom: 40px;
  width: clamp(120px, 12vw, 180px);
  height: auto;
}

@media (max-width: 1100px) {
  .hero-mark {
    display: none;
  }
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

/* ── The demo ────────────────────────────────────────────────────────────── */
.watch {
  padding-bottom: 48px;
}

.reel {
  margin: 0;
}

.reel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--steel);
  /* The thin orange keyline the app marks the current shot with. */
  border-top: 2px solid var(--orange);
  border-radius: 4px;
}

.reel figcaption {
  margin-top: 12px;
  max-width: 80ch;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── What it helps you do ────────────────────────────────────────────────── */
.how {
  padding: 48px 0 16px;
  border-top: 1px solid var(--steel);
}

.steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--steel);
}

.step:nth-child(even) {
  grid-template-columns: 7fr 5fr;
}

.step:nth-child(even) .step-text {
  order: 2;
}

.index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orange);
}

.step h3 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--panel);
  border: 1px solid var(--steel);
  border-radius: 4px;
}

/* ── The films: shots from what was made with it, edge to edge ──────────── */
.films {
  padding: 24px 0 48px;
}

.films-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.films-grid video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--panel);
}

/* ── The creator ─────────────────────────────────────────────────────────── */
.creator {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--steel);
}

.creator-mark img {
  display: block;
  width: clamp(72px, 9vw, 120px);
  height: auto;
}

.creator h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}

.creator p {
  max-width: 64ch;
  margin: 14px 0 0;
  color: var(--muted);
}

.creator .role {
  margin-top: 8px;
  color: var(--bone);
  font-size: 1.1rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.links a {
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
}

/* ── Get in touch ────────────────────────────────────────────────────────── */
.cta {
  padding: 48px 0 56px;
  border-top: 1px solid var(--steel);
}

.cta h2 span:last-child {
  color: var(--muted);
}

.cta .lockup {
  margin-bottom: 20px;
}

.cta .button {
  margin-top: 24px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--steel);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

footer .lockup {
  gap: 10px;
  margin-right: 6px;
}

footer a {
  margin-left: auto;
  color: var(--bone);
  text-decoration: none;
}

/* ── Arriving ────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Smaller screens ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .step,
  .step:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .step:nth-child(even) .step-text {
    order: 0;
  }

  .films-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .nav nav a:not(.nav-cta) {
    display: none;
  }

  .creator {
    grid-template-columns: 1fr;
  }
}
