/* ============ Tokens ============ */
:root {
  --irt-paper: #FAF6EF;
  --irt-card: #FFFFFF;
  --irt-oak-soft: #F1E6D6;
  --irt-oak: #C79E72;
  --irt-ink: #22303F;
  --irt-body: #3D4753;
  --irt-mute: #66707B;
  --irt-line: rgba(34, 48, 63, 0.12);
  --irt-blue: #2E5F8C;
  --irt-blue-soft: #DDE8F2;

  --wash-sky: #A9C4DE;
  --wash-apricot: #F3C9A8;
  --wash-pink: #EFC2C4;
  --wash-ochre: #EBCB78;
  --wash-sage: #B9CBB0;
  --wash-lilac: #CDBFE0;

  --irt-serif: "Gowun Batang", "Nanum Myeongjo", "AppleMyungjo", "Noto Serif KR", serif;
  --irt-sans: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;

  --irt-shadow-paper: 0 1px 2px rgba(34, 48, 63, .06), 0 12px 32px -12px rgba(120, 90, 50, .22);
  --irt-shadow-float: 0 8px 24px -8px rgba(34, 48, 63, .28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-photo: 28px;
  --r-card: 24px;
  --r-input: 14px;
  --r-pill: 9999px;
  --section-y: 112px;
  --gutter: 40px;

  --brush-sky: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 20' preserveAspectRatio='none'%3E%3Cpath d='M5 13c30-7 62-9 96-5s66 7 98 2c14-2 24-5 36-8' fill='none' stroke='%23A9C4DE' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E");
  --brush-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 7c26-4 52-5 80-3s56 4 84 1c10-1 20-2 30-4' fill='none' stroke='%232E5F8C' stroke-opacity='.55' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  background: var(--irt-paper);
  color: var(--irt-body);
  font-family: var(--irt-sans);
  font-size: 1rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--irt-blue-soft); color: var(--irt-ink); }

:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--irt-blue), 0 0 0 4px var(--irt-paper);
  border-radius: 6px;
}
.btn:focus-visible, .chip:focus-visible, .menu-toggle:focus-visible { border-radius: var(--r-pill); }

