/* ============================================================
   Abeytrust Careers — Editorial Design System
   Fraunces (display) · Space Mono (labels) · Hanken Grotesk (body)
   Navy · Cobalt · Gold · Cream
   ============================================================ */

:root {
  /* Core palette — pulled from the campaign graphics */
  --navy: #0a1430;
  --navy-800: #0e1c3f;
  --navy-700: #15264f;
  --cobalt: #2a44c4;
  --cobalt-bright: #2f50e6;
  --gold: #f5a623;
  --gold-soft: #f8c24d;
  --cream: #f7f4ec;
  --cream-dark: #ece7da;
  --white: #ffffff;

  --ink: #0a1430;
  --ink-soft: #46506b;
  --ink-faint: #8a93ab;
  --line: #e2ddd0;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* On-dark text */
  --on-dark: #f4f1ea;
  --on-dark-soft: #b7c0d8;
  --on-dark-faint: #6f7a98;

  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Grain overlay for atmosphere */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.2' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Shared label / kicker ----- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  opacity: 0.85;
}

.kicker.gold {
  color: var(--gold);
}
.kicker.cobalt {
  color: var(--cobalt);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-soft);
  transform: translateY(-3px);
}

.btn-navy {
  background: var(--navy);
  color: var(--cream);
}
.btn-navy:hover {
  background: var(--navy-700);
  transform: translateY(-3px);
}

.btn-ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn-ghost:hover {
  background: currentColor;
  transform: translateY(-3px);
}
.btn-ghost.on-dark:hover {
  color: var(--navy);
}
.btn-ghost.on-light:hover {
  color: var(--cream);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ----- Header ----- */
/* Solid navy bar — identical on every page. Logo always white-on-navy. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: var(--navy);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin-left: auto;
  margin-right: 2.25rem;
}

.header-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  transition: color 0.2s;
}
.header-nav a:hover {
  color: var(--gold);
}

.hiring-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.hiring-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* ============================================================
   HERO — Careers hub (dark, editorial)
   ============================================================ */
.hub-hero {
  position: relative;
  background: var(--navy);
  color: var(--on-dark);
  padding: 6.5rem 0 7rem;
  overflow: hidden;
}

.hub-hero::before {
  content: "";
  position: absolute;
  top: -25%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(
    circle at center,
    rgba(42, 68, 196, 0.55),
    rgba(42, 68, 196, 0) 62%
  );
  border-radius: 50%;
  pointer-events: none;
}
.hub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hub-hero .container {
  position: relative;
  z-index: 2;
}

.hub-hero .kicker {
  opacity: 0;
  animation: rise 0.7s var(--ease) 0.1s forwards;
}

.hub-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8.5vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 1.6rem 0 0;
  max-width: 14ch;
}
.hub-title .accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}
.hub-title .line {
  display: block;
  opacity: 0;
  animation: rise 0.8s var(--ease) forwards;
}
.hub-title .line:nth-child(1) {
  animation-delay: 0.18s;
}
.hub-title .line:nth-child(2) {
  animation-delay: 0.3s;
}

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

.hub-sub {
  font-size: 1.2rem;
  color: var(--on-dark-soft);
  max-width: 52ch;
  margin: 1.8rem 0 0;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.42s forwards;
}

.hub-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;
  margin-top: 3.5rem;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.54s forwards;
}
.hub-stat h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.hub-stat p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-top: 0.3rem;
}

/* ============================================================
   OPEN ROLES BOARD
   ============================================================ */
.roles {
  padding: 6rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-top: 1rem;
  max-width: 16ch;
}
.section-head h2 em {
  color: var(--cobalt);
  font-style: italic;
}
.roles-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.role-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.role-row {
  display: grid;
  grid-template-columns: 56px 1.6fr 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.4s var(--ease);
}
.role-row.open {
  cursor: pointer;
}
.role-row.open::before {
  content: "";
  position: absolute;
  left: -2rem;
  right: -2rem;
  top: 0;
  bottom: 0;
  background: var(--white);
  border-radius: 14px;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
  z-index: -1;
  box-shadow: 0 24px 50px -28px rgba(10, 20, 48, 0.35);
}
.role-row.open:hover::before {
  opacity: 1;
  transform: scale(1);
}
.role-row.open:hover {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.role-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-faint);
}
.role-main h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.role-main p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 0.35rem;
  max-width: 48ch;
}
.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--white);
}
.tag.cobalt {
  border-color: rgba(42, 68, 196, 0.25);
  color: var(--cobalt);
  background: #eef1ff;
}
.tag.closed {
  border-color: var(--cream-dark);
  color: var(--ink-faint);
  background: var(--cream-dark);
}

