/* V1 NEIGHBORHOOD/STUDY — neighborhood-study (보습학원)
 * Warm cream + warm orange + Pretendard + isometric depth
 * 5 시그니처: 학년 tab · 출결 ticker · 학부모 chat · 동네 지도 hero · isometric stack
 */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-base:           #fff8f0;
  --bg-card:           #ffffff;
  --bg-warm:           #fff2e5;
  --ink:               #2a1a0e;
  --ink-soft:          #6b5544;
  --muted:             #b8a890;
  --warm-orange:       #ff6b35;
  --warm-orange-soft:  #ffd5c2;
  --warm-orange-dim:   rgba(255,107,53,.15);
  --green-pin:         #2e7d57;
  --line:              #f0e6d8;
  --shadow-sm:         0 2px 12px rgba(255,107,53,.08);
  --shadow-lg:         0 8px 32px rgba(42,26,14,.10);

  --display: 'Pretendard', system-ui, -apple-system, sans-serif;
  --text:    'Pretendard', system-ui, sans-serif;
  --mono:    'JetBrains Mono', 'SF Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --z-banner: 120;
  --z-nav: 80;
  --z-overlay: 100;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea {
  font: inherit; color: var(--ink); font-family: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 16px; font-weight: 400;
  width: 100%;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--warm-orange);
}

/* ── Demo banner ──────────────────────────────────── */
.demo-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-banner);
  background: var(--ink); color: var(--bg-base);
  font-family: var(--text); font-size: 11px; font-weight: 500;
  padding: 8px 16px; text-align: center; letter-spacing: 0.04em;
}
.demo-banner a { color: var(--warm-orange-soft); text-decoration: underline; font-weight: 600; }
body.has-banner { padding-top: 32px; }

