/* ════════════════════════════════════════════════════════════════
   ARE·SCHOOLING — Luminous design system
   Dark, photo-forward, future-education aesthetic with line-glow motif
   ════════════════════════════════════════════════════════════════ */

/* ── Adam (display / brand) ── */
@font-face { font-family: "Adam"; src: url("fonts/Adam-Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Adam"; src: url("fonts/Adam.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Adam"; src: url("fonts/Adam-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Adam"; src: url("fonts/Adam-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* ── surfaces (light, warm) ── */
  --bg:       #ffffff;
  --bg-2:     #f7f7f7;
  --surface:  #ffffff;
  --surface-2:#f4f4f4;
  --line:     oklch(0.88 0.008 75);
  --line-soft:oklch(0.92 0.006 75);

  /* ── text ── */
  --ink:      oklch(0.24 0.012 65);
  --ink-soft: oklch(0.4 0.012 65);
  --muted:    oklch(0.55 0.012 68);
  --faint:    oklch(0.66 0.012 70);
  --on-accent:#fff;

  /* ── luminous accents (the glow) ── */
  --aqua:    #ffa500;
  --aqua-dim: #e09000;
  --violet:   #cc7000;
  --glow-grad: #ffa500;
  --glow-grad-r: #ffa500;

  /* per-program hues */
  --topic:     oklch(0.72 0.16 25);
  --discovery: oklch(0.8 0.15 75);
  --travel:    oklch(0.78 0.13 195);
  --camp:      oklch(0.72 0.15 270);

  /* ── type ── */
  --display: "Adam", "Space Grotesk", "Pretendard", system-ui, sans-serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 5vw, 72px);

  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "palt";
  overflow-x: hidden;
}
::selection { background: var(--aqua); color: var(--on-accent); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── ambient page glow ── */
body::before { display: none; }
.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  left: 0; top: 0;
  margin: -200px 0 0 -200px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(255,165,0,0.09) 0%, transparent 70%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 700ms ease;
  will-change: transform;
}
body.has-cursor .cursor-glow { opacity: 1; }

/* ════════ layout ════════ */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-wide { max-width: 1600px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { position: relative; z-index: 2; }
main { position: relative; z-index: 2; }

/* glowing hairline divider */
.glowline {
  position: relative;
  height: 1px;
  width: 100%;
  background: var(--line-soft);
  overflow: visible;
}
.glowline::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 32%;
  background: var(--glow-grad);
  filter: none;
  box-shadow: none;
  animation: glide 7s var(--ease) infinite;
}
@keyframes glide {
  0%   { left: -32%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ════════ nav ════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding 400ms var(--ease), background 400ms var(--ease), border-color 400ms var(--ease);
}
.nav.scrolled {
  padding-top: 13px; padding-bottom: 13px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line-soft);
}
/* 투명 네비 상태: 흰 텍스트 — 사진이 깔린 첫 화면(홈)에서만.
   흰 배경인 하위 페이지에선 기본(어두운) 글씨 그대로 */
body:has(.hero__media) .nav:not(.scrolled) .brand { color: rgba(255,255,255,0.95); }
body:has(.hero__media) .nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.88); }
body:has(.hero__media) .nav:not(.scrolled) .nav-links a:hover { color: #fff; }
body:has(.hero__media) .nav:not(.scrolled) .nav-links a.cur { color: #fff; }
/* 삼선도 사진 위에선 흰색, 스크롤해서 흰 바가 깔리면 원래 검정 */
body:has(.hero__media) .nav:not(.scrolled) .nav-toggle span { background: #fff; }
.nav .brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 11px;
  white-space: nowrap;
}
.brand .mark { width: 28px; height: 28px; flex: none; object-fit: contain; display: block; }
.nav .brand .dot { color: var(--aqua); }
.nav .brand .light { color: var(--muted); font-weight: 400; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 38px);
  margin-left: auto; /* 메뉴+로그인을 오른쪽으로 모음 */
  list-style: none; margin-top: 0; margin-bottom: 0; margin-right: 0; padding: 0;
}
.nav-links a {
  position: relative;
  font-size: 16px;
  color: var(--ink);
  padding: 6px 2px;
  transition: color 300ms var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--glow-grad);
  box-shadow: none;
  transition: width 350ms var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.cur::after { width: 100%; }
.nav-links a.cur { color: var(--ink); }

.nav .cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600;
  padding: 9px 20px;
  border-radius: 0;
  color: var(--on-accent);
  background: var(--glow-grad);
  box-shadow: none;
  transition: transform 300ms var(--ease), background 300ms var(--ease);
  letter-spacing: 0.02em;
}
.nav .cta:hover {
  transform: translateY(-1px);
  background: var(--aqua-dim);
}

.nav-toggle { display: none; }
/* 메뉴 아래쪽 모토·아이콘은 모바일 메뉴에서만 */
.nav-links .menu-foot { display: none; }
/* 그룹웨어 입구: 헤더에는 두지 않고 푸터 「연결」 칸에 둔다 */

@media (max-width: 940px) {
  .nav-links {
    position: fixed;
    margin-left: 0;
    top: 64px; right: 0; /* open below the nav bar so the logo/hamburger stay visible on top */
    height: calc(100vh - 64px); height: calc(100dvh - 64px);
    width: min(78vw, 300px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    padding: 30px 34px 40px;
    z-index: 100;
    /* dark frosted glass at 70% opacity — the page shows through, blurred */
    background: oklch(0.15 0.02 262 / 0.7);
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
    border-left: 1px solid rgba(255,255,255,0.12);
    transform: translateX(100%);
    transition: transform 460ms var(--ease);
  }
  body.menu-open .nav-links { transform: translateX(0); box-shadow: -24px 0 60px -20px rgba(0,0,0,0.45); }
  /* dim scrim over the rest of the page; tap to close */
  .menu-scrim {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
    transition: opacity 480ms var(--ease);
  }
  body.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
  /* drawer sits on a dark translucent panel — force light link + X colors */
  body.menu-open .nav-links a { color: rgba(255,255,255,0.9); }
  body.menu-open .nav-links a.cur, body.menu-open .nav-links a:hover { color: #fff; }
  body.menu-open .nav-toggle span { background: #fff; }
  .nav-links a { font-size: 23px; font-family: var(--display); padding: 13px 2px; }
  .nav-links li.cta-li { margin-top: 26px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; min-width: 44px; min-height: 44px;
    background: none; border: 0; cursor: pointer; padding: 8px; z-index: 101;
  }
  .nav-toggle span {
    width: 26px; height: 2px; background: var(--ink);
    transition: transform 360ms var(--ease), opacity 280ms var(--ease);
  }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── 모바일 메뉴 꾸밈: 구분선·현재 페이지 표시·차례로 들어오는 움직임·아래쪽 모토와 채널 ── */
  .nav-links { padding-top: 22px; overflow-y: auto; }
  .nav-links > li:not(.cta-li):not(.menu-foot) { width: 100%; position: relative; }
  /* 구분선: 열릴 때 왼쪽에서 오른쪽으로 그어진다 */
  .nav-links > li:not(.cta-li):not(.menu-foot)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: rgba(255,255,255,0.12); transform: scaleX(0); transform-origin: left;
    transition: transform 700ms var(--ease); transition-delay: inherit; }
  body.menu-open .nav-links > li:not(.cta-li):not(.menu-foot)::after { transform: scaleX(1); }
  .nav-links > li:not(.cta-li):not(.menu-foot) > a { display: block; width: 100%; padding: 11px 2px; font-size: 19px; }
  .nav-links > li > a:not(.cta)::after { display: none; }
  body.menu-open .nav .nav-links a.cur:not(.cta) { color: var(--aqua); } /* 홈 사진 위 흰 글씨 규칙보다 우선 */
  .nav-links li.cta-li { width: 100%; margin-top: auto; padding-top: 30px; } /* 신청하기는 아래쪽, 모토 바로 위 */
  .nav-links li.cta-li .cta { width: 100%; justify-content: center; padding: 15px 20px; font-size: 17px; }
  .nav-links .menu-foot { display: block; width: 100%; padding-top: 24px; }
  .menu-foot .menu-motto { margin: 0 0 18px; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,0.55); }
  .menu-foot .footer-links { display: flex; gap: 6px; margin-left: -6px; }
  .menu-foot .footer-links a { display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    font-size: 0; color: rgba(255,255,255,0.75); }
  .menu-foot .footer-links svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
  .menu-foot .footer-links svg .fill { fill: currentColor; stroke: none; }
  /* 열릴 때: 판이 밀려 들어오고, 항목이 아래에서 하나씩 떠오르며, 신청 버튼은 살짝 커지며 나타난다 */
  .nav-links { transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1); }
  .nav-links > li { opacity: 0; transform: translate(36px, 14px);
    transition: opacity 380ms ease-out, transform 640ms cubic-bezier(0.16, 1, 0.3, 1); }
  .nav-links > li.cta-li { transform: translateY(16px) scale(0.94); }
  body.menu-open .nav-links > li { opacity: 1; transform: none; }
  body.menu-open .nav-links > li:nth-child(1) { transition-delay: 120ms; }
  body.menu-open .nav-links > li:nth-child(2) { transition-delay: 190ms; }
  body.menu-open .nav-links > li:nth-child(3) { transition-delay: 260ms; }
  body.menu-open .nav-links > li:nth-child(4) { transition-delay: 330ms; }
  body.menu-open .nav-links > li:nth-child(5) { transition-delay: 400ms; }
  body.menu-open .nav-links > li:nth-child(6) { transition-delay: 470ms; }
  body.menu-open .nav-links > li:nth-child(7) { transition-delay: 540ms; }
  /* 닫힐 때는 지연 없이 한꺼번에 빠르게 */
  body:not(.menu-open) .nav-links > li { transition-duration: 200ms; transition-delay: 0ms; }
}
@media (max-width: 940px) and (prefers-reduced-motion: reduce) {
  .nav-links > li { opacity: 1; transform: none; transition: none; }
  .nav-links > li::after { transform: none !important; transition: none !important; }
}

/* ════════ type scale ════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--aqua-dim);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--glow-grad);
  box-shadow: none;
}
.eyebrow.center::before { display: none; }

h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.h-hero { font-size: clamp(40px, 8vw, 104px); }
.h1 { font-size: clamp(34px, 5.4vw, 72px); line-height: 1.08; }
.h2 { font-size: clamp(28px, 4vw, 52px); line-height: 1.12; }
.h3 { font-size: clamp(21px, 2.4vw, 30px); line-height: 1.25; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-soft); line-height: 1.75; text-wrap: pretty; }
.muted { color: var(--muted); }
.grad-text {
  background: var(--glow-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
em.it { font-style: italic; }

/* ════════ buttons ════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 500;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), background 300ms var(--ease);
  border: 1px solid transparent;
}
.btn .arw { transition: transform 320ms var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn-primary {
  color: var(--on-accent);
  background: var(--glow-grad);
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--aqua-dim); }
.btn-ghost {
  color: var(--ink);
  background: oklch(0.97 0.005 250 / 0.04);
  border-color: var(--line);
}
.btn-ghost:hover { background: oklch(0.97 0.005 250 / 0.08); border-color: var(--aqua-dim); transform: translateY(-2px); }

/* ════════ glow card (animated conic border) ════════ */
.glow-card {
  position: relative;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 500ms var(--ease), border-color 500ms var(--ease);
}
.glow-card::before { display: none; }
.glow-card:hover { transform: translateY(-5px); border-color: var(--aqua); }

/* ════════ image slot styling ════════ */
image-slot {
  --slot-bg: var(--bg-2);
  background: var(--bg-2);
}
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.media-frame::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px oklch(0.82 0.17 67 / 0);
  transition: box-shadow 500ms var(--ease);
  border-radius: inherit;
}
.media-frame:hover::after { box-shadow: inset 0 0 0 1px oklch(0.82 0.17 67 / 0.4); }

