@font-face{
  font-family:'Pretendard Variable';
  font-weight:45 920;
  font-style:normal;
  font-display:swap;
  src:url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2') format('woff2-variations');
}

:root{
  --bg:#F7F8F4;
  --surface:#FFFFFF;
  --ink:#1B2524;
  --muted:#596260;
  --blue:#164DD8;
  --blue-dark:#0F3AA6;
  --planned:#EBEFE5;
  --line:#DEE3D7;
  --line-strong:#C7CFC0;
  --space-1:8px;
  --space-2:16px;
  --space-3:24px;
  --space-4:40px;
  --space-5:64px;
  --space-6:96px;
  --max-w:1160px;
  --pad:20px;
  --dur:190ms;
  --ease:cubic-bezier(.3,0,.2,1);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Pretendard Variable','Pretendard',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;
  font-size:16px;
  line-height:1.7;
  word-break:keep-all;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit;color:inherit}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3,h4,p{margin:0}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible{
  outline:3px solid var(--blue);
  outline-offset:3px;
  border-radius:4px;
}

.wrap{max-width:var(--max-w);margin:0 auto;padding:0 var(--pad)}
@media(min-width:768px){.wrap{padding:0 32px}}

.eyebrow{
  display:block;
  font-size:13px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:var(--space-2);
}

h1{font-size:34px;line-height:1.24;letter-spacing:-.02em;font-weight:700}
@media(max-width:380px){h1{font-size:30px}}
@media(min-width:600px){h1{font-size:42px}}
@media(min-width:768px){h1{font-size:52px}}
@media(min-width:1280px){h1{font-size:64px}}

h2{font-size:26px;line-height:1.35;letter-spacing:-.015em;font-weight:700}
@media(min-width:768px){h2{font-size:34px}}
@media(min-width:1280px){h2{font-size:40px}}

.section-lead,.lead{color:var(--muted);font-size:17px;line-height:1.75;max-width:620px}
@media(min-width:768px){.section-lead,.lead{font-size:18px}}

section{padding:var(--space-6) 0}
@media(max-width:767px){section{padding:var(--space-5) 0}}

/* header */
.site-header{border-bottom:1px solid var(--line);background:var(--surface)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);height:80px}
.brand{font-size:20px;font-weight:800;letter-spacing:-.03em}
.brand span{color:var(--blue)}
.main-nav{display:flex;align-items:center;gap:var(--space-3);font-size:14px;font-weight:600}
.main-nav a:hover{color:var(--blue)}
.lang-switch{border:1px solid var(--line);border-radius:6px;padding:6px 12px}
@media(max-width:600px){.header-inner{height:auto;flex-direction:column;align-items:flex-start;gap:var(--space-1);padding:14px var(--pad)}.main-nav{flex-wrap:wrap;gap:var(--space-2)}}

/* hero */
.hero{padding:var(--space-6) 0 var(--space-5)}
.hero-inner{max-width:780px}
.hero h1{margin:0 0 var(--space-3)}
.hero .lead{margin-bottom:var(--space-3)}
.actions{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-bottom:var(--space-3)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border-radius:8px;font-size:15px;font-weight:700;transition:filter var(--dur) var(--ease),background var(--dur) var(--ease)}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{filter:brightness(.92)}
.btn-ghost{background:var(--surface);color:var(--ink);border:1px solid var(--line-strong)}
.btn-ghost:hover{border-color:var(--blue);color:var(--blue)}
.hero-status{font-size:14px;color:var(--muted)}
.hero-status strong{color:var(--ink)}

.hero-en .hero-inner{max-width:900px}
@media(min-width:768px){.hero-en h1{font-size:46px}}
@media(min-width:1024px){.hero-en h1{font-size:52px}}
@media(min-width:1280px){.hero-en h1{font-size:56px}}

/* problem + custom build */
.problem{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}

.examples{display:flex;flex-direction:column;gap:var(--space-3);margin-top:var(--space-5)}
@media(min-width:900px){.examples{flex-direction:row;gap:var(--space-4)}}
.example{flex:1;padding-top:var(--space-2);border-top:1px solid var(--line)}
.example .tag{font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--blue)}
.example h4{font-size:17px;margin:6px 0 4px}
.example p{font-size:14px;color:var(--muted);line-height:1.7}

.build .note{margin-top:var(--space-3);font-size:13px;color:var(--muted)}

