/* JESY landing. Tokens follow the app's Miami theme (lib/theme/theme_spec.dart),
   with sunset orange in place of the app's pink accent. */

:root {
  --bg: #190A36;
  --bg-deep: #10051F;
  --surface: #221043;
  --surface-2: #2A1450;
  --ink: #FFFFFF;
  --ink-dim: rgba(255, 255, 255, 0.68);
  --ink-faint: rgba(255, 255, 255, 0.54);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #FF8A3D;
  --accent-hover: #FF9D5A;
  --accent-ink: #190A36;
  --accent-soft: rgba(255, 138, 61, 0.14);
  --ok: #4EFFE6;
  --error: #FF8A8A;

  --font-heading: 'Archivo', 'Helvetica Neue', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter Tight', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 72px;

  color-scheme: dark;
}

/* ---- Base ---- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 14px/1 var(--font-ui);
}
.skip:focus { top: 16px; }

/* ---- Type ---- */

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Two lines, "Where electronic" over "music does business.", sized so the
   second line always fits its column. */
h1 {
  font-size: clamp(32px, calc((100vw - 2 * var(--gutter)) / 8.6), 64px);
  line-height: 0.98;
  text-wrap: wrap;
}
@media (min-width: 901px) {
  h1 { font-size: clamp(56px, 6.2vw, 88px); }
}

h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* The emphasised phrase in a heading, as the app sets it. */
h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
h1 em { color: var(--accent); }

.overline {
  font: 600 12px/1 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.overline--live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-dim);
}
.overline--live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 30em;
  text-wrap: pretty;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-full);
  font: 600 15px/1 var(--font-ui);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease), transform 90ms var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:disabled { opacity: 0.6; cursor: progress; }

.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16px; }

/* ---- Nav ---- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease);
}
.nav.is-scrolled {
  background: rgba(25, 10, 54, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo { display: inline-flex; flex: none; }
.logo img { width: auto; height: 40px; }

.nav__links { display: flex; gap: 32px; }

.nav__links a, .nav__signin {
  font: 500 14px/1 var(--font-ui);
  color: var(--ink-dim);
  transition: color 160ms var(--ease);
}
.nav__links a:hover, .nav__signin:hover { color: var(--ink); }
.nav__signin { padding: 13px 0; }

.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(40px, 7vh, 88px)) 0 clamp(80px, 10vw, 136px);
  overflow: hidden;
}

/* The one gradient on the page: a low sun behind the photo. */
.hero::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -30%;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 138, 61, 0.30), rgba(255, 138, 61, 0));
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(48px, 5vw, 80px);
  align-items: center;
}

.hero__copy > * + * { margin-top: 28px; }
.hero__copy .lead { text-wrap: balance; }
.hero__copy h1 { margin-top: 24px; }
.hero__copy .join { margin-top: 40px; }

.hero__media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-xl);
}

/* ---- Deal card (an illustration of the app, not live data) ---- */

.deal {
  position: absolute;
  left: -40px;
  bottom: 40px;
  width: 280px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: rgba(25, 10, 54, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(6, 2, 16, 0.55);
}

.deal__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.deal__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.deal__title {
  margin-top: 14px;
  font: 400 24px/1.1 var(--font-heading);
  letter-spacing: -0.02em;
}
.deal__meta {
  margin-top: 6px;
  font: 400 13px/1.4 var(--font-body);
  color: var(--ink-faint);
}

.deal__rows {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.deal__rows div {
  font-variant-numeric: tabular-nums;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font: 500 13px/1 var(--font-ui);
}
.deal__rows div:last-child { border-bottom: 0; padding-bottom: 0; }
.deal__rows dt { color: var(--ink-faint); }
.deal__rows dd { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.deal__ok {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

/* ---- Join form ---- */

.join { max-width: 520px; }

.join__field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 6px 6px 6px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.join__field:focus-within {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}
.join__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 400 16px/1 var(--font-body);
}
.join__field input::placeholder { color: var(--ink-faint); }
/* Keep the browser's autofill tint from painting a pale box in the field. */
.join__field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100px #22143E inset;
  caret-color: var(--ink);
}
.join__field .btn { height: 100%; }
.join.is-invalid .join__field { border-color: var(--error); }

.join__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.join__status {
  font: 500 14px/1.4 var(--font-ui);
  color: var(--ink);
}
.join__status:empty { display: none; }
.join__status { margin-top: 14px; }
.join__status[data-tone="ok"] { color: var(--ok); }
.join__status[data-tone="error"] { color: var(--error); }

.join__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-faint);
}
.join__note a {
  color: var(--ink-dim);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}
.join__note a:hover { color: var(--ink); text-decoration-color: currentColor; }

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

