/* The Join us block on the About page (V04, Kevin, 20 Nov 2026: moved from Team). Its rules from
   src/team.css (the block, its buttons, the application form), the site pages' tokens mapped. */
.ab-join {
  --tm-pad: max(16px, 4.6vw);
  --mh-caps: 11px;
  --mh-h2: clamp(28px, 3.05vw, 44px);
  --mh-body: 16px;
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --color-theme-fg: #fff;
  --color-theme-bg: #000;
  color-scheme: dark;
  color: #fff;
}
.tm-caps {
  margin: 0;
  font-size: var(--mh-caps);
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tm-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin-top: 16px;
  padding: 0 12px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-theme-fg) 20%, transparent);
  font-size: var(--mh-caps);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: box-shadow 0.3s ease;
}
a.tm-linkedin:hover { box-shadow: inset 0 0 0 1px var(--color-theme-fg); }
span.tm-linkedin { opacity: 0.35; }
.tm-linkedin svg { width: 7px; height: 7px; }
.tm-join {
  position: relative;
  display: flex;
  min-height: 100svh;
  margin-top: 0; /* right under the section above, no black band (Kevin, 20 Nov 2026) */
  overflow: hidden;
  background: #000;
  color: #fff;
}
.tm-join-bg,
.tm-join-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tm-join-bg { inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(3px); }
.tm-join-veil { background: linear-gradient(rgb(0 0 0 / 0.15), rgb(0 0 0 / 0.1) 50%, rgb(0 0 0 / 0.45)); }
.tm-join-row {
  position: relative;
  display: grid;
  align-self: flex-end;
  width: 100%;
  gap: 40px;
  padding: max(140px, 18svh) max(16px, 4.6vw) max(16px, 2.5vw);
}
.tm-join-title {
  margin: 0;
  font-size: var(--mh-h1, clamp(36px, 5vw, 72px));
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}
.tm-join-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 40px);
  border-radius: var(--radius-panel, 16px);
  background: rgb(0 0 0 / 0.6);
  backdrop-filter: blur(20px);
}
.tm-join-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tm-join-line { height: 1px; margin-top: 16px; background: rgb(255 255 255 / 0.2); }
.tm-join-text {
  margin: 60px 0 0;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.tm-join-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tm-join .tm-link { margin-top: 24px; align-self: flex-start; font-size: 14px; color: #fff; }
@media (min-width: 48rem) {
  .tm-join-row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: end; }
  .tm-join-title { grid-column: 1 / 7; }
  .tm-join-card { grid-column: 7 / 13; min-height: 440px; }
  .tm-join-text { margin-top: auto; padding-top: 60px; }
}
.tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  min-height: 44px;
  padding: 4px 4px 4px 17px;
  border-radius: 8px;
  background: #fff;
  color: #181818;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tm-btn-roll { position: relative; display: block; overflow: hidden; }
.tm-btn-roll > span { display: block; text-shadow: 0 1.5em currentColor; transition: transform 0.55s var(--ease-reveal); }
.tm-btn:hover .tm-btn-roll > span, .tm-btn:focus-visible .tm-btn-roll > span { transform: translateY(-1.5em); }
.tm-btn-sq { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 5px; background: #000; color: #fff; }
.tm-btn-sq svg { width: 8px; height: 8px; transition: transform 0.5s var(--ease-reveal); }
.tm-btn:hover .tm-btn-sq svg, .tm-btn:focus-visible .tm-btn-sq svg { transform: rotate(45deg); }
.tm-btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35); }
.tm-btn-ghost .tm-btn-sq { background: #fff; color: #000; }
.tm-link {
  font-size: var(--mh-body);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.tm-link-roll { display: inline-block; overflow: hidden; vertical-align: bottom; }
.tm-link-roll > span { display: block; text-shadow: 0 1.5em currentColor; transition: transform 0.55s var(--ease-reveal, cubic-bezier(0.16, 1, 0.3, 1)); }
.tm-link:is(:hover, :focus-visible) .tm-link-roll > span { transform: translateY(-1.5em); }
.ap {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-panel, 16px);
  background: rgb(10 10 10 / 0.86);
  backdrop-filter: blur(24px);
  color: #fff;
  overflow: auto;
}
.ap::backdrop { background: rgb(0 0 0 / 0.55); backdrop-filter: blur(4px); }
.ap[open] { animation: ap-in 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes ap-in { from { opacity: 0; transform: translateY(24px); } }
.ap-card { display: flex; flex-direction: column; padding: clamp(24px, 2.8vw, 40px); }
.ap-head-right { display: inline-flex; align-items: center; gap: 16px; }
.ap-close { width: 28px; height: 28px; margin: -6px -6px -6px 0; border-radius: 5px; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.ap-close:hover { background: rgb(255 255 255 / 0.1); }
.ap-progress { height: 100%; background: #fff; transform-origin: left; transform: scaleX(0.333); transition: transform 0.8s var(--ease-reveal, cubic-bezier(0.16, 1, 0.3, 1)); }
.ap-step { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.ap-step.is-on { display: flex; flex-direction: column; gap: 18px; padding-top: 44px; animation: ap-step 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes ap-step { from { opacity: 0; transform: translateY(12px); } }
.ap-q { margin: 0 0 6px; padding: 0; font-size: 22px; line-height: 1.3; letter-spacing: -0.03em; }
legend.ap-q { float: left; width: 100%; }
.ap-q + * { clear: both; }
.ap-sub { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: rgb(255 255 255 / 0.65); }
.ap-field { display: grid; gap: 6px; font-size: 11px; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(255 255 255 / 0.65); }
.ap-field em, .ap-file em { font-style: normal; opacity: 0.6; text-transform: none; letter-spacing: 0; }
.ap-field input, .ap-field textarea {
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.25);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-transform: none;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s ease;
}
.ap-field input:focus, .ap-field textarea:focus { border-color: #fff; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-chip {
  padding: 9px 14px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.ap-chip:hover { border-color: #fff; }
.ap-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ap-chip:has(input:checked) { border-color: #fff; background: #fff; color: #000; }
.ap-chip:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.ap-files { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-file {
  position: relative;
  max-width: 100%;
  padding: 11px 14px;
  border: 1px dashed rgb(255 255 255 / 0.35);
  border-radius: 8px;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.ap-file:hover { border-color: #fff; }
.ap-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ap-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.ap-back { padding: 8px 0; color: rgb(255 255 255 / 0.7); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.ap-back:hover { color: #fff; }
.ap-thanks { display: none; }
.ap-thanks.is-on { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 44px; }
.tm-join-intro { display: flex; flex: 1; flex-direction: column; }
.tm-join-card .ap {
  width: auto;
  max-height: none;
  margin: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  overflow: visible;
}
.tm-join-card .ap[hidden], .tm-join-intro[hidden] { display: none; }
.tm-join-card .ap:not([hidden]) { animation: ap-in 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.tm-join-card .ap-card { padding: 0; }
