/* ============================================================
   Kids in Wonder — 키즈인원더
   Design system. Mobile-first. Korean-first.
   Color story: gold (K · world) → red (i · mind) → teal (W · child)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand accents (locked) */
  --gold: #F5C000;   /* the "K" — the world */
  --red:  #E84040;   /* the "i" — the mind  */
  --teal: #1D9E75;   /* the "W" — the child, primary accent, links */

  /* Structure & text (locked) */
  --navy: #1a1a2e;   /* primary text / structure */
  --grey: #3A3A3A;   /* soft body text */
  --bg:   #FBFAF6;   /* warm off-white background */

  /* Derived tints — quiet, for surfaces and washes */
  --gold-wash: #FDF6E0;
  --red-wash:  #FCEDED;
  --teal-wash: #E7F4EF;
  --teal-deep: #16805E;
  --surface:   #FFFFFF;
  --line:      #ECE8DD;       /* hairline on warm bg */
  --line-soft: #F2EFE6;
  --muted:     #6B6B72;       /* secondary text */
  --navy-soft: rgba(26, 26, 46, 0.72);

  /* Type */
  --font-body: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  --font-display: 'Nanum Myeongjo', 'Noto Serif KR', Georgia, serif;
  --font-latin: 'Poppins', 'Noto Sans KR', sans-serif;

  /* Rhythm */
  --maxw: 1080px;
  --maxw-prose: 680px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 18px;
  --radius-sm: 11px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(26,26,46,.04), 0 12px 32px -16px rgba(26,26,46,.16);
  --shadow-lift: 0 2px 4px rgba(26,26,46,.05), 0 24px 48px -24px rgba(26,26,46,.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--grey);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--teal); }

/* Visible keyboard focus (quality floor) */
:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 0 0 12px 12px;
  z-index: 1000; font-size: 14px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--maxw-prose); }