/* scene (section B) */
.scene-stage{display:grid;grid-template-columns:1.05fr 1fr;gap:var(--space-5);align-items:start;margin-top:var(--space-4)}
@media(max-width:900px){.scene-stage{grid-template-columns:1fr;gap:var(--space-4)}}

.scene-frame{margin:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);box-shadow:0 24px 60px rgba(27,37,36,.08)}
.scene-frame>button{display:block;width:100%;border:0;padding:0;background:#f1f2ee;cursor:zoom-in}
/* 원본 576x1272px 중 OT 제목(y≈540)·일시(y≈600)·활동 블록(y≈650-1150)이 함께 보이도록
   가로세로 비율(576:760, y≈430-1190 구간)을 고정해 어떤 컨테이너 폭에서도 동일한 영역이 보이게 함 */
.scene-frame img{display:block;width:100%;aspect-ratio:576/760;object-fit:cover;object-position:50% 84%}
@media(max-width:900px){.scene-frame{max-width:420px;margin:0 auto}}
.scene-frame figcaption{padding:16px 20px;font-size:14px;color:var(--muted);border-top:1px solid var(--line)}

.link-button{background:none;border:0;padding:0;color:var(--blue);font-weight:700;font-size:14px;cursor:pointer}
.link-button:hover{text-decoration:underline}

.index-list{display:flex;flex-direction:column;gap:var(--space-3)}
.index-list li{display:grid;grid-template-columns:34px 1fr;gap:var(--space-2)}
.index-num{font:700 15px/1.6 monospace;color:var(--blue)}
.index-list h3{font-size:17px;margin-bottom:4px}
.index-list p{font-size:15px;color:var(--muted);line-height:1.7}

.scene-side{display:flex;flex-direction:column;gap:var(--space-3)}
.scene-status{display:inline-flex;align-items:center;gap:8px;width:fit-content;font-size:13px;font-weight:700;color:var(--blue);background:var(--planned);padding:6px 12px;border-radius:999px}
.status-dot{width:7px;height:7px;border-radius:50%;background:var(--blue);display:inline-block}
.scene-link .note{margin-top:10px;font-size:13px;color:var(--muted)}

/* tabs (features) */
.tablist{display:flex;flex-wrap:wrap;gap:var(--space-1);margin-top:var(--space-4);border-bottom:1px solid var(--line)}
.tablist [role="tab"]{background:none;border:0;border-bottom:3px solid transparent;padding:12px 4px;margin-right:var(--space-3);font-size:15px;font-weight:700;color:var(--muted);cursor:pointer;transition:color var(--dur) var(--ease),border-color var(--dur) var(--ease)}
.tablist [role="tab"][aria-selected="true"]{color:var(--ink);border-color:var(--blue)}
.tablist [role="tab"]:hover{color:var(--ink)}

.panel{display:none;grid-template-columns:1fr 1fr;gap:var(--space-5);margin-top:var(--space-4);align-items:center}
.panel[data-active]{display:grid;animation:panel-in 200ms var(--ease)}
@keyframes panel-in{from{opacity:0}to{opacity:1}}
@media(max-width:900px){.panel[data-active]{grid-template-columns:1fr;gap:var(--space-3)}}

.panel-frame{margin:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.panel-frame button{display:block;width:100%;border:0;padding:0;background:#f1f2ee;cursor:zoom-in}
.panel-frame img{width:100%;height:480px;object-fit:cover;object-position:50% 0%}
@media(max-width:900px){.panel-frame img{height:400px}}
@media(max-width:480px){.panel-frame img{height:360px}}

.screen-kicker{display:block;font-size:13px;font-weight:700;letter-spacing:.06em;color:var(--blue);margin-bottom:var(--space-1)}
.panel-copy h3{font-size:22px;margin-bottom:var(--space-2)}
.panel-copy p{color:var(--muted);font-size:16px;line-height:1.75;margin-bottom:var(--space-2)}
.related-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.chip{border:1px solid var(--line-strong);border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600;background:var(--surface);cursor:pointer}
.chip:hover{border-color:var(--blue);color:var(--blue)}

/* full gallery strip */
.gallery{margin-top:var(--space-6)}
.gallery-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);margin-bottom:var(--space-2)}
.gallery-head h3{font-size:18px}
.gallery-head h3 span{color:var(--muted);font-weight:500;font-size:14px}
.gallery-controls{display:flex;gap:8px}
.icon-btn{width:40px;height:40px;border-radius:8px;border:1px solid var(--line-strong);background:var(--surface);font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.icon-btn:hover:not(:disabled){border-color:var(--blue);color:var(--blue)}
.icon-btn:disabled{opacity:.35;cursor:default}

.gallery-strip{display:flex;gap:var(--space-2);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px}
.gallery-strip::-webkit-scrollbar{display:none}
.gallery-thumb{scroll-snap-align:start;flex:0 0 auto;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface);cursor:zoom-in;width:124px}
.gallery-thumb img{width:124px;height:178px;object-fit:cover;object-position:50% 0%}
.gallery-thumb span{display:block;padding:8px 10px;font-size:12px;font-weight:600;color:var(--muted);text-align:left}
.gallery-thumb:hover{border-color:var(--blue)}
.gallery-note{margin-top:var(--space-2);font-size:13px;color:var(--muted);max-width:680px}

/* roadmap */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-4);margin-top:var(--space-4)}
@media(max-width:900px){.steps{grid-template-columns:1fr;gap:var(--space-3)}}
.step{padding-top:var(--space-3);border-top:3px solid var(--ink)}
.step.is-planned{border-top:3px dashed var(--line-strong)}
.step .num{font:700 13px monospace;color:var(--blue)}
.step h3{font-size:20px;margin:var(--space-2) 0 var(--space-1)}
.step p{color:var(--muted);font-size:15px;line-height:1.7}
.status-tag{display:inline-block;margin-top:var(--space-2);font-size:12px;font-weight:700;color:var(--blue);background:var(--planned);padding:5px 10px;border-radius:6px}