.section {
  padding: clamp(80px, 10vw, 144px) 0;
  border-top: 1px solid var(--line);
}

.section__head { max-width: 760px; }
.section__head h2 { margin-top: 20px; }
.section__head .lead { margin-top: 20px; }

/* ---- Steps ---- */

.steps {
  list-style: none;
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
}
.steps__n {
  display: block;
  font: 600 13px/1 var(--font-ui);
  letter-spacing: 0.08em;
  color: var(--accent);
}
.steps__text h3 {
  margin-top: 20px;
  font-size: clamp(30px, 3vw, 40px);
}
.steps__text p {
  margin-top: 12px;
  max-width: 24em;
  color: var(--ink-dim);
}

/* ---- Product vignettes (illustrations of the app, not live data) ---- */

.ui {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 236px;
  margin-bottom: 32px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
}
.ui svg { flex: none; width: 12px; height: 12px; }

.ui__chips { display: flex; gap: 6px; margin-bottom: 4px; }
.ui__chips span {
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-dim);
}
.ui__chips .is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.ui__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
}
.ui__row.is-on {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.ui__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.ui__row.is-on .ui__avatar { background: var(--accent-soft); color: var(--accent); }
.ui__who { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ui__who b { font-size: 14px; font-weight: 600; line-height: 1.2; }
.ui__who small {
  display: flex;
  align-items: center;
  gap: 3px;
  font: 400 12px/1.2 var(--font-body);
  color: var(--ink-faint);
  white-space: nowrap;
}
.ui__who small svg { width: 11px; height: 11px; margin-left: 5px; color: var(--accent); }
.ui__btn {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.ui__label {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ui__msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 64%;
  padding: 11px 14px;
  border-radius: 16px;
}
.ui__msg small {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}
.ui__msg b { font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.ui__msg--in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.ui__msg--out {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom-right-radius: 4px;
}

.ui__pill {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  margin-top: auto;
  padding: 7px 12px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.ui__pill svg { color: var(--accent); }
.ui__pill--ok {
  align-self: flex-start;
  margin-top: 0;
  background: rgba(78, 255, 230, 0.10);
  color: var(--ok);
}
.ui__pill--ok svg { color: var(--ok); }

.ui__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  list-style: none;
}
.ui__track::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 16.67%;
  right: 16.67%;
  height: 2px;
  background: var(--accent);
}
.ui__track li {
  position: relative;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-dim);
}
.ui__track li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--surface);
}
.ui__track li:last-child { color: var(--ink); }

.ui__review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ui__stars { display: flex; gap: 2px; color: var(--accent); }
.ui__stars svg { width: 14px; height: 14px; }
.ui__review small { font: 400 12px/1.2 var(--font-body); color: var(--ink-faint); }

/* ---- Also in the app ---- */

.also {
  margin-top: clamp(48px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.also__label {
  font: 600 12px/1 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.also__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.also__list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  font: 500 14px/1 var(--font-ui);
  color: var(--ink-dim);
}
.also__list svg { flex: none; width: 14px; height: 14px; color: var(--accent); }

/* ---- Stats ---- */

.stats {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 28px clamp(40px, 6vw, 96px);
  align-items: end;
}
.stats__title {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.05;
}
.stats__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.stats__list li {
  padding-left: 20px;
  border-left: 1px solid var(--line-strong);
}
.stats__list strong {
  display: block;
  font: 400 clamp(44px, 4.6vw, 64px)/1 var(--font-heading);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stats__list span {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-dim);
}
.stats__source {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* ---- Who it's for: the hub picks the panel ---- */

.roles {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hub {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
}
.hub__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hub__lines line {
  stroke: var(--line-strong);
  stroke-width: 1.5;
  transition: stroke 220ms var(--ease);
}
/* The chosen side's line carries a stream of dots into JESY. */
.hub__lines line.is-active {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1 9;
}
@media (prefers-reduced-motion: no-preference) {
  .hub__lines line.is-active { animation: hub-flow 900ms linear infinite; }
}
@keyframes hub-flow { to { stroke-dashoffset: 10; } }

.hub__core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 26%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 138, 61, 0.45);
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: 0 0 0 12px rgba(255, 138, 61, 0.05), 0 0 48px rgba(255, 138, 61, 0.16);
  transform: translate(-50%, -50%);
}
.hub__core img { width: 70%; height: auto; }

.hub__node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 22%;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--ink-dim);
  font: 600 11px/1 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: border-color 200ms var(--ease), color 200ms var(--ease), background-color 200ms var(--ease);
}
.hub__node svg { width: 24px; height: 24px; }

/* While the sides turn over on their own, a ring fills around the active one:
   the time until the next, and a hint that each side can be chosen. */