/* ── Top Nav (brand + burger) ─────────────────────── */
.nav-brand {
  position: fixed; top: 24px; left: 32px; z-index: var(--z-nav);
  font-family: var(--display); font-weight: 700;
  font-size: 17px; letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex; gap: 10px; align-items: center;
}
body.has-banner .nav-brand { top: 56px; }
.nav-brand .pin {
  display: inline-block; width: 12px; height: 12px;
  background: var(--warm-orange); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
/* PC Nav Bar — cream warm rounded with pin dot accent (V1 unique, full menu) */
.nav-bar {
  position: fixed; top: 18px; right: 32px; z-index: var(--z-nav);
  display: inline-flex; gap: 4px; align-items: center;
  background: var(--bg-card); padding: 5px 8px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--warm-orange-soft);
}
body.has-banner .nav-bar { top: 50px; }
.nav-bar a {
  font-family: var(--display); font-weight: 600;
  font-size: 13px; color: var(--ink-soft);
  padding: 9px 13px; border-radius: 100px;
  display: inline-flex; gap: 6px; align-items: center;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-bar a::before {
  content: ''; width: 5px; height: 5px;
  background: var(--warm-orange-soft); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  transition: background .2s;
}
.nav-bar a:hover { background: var(--bg-warm); color: var(--ink); }
.nav-bar a:hover::before { background: var(--warm-orange); }
.nav-bar .nav-bar-cta {
  background: var(--warm-orange); color: #fff;
  font-weight: 700; padding: 9px 16px;
  margin-left: 4px;
}
.nav-bar .nav-bar-cta::before { display: none; }
.nav-bar .nav-bar-cta:hover { background: #e85b29; color: #fff; }
.nav-bar-user {
  display: inline-flex; gap: 4px; align-items: center;
  margin-left: 8px; padding-left: 10px;
  border-left: 1px solid var(--warm-orange-soft);
}
.nav-bar-user-link {
  font-size: 12px !important; color: var(--ink-soft);
  padding: 8px 10px !important;
}
.nav-bar-user-link::before { display: none !important; }
.nav-bar-user-link:hover { color: var(--warm-orange) !important; background: transparent !important; }
.nav-bar-user .nav-bar-user-link:last-child {
  border: 1px solid var(--warm-orange);
  color: var(--warm-orange);
  border-radius: 100px; padding: 7px 12px !important;
  font-weight: 700;
}
.nav-bar-user .nav-bar-user-link:last-child:hover {
  background: var(--warm-orange) !important; color: #fff !important;
}

/* Drawer divider + user links */
.drawer-divider {
  width: 60px; height: 1px; background: var(--warm-orange-soft);
  margin: 12px auto;
}
.drawer-user-link {
  font-size: 22px !important; color: var(--ink-soft) !important;
  font-weight: 500 !important;
}

/* Drawer X close button (top-right · clear of demo banner) */
.drawer-close {
  position: absolute; top: 60px; right: 24px;
  width: 48px; height: 48px;
  background: var(--bg-card); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 30px; font-weight: 300;
  color: var(--ink); line-height: 1;
  cursor: pointer; border: 1.5px solid var(--warm-orange);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, background .2s;
  z-index: 2;
}
body.has-banner .drawer-close { top: 80px; }
.drawer-close:hover {
  background: var(--warm-orange); color: #fff;
  transform: rotate(90deg);
}

/* Mobile hamburger — only shown ≤ 768px */
.nav-burger {
  position: fixed; top: 24px; right: 32px; z-index: var(--z-nav);
  width: 40px; height: 40px;
  background: var(--bg-card); border-radius: 50%;
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  align-items: center; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .2s;
}
body.has-banner .nav-burger { top: 56px; }
.nav-burger:hover { transform: scale(1.06); }
.nav-burger span {
  width: 18px; height: 2px; background: var(--ink); border-radius: 1px;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-bar    { display: none; }
  .nav-burger { display: flex; }
}

/* Drawer overlay */
.drawer {
  position: fixed; inset: 0;
  background: var(--bg-warm);
  z-index: var(--z-overlay);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  display: flex; align-items: center; justify-content: center;
  padding: 80px;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-inner { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.drawer a {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.02em; color: var(--ink);
  transform: translateY(20px); opacity: 0;
  transition: opacity .5s, transform .5s, color .25s;
}
.drawer.open a { transform: translateY(0); opacity: 1; }
.drawer.open a:nth-child(1) { transition-delay: 0.05s; }
.drawer.open a:nth-child(2) { transition-delay: 0.10s; }
.drawer.open a:nth-child(3) { transition-delay: 0.15s; }
.drawer.open a:nth-child(4) { transition-delay: 0.20s; }
.drawer a:hover { color: var(--warm-orange); }

/* ── Section base ─────────────────────────────────── */
.section { padding: 100px 32px; position: relative; }
.container { max-width: 1200px; margin: 0 auto; width: 100%; }
.section-eyebrow {
  font-family: var(--text); font-size: 12px; font-weight: 600;
  color: var(--warm-orange); letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -0.03em; line-height: 1.15;
  color: var(--ink); margin-bottom: 16px;
}
.section-desc {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink-soft); line-height: 1.85; max-width: 640px;
  font-weight: 400;
}

/* ── Hero — sig #4 동네 지도 ──────────────────────── */
#hero {
  padding: 120px 32px 80px; position: relative;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-base) 100%);
  min-height: 92vh;
  display: flex; align-items: center;
}
body.has-banner #hero { padding-top: 152px; }
.hero-wrap {
  max-width: 1320px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; gap: 24px; }
