/* Apply page. Self-contained so it can be deployed on its own; fonts, tokens,
   buttons and the badge are carried over from css/styles.css unchanged. */

/* ==========================================================================
   Fonts — self-hosted, Latin subset
   ========================================================================== */

@font-face {
  font-family: "Neue Montreal";
  src: url("assets/fonts/neue-montreal-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallbacks keep layout still while the web fonts swap in. */
@font-face {
  font-family: "Neue Montreal Fallback";
  src: local("Arial");
  size-adjust: 97.63%;
  ascent-override: 99.66%;
  descent-override: 23.25%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  size-adjust: 101.67%;
  ascent-override: 98.85%;
  descent-override: 29.02%;
  line-gap-override: 0%;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --font-display: "Neue Montreal", "Neue Montreal Fallback", system-ui, sans-serif;
  --font-body: "Geist", "Geist Fallback", system-ui, sans-serif;

  --color-bg: #fbfbfb;
  --color-page: #f5f6f8;            /* page background: a touch darker, barely cool */
  --color-surface: #ffffff;
  --color-ink: #000000;
  --color-ink-soft: #181819;
  --color-ink-nav: #4b4b4d;
  --color-muted: #6b6b6b;           /* 4.9:1 on --color-page */
  --color-line: rgb(0 0 0 / 0.03);
  --color-line-strong: rgb(0 0 0 / 0.07);
  --color-field: rgb(0 0 0 / 0.12);   /* 3:1-ish edge so inputs read as inputs */
  --color-live: #26bb67;
  --color-live-halo: rgb(38 187 103 / 0.15);
  --color-error: #c62828;             /* 5.6:1 on white */

  --radius: 10px;
  --header-h: 72px;
  --gutter: clamp(17px, 4.2vw, 40px);
  --max-w: 1280px;

  --shadow-raised-inset: inset 0.5px 0.5px 2px rgb(255 255 255 / 0.56), inset -0.5px -0.5px 2px #000;
  --shadow-raised: var(--shadow-raised-inset), 2px 2px 16px rgb(0 0 0 / 0.16);
  --shadow-glass: inset 0 1px 0 rgb(255 255 255 / 0.9), inset 0 0 11px rgb(135 135 135 / 0.14), 0 1px 1px rgb(0 0 0 / 0.05), 0 2px 4px -1px rgb(0 0 0 / 0.06);
  --shadow-elevated:
    inset 0 0 0 1px rgb(255 255 255 / 0.9),
    inset 0 1px 0 #fff,
    inset 0 -1px 0 #fff,
    inset 0 0 16px rgb(255 255 255 / 0.8),
    0 2px 12px -4px rgb(0 0 0 / 0.05),
    0 10px 24px -14px rgb(0 0 0 / 0.1),
    0 22px 44px -24px rgb(0 0 0 / 0.12);
  --glass-shine:
    radial-gradient(60% 80% at 20% 0%, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0) 70%),
    linear-gradient(115deg, rgb(255 255 255 / 0) 45%, rgb(255 255 255 / 0.6) 50%, rgb(255 255 255 / 0) 55%);

  --glass-bg: linear-gradient(180deg, rgb(255 255 255 / 0.98) 0%, rgb(255 255 255 / 0.88) 100%);
  --glass-border: rgb(0 0 0 / 0.08);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-glass: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  background: var(--color-page);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
p,
ul,
fieldset {
  margin: 0;
}

ul[role="list"] {
  list-style: none;
  padding: 0;
}

svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

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

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

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: var(--gutter);
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--color-ink);
  color: var(--color-bg);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background-color: var(--color-surface);
  box-shadow: inset 0 -1px 0 var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 38px;
  height: 38px;
}

/* Wordmark: the display face, set tight */
.brand__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.site-header__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-ink-nav);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding-inline: 18px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(180deg, #000 0%, #333 100%);
  box-shadow: var(--shadow-raised);
  color: var(--color-bg);
}

/* Leading icon: slightly tighter start padding keeps the label optically centred */
.btn--icon {
  gap: 8px;
  padding-inline-start: 14px;
}

.btn--icon svg {
  flex: none;
}

.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

/* 38px visual, 44px touch target */
.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  box-shadow: var(--shadow-glass);
  color: var(--color-ink);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out);
}

.icon-btn::after {
  content: "";
  position: absolute;
  inset: -4px;
}

.icon-btn:active {
  transform: scale(0.94);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
  }

  .btn--primary:hover {
    box-shadow:
      var(--shadow-raised-inset),
      1px 2px 3px rgb(0 0 0 / 0.14),
      2px 8px 14px -4px rgb(0 0 0 / 0.26),
      3px 18px 30px -10px rgb(0 0 0 / 0.32);
  }
}

