/* ══════════════════════════════════════════════════════════
   트이다학원 남악점 — style.css
   Palette sampled from the real brick-heart logo:
   트(orange) #ED980E · 이(green) #9FC33D · 다(blue) #116EB3
   ══════════════════════════════════════════════════════════ */

:root {
  /* ── Surfaces (warm cream, never pure white/gray) ── */
  --paper:      #FDF7EA;
  --paper-2:    #F6ECD6;   /* soft alt zone */
  --card:       #FFFDF8;
  --line:       #ECE0C8;
  --line-soft:  #F1E8D6;

  /* ── Ink (warm near-black) ── */
  --ink:        #2C2823;
  --ink-2:      #6E6455;   /* secondary — 4.5:1 on paper */
  --ink-3:      #9C9081;   /* tertiary / meta */

  /* ── Dark zone (warm navy, tied to brand blue) ── */
  --navy:       #21303F;
  --navy-2:     #1A2733;
  --on-dark:    #FBF3E3;
  --on-dark-2:  #AEBCC7;

  /* ── Brick brand colors ── */
  --orange:   #EF9412;  --orange-d: #C1740A;
  --green:    #79B23A;  --green-d:  #5C8B24;
  --blue:     #1A76BC;  --blue-d:   #12568C;
  --yellow:   #FBBE2B;  --yellow-d: #C98D00;
  --red:      #E8492E;  --red-d:    #BE3218;
  --navyc:    #2E4B63;

  /* ── Accessible text/button variants (WCAG AA on cream/card) ── */
  --orange-t:  #A85400;  /* small orange text  ≥4.5:1 */
  --green-t:   #4A7320;  /* small green text   ≥4.5:1 */
  --green-btn: #3A7419;  /* call buttons, white text ≥4.5:1 */
  --green-btn-d: #28530F;
  --star:      #9A6B00;

  /* ── Type ── */
  --f-display: 'Jua', 'Pretendard Variable', sans-serif;
  --f-body:    'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-hand:    'Gaegu', 'Pretendard Variable', cursive;

  /* ── Misc ── */
  --radius: 16px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-sm: 0 2px 8px rgba(60,42,16,.06);
  --shadow-md: 0 10px 30px rgba(60,42,16,.10);
  --shadow-lg: 0 24px 60px rgba(50,36,14,.16);
  --maxw: 1180px;
  --header-h: 74px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* No CSS `scroll-behavior: smooth` — Lenis sets the scroll position every frame,
   and a CSS smooth behaviour turns each of those writes into a restarted native
   smooth-scroll, so wheel/anchor scrolling stalls. Lenis provides the smoothing;
   JS anchor handling covers the fallback path. */
html { font-size: 16px; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Korean line-breaking */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* 줄바꿈 다듬기: 제목은 줄 길이를 고르게, 본문은 마지막 줄에 한두 글자만 남지 않게 (지원 브라우저에서만 적용) */
h1, h2, h3, h4, summary, figcaption, caption { text-wrap: balance; }
p, li, dd, td, blockquote { text-wrap: pretty; }

/* Warm paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

/* ── Accessibility ── */
.skip-link {
  position: fixed; top: -120%; left: 50%; transform: translateX(-50%);
  z-index: 10000; background: var(--orange); color: var(--ink); font-weight: 700;
  padding: .7rem 1.4rem; border-radius: 0 0 12px 12px; transition: top .2s;
}
.skip-link:focus { top: 0; outline: 3px solid var(--navy); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ══════════ Reusable ══════════ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.15rem, 5vw, 3rem); position: relative; z-index: 1; }

section { position: relative; z-index: 1; }
/* Native #fragment jumps (shared links, no-JS) clear the fixed header */
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* Section label = little lego tag */
.section-label {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .02em;
  color: var(--ink-2); text-transform: none;
  padding: .4rem .85rem .4rem .7rem; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.section-label.center { margin-inline: auto; }
.zone-dark .section-label { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--on-dark-2); }
.lb { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.lb.o { background: var(--orange); } .lb.g { background: var(--green); }
.lb.b { background: var(--blue); } .lb.y { background: var(--yellow); } .lb.r { background: var(--red); }

/* Buttons */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-body); font-weight: 800; font-size: .98rem;
  padding: .8rem 1.5rem; border: none; border-radius: 999px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  box-shadow: 0 4px 0 rgba(0,0,0,.12);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60,42,16,.22); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(0,0,0,.14); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-primary { --btn-bg: var(--orange); --btn-fg: var(--ink); box-shadow: 0 4px 0 var(--orange-d); }
