:root {
  --bg: #f5f9ff;
  --ink: #0b1a2b;
  --muted: #4a647a;
  --accent: #2a72e5;
  --accent-2: #1b4f9c;
  --accent-3: #d7e7ff;
  --card: #ffffff;
  --line: rgba(11, 26, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 20%, #eaf2ff, transparent 40%),
              radial-gradient(circle at 85% 10%, #d6ecff, transparent 45%),
              var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

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

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.45;
  z-index: -2;
}

.orb-1 {
  background: radial-gradient(circle at 30% 30%, #cfe4ff, #f5f9ff 60%);
  top: -120px;
  left: -120px;
}

.orb-2 {
  background: radial-gradient(circle at 50% 50%, #b8dcff, #f5f9ff 60%);
  bottom: -160px;
  right: -120px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(15, 27, 28, 0.05) 96%),
                    linear-gradient(90deg, transparent 95%, rgba(15, 27, 28, 0.05) 96%);
  background-size: 48px 48px;
  opacity: 0.3;
  z-index: -3;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6vw;
  background: rgba(242, 243, 239, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: grid;
  gap: 4px;
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo.small {
  font-size: 18px;
}

.tagline {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  letter-spacing: 0.2px;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent-2);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  gap: 4px;
  flex-direction: column;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
}

main {
  display: grid;
  gap: 80px;
  padding: 40px 6vw 80px;
}

section[id] {
  scroll-margin-top: 90px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  min-height: 82vh;
  align-content: center;
  padding: 12px 0 32px;
}

.hero-center .hero-content {
  max-width: 780px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-2);
  font-size: 12px;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 4vw, 56px);
  margin: 12px 0 16px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(42, 114, 229, 0.25);
}

.btn.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.btn.honor {
  border-color: rgba(199, 160, 72, 0.45);
  background: #fff4d6;
  color: #7a5100;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.hero-stats span {
  font-size: 24px;
  font-weight: 600;
}

.hero-stats p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-visual {
  display: grid;
  gap: 20px;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.hero-card h3 {
  margin: 0 0 6px;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
}

.pulse {
  position: absolute;
  width: 140px;
  height: 140px;
  right: -60px;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 79, 156, 0.35), transparent 70%);
  animation: pulse 4s infinite ease-in-out;
}

.wave {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 114, 229, 0.35), transparent 70%);
  animation: float 6s infinite ease-in-out;
}

.hero-photo {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 27, 28, 0.12);
}

.section {
  display: grid;
  gap: 24px;
}

.section-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(26px, 3vw, 40px);
  margin: 0 0 6px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  padding: 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 27, 28, 0.08);
}

.employment {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.employment-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.employment-card ul {
  padding-left: 18px;
  margin: 10px 0 0;
}

.employment-card li {
  margin: 6px 0;
}

.employment-card.highlight {
  background: linear-gradient(140deg, #1b4f9c, #0f2f66);
  color: #fff;
}

.employment-card.highlight .btn {
  margin-top: 12px;
}

.small {
  font-size: 12px;
  opacity: 0.85;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.team-card figcaption {
  padding: 16px;
}

.team-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.photo-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.photo-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  inset: auto 16px 16px 16px;
  background: rgba(15, 27, 28, 0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.service-card {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(160deg, #ffffff, #f0f6ff);
  border: 1px solid var(--line);
}

.discord {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(140deg, #0f2f66, #1b4f9c);
  color: #fff;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 6vw 50px;
  border-top: 1px solid var(--line);
  background: rgba(242, 243, 239, 0.8);
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 43, 0.55);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  width: min(900px, 92vw);
  max-height: 80vh;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(11, 26, 43, 0.3);
  display: grid;
  grid-template-rows: auto 1fr;
  z-index: 1;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
}

.modal-close {
  border: none;
  background: #eef4ff;
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

.modal-body {
  padding: 18px 22px 24px;
  overflow: auto;
}

.modal-sub {
  margin: 0 0 16px;
  color: var(--muted);
}

.honor-grid {
  display: grid;
  gap: 14px;
}

.honor-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf5;
  padding: 12px;
  align-items: center;
}

.honor-left {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.honor-left img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
}

.honor-name {
  text-align: center;
}

.honor-name h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.honor-name p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.honor-right p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.modal-body::-webkit-scrollbar {
  width: 10px;
}

.modal-body::-webkit-scrollbar-track {
  background: #fff7e6;
  border-radius: 999px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #e2c37a;
  border-radius: 999px;
  border: 2px solid #fff7e6;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #d6b261;
}

.modal-body {
  scrollbar-width: thin;
  scrollbar-color: #e2c37a #fff7e6;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

@media (max-width: 640px) {
  .honor-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .honor-right h4 {
    text-align: center;
  }
}

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

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 6vw;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 12px 24px rgba(15, 27, 28, 0.12);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .discord {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}