.section { padding-block: var(--section-y); }
.center { text-align: center; }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--font-latin);
  font-size: clamp(11px, 2.4vw, 13px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot { color: var(--teal); }

h1, h2, h3 { color: var(--navy); font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  word-break: keep-all;       /* keep Korean words intact at wrap */
}

.h-section {
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.3;
  word-break: keep-all;
}
.lede {
  font-size: clamp(16px, 3.4vw, 19px);
  color: var(--grey);
  word-break: keep-all;
}
.small { font-size: 14px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
  line-height: 1; text-align: center;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -12px rgba(29,158,117,.8); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(29,158,117,.85); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }
.btn .key-ico { width: 17px; height: 17px; transition: transform .4s var(--ease); }
.btn:hover .key-ico { transform: rotate(90deg); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 246, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -16px rgba(26,26,46,.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand img { height: 66px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .ko { font-size: 25px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.brand-text .en { font-family: var(--font-latin); font-size: 10px; font-weight: 500; letter-spacing: 0.18em; color: var(--teal); }

.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--navy); font-size: 15px; font-weight: 500; padding: 9px 14px; border-radius: 10px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-links a:hover { background: var(--teal-wash); color: var(--teal-deep); }
.nav-links a[aria-current="page"] { color: var(--teal-deep); }
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; border-radius: 2px; background: var(--teal);
  margin: 3px 14px 0;
}
.nav-cta { display: none; }

/* Mobile menu */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; padding: 10px;
  border-radius: 10px;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.mobile-menu.open { grid-template-rows: 1fr; }
.mobile-menu > div { overflow: hidden; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 10px var(--gutter) 22px; }
.mobile-menu a {
  color: var(--navy); font-size: 17px; font-weight: 500; padding: 14px 6px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a[aria-current="page"] { color: var(--teal-deep); }
.mobile-menu .btn { margin-top: 18px; justify-content: center; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(56px, 9vw, 104px); overflow: hidden; }
.hero::before {
  /* soft warm glow, very quiet */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: min(620px, 80vw); height: 620px;
  background: radial-gradient(circle at 70% 30%, rgba(245,192,0,.10), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow { margin-bottom: clamp(22px, 4vw, 30px); }

.belief {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 7.2vw, 60px);
  line-height: 1.34;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 16ch;
  word-break: keep-all;
}
.belief .door { position: relative; white-space: nowrap; }
.belief .key-word { color: var(--teal-deep); position: relative; }

.hero-slogan { margin-top: clamp(26px, 4vw, 36px); display: flex; flex-direction: column; gap: 4px; }
.hero-slogan .ko {
  font-family: var(--font-display);
  font-size: clamp(20px, 4.2vw, 27px); font-weight: 700; color: var(--teal); letter-spacing: 0.01em;
}
.hero-slogan .en {
  font-family: var(--font-latin); font-size: clamp(12px, 2.6vw, 14px); font-weight: 400;
  letter-spacing: 0.1em; color: var(--muted);
}
.hero-actions { margin-top: clamp(30px, 5vw, 40px); display: flex; flex-wrap: wrap; gap: 14px; }

/* The ONE interactive moment: a key that turns, unlocking the hero.
   Subtle, load-once, fully disabled under reduced-motion. */
.keyhole { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.keyhole svg { width: 30px; height: 30px; }
.keyhole .key-shape { transform-origin: 15px 15px; transform: rotate(-32deg); }
.unlock .keyhole .key-shape { animation: keyturn 1.1s var(--ease) .35s both; }
@keyframes keyturn {
  0% { transform: rotate(-32deg); }
  60% { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}
.keyhole .keyline { font-family: var(--font-latin); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }

/* hero reveal */
.reveal-hero > * { opacity: 0; transform: translateY(16px); }
.unlock .reveal-hero > * { animation: rise .8s var(--ease) both; }
.unlock .reveal-hero > *:nth-child(1) { animation-delay: .05s; }
.unlock .reveal-hero > *:nth-child(2) { animation-delay: .15s; }
.unlock .reveal-hero > *:nth-child(3) { animation-delay: .28s; }
.unlock .reveal-hero > *:nth-child(4) { animation-delay: .40s; }
.unlock .reveal-hero > *:nth-child(5) { animation-delay: .52s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .reveal-hero > *, .unlock .reveal-hero > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .keyhole .key-shape, .unlock .keyhole .key-shape { animation: none !important; transform: rotate(0deg); }
  .btn:hover .key-ico { transform: none; }
}

/* ============================================================
   Trust strip
   ============================================================ */
.trust {
  border-block: 1px solid var(--line);
  background: linear-gradient(var(--surface), var(--surface)) padding-box;
}
.trust ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 0; padding-block: 22px;
}
.trust li {
  font-size: clamp(13px, 2.8vw, 15px); font-weight: 500; color: var(--navy);
  padding-inline: clamp(14px, 3vw, 26px); position: relative; white-space: nowrap;
}
.trust li + li::before {
  content: "·"; position: absolute; left: -2px; color: var(--gold); font-weight: 700;
}

/* ============================================================
   Concepts — gold / red / teal (the logo's only story)
   ============================================================ */
.concepts { display: grid; gap: clamp(20px, 3vw, 26px); }
@media (min-width: 760px) { .concepts { grid-template-columns: repeat(3, 1fr); } }

.concept {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(26px, 4vw, 36px);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.concept::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent, var(--teal));
}
.concept:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.concept .ord {
  font-family: var(--font-latin); font-weight: 600; font-size: 13px; letter-spacing: 0.14em;
  color: var(--accent); display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
}
.concept .ord .pip { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.concept h3 { font-size: clamp(20px, 3.4vw, 23px); margin-bottom: 12px; word-break: keep-all; }
.concept p { font-size: 15.5px; color: var(--grey); word-break: keep-all; }
.concept .proof { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.concept .proof .label { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--accent); margin-bottom: 8px; }
.concept .proof ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.concept .proof li { font-size: 14px; color: var(--grey); padding-left: 20px; position: relative; word-break: keep-all; }
.concept .proof li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .55; }

.c-gold { --accent: var(--gold); }
.c-gold .ord { color: #B98C00; } .c-gold .ord .pip { background: var(--gold); } .c-gold .proof .label { color: #B98C00; }
.c-red  { --accent: var(--red); }
.c-red  .ord { color: var(--red); } .c-red .proof .label { color: var(--red); }
.c-teal { --accent: var(--teal); }
.c-teal .ord { color: var(--teal-deep); } .c-teal .proof .label { color: var(--teal-deep); }

/* ============================================================
   Section heading block
   ============================================================ */
.section-head { margin-bottom: clamp(34px, 5vw, 52px); max-width: 40ch; }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { margin-top: 14px; color: var(--muted); }

/* ============================================================
   Closing / CTA band
   ============================================================ */
.closing {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--teal-wash));
  color: var(--grey); border-top: 1px solid var(--line);
}
.closing::before {
  content: ""; position: absolute; inset: auto auto -30% -10%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(29,158,117,.12), transparent 62%); pointer-events: none;
}
.closing::after {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(245,192,0,.16), transparent 62%); pointer-events: none;
}
.closing .wrap { position: relative; z-index: 1; }
.closing .display { color: var(--navy); font-size: clamp(24px, 5vw, 38px); line-height: 1.42; max-width: 22ch; }
.closing .lede { color: var(--grey); margin-top: 22px; max-width: 46ch; }
.closing .hero-actions { margin-top: 34px; }

/* color accent strip under the belief, echoing K i W */
.kiw-rule { display: inline-flex; gap: 6px; margin-top: 4px; }
.kiw-rule span { width: 26px; height: 5px; border-radius: 3px; }
.kiw-rule .g { background: var(--gold); } .kiw-rule .r { background: var(--red); } .kiw-rule .t { background: var(--teal); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); border-top: 1px solid rgba(255,255,255,.08); }
.closing + .site-footer { border-top: none; }
.footer-grid { display: grid; gap: 34px; padding-block: clamp(48px, 7vw, 72px); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.footer-brand img { height: 46px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.6); max-width: 34ch; word-break: keep-all; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .08em; margin-bottom: 16px; text-transform: uppercase; font-family: var(--font-latin); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { color: rgba(255,255,255,.72); font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
/* Footer contact icon buttons */
.footer-icons { display: flex; gap: 12px; margin-bottom: 16px; }
.ficon {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2);
  color: #fff; transition: background .2s ease, transform .15s ease;
}
.ficon:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-2px); }
.ficon.talk { background: var(--teal); border-color: var(--teal); }
.ficon.talk:hover { background: var(--teal-deep); }
.ficon svg { width: 20px; height: 20px; }
.footer-addr { color: rgba(255,255,255,.6); font-size: 14px; word-break: keep-all; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom .en { font-family: var(--font-latin); letter-spacing: .12em; }

/* ============================================================
   Generic content blocks (About / Programs / Camp)
   ============================================================ */
.lead-block { max-width: var(--maxw-prose); }
.lead-block p + p { margin-top: 20px; }
.lead-block .display { font-size: clamp(22px, 4.4vw, 32px); color: var(--navy); margin-bottom: 24px; line-height: 1.45; }
.body-prose p { margin-bottom: 18px; font-size: 16.5px; color: var(--grey); word-break: keep-all; }
.body-prose p:last-child { margin-bottom: 0; }

/* Page hero (interior pages) */
.page-hero { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(34px, 5vw, 52px); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 6vw, 48px); line-height: 1.28; margin-top: 18px; word-break: keep-all; }
.page-hero .lede { margin-top: 20px; max-width: 44ch; }

