:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --ink: #102b3d;
  --muted: #567187;
  --navy: #061a28;
  --navy-soft: #0d2c40;
  --teal: #0fb8a4;
  --teal-light: #6ee7d6;
  --amber: #ffc46b;
  --line: #dce7ee;
  --tint: #edf4f7;
  --radius: 18px;
  --max-width: 1180px;
  --shadow: 0 10px 30px rgb(6 26 40 / 7%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(6 26 40 / 94%);
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-dots {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 3px;
  flex: none;
}

.brand-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-light);
  box-shadow: 0 0 8px rgb(110 231 214 / 60%);
}

.site-nav {
  display: flex;
  gap: 0.3rem 1.4rem;
}

.site-nav a {
  color: #c3d8e5;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  border-bottom-color: var(--teal);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(720px, 88vh);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero-photo,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-photo {
  background-image: url("assets/hero-braille.jpg");
  background-size: cover;
  background-position: center 45%;
  filter: saturate(0.85) contrast(1.05);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgb(4 18 29 / 97%) 0%, rgb(4 18 29 / 88%) 40%, rgb(4 18 29 / 45%) 100%),
    linear-gradient(0deg, rgb(4 18 29 / 90%) 0%, transparent 45%);
}

.hero-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4.5rem;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgb(110 231 214 / 45%);
  border-radius: 999px;
  background: rgb(15 184 164 / 12%);
  color: var(--teal-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1.25rem;
  max-width: 18ch;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-shadow: 0 3px 20px rgb(0 0 0 / 35%);
}

.hero-subtitle {
  margin: 0 0 2rem;
  max-width: 62ch;
  color: #d3e5ef;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--teal);
  color: #04202c;
  box-shadow: 0 8px 24px rgb(15 184 164 / 30%);
}

.btn-primary:hover {
  background: #28cdb9;
  color: #04202c;
}

.btn-ghost {
  border: 1px solid rgb(255 255 255 / 45%);
  color: #fff;
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 12%);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.hero-meta > div {
  padding: 0.7rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 12px;
  background: rgb(255 255 255 / 8%);
  backdrop-filter: blur(6px);
}

.hero-meta dt {
  color: var(--teal-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-meta dd {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Sections */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-tint {
  background: var(--tint);
  box-shadow: 0 0 0 100vmax var(--tint);
  clip-path: inset(0 -100vmax);
}

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

.kicker {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: var(--teal);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.section p {
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Stats */

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

.stat {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

.stat-value {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.stat-unit {
  margin-left: 0.3rem;
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 700;
}

.stat-label {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Result cards */

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

.card {
  position: relative;
  overflow: hidden;
  padding: 1.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgb(6 26 40 / 12%);
}

.card::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: 1.4rem;
  width: 12px;
  height: 18px;
  background: radial-gradient(circle, var(--teal) 2px, transparent 2.5px) 0 0 / 6px 6px;
  opacity: 0.28;
}

.card-num {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.2rem;
  border-radius: 20px;
  background: var(--navy);
  color: var(--teal-light);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.step-icon span {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
}

.step-icon.dots {
  grid-template-columns: repeat(2, 9px);
  grid-auto-rows: 9px;
  gap: 5px;
  align-content: center;
  justify-content: center;
}

.step-icon.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal-light);
}

.step-icon.dots i:nth-child(2),
.step-icon.dots i:nth-child(5) {
  opacity: 0.35;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.note {
  margin-top: 2rem !important;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.15rem;
}

.gallery-item {
  margin: 0;
  padding: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #f3f7f9;
  border-radius: 12px;
}

.gallery-item figcaption {
  padding: 0.8rem 0.3rem 0.2rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Usage */

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

.usage-item {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.usage-item > span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--teal);
  font-size: 2rem;
  line-height: 1;
}

.usage-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.conclusion {
  margin: 2.5rem 0 0;
  padding: 2rem 2.2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #e3f1f6;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Support / grant acknowledgement */

.support {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.support-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.support-logo {
  flex: none;
  width: 170px;
  height: auto;
}

.support-text {
  max-width: 80ch;
}

.support-kicker {
  margin: 0 0 0.45rem;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.support-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #a8c3d2;
  padding: 3rem 1.5rem;
  font-size: 0.92rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.footer-brand strong {
  color: #fff;
  font-size: 1.05rem;
}

.footer-inner p {
  margin: 0.3rem 0;
}

.credit {
  margin-top: 1.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.8rem;
  color: #85a5b7;
}

.credit a {
  color: var(--teal-light);
}

/* Responsive */

@media (max-width: 900px) {
  .stats,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 640px;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 6.8rem;
  }

  .header-inner {
    padding: 0.6rem 1rem;
  }

  .brand {
    width: 100%;
    font-size: 0.9rem;
  }

  .site-nav {
    max-width: 100%;
    overflow-x: auto;
    gap: 1rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 600px;
  }

  .hero-inner {
    padding: 4rem 1.25rem 3.5rem;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgb(4 18 29 / 96%) 0%, rgb(4 18 29 / 80%) 100%),
      linear-gradient(0deg, rgb(4 18 29 / 90%) 0%, transparent 50%);
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

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

  .conclusion {
    padding: 1.5rem;
  }

  .support-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2.5rem 1.25rem;
  }

  .support-logo {
    width: 150px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
