/* =========================================================
   KABAYAN FILIPINO CENTER — STYLESHEET
   Light, airy studio style (inspired by mdx.so),
   carried by KFC's flag colors: blue, red, and sun-gold.
   Edit the tokens below to re-theme the whole site.
   ========================================================= */

:root {
  /* Surfaces */
  --bg: #F6F7FB;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-hover: #FFFFFF;
  --line: rgba(10, 20, 48, 0.09);
  --line-strong: rgba(10, 20, 48, 0.18);

  /* Text */
  --text: #0A1430;
  --text-2: #2B3550;
  --muted: #545E75;
  --dim: #8891A5;
  --on-ink: #FFFFFF;

  /* KFC flag colors, tuned to glow on dark */
  --blue: #2F6BFF;
  --blue-deep: #0B3B7A;
  --red: #FF3B47;
  --gold: #F5B82E;
  --gold-text: #B07800;   /* darker sun-gold, readable on light backgrounds */
  --shadow: 0 1px 2px rgba(10, 20, 48, 0.04), 0 12px 32px -12px rgba(10, 20, 48, 0.12);

  /* Type */
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Shape & motion */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --gutter: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; padding: 120px 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Subtle film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Glow blobs (the soft blurred light behind sections) ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.glow-blue { background: var(--blue); }
.glow-red  { background: var(--red); }
.glow-gold { background: var(--gold); opacity: 0.3; }

/* ---------- Labels & headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.25);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 14ch;
}
.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
  margin-top: 20px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

/* Words dimmed inside a big statement */
.dim { color: var(--dim); }
.gold { color: var(--gold-text); }

/* ---------- Buttons (uppercase pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn i { transition: transform 0.35s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn-solid { background: var(--text); color: var(--on-ink); }
.btn-solid:hover { background: var(--gold); color: var(--text); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,0.6); }
.btn-ghost:hover { border-color: var(--text); background: var(--surface-hover); }
.btn-sm { padding: 11px 20px; font-size: 0.72rem; }

/* Small tag pills */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
}
.tag-plus { width: 38px; height: 38px; padding: 0; justify-content: center; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 22px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader img { width: 64px; height: 64px; animation: loader-spin 2.4s linear infinite; }
.loader-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 1.2em;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(246, 247, 251, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.15;
}
.nav-brand img { width: 40px; height: 40px; }
.nav-brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--on-ink); background: var(--text); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.75);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile full-screen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(246, 247, 251, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 40px;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 500;
  padding: 6px 0;
  color: var(--text);
}
.mobile-menu a:hover { color: var(--gold-text); }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; font-family: var(--font-mono); font-size: 0.78rem; }

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero .glow-blue { width: 520px; height: 520px; top: -120px; left: -160px; }
.hero .glow-red  { width: 420px; height: 420px; bottom: -160px; right: 10%; opacity: 0.12; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero h1 {
  font-size: clamp(3rem, 8.4vw, 7.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.2s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  margin-top: 28px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 44ch;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 56px; }

.sun-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}
.sun-stage canvas { width: 100%; height: 100%; display: block; }
.sun-caption {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 36px;
  background: linear-gradient(var(--muted), transparent);
  animation: drip 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Statement banner ---------- */
.statement { padding: 140px 0; border-top: 1px solid var(--line); }
.statement p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.statement .word { color: #C3C8D4; transition: color 0.5s var(--ease); }
.statement .word.lit { color: var(--text); }
.statement .word.hl.lit { color: var(--gold-text); }
.statement .hl { color: var(--gold-text); }

/* ---------- Filter tabs ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn.active { background: var(--text); color: var(--on-ink); border-color: var(--text); }

/* ---------- Cards (services) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 32px 28px 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.5s var(--ease), opacity 0.4s var(--ease);
  box-shadow: var(--shadow);
}
.card::before {
  /* glow that follows the cursor (set by script.js) */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 107, 255, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card.is-hidden { display: none; }
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
  padding-bottom: 40px;
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--gold-text);
}
.card-kind {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Program portals ---------- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portal {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: var(--bg-2);
  transition: transform 0.6s var(--ease), border-color 0.4s var(--ease);
  box-shadow: var(--shadow);
}
.portal::before {
  content: "";
  position: absolute;
  width: 140%;
  aspect-ratio: 1;
  left: -20%;
  bottom: -75%;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  z-index: -1;
  transition: transform 0.8s var(--ease), opacity 0.6s var(--ease);
}
.portal.driving::before { background: radial-gradient(circle, var(--blue), transparent 65%); }
.portal.korean::before  { background: radial-gradient(circle, var(--red), transparent 65%); }
.portal.church::before  { background: radial-gradient(circle, var(--gold), transparent 65%); }
.portal:hover { transform: translateY(-8px); border-color: var(--line-strong); }
.portal:hover::before { transform: translateY(-14%) scale(1.08); opacity: 0.42; }

.portal-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.portal-icon {
  font-size: 4.2rem;
  margin: auto 0;
  padding: 40px 0;
  color: var(--text);
  opacity: 0.92;
  transition: transform 0.6s var(--ease);
}
.portal:hover .portal-icon { transform: scale(1.08) rotate(-4deg); }
.portal h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 12px; }
.portal p { color: var(--muted); margin-bottom: 26px; max-width: 30ch; }
.portal .btn { align-self: flex-start; position: relative; z-index: 2; }
.portal-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-xl); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-copy p { color: var(--muted); font-size: 1.08rem; margin-top: 24px; max-width: 50ch; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.about-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-visual .glow-blue { width: 60%; height: 60%; top: 0; left: 0; }
.about-visual .glow-red  { width: 60%; height: 60%; bottom: 0; right: 0; opacity: 0.35; }
.about-visual img {
  position: relative;
  z-index: 1;
  width: 46%;
  filter: drop-shadow(0 24px 40px rgba(10,20,48,0.25));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.orbit {
  position: absolute;
  inset: 12%;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  animation: loader-spin 60s linear infinite;
}
.orbit::after {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
}

/* ---------- Why KFC (pillars) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 36px 28px 8px 0;
  border-right: 1px solid var(--line);
  margin-right: 28px;
}
.pillar:last-child { border-right: none; margin-right: 0; }
.pillar i { color: var(--gold-text); font-size: 1.2rem; margin-bottom: 26px; display: block; }
.pillar h3 { font-size: 1.25rem; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact .glow-blue { width: 500px; height: 500px; right: -200px; top: 10%; opacity: 0.3; }
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-title { font-size: clamp(3rem, 8vw, 6.4rem); line-height: 0.95; letter-spacing: -0.035em; }
.contact-form {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239AA3B5' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: #FFFFFF; color: var(--text); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-text); box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.25); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 0.82rem; color: var(--dim); max-width: 36ch; }

.contact-list { border-top: 1px solid var(--line); }
.contact-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.contact-row i { color: var(--gold-text); font-size: 1.05rem; margin-top: 4px; }
.contact-row .k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}
.contact-row .v { font-size: 1rem; }
.contact-row a.v { border-bottom: 1px solid var(--line-strong); transition: border-color 0.3s, color 0.3s; }
.contact-row a.v:hover { color: var(--gold-text); border-color: var(--gold-text); }
.contact-row .v + .v { margin-top: 4px; }
.contact-row .sub-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-row .sub-link:hover { color: var(--gold-text); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 90px 0 36px;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand span { font-family: var(--font-display); font-size: 1rem; }
.footer-tagline { color: var(--muted); font-size: 0.95rem; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: 0.95rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--text); }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.socials a:hover { color: var(--on-ink); background: var(--text); border-color: var(--text); }

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 15vw, 14rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 70px 0 30px;
  padding-bottom: 0.12em;
  background: linear-gradient(180deg, rgba(10,20,48,0.9) 0%, rgba(10,20,48,0.04) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  white-space: nowrap;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.to-top:hover { color: var(--on-ink); background: var(--text); border-color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* =========================================================
   SUB-PAGES (driving / korean / church)
   ========================================================= */
.page-hero {
  padding: 180px 0 110px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .glow-a { width: 520px; height: 520px; top: -160px; right: -120px; }
.page-hero .glow-b { width: 380px; height: 380px; bottom: -200px; left: 10%; opacity: 0.25; }
.page-hero.theme-driving .glow-a { background: var(--blue); }
.page-hero.theme-driving .glow-b { background: var(--gold); }
.page-hero.theme-korean .glow-a  { background: var(--red); }
.page-hero.theme-korean .glow-b  { background: var(--blue); }
.page-hero.theme-church .glow-a  { background: var(--gold); opacity: 0.35; }
.page-hero.theme-church .glow-b  { background: var(--red); }
.page-hero-inner { position: relative; z-index: 1; }
.crumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 30px;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--text); }
.page-hero h1 {
  font-size: clamp(2.8rem, 7.6vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.page-hero .lead { margin-top: 28px; color: var(--muted); font-size: 1.12rem; max-width: 52ch; }
.page-hero .hero-actions { margin-top: 36px; }
.kda-badge { height: 64px; width: auto; margin-bottom: 34px; }

.sub-section { padding: 110px 0; border-bottom: 1px solid var(--line); }
.sub-section:last-of-type { border-bottom: none; }
.sub-head { margin-bottom: 56px; }
.sub-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; }
.sub-head p { color: var(--muted); margin-top: 18px; max-width: 54ch; font-size: 1.05rem; }

/* Track cards (driving) */
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.track {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 38px 34px 34px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s var(--ease);
  box-shadow: var(--shadow);
}
.track::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  right: -140px; top: -160px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.16;
  z-index: -1;
}
.track.blue::before { background: var(--blue); }
.track.red::before  { background: var(--red); }
.track:hover { border-color: var(--line-strong); }
.track .tag { align-self: flex-start; margin-bottom: 28px; }
.track h3 { font-size: 1.9rem; margin-bottom: 14px; }
.track > p { color: var(--muted); margin-bottom: 26px; }
.check-list { margin-bottom: 30px; }
.check-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.track .btn { align-self: flex-start; margin-top: auto; }

/* Stat row */
.stat-row {
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.stat { padding: 40px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-num em { font-style: normal; color: var(--gold-text); }
.stat-label {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Road timeline (license steps) — a dashed road with stops */
.road { position: relative; max-width: 860px; }
.road::before {
  content: "";
  position: absolute;
  left: 23px; top: 10px; bottom: 10px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 10px, transparent 10px 20px);
}
.road-stop {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 26px;
  padding: 0 0 44px;
}
.road-stop:last-child { padding-bottom: 0; }
.road-num {
  position: relative;
  z-index: 1;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.road-stop.in-view .road-num { border-color: var(--gold-text); color: var(--gold-text); }
.road-stop:last-child .road-num { background: var(--gold); color: var(--text); border-color: var(--gold); }
.road-stop h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.road-stop h3 .ko { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.road-stop p { color: var(--muted); max-width: 56ch; }

/* Month cards */
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.month {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.month-bar { height: 3px; width: 48px; border-radius: 3px; margin-bottom: 26px; }
.month:nth-child(1) .month-bar { background: var(--blue); }
.month:nth-child(2) .month-bar { background: var(--red); }
.month:nth-child(3) .month-bar { background: var(--gold); }
.month .k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.month h3 { font-size: 1.45rem; margin: 10px 0 22px; }
.month li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--text-2);
}
.month li.exam { color: var(--gold-text); }
.month li.exam i { margin-right: 8px; }

/* Two-up feature cards */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.feature i { font-size: 1.3rem; color: var(--gold-text); margin-bottom: 28px; display: block; }
.feature h3 { font-size: 1.45rem; margin-bottom: 12px; }
.feature p { color: var(--muted); }

/* Generic six-up info grid (korean / church) */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Tables */
.table-wrap {
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}
.data-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.data-table th, .data-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  background: #F9FAFD;
}
.data-table td { font-size: 0.96rem; color: var(--text-2); }
.data-table td.price { font-family: var(--font-display); color: var(--text); white-space: nowrap; }
.data-table td.note { color: var(--muted); font-size: 0.9rem; }
.data-table tr:last-child td { border-bottom: none; }
.table-title { font-size: 1.15rem; margin: 54px 0 18px; }
.fine-print {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 72ch;
}
.fine-print i { color: var(--gold-text); margin-top: 4px; }

/* Packages */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.package {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
  box-shadow: var(--shadow);
}
.package:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.package.featured { border-color: rgba(176, 120, 0, 0.45); background: linear-gradient(180deg, rgba(245,184,46,0.14), var(--surface) 60%); }
.package .flag {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--gold);
  padding: 5px 10px;
  border-radius: 999px;
}
.package .k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.package h3 { font-size: 1.15rem; margin: 10px 0 16px; max-width: 18ch; }
.package .price { font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 20px; }
.package ul { flex-grow: 1; }
.package li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--text-2); }
.package .best { margin-top: 18px; font-size: 0.84rem; color: var(--muted); }
.package .best strong { color: var(--gold-text); font-weight: 600; }