section[id] { scroll-margin-top: 88px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ============ Background wash ============ */
.wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.blob-sky {
  top: -18vmax; left: 46vw;
  background: radial-gradient(circle at 50% 50%, var(--wash-sky) 0%, rgba(169,196,222,0) 68%);
  opacity: .5;
  transform: translate3d(calc(var(--sp, 0) * -14vw), calc(var(--sp, 0) * 30vh), 0);
}
.blob-apricot {
  top: 24vh; left: -22vmax;
  background: radial-gradient(circle at 50% 50%, var(--wash-apricot) 0%, rgba(243,201,168,0) 68%);
  opacity: .45;
  transform: translate3d(calc(var(--sp, 0) * 12vw), calc(var(--sp, 0) * -18vh), 0);
}
.blob-pink {
  top: 58vh; right: -24vmax;
  background: radial-gradient(circle at 50% 50%, var(--wash-pink) 0%, rgba(239,194,196,0) 68%);
  opacity: .38;
  transform: translate3d(calc(var(--sp, 0) * -10vw), calc(var(--sp, 0) * -34vh), 0);
}
.blob-sage {
  bottom: -30vmax; left: 22vw;
  background: radial-gradient(circle at 50% 50%, var(--wash-sage) 0%, rgba(185,203,176,0) 68%);
  opacity: .42;
  transform: translate3d(calc(var(--sp, 0) * 8vw), calc(var(--sp, 0) * -22vh), 0);
}
.grain {
  position: absolute;
  inset: 0;
  opacity: .25;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ============ Layout ============ */
.wrap {
  width: min(100% - var(--gutter) * 2, 1160px);
  margin-inline: auto;
}
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.grid12 > *, .hero-grid > *, .program-grid > *, .form-grid > *, .footer-grid > * { min-width: 0; }

.section { padding: var(--section-y) 0; position: relative; }

/* ============ Type ============ */
.label, .eyebrow, .chip, .nav-links a, .logo-sub {
  font-family: var(--irt-sans);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .08em;
  line-height: 1.4;
}
.display {
  font-family: var(--irt-serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.6vw, 4.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--irt-ink);
  text-wrap: balance;
}
.h2 {
  font-family: var(--irt-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.25;
  color: var(--irt-ink);
  text-wrap: balance;
}
.h3 {
  font-family: var(--irt-sans);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--irt-ink);
}
.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: var(--irt-body);
}
.body-text, .section-lede, .card-text { font-size: 1rem; line-height: 1.75; }
.caption {
  font-size: .75rem;
  line-height: 1.5;
  color: var(--irt-mute);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--irt-ink);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--irt-oak);
  flex: none;
}
.eyebrow-num {
  font-family: var(--irt-serif);
  font-weight: 700;
  color: var(--irt-blue);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.brush-mark {
  display: block;
  width: 140px;
  height: 16px;
  margin: 14px 0 20px -4px;
  overflow: visible;
}
.brush-mark path, .notice-brush path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.brush-word {
  background-image: var(--brush-sky);
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% .38em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .04em;
}

/* ============ Buttons & links ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--irt-ink); color: #fff; }
.btn-primary:hover { background: #2F4055; }
.btn-secondary { background: #fff; color: var(--irt-ink); border-color: var(--irt-ink); }
.btn-secondary:hover { background: var(--irt-blue-soft); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-icon { flex: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--irt-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  background-image: var(--brush-link);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 6px);
  background-size: 0% 9px;
  transition: background-size .45s var(--ease), text-decoration-color .2s ease;
}
.text-link::after {
  content: "→";
  margin-left: 6px;
  text-decoration: none;
  display: inline-block;
  transition: transform .3s var(--ease);
}
.text-link:hover {
  text-decoration-color: transparent;
  background-size: 100% 9px;
}
.text-link:hover::after { transform: translateX(3px); }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 16px 20px 0;
  transition: padding .4s var(--ease);
}
.nav-shell {
  max-width: 1240px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 8px 0 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: max-width .5s var(--ease), height .4s var(--ease), background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { padding-top: 12px; }
.site-header.is-scrolled .nav-shell {
  max-width: 1100px;
  height: 60px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--irt-shadow-float);
}
body.menu-open .site-header .nav-shell {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--irt-ink);
  min-height: 44px;
  align-self: center;
  padding-top: 6px;
  flex: none;
}
.logo-mark {
  position: relative;
  font-family: var(--irt-serif);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: -.01em;
  padding-right: 10px;
}
.logo-dot {
  position: absolute;
  right: 0;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wash-sky);
  box-shadow: 0 0 0 3px rgba(169, 196, 222, .35);
}
.logo-sub { color: var(--irt-mute); letter-spacing: .04em; }

.nav { margin-left: auto; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--irt-body);
  letter-spacing: .04em;
  transition: background-color .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--irt-blue-soft); color: var(--irt-ink); }
.nav-links a[aria-current="true"] { color: var(--irt-blue); }
.btn-nav { min-height: 44px; padding: 0 20px; font-size: .9375rem; flex: none; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  border: 1px solid var(--irt-line);
  background: rgba(255,255,255,.7);
  position: relative;
  cursor: pointer;
  flex: none;
}
.menu-toggle-line {
  position: absolute;
  left: 15px;
  right: 15px;
  height: 1.6px;
  background: var(--irt-ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle-line:nth-child(1) { top: 19px; }
.menu-toggle-line:nth-child(2) { top: 27px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--irt-paper);
  padding: 112px 20px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
  animation: menuIn .35s var(--ease) both;
}
.mobile-links li { border-bottom: 1px solid var(--irt-line); }
.mobile-links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 64px;
  padding: 12px 0;
  font-family: var(--irt-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.25;
  color: var(--irt-ink);
  text-decoration: none;
}
.mobile-links a:hover { color: var(--irt-blue); }
.mm-num {
  font-family: var(--irt-sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--irt-blue);
}
.mm-dots { display: flex; gap: 10px; margin-top: auto; }
.mm-dots span, .palette-dots span {
  width: 14px; height: 14px; border-radius: 50%;
}
.mm-dots span:nth-child(1), .palette-dots span:nth-child(1) { background: var(--wash-sky); }
.mm-dots span:nth-child(2), .palette-dots span:nth-child(2) { background: var(--wash-apricot); }
.mm-dots span:nth-child(3), .palette-dots span:nth-child(3) { background: var(--wash-pink); }
.mm-dots span:nth-child(4), .palette-dots span:nth-child(4) { background: var(--wash-ochre); }
.mm-dots span:nth-child(5), .palette-dots span:nth-child(5) { background: var(--wash-sage); }
.mm-dots span:nth-child(6), .palette-dots span:nth-child(6) { background: var(--wash-lilac); }

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ============ Hero ============ */
.hero {
  padding: 148px 0 104px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
}
.hero-text { grid-column: 1 / 6; position: relative; z-index: 2; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--irt-ink);
  margin-bottom: 24px;
}
.hero-label::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--irt-oak);
}
.hero-text .display { margin-bottom: 28px; }
.hero-text .lede { margin-bottom: 36px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  grid-column: 6 / 13;
  margin-right: -40px;
  position: relative;
}
.hero-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 28px 28px 28px 96px;
  overflow: hidden;
  box-shadow: var(--irt-shadow-paper);
  background: var(--irt-oak-soft);
  isolation: isolate;
}
.hero-frame .zoom {
  position: absolute;
  inset: 0;
  transition: transform .8s var(--ease);
}
.hero-frame:hover .zoom { transform: scale(1.03); }
.hero-frame img {
  position: absolute;
  left: 0;
  top: -40px;
  width: 100%;
  height: calc(100% + 40px);
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-note {
  position: absolute;
  left: -24px;
  bottom: -36px;
  z-index: 3;
  width: min(300px, 64%);
  padding: 20px 22px 18px;
  background: var(--irt-card);
  border-radius: var(--r-card);
  box-shadow: var(--irt-shadow-paper);
  transform: rotate(-1.2deg);
}
.note-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--irt-ink);
  margin-bottom: 6px;
}
.note-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--wash-ochre);
  box-shadow: 0 0 0 4px rgba(235, 203, 120, .3);
}
.note-text { font-size: 1rem; line-height: 1.6; color: var(--irt-body); margin-bottom: 8px; }

