/* 랄랄라타운 — 4컷 만화 페이지 컨셉.
   두꺼운 먹선 패널(=띠라노 툰의 컷 테두리) + 브랜드 컬러 블록. 장식 대신 선과 면으로만 구조를 만든다. */
:root{
  --ink:#181818;
  --green:#54cd7d;
  --green-deep:#0f6b2c;
  --yellow:#ffea77;
  --lav:#d2d0e8;
  --lav-soft:#f1effa;
  --blush:#fce8e9;
  --mint:#e9f8ee;
  --mist:#e8e8e8;
  --line:3px solid var(--ink);
  --f-display:'Jua','Noto Sans KR Variable','Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  --f-body:'Noto Sans KR Variable','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;
  --wrap:1180px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:84px;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:#fff;color:var(--ink);font:400 1.0625rem/1.75 var(--f-body);word-break:keep-all;overflow-wrap:break-word}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
ul{list-style:none;margin:0;padding:0}
h1,h2,h3,p,dl,dd,figure{margin:0}
button{font:inherit;color:inherit}
[hidden]{display:none!important}

/* 한/영 전환 */
html[data-lang="en"] [lang="ko"]{display:none!important}
html[data-lang="ko"] [lang="en"]{display:none!important}

:focus-visible{outline:3px solid var(--ink);outline-offset:3px;box-shadow:0 0 0 6px var(--yellow)}
.skip{position:absolute;left:-999px;top:0}
.skip:focus{left:1rem;top:1rem;z-index:100;background:#fff;padding:.5rem 1rem;border:var(--line)}
.wrap{width:min(100% - 2.5rem,var(--wrap));margin-inline:auto}
.display{font:400 clamp(2rem,4.4vw,3.4rem)/1.18 var(--f-display);letter-spacing:-.01em}
.section{padding:clamp(3.5rem,8vw,6rem) 0}

/* ---------- 버튼 ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.55rem 1.4rem;border:var(--line);border-radius:999px;background:var(--green);color:var(--ink);font:400 1.1rem/1.2 var(--f-display);text-decoration:none;cursor:pointer;transition:transform .15s,background-color .15s,color .15s}
.btn:hover{background:var(--yellow);transform:translateY(-2px)}
.btn-ghost{background:#fff}
.btn-ghost:hover{background:var(--green)}
.btn-ink{background:var(--ink);color:#fff}
.btn-ink:hover{background:#fff;color:var(--ink)}
.btn-sm{min-height:40px;padding:.35rem 1.1rem;font-size:1rem}

/* ---------- 헤더 ---------- */
.site-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:var(--line)}
.bar{display:flex;align-items:center;gap:1.5rem;height:68px}
.brand-logo{display:block;flex:none}
.brand-logo img{height:34px;width:auto}
.nav ul{display:flex;gap:.4rem}
.nav a{display:block;padding:.3rem .8rem;font:400 1.1rem/1.2 var(--f-display);text-decoration:none;border-radius:999px;transition:background-color .15s}
.nav a:hover{background:var(--yellow)}
.bar-tools{margin-left:auto;display:flex;align-items:center;gap:.6rem}
.lang{height:40px;min-width:46px;padding:0 .7rem;border:var(--line);border-radius:999px;background:#fff;font:400 1rem/1 var(--f-display);cursor:pointer}
.lang:hover{background:var(--lav)}
.menu-btn{display:none;width:44px;height:40px;border:var(--line);border-radius:999px;background:#fff;cursor:pointer;padding:0;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.menu-btn span{display:block;width:18px;height:3px;background:var(--ink);border-radius:2px}

/* ---------- 히어로: 4컷 ---------- */
.hero{background:var(--yellow);border-bottom:var(--line);padding:clamp(1.25rem,3vw,2.5rem) 0 clamp(2rem,4vw,3.25rem)}
.page{display:grid;gap:12px;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:minmax(300px,auto) minmax(270px,auto);grid-template-areas:"a a a b b b" "a a a c c d"}
.panel{border:var(--line);background:#fff;overflow:hidden}
.page .panel{position:relative;animation:pop .55s cubic-bezier(.2,1.35,.4,1) both;animation-delay:calc(var(--i) * 110ms + 80ms)}
.page .panel>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:clamp(.6rem,1.6vw,1.4rem)}
.p-a{grid-area:a;display:flex;flex-direction:column;justify-content:space-between;gap:1.5rem;padding:clamp(1.5rem,3.2vw,2.75rem)}
.p-b{grid-area:b;background:var(--green)}
.p-c{grid-area:c}
.p-d{grid-area:d;background:var(--lav)}
.hero-title{font:400 1em/1 var(--f-display)}
.today{display:block;font-size:clamp(2.6rem,6.4vw,5.4rem);line-height:1}
.mark{display:flex;align-items:flex-end;gap:.1em;margin-top:.1em}
.mark img{width:clamp(230px,31vw,410px);height:auto}
.bang{font-size:clamp(3rem,7.2vw,6.2rem);line-height:.9;color:var(--green-deep)}
.hero-lead{font:500 clamp(1.1rem,1.7vw,1.4rem)/1.65 var(--f-body)}
.hero-cta{display:flex;flex-wrap:wrap;gap:.7rem}
@keyframes pop{from{opacity:0;transform:scale(.93) translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.page .panel{animation:none}}

/* ---------- 소개 ---------- */
.intro-head{display:flex;align-items:center;justify-content:space-between;gap:2rem}
.intro-head .display{max-width:16em}
.intro-duo{width:clamp(130px,20vw,264px);height:auto;flex:none}
.intro-text{max-width:42rem;margin-top:1.5rem}
.about{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(1.5rem,4vw,3rem);align-items:center;margin-top:clamp(2.5rem,6vw,4.5rem)}
.about-fig img{width:100%}
.about-text h3{font:400 clamp(1.5rem,2.6vw,2rem)/1.3 var(--f-display);margin-bottom:.9rem}
.about-text p{line-height:1.9;max-width:38rem}

/* ---------- 섹션 헤더 ---------- */
.sec-head{display:flex;align-items:center;gap:1.25rem;margin-bottom:2rem}
.sticker{height:72px;width:auto;flex:none}
.sec-sub{margin-top:.35rem;color:#3d3d3d}

/* ---------- 캐릭터 카드 ---------- */
.cast-sec{background:var(--mint);border-top:var(--line)}
.cast{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.cast-card{display:flex;flex-direction:column;border:var(--line);background:#fff}
.cast-card>img{width:100%;border-bottom:var(--line)}
.cast-body{padding:.9rem 1rem 1.15rem}
.cast-body h3{font:400 1.3rem/1.3 var(--f-display);margin-bottom:.3rem}
.cast-body p{font-size:.93rem;line-height:1.65}

/* ---------- 브랜드 스토리 ---------- */
.brand{padding:clamp(3rem,7vw,5.5rem) 0;border-top:var(--line)}
.brand-yellow{background:var(--yellow)}
.brand-mist{background:var(--mist)}
.brand-blush{background:var(--blush)}
.brand-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(2rem,5vw,4.5rem);align-items:center}
.brand-flip .brand-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
.brand-flip .brand-art{order:-1}
.brand-title img{width:auto;max-width:min(100%,440px);height:auto}
.brand-text .t1{font:400 clamp(1.4rem,2.4vw,1.9rem)/1.4 var(--f-display);margin:1.4rem 0 .6rem}
.brand-text .t1 span{display:block;margin-top:.35rem;font:500 1rem/1.5 var(--f-body)}
.brand-text .t2{font-weight:700;margin-bottom:.9rem}
.brand-text .t3 p{margin:.8rem 0;line-height:1.9;max-width:38rem}
.tags{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.4rem 0 1.6rem}
.tags li{border:2px solid var(--ink);border-radius:999px;background:#fff;padding:.15rem .85rem;font-weight:500;font-size:.93rem}
.tags-lav li{background:var(--lav)}
.brand-art{display:grid;place-items:center;padding:clamp(1rem,3vw,2rem)}
.brand-art img{width:auto;max-width:100%;max-height:440px}

/* ---------- 툰 ---------- */
.toon-sec{background:#fff}
.rail-block+.rail-block{margin-top:2.75rem}
.rail-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.rail-head h3{font:400 clamp(1.35rem,2.4vw,1.7rem)/1.3 var(--f-display)}
.rail-ctrl{display:flex;gap:.5rem}
.rail-ctrl button{width:44px;height:44px;border:var(--line);border-radius:50%;background:#fff;font:400 1.6rem/1 var(--f-display);cursor:pointer;padding:0 0 .2rem}
.rail-ctrl button:hover{background:var(--yellow)}
.rail{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:1rem;scrollbar-color:var(--ink) var(--mist)}
.rail>li{flex:0 0 clamp(230px,26vw,330px);scroll-snap-align:start}
.toon,.item,.proj-img{display:block;width:100%;padding:0;border:var(--line);background:#fff;cursor:zoom-in}
.toon img,.item img,.proj-img img{width:100%;height:auto}
.rail .toon img{aspect-ratio:1/1;object-fit:contain;background:#fff}
.toon-foot{margin-top:2.25rem}

/* ---------- 브랜드 아이템 ---------- */
.items-sec{background:var(--lav-soft);border-top:var(--line)}
.items{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px 14px}
.item-name{margin-top:.6rem;font:400 1.1rem/1.35 var(--f-display)}

/* ---------- 프로젝트 ---------- */
.proj-sec{border-top:var(--line)}
.filters{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.75rem}
.chip-btn{border:var(--line);border-radius:999px;background:#fff;padding:.35rem 1.1rem;font:400 1.05rem/1.3 var(--f-display);cursor:pointer}
.chip-btn:hover{background:var(--yellow)}
.chip-btn[aria-pressed="true"]{background:var(--ink);color:#fff}
.projects{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.proj{display:flex;flex-direction:column;border:var(--line);background:#fff}
.proj-img{border:0;border-bottom:var(--line)}
.proj-body{padding:1rem 1.1rem 1.2rem}
.proj-body h3{font:400 1.3rem/1.35 var(--f-display)}
.proj-note{margin-top:.25rem;font-size:.95rem;color:#3d3d3d}
.chip{display:inline-block;margin-bottom:.55rem;padding:.05rem .75rem;border:2px solid var(--ink);border-radius:999px;font-size:.85rem;font-weight:700;line-height:1.6}
.chip-emoticon{background:var(--yellow)}
.chip-collab{background:var(--green)}
.chip-exhibition{background:var(--lav)}

/* ---------- 영상 ---------- */
.video-sec{background:var(--ink);color:#fff;border-top:var(--line)}
.video-grid{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.video-copy .display{color:var(--yellow)}
.video-copy p{margin:.8rem 0 1.6rem;font-size:1.2rem}
.video-copy .btn{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}
.video-copy .btn:hover{background:#fff;border-color:#fff}
.video-poster{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border-color:var(--yellow);background:#000;cursor:pointer}
.video-poster>img{width:100%;height:100%;object-fit:cover}
.video-poster iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.play{position:absolute;left:50%;top:50%;width:88px;height:88px;margin:-44px 0 0 -44px;display:grid;place-items:center;border:var(--line);border-radius:50%;background:var(--yellow);color:var(--ink);transition:transform .15s}
.video-poster:hover .play{transform:scale(1.08)}

/* ---------- 링크 ---------- */
.links-sec{background:var(--mint);border-top:var(--line)}
.links{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.link-tile{display:flex;flex-direction:column;justify-content:center;gap:.15rem;min-height:104px;padding:1rem 1.25rem;border:var(--line);background:#fff;text-decoration:none;transition:transform .15s,box-shadow .15s}
.link-tile strong{font:400 1.35rem/1.3 var(--f-display)}
.link-tile span{font-size:.95rem}
.tile-green{background:var(--green)}
.tile-yellow{background:var(--yellow)}
.link-tile:hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--ink)}

/* ---------- 문의 ---------- */
.contact-sec{background:var(--yellow);border-top:var(--line)}
.contact-head{margin-bottom:2.25rem}
.contact-head p{margin-top:1rem;font-size:1.15rem;font-weight:500}
.contact-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:14px;align-items:start}
.contact-form{padding:clamp(1.25rem,3vw,2rem)}
.contact-form h3,.box h3{font:400 1.45rem/1.3 var(--f-display);margin-bottom:1rem}
.contact-form label{display:block;margin-bottom:1rem;font-weight:700;font-size:.95rem}
.contact-form input,.contact-form select,.contact-form textarea{display:block;width:100%;margin-top:.35rem;padding:.7rem .85rem;border:var(--line);border-radius:0;background:#fff;font:400 1rem/1.5 var(--f-body);color:var(--ink)}
.contact-form textarea{resize:vertical;min-height:130px}
.contact-form .invalid{background:#fff1f1}
.form-note{margin-top:.9rem;font-size:.88rem;color:#3d3d3d}
.form-error{margin-top:.6rem;font-size:.92rem;font-weight:700;color:#a40d0d}
.contact-side{display:grid;gap:14px}
.box{padding:1.25rem 1.5rem 1.4rem}
.mail li{margin:.25rem 0;font-weight:700}
.shops{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.shops dt{font:400 1.1rem/1.4 var(--f-display);margin-bottom:.25rem}
.shops dd{padding:.15rem 0}

/* ---------- 푸터 ---------- */
.site-footer{background:var(--ink);color:#fff;border-top:var(--line)}
.foot{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 2.5rem;padding:2rem 0}
.foot-logo{height:30px;width:auto}
.f-info{display:grid;gap:.15rem;font-size:.92rem}
.f-info strong{display:inline-block;min-width:5.5em;color:var(--yellow);font-weight:700}
.copy{margin-left:auto;font-size:.88rem;opacity:.85}

/* ---------- 라이트박스 ---------- */
.lb{width:100%;height:100%;max-width:none;max-height:none;border:0;padding:0;background:transparent;color:#fff}
.lb[open]{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.5rem;padding:1rem}
.lb::backdrop{background:rgba(24,24,24,.94)}
.lb form{display:contents}
.lb figure{display:grid;justify-items:center;gap:.75rem;min-width:0}
.lb figure img{max-width:100%;max-height:78vh;width:auto;height:auto;background:#fff;border:3px solid #fff;animation:lbin .22s ease-out}
.lb figcaption{font:400 1.2rem/1.4 var(--f-display);text-align:center}
.lb-close{position:fixed;right:1rem;top:1rem;width:48px;height:48px;border:var(--line);border-radius:50%;background:var(--yellow);color:var(--ink);font:400 1.8rem/1 var(--f-display);cursor:pointer;padding:0 0 .2rem}
.lb-nav{width:48px;height:48px;border:var(--line);border-radius:50%;background:#fff;color:var(--ink);font:400 1.9rem/1 var(--f-display);cursor:pointer;padding:0 0 .25rem}
.lb-nav:hover,.lb-close:hover{background:var(--green)}
@keyframes lbin{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.lb figure img{animation:none}}

/* ---------- 반응형 ---------- */
@media (max-width:1000px){
  .cast{grid-template-columns:repeat(3,minmax(0,1fr))}
  .items{grid-template-columns:repeat(3,minmax(0,1fr))}
  .brand-grid,.brand-flip .brand-grid{grid-template-columns:minmax(0,1fr)}
  .brand-flip .brand-art{order:0}
  .about,.contact-grid,.video-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:860px){
  .menu-btn{display:flex}
  .nav{position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:var(--line);display:none}
  .nav.open{display:block}
  .nav ul{flex-direction:column;gap:0;padding:.5rem 1.25rem 1rem}
  .nav a{padding:.7rem .5rem;border-radius:0}
  .page{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;grid-template-areas:"a a" "b b" "c d"}
  .p-b{min-height:260px}
  .p-c,.p-d{min-height:200px}
}
@media (max-width:600px){
  body{font-size:1rem}
  .btn-sm{display:none}
  .cast,.items{grid-template-columns:repeat(2,minmax(0,1fr))}
  .intro-head{flex-direction:column-reverse;align-items:flex-start}
  .sticker{height:56px}
  .brand-title img{max-height:170px}
  .shops{grid-template-columns:1fr}
  .copy{margin-left:0}
  .lb[open]{grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto;align-content:center}
  .lb figure{grid-row:1}
  .lb-nav{position:fixed;bottom:1rem;z-index:2}
  .lb-prev{left:1rem}
  .lb-next{right:1rem}
}
