@font-face {
  font-family: "Epilogue";
  src: url("/assets/fonts/epilogue-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d1a13;
  --ink-2: #16271e;
  --ink-3: #1f3328;
  --deep: #0a2117;
  --paper: #f2f4f0;
  --paper-2: #e6ebe4;
  --white: #ffffff;
  --soft: #46544b;
  --on-dark: #eef2ee;
  --on-dark-soft: #a8b7ad;
  --green: #0f5132;
  --green-bright: #1d7a4c;
  --gold: #e8b931;
  --gold-hover: #f3c94a;
  --gold-ink: #1b1405;
  --danger: #a3261b;
  --ok: #1d6b42;
  --field-line: #c7d0c9;

  --font: "Epilogue", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: 1rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.02rem + 0.85vw, 1.875rem);
  --step-head: clamp(2.25rem, 1.05rem + 4.6vw, 5.25rem);
  --step-display: clamp(3.1rem, 0.4rem + 10.6vw, 11.25rem);

  --margin: clamp(18px, 3.4vw, 48px);
  --gutter: clamp(16px, 2vw, 28px);
  --section: clamp(96px, 12vw, 176px);
  --topbar: 64px;
  --radius: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 16px);
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--on-dark);
  background: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

ol,
ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

h2 {
  max-width: 20ch;
  font-size: var(--step-head);
}

a {
  color: inherit;
}

p {
  max-width: 70ch;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.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-link {
  position: absolute;
  left: var(--margin);
  top: -80px;
  z-index: 50;
  padding: 12px 18px;
  color: var(--gold-ink);
  background: var(--gold);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: top 200ms var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font-size: var(--step-body);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 420ms var(--ease-out),
    translate 520ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 90ms;
}

.btn-gold {
  color: var(--gold-ink);
  background: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-hover);
}

.btn-quiet {
  color: var(--ink);
  background: var(--paper-2);
}

.btn-quiet:hover {
  background: #dbe2d9;
}

.btn-small {
  min-height: 40px;
  padding: 0 20px;
  font-size: var(--step-small);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  cursor: not-allowed;
  transform: none;
  opacity: 0.72;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  animation: spin 700ms linear infinite;
}

.btn.is-loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Top bar ------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--topbar);
  padding: 0 var(--margin);
  background: var(--ink);
  transition: transform 460ms var(--ease-soft);
}