.role-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cobalt);
}
.role-action .arrow {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  transition:
    transform 0.35s var(--ease),
    background 0.3s;
}
.role-row.open:hover .arrow {
  transform: translate(4px, -4px) rotate(0deg);
  background: var(--cobalt);
  color: var(--white);
}

/* Closed role — still readable & clickable, just visually quieter */
.role-row.closed .role-main h3 {
  color: var(--ink-soft);
}
.role-row.closed .role-action {
  color: var(--ink-faint);
}
.role-row.closed .arrow {
  background: var(--ink-soft);
}
.role-row.closed:hover .arrow {
  background: var(--cobalt);
  color: var(--white);
}

/* ============================================================
   INSTRUCTOR BAND (cobalt feature)
   ============================================================ */
.feature-band {
  position: relative;
  background: var(--cobalt);
  color: var(--white);
  overflow: hidden;
}
.feature-band::before {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -8%;
  width: 46vw;
  height: 46vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(
    circle,
    rgba(245, 166, 35, 0.32),
    transparent 60%
  );
  border-radius: 50%;
}
.feature-band .container {
  position: relative;
  z-index: 2;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.feature-band .kicker {
  color: var(--gold-soft);
}
.feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 1.4rem 0;
}
.feature-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.feature-band p {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}
.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.topic-cloud span {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
  transition:
    background 0.3s,
    border-color 0.3s;
}
.topic-cloud span:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   VALUES / WHY JOIN
   ============================================================ */
.values {
  padding: 6rem 0;
  background: var(--cream);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -32px rgba(10, 20, 48, 0.4);
}
.value-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.value-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 1rem 0 0.6rem;
  letter-spacing: -0.01em;
}
.value-card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ============================================================
   ROLE DETAIL PAGES — themed hero
   ============================================================ */
.role-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 5rem;
}
.role-hero.theme-navy {
  background: var(--navy);
  color: var(--on-dark);
}
.role-hero.theme-cobalt {
  background: var(--cobalt);
  color: var(--white);
}
.role-hero.theme-cream {
  background: var(--cream);
  color: var(--ink);
}
.role-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -8%;
  width: 52vw;
  height: 52vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  pointer-events: none;
}
.role-hero.theme-navy::before {
  background: radial-gradient(circle, rgba(42, 68, 196, 0.5), transparent 62%);
}
.role-hero.theme-cobalt::before {
  background: radial-gradient(
    circle,
    rgba(245, 166, 35, 0.28),
    transparent 62%
  );
}
.role-hero.theme-cream::before {
  background: radial-gradient(circle, rgba(42, 68, 196, 0.16), transparent 62%);
}
.role-hero .container {
  position: relative;
  z-index: 2;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2.2rem;
  transition:
    opacity 0.25s,
    gap 0.25s;
}
.back-link:hover {
  opacity: 1;
  gap: 0.8rem;
}

