:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.70);
  --muted-2: rgba(17, 17, 17, 0.58);
  --border: rgba(17, 17, 17, 0.12);
  --shadow: 0 16px 40px rgba(17, 17, 17, 0.12);
  --shadow-soft: 0 10px 24px rgba(17, 17, 17, 0.08);
  --accent: #ff6a00;
  --radius: 14px;
  --container: 1120px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 88px 0;
  position: relative;
}

.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(17, 17, 17, 0.08);
  pointer-events: none;
}

.section-muted {
  background:
    radial-gradient(900px 360px at 18% 10%, rgba(255, 106, 0, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.03), rgba(17, 17, 17, 0.01));
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.95;
}

.section-subtitle {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 70ch;
}

.body-lg {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 75ch;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.05);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.86);
  padding: 10px 10px;
  border-radius: 10px;
  transition: color 160ms ease, background 160ms ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
  opacity: 0.95;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
  background: rgba(255, 106, 0, 0.08);
  outline: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

/* Hero */
.hero {
  padding-top: 86px;
}

.hero:not(.hero-cover)::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto 0;
  height: 420px;
  pointer-events: none;
  background:
    radial-gradient(820px 320px at 78% 46%, rgba(255, 106, 0, 0.20), transparent 60%),
    radial-gradient(640px 240px at 14% 18%, rgba(17, 17, 17, 0.06), transparent 56%);
}

/* Full-bleed hero cover (image as background) */
.hero-cover {
  position: relative;
  padding: 0;
  min-height: clamp(540px, 78vh, 760px);
  display: grid;
  align-items: center;
  overflow: clip;
  color: #ffffff;
}

.hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(17, 17, 17, 0.72) 0%,
      rgba(17, 17, 17, 0.42) 52%,
      rgba(17, 17, 17, 0.18) 100%
    ),
    radial-gradient(900px 360px at 70% 35%, rgba(255, 106, 0, 0.22), transparent 60%);
}

.hero-cover-inner {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 64px) 0 76px;
  max-width: 68ch;
}

.hero-cover .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.hero-cover .hero-title {
  color: #ffffff;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.hero-cover .hero-subtitle {
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.hero-cover .btn {
  backdrop-filter: blur(10px);
}

.hero-cover .btn-primary {
  background: rgba(255, 106, 0, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.hero-cover .btn-primary:hover {
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.30);
}

.hero-cover .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.30);
  color: #ffffff;
}

.hero-cover .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.78);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 70ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease,
    box-shadow 160ms ease;
  will-change: transform;
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 106, 0, 0.28);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #e85f00;
  box-shadow: 0 14px 34px rgba(255, 106, 0, 0.22);
}

.btn-secondary {
  background: var(--accent);
  color: #ffffff;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #e85f00;
  box-shadow: 0 14px 34px rgba(255, 106, 0, 0.22);
}

.hero-media {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(17, 17, 17, 0.10);
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 0;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 106, 0, 0.22);
  transform: rotate(18deg);
  border-radius: 24px;
  pointer-events: none;
  animation: drift 8s ease-in-out infinite;
}

.hero-media .media-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  height: min(560px, 60vh);
}

@media (min-width: 1100px) {
  .hero {
    padding-top: 94px;
  }

  .hero-grid {
    grid-template-columns: 0.86fr 1.14fr;
    gap: 34px;
  }

  .hero-media {
    border-radius: 22px;
  }

  .hero-media .media-img {
    height: 640px;
  }
}

@keyframes drift {
  0% {
    transform: rotate(18deg) translate(0, 0);
  }
  50% {
    transform: rotate(18deg) translate(-10px, 10px);
  }
  100% {
    transform: rotate(18deg) translate(0, 0);
  }
}

/* Generic media */
.media {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.media:hover {
  box-shadow: var(--shadow);
}

.media-wide {
  margin-top: 26px;
}

.process-media-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-media .media-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.media-caption {
  padding: 12px 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.media-img {
  width: 100%;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 106, 0, 0.28);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 106, 0, 0.10);
  color: var(--accent);
  border: 1px solid rgba(255, 106, 0, 0.18);
  margin-bottom: 12px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card-text {
  margin: 0;
  color: var(--muted);
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 17px;
  height: 1px;
  background: rgba(17, 17, 17, 0.12);
}

.timeline-step {
  position: relative;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  margin: 12px auto 10px;
  box-shadow: 0 0 0 6px rgba(255, 106, 0, 0.12);
}

.step-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.timeline-step:hover .step-card {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 106, 0, 0.26);
}

.step-title {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.step-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Contact */
.contact-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.contact-head {
  margin-bottom: 18px;
}

.form {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.field {
  display: block;
  margin-bottom: 12px;
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  padding: 12px 12px;
  font: inherit;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.input:focus {
  outline: none;
  border-color: rgba(255, 106, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.14);
}

.btn-submit {
  width: 100%;
  margin-top: 4px;
}

/* Footer */
.footer {
  background: #111111;
  color: #ffffff;
  padding: 34px 0 18px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  max-width: 520px;
}

.footer-logo {
  width: min(320px, 100%);
  height: auto;
  margin-bottom: 10px;
}

.footer-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.footer-right {
  min-width: 210px;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 14px;
  transition: color 160ms ease;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
  outline: none;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* Section offset for sticky header */
#home,
#about,
#programs,
#community,
#contact,
#process {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-cover {
    min-height: clamp(560px, 86vh, 860px);
  }

  .hero-cover::after {
    background:
      linear-gradient(
        180deg,
        rgba(17, 17, 17, 0.65) 0%,
        rgba(17, 17, 17, 0.40) 45%,
        rgba(17, 17, 17, 0.20) 100%
      ),
      radial-gradient(760px 300px at 50% 20%, rgba(255, 106, 0, 0.22), transparent 60%);
  }

  .hero-cover-inner {
    padding: calc(var(--header-h) + 54px) 0 64px;
    max-width: 70ch;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline::before {
    left: 6px;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }

  .timeline-step {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: start;
    gap: 12px;
  }

  .step-dot {
    margin: 8px 0 0 0;
  }

  .hero {
    padding-top: 76px;
  }
}

@media (max-width: 520px) {
  .process-media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --header-h: 92px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .nav-link {
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .nav-link,
  .card,
  .step-card,
  .reveal {
    transition: none;
  }

  .hero-media::after {
    animation: none;
  }
}
