/* ============================================================
   SWARM — The Internet of Agents  ·  GOLD FORK
   Abyssal black + glowing gold · stenciled cybernetic anemones
   ============================================================ */

:root {
  --bg: #050505;
  --bg-deep: #000000;
  --ink: #f7f2e6;
  --ink-dim: rgba(247, 242, 230, 0.72);
  --ink-faint: rgba(247, 242, 230, 0.45);
  --accent: #d9a038;
  --accent-warm: #ffdf8a;
  --accent-soft: #f2c15a;
  --line: rgba(217, 160, 56, 0.18);
  --panel: rgba(6, 6, 8, 0.6);
  --serif: "Bitter", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Fixed scene layers ---------- */

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(10) infinite;
}

@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-5%); } 60% { transform: translate(-3%,-2%); }
  80% { transform: translate(4%,4%); }
}

/* stenciled cybernetic anemone tentacles (left/right edges) */
.tentacle-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
}

main {
  position: relative;
  z-index: 3;
  transition: opacity 0.5s ease;
}

/* gentle darkening veil over the scene when reading content */
.scene-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--bg-deep);
  opacity: 0;
  transition: opacity 0.6s ease;
}

body[data-scrolled] .scene-veil { opacity: 0.45; }

/* static fallback if WebGL is unavailable */
body.no-webgl #scene { display: none; }
body.no-webgl {
  background:
    radial-gradient(ellipse 90% 45% at 62% 42%, rgba(217, 160, 56, 0.22), transparent 65%),
    linear-gradient(to top, #1a1204 0%, #050505 38%, #000000 75%);
}

/* ---------- Unified identity and navigation header ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(600px, 1fr) minmax(640px, 1fr);
  align-items: center;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.nav--scrolled {
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: rgba(217, 160, 56, 0.32);
}

.nav__identity-row {
  width: 100%;
  min-height: 74px;
  padding: 0.55rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(0, 3fr);
  align-items: center;
  column-gap: clamp(2rem, 3vw, 3rem);
}

.identity {
  min-width: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  padding-inline: clamp(0.45rem, 1vw, 0.9rem);
  color: var(--ink);
  text-decoration: none;
}

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

.identity--swarm {
  justify-self: stretch;
  justify-content: flex-start;
}

.identity__institutions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 2vw, 2rem);
}

.identity__institutions > .identity {
  flex: 0 0 auto;
  padding-inline: 0;
}

.identity__swarm-crane {
  height: 40px;
  filter: none;
  animation: crane-glide 3.2s ease-in-out infinite;
}

@keyframes crane-glide {
  0%, 100% { transform: translate3d(0, 2px, 0); }
  50% { transform: translate3d(0, -2px, 0); }
}

.identity__swarm-word {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--ink);
}

.identity--mit img {
  height: 32px;
  filter: brightness(0) invert(1);
}

.identity--lamm {
  margin-left: -4px;
}

.identity--lamm .identity__lamm-logo {
  display: block;
  width: 190px;
  max-width: none;
  max-height: 40px;
  height: auto;
  filter: invert(1);
}

.identity--e14 img {
  height: 34px;
  filter: brightness(0) invert(1);
}

.identity--e14 { margin-left: 6px; }

.identity--mit,
.identity--lamm,
.identity--e14 {
  opacity: 0.62;
  transition: opacity 0.2s ease, outline-color 0.2s ease;
}

.identity__institutions > a.identity:hover { opacity: 0.82; }

.identity__institutions > a.identity:focus-visible {
  opacity: 0.9;
  outline: 1px solid var(--accent-soft);
  outline-offset: 5px;
  border-radius: 3px;
}

.nav__bar {
  min-height: 74px;
  padding: 0 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.25rem, 2vw, 2.5rem);
  border-left: 1px solid rgba(217, 160, 56, 0.12);
}

.nav__date {
  display: none;
}

.nav__links {
  display: flex;
  justify-self: center;
  gap: clamp(0.9rem, 1.45vw, 1.55rem);
}

.nav__links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav__links a:hover {
  color: var(--accent-soft);
}

.nav__cta,
.nav__mobile-action {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--ink);
  padding: 0.48rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav__cta:hover,
.nav__mobile-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(217, 160, 56, 0.45);
}

.nav__mobile-action {
  display: none;
}

@media (max-width: 1240px) {
  .nav {
    display: block;
  }

  .nav__identity-row {
    min-height: 102px;
    padding: 0.55rem 1rem 0.65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 42px 38px;
    gap: 0.35rem 0.8rem;
  }

  .identity {
    height: 38px;
    padding-inline: 0;
  }

  .identity--swarm {
    grid-column: 1 / 3;
    grid-row: 1;
    justify-self: start;
    justify-content: flex-start;
  }

  .identity__institutions {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: clamp(1.25rem, 6vw, 4rem);
  }

  .identity__swarm-crane {
    height: 30px;
  }

  .identity__swarm-word {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
  }

  .identity--mit img {
    width: min(100%, 96px);
    height: auto;
    max-height: 25px;
  }

  .identity__institutions > .identity--mit {
    width: 96px;
    flex-basis: 96px;
  }

  .identity--lamm .identity__lamm-logo {
    width: 145px;
    max-height: 30px;
  }

  .identity--e14 img {
    height: 27px;
  }

  .nav__mobile-action {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    padding: 0.42rem 0.8rem;
    font-size: 0.64rem;
  }

  .nav__bar {
    display: none;
  }

  .hero {
    padding-top: 8.5rem;
  }

  .apply-main {
    padding-top: 8.5rem;
  }
}

@media (min-width: 1241px) and (max-width: 1500px) {
  .nav__identity-row {
    padding-inline: 1rem;
    grid-template-columns: 185px minmax(0, 1fr);
    column-gap: 10px;
  }

  .identity__institutions { gap: 22px; }
  .identity--mit img { height: 28px; }

  .identity--lamm .identity__lamm-logo { width: 175px; }
  .identity--e14 img { height: 30px; }
}

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

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7.5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* soft radial shadow behind hero text for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  z-index: -1;
  background: radial-gradient(
    ellipse 55% 48% at 50% 46%,
    rgba(0, 0, 0, 0.82),
    rgba(0, 0, 0, 0.4) 55%,
    transparent 75%
  );
  pointer-events: none;
}

.hero > * { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7); }

.hero__meta {
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.9rem;
  animation: fadeUp 1s ease 0.2s both;
}

.hero__meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero__crane {
  display: block;
  width: clamp(82px, 8vw, 120px);
  height: auto;
  margin-bottom: 0.55rem;
  animation: crane-glide 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(217, 160, 56, 0.28));
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero__line { display: block; animation: fadeUp 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__line:nth-child(2) { animation-delay: 0.15s; }

.hero__title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--accent-warm) 0%, var(--accent) 45%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Apply page ---------- */

.apply-page { background: var(--bg-deep); }

.apply-main {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7.5rem 2rem 5rem;
}

.apply-page__inner { max-width: 960px; width: 100%; }

.apply-page__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 1rem 0 1rem;
}

