/* ASCENSION Group landing. Self-hosted fonts, no external requests. */

@font-face {
  font-family: "Orbitron";
  src: url("../fonts/orbitron-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: oklch(0.12 0.02 285);
  --panel: oklch(0.17 0.025 285);
  --line: oklch(0.30 0.03 285);
  --ink: oklch(0.96 0.01 285);
  --ink-2: oklch(0.88 0.02 285);
  --ink-3: oklch(0.8 0.02 285);
  --arc: oklch(0.82 0.14 215);
  --flare: oklch(0.70 0.24 340);
  --violet: oklch(0.62 0.25 300);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --display: "Orbitron", "Arial Black", system-ui, sans-serif;
  --text: "IBM Plex Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html.is-travelling { scroll-behavior: auto; } /* travel.js drives the scroll itself */

body {
  margin: 0;
  /* The glow of the city on the horizon: what shows while the city fades in, or instead of it without WebGL. */
  background: radial-gradient(ellipse 90% 35% at 50% 50%, oklch(0.32 0.13 320 / 0.55), transparent 70%) fixed, var(--void);
  color: var(--ink-2);
  font: 400 1.2rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--arc); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--arc); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--void);
  font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }

/* Header */
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(100% - 2 * var(--gutter), 75rem);
  margin-inline: auto;
  padding-block: 1.5rem;
}
.brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font: 700 1.1rem/1 var(--display);
  letter-spacing: 0.08em;
}
.brand__mark { width: 1.75rem; height: 1.75rem; filter: drop-shadow(0 0 6px oklch(0.62 0.24 300 / 0.8)); }
.brand__name span { color: oklch(0.78 0.14 320); }
.site-header ul { display: flex; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.site-header ul a { color: var(--ink-2); font-size: 1.05rem; text-decoration: none; }
.site-header ul a:hover { color: var(--ink); }
@media (max-width: 640px) {
  /* Brand on its own row, then the section links and the button: visual order equals DOM and focus order. */
  .site-header { flex-wrap: wrap; gap: 0.75rem 1rem; }
  .brand { flex-basis: 100%; }
  .site-header nav { flex: 1 1 auto; }
  .site-header ul { gap: 1.25rem; }
}
@media (max-width: 420px) {
  /* More specific than the base .btn--sm, which is declared later in the file. */
  .site-header .btn--sm { padding: 0.55rem 0.85rem; }
}

/* Buttons and links */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 3px;
  background: linear-gradient(100deg, var(--flare), var(--violet) 55%, var(--arc));
  color: var(--void);
  font: 600 1.1rem/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 1.6rem oklch(0.62 0.24 300 / 0.45);
  transition: transform 160ms var(--ease-out);
}
/* The stronger glow lives in a pseudo-element and fades in with opacity: cheaper than animating box-shadow. */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 2.4rem oklch(0.62 0.24 300 / 0.7);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { opacity: 1; }
}
.btn:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; opacity: 0.85; }
}
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.link {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--arc);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.link:hover { color: var(--arc); }