/* ════════ reveal animation ════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--rd, 0ms);
  will-change: transform, opacity;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-fade] { opacity: 0; transition: opacity 1.2s var(--ease); transition-delay: var(--rd, 0ms); }
[data-reveal-fade].in { opacity: 1; }

/* line-draw SVG */
.draw-path {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 2.4s var(--ease);
}
.draw-path.in { stroke-dashoffset: 0; }

/* ── scroll progress bar ── */
#scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--aqua);
  z-index: 300;
  pointer-events: none;
  transition: width 60ms linear;
}

/* ── slide from left ── */
[data-reveal-left] {
  opacity: 0;
  transform: translateX(-56px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--rd, 0ms);
  will-change: transform, opacity;
}
[data-reveal-left].in { opacity: 1; transform: none; }

/* ── slide from right ── */
[data-reveal-right] {
  opacity: 0;
  transform: translateX(56px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--rd, 0ms);
  will-change: transform, opacity;
}
[data-reveal-right].in { opacity: 1; transform: none; }

/* ── scale up reveal ── */
[data-reveal-scale] {
  opacity: 0;
  transform: scale(0.86) translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--rd, 0ms);
  will-change: transform, opacity;
}
[data-reveal-scale].in { opacity: 1; transform: none; }

/* ── clip wipe reveal (bottom → up) ── */
[data-reveal-clip] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s var(--ease);
  transition-delay: var(--rd, 0ms);
}
[data-reveal-clip].in { clip-path: inset(0% 0 0 0); }