.apply-page__sub { color: var(--ink-dim); margin-bottom: 3rem; max-width: 52ch; font-size: 1.08rem; }
.apply-page__sub a { color: var(--accent-soft); }

.apply-form { display: grid; gap: 2.6rem; }

.apply-form__section {
  display: grid;
  gap: 2rem;
  padding-top: 2.8rem;
  border-top: 1px solid var(--line);
}

.apply-form__section:first-of-type { padding-top: 0; border-top: 0; }

.apply-form__section-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--ink);
}

.apply-form__grid {
  display: grid;
  gap: 1.7rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) { .apply-form__grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.6rem; }
.field--full { grid-column: 1 / -1; }

.field__label {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 242, 230, 0.82);
}
.field__label b { color: var(--accent); }

.field input,
.field select,
.field textarea {
  background: rgba(247, 242, 230, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  min-height: 3.45rem;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field select option { background: var(--bg); color: var(--ink); }
.field textarea { resize: vertical; min-height: 9rem; }

.field__hint {
  color: var(--ink-faint);
  font-size: 0.92rem;
}

.dropbox-upload {
  justify-self: start;
  margin-top: 0.25rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 160, 56, 0.12);
}

.question-group {
  min-width: 0;
  border: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.field--other { max-width: 440px; }

.apply-form__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.7rem;
}

.apply-form__checks { display: grid; gap: 0.8rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .apply-form__checks { grid-template-columns: 1fr; } }

.chk { display: flex; gap: 0.7rem; align-items: center; font-size: 1rem; color: var(--ink-dim); cursor: pointer; }
.chk input { accent-color: var(--accent); width: 1.2rem; height: 1.2rem; }

.apply-form__row { display: flex; align-items: center; gap: 1.2rem; margin-top: 0.6rem; }
.apply-form__row button:disabled { opacity: 0.6; cursor: wait; transform: none; }

.apply-form__status {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent-soft);
}
.apply-form__status--error { color: #ff9f8a; }

.apply-done { padding: 2rem 0; outline: none; }

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .apply-main { padding: 7rem 1rem 3rem; }
  .apply-form__row { align-items: flex-start; flex-direction: column; }
}

.hero__sub {
  max-width: 560px;
  margin-top: 1.8rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
  animation: fadeUp 1s ease 0.45s both;
}

.hero__actions {
  display: flex; gap: 1rem; margin-top: 2.4rem;
  animation: fadeUp 1s ease 0.6s both;
}

