:root {
  --navy: #13284F;
  --ink: #0C1C3C;
  --gold: #F6B53C;
  --cream: #FAF6EE;
  --jade: #19A37A;
  --navy-700: #24406e;
  --navy-500: #5a6f96;
  --navy-300: #9fb0cc;
  --navy-100: #dbe2ee;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--ink);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: var(--gold); }
a:hover { color: #ffca63; }

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

/* Visible focus states throughout (system hard rule) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Node motif — line + dot */
.node-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.node-rule .node-line { height: 2px; background: var(--gold); display: block; border-radius: 2px; }
.node-rule .node-dot { border-radius: 50%; background: var(--gold); display: block; flex: none; }

/* Header wordmark node-rule (thin, spans wordmark width) */
.wordmark .node-rule {
  width: 100%;
  margin: 0;
}
.wordmark .node-line { flex: 1; }
.wordmark .node-dot { width: 6px; height: 6px; margin: 0 -2px; }

/* Header */
.site-header {
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  background: rgba(12,28,60,.82);
  backdrop-filter: blur(10px);
  z-index: 20;
}
.site-header .row {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #fff;
}
.wordmark-img { height: 24px; width: auto; display: block; }
.login-link { font-size: 16px; font-weight: 500; color: #fff; }

/* Hero */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 76px 28px 68px;
}
.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.h1 {
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0 0 28px;
}
.subhead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--navy-300);
  margin: 0 auto 34px;
  max-width: 400px;
}

.apply-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
  align-items: center;
}
.apply-form[hidden],
.subhead[hidden] {
  display: none;
}
.apply-form input {
  flex: 1;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
}
.apply-form button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.apply-form button:hover { background: #ffca63; }

.form-error {
  font-size: 12.5px;
  color: var(--gold);
  margin: 12px 0 0;
  height: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transition: opacity .2s ease;
}
.form-error.visible { opacity: 1; }

.success-card {
  padding: 14px 0;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-card[hidden] { display: none; }
.success-title { font-size: 15px; font-weight: 600; color: var(--jade); }

/* Logo marquee */
.proof {
  border-top: 1px solid rgba(255,255,255,.08);
}
.proof-label-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.proof-label {
  display: inline-block;
  background: var(--ink);
  padding: 0 18px;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin: 0;
}
.marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: finmarquee 38s linear infinite;
}
.mark {
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  flex: none;
  margin: 0 40px;
}

@keyframes finmarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}

/* Testimonial */
.testimonial {
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(19,40,79,.55), rgba(19,40,79,.2));
}
.testimonial-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 88px 28px;
  text-align: center;
}
.testimonial blockquote {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.32;
  letter-spacing: -.02em;
  font-weight: 600;
  color: #fff;
  margin: 0;
  text-wrap: pretty;
}
.testimonial-attr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.testimonial-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-carousel {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  align-items: flex-start;
  transition: transform .4s ease;
}
.testimonial-slide {
  flex: none;
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-track { transition: none; }
}
.carousel-arrow {
  flex: none;
  width: 32px;
  height: 40px;
  border: none;
  background: none;
  color: var(--navy-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .15s ease;
}
.carousel-arrow:hover {
  color: #fff;
}
.testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.testimonial-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--navy-500);
  opacity: .6;
  cursor: pointer;
}
.testimonial-dots .dot[aria-selected="true"] {
  background: var(--gold);
  opacity: 1;
}
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex: none;
  object-fit: cover;
}
.attr-text { text-align: left; }
.attr-name { font-size: 15px; font-weight: 600; color: #fff; }
.attr-role { font-size: 14px; color: var(--navy-300); margin-top: 2px; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer {
  padding: 26px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--navy-300);
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .h1 { font-size: clamp(2.3rem, 8vw, 3rem); }
  .apply-form { flex-direction: column; align-items: stretch; }
  .apply-form button { width: 100%; }
  .testimonial-carousel-wrap { gap: 8px; }
  .carousel-arrow { width: 32px; height: 32px; }
  .carousel-arrow svg { width: 16px; height: 16px; }
}