.palette-dots {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-right: 40px;
}

/* Hero entrance (CSS only, ends visible) */
@media (prefers-reduced-motion: no-preference) {
  [data-hero] { animation: rise .7s var(--ease) both; }
  .hero-label[data-hero] { animation-delay: .05s; }
  .display[data-hero] { animation-delay: .13s; }
  .lede[data-hero] { animation-delay: .21s; }
  .hero-actions[data-hero] { animation-delay: .29s; }
  .hero-visual[data-hero] { animation-delay: .18s; }
  .brush-word { animation: paint .7s var(--ease) .6s both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes paint {
  from { background-size: 0% .38em; }
  to { background-size: 100% .38em; }
}

/* ============ Programs ============ */
.section-head { max-width: 520px; }
.section-lede { max-width: 32em; }
/* 휴대폰: 옆으로 넘기는 슬라이드 (다음 장이 살짝 보임). 761px부터는 기존 2열 */
.program-grid {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 40px calc(var(--gutter) * -1) 0;
  padding: 4px var(--gutter) 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.program-grid::-webkit-scrollbar { display: none; }
.program-card {
  background: var(--irt-card);
  border-radius: var(--r-card);
  box-shadow: var(--irt-shadow-paper);
  padding: 16px 16px 28px;
}
.program-grid .program-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
}
.program-grid .frame { aspect-ratio: 4 / 3; }
.program-count {
  margin-top: 4px;
  font-family: var(--irt-sans);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .08em;
  line-height: 1.4;
  color: var(--irt-mute);
}
@media (min-width: 761px) {
  .program-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    gap: 0 24px;
    margin: 56px 0 0;
    padding: 0;
    overflow: visible;
    overscroll-behavior-x: auto;
    scroll-snap-type: none;
    scroll-padding-left: 0;
    align-items: start;
  }
  .program-grid .program-card { flex: none; scroll-snap-align: none; }
  .program-grid .frame { aspect-ratio: 1 / 1; }
  .program-card-offset { margin-top: 96px; }
  .program-count { display: none; }
}

.card-media { position: relative; }
.tape {
  position: absolute;
  top: -10px;
  left: 32px;
  z-index: 2;
  width: 72px;
  height: 22px;
  background: rgba(243, 201, 168, .72);
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(120, 90, 50, .12);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
  mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
}
.tape-right { left: auto; right: 36px; transform: rotate(4deg); background: rgba(243, 201, 168, .66); }

.frame {
  position: relative;
  overflow: hidden;
  background: var(--irt-oak-soft);
  isolation: isolate;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.frame:hover img { transform: scale(1.03); }
.frame-a { aspect-ratio: 1 / 1; border-radius: 20px 20px 20px 72px; }
.frame-b { aspect-ratio: 1 / 1; border-radius: 20px 72px 20px 20px; }
.frame-b img { object-position: center; }

.card-body { padding: 28px 12px 0; }
.big-num {
  font-family: var(--irt-serif);
  font-weight: 700;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: .95;
  letter-spacing: -0.03em;
  color: var(--irt-ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}
.big-num .colon { color: var(--irt-blue); padding: 0 .02em; }
.card-body .h3 { margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--irt-ink);
  letter-spacing: .04em;
}
.chip-sky { background: var(--wash-sky); }
.chip-apricot { background: var(--wash-apricot); }
.chip-sage { background: var(--wash-sage); }
.chip-lilac { background: var(--wash-lilac); }
.chip-pink { background: var(--wash-pink); }
.card-text { margin-bottom: 14px; }

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  margin: 26px 0 12px;
  padding-top: 2px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 11px;
  height: 1px;
  background: var(--irt-oak);
}
.tl-item { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tl-dot {
  position: relative;
  z-index: 1;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--irt-blue);
  background: var(--irt-card);
  margin-bottom: 8px;
}
.tl-item.is-first .tl-dot { background: var(--irt-blue); box-shadow: 0 0 0 4px var(--irt-blue-soft); }
.tl-week {
  font-family: var(--irt-serif);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--irt-ink);
  font-variant-numeric: tabular-nums;
}
.tl-desc { font-size: .8125rem; line-height: 1.45; color: var(--irt-mute); }
.tl-note { font-size: 1rem; color: var(--irt-body); margin-bottom: 8px; }