.btn-primary:hover { background: #F79E22; box-shadow: 0 9px 22px rgba(239,148,18,.4); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); box-shadow: 0 8px 20px rgba(44,40,35,.25); }
.zone-soft .btn-ghost { border-color: var(--ink); }
.btn-call { --btn-bg: var(--green-btn); --btn-fg: #fff; box-shadow: 0 4px 0 var(--green-btn-d); }
.btn-call:hover { background: #458A1F; }

/* Reveal (only hidden when JS active) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ══════════ Loader ══════════ */
#loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo { width: 140px; height: auto; margin: 0 auto 1.1rem;
  animation: logopop 1.1s var(--ease) both; }
@keyframes logopop {
  0% { opacity: 0; transform: scale(.7) rotate(-8deg); }
  60% { opacity: 1; transform: scale(1.06) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}
.loader-word { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink-2); letter-spacing: .01em; }
.loader-word b { color: var(--orange-t); }
.loader-track { width: 180px; height: 5px; border-radius: 999px; background: var(--line); margin: 1.1rem auto 0; overflow: hidden; }
#loader-bar { display: block; height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--green), var(--blue)); }

/* ══════════ Scroll progress ══════════ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1200; background: transparent; }
#scroll-progress-bar { display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--green) 55%, var(--blue)); }

/* ══════════ Header ══════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 1100;
  display: flex; align-items: center; gap: 1rem;
  padding-inline: clamp(1.15rem, 5vw, 3rem);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1.5px solid transparent; transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(60,42,16,.06); }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { width: 46px; height: auto; }
.brand-name { font-family: var(--f-display); font-size: 1.28rem; color: var(--ink); line-height: 1; }
.brand-name em { font-style: normal; font-size: .78rem; color: var(--orange-t); font-family: var(--f-body); font-weight: 800; }
.nav { margin-left: auto; display: flex; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav a { font-weight: 700; font-size: .96rem; color: var(--ink); position: relative; padding: .3rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 3px; border-radius: 3px; background: var(--orange); transition: width .25s var(--ease); }
.nav a:hover::after { width: 100%; }
.header-cta { padding: .6rem 1.05rem; font-size: .92rem; }
.nav-toggle { display: none; }

.mobile-menu { display: none; }

/* ══════════ HERO ══════════ */
.hero {
  min-height: 100svh; padding: calc(var(--header-h) + 3vh) 0 4rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 82% -8%, #FFF4D6 0%, transparent 60%),
    radial-gradient(900px 520px at 6% 110%, #EAF3DC 0%, transparent 55%),
    var(--paper);
}
.hero-grid {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 3rem);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.tag-brick {
  display: inline-block; font-weight: 800; font-size: .84rem; color: var(--ink-2);
  background: var(--card); border: 1.5px solid var(--line);
  padding: .5rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero-hand { font-family: var(--f-hand); font-size: clamp(1.3rem, 3.2vw, 1.9rem); color: var(--green-t); margin: 1.15rem 0 .4rem; font-weight: 700; }
.hero-title { font-family: var(--f-display); font-weight: 400; line-height: 1.06;
  font-size: clamp(2.7rem, 8.5vw, 5.4rem); letter-spacing: -.01em; color: var(--ink); }
.hero-title .line { display: block; }
.hero-title .hl-accent { color: var(--orange-d); }  /* large text: 3.4:1 on cream */
.hero-title .hl-book { color: var(--blue); position: relative; }
.hero-title .hl-book::after { content: ""; position: absolute; left: -3%; right: -3%; bottom: 6%; height: 32%;
  background: var(--yellow); opacity: .5; z-index: -1; border-radius: 4px; transform: rotate(-1.2deg); }
.hero-sub { margin-top: 1.4rem; font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--ink-2); max-width: 34ch; line-height: 1.75; }
.hero-sub b { color: var(--ink); font-weight: 800; }
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero visual */
.hero-visual { position: relative; justify-self: center; }
/* real-photo collage: front = writing in the Tida workbook, back = syllable cards */
.hero-photos { position: relative; width: min(440px, 80vw); aspect-ratio: 1 / 1.08; }
.hp { position: absolute; margin: 0; border-radius: 22px; overflow: hidden; border: 6px solid #fff;
  box-shadow: var(--shadow-lg); background: #fff; }
.hp img { width: 100%; height: 100%; object-fit: cover; }
.hp-back  { width: 56%; aspect-ratio: 3 / 4; top: 0; right: 0; transform: rotate(6deg); }
.hp-front { width: 76%; aspect-ratio: 1 / 1; left: 0; bottom: 0; transform: rotate(-3deg); }
.hp-front figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(44,40,35,.8); color: #fff;
  font-size: .78rem; font-weight: 800; padding: .32rem .75rem; border-radius: 999px; }
.hp-logo { position: absolute; width: 108px; height: auto; top: 3%; left: 2%; transform: rotate(-8deg);
  background: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--shadow-md); z-index: 2; }
.hero-chip {
  position: absolute; background: var(--card); border: 2px solid var(--line);
  border-radius: 16px; padding: .7rem 1rem; box-shadow: var(--shadow-md); text-align: center; line-height: 1.15;
}
.hero-chip b { font-family: var(--f-display); display: block; font-size: 1.25rem; }
.hero-chip small { font-size: .74rem; color: var(--ink-2); font-weight: 700; }
.hero-chip { z-index: 3; }
.hero-chip.chip-1 { top: 34%; right: -12%; transform: rotate(-6deg); }
.hero-chip.chip-1 b { color: var(--orange-t); }
.hero-chip.chip-2 { bottom: -8%; right: -8%; transform: rotate(5deg); }
.hero-chip.chip-2 b { color: var(--blue); }

/* Floating bricks */
.hero-bricks { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fb { position: absolute; width: 60px; height: 42px; border-radius: 9px; opacity: .8;
  box-shadow: inset 0 -7px 0 rgba(0,0,0,.14); will-change: transform; }
.fb::before, .fb::after { content: ""; position: absolute; top: -7px; width: 15px; height: 10px; border-radius: 5px 5px 3px 3px; background: inherit; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.fb::before { left: 9px; } .fb::after { right: 9px; }
.fb-o { background: var(--orange); top: 16%; left: 7%; }
.fb-g { background: var(--green); top: 84%; left: 4%; width: 48px; height: 34px; }
.fb-b { background: var(--blue); top: 24%; right: 9%; width: 52px; height: 37px; }
.fb-y { background: var(--yellow); top: 74%; right: 15%; width: 40px; height: 30px; }

/* Scroll cue */
.scroll-cue { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  font-size: .68rem; letter-spacing: .22em; font-weight: 800; color: var(--ink-2); }
.scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ══════════ Marquee ══════════ */
.marquee { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: .9rem 0; border-block: 3px solid rgba(0,0,0,.15); }
/* WCAG 2.2.2 — user can pause ambient motion (marquee + floating bricks) */
.motion-toggle {
  position: absolute; right: clamp(.6rem, 2vw, 1.2rem); top: 50%; transform: translateY(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .95rem;
  font-family: var(--f-body); font-size: .78rem; font-weight: 800; color: var(--ink);
  background: var(--paper); border: none; border-radius: 999px; cursor: pointer;
  box-shadow: -18px 0 22px 8px var(--ink);
}
.motion-toggle:hover { background: var(--yellow); }
.motion-toggle .ico-play { display: none; }
.motion-toggle[aria-pressed="true"] .ico-play { display: inline; }
.motion-toggle[aria-pressed="true"] .ico-pause { display: none; }
.motion-paused .scroll-cue svg { animation-play-state: paused; }
.marquee-row { display: flex; width: max-content; will-change: transform; }
.marquee-row span { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.2rem);
  display: inline-flex; align-items: center; padding-right: 1.4rem; letter-spacing: .01em; }
.marquee .dot { width: 12px; height: 12px; border-radius: 4px; margin: 0 1.4rem; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.marquee .dot.o { background: var(--orange); } .marquee .dot.g { background: var(--green); }
.marquee .dot.b { background: var(--blue); } .marquee .dot.r { background: var(--red); }

/* ══════════ Zones ══════════ */
.zone-dark { background: var(--navy); color: var(--on-dark); }
.zone-dark .why-title, .zone-dark h2, .zone-dark h3 { color: var(--on-dark); }
.zone-soft { background: var(--paper-2); }

/* ══════════ WHY ══════════ */
.why { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.why-title { font-family: var(--f-display); font-weight: 400; line-height: 1.14;
  font-size: clamp(1.9rem, 5vw, 3.4rem); letter-spacing: -.01em; }
.why-title span { display: block; }
.why-title span:first-child { color: var(--yellow); }
.why-lead { margin: 1.5rem 0 3rem; max-width: 56ch; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--on-dark-2); line-height: 1.85; }
.why-lead b { color: var(--on-dark); font-weight: 800; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar { background: rgba(255,255,255,.04); border: 1.5px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.8rem 1.6rem; }
.pillar-brick { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 12px; font-family: var(--f-display); font-size: 1.1rem; color: #fff; margin-bottom: 1rem;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.22); }
.pillar-brick.o { background: var(--orange); color: var(--ink); } .pillar-brick.g { background: var(--green); color: var(--ink); } .pillar-brick.b { background: var(--blue); }
.pillar h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; margin-bottom: .55rem; }
.pillar p { color: var(--on-dark-2); font-size: .98rem; }

/* ══════════ HANGEUL ROADMAP ══════════ */
.hangeul { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.hangeul-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.1; }
.u-book { color: var(--green-t); position: relative; }
.u-book::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4%; height: 30%; background: var(--green); opacity: .22; z-index: -1; border-radius: 4px; }
.hangeul-desc { margin: 1rem 0 3rem; color: var(--ink-2); font-size: 1.08rem; max-width: 48ch; }

.roadmap { list-style: none; display: flex; align-items: stretch; flex-wrap: wrap; gap: .6rem; }
.rm-step { flex: 1 1 0; min-width: 150px; display: flex; align-items: center; gap: .9rem;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.rm-brick { flex: none; width: 56px; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 1.7rem; color: #fff; box-shadow: inset 0 -6px 0 rgba(0,0,0,.2); }
.rm-brick.o { background: var(--orange); color: var(--ink); } .rm-brick.g { background: var(--green); color: var(--ink); } .rm-brick.b { background: var(--blue); }
.rm-brick.done { background: var(--red); color: #fff; }
.rm-body b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
.rm-body small { color: var(--ink-2); font-size: .82rem; }
.rm-arrow { flex: none; align-self: center; color: var(--ink-3); font-size: 1.4rem; font-weight: 800; }
.rm-final { border-color: var(--red); background: #FFF6F2; }

.hangeul-proof { margin-top: 3.2rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.proof-figure { position: relative; margin: 0; }
.proof-figure img { width: 100%; border-radius: var(--radius-lg); border: 3px solid var(--card); box-shadow: var(--shadow-lg); transform: rotate(-1.6deg); }
.proof-badge { position: absolute; top: -18px; right: -14px; background: var(--red); color: #fff; font-family: var(--f-display);
  font-size: 1.5rem; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; transform: rotate(9deg);
  box-shadow: 0 8px 20px rgba(232,73,46,.4), inset 0 -5px 0 rgba(0,0,0,.15); border: 3px solid #fff; }
.chip-hand { font-family: var(--f-hand); font-size: 1.3rem; color: var(--orange-t); font-weight: 700; }
.proof-text h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.25; margin: .6rem 0 .9rem; }
.proof-text p { color: var(--ink-2); font-size: 1.05rem; max-width: 40ch; }

/* ══════════ CURRICULUM ══════════ */
.curriculum { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.cur-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 5.5vw, 3.6rem); }
.cur-desc { margin: 1rem 0 3rem; color: var(--ink-2); font-size: 1.08rem; max-width: 46ch; }
.cur-desc b { color: var(--ink); font-weight: 800; }
.cur-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cur-card { --c: var(--orange); background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem 1.9rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; }
.cur-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px; background: var(--c); }
.cur-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--c); }
.cur-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cur-icon { width: 56px; height: 56px; border-radius: 15px; background: var(--c); color: var(--on-c, #fff);
  display: grid; place-items: center; font-family: var(--f-display); font-size: 1.7rem;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.2); }
.cur-icon.han { font-family: var(--f-body); font-weight: 800; font-size: 1.55rem; }  /* Jua lacks Hanja glyphs */
.cur-icon svg { width: 34px; height: 34px; }
.cur-tag { font-size: .74rem; font-weight: 800; color: var(--ink); background: var(--c);
  background: color-mix(in srgb, var(--c) 22%, #fff);
  padding: .3rem .7rem; border-radius: 999px; }
.cur-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1; }
.cur-lead { color: var(--ink-2); font-weight: 700; margin: .35rem 0 1rem; font-size: .98rem; }
.cur-lead b { color: var(--ct, var(--c)); }
.cur-card ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.cur-card li { position: relative; padding-left: 1.4rem; font-size: .95rem; color: var(--ink); }
.cur-card li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 3px;
  background: var(--c); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
/* --c = brick fill · --on-c = text on the fill · --ct = accessible text tone on the card */
.cur-card.c-orange { --c: var(--orange);   --on-c: var(--ink); --ct: var(--orange-t); }
.cur-card.c-green  { --c: var(--green);    --on-c: var(--ink); --ct: var(--green-t); }
.cur-card.c-blue   { --c: var(--blue);     --ct: var(--blue-d); }
.cur-card.c-red    { --c: var(--red);      --ct: var(--red-d); }
.cur-card.c-navy   { --c: var(--navyc);    --ct: var(--navyc); }
.cur-card.c-yellow { --c: var(--yellow-d); --on-c: var(--ink); --ct: #7A5600; }

.age-split { margin-top: 2.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.age-card { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--card); border: 2px dashed var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.age-badge { flex: none; font-family: var(--f-display); color: #fff; padding: .5rem .9rem; border-radius: 12px; font-size: 1.05rem;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); }
.age-badge.o { background: var(--orange); color: var(--ink); } .age-badge.b { background: var(--blue); }
.age-card b { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; }
.age-card p { color: var(--ink-2); font-size: .95rem; margin-top: .2rem; }

/* ══════════ CLASS BAND ══════════ */
.class-band { background: var(--orange); padding: clamp(2rem, 5vw, 3.2rem) 0; color: var(--ink);
  border-block: 4px solid var(--orange-d); }
.class-band-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(1rem, 4vw, 3rem); text-align: center; }
.cb-item b { font-family: var(--f-display); font-weight: 400; display: block; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.1; }
.cb-item small { font-size: .92rem; opacity: .92; font-weight: 700; }
.cb-sep { width: 12px; height: 12px; border-radius: 4px; background: rgba(44,40,35,.3); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }

/* ══════════ STATS ══════════ */
.stats { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.stats .section-label { display: flex; width: max-content; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.stat { text-align: center; padding: 1.4rem .6rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1.5px solid rgba(255,255,255,.09); }
.stat-num { font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 3rem); color: #fff; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .9rem; }
.stat-label { display: block; margin-top: .6rem; font-size: .82rem; color: var(--on-dark-2); font-weight: 700; }
.stat-label small { font-weight: 500; opacity: .8; }
.stat:nth-child(1) .stat-num { color: var(--yellow); }
.stat:nth-child(2) .stat-num { color: var(--orange); }
.stat:nth-child(3) .stat-num { color: var(--green); }
.stat:nth-child(4) .stat-num { color: #fff; }
.stat:nth-child(5) .stat-num { color: #58AEEF; }  /* light brand blue for navy bg */
.stat:nth-child(6) .stat-num { color: #FF6B4F; }  /* light brand red for navy bg */

/* ══════════ REVIEWS ══════════ */
.reviews { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.rev-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 5vw, 3.2rem); margin-bottom: 2.2rem; }
.review-card { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow-md); max-width: 820px; }
.review-card::before { content: "\201C"; position: absolute; top: -.2em; left: .3em; font-family: var(--f-display);
  font-size: 6rem; color: var(--yellow); opacity: .5; line-height: 1; }
.review-stars { color: var(--star); font-size: 1.15rem; letter-spacing: .1em; margin-bottom: 1rem; }
.review-card blockquote { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.75; color: var(--ink); font-weight: 500; position: relative; }
.review-card blockquote b { color: var(--orange-t); font-weight: 800; }
.review-card figcaption { margin-top: 1.4rem; color: var(--ink-2); font-weight: 700; }
.fc-rating { color: var(--star); margin-left: .4rem; }
.review-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; color: var(--ink-2); font-weight: 600; }
.review-meta b { font-family: var(--f-display); font-weight: 400; color: var(--ink); font-size: 1.1rem; }
.review-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); display: inline-block; }
.rev-more { color: var(--blue-d); font-weight: 800; margin-left: auto; }
.rev-more:hover { text-decoration: underline; }

/* ══════════ LOCATION ══════════ */
.location { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.loc-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.loc-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.18; }
.loc-addr { margin: 1.1rem 0 1.6rem; font-size: 1.1rem; color: var(--ink); }
.loc-addr b { font-weight: 800; }
.loc-points { list-style: none; display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.6rem; }
.loc-points li { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink); font-size: 1rem; }
.loc-points small { color: var(--ink-2); }
.lp { flex: none; width: 14px; height: 14px; border-radius: 4px; margin-top: .35em; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.lp.o { background: var(--orange); } .lp.g { background: var(--green); } .lp.b { background: var(--blue); } .lp.y { background: var(--yellow); }
.loc-schools { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.loc-schools span { background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: .45rem .95rem; font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.loc-schools b { color: var(--blue-d); }
.loc-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.loc-landmarks { margin: -.6rem 0 1.6rem; font-size: .92rem; line-height: 1.75; color: var(--ink-2); }
.loc-landmarks b { color: var(--ink); margin-right: .35rem; }

.loc-map { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }

/* 실제 지도 (Leaflet + OpenStreetMap). 스크립트는 구역이 가까워질 때만 불러오고,
   불러오기 전·실패 시에는 .map-fallback(주소 + 네이버 지도 버튼)이 보입니다. */
.map-frame { position: relative; aspect-ratio: 4 / 3.5; max-height: 460px; border-radius: var(--radius-lg); border: 2px solid var(--line);
  overflow: hidden; background: #EEF0E6; box-shadow: var(--shadow-md); isolation: isolate; }
.map-canvas { position: absolute; inset: 0; z-index: 0; }
.map-canvas.leaflet-container { font: inherit; background: #EEF0E6; }
.map-canvas .leaflet-tile-pane { filter: saturate(.82) contrast(.97); }
.map-canvas .leaflet-control-attribution { font-size: .68rem; background: rgba(255,255,255,.82); border-top-left-radius: 8px; }
.map-canvas .leaflet-bar { border: 0; box-shadow: 0 2px 10px rgba(20,30,40,.18); border-radius: 12px; overflow: hidden; }
.map-canvas .leaflet-bar a { width: 36px; height: 36px; line-height: 34px; font-size: 20px; color: var(--ink); }
.map-canvas .leaflet-control-zoom { margin: 0 12px 10px 0; }

.map-fallback { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; padding: 1.5rem; text-align: center;
  background: repeating-linear-gradient(0deg, transparent 0 38px, rgba(120,140,120,.07) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(120,140,120,.07) 38px 39px),
    radial-gradient(120% 120% at 70% 20%, #EAF3DC, #F4EEDD); }
.map-fallback img { width: 64px; height: auto; margin-bottom: .3rem; }
.map-fallback b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; color: var(--ink); }
.map-fallback span { color: var(--ink-2); font-weight: 600; margin-bottom: .6rem; }
.map-frame.is-live .map-fallback { display: none; }

.map-open { position: absolute; z-index: 500; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.94); color: var(--ink); font-size: .82rem; font-weight: 800; padding: .45rem .8rem;
  border-radius: 999px; box-shadow: 0 2px 10px rgba(20,30,40,.18); }
.map-open:hover { background: #fff; color: var(--blue-d); }
.map-frame:not(.is-live) .map-open { display: none; }
@media (max-width: 560px) { .map-open { display: none; } } /* 바로 위 '네이버 지도 · 길찾기' 버튼이 같은 역할 */

/* 지도 표식 */
.mk { background: none; border: 0; }
.mk-home { position: absolute; inset: 0; }
.mk-pin { position: absolute; left: 4px; top: 4px; width: 40px; height: 40px; background: #fff; border: 3px solid var(--orange);
  border-radius: 50% 50% 6px 50%; transform: rotate(45deg); box-shadow: 0 6px 14px rgba(20,30,40,.28); }
.mk-pin i { position: absolute; inset: 4px; transform: rotate(-45deg);
  background: url("../assets/img/logo.png") center / 26px auto no-repeat; }
.mk-home-tag { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-weight: 800; font-size: .86rem; line-height: 1; padding: .5rem .8rem;
  border-radius: 999px; box-shadow: var(--shadow-sm); }
.mk-poi { position: absolute; inset: 0; }
.mk-poi > i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(20,30,40,.3); }
.mk-poi.kid > i { background: var(--green-btn); }
.mk-poi.school > i { background: var(--blue-d); }
.mk-tag { position: absolute; top: 50%; left: calc(100% + 6px); transform: translateY(-50%); white-space: nowrap;
  background: rgba(255,255,255,.96); color: var(--ink); font-weight: 800; font-size: .78rem; line-height: 1;
  padding: .38rem .55rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(20,30,40,.18); }
.mk-tag em { font-style: normal; font-weight: 700; color: var(--ink-2); margin-left: .15rem; }
.mk-poi.to-l .mk-tag { left: auto; right: calc(100% + 6px); }
.mk-poi.to-t .mk-tag { top: auto; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); }
@media (max-width: 370px) { .mk-tag { font-size: .7rem; padding: .32rem .42rem; } .mk-home-tag { font-size: .8rem; } }

.branch-note { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.branch-note > b { font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; color: var(--orange-t); }
.branch-note p { color: var(--ink-2); font-size: .95rem; margin-top: .2rem; }
.branch-note p b { color: var(--ink); font-weight: 800; }

/* ══════════ CTA ══════════ */
.cta { position: relative; overflow: hidden; text-align: center;
  padding: clamp(5rem, 11vw, 9rem) 0;
  background: radial-gradient(900px 500px at 50% 0%, #2C4257, var(--navy-2)); color: var(--on-dark); }
.cta-hand { font-family: var(--f-hand); font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--yellow); font-weight: 700; }
.cta-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.14; margin: .5rem 0 2rem; color: #fff; }
.btn-call-lg { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem); color: #fff; background: var(--green-btn); padding: 1rem 2.2rem; border-radius: 999px;
  box-shadow: 0 6px 0 var(--green-btn-d), 0 20px 40px rgba(0,0,0,.3); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn-call-lg:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--green-btn-d), 0 28px 50px rgba(0,0,0,.35); }
.btn-call-lg:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--green-btn-d); }
.cta-links { margin-top: 2rem; display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }
.cta-links a { color: var(--on-dark-2); font-weight: 700; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.cta-links a:hover { color: #fff; border-color: var(--yellow); }
.cta-bricks { position: absolute; inset: 0; pointer-events: none; }
.cta-bricks span { position: absolute; width: 44px; height: 30px; border-radius: 7px; opacity: .5; box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); }
.cta-bricks span:nth-child(1) { background: var(--orange); top: 14%; left: 8%; transform: rotate(-12deg); }
.cta-bricks span:nth-child(2) { background: var(--green); top: 68%; left: 14%; transform: rotate(8deg); }
.cta-bricks span:nth-child(3) { background: var(--blue); top: 24%; right: 10%; transform: rotate(10deg); }
.cta-bricks span:nth-child(4) { background: var(--yellow); bottom: 16%; right: 14%; transform: rotate(-8deg); }
.cta-bricks span:nth-child(5) { background: var(--red); top: 50%; right: 6%; transform: rotate(4deg); width: 34px; height: 24px; }

/* ══════════ FOOTER ══════════ */
.site-footer { background: var(--ink); color: #E8DFCF; padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 2.5rem; }
.foot-brand img { width: 58px; height: auto; margin-bottom: .8rem; }
.foot-name { font-family: var(--f-display); font-size: 1.4rem; color: #fff; }
.foot-name b { color: var(--orange); }
.foot-tagline { font-family: var(--f-hand); font-size: 1.2rem; color: var(--yellow); margin-top: .3rem; }
.foot-col b { font-family: var(--f-display); font-weight: 400; color: #fff; font-size: 1.1rem; display: block; margin-bottom: .8rem; }
.foot-col p { color: #B7AB97; font-size: .94rem; margin-bottom: .45rem; }
.foot-col a { color: #E8DFCF; border-bottom: 1px solid rgba(255,255,255,.25); }
.foot-col a:hover { color: var(--yellow); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); color: #A89B85; font-size: .84rem; }

/* ══════════ TOUR — scroll-scrubbed walk-through (Kling video frames) ══════════ */
.tour { position: relative; background: var(--navy-2); }
.tour-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.tour-poster, .tour-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tour-poster { object-fit: cover; }
.tour-canvas { opacity: 0; transition: opacity .5s var(--ease); }
.tour.is-ready .tour-canvas { opacity: 1; }
.tour-veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(26,39,51,.72) 0%, rgba(26,39,51,.18) 30%, rgba(26,39,51,0) 52%, rgba(26,39,51,.78) 100%); }
.tour-overlay { position: absolute; inset: 0; max-width: var(--maxw); margin-inline: auto;
  padding: calc(var(--header-h) + 2rem) clamp(1.15rem, 5vw, 3rem) 2rem;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff; pointer-events: none; }
.section-label.on-photo { background: rgba(255,255,255,.94); color: var(--ink); border-color: transparent; }
.tour-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.12;
  text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.tour-cues { list-style: none; position: relative; min-height: 6rem; }
.tour-cue { position: absolute; left: 0; bottom: 0; max-width: 440px; opacity: 0; transform: translateY(14px);
  background: rgba(26,39,51,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: .9rem 1.25rem; border-radius: 16px; border-left: 5px solid var(--orange); color: var(--on-dark); font-size: .98rem; }
.tour-cue b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; color: #fff; margin-bottom: .15rem; }
.tour-cue:nth-child(2) { border-left-color: var(--green); }
.tour-cue:nth-child(3) { border-left-color: #58AEEF; }
.tour-progress { height: 4px; max-width: 440px; margin-top: 1rem; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.25); }
#tour-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--green), #58AEEF); }
.tour-note { display: inline-block; align-self: flex-start; margin-top: .7rem; font-size: .74rem; color: #fff; background: rgba(26,39,51,.7);
  padding: .2rem .65rem; border-radius: 999px; }
.tour-spacer { height: 170vh; }
/* static fallback (reduced motion / engine unavailable): poster + all captions */
.tour.is-static .tour-sticky, .no-engine .tour-sticky { position: relative; }
.tour.is-static .tour-spacer, .no-engine .tour-spacer,
.tour.is-static .tour-canvas, .no-engine .tour-canvas,
.tour.is-static .tour-progress, .no-engine .tour-progress { display: none; }
.tour.is-static .tour-cues, .no-engine .tour-cues { position: static; display: flex; flex-wrap: wrap; gap: .6rem; min-height: 0; }
.tour.is-static .tour-cue, .no-engine .tour-cue { position: static; opacity: 1; transform: none; }

/* ══════════ ROOMS — horizontal photo strip ══════════ */
.rooms { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); background: var(--paper); }
.rooms-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.rooms-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.15; }
.rooms-nav { display: flex; gap: .6rem; flex: none; }
.rooms-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card);
  color: var(--ink); font-size: 1.2rem; font-weight: 800; cursor: pointer; transition: background .2s, color .2s; }
.rooms-btn:hover { background: var(--ink); color: var(--paper); }
.rooms-track { --edge: max(1.15rem, calc((100vw - var(--maxw)) / 2 + 3rem));
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: .4rem var(--edge) 1.2rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.room { flex: 0 0 min(560px, 82vw); margin: 0; scroll-snap-align: start; }
.room img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; border: 3px solid #fff; box-shadow: var(--shadow-md); }
.room figcaption { margin-top: .6rem; font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.rooms-foot { margin-top: .4rem; color: var(--ink-2); font-size: .92rem; }
.rooms-foot b { color: var(--ink); }

/* ══════════ MADE — self-made workbook ══════════ */
.made { margin-top: clamp(3rem, 7vw, 5rem); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.made-text h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.2; margin: .5rem 0 1rem; }
.made-text blockquote { font-size: 1.05rem; line-height: 1.8; color: var(--ink); border-left: 4px solid var(--orange); padding-left: 1rem; }
.made-src { margin-top: .7rem; font-size: .86rem; color: var(--ink-2); }
.made-photos { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; align-items: end; }
.made-ph { margin: 0; }
.made-ph img { width: 100%; object-fit: cover; border-radius: 20px; border: 3px solid #fff; box-shadow: var(--shadow-md); }
.mp-1 img { aspect-ratio: 1 / 1; transform: rotate(-2deg); }
.mp-2 img { aspect-ratio: 3 / 4; transform: rotate(2.5deg); }
.made-ph figcaption { margin-top: .7rem; text-align: center; font-size: .88rem; font-weight: 700; color: var(--ink-2); }

/* ══════════ PROCESS — 4 steps ══════════ */
.process { padding: clamp(4.5rem, 10vw, 7rem) 0; background: var(--paper); }
.process-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 5.5vw, 3.4rem); }
.process-desc { margin: 1rem 0 2.6rem; color: var(--ink-2); font-size: 1.06rem; max-width: 50ch; }
.process-desc b { color: var(--ink); font-weight: 800; }
.proc { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.proc-step { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.6rem; }
.proc-step:not(:last-child)::after { content: "→"; position: absolute; right: -1.15rem; top: 2.1rem; z-index: 1;
  font-weight: 800; font-size: 1.1rem; color: var(--ink-2); }
.proc-no { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px;
  font-family: var(--f-display); font-size: 1.4rem; margin-bottom: .9rem; box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); }
.proc-no.o { background: var(--orange); color: var(--ink); } .proc-no.g { background: var(--green); color: var(--ink); }
.proc-no.b { background: var(--blue); color: #fff; }          .proc-no.y { background: var(--yellow); color: var(--ink); }
.proc-step h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; margin-bottom: .5rem; }
.proc-step p { color: var(--ink-2); font-size: .95rem; line-height: 1.75; }

/* ══════════ GALLERY — 트이다의 하루 ══════════ */
.gallery { padding: clamp(4.5rem, 10vw, 7rem) 0; background: var(--paper-2); }
.gallery-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 5.5vw, 3.4rem); }
.gallery-desc { margin: 1rem 0 2.4rem; color: var(--ink-2); font-size: 1.04rem; max-width: 56ch; }
/* 4-col square grid: 2 features (2×2) + 8 singles = exactly 4×4 cells (2-col on small
   screens pairs up the same way), so the 10 photos never leave a hole */
.gal { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 1rem; }
.gal-item { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
/* width = 2 cells + gap, so a square feature is exactly 2 rows tall at 4 or 2 columns */
.gal-item.feature { grid-column: span 2; grid-row: span 2; }
/* absolutely filled so a photo's intrinsic height can't stretch the grid rows —
   row height comes only from the square singles */
.gal-btn { position: absolute; inset: 0; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gal-btn:hover img, .gal-btn:focus-visible img { transform: scale(1.04); }
.gal-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.gal-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  background: rgba(44,40,35,.84); color: #fff; font-size: .84rem; font-weight: 700; padding: .45rem .7rem; border-radius: 12px; pointer-events: none; }
.gal-cap em { font-style: normal; font-size: .7rem; font-weight: 800; padding: .15rem .5rem; border-radius: 999px;
  background: var(--orange); color: var(--ink); white-space: nowrap; }

/* margin:auto restores the UA centring that the global `* { margin: 0 }` reset removes */
.lightbox { margin: auto; border: 0; padding: 0; background: transparent; overflow: visible; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgba(20,24,30,.86); }
.lightbox img { display: block; margin: auto; max-width: min(1100px, 94vw); max-height: 80vh; border-radius: 16px; }
.lightbox p { margin-top: .8rem; text-align: center; color: #fff; font-weight: 700; }
.lb-close { position: absolute; top: -16px; right: -10px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); font-size: 1.1rem; font-weight: 800; cursor: pointer; box-shadow: var(--shadow-md); }

/* ══════════ Consult hours + SMS ══════════ */
.consult { margin-bottom: 1.6rem; padding: 1.1rem 1.3rem; background: var(--card); border: 2px solid var(--line);
  border-left: 6px solid var(--green); border-radius: var(--radius); }
.consult-title { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; }
.consult-time { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .3rem 0 .45rem; font-size: 1.15rem; font-weight: 800; }
.consult-time i { font-style: normal; color: var(--ink-2); }
.consult-tip { color: var(--ink-2); font-size: .92rem; line-height: 1.7; }
.cta-hours { margin-top: 1.5rem; color: var(--on-dark-2); font-weight: 600; }
.cta-hours b { color: #fff; }
.btn-sms { margin-top: 1rem; --btn-bg: transparent; --btn-fg: #fff; border: 2px solid rgba(255,255,255,.75); box-shadow: none; }
.btn-sms:hover { background: #fff; color: var(--navy); }
.cta-sms-tip { max-width: 46ch; margin: .9rem auto 0; font-size: .9rem; color: var(--on-dark-2); }
.cta-sms-tip b { color: #fff; }

@media (max-width: 940px) {
  .made { grid-template-columns: 1fr; }
  .proc { grid-template-columns: repeat(2, 1fr); }
  .proc-step::after { display: none; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .tour-spacer { height: 150vh; }
}
@media (max-width: 560px) {
  .proc { grid-template-columns: 1fr; }
  .gal { gap: .7rem; }
  .gal-cap { font-size: .76rem; left: 7px; right: 7px; bottom: 7px; padding: .38rem .6rem; }
  .gal-cap em { display: none; }  /* every photo is 남악점 (see intro line) — keep captions to one line */
  .rooms-nav { display: none; }
  .tour-cue { max-width: 100%; }
  .tour-spacer { height: 130vh; }
}

/* ══════════ FAQ (main page; generated block) ══════════ */
.faqs { padding: clamp(4rem, 9vw, 6.5rem) 0; background: var(--paper); border-top: 1.5px solid var(--line-soft); }
.faqs-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 2rem; }
.faqs-list { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; align-items: start; }
.faq-item { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; gap: .6rem; padding: 1rem 1.2rem; font-weight: 800; line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; font-family: var(--f-display); color: var(--orange-t); font-size: 1.2rem; line-height: 1.25; }
.faq-item summary::after { content: "+"; margin-left: auto; font-weight: 800; color: var(--ink-2); }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq-a { padding: .9rem 1.2rem 1.1rem 2.6rem; line-height: 1.85; }
.faq-more { display: inline-block; margin-top: .5rem; font-weight: 800; color: var(--blue-d); }
.faqs-more { margin-top: 1.6rem; }
.faqs-more a { font-weight: 800; color: var(--blue-d); border-bottom: 2px solid currentColor; }
@media (max-width: 760px) { .faqs-list { grid-template-columns: 1fr; } }

/* ══════════ Responsive ══════════ */
@media (max-width: 940px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-left: auto;
    min-width: 44px; min-height: 44px; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 26px; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .25s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mobile-menu { display: flex; flex-direction: column; gap: .3rem; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 1090;
    background: var(--paper); border-bottom: 2px solid var(--line); padding: 1rem clamp(1.15rem,5vw,3rem) 1.5rem; box-shadow: var(--shadow-md); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { font-weight: 700; padding: .8rem .4rem; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .mobile-menu a.btn { margin-top: .8rem; border: none; color: #fff; justify-content: center; }

  /* copy + call CTA first; logo card follows, smaller */
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { margin: 2.8rem auto 1.2rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem .8rem; }
  .hero-photos { grid-column: 1 / -1; justify-self: center; width: min(360px, 84vw); }
  /* chips sit in a row under the card instead of floating over it — can't overlap at any width */
  .hero-chip { position: static; }
  .hero-chip.chip-1 { justify-self: end; transform: rotate(-3deg); }
  .hero-chip.chip-2 { justify-self: start; transform: rotate(3deg); }
  .scroll-cue { display: none; }
  /* single column: floating bricks would sit behind the headline — keep one, top-right */
  .fb-o, .fb-g, .fb-y { display: none; }
  .fb-b { top: calc(var(--header-h) + 10px); right: 5%; width: 38px; height: 27px; opacity: .6; }

  .roadmap { flex-direction: column; max-width: 560px; }
  .rm-arrow { transform: rotate(90deg); }
  .rm-step { width: 100%; }

  .pillars { grid-template-columns: 1fr; }
  .cur-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .hangeul-proof { grid-template-columns: 1fr; }
  .proof-figure { max-width: 360px; margin-inline: auto; }
  .loc-grid { grid-template-columns: 1fr; }
  .age-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand-name { font-size: 1.1rem; }
  .brand-name em { display: none; }
  .hero { padding-top: calc(var(--header-h) + 2vh); }
  .hero-title { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .hero-cta .btn { width: 100%; }
  .cur-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .review-meta { gap: .7rem; }
  .rev-more { margin-left: 0; width: 100%; }
  .marquee-row span { font-size: 1.4rem; }
}

/* ══════════ Engine failure safety net ══════════
   index.html adds .no-engine if engine.js hasn't booted in time
   (blocked CDN / script error): never leave content hidden or covered. */
.no-engine [data-reveal] { opacity: 1 !important; transform: none !important; }
.no-engine #loader { display: none !important; }
.no-engine .motion-toggle { display: none; }

/* ══════════ Reduced motion ══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee-row { transform: none !important; }
  .fb, .scroll-cue svg { animation: none !important; }
  #loader { display: none !important; }
  .motion-toggle { display: none; }
}