.topbar.is-hidden {
  transform: translateY(-100%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark img {
  width: 32px;
  height: 32px;
  transition: transform 700ms var(--spring);
}

.wordmark:hover img {
  transform: rotate(-14deg) scale(1.12);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: var(--step-small);
}

.topnav a:not(.btn) {
  color: var(--on-dark-soft);
  text-decoration: none;
  transition: color 200ms ease;
}

.topnav a:not(.btn):hover {
  color: var(--on-dark);
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: clamp(28px, 5vh, 56px);
  min-height: calc(100svh - var(--topbar));
  padding: clamp(28px, 6vh, 64px) var(--margin) clamp(40px, 7vh, 72px);
}

/* The logos are ringed and joined by a fiber drawn on a canvas
   (network.js, createFiber); light runs along it and circles each logo.
   The logos themselves stay still, centred in their rings. */
.federation-wrap {
  position: relative;
  width: max-content;
  max-width: 100%;
}

.fiber {
  position: absolute;
  top: -40px;
  left: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  pointer-events: none;
}

.federation {
  --logo: clamp(46px, 5.6vw, 84px);
  --ring: calc(var(--logo) + 20px);
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3.2vw, 52px);
  width: max-content;
  max-width: 100%;
}

.federation li {
  position: relative;
  z-index: 1;
}

.federation li:nth-child(1) { --i: 0; }
.federation li:nth-child(2) { --i: 1; }
.federation li:nth-child(3) { --i: 2; }
.federation li:nth-child(4) { --i: 3; }
.federation li:nth-child(5) { --i: 4; }

.logo-disc {
  display: grid;
  place-items: center;
  width: var(--ring);
  height: var(--ring);
  border-radius: 50%;
  background: var(--ink);
}

.federation img {
  width: var(--logo);
  height: var(--logo);
  object-fit: contain;
  animation: logo-in 1300ms var(--spring) both;
  animation-delay: calc(120ms + var(--i) * 120ms);
}

.logo-tile {
  border-radius: 24%;
}

/* Logos appear in place, from the centre of their ring. */
@keyframes logo-in {
  0% {
    opacity: 0;
    transform: scale(0.6);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.hero-title {
  align-self: center;
  font-size: var(--step-display);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.hero-title .line {
  display: block;
}

.hero-title .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  vertical-align: top;
}

.hero-title .word > span {
  display: inline-block;
  transform-origin: left bottom;
  animation: word-up 1150ms var(--ease-out) both;
}

.hero-title .line:nth-child(1) .word:nth-of-type(1) > span { animation-delay: 520ms; }
.hero-title .line:nth-child(1) .word:nth-of-type(2) > span { animation-delay: 610ms; }
.hero-title .line:nth-child(2) .word:nth-of-type(1) > span { animation-delay: 700ms; }
.hero-title .line:nth-child(2) .word:nth-of-type(2) > span { animation-delay: 790ms; }

@keyframes word-up {
  from {
    transform: translateY(112%) rotate(6deg);
  }
  to {
    transform: none;
  }
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto;
  gap: 24px var(--gutter);
  align-items: end;
}

.hero-foot > * {
  animation: rise 1000ms var(--ease-out) both;
}

.hero-foot > :nth-child(1) { animation-delay: 1000ms; }
.hero-foot > :nth-child(2) { animation-delay: 1100ms; }
.hero-foot > :nth-child(3) { animation-delay: 1200ms; }

.hero-lead {
  max-width: 34ch;
  font-size: var(--step-lead);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero-meta {
  display: grid;
  gap: 2px;
  color: var(--on-dark-soft);
}

.hero-meta span:first-child {
  color: var(--on-dark);
  font-weight: 600;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 26px;
  height: 44px;
  margin-left: -13px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px rgba(238, 242, 238, 0.32); /* taste-skill-ignore: a drawn outline, not a shadow */
  animation: rise 900ms var(--ease-out) 1500ms both;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--gold);
  animation: cue 1.8s var(--ease-soft) infinite;
}

@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Partners: logos arrive with the scroll ------------------------------ */

.partners {
  padding: var(--section) var(--margin);
}

.scrub-words .sw {
  display: inline-block;
  opacity: var(--o, 1);
  translate: 0 var(--y, 0px);
  transition: opacity 160ms linear;
}

/* Same fiber as the hero; it draws itself in with the scroll. */
.partner-field {
  position: relative;
  margin-top: clamp(56px, 7vw, 104px);
}

.partner-list {
  --size: clamp(92px, 10vw, 148px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px var(--gutter);
}

.partner {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  text-align: center;
}

.partner-logo {
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ink-2);
  transition: background-color 300ms ease;
}

.partner:hover .partner-logo {
  background: var(--ink-3);
}

.partner-logo img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.partner-name {
  font-weight: 650;
  line-height: 1.25;
}

.partner-role {
  font-size: var(--step-small);
  color: var(--on-dark-soft);
}

/* Scroll reveal ------------------------------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(6px);
  transition:
    opacity 900ms var(--ease-out),
    transform 1000ms var(--ease-out),
    filter 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Register: the form inside a moving network ------------------------- */

.register {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 56px var(--gutter);
  align-items: center;
  min-height: 100svh;
  padding: var(--section) var(--margin);
  background: var(--deep);
  overflow: hidden;
}

.network {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.register-info {
  grid-column: 1 / span 5;
}

.register-state {
  position: relative;
  margin-top: 24px;
  padding-left: 26px;
  font-size: var(--step-lead);
  line-height: 1.3;
}

.register-state::before,
.register-state::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--on-dark-soft);
}

.register-state::after {
  opacity: 0;
}

.register-state[data-state="open"]::before,
.register-state[data-state="open"]::after {
  background: var(--gold);
}

.register-state[data-state="open"]::after {
  animation: pulse 2.4s ease-out infinite;
}

.register-state[data-state="closed"]::before,
.register-state[data-state="full"]::before {
  background: #f3a59b;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

.register-rows {
  display: grid;
  gap: 16px;
  margin-top: clamp(32px, 4vw, 48px);
}

.register-rows dd {
  font-size: var(--step-lead);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: var(--step-small);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gold);
  text-underline-offset: 4px;
}

.quota {
  display: block;
  max-width: 420px;
  height: 8px;
  margin-top: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.quota-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1600ms var(--ease-out);
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-top: 32px;
  color: var(--on-dark-soft);
}

.countdown-grid {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}

.countdown-grid strong {
  display: inline-block;
  min-width: 1.4ch;
  color: var(--on-dark);
  font-size: var(--step-lead);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-align: right;
}

.countdown-grid strong.tick {
  animation: tick 520ms var(--ease-out);
}

@keyframes tick {
  from {
    transform: translateY(-30%);
    opacity: 0.2;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* The panel, its running border and the circuit that joins the fields. */

.form-wrap {
  position: relative;
  grid-column: 7 / span 6;
}

.form-trace {
  position: absolute;
  inset: -1px;
  z-index: 2;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  overflow: visible;
  pointer-events: none;
}

.form-trace rect {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.form-trace .trace-a {
  stroke: var(--gold);
  stroke-dasharray: var(--seg, 0px) var(--gap, 2000px);
  animation: trace-run 7s linear infinite;
}

.form-trace .trace-b {
  stroke: #6fd39c;
  stroke-dasharray: var(--seg-b, 0px) var(--gap-b, 2000px);
  animation: trace-run-back 9s linear infinite;
}

@keyframes trace-run {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: calc(-1 * var(--perimeter, 2000px));
  }
}

@keyframes trace-run-back {
  from {
    stroke-dashoffset: calc(-0.5 * var(--perimeter, 2000px));
  }
  to {
    stroke-dashoffset: calc(0.5 * var(--perimeter, 2000px));
  }
}

.form-panel {
  --pad: clamp(22px, 3vw, 44px);
  --pad-l: clamp(54px, 5vw, 76px);
  --rail-x: 27px;
  position: relative;
  display: grid;
  gap: 22px;
  padding: var(--pad) var(--pad) var(--pad) var(--pad-l);
  color: var(--ink);
  background: var(--white);
  border-radius: 24px;
}

.form-panel h3 {
  font-size: var(--step-lead);
  letter-spacing: -0.03em;
}

.circuit {
  position: absolute;
  left: calc(var(--rail-x) - 1px);
  top: var(--c-top, 0px);
  width: 2px;
  height: var(--c-height, 0px);
  border-radius: 2px;
  background: #e1e7e0;
}

.circuit-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--green-bright);
  transform: scaleY(var(--c-fill, 0));
  transform-origin: top;
  transition: transform 700ms var(--ease-out);
}

[data-step] {
  position: relative;
}

[data-step]::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(var(--rail-x) - var(--pad-l) - 7px);
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #cbd3cc;
  background: var(--white);
  transition:
    background-color 300ms ease,
    border-color 300ms ease,
    transform 500ms var(--spring);
}

[data-step]:focus-within::before {
  border-color: var(--gold);
  transform: scale(1.3);
}

[data-step].is-done::before {
  border-color: var(--green-bright);
  background: var(--green-bright);
  transform: scale(1.15);
}

[data-step].is-done:focus-within::before {
  transform: scale(1.3);
}

/* The fields arrive one after another; once settled they carry no animation,
   so a correction nudge or a closed state applies cleanly. */
.js .form-wrap:not(.is-in) [data-step],
.js .form-wrap:not(.is-in) .form-panel > h3,
.js .form-wrap:not(.is-in) .form-panel > .btn {
  opacity: 0;
  transform: translateY(18px);
}

.js .form-wrap.is-in:not(.is-settled) [data-step],
.js .form-wrap.is-in:not(.is-settled) .form-panel > h3,
.js .form-wrap.is-in:not(.is-settled) .form-panel > .btn {
  animation: rise 800ms var(--ease-out) both;
  animation-delay: calc(250ms + var(--i, 0) * 70ms);
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  padding: 0;
  font-size: var(--step-small);
  font-weight: 600;
  transition: color 200ms ease;
}

.field > legend {
  margin-bottom: 8px;
}

.field:focus-within > label {
  color: var(--green);
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid var(--field-line);
  border-radius: 12px;
  background: var(--white);
  font-size: var(--step-body);
  outline: 4px solid transparent;
  outline-offset: 0;
  transition:
    border-color 200ms ease,
    outline-color 260ms ease,
    background-color 200ms ease;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #6c7a71;
}

input:hover,
textarea:hover {
  border-color: #9faca3;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--green);
  outline: 4px solid rgba(15, 81, 50, 0.14);
  outline-offset: 0;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--danger);
  outline-color: rgba(163, 38, 27, 0.12);
}