/* ==========================================================================
   Badge
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px 9px 10px;
  border-radius: 8px;
  background: var(--color-surface);
  /* Inner glow plus a hairline and soft lift so it reads on the page tint */
  box-shadow:
    inset 0 0 10px rgb(135 135 135 / 0.2),
    0 0 0 1px rgb(0 0 0 / 0.05),
    0 1px 2px rgb(0 0 0 / 0.06),
    0 3px 8px -3px rgb(0 0 0 / 0.1);
  color: var(--color-ink-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

.badge__dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-live-halo);
}

.badge__dot::before,
.badge__dot::after {
  content: "";
  grid-area: 1 / 1;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-live);
}

/* ==========================================================================
   Page layout
   ========================================================================== */

/* Phones: intro, then the form. From 960px they sit side by side and the
   intro stays in view while the form scrolls. */
.apply {
  display: grid;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 64px;
}

@media (min-width: 960px) {
  .apply {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    align-items: start;
    gap: 64px;
    padding-top: 56px;
    padding-bottom: 96px;
  }

  .apply__intro {
    position: sticky;
    top: 56px;
  }
}

.apply__title {
  max-width: 13em;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1rem + 3vw, 3.25rem);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.apply__lede {
  max-width: 30em;
  margin-top: 12px;
  color: var(--color-ink-nav);
  font-size: clamp(0.9375rem, 0.85rem + 0.35vw, 1.125rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* ==========================================================================
   What we look for
   ========================================================================== */

.skills {
  margin-top: 28px;
}

.skills__title {
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skills__list {
  display: grid;
  max-width: 30em;
  border-top: 1px solid var(--color-line-strong);
}

.skills__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--color-line-strong);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.skills__list svg {
  flex: none;
  color: var(--color-live);
}

/* The nice-to-have reads quieter than the must-haves */
.skills__list .skills__plus {
  color: var(--color-muted);
  font-weight: 400;
}

.skills__plus svg {
  color: var(--color-muted);
}

/* ==========================================================================
   Form
   ========================================================================== */

/* Elevated glass, square like the pricing cards */
/* Rows are spaced with margins, not grid gap, so a closed follow-up panel
   (zero height, zero margin) takes no space at all */
.form {
  display: grid;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid #fff;
  background:
    var(--glass-shine),
    linear-gradient(180deg, rgb(255 255 255 / 0.94) 0%, rgb(255 255 255 / 0.74) 100%);
  box-shadow: var(--shadow-elevated);
}

.form > * + * {
  margin-top: 20px;
}

.form > .form__title + * {
  margin-top: 24px;
}

.form__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

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

/* One title style for every question, inputs and choice groups alike */
.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  color: var(--color-ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.field__hint {
  color: var(--color-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

/* 16px text keeps iOS Safari from zooming in on focus */
.field__input {
  width: 100%;
  height: 46px;
  padding-inline: 14px;
  border: 1px solid var(--color-field);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.04);
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input::placeholder {
  color: #9a9a9c;
}

.field__input:focus-visible {
  outline: none;
  border-color: var(--color-ink);
  box-shadow: 0 0 0 3px rgb(0 0 0 / 0.08);
}

.field__input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.field__input[aria-invalid="true"]:focus-visible {
  box-shadow: 0 0 0 3px rgb(198 40 40 / 0.12);
}

/* Phone: country code and number read as one input, split by a hairline */
.phone {
  display: flex;
  height: 46px;
  border: 1px solid var(--color-field);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone:focus-within {
  border-color: var(--color-ink);
  box-shadow: 0 0 0 3px rgb(0 0 0 / 0.08);
}

.phone:has([aria-invalid="true"]) {
  border-color: var(--color-error);
}

.phone__country {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding-inline: 14px 10px;
  border-right: 1px solid var(--color-line-strong);
}

.phone__code {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.phone__chevron {
  color: var(--color-muted);
}

/* Invisible but real: taps and keyboard land on the native select */
.phone__select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  font-size: 1rem;
  cursor: pointer;
}

.phone__number {
  flex: 1;
  min-width: 0;
  padding-inline: 12px 14px;
  border: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: transparent;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.phone__number::placeholder {
  color: #9a9a9c;
}

.phone__number:focus-visible,
.phone__select:focus-visible {
  outline: none;
}

.field__error {
  color: var(--color-error);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.field__error:empty {
  display: none;
}

/* Role and specialty: whole-card radio and checkbox options. Legends ignore
   the fieldset's grid gap, so they float to take margins like a block. */
.choices legend {
  float: left;
  width: 100%;
  margin-bottom: 8px;
}

.choices__grid {
  clear: both;
  display: grid;
  gap: 8px;
}

@media (min-width: 520px) {
  .choices__grid:not(.choices__grid--stack) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.choice input {
  position: absolute;
  top: 15px;
  left: 14px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-ink);
  cursor: pointer;
}

.choice__body {
  display: grid;
  gap: 3px;
  height: 100%;
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--color-field);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.choice__body strong {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.choice__body span {
  color: var(--color-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.choice--wide {
  grid-column: 1 / -1;
}

.choice input:checked + .choice__body {
  border-color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-ink);
}

.choice input:focus-visible {
  outline: none;
}

.choice input:focus-visible + .choice__body {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

.choices[aria-invalid="true"] .choice__body {
  border-color: var(--color-error);
}

@media (hover: hover) {
  .choice:hover input:not(:checked) + .choice__body {
    border-color: rgb(0 0 0 / 0.3);
  }
}

/* "Both" follow-up: every specialty as compact one-line toggles in two
   short groups, so seven options don't read as seven cards */
.chips-group + .chips-group {
  margin-top: 14px;
}

.chips-group__title {
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-check {
  position: relative;
  cursor: pointer;
}

.chip-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-check span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--color-field);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

/* A tick slides in ahead of the label once it's picked */
.chip-check span::before {
  content: "";
  width: 0;
  height: 10px;
  margin-right: -6px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
  transition: width 0.35s var(--ease-out), margin-right 0.35s var(--ease-out);
}

.chip-check input:checked + span {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-bg);
}

.chip-check input:checked + span::before {
  width: 10px;
  margin-right: 0;
}

.chip-check input:focus-visible + span {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

@media (hover: hover) {
  .chip-check:hover input:not(:checked) + span {
    border-color: rgb(0 0 0 / 0.3);
  }
}

.choices[aria-invalid="true"] .chip-check span {
  border-color: var(--color-error);
}

/* Follow-up panels. Closed, a panel has no height and no margin. Opening,
   the row grows to the content's height (grid 0fr -> 1fr) and the form card
   grows with it; the content fades and settles in just behind. */
.form > .collapse {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
}

.form > .collapse.is-open {
  grid-template-rows: 1fr;
  margin-top: 14px;
}

.collapse__inner {
  min-height: 0;
  overflow: hidden;
}

.collapse__inner > * {
  opacity: 0;
  transform: translateY(-8px);
}

.collapse.is-open .collapse__inner > * {
  opacity: 1;
  transform: none;
}

/* The follow-up question sits in a quiet inset so it reads as part of the
   role answer above it */
.choices--sub {
  padding: 14px;
  border-radius: var(--radius);
  background: rgb(0 0 0 / 0.025);
}

.choices--sub legend {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

/* Same button as "Book a Discovery Call" on the site, with the white mark
   where the Zoom icon sits; full width on phones */
.form__submit {
  width: 100%;
  margin-top: 24px;
}

@media (min-width: 520px) {
  .form__submit {
    justify-self: start;
    width: auto;
    min-width: 140px;
  }
}

.form__status {
  color: var(--color-error);
  font-size: 0.8125rem;
  text-align: center;
}

.form__status:empty {
  display: none;
}

.apply__done {
  align-self: start;
  color: var(--color-ink-nav);
  font-size: 1rem;
}

.apply__done:focus {
  outline: none;
}

/* ==========================================================================
   Thank-you card
   ========================================================================== */

.thanks {
  position: fixed;
  inset: 0;
  width: min(100% - 2 * var(--gutter), 440px);
  max-width: none;
  margin: auto;
  padding: 28px 24px 26px;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 0;
  color: var(--color-ink);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.9) 0%, rgb(255 255 255 / 0.68) 100%);
  box-shadow:
    var(--shadow-elevated),
    0 40px 80px -32px rgb(0 0 0 / 0.22);
  -webkit-backdrop-filter: saturate(1.8) blur(24px);
  backdrop-filter: saturate(1.8) blur(24px);
}

.thanks::backdrop {
  background: rgb(236 238 242 / 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.thanks__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--glass-shine);
}

.thanks__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
}

.thanks__marks {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.thanks__logo,
.thanks__avatar {
  flex: none;
  width: 44px;
  height: 44px;
}

/* Profile photo: a circle with a hairline rim so it sits on glass like the logo tile */
.thanks__avatar {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 4px 10px -4px rgb(0 0 0 / 0.25);
}

.thanks__title {
  position: relative;
  margin-top: 22px;
  padding-right: 8px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

/* ==========================================================================
   Motion
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.8s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }

  .badge__dot::after {
    animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  }

  .form > .collapse {
    transition:
      grid-template-rows 0.6s var(--ease-glass),
      margin-top 0.6s var(--ease-glass);
  }

  .collapse__inner > * {
    transition: opacity 0.25s ease, transform 0.6s var(--ease-glass);
  }

  .collapse.is-open .collapse__inner > * {
    transition: opacity 0.45s 0.12s ease, transform 0.6s 0.06s var(--ease-glass);
  }

  .thanks[open] {
    animation: glass-in 0.6s var(--ease-glass) both;
  }

  .thanks[open]::backdrop {
    animation: fade-in 0.4s ease both;
  }

  .thanks[open] .thanks__logo {
    animation: pop 0.5s 0.2s var(--ease-out) both;
  }

  .thanks[open] .thanks__avatar {
    animation: pop 0.5s 0.28s var(--ease-out) both;
  }

  .apply__done:not([hidden]) {
    animation: rise 0.6s var(--ease-out) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

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

@keyframes glass-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    filter: blur(6px);
  }
}

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

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