.role-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 1.3rem 0;
  max-width: 16ch;
}
.role-hero h1 em {
  font-style: italic;
  font-weight: 500;
}
.role-hero.theme-navy h1 em {
  color: var(--gold);
}
.role-hero.theme-cobalt h1 em {
  color: var(--gold-soft);
}
.role-hero.theme-cream h1 em {
  color: var(--cobalt);
}
.role-hero .lead {
  font-size: 1.2rem;
  max-width: 56ch;
  margin-bottom: 2.4rem;
}
.role-hero.theme-navy .lead {
  color: var(--on-dark-soft);
}
.role-hero.theme-cobalt .lead {
  color: rgba(255, 255, 255, 0.88);
}
.role-hero.theme-cream .lead {
  color: var(--ink-soft);
}
.role-hero .lead strong {
  font-weight: 700;
}
.role-hero.theme-cream .lead strong {
  color: var(--cobalt);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.4rem;
}
.meta-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* location callout (matches graphic) */
.location-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.6rem;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 12px 12px 0;
  max-width: 460px;
}
.role-hero.theme-cream .location-callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
}
.location-callout .lc-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.location-callout .lc-place {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ----- Role body content ----- */
.role-body {
  padding: 5rem 0;
}
.body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
}
.info-card .kicker {
  color: var(--cobalt);
  margin-bottom: 1.5rem;
}
.info-card ul {
  list-style: none;
}
.info-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.info-card li:last-child {
  border-bottom: none;
}
.info-card li .ck {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: #e9f7ee;
  color: #16a34a;
  display: grid;
  place-items: center;
}
.info-card li .ck svg {
  width: 13px;
  height: 13px;
}

.duties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.duty {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.duty .badge-letter {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  background: #eef1ff;
  color: var(--cobalt);
}
.duty h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.duty p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section-band {
  padding: 5rem 0;
}
.section-band.alt {
  background: var(--white);
}
.band-intro {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}
.band-intro h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 1rem 0;
}
.band-intro h2 em {
  font-style: italic;
  color: var(--cobalt);
}
.band-intro p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ============================================================
   APPLY FORM
   ============================================================ */
.apply {
  padding: 5rem 0 6rem;
  background: var(--navy);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.apply::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(42, 68, 196, 0.45), transparent 62%);
  border-radius: 50%;
}
.apply .container {
  position: relative;
  z-index: 2;
}
.apply-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 3rem;
}
.apply-head .kicker {
  color: var(--gold);
}
.apply-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.8rem;
}
.apply-head h2 em {
  font-style: italic;
  color: var(--gold);
}
.apply-head p {
  color: var(--on-dark-soft);
  font-size: 1.1rem;
}

.application-form {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--on-dark-faint);
}
.form-group select option {
  color: #111;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}
.form-hint {
  font-size: 0.8rem;
  color: var(--on-dark-faint);
}
.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--on-dark-soft);
}
.checkbox-group input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.form-actions {
  margin-top: 0.6rem;
}

.success-message {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
}
.success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  animation: pop 0.5s var(--ease);
}
.success-icon svg {
  width: 36px;
  height: 36px;
}
@keyframes pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
.success-message h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 0.6rem;
}
.success-message p {
  color: var(--on-dark-soft);
}

/* Closed banner */
.closed-banner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: 3.2rem 2.5rem;
}
.closed-banner h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 0.6rem;
}
.closed-banner p {
  color: var(--on-dark-soft);
}
.closed-banner a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--on-dark);
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--line-dark);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .logo-img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--on-dark-soft);
  max-width: 36ch;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 1.1rem;
}
.footer-col a,
.footer-col span {
  display: block;
  color: var(--on-dark-soft);
  font-size: 0.95rem;
  padding: 0.3rem 0;
  transition: color 0.25s;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--on-dark-faint);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .feature-band .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .body-grid {
    grid-template-columns: 1fr;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 1.4rem;
  }
  .header-nav {
    display: none;
  }
  .hub-stats {
    gap: 2rem;
  }
  .role-row {
    grid-template-columns: 38px 1fr;
    grid-template-areas:
      "idx main"
      "idx tags"
      "idx act";
    gap: 0.6rem 1rem;
    align-items: start;
  }
  .role-index {
    grid-area: idx;
  }
  .role-main {
    grid-area: main;
  }
  .role-tags {
    grid-area: tags;
    margin-top: 0.4rem;
  }
  .role-action,
  .role-status-wrap {
    grid-area: act;
    margin-top: 0.6rem;
  }
  .role-row.open:hover {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .role-row.open::before {
    display: none;
  }
  .duties-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .application-form {
    padding: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hub-hero {
    padding: 4.5rem 0 5rem;
  }
  .hub-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