.field.is-invalid,
.check.is-invalid {
  animation: nudge 420ms var(--ease-out);
}

@keyframes nudge {
  0%,
  100% {
    transform: none;
  }
  25% {
    transform: translateX(-6px);
  }
  55% {
    transform: translateX(5px);
  }
  80% {
    transform: translateX(-2px);
  }
}

.choices,
.rating {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.choices label,
.rating label {
  position: relative;
  display: block;
  cursor: pointer;
}

.choices input,
.rating input,
.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choices span,
.rating span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 12px;
  border: 1.5px solid var(--field-line);
  border-radius: 12px;
  font-size: var(--step-small);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    color 260ms ease,
    transform 360ms var(--ease-out);
}

.choices label:hover span,
.rating label:hover span {
  border-color: var(--green);
}

.choices input:checked + span,
.rating input:checked + span {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
  animation: pop 420ms var(--ease-out);
}

.choices input:focus-visible + span,
.rating input:focus-visible + span,
.check input:focus-visible + span::before {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@keyframes pop {
  0% {
    transform: scale(0.94);
  }
  60% {
    transform: scale(1.03);
  }
  100% {
    transform: none;
  }
}

.check {
  position: relative;
  display: block;
  cursor: pointer;
}

.check span {
  display: block;
  padding-left: 38px;
  font-size: var(--step-small);
  line-height: 1.5;
  color: var(--soft);
}

.check span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--field-line);
  border-radius: 7px;
  background: var(--white) center / 14px no-repeat;
  transition: background-color 220ms ease, border-color 220ms ease, transform 360ms var(--ease-out);
}