/* On phones, horizontal slide-in reveals overflow the narrow viewport
   (a near-full-width element shifted ±56px punches past the screen edge,
   letting the page be dragged sideways). Reveal vertically instead. */
@media (max-width: 680px) {
  [data-reveal-left],
  [data-reveal-right] { transform: translateY(28px); }
}

/* ── marquee ticker ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
  height: 48px;
  display: flex;
  align-items: center;
}
.marquee-track {
  display: flex;
  animation: marquee-run 36s linear infinite;
  width: max-content;
  will-change: transform;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--aqua);
  flex-shrink: 0;
  opacity: 0.7;
}
@keyframes marquee-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════ footer ════════ */
.footer {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  padding: 80px var(--gutter) 48px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  /* 왼쪽 로고·모토, 오른쪽 채널 아이콘(인스타·유튜브·그룹웨어) 한 줄. */
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 28px 40px;
}
/* 후원 계좌번호: 겉으론 글자 그대로, 누르면 복사 */
.footer .copy-acct { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline dotted; text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }
.footer .copy-acct:hover { color: var(--aqua); }
.footer-links { display: flex; gap: 8px; }
.footer .footer-links a {
  display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink-soft);
  transition: color 280ms var(--ease);
}
.footer .footer-links a:hover { color: var(--aqua); }
.footer-links svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.footer-links svg .fill { fill: currentColor; stroke: none; }
.footer .brand {
  font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 0;
}
.footer .brand .mark { width: 34px; height: 34px; }
.footer .brand .dot { color: var(--aqua); }
/* 모토는 한 줄로 읽혀야 한다 — 「세상을 올바른 방향으로 / 변화시키는 리더 양성」처럼
   가운데서 끊기면 구호가 아니라 문장이 된다. 좁은 화면에서는 줄바꿈을 허락한다. */