/* about + contact */
.about{background:var(--ink);color:#fff}
.about-inner{display:grid;grid-template-columns:.85fr 1.15fr;gap:var(--space-5)}
@media(max-width:900px){.about-inner{grid-template-columns:1fr;gap:var(--space-3)}}
.about .eyebrow{color:#8fd0ff}
.about p{color:#c9d3d1;font-size:16px;line-height:1.75}
.about p+p{margin-top:var(--space-2)}
.about-meta{margin-top:var(--space-3);color:#9fb0ad;font-size:14px}
.contact-cta{margin-top:var(--space-3)}
.btn-contact{background:#fff;color:var(--ink)}
.btn-contact:hover{filter:brightness(.92)}

footer{padding:var(--space-3) 0}
.footer-inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--space-2);font-size:13px;color:var(--muted)}
.footer-inner b{color:var(--ink)}

/* modal */
.modal-overlay{position:fixed;inset:0;background:rgba(27,37,36,.72);display:flex;align-items:center;justify-content:center;padding:var(--space-3);z-index:50;animation:overlay-in 180ms var(--ease)}
.modal-overlay[hidden]{display:none}
.modal{background:var(--surface);border-radius:14px;max-width:min(92vw,720px);max-height:92vh;overflow:auto;position:relative;padding:var(--space-3);animation:modal-in 200ms var(--ease)}
@keyframes overlay-in{from{opacity:0}to{opacity:1}}
@keyframes modal-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
/* 닫기·이전·다음은 overlay의 직계 자식(.modal 바깥)으로 두고 position:fixed를 써서
   .modal의 overflow:auto 클리핑이나 내부 스크롤의 영향을 받지 않고 항상 보이게 함 */
.modal-close{position:fixed;top:20px;right:20px;min-width:44px;height:44px;padding:0 14px;border-radius:8px;border:1px solid var(--line-strong);background:var(--surface);font-size:20px;line-height:1;cursor:pointer;z-index:60}
.modal-close:hover{border-color:var(--blue);color:var(--blue)}
.modal-nav{position:fixed;top:50%;transform:translateY(-50%);min-width:84px;height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);font-weight:700;font-size:14px;cursor:pointer;z-index:60}
.modal-prev{left:20px}
.modal-next{right:20px}
@media(max-width:480px){.modal-close{top:12px;right:12px}.modal-prev{left:12px}.modal-next{right:12px}.modal-nav{min-width:60px;padding:0 10px;font-size:13px}}
.modal-nav:hover{border-color:var(--blue);color:var(--blue)}
.modal figure{margin:0}
.modal img{width:100%;height:auto;border-radius:8px;border:1px solid var(--line)}
.modal figcaption{padding-top:var(--space-2)}
.modal figcaption h3{font-size:19px;margin:4px 0 8px}
.modal figcaption p{color:var(--muted);font-size:15px;line-height:1.7}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