/* Feature rows (alternating) */
.feature { display: grid; gap: clamp(20px, 4vw, 44px); align-items: center; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.flip .feature-media { order: 2; }
}
.feature + .feature { margin-top: clamp(48px, 7vw, 84px); }
.feature-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--teal-wash);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--muted); position: relative; overflow: hidden;
}
.feature-media.g { background: var(--gold-wash); } .feature-media.r { background: var(--red-wash); }
.feature-media .ph { font-size: 13px; letter-spacing: .04em; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature h3 { font-size: clamp(21px, 3.6vw, 27px); margin-bottom: 14px; word-break: keep-all; }
.feature p { word-break: keep-all; }

/* Cards grid */
.cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards.two { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 760px) { .cards.three { grid-template-columns: repeat(3,1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 30px); box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; margin-bottom: 10px; word-break: keep-all; }
.card p { font-size: 15px; color: var(--grey); word-break: keep-all; }

/* Pills / tags */
.pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; background: var(--teal-wash); color: var(--teal-deep);
}
.pill.g { background: var(--gold-wash); color: #9A7500; }
.pill.r { background: var(--red-wash); color: var(--red); }

/* Note / guardrail callout */
.note {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 22px 24px; font-size: 15px; color: var(--grey);
}
.note strong { color: var(--navy); }

/* Teacher avatar placeholder (illustrated portraits TBD) */
.avatar {
  width: 84px; height: 84px; border-radius: 50%; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-latin); font-weight: 600; font-size: 26px; color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
}
.avatar.g { background: linear-gradient(135deg, var(--gold), #D9A800); }
.avatar.r { background: linear-gradient(135deg, var(--red), #C9302F); }

/* Teacher portrait photos — square 600×600, white background, centered.
   Card surface is white (--surface), so the photos' white bg blends in seamlessly. */
.teacher-photo {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center;
  border-radius: var(--radius-sm); margin-bottom: 18px; background: var(--surface);
  display: block;
}
.card .role { font-size: 13px; font-weight: 600; color: var(--teal-deep); margin: 2px 0 8px; }

/* Timeline (10-level journey scaffold) */
.steps { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: none; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--teal-wash); color: var(--teal-deep);
  font-family: var(--font-latin); font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Program stages (Starters → Reading → Thinking) */
.stages { display: grid; gap: 22px; }
@media (min-width: 900px) { .stages { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow);
  border-top: 4px solid var(--teal); display: flex; flex-direction: column;
}
.stage.g { border-top-color: var(--gold); }
.stage.r { border-top-color: var(--red); }
.stage-num {
  font-family: var(--font-latin); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 12px;
}
.stage h3 { font-size: clamp(20px, 2.4vw, 23px); word-break: keep-all; margin-bottom: 8px; }
.stage .stage-age { font-size: 13.5px; font-weight: 600; color: var(--teal-deep); margin-bottom: 18px; }
.stage.g .stage-age { color: #9A7500; }
.stage.r .stage-age { color: var(--red); }
.stage .stage-body { font-size: 15px; color: var(--grey); word-break: keep-all; flex: 1 1 auto; }
.stage-outcome { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.stage-outcome .lbl {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 6px;
}
.stage-outcome p { font-size: 14.5px; color: var(--navy); font-weight: 500; word-break: keep-all; }

/* In-page scroll reveal (gentle) */
.io { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.io.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .io { opacity: 1 !important; transform: none !important; } }

/* ============================================================
   Forms / inputs (registration, parent gate)
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field .req { color: var(--red); margin-left: 2px; }
.input, .textarea, .select {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--navy);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #A6A6AD; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29,158,117,.14);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field-hint { font-size: 13px; color: var(--muted); }

/* Numbered process steps (registration) — reuses .steps rhythm with a heavier card feel */
.flow { display: grid; gap: 16px; counter-reset: flow; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(3, 1fr); } }
.flow-step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 28px); box-shadow: var(--shadow);
}
.flow-step .n {
  width: 38px; height: 38px; border-radius: 50%; background: var(--teal-wash); color: var(--teal-deep);
  font-family: var(--font-latin); font-weight: 600; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.flow-step h3 { font-size: 18px; margin-bottom: 8px; word-break: keep-all; }
.flow-step p { font-size: 14.5px; color: var(--muted); word-break: keep-all; }

/* Simple checklist (what to prepare) */
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--grey); word-break: keep-all; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

/* Contact facts row */
.facts { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact .fi {
  flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-wash);
  color: var(--teal-deep); display: inline-flex; align-items: center; justify-content: center;
}
.fact .fi svg { width: 20px; height: 20px; }
.fact .lbl { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.fact .val { font-size: 15.5px; color: var(--navy); font-weight: 500; word-break: keep-all; }

/* ============================================================
   Policy page — table of contents + placeholder sections
   ============================================================ */
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .toc { grid-template-columns: repeat(2, 1fr); } }
.toc a {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--navy); font-weight: 500; font-size: 15px; transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.toc a:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-1px); }
.toc a .idx { font-family: var(--font-latin); font-weight: 600; color: var(--teal); font-size: 13px; }

.policy { padding-top: 40px; border-top: 1px solid var(--line-soft); margin-top: 40px; scroll-margin-top: 100px; }
.policy:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.policy h2 { font-size: clamp(20px, 3.4vw, 25px); margin-bottom: 12px; }
.policy .policy-sub { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.policy h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin: 22px 0 10px; word-break: keep-all; }
.policy > p { font-size: 16px; color: var(--grey); word-break: keep-all; margin-bottom: 12px; }
.policy > p.small { color: var(--muted); }
.policy-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.policy-list li { position: relative; padding-left: 20px; font-size: 15.5px; color: var(--grey); word-break: keep-all; line-height: 1.7; }
.policy-list li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); opacity: .6; }