.footer .tag { color: var(--muted); margin-top: 6px; max-width: none; font-size: 16px; white-space: nowrap; }
/* 칸보다 글이 길어지는 폭(대략 1200px 아래)에서는 줄바꿈을 허락한다 — 안 그러면 모토가
   칸 밖으로 삐져나간다. */
@media (max-width: 1200px){ .footer .tag { white-space: normal; max-width: 34ch; } }
.footer h4 { font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin: 0 0 18px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 11px; }
.footer a { color: var(--ink-soft); font-size: 16px; transition: color 280ms var(--ease); }
.footer a:hover { color: var(--aqua); }
.footer-base {
  max-width: var(--max); margin: 48px auto 0;
  padding-top: 28px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--faint);
}
@media (max-width: 820px) {
  /* 좁은 화면: 로고·모토 아래에 아이콘 줄 */
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer a, .footer .tag { font-size: 14px; }
}

/* ── mobile polish ── */
@media (max-width: 680px) {
  /* keep the top bar tight to the edge — it was too tall on phones */
  .nav { padding-top: 9px; padding-bottom: 9px; }
  .nav.scrolled { padding-top: 6px; padding-bottom: 6px; }
  /* desktop-scale section rhythm is too airy on a phone — tighten it.
     !important because several pages set .sec padding in an inline <style>
     that loads after this file and would otherwise win. */
  .sec { padding: 60px 0 !important; }
}