.check input:checked + span::before {
  border-color: var(--green);
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: scale(1.06);
}

.check.is-invalid span::before {
  border-color: var(--danger);
}

.form-message {
  min-height: 1.5em;
  font-size: var(--step-small);
  font-weight: 500;
}

.form-message:empty {
  min-height: 0;
  margin-top: -22px;
}

.form-message[data-type="error"] {
  color: var(--danger);
}

.form-message[data-type="success"] {
  color: var(--ok);
}

.form-panel.is-closed [data-step] {
  opacity: 0.55;
}

/* Feedback ----------------------------------------------------------- */

.feedback {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px var(--gutter);
  align-items: start;
  padding: var(--section) var(--margin);
}

.feedback-intro {
  grid-column: 1 / span 5;
}

.feedback-intro p {
  max-width: 36ch;
  margin-top: 24px;
  color: var(--on-dark-soft);
  font-size: var(--step-lead);
  line-height: 1.32;
}

.feedback-form {
  --pad-l: var(--pad);
  grid-column: 7 / span 6;
}

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

.footer {
  display: grid;
  gap: 20px;
  padding: clamp(80px, 10vw, 140px) var(--margin) 24px;
  color: var(--on-dark-soft);
  overflow: hidden;
}

.footer-word {
  justify-self: start;
  max-width: none;
  color: var(--on-dark);
  font-size: 12.2vw;
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.8;
  white-space: nowrap;
  transform-origin: left bottom;
}