/* "Content coming" placeholder marker (visible, unmistakably a placeholder) */
.placeholder {
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--line-soft); padding: 20px 22px; color: var(--muted); font-size: 14.5px;
  display: flex; gap: 12px; align-items: flex-start; word-break: keep-all;
}
.placeholder .tag {
  flex: none; font-family: var(--font-latin); font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}

/* ============================================================
   Parent feed — password gate + Google Drive embed
   ============================================================ */
.gate { max-width: 420px; margin: clamp(30px, 8vw, 70px) auto; text-align: center; }
.gate .lock {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 22px;
  background: var(--teal-wash); color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
}
.gate .lock svg { width: 28px; height: 28px; }
.gate h1 { font-size: clamp(22px, 5vw, 28px); margin-bottom: 10px; }
.gate p { font-size: 15px; color: var(--muted); margin-bottom: 24px; word-break: keep-all; }
.gate form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.gate .error { font-size: 14px; color: var(--red); min-height: 20px; margin: 0; text-align: center; }
.gate .btn { justify-content: center; }

.feed { display: none; }
.feed.open { display: block; }
.feed-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }

/* Manifest-rendered photo/video feed (parent-feed.json), grouped 월 → 반 */
.pfeed-month + .pfeed-month { margin-top: 44px; }
.pfeed-month-title {
  font-size: clamp(19px, 4vw, 24px); color: var(--navy);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.pfeed-class { margin-top: 20px; }
.pfeed-class-title {
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--teal-deep);
  margin-bottom: 10px;
}
.pfeed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pfeed-item { margin: 0; position: relative; }
.pfeed-item img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: var(--radius-sm); background: var(--teal-wash);
  transition: transform .25s var(--ease);
}
.pfeed-item a:hover img { transform: scale(1.02); }
.pfeed-video { grid-column: 1 / -1; aspect-ratio: 16 / 9; background: var(--teal-wash); border-radius: var(--radius-sm); overflow: hidden; }
.pfeed-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.pfeed-cap { font-size: 13px; color: var(--muted); margin-top: 6px; word-break: keep-all; }
.pfeed-empty {
  grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 15px;
  padding: clamp(36px, 8vw, 64px) 20px; border: 1.5px dashed var(--line);
  border-radius: var(--radius); background: var(--line-soft);
}
.feed .btn-signout {
  background: transparent; border: 1.5px solid var(--line); color: var(--muted);
  padding: 8px 16px; font-size: 14px;
}
.feed .btn-signout:hover { border-color: var(--teal); color: var(--teal-deep); }

/* Utility */
.stack-sm > * + * { margin-top: 12px; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 48px; }
.text-teal { color: var(--teal-deep); }