/* Hero */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(1rem, 4vw, 3rem) clamp(4rem, 9vw, 7rem);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: min(92svh, 60rem);
  text-align: center;
}
.hero__copy { display: grid; justify-items: center; }
.hero h1 {
  margin: 0 0 1rem;
  max-width: 16em;
  color: var(--ink);
  font: 700 clamp(1.45rem, 0.1rem + 6.9vw, 5.2rem) / 1.06 var(--display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
/* The glass's padding comes out of the gaps around it, so the hero is no taller than before and its buttons still fit. */
.hero__text { max-width: 42rem; margin: 0 0 1.5rem; padding: 0.9rem clamp(1.1rem, 2.6vw, 2rem); }
.lead { max-width: 38rem; margin: 0 auto 0.75rem; font-size: clamp(1.2rem, 1.15rem + 0.35vw, 1.45rem); }
.audience { max-width: 38rem; margin: 0 auto; color: var(--ink-3); font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.75rem; }
@media (max-width: 640px) {
  /* Phones: the text grows less and the hero tightens, so its buttons stay on the first screen of a short phone
     (depth.js only brings a hero block to full size once it is on screen). */
  body { font-size: 1.125rem; }
  .hero h1 { margin-bottom: 0.75rem; }
  /* The glass reaches into the side margin so the lines stay about as long as they were. */
  .hero__text { margin: 0 -0.6rem 1rem; padding: 0.6rem 0.75rem; }
  .lead { margin-bottom: 0.5rem; font-size: 1.15rem; }
  .audience { font-size: 1rem; }
  .actions { gap: 1.25rem; }
  /* The section links and the header button keep sharing one row. */
  .site-header ul { gap: 1rem; }
  .site-header ul a { font-size: 0.95rem; }
  .btn--sm { font-size: 0.88rem; }
}

/* Page background: a film of the city at night and the road through it (film.js). It sits under the content. */
.city {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.city[data-state="ready"],
.city[data-state="ready"] + .film-layer { opacity: 1; }

/* Over the film (film.js), behind the page like the film: the crystal over the tower and, on a big landscape screen, each
   step's text on its room's screen. film.js places both on every frame from assets/film/track.json. */
.film-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.tower-crystal { position: absolute; left: 0; top: 0; }
.tower-crystal[hidden], .screen-card[hidden] { display: none; }
.tower-crystal::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.5 0.24 300 / 0.3), transparent 66%);
  filter: blur(12px);
}
.tower-crystal canvas { position: absolute; inset: 15%; width: 70%; height: 70%; }
/* Drawn at 960 x 480 (the screens are 2:1), then mapped onto the screen's four corners. */
.screen-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 960px;
  height: 480px;
  box-sizing: border-box;
  padding: 62px 70px;
  overflow: hidden;
  transform-origin: 0 0;
  backface-visibility: hidden;
  background: radial-gradient(120% 140% at 30% 35%, #24103a 0%, #100a1c 60%, #06050b 100%);
  color: var(--ink);
}
.screen-card__kicker { margin: 0 0 24px; color: var(--ink-2); font: 700 22px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.screen-card__kicker span { margin-right: 14px; color: var(--arc); }
.screen-card__title { margin: 0 0 24px; font: 700 48px/1.2 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.screen-card__body { margin: 0; max-width: 30em; color: var(--ink-2); font-size: 27px; line-height: 1.5; }
/* Over the lit city the text needs a dark halo to stay readable. */
main :is(h1, h2, h3, p, li, .link),
.site-header ul a,
.site-footer p { text-shadow: 0 0 0.35em oklch(0.1 0.02 285 / 0.95), 0 0 1.2em oklch(0.1 0.02 285 / 0.7); }
/* Where the films are brightest the copy sits on dark glass. No backdrop blur: it would be redone on every frame of the film. */
.hero__text, .stages, .claims, .project {
  border: 1px solid oklch(0.72 0.14 300 / 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, oklch(0.13 0.03 290 / 0.8), oklch(0.09 0.025 285 / 0.72));
  box-shadow: 0 1.2rem 3rem oklch(0.05 0.02 285 / 0.5), inset 0 1px 0 oklch(0.9 0.05 300 / 0.06);
}

/* The rings drawn around the crystal on the intro gate */
.rings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rings circle { fill: none; }
.rings .r1 { stroke: oklch(0.72 0.16 220 / 0.6); stroke-width: 2.6; stroke-dasharray: 3 13; }
.rings .r2 { stroke: oklch(0.62 0.25 300 / 0.55); stroke-width: 2; stroke-dasharray: 14 8; }
.rings .r3 { stroke: oklch(0.72 0.22 340 / 0.5); stroke-width: 1.6; }
.rings .tick { fill: oklch(0.72 0.22 340 / 0.85); }
.ring { transform-origin: 300px 300px; }

@media (prefers-reduced-motion: no-preference) {
  .ring--a { animation: spin 34s linear infinite; }
  .ring--b { animation: spin 26s linear infinite reverse; }
  .ring--c { animation: spin 14s linear infinite; }
  .hero__inner { animation: fade-in 1.4s ease-out both; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade-in { from { opacity: 0; } }

/* Sections */
/* Each section is a station on the journey: at least a screen tall, its content centred in it, open space all round. */
.section { min-height: 100svh; display: grid; align-content: center; padding-block: clamp(4rem, 12svh, 9rem); }
.section h2,
.contact h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font: 700 clamp(1.7rem, 0.7rem + 2.75vw, 2.9rem) / 1.1 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.section__lead { max-width: 42rem; margin: 0 0 clamp(2.5rem, 6vw, 4.5rem); }

/* What we build: a real sequence, so it is numbered and wired together */
/* It sits on dark glass (see .hero__text). --pt, --px and --pb are that panel's padding; the line, the halo and the
   nodes are placed inside it. */
.stages {
  --pt: clamp(1rem, 2vw, 1.5rem);
  --px: clamp(1.1rem, 2.4vw, 1.9rem);
  --pb: clamp(1.1rem, 2.2vw, 1.6rem);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  padding: var(--pt) var(--px) var(--pb);
  list-style: none;
}
/* The panel adds height: the space above it and above HOW shrinks so HOW still arrives where it did. */
#build .section__lead { margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
#build .how { margin-top: clamp(1.5rem, 3vw, 2rem); }
.stages::before {
  content: "";
  position: absolute;
  top: calc(var(--pt) + 0.55rem - 1.5px);
  left: var(--px);
  right: var(--px);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--arc), var(--violet), var(--flare));
  box-shadow: 0 0 0.7rem oklch(0.62 0.25 300 / 0.6), 0 0 0.2rem oklch(0.82 0.14 215 / 0.5);
}
/* The halo: a bright pulse that runs along the line all the time, lighting it up where it passes. It starts once the
   line has drawn itself, and each node flashes as it reaches it (the delays below follow the pulse across the three
   columns). */
.stages::after {
  content: "";
  position: absolute;
  top: calc(var(--pt) + 0.55rem - 9px);
  left: var(--px);
  width: calc((100% - 2 * var(--px)) * 0.18);
  height: 18px;
  background:
    linear-gradient(90deg, transparent, oklch(0.99 0.02 300) 50%, transparent) center / 100% 3px no-repeat,
    radial-gradient(closest-side, oklch(0.85 0.2 320 / 0.75), oklch(0.7 0.24 320 / 0.25) 55%, transparent);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
}
.stages li { position: relative; padding-top: 2.5rem; }
.stages li::before {
  content: "";
  position: absolute;
  top: 0.1rem;
  left: 0;
  width: 0.9rem;
  height: 0.9rem;
  border: 1.5px solid var(--arc);
  background: var(--void);
  box-shadow: 0 0 0.8rem oklch(0.82 0.14 215 / 0.6);
  transform: rotate(45deg);
}
.stage__n { display: block; margin-bottom: 0.5rem; color: var(--arc); font: 700 0.98rem/1 var(--display); letter-spacing: 0.1em; }
.stages h3 { margin: 0 0 0.6rem; color: var(--ink); font: 600 1.45rem/1.25 var(--text); }
.stages p { max-width: 24rem; margin: 0; }
@media (max-width: 760px) {
  .stages { grid-template-columns: 1fr; gap: 2rem; }
  .stages::before {
    top: calc(var(--pt) + 0.4rem);
    bottom: calc(var(--pb) + 0.4rem);
    left: calc(var(--px) + 0.45rem - 1.5px);
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--arc), var(--violet), var(--flare));
  }
  .stages::after {
    top: var(--pt);
    left: calc(var(--px) + 0.45rem - 9px);
    width: 18px;
    height: calc((100% - var(--pt) - var(--pb)) * 0.18);
    background:
      linear-gradient(180deg, transparent, oklch(0.99 0.02 300) 50%, transparent) center / 3px 100% no-repeat,
      radial-gradient(closest-side, oklch(0.85 0.2 320 / 0.75), oklch(0.7 0.24 320 / 0.25) 55%, transparent);
  }
  .stages li { padding: 0 0 0 2.25rem; }
  .stages li::before { top: 0.25rem; }
}