/* ============ Class band ============ */
.band { background: var(--irt-oak-soft); }
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .78 0 0 0 0 .62 0 0 0 0 .45 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
}
.class-grid { position: relative; align-items: start; }
.class-head { grid-column: 1 / 6; }
.class-body { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 32px; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--irt-line);
}
.stat { min-width: 0; padding-right: 24px; }
.stat + .stat { border-left: 1px solid var(--irt-line); padding-left: 32px; padding-right: 0; }
.stat-num {
  font-family: var(--irt-serif);
  font-weight: 700;
  font-size: clamp(3rem, 6.4vw, 5.75rem);
  line-height: .95;
  letter-spacing: -0.03em;
  color: var(--irt-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-unit { font-size: .42em; letter-spacing: 0; margin-left: .08em; }
.stat-pre { font-size: .34em; letter-spacing: 0; color: var(--irt-mute); vertical-align: .9em; }
.stat-desc { margin-top: 12px; font-size: 1rem; color: var(--irt-body); }

.notice-card {
  position: relative;
  background: var(--irt-paper);
  border-radius: var(--r-card);
  box-shadow: var(--irt-shadow-paper);
  padding: 28px 28px 24px 52px;
}
.notice-brush {
  position: absolute;
  left: 20px;
  top: 26px;
  bottom: 26px;
  width: 14px;
  height: calc(100% - 52px);
  overflow: visible;
}
.notice-title { margin-bottom: 12px; }
.notice-list { margin-bottom: 14px; }
.notice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--irt-line);
}
.notice-row:first-child { border-top: 1px solid var(--irt-line); }
.notice-row dt { font-weight: 700; color: var(--irt-ink); }
.notice-row dd { color: var(--irt-body); }
.notice-row .sep { color: var(--irt-oak); margin-right: 4px; }

.class-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.fee-line { font-size: 1rem; color: var(--irt-body); }

/* ============ Teacher ============ */
.teacher-grid { align-items: start; }
.teacher-photo {
  grid-column: 1 / 5;
  margin-top: calc(-1 * var(--section-y) - 48px);
  position: relative;
  z-index: 2;
}
.frame-portrait {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-photo);
  box-shadow: var(--irt-shadow-paper);
}
.credit { margin-top: 12px; }
.credit a { color: var(--irt-mute); text-underline-offset: 3px; }
.credit a:hover { color: var(--irt-blue); }
.teacher-text { grid-column: 6 / 13; padding-top: 8px; }
.teacher-text .body-text { max-width: 34em; margin-bottom: 40px; }
.bio {
  background: var(--irt-card);
  border-radius: var(--r-card);
  box-shadow: var(--irt-shadow-paper);
  padding: 28px 32px 16px;
  max-width: 560px;
}
.bio .h3 { margin-bottom: 8px; }
.bio-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: var(--irt-ink);
  font-size: 1rem;
  line-height: 1.55;
}
.bio-list li + li { border-top: 1px solid var(--irt-line); }
.bio-list li::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  flex: none;
  background: var(--wash-pink);
}
.bio-list li:nth-child(2)::before { background: var(--wash-sky); }
.bio-list li:nth-child(3)::before { background: var(--wash-ochre); }
.bio-list li:nth-child(4)::before { background: var(--wash-sage); }