.hub__node .hub__ring {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  transform: rotate(-90deg);
  pointer-events: none;
}
.hub__ring circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 308;
  stroke-dashoffset: 308;
  opacity: 0;
}
.roles.is-auto .hub__node[aria-selected="true"] .hub__ring circle {
  opacity: 1;
  animation: hub-ring var(--dwell, 5s) linear forwards;
}
@keyframes hub-ring { to { stroke-dashoffset: 0; } }
.hub__node:hover { border-color: rgba(255, 255, 255, 0.34); color: var(--ink); }
.hub__node[aria-selected="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-deep));
  color: var(--ink);
}
.hub__node[aria-selected="true"] svg { color: var(--accent); }
.hub__node:focus-visible { border-radius: 50%; outline-offset: 4px; }
.hub__node--artists { left: 50%; top: 11.5%; }
.hub__node--venues { left: 86.25%; top: 76.25%; }
.hub__node--brands { left: 13.75%; top: 76.25%; }

.role-panels { display: grid; }
.role {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.role + .role { margin-top: 24px; }
/* With JS the panels share one cell, so switching never moves the page. */
.js .role {
  grid-area: 1 / 1;
  margin-top: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 260ms var(--ease), visibility 0s linear 260ms;
}
.js .role.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity 260ms var(--ease);
}
.role img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.role__body { padding: clamp(24px, 3vw, 36px); }
.role__body h3 {
  margin-top: 12px;
  font-size: clamp(26px, 2.6vw, 34px);
}
.role__list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 20px 0 28px;
}
.role__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.role__list svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---- Closing ---- */

.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(112px, 14vw, 200px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
/* The same low sun, setting at the foot of the page. */
.closing::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1000px, 140vw);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, 62%);
  background: radial-gradient(closest-side, rgba(255, 138, 61, 0.32), rgba(255, 138, 61, 0));
  pointer-events: none;
}
.closing__inner { position: relative; }
.closing h2 {
  max-width: 12em;
  margin: 0 auto;
  font-size: clamp(40px, 6vw, 84px);
}
.closing .btn { margin-top: 48px; }

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

.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.footer .logo img { height: 32px; }
.footer__links { display: flex; gap: 28px; margin-left: auto; }
.footer__links a, .footer__legal {
  font: 500 14px/1 var(--font-ui);
  color: var(--ink-faint);
}
.footer__links a { padding: 12px 0; transition: color 160ms var(--ease); }
.footer__links a:hover { color: var(--ink); }

/* ---- 404 ---- */

.missing {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 28px;
  padding: var(--gutter);
  text-align: center;
}
.missing h1 { font-size: clamp(40px, 6vw, 72px); }
.missing .btn, .missing .logo { justify-self: center; }

/* ---- Reveal (only when JS is running and motion is welcome) ---- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
    transition-delay: var(--delay, 0ms);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

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

@media (max-width: 1080px) {
  .deal { left: -24px; }
}

/* Three vignettes no longer fit side by side: each step becomes a row,
   picture beside its words. */
@media (max-width: 1100px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .steps > li {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
  }
  .steps .ui { margin-bottom: 0; }
}

@media (max-width: 640px) {
  .steps > li { display: block; }
  .steps .ui { margin-bottom: 24px; }
  .steps__text h3 { margin-top: 16px; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { justify-self: start; max-width: 520px; }
  .hero::before { right: -40%; bottom: -10%; }

  /* The card leaves the photo and overlaps only its foot. */
  .deal {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    max-width: 340px;
    margin: -88px 16px 0;
  }

  .stats__grid { grid-template-columns: minmax(0, 1fr); }

  .roles { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hub { max-width: 340px; }
}

@media (max-width: 640px) {
  .stats__list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hub__node { gap: 6px; font-size: 10px; }
  .hub__node svg { width: 20px; height: 20px; }
}

@media (max-width: 560px) {
  :root { --nav-h: 64px; }

  .nav__actions { gap: 16px; }
  .btn--sm { height: 44px; padding: 0 18px; }

  .join__field {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
  }
  .join__field input {
    flex: none;
    height: 56px;
    padding: 0 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.04);
  }
  .join__field input:focus { border-color: var(--accent); }
  .join__field:focus-within { background: none; }
  .join.is-invalid .join__field { border: 0; }
  .join.is-invalid .join__field input { border-color: var(--error); }
  .join__field .btn { height: 56px; }

  .footer__inner { flex-wrap: wrap; gap: 24px; }
  .footer__links { margin-left: 0; order: 3; width: 100%; }
  .footer__legal { margin-left: auto; }
}

@media (max-width: 380px) {
  .nav__signin { display: none; }
}