.hero__stats {
  display: flex; gap: 3rem; margin-top: 4rem;
  animation: fadeUp 1s ease 0.75s both;
}

.stat { display: flex; flex-direction: column; gap: 0.15rem; }

.stat__k {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
}

.stat__v {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero__scrollcue {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 56px;
  background: var(--line);
  overflow: hidden;
}

.hero__scrollcue span {
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: linear-gradient(to bottom, transparent, var(--accent-soft));
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue { 0% { top: -50%; } 100% { top: 110%; } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.btn {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  display: inline-block;
}

.btn--solid {
  background: linear-gradient(100deg, var(--accent), var(--accent));
  color: #fff;
}

.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(217, 160, 56, 0.5);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn--ghost:hover { border-color: var(--accent-soft); color: var(--accent-soft); }

.btn--big { padding: 1.1rem 2.8rem; font-size: 0.9rem; }

/* ---------- Ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.9rem 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ticker__track {
  display: flex;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@keyframes ticker { to { transform: translateX(-50%); } }

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

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 9rem 2rem 6rem;
  scroll-margin-top: 4rem;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
}

.section__index {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.01em;
}

.section__body { max-width: 780px; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.45;
  font-weight: 300;
  margin-bottom: 1.6rem;
}

.lede em {
  font-style: italic;
  color: var(--accent-warm);
}

.section__body p + p { margin-top: 1.2rem; }

.section__body p { color: var(--ink-dim); }

.section__body strong { color: var(--ink); font-weight: 500; }

.note {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem;
}

/* ---------- Cards (Format) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2.6rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 160, 56, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.card__num {
  display: inline;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent-soft);
  letter-spacing: 0.25em;
  margin-right: 0.5rem;
}

.card h3 {
  display: inline;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0;
}

.card p { margin-top: 0.5rem; font-size: 0.88rem; color: var(--ink-dim); }

/* ---------- Callout ---------- */

.callout {
  margin: 2.2rem 0;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(217, 160, 56, 0.35);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(217, 160, 56, 0.1), rgba(242, 193, 90, 0.06));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.callout p { color: var(--ink) !important; font-family: var(--serif); font-size: 1.1rem; line-height: 1.55; }
.callout em { color: var(--accent-warm); }

/* ---------- Tracks ---------- */

.tracks { display: flex; flex-direction: column; margin-top: 1.5rem; }

.track {
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.8rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, padding-left 0.3s ease;
  cursor: default;
}

.track:first-child { border-top: 1px solid var(--line); }

.track:hover {
  background: linear-gradient(90deg, rgba(217, 160, 56, 0.07), transparent 70%);
  padding-left: 1.2rem;
}

.track__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-warm);
  letter-spacing: 0.2em;
}

.track h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

.track p { font-size: 0.92rem; color: var(--ink-dim); }

/* ---------- Rubric ---------- */

.rubric {
  margin: 2.8rem 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rubric__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding: 1.7rem 1.8rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.rubric__row:last-child { border-bottom: none; }

.rubric__info h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.rubric__info p { font-size: 0.86rem; color: var(--ink-dim); }

.rubric__weight {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rubric__bar {
  height: 6px;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent), var(--accent-warm));
  box-shadow: 0 0 14px rgba(217, 160, 56, 0.5);
  transition: width 1.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rubric__weight span {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink);
  min-width: 3ch;
}

/* ---------- Apply ---------- */

.apply {
  padding: 10rem 2rem;
  text-align: center;
}

.apply__inner {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 4.5rem 2.5rem;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.apply__kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.apply__title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: 1rem 0 0.8rem;
}

.apply__inner p { color: var(--ink-dim); margin-bottom: 2.2rem; }

.apply__mail {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

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

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer__compliance {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.footer a {
  color: var(--ink-dim);
  text-decoration-color: rgba(217, 160, 56, 0.5);
  text-underline-offset: 0.24em;
  transition: color 0.2s ease, outline-color 0.2s ease;
}

.footer a:hover { color: var(--accent-warm); }

.footer a:focus-visible {
  color: var(--accent-warm);
  outline: 1px solid var(--accent-soft);
  outline-offset: 5px;
  border-radius: 2px;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal--in { opacity: 1; transform: translateY(0); }

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

@media (max-width: 820px) {
  .hero__crane { width: 76px; margin-bottom: 0.35rem; }
  .hero__stats { gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
  .track { grid-template-columns: 1fr; gap: 0.4rem; }
  .rubric__row { grid-template-columns: 1fr; gap: 0.9rem; }
  .section { padding: 6rem 1.3rem 4rem; }
  .footer { flex-direction: column; gap: 0.5rem; align-items: center; }
  .footer__compliance { justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track, .grain, .hero__scrollcue span, .identity__swarm-crane, .hero__crane { animation: none; }
  html { scroll-behavior: auto; }
}
