/* ============================================================
   AI ALCHEMISTS — site styles (home, /apply, /skills)
   Brand Kit · Print. Black page, white type, gray secondary,
   #262626 hairlines. Headlines: Redaction, one word per headline in
   Redaction 35 Italic. Body, labels, buttons: Golos Text.
   Buttons: liquid glass. Color only lives in the art.
   ============================================================ */

/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: "Redaction";
  src: url("assets/fonts/Redaction-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Redaction 35";
  src: url("assets/fonts/Redaction_35-Italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: block;
}

:root {
  /* palette */
  --black:  #000000;
  --white:  #FFFFFF;
  --gray:   #B4B4B4;   /* secondary text */
  --line:   #262626;   /* hairlines */
  --raised: #0A0A0A;   /* cards, fields */
  --ember:  #D24E24;   /* errors only */

  /* type */
  --font-head:   "Redaction", Georgia, "Times New Roman", serif;
  --font-accent: "Redaction 35", "Redaction", Georgia, serif;
  --font-body:   "Golos Text", system-ui, -apple-system, sans-serif;

  /* ambient cobalt glow rising off the left and right edges (hero, apply page) */
  --edge-glow:
    radial-gradient(ellipse 38% 75% at 0% 55%, rgba(30, 70, 196, 0.38) 0%, rgba(30, 70, 196, 0.12) 45%, rgba(30, 70, 196, 0) 75%),
    radial-gradient(ellipse 38% 75% at 100% 55%, rgba(30, 70, 196, 0.38) 0%, rgba(30, 70, 196, 0.12) 45%, rgba(30, 70, 196, 0) 75%);

  /* layout */
  --maxw: 1080px;
  --pad:  clamp(20px, 5vw, 48px);
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* column layout so a short page (apply) keeps the footer at the bottom */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }
/* apply page: the section stretches to the footer so its glow has no hard edge */
main:has(> .apply--page),
main:has(> .page) { display: flex; flex-direction: column; }

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

/* Browser autofill (iOS Safari, Chrome) paints filled fields white/yellow.
   Keep our dark, see-through fields: white text, and push the autofill
   background change out so far it never shows. Firefox uses a filter. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  transition: background-color 99999s ease-out 0s, color 99999s ease-out 0s;
}
input:autofill { filter: none; }

/* the one rough-cut word in a headline */
h1 em, h2 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

/* emphasis inside body copy stays in Golos */
p em { font-style: italic; color: var(--white); }

/* ---------- shared ---------- */
.section__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- liquid glass buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--white);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 30px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.btn:disabled { opacity: 0.6; cursor: default; }