/* ============ Location ============ */
.location-grid { align-items: center; }
.location-text { grid-column: 1 / 6; }
.location-text .body-text { max-width: 30em; margin-bottom: 8px; }
.location-photo { grid-column: 6 / 13; }
.frame-wide {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-photo);
  box-shadow: var(--irt-shadow-paper);
}

/* ============ Contact ============ */
.contact-grid { align-items: start; row-gap: 40px; }
.contact-side { grid-column: 1 / 6; }
.contact-methods { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.method {
  background: var(--irt-card);
  border-radius: var(--r-card);
  box-shadow: var(--irt-shadow-paper);
  padding: 22px 24px 24px;
}
.method-label { display: flex; align-items: center; gap: 8px; color: var(--irt-mute); margin-bottom: 4px; }
.method-dot { width: 10px; height: 10px; border-radius: 50%; }
.method-dot-sky { background: var(--wash-sky); }
.method-dot-pink { background: var(--wash-pink); }
.method-value {
  font-family: var(--irt-serif);
  font-weight: 700;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.4;
  color: var(--irt-ink);
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.method-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-btn.is-done { background: var(--irt-blue-soft); border-color: var(--irt-blue); color: var(--irt-blue); }
.copy-btn.is-fail { border-color: var(--irt-mute); color: var(--irt-mute); }

.form-card {
  grid-column: 7 / 13;
  background: var(--irt-card);
  border-radius: var(--r-card);
  box-shadow: var(--irt-shadow-paper);
  padding: 36px 32px 32px;
}
.form-title { margin-bottom: 24px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin-bottom: 24px;
}
.field-full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  color: var(--irt-ink);
  margin-bottom: 8px;
}
.optional {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  margin-left: 6px;
  border-radius: var(--r-pill);
  background: var(--irt-blue-soft);
  font-size: .75rem;
  font-weight: 600;
  color: var(--irt-blue);
  vertical-align: 1px;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--irt-line);
  border-radius: var(--r-input);
  background: #fff;
  font-size: 1rem;
  color: var(--irt-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { padding: 14px 16px; min-height: 120px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2322303F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  text-overflow: ellipsis;
}
.field input::placeholder, .field textarea::placeholder { color: var(--irt-mute); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(34, 48, 63, .28); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--irt-blue);
  box-shadow: 0 0 0 3px var(--irt-blue-soft);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  box-shadow: 0 0 0 2px var(--irt-blue), 0 0 0 4px var(--irt-paper);
  border-radius: var(--r-input);
}
.btn-submit { width: 100%; }

.status-box {
  margin-top: 20px;
  background: var(--irt-blue-soft);
  border-radius: 20px;
  padding: 22px 22px 20px;
  animation: statusIn .45s var(--ease) both;
}
.status-box:focus { outline: none; }
.status-box:focus-visible { box-shadow: 0 0 0 2px var(--irt-blue), 0 0 0 4px var(--irt-paper); border-radius: 20px; }
.status-title {
  font-family: var(--irt-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--irt-ink);
  margin-bottom: 4px;
}
.status-text { color: var(--irt-body); margin-bottom: 16px; }
.status-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@keyframes statusIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ============ Footer ============ */
.site-footer {
  background: var(--irt-ink);
  color: #fff;
  padding: 72px 0 48px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 24px;
}
.footer-logo { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-logo .logo-mark { font-size: 2rem; color: #fff; }
.footer-sub { font-size: .875rem; color: rgba(255,255,255,.78); letter-spacing: .04em; }
.footer-line { color: rgba(255,255,255,.82); font-size: 1rem; }
.footer-contact li, .footer-menu li { margin-bottom: 2px; }
.footer-contact a, .footer-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.28);
  line-height: 1.3;
  transition: border-color .2s ease;
  overflow-wrap: anywhere;
}
.footer-contact a:hover, .footer-menu a:hover { border-color: #fff; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer :focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--irt-ink); }
.footer-small {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .75rem;
  line-height: 1.5;
  color: rgba(255,255,255,.72);
}

/* ============ Mobile bar ============ */
.mobile-bar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  gap: 8px;
  padding: 8px;
  background: var(--irt-card);
  border-radius: var(--r-pill);
  box-shadow: var(--irt-shadow-float);
  transition: transform .35s var(--ease), opacity .25s ease, visibility 0s linear 0s;
}
.mobile-bar .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 12px; font-size: .9375rem; }
.mobile-bar.is-hidden {
  transform: translateY(140%);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s var(--ease), opacity .25s ease, visibility 0s linear .35s;
}
body.menu-open .mobile-bar { visibility: hidden; }