/* The pipeline draws itself once, when it first enters view (depth.js adds .js, then .is-in).
   Without the script the final state simply shows. Line first, then each node and its text as the line passes. */
.stages::before { transform-origin: left center; transition: transform 1100ms var(--ease-in-out); }
.stages li::before { transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); transition-delay: var(--d, 0ms); }
.stages li > * { transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); transition-delay: calc(var(--d, 0ms) + 120ms); }
.stages li:nth-child(2) { --d: 400ms; }
.stages li:nth-child(3) { --d: 680ms; }
html.js .stages:not(.is-in)::before { transform: scaleX(0); }
html.js .stages:not(.is-in) li::before { opacity: 0.25; transform: rotate(45deg) scale(0.6); }
html.js .stages:not(.is-in) li > * { opacity: 0; transform: translateY(8px); }
@media (max-width: 760px) {
  .stages::before { transform-origin: top center; }
  html.js .stages:not(.is-in)::before { transform: scaleY(0); }
  .stages li:nth-child(2) { --d: 430ms; }
  .stages li:nth-child(3) { --d: 720ms; }
}
@media (prefers-reduced-motion: no-preference) {
  .stages.is-in::after,
  html:not(.js) .stages::after { animation: halo-run 3.6s linear 1.1s infinite; }
  .stages.is-in li::before,
  html:not(.js) .stages li::before { animation: node-flash 3.6s linear infinite; }
  .stages li:nth-child(1)::before { animation-delay: 1.27s; }
  .stages li:nth-child(2)::before { animation-delay: 2.32s; }
  .stages li:nth-child(3)::before { animation-delay: 3.38s; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  /* On a phone the line runs down the left: the pulse runs down with it. The nodes sit wherever the text puts them, so
     they do not flash on cue there. */
  .stages.is-in::after,
  html:not(.js) .stages::after { animation-name: halo-run-down; }
  .stages.is-in li::before,
  html:not(.js) .stages li::before { animation: none; }
}
@keyframes halo-run {
  0% { transform: translateX(-100%); opacity: 0; }
  6%, 94% { opacity: 1; }
  100% { transform: translateX(456%); opacity: 0; } /* its right edge ends on the end of the line, never past the page */
}
@keyframes halo-run-down {
  0% { transform: translateY(-100%); opacity: 0; }
  6%, 94% { opacity: 1; }
  100% { transform: translateY(456%); opacity: 0; }
}
@keyframes node-flash {
  0%, 14%, 100% { box-shadow: 0 0 0.8rem oklch(0.82 0.14 215 / 0.6); background: var(--void); }
  3% { box-shadow: 0 0 1.6rem 0.2rem oklch(0.9 0.12 215 / 0.95), 0 0 0.4rem oklch(0.98 0.02 215); background: var(--arc); }
}

#build { overflow-x: clip; } /* nothing that glows or runs along the line may widen the page */

/* HOW: the way into the city (film.js shows it once the film shows). */
.how { margin-top: clamp(2.5rem, 6vw, 4rem); }
.how__btn { padding-inline: 2.6rem calc(2.6rem - 0.32em); font: 700 1.1rem/1 var(--display); letter-spacing: 0.32em; }
.how__btn[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .how__btn::before {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1px solid oklch(0.82 0.14 215 / 0.7);
    border-radius: 6px;
    pointer-events: none;
    animation: how-ring 2.4s var(--ease-out) infinite;
  }
}
@keyframes how-ring { 0% { opacity: 0.9; transform: scale(0.96); } 100% { opacity: 0; transform: scale(1.14); } }

/* During the journey the page steps aside (film.js also makes it inert) and the journey takes the whole screen: its own
   scroll climbs the tower, and over it, the step of the room you are in, a rail of where you are, and the rooftop. */
main, .site-header, .site-footer { transition: opacity 600ms var(--ease-out); }
html.in-journey { overflow: hidden; }
html.in-journey :is(main, .site-header, .site-footer) { opacity: 0; pointer-events: none; }
.journey { position: fixed; inset: 0; z-index: 40; }
.journey[hidden] { display: none; }
.journey__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.journey__scroll::-webkit-scrollbar { display: none; }
.journey__scroll:focus { outline: none; } /* it is the whole screen: a ring round it says nothing */
.journey:not(.is-arrived) .journey__scroll { overflow: hidden; } /* no climbing mid-flight */
.journey__track { height: 1000svh; }

/* film.js fades each step in and out as you climb (inline opacity and visibility). On a big landscape screen the step is
   read on its room's own screen (film.js lays this same text over the film there), so here it is only for screen readers; on a
   phone, a tall screen or a short one, that screen is too small to read, so the card shows. */
.journey__steps { margin: 0; padding: 0; list-style: none; }
.step {
  position: fixed;
  left: var(--gutter);
  bottom: clamp(1.5rem, 9vh, 5.5rem);
  width: min(100% - 2 * var(--gutter), 31rem);
  padding: 1.35rem 1.5rem 1.45rem;
  border: 1px solid oklch(0.82 0.14 215 / 0.35);
  border-radius: 6px;
  background: oklch(0.12 0.02 285 / 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.step__kicker {
  margin: 0 0 0.7rem;
  color: var(--ink-2);
  font: 700 0.74rem/1.2 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.step__kicker span { margin-right: 0.5rem; color: var(--arc); }
.step h2, .rooftop h2 { margin: 0 0 0.6rem; color: var(--ink); font: 700 clamp(1.15rem, 0.9rem + 0.9vw, 1.6rem)/1.25 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.step p:last-child { margin: 0; font-size: 1.02rem; line-height: 1.55; }
@media (min-width: 761px) and (min-height: 600px) and (min-aspect-ratio: 1/1) {
  .step { width: 1px; height: 1px; padding: 0; overflow: hidden; border: 0; clip-path: inset(50%); white-space: nowrap; }
}

.journey__rail {
  position: fixed;
  top: 50%;
  right: var(--gutter);
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 1px solid oklch(0.82 0.14 215 / 0.25);
  color: oklch(0.66 0.03 285); /* darker than the page's grey, so the step you are on stands out */
  font: 700 0.74rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  list-style: none;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity 500ms var(--ease-out);
}
.journey:not(.is-arrived) .journey__rail { opacity: 0; }
.journey__rail li { position: relative; transition: color 300ms var(--ease-out); }
.journey__rail li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-1rem - 3px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}
.journey__rail li.is-on { color: var(--arc); text-shadow: 0 0 0.8rem oklch(0.82 0.14 215 / 0.7); }
.journey__hint {
  position: fixed;
  right: var(--gutter);
  bottom: clamp(1.5rem, 9vh, 5.5rem);
  margin: 0;
  color: var(--ink-2);
  font: 700 0.74rem/1 var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.journey__hint::after { content: ""; display: block; width: 1px; height: 2.2rem; margin: 0.8rem auto 0; background: linear-gradient(var(--arc), transparent); }

/* The rooftop: the camera turns round the crystal to one side and the contact opens on the other. */
.rooftop {
  position: fixed;
  top: 50%;
  left: var(--gutter);
  width: min(100% - 2 * var(--gutter), 30rem);
  transform: translateY(-50%);
  padding: 1.6rem 1.7rem 1.4rem;
  border: 1px solid oklch(0.82 0.14 215 / 0.45);
  border-radius: 6px;
  background: oklch(0.12 0.02 285 / 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 3rem oklch(0.62 0.24 300 / 0.25);
}
.rooftop[hidden] { display: none; }
.rooftop h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); }
.rooftop > p { margin: 0 0 1.4rem; font-size: 1.05rem; line-height: 1.55; }
.rooftop__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-bottom: 1.4rem; }
.rooftop__mail { margin: 0; }
@media (max-aspect-ratio: 1/1) {
  .rooftop { top: auto; bottom: clamp(1rem, 5vh, 2.5rem); left: 50%; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: no-preference) {
  .rooftop:not([hidden]) { animation: roof-open 700ms var(--ease-out) both; }
}
@keyframes roof-open {
  from { opacity: 0; clip-path: inset(0 100% 0 0 round 6px); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round 6px); }
}
.journey__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem 0.6rem 0.75rem;
  border: 1px solid oklch(0.82 0.14 215 / 0.45);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: 600 1rem/1 var(--text);
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.journey__back:hover { border-color: var(--arc); background-color: oklch(0.82 0.14 215 / 0.1); }

@media (max-width: 760px) {
  .step { bottom: 1rem; padding: 1.1rem 1.2rem 1.2rem; }
  .step p:last-child { font-size: 0.98rem; }
  .journey__rail { top: clamp(1rem, 3vw, 1.75rem); left: 50%; right: auto; display: flex; gap: 1.4rem; padding: 0; border: 0; transform: translateX(-50%); }
  .journey__rail li::before { display: none; }
  .journey__hint { top: calc(clamp(1rem, 3vw, 1.75rem) + 2rem); right: auto; bottom: auto; left: 50%; transform: translateX(-50%); }
  .journey__hint::after { height: 1.4rem; margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .stages::before, .stages li::before, .stages li > * { transition: opacity 200ms ease; transition-delay: 0ms; }
  html.js .stages:not(.is-in)::before { transform: none; opacity: 0; }
  html.js .stages:not(.is-in) li::before { transform: rotate(45deg); opacity: 0; }
  html.js .stages:not(.is-in) li > * { transform: none; }
}
/* On paper the pipeline is never left in its hidden start state. */
@media print {
  .stages::before, .stages li::before, .stages li > * { transition: none; }
  html.js .stages:not(.is-in)::before { transform: none; opacity: 0.7; }
  html.js .stages:not(.is-in) li::before { transform: rotate(45deg); opacity: 1; }
  html.js .stages:not(.is-in) li > * { opacity: 1; transform: none; }
}

/* Travelling: headings, lines and cards float in the depth of the page. depth.js moves them with the scroll: they emerge from
   the middle of the screen as you approach and sink back into it as you leave. Without the script they are simply in place. */
.arrive { will-change: transform, opacity; }
@media print { .arrive { transform: none !important; opacity: 1 !important; } }
section[tabindex="-1"]:focus { outline: none; } /* a section focused after a flight is not a control: no ring around all of it */

/* Why Ascension */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.split__lead { display: grid; justify-items: start; gap: clamp(1.5rem, 3vw, 2.5rem); }

/* The crystal under the heading: rings (SVG), fallback (SVG) and the WebGL crystal (canvas) */
.emblem { position: relative; width: min(100%, 24rem); aspect-ratio: 1; }
.emblem::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.5 0.24 300 / 0.3), transparent 66%);
  filter: blur(12px);
}
.emblem canvas,
.emblem__fallback { position: absolute; }
.emblem__fallback { inset: 15%; width: 70%; height: 70%; transition: opacity 0.6s ease; }
.emblem canvas { inset: 15%; width: 70%; height: 70%; opacity: 0; transition: opacity 0.6s ease; }
.emblem[data-state="ready"] canvas { opacity: 1; }
.emblem[data-state="ready"] .emblem__fallback { opacity: 0; }

.claims { margin: 0; padding: 0 clamp(1.1rem, 2.4vw, 1.9rem); list-style: none; }
.claims li {
  padding-block: 1.4rem;
  color: var(--ink);
  font: 500 clamp(1.4rem, 1rem + 1.4vw, 2rem) / 1.3 var(--text);
  text-wrap: balance;
}
.claims li + li { border-top: 1px solid var(--line); } /* the glass is the outer edge */
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

/* Recent work */
/* The projects sit side by side (one column on a narrow screen) and arrive as one panel, so they never cross.
   Each one: its logo as an app icon, with the name, tagline and link right below. */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 18rem)); gap: 3rem clamp(2rem, 6vw, 5rem); }