.footer-legal {
  font-size: var(--step-small);
}

@supports (animation-timeline: view()) {
  .footer-word {
    animation: word-settle linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }

  @keyframes word-settle {
    from {
      transform: scale(0.9) translateY(24%);
      opacity: 0.2;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}

/* Dialog ------------------------------------------------------------- */

.dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); /* taste-skill-ignore: the dialog floats */
}

.dialog::backdrop {
  background: rgba(4, 12, 8, 0.7);
}

.dialog[open] {
  animation: dialog-in 560ms var(--spring);
}

.dialog[open]::backdrop {
  animation: fade-in 360ms ease;
}

.dialog.is-closing {
  animation: dialog-out 220ms ease forwards;
}

.dialog.is-closing::backdrop {
  animation: fade-out 220ms ease forwards;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dialog-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

.dialog-body {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 36px 32px 32px;
}

.dialog-body h2 {
  font-size: var(--step-lead);
}

.dialog-body p {
  color: var(--soft);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.success-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
}

.success-mark circle {
  fill: var(--green);
  transform-origin: center;
  animation: pop 600ms var(--ease-out) both;
}

.success-mark path {
  fill: none;
  stroke: var(--white);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 620ms var(--ease-out) 260ms forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

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

.not-found {
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 20px;
  min-height: 100svh;
  padding: 40px var(--margin);
}

.not-found img {
  width: 72px;
  height: 72px;
  animation: logo-in 1200ms var(--spring) both;
}

.not-found h1 {
  font-size: var(--step-head);
  animation: rise 900ms var(--ease-out) 200ms both;
}

.not-found p {
  color: var(--on-dark-soft);
  font-size: var(--step-lead);
  animation: rise 900ms var(--ease-out) 300ms both;
}

.not-found .btn {
  animation: rise 900ms var(--ease-out) 400ms both;
}

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

@media (max-width: 1100px) {
  .hero-foot {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-lead {
    grid-column: 1 / -1;
  }

  .register-info,
  .form-wrap,
  .feedback-intro,
  .feedback-form {
    grid-column: 1 / -1;
  }

  .register {
    min-height: 0;
  }

}

@media (max-width: 760px) {
  :root {
    --topbar: 58px;
  }

  .topnav a:not(.btn) {
    display: none;
  }

  .wordmark span {
    font-size: var(--step-small);
  }

  .federation {
    --logo: clamp(36px, 10vw, 46px);
    --ring: calc(var(--logo) + 14px);
    gap: clamp(6px, 2.4vw, 12px);
  }

  .hero {
    padding-bottom: 88px;
  }


  .hero-foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-foot .btn {
    justify-self: start;
  }

  .partner-list {
    --size: 72px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .partner {
    grid-template-columns: var(--size) minmax(0, 1fr);
    grid-template-rows: auto auto;
    justify-items: start;
    align-items: center;
    gap: 0 18px;
    text-align: left;
  }

  .partner-logo {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .partner-name {
    align-self: end;
  }

  .partner-role {
    align-self: start;
  }

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

  .dialog-body {
    padding: 30px 24px 24px;
  }
}

@media (max-width: 440px) {
  .form-panel {
    --pad: 18px;
    --pad-l: 44px;
    --rail-x: 21px;
  }

  .choices span {
    padding: 8px 6px;
    font-size: 0.875rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal {
    transform: none;
    filter: none;
  }

  .footer-word {
    animation: none !important;
  }
}
