:root {
  --bg: #f6f7fb;
  --bg-muted: #eceef4;
  --bg-dark: #0c1220;
  --surface: #ffffff;
  --text: #101828;
  --text-muted: #5b6478;
  --border: rgba(16, 24, 40, 0.1);
  --accent: #2f4bff;
  --accent-soft: rgba(47, 75, 255, 0.12);
  --accent-2: #0ea5e9;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --header-h: 76px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Sans", "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(246, 247, 251, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.8rem;
}

.nav {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.header-cta {
  margin-left: auto;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 40;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(246, 247, 251, 0.96);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f6fff);
  color: #fff;
  box-shadow: 0 12px 30px rgba(47, 75, 255, 0.28);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-sm {
  min-height: 2.5rem;
  padding-inline: 1rem;
  font-size: 0.85rem;
}

.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 75, 255, 0.14), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(180deg, #eef1f8 0%, var(--bg) 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0.75rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-lead,
.section-intro {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-card {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.hero-card-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(12, 18, 32, 0.72);
  backdrop-filter: blur(10px);
  color: #fff;
}

.caption-label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
}

.caption-value {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
}

.stat span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-dark .section-label {
  color: #93c5fd;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section-head h2,
.split-copy h2,
.mission-block h2,
.contact-grid h2 {
  margin: 0.5rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.split-media img {
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 7 / 8;
}

.split-copy p,
.mission-block p {
  color: var(--text-muted);
}

.split-reverse .split-copy {
  order: 2;
}

.split-reverse .split-media {
  order: 1;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.timeline-item {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.timeline-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.timeline-body p {
  margin: 0;
  color: var(--text-muted);
}

.values-grid {
  display: grid;
  gap: 1.25rem;
}

.value-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.value-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.value-card h3 {
  margin: 0 0 0.6rem;
}

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

.mission-grid {
  display: grid;
  gap: 2rem;
}

.mission-block {
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.future-list {
  margin: 1.25rem 0 1.75rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.future-list li + li {
  margin-top: 0.65rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.contact-card a:hover {
  color: var(--accent);
}

.contact-panels {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-highlight {
  display: block;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(47, 75, 255, 0.1), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(47, 75, 255, 0.18);
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

a.contact-highlight:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 75, 255, 0.35);
}

.contact-highlight-muted {
  background: var(--surface);
  border-color: var(--border);
}

.contact-highlight h3 {
  margin: 0.35rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.contact-highlight p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.hours-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hours-list li:last-child {
  border-bottom: none;
}

.contact-note {
  margin-top: 0.85rem !important;
  font-size: 0.82rem !important;
}

.support-topics {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.support-topic {
  padding: 1.35rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.support-topic h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.support-topic p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.support-topic a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-bottom {
  display: grid;
  gap: 1.5rem;
}

.contact-form {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-form h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.contact-form-intro {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
}

.form-grid label span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(47, 75, 255, 0.25);
  border-color: rgba(47, 75, 255, 0.45);
}

.form-full {
  grid-column: 1 / -1;
}

.contact-form-status {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.contact-form-status.is-error {
  color: #b42318;
}

.contact-form-status.is-success {
  color: #027a48;
}

@media (min-width: 768px) {
  .contact-panels {
    grid-template-columns: 1fr 1fr;
  }

  .support-topics {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-bottom {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

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

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

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

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .header-cta {
    margin-left: 0;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .split,
  .split-reverse {
    grid-template-columns: 1fr 1fr;
  }

  .split-reverse .split-copy,
  .split-reverse .split-media {
    order: unset;
  }

  .timeline-item {
    grid-template-columns: 160px 1fr;
    align-items: start;
  }

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

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

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