.project { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.1rem, 2.2vw, 1.6rem); }
.project__logo {
  width: clamp(9rem, 22vw, 13rem);
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 22%;
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.08), 0 1.5rem 3.5rem -1rem oklch(0.66 0.19 45 / 0.45);
}
.project--clipnado .project__logo { box-shadow: 0 0 0 1px oklch(1 0 0 / 0.08), 0 1.5rem 3.5rem -1rem oklch(0.84 0.17 85 / 0.45); }
.project__name { margin: 0 0 0.25rem; color: var(--ink); font: 700 1.75rem/1.2 var(--display); letter-spacing: 0.02em; }
.project__tagline { margin: 0 0 1.25rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Team */
.founders {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.founder { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
/* Photos share one 4:5 frame; the empty frame shows the brand mark until a photo exists. */
.founder__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid var(--line);
}
.founder__photo--empty {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, oklch(0.5 0.24 300 / 0.25), transparent 62%), var(--void);
}
.founder__mark { width: 30%; height: auto; aspect-ratio: 1; opacity: 0.8; }
.founder__name { margin: 1.25rem 1.25rem 0.25rem; color: var(--ink); font: 600 1.15rem/1.3 var(--text); }
.founder__role { margin: 0 1.25rem 1.25rem; font-size: 1.05rem; }
@media (max-width: 760px) {
  .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Contact and footer */
.contact { min-height: 90svh; display: grid; align-content: center; padding-block: clamp(4rem, 12svh, 9rem); } /* the space is the divider */
.contact__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.contact h2 { max-width: 30rem; margin: 0; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.contact__mail { margin: 0; font-size: 1.05rem; }
.site-footer { padding-block: 2rem 3rem; font-size: 0.98rem; }
.site-footer .wrap { display: flex; align-items: center; gap: 0.75rem; }
.site-footer p { margin: 0; }

/* Intro gate: the first screen. Pure CSS until gate.js runs; html.gated is set by the inline script in <head>.
   While it is up the page behind is hidden (so it is out of the focus order and the accessibility tree too) and locked. */
html { scrollbar-gutter: stable; }
.gate { display: none; }
html.gated { overflow: hidden; }
html.gated .gate,
.gate.is-leaving { display: grid; } /* leaving: the page is already live underneath while the gate fades out */
html.gated body > :not(.gate):not(svg) { visibility: hidden; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(8rem, 1fr) auto;
  justify-items: center;
  gap: clamp(0.4rem, 1.5svh, 1rem);
  padding: clamp(1rem, 4svh, 2.5rem) var(--gutter) clamp(1.25rem, 5svh, 3rem);
  overflow: hidden auto;
  background: var(--void);
  text-align: center;
}
.gate::before,
.gate::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.gate::before {
  background:
    radial-gradient(46rem 32rem at 8% 0%, oklch(0.62 0.24 340 / 0.2), transparent 65%),
    radial-gradient(46rem 32rem at 95% 8%, oklch(0.72 0.16 220 / 0.22), transparent 65%),
    radial-gradient(38rem 38rem at 50% 52%, oklch(0.5 0.24 300 / 0.2), transparent 70%);
}
.gate::after {
  background-image:
    linear-gradient(oklch(0.3 0.03 285 / 0.35) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.3 0.03 285 / 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 78%);
}
.gate > * { position: relative; z-index: 2; }
.gate > .gate__canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.gate > .gate__canvas[data-state="ready"] { opacity: 1; }

.gate__title {
  margin: 0;
  padding-left: 0.09em; /* balances the trailing letter-spacing so the name sits truly centred */
  color: var(--ink);
  font: 700 clamp(1.85rem, 0.6rem + 5.3vw, 4.6rem) / 1.05 var(--display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0 2.2rem oklch(0.62 0.24 300 / 0.55);
}
.gate__title span { color: oklch(0.78 0.14 320); }

/* The crystal is drawn by the canvas; this box only says where and how big. The rings and the SVG mark are DOM.
   The stage is the grid row and a size container, so the emblem is the largest square that fits in it. */
.gate__stage { display: grid; place-items: center; width: 100%; min-height: 0; container-type: size; }
.gate__emblem { position: relative; width: min(100cqw, 100cqh, 46rem); aspect-ratio: 1; }
.gate__emblem::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.5 0.24 300 / 0.3), transparent 66%);
  filter: blur(12px);
}
.gate__fallback {
  position: absolute;
  inset: 17%;
  width: 66%;
  height: 66%;
  filter: drop-shadow(0 0 12px oklch(0.62 0.24 300 / 0.8));
  transition: opacity 0.6s ease;
}
.gate > .gate__canvas[data-state="ready"] ~ .gate__stage .gate__fallback { opacity: 0; }

.gate__foot { display: grid; justify-items: center; gap: 1rem; }
.gate__tagline {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(1.15rem, 1rem + 0.8vw, 1.6rem) / 1.3 var(--text);
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.btn--lg { padding: 0.95rem 2.4rem; font-size: 1.2rem; }

/* The way in (2026-11-17): a quiet cue to scroll, not a button to trust (the team found the bright "Let's begin" pill
   read like a scam). It is still a real button for keyboards and screen readers; a wheel, a swipe, the down arrow, Page
   Down, Space or a click on the crystal open the gate too (gate.js). A mouse with its wheel turning; on a touch screen, a
   chevron rising. */
.gate__btn {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-top: 0.4rem;
  padding: 0.6rem 1.2rem 0.6rem calc(1.2rem + 0.3em); /* the extra left balances the trailing letter-spacing */
  border: 0;
  border-radius: 0.75rem;
  background: none;
  color: var(--ink-2);
  font: 700 clamp(0.78rem, 0.62rem + 0.3vw, 1rem) / 1 var(--display); /* the cue grows with the screen: it must be seen */
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 240ms var(--ease-out), text-shadow 240ms var(--ease-out);
}
.gate__btn:hover,
.gate__btn:focus-visible { color: var(--ink); text-shadow: 0 0 1rem oklch(0.62 0.24 300 / 0.85); }
.gate__btn:focus-visible { outline: 2px solid var(--arc); outline-offset: 4px; }
.gate__btn[aria-disabled="true"] { pointer-events: none; }
.gate__cue { /* sized in em, so it grows with the label */
  position: relative;
  width: 1.9em;
  height: 3em;
  border: 2px solid currentColor;
  border-radius: 1em;
  box-shadow: 0 0 1.2em oklch(0.62 0.24 300 / 0.35);
}
.gate__cue::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.55em;
  width: 0.3em;
  height: 0.7em;
  margin-left: -0.15em;
  border-radius: 0.2em;
  background: linear-gradient(var(--flare), var(--arc));
  animation: gate-wheel 1.8s var(--ease-in-out) infinite;
}
@keyframes gate-wheel {
  0% { opacity: 0; transform: translateY(-0.1em); }
  25% { opacity: 1; }
  70%, 100% { opacity: 0; transform: translateY(1em); }
}
.gate__label--touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .gate__label--wheel { display: none; }
  .gate__label--touch { display: inline; }
  .gate__cue { width: 2em; height: 1.6em; border: 0; border-radius: 0; box-shadow: none; }
  .gate__cue::before { /* a chevron pointing up, rising and fading */
    top: 0.6em;
    width: 1em;
    height: 1em;
    margin-left: -0.5em;
    border-radius: 0;
    background: none;
    border-top: 2px solid var(--arc);
    border-left: 2px solid var(--flare);
    transform: rotate(45deg);
    animation-name: gate-swipe;
  }
}
@keyframes gate-swipe {
  0% { opacity: 0; transform: translateY(0.6em) rotate(45deg); }
  25% { opacity: 1; }
  70%, 100% { opacity: 0; transform: translateY(-0.5em) rotate(45deg); }
}
/* The crystal is the door too: it answers the pointer with a brighter glow. */
.gate__stage { cursor: pointer; }
.gate__emblem::before { transition: transform 450ms var(--ease-out), opacity 450ms var(--ease-out); }
@media (hover: hover) {
  .gate__stage:hover .gate__emblem::before { transform: scale(1.14); }
}