.btn--primary {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn--small {
  padding: 9px 18px;
  font-size: 0.875rem;
}

/* ---------- nav ---------- */
/* menu button | centered wordmark | account (sign in / you) */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px var(--pad);
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.nav__logo { width: 21px; height: 24px; object-fit: contain; }
.nav__wordmark {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.375rem;
  line-height: 1;
  white-space: nowrap;
}

/* the menu button: three thin lines of different lengths, no circle.
   On hover they slide out to the same length. */
.nav__menu {
  justify-self: start;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav__menu span {
  position: absolute;
  left: 10px;
  height: 1.75px;
  border-radius: 2px;
  background: var(--white);
  transition: width 0.3s cubic-bezier(0.3, 0.55, 0.2, 1), background 0.2s ease;
}
.nav__menu span:nth-child(1) { top: 15px; width: 24px; }
.nav__menu span:nth-child(2) { top: 21px; width: 16px; }
.nav__menu span:nth-child(3) { top: 27px; width: 10px; }
.nav__menu:hover span,
.nav__menu:focus-visible span { width: 24px; }
.nav__menu:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-radius: 10px; }

/* right side: signed out = Sign in + Subscribe; signed in = you */
.nav__right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav__signin {
  color: var(--gray);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav__signin:hover { color: var(--white); }
.nav__icon {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.nav__me {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 4px 14px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.nav__me:hover { border-color: rgba(255, 255, 255, 0.45); }
.nav__avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #8ad694, #4fa85b);
  color: #06210b;
  font-weight: 500;
  font-size: 0.9375rem;
  text-transform: uppercase;
}
.nav__email { font-size: 0.875rem; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* signed in or out: site.js sets <html data-auth="in"> */
html:not([data-auth="in"]) [data-auth="in"] { display: none !important; }
html[data-auth="in"] [data-auth="out"] { display: none !important; }

@media (max-width: 760px) {
  .nav { padding: 12px var(--pad); }
  .nav__signin,
  .nav__cta,
  .nav__email { display: none; }
  .nav__icon { display: flex; }
  .nav__me { padding: 4px; }
  .nav__wordmark { font-size: 1.25rem; }
}

/* ---------- menu drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(340px, 86vw);
  display: flex;
  flex-direction: column;
  padding: 68px 26px 24px;
  overflow-y: auto;
  background: #070708;
  border-right: 1px solid var(--line);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.3, 0.55, 0.2, 1);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close {
  position: absolute;
  top: 16px;
  left: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.drawer__close:hover { background: rgba(255, 255, 255, 0.08); }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer__main a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.drawer__main a:hover,
.drawer__main a[aria-current="page"] { color: #b8f5c0; }
.drawer .drawer__sub { margin-top: 30px; }
.drawer__sub a,
.drawer__sub button {
  display: block;
  padding: 5px 0;
  border: 0;
  background: none;
  color: var(--gray);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
.drawer__sub a:hover,
.drawer__sub button:hover,
.drawer__sub a[aria-current="page"] { color: var(--white); }
.drawer__social { display: flex; gap: 16px; margin: 20px 0 0; }
.drawer__social a { color: var(--gray); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 3px; }
.drawer__social a:hover { color: var(--white); }
.drawer__brand {
  margin: auto 0 0;
  padding-top: 32px;
  font-family: var(--font-head);
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.14);
}
html.has-drawer, html.has-drawer body { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 100px) var(--pad) clamp(28px, 3.5vw, 44px);
  /* glow fades to black at the bottom so the hero flows into the tools strip */
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 65%, var(--black) 100%),
    var(--edge-glow),
    var(--black);
}
/* print grain over the hero, so the page has the same finish as the art */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* blueprint grid — the "lab" texture */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(100% 80% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(100% 80% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}
.hero__title-row { margin: 0 0 24px; }
.hero__title-text .kicker { margin-bottom: 16px; }

.hero__headline {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.25rem, 7.2vw, 5.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto clamp(36px, 6vw, 44px);
}

/* hero: newsletter signup first, the operators application as a quiet link */
.hero__cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero__signup { width: 100%; max-width: 540px; }
.hero__signup .signup { max-width: 100%; }
.hero__signup .signup__input { font-size: max(16px, 1.0625rem); }
.hero__signup .btn--primary { padding: 14px 26px; }

/* ---------- callout card ----------
   Cobalt (the logo's flat color) neon rim with a halftone glow around it,
   printed-dot style to match the grain in the art. Layers, back to front:
   .callout box-shadow  — the soft, smooth bloom
   ::before             — the halftone dots (radial glow masked to a dot grid)
   ::after              — the card face, plus a light that follows the cursor
   form + note          — content */
.callout {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  padding: 14px 14px 16px;
  border-radius: 26px;
  box-shadow:
    0 0 22px rgba(52, 98, 255, 0.55),
    0 0 90px rgba(30, 70, 196, 0.35);
  animation: callout-ignite 1.4s 1.1s ease-out both;
}
/* a card-shaped block of cobalt, blurred out past the card's edge, then
   cut into dots. The padding gives the blur room inside the mask box. */
.callout::before {
  content: "";
  position: absolute;
  inset: -52px;
  padding: 52px;
  z-index: -1;
  border-radius: 78px;
  background: linear-gradient(#4A76FF, #2F5BF0) content-box;
  filter: blur(18px);
  -webkit-mask: radial-gradient(circle, #000 1.1px, transparent 1.6px) 0 0 / 4px 4px;
  mask: radial-gradient(circle, #000 1.1px, transparent 1.6px) 0 0 / 4px 4px;
  animation: callout-breathe 4.5s 2.5s ease-in-out infinite;
  will-change: transform, opacity;  /* the blurred halo animates as one GPU layer */
  pointer-events: none;
}
.callout::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 2px solid rgba(150, 176, 255, 0.95);
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(110, 145, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(30, 70, 196, 0.22) 0%, rgba(30, 70, 196, 0.04) 100%),
    #03050C;
  box-shadow:
    inset 0 0 22px rgba(64, 105, 255, 0.7),
    inset 0 0 4px rgba(170, 192, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: border-color 0.25s ease;
  pointer-events: none;
}
.callout:hover::after,
.callout:focus-within::after { border-color: rgba(176, 196, 255, 1); }
.callout:hover,
.callout:focus-within {
  box-shadow:
    0 0 26px rgba(62, 108, 255, 0.75),
    0 0 110px rgba(30, 70, 196, 0.45);
}
.callout .signup {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}
.callout .signup:focus-within { border-color: rgba(176, 196, 255, 0.7); }
.callout .signup.is-error { border-color: var(--ember); }
/* the button picks up a cobalt tint — still glass, just lit from the card */
.callout .btn--primary {
  border-color: rgba(176, 196, 255, 0.65);
  background: linear-gradient(180deg, rgba(120, 152, 255, 0.42) 0%, rgba(30, 70, 196, 0.32) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 22px rgba(30, 70, 196, 0.55);
}
.callout .btn--primary:hover {
  border-color: rgba(214, 224, 255, 0.9);
  background: linear-gradient(180deg, rgba(140, 170, 255, 0.55) 0%, rgba(40, 82, 210, 0.42) 100%);
}
.callout .signup__note { margin-top: 14px; color: rgba(214, 224, 255, 0.72); }
.callout .signup__done { text-align: center; }

@keyframes callout-ignite {
  0%   { box-shadow: 0 0 0 rgba(52, 98, 255, 0), 0 0 0 rgba(30, 70, 196, 0); }
  35%  { box-shadow: 0 0 34px rgba(80, 120, 255, 0.9), 0 0 130px rgba(30, 70, 196, 0.55); }
  100% { box-shadow: 0 0 22px rgba(52, 98, 255, 0.55), 0 0 90px rgba(30, 70, 196, 0.35); }
}
@keyframes callout-breathe {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.72; transform: scale(0.97); }
}

/* ---------- page entrance ----------
   The whole page blurs in: it starts soft and invisible, then sharpens
   while a circle of visibility grows from the middle of the screen out to
   the edges. A tiny inline script in <head> adds .is-revealing (so with JS
   off the page just shows), and site.js removes it when the reveal ends,
   so the mask and blur aren't left on the page afterwards. */
@property --reveal {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
html.is-revealing body {
  -webkit-mask-image: radial-gradient(circle at 50% 45vh, #000 var(--reveal), transparent calc(var(--reveal) + 30vmax));
  mask-image: radial-gradient(circle at 50% 45vh, #000 var(--reveal), transparent calc(var(--reveal) + 30vmax));
  animation: page-reveal 0.7s cubic-bezier(0.3, 0.55, 0.2, 1) both;
}
/* the homepage keeps the long, slow reveal; every other page is quicker */
html.is-revealing.reveal-long body { animation-duration: 1.5s; }
@keyframes page-reveal {
  from { --reveal: -30vmax; filter: blur(14px); }
  to   { --reveal: 130vmax; filter: blur(0); }
}
/* homepage: the one big "Subscribe free" button. Cobalt glass with the
   glow the old signup card had; it opens /subscribe. */
.hero__subscribe {
  gap: 12px;
  padding: 20px 42px;
  font-size: 1.125rem;
  border: 1.5px solid rgba(176, 196, 255, 0.8);
  background: linear-gradient(180deg, rgba(120, 152, 255, 0.45) 0%, rgba(30, 70, 196, 0.35) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 22px rgba(52, 98, 255, 0.6),
    0 0 90px rgba(30, 70, 196, 0.4);
  animation: subscribe-ignite 1.4s 1.1s ease-out backwards;
}
@keyframes subscribe-ignite {
  0%   { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 rgba(52, 98, 255, 0), 0 0 0 rgba(30, 70, 196, 0); }
  35%  { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 34px rgba(80, 120, 255, 0.9), 0 0 130px rgba(30, 70, 196, 0.55); }
  100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 22px rgba(52, 98, 255, 0.6), 0 0 90px rgba(30, 70, 196, 0.4); }
}
.hero__subscribe:hover {
  border-color: rgba(214, 224, 255, 0.95);
  background: linear-gradient(180deg, rgba(140, 170, 255, 0.58) 0%, rgba(40, 82, 210, 0.45) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 28px rgba(62, 108, 255, 0.8),
    0 0 110px rgba(30, 70, 196, 0.5);
}
.hero__subscribe svg { transition: transform 0.2s ease; }
.hero__subscribe:hover svg { transform: translateX(3px); }
.hero__proof { margin-top: 20px; }
@media (max-width: 600px) {
  .hero__subscribe { width: 100%; justify-content: center; padding: 18px 28px; }
}

.btn--hero {
  padding: 18px 32px;
  font-size: 1.125rem;
}
.hero__alt {
  font-size: 0.9375rem;
  color: var(--gray);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero__alt:hover {
  color: var(--white);
  border-bottom-color: var(--line);
}

/* ---------- newsletter signup ---------- */
.signup {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: border-color 0.2s ease;
}
.signup:focus-within { border-color: rgba(255, 255, 255, 0.45); }
.signup.is-error { border-color: var(--ember); }
.signup__input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--white);
  font-family: var(--font-body);
  /* 16px min keeps iOS Safari from auto-zooming when the field is focused */
  font-size: max(16px, 1rem);
}
.signup__input::placeholder { color: rgba(255, 255, 255, 0.45); }
.signup .btn--primary { padding: 12px 22px; }
.signup__done { margin: 0; padding: 10px 0; color: var(--white); font-weight: 500; }
.signup__note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--gray);
}
.signup__note strong { color: var(--white); font-weight: 500; }
.signup__live {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  animation: live-pulse 2s ease-out infinite;
  vertical-align: middle;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ---------- tools ---------- */
.tools {
  padding: clamp(16px, 2.5vw, 28px) var(--pad) clamp(36px, 6vw, 56px);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.tools__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gray);
  margin-bottom: clamp(16px, 3vw, 28px);
}
/* conveyor-belt marquee — slides slowly, seamless loop via duplicated group.
   Wide spacing makes one set ≈ screen width and the strong edge fade hides
   the loop seam, so it reads as a single stream rather than visible dupes. */
.tools__marquee {
  width: min(900px, 100%);
  margin-inline: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.tools__track {
  display: flex;
  width: max-content;
  will-change: transform;  /* keep the conveyor on the GPU */
  animation: tools-scroll 46s linear infinite;  /* ~same speed as before with 13 icons */
}
.tools__group {
  display: flex;
  align-items: center;
  gap: clamp(36px, 7vw, 72px);
  padding-inline-end: clamp(36px, 7vw, 72px);
}
.tools__group img {
  height: clamp(40px, 8vw, 56px);
  width: auto;
  opacity: 0.85;
  flex-shrink: 0;
}
@keyframes tools-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- standalone pages (skills) ----------
   Same frame as the apply page: fills the screen, cobalt edge glow,
   lab grid, content centered in a glowing callout card. */
.page {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(56px, 9vw, 110px) var(--pad);
  text-align: center;
  background: var(--edge-glow), var(--black);
}
.page__inner { position: relative; width: 100%; max-width: 560px; }
.page .kicker { margin-bottom: 16px; }
.page .section__title { margin-bottom: 16px; }
.page__lead {
  color: var(--gray);
  max-width: 480px;
  margin: 0 auto clamp(28px, 5vw, 40px);
  text-wrap: balance;
}

/* ---------- application ---------- */
/* on its own page (apply.html): fill the screen and center the form */
.apply.apply--page {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 0;
  background: var(--edge-glow), var(--black);
}
.apply.apply--page .apply__inner { position: relative; width: 100%; max-width: 560px; }

/* the form inside the glowing callout card, everything lit cobalt */
.apply__card {
  margin-top: 8px;
  padding: clamp(22px, 4vw, 32px);
  text-align: left;
}
.apply__card .apply__progress { margin: 0 auto clamp(20px, 3vw, 26px); }
.apply__card .apply__progress span.is-active {
  background: linear-gradient(90deg, #8AA6FF, #3D6BFF);
  box-shadow: 0 0 8px rgba(61, 107, 255, 0.7);
}
.apply__card .field {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.apply__card .field:focus {
  border-color: rgba(176, 196, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(61, 107, 255, 0.2);
}
.apply__card .apply__opt { background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.12); }
.apply__card .apply__opt:hover { border-color: rgba(132, 160, 255, 0.55); }
.apply__card .apply__opt.is-selected {
  border-color: rgba(150, 176, 255, 0.9);
  background: rgba(30, 70, 196, 0.24);
  box-shadow: 0 0 18px rgba(30, 70, 196, 0.35);
}
.apply__card .apply__opt-num { background: rgba(255, 255, 255, 0.08); }
.apply__card .apply__opt.is-selected .apply__opt-num {
  background: linear-gradient(180deg, #6F8FFF, #2F5BF0);
  color: var(--white);
  box-shadow: 0 0 10px rgba(61, 107, 255, 0.8);
}
/* "select all" options: a square check instead of a number */
.apply__check {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 0 3px;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.apply__opt--check.is-selected .apply__check {
  border-color: transparent;
  background: linear-gradient(180deg, #6F8FFF, #2F5BF0);
  box-shadow: 0 0 10px rgba(61, 107, 255, 0.8);
}
.apply__opt--check.is-selected .apply__check::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 3.5px;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.apply__card .apply__back { border-color: rgba(255, 255, 255, 0.14); }
.apply__card .apply__back:hover { border-color: rgba(176, 196, 255, 0.6); }
.apply__card .apply__done { text-align: center; padding: 8px 0; }
.apply {
  padding: clamp(56px, 9vw, 110px) var(--pad);
  scroll-margin-top: 80px;  /* keeps a direct #apply jump clear of the sticky nav */
  text-align: center;
  border-top: 1px solid var(--line);
}
.apply__inner { max-width: 480px; margin: 0 auto; }
.apply__inner .kicker { margin-bottom: 16px; }
.apply__lead {
  color: var(--gray);
  max-width: 460px;
  margin: -4px auto clamp(28px, 5vw, 38px);
}
.apply__form { text-align: left; }
.apply__form .field {
  width: 100%;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: max(16px, 1rem);
  outline: none;
  transition: border-color 0.2s ease;
}
.apply__form .field::placeholder { color: rgba(255, 255, 255, 0.4); }
.apply__form .field:focus { border-color: rgba(255, 255, 255, 0.45); }
.apply__form textarea.field { resize: vertical; min-height: 140px; line-height: 1.5; }

/* ----- multi-step machinery ----- */
.apply__progress {
  display: flex; gap: 8px; justify-content: center;
  margin: -8px auto clamp(24px, 4vw, 32px);
}
.apply__progress span {
  width: 34px; height: 3px; border-radius: 2px;
  background: var(--line); transition: background 0.3s ease;
}
.apply__progress span.is-active { background: var(--white); }

.apply__step { display: none; flex-direction: column; gap: 12px; }
.apply__step.is-active { display: flex; }
.apply__step-q {
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  letter-spacing: -0.01em;
  color: var(--white); margin: 0 0 2px; line-height: 1.2;
}
.apply__step-hint { color: var(--gray); font-size: 0.9375rem; margin: -4px 0 6px; }

/* 1–4 experience scale */
.apply__scale { display: flex; flex-direction: column; gap: 10px; }
.apply__opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--raised); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; cursor: pointer;
  color: var(--white); font-family: var(--font-body); font-size: 1rem; text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.apply__opt:hover { border-color: #4a4a4a; }
.apply__opt.is-selected { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }
.apply__opt-num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 500; font-size: 0.9375rem;
  background: var(--line); color: var(--white); transition: background 0.18s ease, color 0.18s ease;
}
.apply__opt.is-selected .apply__opt-num { background: var(--white); color: var(--black); }
.apply__opt-label { display: block; font-weight: 500; line-height: 1.25; }
.apply__opt-sub { display: block; color: var(--gray); font-size: 0.875rem; margin-top: 2px; }

/* nav row */
.apply__nav { display: flex; gap: 12px; margin-top: 10px; }
.apply__nav .btn { flex: 1; }
.apply__back {
  flex: 0 0 auto; background: transparent; border: 1px solid var(--line);
  color: var(--gray); border-radius: 999px; padding: 12px 22px;
  font-family: var(--font-body); font-size: 0.9375rem; cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.apply__back:hover { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }

.apply__err { color: var(--ember); font-size: 0.875rem; text-align: left; margin: 2px 0 0; }
.apply__err:empty { display: none; }
.apply__done .lead { color: var(--gray); margin-top: 8px; }
/* confirmation heading: clearly smaller than the main "Apply to become…" title */
.apply__done .section__title { font-size: clamp(1.75rem, 3.6vw, 2.25rem); margin-bottom: 8px; }

/* ---------- footer ---------- */
.footer--minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px var(--pad) 28px;
  font-size: 0.8125rem;
  color: var(--gray);
  text-align: center;
}
.footer__privacy { color: var(--gray); text-decoration: none; opacity: 0.75; }
.footer__privacy:hover { opacity: 1; color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 600px) {
  .nav__wordmark { font-size: 1.25rem; }
  /* the band is narrow on phones — ease the fade so icons aren't half-hidden */
  .tools__marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }
  /* pill signup gets tight on phones: stack field over button */
  .signup {
    flex-direction: column;
    align-items: stretch;
    padding: 6px;
    border-radius: 24px;
  }
  .signup__input { padding: 12px 16px; }
  .callout { padding: 10px 10px 14px; }
  .callout::before { inset: -34px -26px; }

  /* apply page: start under the nav instead of centering in the screen,
     and give the card real breathing room */
  .apply.apply--page {
    min-height: 0;
    align-items: flex-start;
    padding: 40px var(--pad) 64px;
  }
  .apply--page .apply__lead { margin-bottom: 28px; text-wrap: balance; }
  .callout.apply__card { padding: 24px 20px 22px; border-radius: 22px; }
  .page {
    min-height: 0;
    align-items: flex-start;
    padding: 40px var(--pad) 64px;
  }
  .apply__card .apply__progress { margin-bottom: 22px; }
  .apply__card .apply__step { gap: 14px; }
  .apply__card .apply__step-q { font-size: 1.375rem; }
  .apply__card .field { padding: 14px 16px; border-radius: 12px; }
  .apply__card .apply__nav .btn--hero { padding: 15px 20px; font-size: 1rem; }
  .apply__card .apply__back { padding: 12px 18px; }
  .apply__card .apply__opt { padding: 12px 14px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tools__track { animation: none; }
  .signup__live { animation: none; }
  .callout, .callout::before { animation: none; }
  .hero__subscribe { animation: none; }
  html.is-revealing body { animation: none; -webkit-mask-image: none; mask-image: none; }
}
