:root {
  --navy: #1d1814;
  --navy-dark: #0d0906;
  --navy-light: #423c34;
  --orange: #f2711c;
  --orange-dark: #d4590a;
  --text-dark: #1d1814;
  --text-muted: #746f66;
  --bg-light: #f4efe6;
  --white: #fffdf9;
  --border: #ded6c7;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-header nav a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--white);
}

.nav-phone {
  padding: 6px 14px;
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  color: var(--orange) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
}

.nav-phone:hover {
  background: var(--orange);
  color: var(--white) !important;
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero */
.hero {
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #2c241c 0%, #0d0906 60%);
  color: var(--white);
  padding: 180px 0 140px;
  text-align: center;
  min-height: 78vh;
  display: flex;
  align-items: center;
  margin: 10px 10px 0;
  border-radius: 36px;
}

@media (max-width: 640px) {
  .hero {
    margin: 6px 6px 0;
    border-radius: 24px;
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.eyebrow {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.56);
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 44px;
  letter-spacing: -0.01em;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: scale(1.035);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  transform: scale(1.035);
}

/* Section shared */
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-title.light {
  color: var(--white);
}

.section-desc {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.55;
  font-weight: 400;
}

.swipe-hint {
  display: inline-block;
  margin-top: 6px;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.85rem;
}

.section-desc.light {
  color: rgba(255, 255, 255, 0.68);
}

/* Section header kicker bar — gives every section a consistent, unmistakable start marker */
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 18px auto 0;
}

/* Hairline seam between stacked sections so backgrounds never blend together */
.about, .why, .network, .team, .service, .programs, .current-programs {
  border-top: 1px solid var(--border);
}

/* Icon badges — visualize each card's topic and drive the hover-zoom effect */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(242, 113, 28, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease), background 0.3s ease;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.about-card:hover .card-icon,
.program-card:hover .card-icon,
.current-card:hover .card-icon {
  transform: scale(1.15) rotate(-4deg);
  background: var(--orange);
}

.about-card:hover .card-icon svg,
.program-card:hover .card-icon svg,
.current-card:hover .card-icon svg {
  stroke: var(--white);
}

/* About */
.about {
  padding: 140px 0;
  background: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

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

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: none;
  transition: border-color 0.25s ease, transform 0.35s var(--ease);
}

.about-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(29, 24, 20, 0.1);
}

.about-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Why Turnable Korea */
.why {
  padding: 140px 0;
  background: var(--white);
}

/* Track Record & Network */
.network {
  padding: 140px 0 0;
  background: var(--bg-light);
}

.network-subtitle {
  text-align: center;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 56px;
}

.network-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, color 0.25s ease;
}

.tag:hover {
  transform: scale(1.08);
  border-color: var(--orange);
  color: var(--orange);
}

.current-tagline {
  color: var(--orange);
  font-weight: 700;
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Track Record (prominent yearly training stats) */
.track-record {
  padding: 140px 0;
  margin-top: -110px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
}

@media (max-width: 640px) {
  .track-record {
    margin-top: -90px;
  }
}

.tr-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 8px 0 56px;
}

.tr-total-number {
  color: var(--orange);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}

.tr-total-unit {
  font-size: 2rem;
  font-weight: 800;
  margin-left: 4px;
}