/* Opening: the text lets go, the rings and mark dissolve, the flash covers the hand-over, then the gate fades out. */
.gate__title,
.gate__foot { transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.gate.is-opening .gate__title { opacity: 0; transform: translateY(-1rem); }
.gate.is-opening .gate__foot { opacity: 0; transform: translateY(1rem); }
.gate.is-opening .rings,
.gate.is-opening .gate__fallback,
.gate.is-opening .gate__emblem::before { opacity: 0; transition: opacity 450ms ease-in 100ms; }
.gate > .gate__flash {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 52%, oklch(0.97 0.04 320 / 0.9), oklch(0.72 0.24 320 / 0.45) 30%, transparent 62%);
}
.gate.is-opening .gate__flash { animation: gate-flash 900ms ease-out 900ms both; }
.gate.is-leaving { opacity: 0; transition: opacity 500ms ease-out; pointer-events: none; }
@keyframes gate-flash { 0% { opacity: 0; } 30% { opacity: 0.55; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* The hero fades in when the gate opens, not while it is still hidden behind it. */
  html.gated .hero__inner { animation-play-state: paused; }
  .gate__title { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .gate__foot { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s backwards; }
}
@media (prefers-reduced-motion: reduce) {
  .gate__cue::before { animation: none; opacity: 1; }
  .gate__stage:hover .gate__emblem::before { transform: none; }
  .gate__title,
  .gate__foot { transition: opacity 200ms ease; }
  .gate.is-opening .gate__title,
  .gate.is-opening .gate__foot { transform: none; }
  .gate.is-opening .gate__flash { animation: none; }
  .gate.is-leaving { transition-duration: 300ms; }
}