/* ============ Scroll reveal (armed only by JS, only below the fold) ============ */
.reveal-armed [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
.reveal-armed.is-revealed [data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal-armed .brush-mark path, .reveal-armed .notice-brush path { stroke-dashoffset: 1; }
.reveal-armed.is-revealed .brush-mark path,
.reveal-armed.is-revealed .notice-brush path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .7s var(--ease) .2s;
}

/* ============ Breakpoints ============ */
@media (max-width: 1100px) {
  .nav-links a { padding: 0 10px; }
  .logo-sub { display: none; }
}

@media (max-width: 900px) {
  .nav, .btn-nav { display: none; }
  .menu-toggle { display: block; }
  .logo-sub { display: inline; }
  .nav-shell { padding: 0 6px 0 18px; }

  .hero { padding: 120px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .hero-text, .hero-visual { grid-column: 1 / -1; }
  .hero-visual { margin-right: 0; }
  .hero-text .display { max-width: 14em; }
  .hero-note {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -24px 16px 0;
    width: auto;
    max-width: 380px;
    transform: rotate(-.8deg);
  }
  .palette-dots { justify-content: flex-start; padding: 0 16px; margin-top: 24px; }

  .grid12 { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .class-head, .class-body,
  .teacher-photo, .teacher-text,
  .location-text, .location-photo,
  .contact-side, .form-card { grid-column: 1 / -1; }

  .teacher-text { order: 1; padding-top: 0; }
  .teacher-photo { order: 2; margin-top: 0; max-width: 480px; }
  .frame-portrait { aspect-ratio: 4 / 5; }
  .bio { max-width: none; }

  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --section-y: 72px; --gutter: 20px; }
  .site-header { padding: 10px 12px 0; }
  .site-header.is-scrolled { padding-top: 8px; }
  .nav-shell, .site-header.is-scrolled .nav-shell { height: 60px; }

  .hero { padding: 104px 0 56px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-frame { aspect-ratio: 4 / 3; border-radius: 20px 20px 20px 64px; }
  .hero-frame img { object-position: 70% 60%; }

  .card-body { padding: 24px 8px 0; }

  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 22px 0 14px; }
  .timeline::before { left: 8.5px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; }
  .tl-item { flex-direction: row; align-items: baseline; gap: 10px; padding: 0 0 14px 32px; flex-wrap: wrap; }
  .tl-item:last-child { padding-bottom: 0; }
  .tl-dot { position: absolute; left: 0; top: 4px; margin: 0; }
  .tl-desc { font-size: .875rem; }

  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .stat-num { font-size: clamp(2.75rem, 13vw, 3.5rem); }

  .notice-card { padding: 24px 20px 20px 44px; }
  .notice-brush { left: 16px; }
  .class-cta { flex-direction: column; align-items: stretch; }
  .class-cta .btn { width: 100%; }

  .teacher-photo { max-width: none; }
  .bio { padding: 24px 20px 12px; }
  .frame-portrait, .frame-wide { border-radius: 20px; }

  .method { padding: 20px; }
  .method-actions .btn { flex: 1 1 auto; }
  .form-card { padding: 28px 20px 24px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .status-actions .btn { flex: 1 1 auto; }

  .mobile-bar { display: flex; }
  .site-footer { padding: 56px 0 calc(112px + env(safe-area-inset-bottom)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-small { flex-direction: column; }
}

@media (max-width: 380px) {
  .logo-sub { font-size: .75rem; letter-spacing: .02em; }
  .logo { gap: 8px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
    transition-delay: 0ms !important;
  }
  .blob { transform: none !important; }
  .hero-frame img { transform: none !important; }
  .frame:hover img, .hero-frame:hover .zoom { transform: none; }
  .reveal-armed [data-reveal] { opacity: 1; transform: none; }
  .reveal-armed .brush-mark path, .reveal-armed .notice-brush path { stroke-dashoffset: 0; }
}

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

/* 사진 판 고르기용 감싸개 (optimize_images.py): 배치에 끼지 않음 */
picture{display:contents}