/* Floating stat card — straddles the boundary between two sections */
.floating-stat {
  position: relative;
  z-index: 5;
  max-width: 460px;
  margin: 64px auto 0;
  background: var(--white);
  border-radius: 28px;
  padding: 44px 48px 52px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(13, 9, 6, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floating-stat .tr-total-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.floating-stat .tr-total-number {
  margin-bottom: 8px;
}

.tr-total-caption {
  color: var(--navy);
  font-weight: 600;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .floating-stat {
    margin: 48px 20px 0;
    padding: 36px 28px 44px;
  }
  .floating-stat .tr-total-number {
    font-size: 3.4rem;
  }
}

.tr-total-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 600;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.year-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.year-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.year-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.year-theme {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.year-list {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.year-list li {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.year-list li:last-child {
  margin-bottom: 0;
}

.year-list strong {
  color: var(--navy);
  font-weight: 700;
}

.network-subtitle.light {
  color: var(--white);
}

.tr-total-secondary {
  margin-top: 8px;
  margin-bottom: 40px;
}

.tr-total-secondary .tr-total-number {
  font-size: 3rem;
}

/* Performance metrics (charts) */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0 64px;
}

.metric-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.metric-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.metric-card h4 {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.metric-card > p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Donut */
.donut-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  transition: transform 0.4s var(--ease);
}

.metric-card:hover .donut-wrap {
  transform: scale(1.08);
}

.donut {
  width: 100%;
  height: 100%;
}

.donut-track {
  fill: none;
  stroke: var(--bg-light);
  stroke-width: 12;
}

.donut-fill {
  fill: none;
  stroke: var(--orange);
  stroke-width: 12;
  stroke-linecap: round;
}

.donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
}

.donut-unit {
  font-size: 1rem;
  color: var(--orange);
  margin-left: 1px;
}

/* Bar comparison */
.bar-compare {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 56px;
  align-items: center;
  gap: 10px;
}

.bar-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.bar-track {
  height: 10px;
  background: var(--bg-light);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--border);
  border-radius: 999px;
}

.bar-fill-strong {
  background: var(--orange);
}

.bar-value {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  text-align: right;
}

/* Year dots (ATD consecutive years) */
.year-dots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.year-dot {
  flex: 1;
  min-width: 60px;
  text-align: center;
  padding: 14px 8px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--bg-light);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.year-dot.filled {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* Mini timeline (Suncheon case) */
.mini-timeline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-tl-point {
  flex: 1;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.mini-tl-year {
  display: block;
  color: var(--orange);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.mini-tl-desc {
  display: block;
  color: var(--text-dark);
  font-size: 0.82rem;
  line-height: 1.5;
}

.mini-tl-arrow {
  color: var(--orange);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Service */
.service {
  padding: 140px 0;
  background: var(--bg-light);
}

/* Team */
.team {
  padding: 140px 0;
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.team-card {
  text-align: center;
  padding: 32px 16px;
  border-radius: 18px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(11, 37, 69, 0.1);
}

.team-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
  transition: transform 0.5s var(--ease);
}

.team-card:hover .team-photo {
  transform: scale(1.08);
}

.team-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.team-card .role {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.team-card .desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Lead profile (featured team member) */
.lead-profile {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  margin-top: 48px;
}

.lead-photo {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.15);
  transition: transform 0.5s var(--ease);
}

.lead-profile:hover .lead-photo {
  transform: scale(1.05);
}

.lead-info h3 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.lead-info .role {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.lead-bio {
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.lead-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.lead-credentials h4 {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.lead-credentials ul {
  list-style: none;
}

.lead-credentials li {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.lead-credentials li:last-child {
  margin-bottom: 0;
}

/* Programs */
.programs {
  padding: 140px 0;
  background: var(--white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.program-card {
  background: var(--white);
  border-radius: 18px;
  padding: 40px 36px;
  border: 1px solid var(--border);
  box-shadow: none;
  transition: border-color 0.25s ease, transform 0.35s var(--ease);
}

.program-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(29, 24, 20, 0.1);
}

.program-tag {
  display: inline-block;
  color: var(--orange);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.program-card h3 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.program-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Current Programs */
.current-programs {
  padding: 140px 0;
  background: var(--bg-light);
}

.current-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

/* Current programs: continuous horizontal scroll at every screen size —
   card order in the HTML controls scroll order, so completed cards are
   placed last in the markup to land at the far right. */
#current-programs .current-grid {
  display: flex;
  grid-template-columns: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 12px;
}

#current-programs .current-grid .current-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
}

.current-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.35s var(--ease);
}

.current-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(29, 24, 20, 0.1);
}

.current-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.current-summary {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.current-facts {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.current-facts > div {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.current-facts > div:last-child {
  margin-bottom: 0;
}

.current-facts dt {
  flex: 0 0 44px;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
}

.current-facts dd {
  color: var(--text-dark);
  font-size: 0.88rem;
  line-height: 1.5;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 10px 18px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.download-link:hover {
  background: var(--orange);
  color: var(--white);
}

.status-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.status-badge.completed {
  background: var(--navy);
  color: var(--white);
}

.status-badge.open {
  background: var(--orange);
  color: var(--white);
}

.status-badge.ongoing {
  background: var(--orange-dark);
  color: var(--white);
}

/* Turnable Center teaser (landing page) */
.eyebrow-dark {
  text-align: center;
  margin-bottom: 16px;
}

.center-teaser {
  padding: 120px 0;
  background: linear-gradient(160deg, #103b3a 0%, #000000 100%);
}

.center-teaser-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.center-teaser .eyebrow-dark {
  color: #4fd1c5;
}

.track-record .eyebrow-dark {
  color: rgba(255, 255, 255, 0.5);
}

/* Shared: quote / ladder / foundation / roadmap components (used on center.html) */
.center-quote {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 28px 32px;
  border-left: 4px solid var(--orange);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  border-radius: 0 12px 12px 0;
}

.ladder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.ladder-step {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
}

.ladder-step h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.ladder-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.foundation-card {
  background: var(--navy);
  border-radius: 18px;
  padding: 32px 28px;
}

.foundation-card h3 {
  color: var(--orange);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.foundation-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

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

.roadmap-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
}

.roadmap-phase {
  display: block;
  color: var(--orange);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.roadmap-step p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Contact */
.contact {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 120px 0;
  margin: 0 10px 10px;
  border-radius: 36px;
}

@media (max-width: 640px) {
  .contact {
    margin: 0 6px 6px;
    border-radius: 24px;
  }
}

.contact-inner {
  text-align: center;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  padding: 28px 0;
  text-align: center;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.footer-contact {
  margin-top: 6px;
}

/* Turnable Center page (center.html) — teal accent theme */
body.center-page {
  --orange: #1f6e6b;
  --orange-dark: #164f4d;
}

body.center-page .site-header {
  background: rgba(7, 20, 20, 0.62);
}

body.center-page .hero {
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #10302e 0%, #000000 60%);
}

body.center-page .contact {
  background: linear-gradient(160deg, #000000 0%, #0d1f1e 100%);
}

body.center-page .site-footer {
  background: #000000;
}

.back-to-main {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
}

.back-to-main:hover {
  color: var(--orange);
}

/* Generic alternating section wrapper (used on center.html) */
.c-section {
  padding: 140px 0;
  background: var(--white);
}

.c-section.c-alt {
  background: var(--bg-light);
}

/* Membership tiers (Turnable Center kids program) */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.tier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
}

.tier-card.tier-featured {
  border: 2px solid var(--orange);
  box-shadow: 0 8px 24px rgba(31, 110, 107, 0.15);
}

.tier-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.tier-card ul {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Simple data table (space layout, weekly schedule) */
.data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
}

.data-table th, .data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.data-table th:not(:last-child),
.data-table td:not(:last-child) {
  white-space: nowrap;
}

.data-table th:last-child,
.data-table td:last-child {
  min-width: 180px;
}

.data-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.data-table td:first-child {
  font-weight: 700;
  color: var(--orange);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.table-scroll {
  overflow-x: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .year-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .programs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .current-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Current programs: full-bleed edges + narrower snap cards on small screens */
  #current-programs .current-grid {
    gap: 20px;
    margin: 48px -24px 0;
    padding: 0 24px 12px;
    scrollbar-width: none;
  }
  #current-programs .current-grid::-webkit-scrollbar {
    display: none;
  }
  #current-programs .current-grid .current-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .ladder-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .foundation-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tier-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Mobile menu */
  .menu-toggle {
    display: flex;
  }

  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  body.center-page .site-header nav {
    background: rgba(7, 20, 20, 0.92);
  }

  .site-header nav.open {
    max-height: 600px;
    opacity: 1;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  }

  .site-header nav a {
    width: 100%;
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-phone {
    margin: 12px 24px;
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 90px 0 70px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero-sub {
    font-size: 1.05rem;
  }
  .about, .why, .network, .team, .service, .programs, .current-programs,
  .center-teaser, .c-section, .contact, .track-record {
    padding: 64px 0;
  }
  .about-grid,
  .about-grid.grid-cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tr-total-number {
    font-size: 3.2rem;
  }
  .tr-total-unit {
    font-size: 1.5rem;
  }
  .roadmap-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-title {
    font-size: 1.6rem;
  }
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 400px) {
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero h1 {
    font-size: 1.8rem;
  }
}

/* Placed last so it wins over the .team-grid responsive overrides above at every width */
.team-grid-secondary {
  grid-template-columns: repeat(2, minmax(0, 240px));
  justify-content: center;
  margin-top: 32px;
}

@media (max-width: 560px) {
  .team-grid-secondary {
    grid-template-columns: minmax(0, 240px);
  }
}

@media (max-width: 900px) {
  .lead-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
  }
  .lead-credentials {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .lead-credentials {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .bar-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .bar-value {
    text-align: left;
  }
  .mini-timeline {
    flex-direction: column;
    align-items: stretch;
  }
  .mini-tl-arrow {
    align-self: center;
    transform: rotate(90deg);
  }
  .tr-total-secondary .tr-total-number {
    font-size: 2.4rem;
  }
}