/* break Korean lines at word boundaries (all screen sizes) so text never
   splits mid-word, e.g. "아르 / 스쿨링", "…의미합니 / 다" */
.h1, .h2, .h3, .lead, .display, .eyebrow, p, li { word-break: keep-all; overflow-wrap: break-word; }

/* utility */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: var(--gap, 20px); }
.tag-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-soft);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: oklch(0.97 0.005 250 / 0.03);
}
.tag-pill .led { width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], [data-reveal-fade] { opacity: 1; transform: none; }
  .draw-path { stroke-dashoffset: 0; }
}

/* 모바일 상단 로고 — 그룹웨어(groupware/app.css, max-width:720px)와 같은 크기·굵기.
   글자는 화면 폭에 비례(393px에서 약 29px), 동그라미 마크도 함께 커진다. */
@media (max-width: 720px) {
  .nav .brand { font-size: clamp(20px, 7.4vw, 32px); font-weight: 500; -webkit-text-stroke: .45px currentColor; letter-spacing: 0.04em; }
  .nav .brand img { width: clamp(32px, 12vw, 50px) !important; height: clamp(32px, 12vw, 50px) !important; }
}

/* 아이폰 — 페이지가 상태표시줄(시계·카메라) 밑까지 그려지게(viewport-fit=cover).
   로고·메뉴는 상태표시줄 아래로 내려 둔다. env()는 다른 기기에서 0이라 그대로다. */
.nav { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
.nav.scrolled { padding-top: calc(13px + env(safe-area-inset-top, 0px)); }
@media (max-width: 940px) {
  .nav-links { top: calc(64px + env(safe-area-inset-top, 0px));
    height: calc(100dvh - 64px - env(safe-area-inset-top, 0px)); }
}

/* 폰 — 아래로 스크롤하면 상단 바가 위로 숨고, 위로 스크롤하면 다시 내려온다(site.js).
   나타날 때는 천천히 미끄러지며 서서히 보이고(0.55초), 숨을 때는 빠르게(0.3초).
   '동작 줄이기' 설정에서도 부드럽게 — 맨 아래 전역 규칙이 길이를 0으로 만들지 않게 !important. */
@media (max-width: 720px) {
  .nav { transition: transform 550ms cubic-bezier(0.16, 1, 0.3, 1), opacity 450ms ease-out,
                     padding 400ms var(--ease), background 400ms var(--ease), border-color 400ms var(--ease) !important; }
  .nav.nav-hide { transform: translateY(-100%); opacity: 0;
    transition: transform 300ms cubic-bezier(0.4, 0, 1, 1), opacity 250ms ease-in,
                padding 400ms var(--ease), background 400ms var(--ease), border-color 400ms var(--ease) !important; }
}