/* Policy box */
.policy {
  border: 1px solid rgba(176, 120, 0, 0.3);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(245,184,46,0.16), #FFFFFF 65%);
  padding: 40px 38px;
}
.policy h3 { font-size: 1.5rem; margin-bottom: 22px; }
.policy li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}
.policy li i { color: var(--gold-text); margin-top: 5px; }

/* Resource links */
.resource-list { border-top: 1px solid var(--line); }
.resource {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}
.resource:hover { background: var(--surface); box-shadow: var(--shadow); padding-left: 18px; padding-right: 18px; }
.resource .r-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-text);
  font-size: 1.2rem;
}
.resource h3 { font-size: 1.2rem; margin-bottom: 6px; }
.resource p { color: var(--muted); font-size: 0.94rem; max-width: 64ch; }
.resource .domain {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.resource:hover .domain { color: var(--text); }

/* Downloads */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.download {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
  box-shadow: var(--shadow);
}
.download:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.download .d-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(47, 107, 255, 0.1);
  color: #1F4FD1;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.download h3 { font-size: 1rem; margin-bottom: 4px; }
.download span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.download .arrow { margin-left: auto; color: var(--muted); }

/* Closing CTA band */
.cta {
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
}
.cta .glow-blue { width: 600px; height: 300px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.16; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -0.035em; max-width: 14ch; }
.cta p { color: var(--muted); margin: 22px 0 36px; font-size: 1.08rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .card-grid, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-grid { grid-template-columns: 1fr; }
  .portal { min-height: 380px; }
  .portal-icon { padding: 26px 0; font-size: 3.4rem; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: none; margin-right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .month-grid, .package-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .sun-stage { position: absolute; z-index: -1; width: 115%; max-width: none; right: -55%; top: -12%; opacity: 0.32; }
  .sun-caption, .scroll-hint { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 460px; }
  .track-grid, .duo, .download-grid { grid-template-columns: 1fr; }
  .resource { grid-template-columns: 48px 1fr; }
  .resource .r-icon { width: 48px; height: 48px; }
  .resource .domain { grid-column: 2; }
}

@media (max-width: 640px) {
  section, .statement, .cta { padding: 84px 0; }
  .sub-section { padding: 80px 0; }
  .page-hero { padding: 140px 0 80px; }
  .hero { padding: 120px 0 90px; }
  .section-head { margin-bottom: 44px; }
  .card-grid, .info-grid, .month-grid, .package-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .pillar:last-child { border-bottom: none; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stat { padding: 28px 20px; }
  .policy { padding: 30px 22px; }
  .track { padding: 30px 24px; }
  .hero-actions .btn, .page-hero .hero-actions .btn { flex: 1 1 100%; }
  .nav-brand small { display: none; }
  .hide-sm { display: none; }
  .card-top { padding-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line span { transform: none; }
}
