:root {
  --navy: #271856;
  --navy-deep: #0f0920;
  --purple: #8762d4;
  --purple-hover: #9a7be0;
  --white: #ffffff;
  --gray: #828282;
  --ink: #1c1240;
  --tint: #f5f2fc;
  --radius: 18px;
  --nav-h: 72px;
  --font-head: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

.accent { color: var(--purple); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 1rem;
}
.eyebrow--dark { color: var(--purple); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn--primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 8px 24px -10px rgba(135, 98, 212, 0.8);
}
.btn--primary:hover { background: var(--purple-hover); transform: translateY(-2px); }
.btn--outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.95rem; }
.btn--lg { padding: 1.1rem 2.25rem; font-size: 1.1rem; }
.btn:focus-visible, .nav__menu a:focus-visible, .pill:focus-visible, .nav__toggle:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(39, 24, 86, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.25s;
}
.nav.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5); }
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}
.brand__icon { width: 36px; height: 36px; object-fit: contain; }
.brand__text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__menu a:not(.btn) {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s;
}
.nav__menu a:not(.btn):hover { color: var(--white); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 9vw, 7rem);
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(135, 98, 212, 0.35), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 3rem;
}
.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
}
.hero h1 .accent { display: block; }
.hero__sub {
  max-width: 34rem;
  margin: 1.75rem 0 2.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.78);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__mark {
  position: relative;
  justify-self: center;
  width: min(380px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero__mark img {
  position: relative;
  width: 78%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
  animation: float 7s ease-in-out infinite;
}
.hero__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(135, 98, 212, 0.45);
  animation: spin 60s linear infinite;
}
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Philosophy */
.philosophy {
  background: var(--navy-deep);
  color: var(--white);
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  text-align: center;
  border-top: 1px solid rgba(135, 98, 212, 0.18);
}
.philosophy__inner { max-width: 900px; }
.philosophy blockquote { margin: 0; }
.philosophy__quote {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.75rem);
  line-height: 1.05;
  margin: 0;
}
.philosophy__body {
  margin: 2rem auto 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.72);
}

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section--light { background: var(--white); }
.section--tint { background: var(--tint); }
.section__head { text-align: center; margin-bottom: 3.25rem; }
.section__head h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--navy);
}

.grid { display: grid; gap: 1.5rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid rgba(39, 24, 86, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 0.75rem; }
.card p { margin: 0; color: #55516a; font-size: 0.98rem; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(39, 24, 86, 0.35); }

.value__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  border-radius: 14px;
  background: var(--tint);
  margin-bottom: 1.4rem;
}

.step { position: relative; overflow: hidden; }
.step__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--purple);
  margin-bottom: 1.25rem;
}
.step::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--navy), var(--purple));
}

/* Members */
.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}
.member {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(39, 24, 86, 0.1);
  box-shadow: 0 6px 20px -14px rgba(39, 24, 86, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.member:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -20px rgba(39, 24, 86, 0.45);
}
.member__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--tint);
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.member:hover .member__photo img { transform: scale(1.04); }
.member__photo--logo { background: var(--white); border-bottom: 1px solid rgba(39, 24, 86, 0.08); }

.member__body { padding: 1.35rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.member__body h3 { font-size: 1.2rem; color: var(--navy); }
.member__title {
  margin: 0.4rem 0 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple);
}
.member__company { margin: 0.1rem 0 0; font-size: 0.9rem; color: var(--gray); }
.member__contact {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}
.member__contact a {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.member__contact a:hover { color: var(--purple); }
.member__contact a:first-child { font-weight: 600; }

/* Apply */
.apply {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(135, 98, 212, 0.45), transparent 55%),
    linear-gradient(150deg, var(--navy) 0%, #1a0f3d 55%, var(--navy-deep) 100%);
  color: var(--white);
  padding: clamp(5rem, 11vw, 8rem) 0;
  text-align: center;
}
.apply__inner { max-width: 760px; }
.apply h2 { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
.apply__body {
  margin: 1.5rem auto 2.5rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: rgba(255, 255, 255, 0.78);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.pill {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.pill:hover { background: rgba(135, 98, 212, 0.25); border-color: var(--purple); }

/* Footer */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__tagline { margin: 0.75rem 0 0; color: var(--gray); font-size: 0.95rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.footer__nav a { text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer__nav a:hover { color: var(--purple); }
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--gray);
}
.footer__bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.75rem;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav__menu.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__menu a:not(.btn) {
    padding: 0.9rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav__menu .btn { margin-top: 1.25rem; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark { order: -1; width: 170px; justify-self: start; }
}

@media (max-width: 560px) {
  .container { width: min(1180px, 100% - 2.5rem); }
  .grid--4 { grid-template-columns: 1fr; }
  .members { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer__inner { flex-direction: column; }
}

@media (max-width: 380px) {
  .members { grid-template-columns: 1fr; }
}