.hero-badge {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 8px 16px; background: var(--bg-card); border: 1.5px solid var(--warm-orange-dim);
  border-radius: 100px;
  font-size: 12px; font-weight: 600; color: var(--warm-orange);
  letter-spacing: 0.06em; text-transform: uppercase;
  width: fit-content;
}
.hero-badge .badge-dot {
  width: 8px; height: 8px; background: var(--warm-orange); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,107,53,.15);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(255,107,53,.15); }
  50%     { box-shadow: 0 0 0 8px rgba(255,107,53,.05); }
}
.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: -0.04em; line-height: 1.0;
  color: var(--ink); white-space: pre-line;
}
.hero-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink-soft); max-width: 480px; line-height: 1.85;
}
.hero-meta {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.06em;
  margin-top: 8px;
}
.hero-cta-row { display: inline-flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.hero-btn-primary {
  padding: 14px 28px; background: var(--warm-orange); color: #fff;
  border-radius: 100px; font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em; box-shadow: var(--shadow-sm);
  transition: transform .2s, background .2s;
}
.hero-btn-primary:hover { transform: translateY(-2px); background: #e85b29; }
.hero-btn-ghost {
  padding: 14px 28px; background: transparent; color: var(--ink);
  border-radius: 100px; font-weight: 500; font-size: 14px;
  letter-spacing: 0.04em; border: 1.5px solid var(--ink);
}
.hero-btn-ghost:hover { background: var(--ink); color: #fff; }

/* Map illustration container — sig #4 */
.hero-map {
  position: relative; aspect-ratio: 1.1/1;
  background-image: url('');
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.hero-map-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-map .center-pin {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  width: 32px; height: 32px;
  background: var(--warm-orange); border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  box-shadow: 0 4px 16px rgba(255,107,53,.3);
  animation: pinDrop .8s ease-out;
}
@keyframes pinDrop {
  0%   { opacity: 0; transform: translate(-50%, -150%) scale(.5); rotate: -45deg; }
  100% { opacity: 1; transform: translate(-50%, -100%) scale(1);  rotate: -45deg; }
}
.hero-map .pin-label {
  position: absolute; left: 50%; top: 50%; margin-top: 16px;
  transform: translate(-50%, 0);
  background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ── Manifesto ─────────────────────────────────────── */
#manifesto { background: var(--bg-card); }
.manifesto-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.manifesto-line {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em; line-height: 1.3;
  color: var(--ink);
  padding: 32px 24px;
  border-left: 3px solid var(--warm-orange);
}
.manifesto-line:nth-child(2) { border-color: #2e7d57; }
.manifesto-line:nth-child(3) { border-color: #d4a55c; }
.manifesto-line:nth-child(4) { border-color: var(--ink); }

/* ── Grade Tabs — sig #1 ──────────────────────────── */
#grades { background: var(--bg-warm); }
.grades-wrap { display: flex; flex-direction: column; gap: 32px; }
.grade-tab-row {
  display: inline-flex; gap: 8px; padding: 6px;
  background: var(--bg-card); border-radius: 100px;
  box-shadow: var(--shadow-sm);
  width: fit-content;
}
.grade-tab {
  padding: 14px 32px; border-radius: 100px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  color: var(--ink-soft);
  transition: background .25s, color .25s;
}
.grade-tab.active { background: var(--warm-orange); color: #fff; }
.grade-tab:hover:not(.active) { color: var(--warm-orange); }
.grade-panel {
  display: none;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  animation: panelFade .5s ease;
}
.grade-panel.active { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
@keyframes panelFade {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.grade-panel-info { display: flex; flex-direction: column; gap: 20px; }
.grade-panel-label {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--warm-orange); letter-spacing: -0.04em;
}
.grade-panel-desc {
  font-size: 17px; color: var(--ink); font-weight: 500;
  line-height: 1.6;
}
.grade-panel-timetable {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-soft); padding: 14px 20px;
  background: var(--bg-warm); border-radius: var(--radius-sm);
  border-left: 3px solid var(--warm-orange);
}
.grade-subjects {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.grade-subject {
  padding: 18px 20px; background: var(--bg-warm);
  border-radius: var(--radius-sm);
  font-weight: 500; font-size: 15px;
  display: flex; align-items: center; gap: 12px;
  transition: background .25s;
}
.grade-subject:hover { background: var(--warm-orange-soft); }
.grade-subject .subject-num {
  font-family: var(--mono); font-size: 11px; color: var(--warm-orange);
  font-weight: 600;
}

/* ── Programs Grid (8 과목) ───────────────────────── */
#programs { background: var(--bg-base); }
.programs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 48px;
}
.program-card {
  background: var(--bg-card); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.program-img {
  width: 100%; aspect-ratio: 1/1;
  background-size: cover; background-position: center;
}
.program-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.program-code {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--warm-orange); letter-spacing: 0.16em;
}
.program-name {
  font-family: var(--display); font-weight: 700;
  font-size: 19px; letter-spacing: -0.01em;
  color: var(--ink);
}
.program-desc {
  font-size: 13px; color: var(--ink-soft);
  line-height: 1.6;
}

/* ── Attendance Ticker — sig #2 ───────────────────── */
#attendance {
  background: var(--ink); color: var(--bg-base);
  padding: 60px 0; overflow: hidden;
}
.attend-eyebrow {
  font-family: var(--text); font-size: 12px; font-weight: 600;
  color: var(--warm-orange); letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center; margin-bottom: 24px;
}
.attend-marquee {
  display: flex; gap: 56px;
  animation: marqueeScroll 45s linear infinite;
  white-space: nowrap;
}
.attend-marquee:hover { animation-play-state: paused; }
.attend-item {
  display: inline-flex; gap: 14px; align-items: center;
  font-family: var(--mono); font-size: 14px;
}
.attend-name {
  background: var(--warm-orange); color: var(--ink);
  padding: 6px 12px; border-radius: 100px;
  font-weight: 600; font-size: 12px;
}
.attend-grade { color: var(--muted); font-size: 11px; }
.attend-action { color: #fff; font-weight: 500; }
.attend-time { color: var(--muted); font-size: 11px; }
.attend-dot {
  width: 8px; height: 8px; background: #4ade80; border-radius: 50%;
  box-shadow: 0 0 12px #4ade80;
  animation: liveBlink 1.5s ease-in-out infinite;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes liveBlink {
  0%,100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* ── Stats ─────────────────────────────────────────── */
#stats { background: var(--bg-warm); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 48px;
}
.stat-card {
  padding: 40px 28px; background: var(--bg-card);
  border-radius: var(--radius-md); text-align: left;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--warm-orange);
}
.stat-card:nth-child(2)::before { background: var(--green-pin); }
.stat-card:nth-child(3)::before { background: #d4a55c; }
.stat-card:nth-child(4)::before { background: var(--ink); }
.stat-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.04em; color: var(--ink); line-height: 1;
}
.stat-label {
  margin-top: 12px;
  font-size: 13px; color: var(--ink-soft);
  line-height: 1.5;
}

/* ── Process Steps ─────────────────────────────────── */
#process { background: var(--bg-card); }
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  margin-top: 48px;
}
.process-step {
  padding: 32px 24px; background: var(--bg-warm);
  border-radius: var(--radius-md);
  position: relative;
}
.process-num {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--warm-orange); letter-spacing: 0.16em;
}
.process-name {
  font-family: var(--display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.02em; color: var(--ink);
  margin-top: 8px;
}
.process-body {
  margin-top: 12px; font-size: 13px; color: var(--ink-soft);
  line-height: 1.6;
}
.process-arrow {
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px; background: var(--bg-card);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--warm-orange); font-weight: 700;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.process-step:last-child .process-arrow { display: none; }

/* ── Parent Chat — sig #3 ─────────────────────────── */
#parent-chat { background: var(--bg-warm); }
.chat-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.chat-info { padding-top: 24px; }
.chat-window {
  background: #b6d6e3; padding: 24px; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 12px;
  max-width: 420px; box-shadow: var(--shadow-lg);
  margin-left: auto;
}
.chat-header {
  display: flex; gap: 12px; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,.08);
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--warm-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.chat-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.chat-msg-row {
  display: flex; gap: 8px; align-items: flex-end;
}
.chat-msg-row.parent { justify-content: flex-end; }
.chat-bubble {
  padding: 10px 14px; max-width: 75%;
  font-size: 13px; line-height: 1.5;
  background: #fff; color: var(--ink); border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.chat-msg-row.parent .chat-bubble {
  background: #ffeb35; color: var(--ink);
}
.chat-time {
  font-size: 10px; color: rgba(0,0,0,.4); font-family: var(--mono);
  white-space: nowrap;
}

/* ── Teachers Grid (8명) ───────────────────────────── */
#teachers { background: var(--bg-base); }
.teachers-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-top: 48px;
}
.teacher-card {
  background: var(--bg-card); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s;
}
.teacher-card:hover { transform: translateY(-4px); }
.teacher-img {
  width: 100%; aspect-ratio: 4/5;
  background-size: cover; background-position: center;
}
.teacher-info { padding: 20px; }
.teacher-name {
  font-family: var(--display); font-weight: 700;
  font-size: 19px; letter-spacing: -0.01em; color: var(--ink);
}
.teacher-subject {
  font-size: 12px; font-weight: 600; color: var(--warm-orange);
  letter-spacing: 0.06em; margin-top: 6px;
}
.teacher-career {
  font-size: 12px; color: var(--ink-soft);
  margin-top: 8px; line-height: 1.5;
}

/* ── Reviews (4 학부모) ────────────────────────────── */
#reviews { background: var(--bg-warm); }
.reviews-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  margin-top: 48px;
}
.review-card {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 32px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 80px 1fr; gap: 20px;
  align-items: start;
}
.review-img {
  width: 80px; height: 80px; border-radius: 50%;
  background-size: cover; background-position: center;
}
.review-quote {
  font-size: 15px; color: var(--ink); line-height: 1.7;
  font-weight: 500;
}
.review-quote::before { content: '“'; font-family: var(--display); font-size: 24px; color: var(--warm-orange); margin-right: 4px; }
.review-meta {
  margin-top: 12px; font-size: 12px; color: var(--ink-soft);
  display: flex; gap: 6px; align-items: center;
}
.review-name { font-weight: 600; color: var(--ink); }

/* ── Facility (3) ──────────────────────────────────── */
#facility { background: var(--bg-card); }
.facility-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.facility-card {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.facility-img {
  width: 100%; aspect-ratio: 16/10;
  background-size: cover; background-position: center;
}
.facility-body { padding: 20px; }
.facility-name {
  font-family: var(--display); font-weight: 700;
  font-size: 17px; color: var(--ink); letter-spacing: -0.01em;
}
.facility-desc {
  margin-top: 6px; font-size: 13px; color: var(--ink-soft);
  line-height: 1.5;
}

/* ── CTA ───────────────────────────────────────────── */
#cta {
  background: linear-gradient(135deg, var(--warm-orange) 0%, #e85b29 100%);
  color: #fff;
}
.cta-wrap {
  max-width: 640px; margin: 0 auto; text-align: center;
}
.cta-headline {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.04em; line-height: 1.1;
  white-space: pre-line; color: #fff;
  margin-bottom: 16px;
}
.cta-body {
  color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.85;
  margin-bottom: 40px;
}
.cta-form {
  background: var(--bg-card); padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px;
  text-align: left;
}
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-label {
  display: block;
  font-family: var(--text); font-size: 12px; color: var(--ink-soft);
  font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.cta-submit {
  width: 100%; padding: 16px;
  background: var(--ink); color: #fff;
  border-radius: 100px;
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.04em;
  margin-top: 8px;
  transition: transform .2s;
}
.cta-submit:hover { transform: translateY(-2px); }
.cta-meta {
  margin-top: 24px; font-family: var(--mono); font-size: 12px;
  color: rgba(255,255,255,.85);
}

/* ── Footer ────────────────────────────────────────── */
#footer {
  background: var(--ink); color: var(--bg-warm);
  padding: 80px 32px 40px;
}
.footer-wrap {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px;
}
.footer-brand .footer-tagline {
  font-family: var(--display); font-weight: 700;
  font-size: 20px; line-height: 1.4;
  margin-top: 16px;
}
.footer-brand .footer-meta-row {
  margin-top: 24px; display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.footer-pins {
  display: flex; flex-direction: column; gap: 12px;
}
.footer-pin-title {
  font-family: var(--text); font-size: 11px; font-weight: 600;
  color: var(--warm-orange); letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 8px;
}
.footer-pin {
  display: flex; gap: 10px; align-items: center;
  font-size: 13px; color: var(--bg-warm);
}
.footer-pin .pin-dot {
  width: 6px; height: 6px; background: var(--warm-orange);
  border-radius: 50%;
}
.footer-pin .pin-dist { color: var(--muted); font-size: 11px; }
.footer-founder { display: flex; flex-direction: column; gap: 12px; }
.footer-founder-img {
  width: 60px; height: 75px; border-radius: var(--radius-sm);
  background-size: cover; background-position: center;
}
.footer-founder-name {
  font-family: var(--display); font-weight: 700; font-size: 16px;
}
.footer-founder-role {
  font-size: 12px; color: var(--muted);
}
.footer-bottom {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-map { aspect-ratio: 16/10; }
  .grade-panel.active { grid-template-columns: 1fr; gap: 32px; }
  .programs-grid, .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-arrow { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr; }
  .chat-wrap { grid-template-columns: 1fr; gap: 32px; }
  .chat-window { margin-left: 0; max-width: 100%; }
  .footer-wrap { grid-template-columns: 1fr; gap: 40px; }
  .manifesto-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 60px 24px; }
  .nav-brand { top: 16px; left: 20px; font-size: 15px; }
  body.has-banner .nav-brand { top: 48px; }
  .programs-grid, .teachers-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .grade-tab-row { flex-wrap: wrap; }
  .grade-subjects { grid-template-columns: 1fr; }
  .cta-form-row { grid-template-columns: 1fr; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .review-card { grid-template-columns: 60px 1fr; padding: 20px; }
  .review-img { width: 60px; height: 60px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 1D 강화 — universal cursor follower v2 */
.cursor-follower{position:fixed; top:0; left:0; width:32px; height:32px; border:2px solid currentColor; border-radius:50%; pointer-events:none; z-index:9999; transform:translate(-50%,-50%); transition:transform .15s ease-out, width .25s, height .25s, background .25s; mix-blend-mode:difference; opacity:.85}
.cursor-follower.cursor-grow{width:60px; height:60px; background:rgba(255,255,255,.1)}
.cursor-follower.cursor-shrink{width:8px; height:8px}
.nav-cta, .nav-signup, [class*="-form-submit"], [class*="-cta"] a{transition:transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .3s !important}
[class*="-card"]{transition:transform .35s cubic-bezier(.2,.85,.4,1.275), box-shadow .35s, border-color .25s !important}
@media (max-width:768px){.cursor-follower{display:none !important}}

/* 1D-2 cursor diversify — warm orange 동네 */
.cursor-follower{border-color:#e07a3c; mix-blend-mode:normal; box-shadow:0 0 16px rgba(224,122,60,.5)}
.cursor-follower::before{content:"✎"; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); color:#e07a3c; font-size:13px}

/* 1D-4 mobile interaction — touch ripple + particle (universal) */
@media (max-width:768px){
  .touch-ripple{position:fixed; pointer-events:none; z-index:9998; border-radius:50%; transform:translate(-50%,-50%); animation:touch-ripple-anim .6s ease-out forwards; mix-blend-mode:multiply}
  @keyframes touch-ripple-anim{
    0%{width:10px; height:10px; opacity:.7; border:2px solid currentColor; background:transparent}
    100%{width:80px; height:80px; opacity:0; border:1px solid currentColor; background:transparent}
  }
  .touch-particle{position:fixed; pointer-events:none; z-index:9998; transform:translate(-50%,-50%); transition:all 1.2s ease-out; opacity:.9; font-size:14px}
  /* iOS smooth scroll + active feedback */
  a, button, [class*="-card"]{-webkit-tap-highlight-color:transparent}
  a:active, button:active, [class*="-card"]:active{transform:scale(.97); transition:transform .1s}
}


/* ===========================================
   RETROFIT v1.27 — motionsites integration
   slug: neighborhood-study
   effects: R, U
   =========================================== */
/* === retrofit v1.27 motionsites badge-orbit (MIT) === */
@media (prefers-reduced-motion: no-preference) {
  .stat-grid, .badge-row, [class*="-stats"], [class*="-badges"] {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .stat-grid:hover, .badge-row:hover, [class*="-stats"]:hover, [class*="-badges"]:hover {
    transform: rotate(0.5deg);
  }
}/* === retrofit v1.27 motionsites scroll-driven-reveal (MIT) === */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section, [class*="-section"], .card, [class*="-card"], article {
      animation: rt-reveal-up linear forwards;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    @keyframes rt-reveal-up {
      from { opacity: 0; transform: translateY(28px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}