/* ==========================================================================
   HUELAB 휴랩 — 페인트 브랜드 홈 (제안용 데모) · v2 REBUILD
   레퍼런스 SP SAMHWA(spsamhwa.com)를 "참고"가 아니라 "재현·능가" 목표로 실측 이식.

   실측(브라우저 직접)
   - 히어로: 100vh 풀스크린 Swiper 페이드 캐러셀, 다크 #111, 4+ 슬라이드, 오버레이 → 영상+이미지 4슬라이드로 재현
   - 섹션 수직 패딩 120px, 영문 디스플레이 Inter 700 64px/lh72/ls -1.28px(-0.02em), 국문 Pretendard 700
   - COLOR INSPIRATION(팔레트+색코드+에디토리얼 카피), BUSINESS AREA(넘버드 에디토리얼)
   - 시그니처 딥틸 #00393c · 크림 #f0eedf · 오렌지팝 #ff4e1c
   ========================================================================== */

:root {
  --teal: #00393c; --teal2: #0b5d5f; --teal-soft: #e4efee;
  --cream: #f0eedf; --paper: #faf8f2; --white: #fff;
  --ink: #111111; --ink2: #3a3a38; --muted: #706e66;
  --line: #e5e2d6; --line2: #d3cfc0;
  --orange: #ff4e1c; --orange-soft: #ffe9e2;
  --shell: 1320px; --gutter: clamp(20px, 5vw, 88px);
  --radius: 12px; --radius-lg: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --display: "Inter","Pretendard Variable",Pretendard,system-ui,sans-serif;
  --sans: "Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",system-ui,sans-serif;
  --mono: "Space Mono","IBM Plex Mono",Consolas,ui-monospace,monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); background: var(--white); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; } a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
img,svg,video { display: block; max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 400; background: var(--teal); color: #fff; padding: 12px 18px; border-radius: 10px; transition: top .2s var(--ease); }
.skip-link:focus { top: 16px; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
.en { font-family: var(--display); }

/* type scale */
.display { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: .98; letter-spacing: -.035em; }
.h-en { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.03em; }
.h-ko { font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.18; letter-spacing: -.03em; }
.eyebrow { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }

/* ---------- ribbon ---------- */
.demo-ribbon { position: relative; z-index: 200; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; background: var(--ink); color: #cfe6e2; font-size: 12px; padding: 8px 16px; text-align: center; }
.demo-ribbon b { color: #fff; letter-spacing: .06em; }

/* ---------- header ---------- */
.site-header { position: fixed; top: 33px; left: 0; right: 0; z-index: 100; transition: background .4s var(--ease), border-color .4s var(--ease), top .3s var(--ease); border-bottom: 1px solid transparent; color: #fff; }
.site-header.is-scrolled { position: fixed; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom-color: var(--line); color: var(--ink); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 34px; }
.nav a { font-size: 15px; font-weight: 600; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange); transition: width .3s var(--ease); }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-button { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px; border-radius: 999px; border: 1.5px solid transparent; font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: transform .2s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease); }
.btn svg { width: 17px; height: 17px; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal2); transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #e8420f; transform: translateY(-2px); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.btn-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-light:hover { background: #fff; color: var(--teal); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }
/* apple-style quiet text CTA with chevron */
.btn-text { height: auto; padding: 0; border: 0; background: transparent; color: #fff; gap: 6px; }
.btn-text .chev { transition: transform .25s var(--ease); }
.btn-text:hover .chev { transform: translateX(4px); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; transition: background .2s var(--ease); }
.icon-button:hover { background: currentColor; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-header.is-scrolled .icon-button:hover svg { stroke: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); transition: gap .2s var(--ease); }
.link-arrow:hover { gap: 13px; }

/* ==========================================================================
   HERO — 100vh fade carousel (video + images)
   ========================================================================== */
.hero { position: relative; height: 100svh; min-height: 640px; background: var(--ink); color: #fff; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide-media { position: absolute; inset: 0; overflow: hidden; }
.hero-slide-media img, .hero-slide-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.hero-slide.is-active .hero-slide-media img, .hero-slide.is-active .hero-slide-media video { transform: scale(1); }
.hero-slide-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,24,25,.55) 0%, rgba(8,24,25,.15) 38%, rgba(8,24,25,.9) 100%); }
.hero-slide-in { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(120px, 15vh, 200px); }
.hero-cat { display: inline-block; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #8FD6C8; margin-bottom: 22px; opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease) .15s, transform .7s var(--ease) .15s; }
.hero-h { margin-bottom: 22px; max-width: 15ch; }
.hero-h .line { display: block; overflow: hidden; }
.hero-h .line > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.hero-h .line:nth-child(2) > span { transition-delay: .08s; }
.hero-h .line:nth-child(3) > span { transition-delay: .16s; }
.hero-sub { max-width: 40ch; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.7; color: #e6f0ee; opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease) .35s, transform .7s var(--ease) .35s; }
.hero-slide.is-active .hero-cat, .hero-slide.is-active .hero-sub { opacity: 1; transform: none; }
.hero-slide.is-active .hero-h .line > span { transform: none; }

/* hero controls */
.hero-ui { position: absolute; z-index: 5; left: 0; right: 0; bottom: clamp(40px, 6vh, 70px); }
.hero-ui-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dot { position: relative; width: 46px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.25); border-radius: 3px; overflow: hidden; }
.hero-dot i { position: absolute; inset: 0; width: 0; background: #fff; border-radius: 3px; }
.hero-dot.is-active i { width: 100%; transition: width 6s linear; }
.hero-count { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: rgba(255,255,255,.85); }
.hero-count b { color: #fff; font-size: 16px; }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.15); color: #fff; display: grid; place-items: center; transition: background .2s var(--ease), border-color .2s var(--ease); }
.hero-arrow:hover { background: #fff; color: var(--teal); border-color: #fff; }
.hero-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero-scroll { position: absolute; right: var(--gutter); top: 42%; z-index: 5; display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); writing-mode: vertical-rl; }
.hero-scroll i { width: 1px; height: 52px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: scrolldown 2.2s var(--ease) infinite; }
@keyframes scrolldown { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* hashtag marquee */
.hero-tags { background: var(--orange); overflow: hidden; }
.marquee { display: flex; gap: 44px; white-space: nowrap; padding: 14px 0; animation: marquee 26s linear infinite; }
.hero-tags:hover .marquee { animation-play-state: paused; }
.marquee span { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .04em; color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Section / reveal primitives
   ========================================================================== */
.section { padding: clamp(76px, 10vw, 130px) 0; }
.section-head { max-width: 820px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.8; margin-top: 20px; max-width: 62ch; }

/* mask reveal for headings */
.mask { display: block; overflow: hidden; }
.mask > span { display: block; transform: translateY(108%); transition: transform .95s var(--ease-out); }
.mask.is-visible > span, .is-visible > .mask > span { transform: none; }
.mask.d1 > span { transition-delay: .07s; } .mask.d2 > span { transition-delay: .14s; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

.img-reveal { position: relative; overflow: hidden; }
.img-reveal img { transform: scale(1.18); transition: transform 1.3s var(--ease-out); }
.img-reveal.is-visible img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .mask > span, .img-reveal img, .hero-h .line > span, .hero-cat, .hero-sub { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee, .hero-scroll i::after, .hero-dot.is-active i { animation: none; }
}

/* ==========================================================================
   BRAND / MANIFESTO
   ========================================================================== */
.manifesto { background: var(--cream); }
.manifesto-lead { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.16; letter-spacing: -.03em; max-width: 20ch; }
.manifesto-lead .hl { color: var(--teal); }
.manifesto-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px,5vw,80px); align-items: end; margin-top: clamp(40px,5vw,64px); }
.manifesto-body p { color: var(--ink2); font-size: 1.05rem; line-height: 1.85; margin-bottom: 22px; }
.mission-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(30px,4vw,68px); margin-top: clamp(52px,6vw,84px); }
.mission-cell { padding-top: 28px; border-top: 1.5px solid var(--ink); }
.mission-cell .num { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.mission-cell h3 { font-family: var(--display); font-size: clamp(1.5rem,2.4vw,2.05rem); margin: 20px 0 6px; letter-spacing: -.025em; }
.mission-cell h3 .ko { display: block; font-family: var(--sans); font-size: .74em; font-weight: 600; color: var(--ink2); margin-top: 4px; }
.mission-cell p { color: var(--ink2); font-size: 14.5px; line-height: 1.72; margin-top: 12px; }

/* stats band */
.stats-band { background: var(--teal); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat { padding: 0 clamp(20px,3vw,44px); border-left: 1px solid rgba(255,255,255,.15); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem,6vw,4.6rem); letter-spacing: -.03em; line-height: 1; }
.stat .num .u { font-size: .34em; color: #8FD6C8; margin-left: 5px; font-weight: 600; }
.stat .lbl { display: block; margin-top: 16px; font-size: 14.5px; color: #a9cfca; font-weight: 500; }

/* ==========================================================================
   COLOR INSPIRATION (dark immersive)
   ========================================================================== */
.color-section { background: var(--ink); color: #fff; }
.color-section .eyebrow { color: #8FD6C8; }
.color-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(30px,4vw,48px); }
.color-head .section-head { margin-bottom: 0; }
.color-head .section-head p { color: #b9d4d0; }
.color-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px,4vw,44px); }
.color-tab { height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #cfe6e2; font-size: 14px; font-weight: 600; transition: all .2s var(--ease); }
.color-tab:hover { border-color: #fff; color: #fff; }
.color-tab.is-active { background: #fff; border-color: #fff; color: var(--ink); }
.palette { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px,4vw,56px); align-items: center; }
.palette-swatches { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.swatch { border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.05); transition: transform .35s var(--ease); }
.swatch:hover { transform: translateY(-6px); }
.swatch .chip { height: clamp(110px,15vw,190px); }
.swatch .meta { padding: 16px 18px; }
.swatch .meta b { display: block; font-family: var(--display); font-size: 15.5px; font-weight: 600; }
.swatch .meta code { font-family: var(--mono); font-size: 11.5px; color: #9fc0bb; letter-spacing: .02em; }
.palette-copy .p-name { font-family: var(--display); font-size: clamp(1.8rem,3.2vw,2.8rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; }
.palette-copy p { color: #c3dbd7; line-height: 1.85; font-size: 1.05rem; margin-bottom: 24px; }
.color-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.04); }
.color-note svg { width: 20px; height: 20px; stroke: #FFB877; fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 1px; }
.color-note p { font-size: 13px; color: #d7e6e3; line-height: 1.65; margin: 0; }
.color-note b { color: #FFB877; }

/* ==========================================================================
   PRODUCTS — numbered editorial (BUSINESS AREA)
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); padding-inline: clamp(12px, 1.6vw, 24px); }
.product-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); aspect-ratio: 4/3.5; }
.product-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.product-card:hover img { transform: scale(1.06); }
.product-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,22,24,.94) 4%, rgba(0,22,24,.25) 52%, rgba(0,22,24,.15)); }
.product-card .p-cat { position: absolute; top: clamp(18px,1.8vw,26px); left: clamp(18px,1.8vw,26px); z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; }
.product-card .p-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: clamp(20px,2vw,28px); color: #fff; }
.product-card .p-en { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8FD6C8; }
.product-card h3 { font-size: clamp(1.2rem,1.7vw,1.55rem); margin: 7px 0 10px; letter-spacing: -.02em; }
.product-card p { font-size: 13px; color: #cfe0dd; line-height: 1.6; margin-bottom: 14px; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .35s var(--ease), max-height .35s var(--ease); }
.product-card:hover p { opacity: 1; max-height: 76px; }
.product-card .p-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.eco-badge { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 7px; background: rgba(255,255,255,.15); color: #fff; white-space: nowrap; }
.eco-badge.cert { background: #8FD6C8; color: var(--teal); }

/* ==========================================================================
   시공 사례 — editorial gallery
   ========================================================================== */
.case-section { background: var(--paper); }
.case-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px,3vw,40px); }
.case-filter { height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink2); transition: all .2s var(--ease); }
.case-filter:hover { border-color: var(--teal); }
.case-filter.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.case-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(14px,2vw,24px); }
.case-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); cursor: pointer; grid-column: span 6; aspect-ratio: 16/10; }
.case-card:nth-child(3n+1) { grid-column: span 7; }
.case-card:nth-child(3n+2) { grid-column: span 5; }
.case-card:nth-child(3n) { grid-column: span 12; aspect-ratio: 21/8; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.case-card:hover img { transform: scale(1.05); }
.case-card .case-body { position: absolute; inset: auto 0 0 0; padding: clamp(20px,2.4vw,30px); background: linear-gradient(0deg, rgba(0,26,28,.92), rgba(0,26,28,.1) 70%, transparent); color: #fff; }
.case-card .case-cat { font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8FD6C8; }
.case-card h3 { font-size: clamp(1.1rem,1.7vw,1.5rem); margin: 8px 0 5px; letter-spacing: -.01em; }
.case-card .case-prod { font-size: 13px; color: #cfe0dd; }
.case-card .case-view { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.15); backdrop-filter: blur(6px); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.case-card:hover .case-view { opacity: 1; transform: scale(1); }
.case-card .case-view svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.case-empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 40px; }

/* ==========================================================================
   신규 지침 섹션 (애플·삼성 벤치마크)
   ========================================================================== */
/* ★ 진짜 100vw 전폭 — 화면 좌우 끝까지. 컨테이너(shell) 폭이 아니라 뷰포트 전체 폭. */
.fullbleed, .wide { width: 100vw; margin-left: calc(50% - 50vw); }

/* ⑤ word-stagger text animation */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; }
.words .w > i { display: inline-block; font-style: inherit; transform: translateY(110%); transition: transform .8s var(--ease-out); }
.words.is-visible .w > i { transform: none; }

/* ② FULL-BLEED IMAGE STATEMENT */
.statement { position: relative; min-height: 82vh; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--ink); }
.statement-bg { position: absolute; inset: -14% 0 -14% 0; z-index: 0; }
.statement-bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.statement-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,20,21,.82) 0%, rgba(6,20,21,.5) 45%, rgba(6,20,21,.15) 100%); }
.statement-in { position: relative; z-index: 2; padding-block: clamp(90px, 14vh, 180px); }
.statement .eyebrow { color: #8FD6C8; display: block; margin-bottom: 22px; }
.statement h2 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -.03em; max-width: 18ch; }
.statement p { margin-top: 26px; max-width: 46ch; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; color: #dbe8e5; }

/* ① MOUSE-REACTIVE INTERACTION CARDS */
.apps { background: var(--cream); }
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); perspective: 1200px; }
.app-card { position: relative; aspect-ratio: 4/5.2; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: transform .5s var(--ease); transform-style: preserve-3d; }
.app-card.tilting { transition: transform .08s linear; }
.app-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform .6s var(--ease-out); }
.app-card:hover img { transform: scale(1.14); }
.app-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,26,28,.92) 4%, rgba(0,26,28,.15) 55%, transparent); z-index: 1; }
.app-spot { position: absolute; inset: 0; z-index: 2; background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.22), transparent 62%); opacity: 0; transition: opacity .3s var(--ease); mix-blend-mode: soft-light; pointer-events: none; }
.app-card:hover .app-spot { opacity: 1; }
.app-body { position: absolute; inset: auto 0 0 0; z-index: 3; padding: clamp(20px, 2vw, 30px); color: #fff; transform: translateZ(40px); }
.app-body .n { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: #8FD6C8; }
.app-body h3 { font-size: clamp(1.2rem, 1.7vw, 1.55rem); margin: 8px 0 6px; letter-spacing: -.02em; }
.app-body p { font-size: 13px; color: #cfe0dd; line-height: 1.6; opacity: 0; max-height: 0; transition: opacity .35s var(--ease), max-height .35s var(--ease); }
.app-card:hover .app-body p { opacity: 1; max-height: 80px; }

/* ④ FULL-BLEED BENTO GRID */
.bento-section { background: var(--ink); color: #fff; overflow: hidden; }
.bento-section .eyebrow { color: #8FD6C8; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 230px); gap: clamp(12px, 1.2vw, 18px); padding-inline: clamp(12px, 1.6vw, 24px); }
.bento-cell { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #0b2224; }
.bento-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.bento-cell:hover img { transform: scale(1.07); }
.bento-cell .b-label { position: absolute; left: clamp(18px,1.6vw,26px); bottom: clamp(16px,1.4vw,22px); z-index: 2; }
.bento-cell .b-label .bt { font-family: var(--display); font-size: clamp(1.05rem,1.5vw,1.4rem); font-weight: 700; letter-spacing: -.02em; color: #fff; }
.bento-cell .b-label .bs { font-size: 12.5px; color: #a9cfca; margin-top: 3px; }
.bento-cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,20,22,.75), transparent 55%); }
.bento-cell.text { background: var(--teal); display: flex; flex-direction: column; justify-content: center; padding: clamp(24px,2.2vw,40px); }
.bento-cell.text::after { display: none; }
.bento-cell.text .bt-lg { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem,2.2vw,2rem); letter-spacing: -.025em; line-height: 1.12; }
.bento-cell.text p { margin-top: 12px; font-size: 14px; color: #c3dbd7; line-height: 1.6; }
.bento-cell.c-2x2 { grid-column: span 2; grid-row: span 2; }
.bento-cell.c-w { grid-column: span 2; }
.bento-cell.c-h { grid-row: span 2; }

/* ③ FULL-BLEED DRAG CAROUSEL (cases) */
.carousel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line2); background: #fff; color: var(--ink); display: grid; place-items: center; transition: all .2s var(--ease); }
.carousel-nav button:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.carousel-nav button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.case-viewport { overflow: hidden; padding: clamp(30px,4vw,48px) var(--gutter) 12px; cursor: grab; }
.case-viewport.dragging { cursor: grabbing; }
.case-track { display: flex; gap: clamp(14px, 1.6vw, 24px); transition: transform .55s var(--ease-out); will-change: transform; }
.case-track.dragging { transition: none; }
.case-slide { position: relative; flex: 0 0 clamp(270px, 32vw, 440px); aspect-ratio: 3/3.6; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); user-select: none; }
.case-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); pointer-events: none; }
.case-slide:hover img { transform: scale(1.05); }
.case-slide .case-body { position: absolute; inset: auto 0 0 0; padding: clamp(20px,2vw,28px); background: linear-gradient(0deg, rgba(0,26,28,.92), rgba(0,26,28,.1) 65%, transparent); color: #fff; }
.case-slide .case-cat { font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8FD6C8; }
.case-slide h3 { font-size: clamp(1.15rem,1.6vw,1.4rem); margin: 8px 0 5px; }
.case-slide .case-prod { font-size: 13px; color: #cfe0dd; }

@media (max-width: 1000px) {
  .apps-grid { grid-template-columns: repeat(2,1fr); }
  .bento { grid-template-columns: repeat(2,1fr); grid-auto-rows: clamp(150px,32vw,220px); }
  .bento-cell.c-2x2 { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
}
@media (max-width: 620px) {
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-cell.c-w, .bento-cell.c-2x2 { grid-column: span 2; }
  .statement h2 { font-size: clamp(1.8rem,7vw,2.6rem); }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,3vw,52px); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-row { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.contact-row:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(0,57,60,.4); }
.contact-row .ci-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; flex-shrink: 0; }
.contact-row .ci-ic svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 2; }
.contact-row .ci-lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.contact-row .ci-val { font-size: 18px; font-weight: 700; margin-top: 3px; }
.contact-row .ci-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(155deg, #063032, #002123); position: relative; min-height: 340px; display: grid; place-items: center; color: #cfe6e2; text-align: center; }
.contact-map .map-grid { position: absolute; left: 50%; top: 44%; transform: translate(-50%,-50%); width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(143,214,200,.16), transparent 62%); }
.contact-map .map-grid::before, .contact-map .map-grid::after { content: ""; position: absolute; inset: 0; margin: auto; border: 1px solid rgba(143,214,200,.2); border-radius: 50%; }
.contact-map .map-grid::before { width: 60%; height: 60%; }
.contact-map .map-grid::after { width: 30%; height: 30%; }
.contact-map .pin { position: relative; z-index: 2; }
.contact-map .pin svg { width: 34px; height: 34px; stroke: #8FD6C8; fill: none; stroke-width: 1.8; margin: 0 auto 14px; }
.contact-map .pin b { font-size: 17px; color: #fff; font-weight: 700; letter-spacing: -.01em; }
.contact-map .pin span { display: block; font-size: 13px; margin-top: 5px; color: #9fc0bb; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: #9a988f; padding: clamp(56px,7vw,90px) 0 34px; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: clamp(40px,5vw,60px); margin-bottom: clamp(40px,5vw,56px); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-cta h2 { font-family: var(--display); font-size: clamp(1.8rem,4vw,3.2rem); font-weight: 700; color: #fff; letter-spacing: -.03em; line-height: 1.05; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--display); font-size: 26px; font-weight: 800; color: #fff; }
.footer-grid > div > p { margin-top: 12px; font-size: 13px; line-height: 1.8; color: #7d7b73; }
.footer-grid strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b6960; margin-bottom: 14px; font-family: var(--display); }
.footer-grid a { display: block; font-size: 14px; color: #9a988f; padding: 5px 0; transition: color .18s var(--ease); }
.footer-grid a:hover { color: var(--orange); }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; line-height: 1.7; color: #6b6960; }
.footer-legal strong { color: #9a988f; }

/* ---------- toast / dialog ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%,20px); background: var(--ink); color: #fff; font-size: 13.5px; padding: 13px 22px; border-radius: 30px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 400; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(0,20,22,.72); backdrop-filter: blur(4px); }
.lightbox { width: min(1000px, 94vw); margin: auto; background: transparent; }
.lightbox img { width: 100%; border-radius: var(--radius-lg); }
.lightbox .lb-cap { color: #fff; margin-top: 16px; text-align: center; }
.lightbox .lb-cap h3 { font-size: 19px; }
.lightbox .lb-cap span { font-size: 13px; color: #cfe0dd; }
.lb-close { position: fixed; top: 24px; right: 28px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.3); color: #fff; font-size: 22px; z-index: 401; }
.search-dialog { width: min(660px, 92vw); margin: 12vh auto auto; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 40px 90px -40px rgba(0,0,0,.5); }
.search-shell { padding: clamp(22px,3vw,32px); }
.search-field { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border: 1.5px solid var(--line2); border-radius: 14px; background: var(--paper); }
.search-field:focus-within { border-color: var(--teal); }
.search-field svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-field input { flex: 1; border: 0; background: none; font-size: 16px; color: var(--ink); }
.search-field input:focus { outline: none; }
.search-field kbd { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--line); color: var(--muted); }
.search-summary { margin: 16px 4px; font-size: 13px; color: var(--muted); }
.search-results { display: flex; flex-direction: column; gap: 8px; max-height: 44vh; overflow-y: auto; }
.search-result { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; align-items: baseline; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.search-result:hover { border-color: var(--teal); transform: translateX(3px); }
.search-result span { font-family: var(--display); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.search-result strong { font-size: 15.5px; }
.search-result small { grid-column: 2; font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid currentColor; border-radius: 11px; background: transparent; gap: 5px; }
  .menu-button span { width: 18px; height: 1.8px; background: currentColor; }
  .manifesto-grid, .palette, .contact-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .case-card, .case-card:nth-child(3n), .case-card:nth-child(3n+1), .case-card:nth-child(3n+2) { grid-column: span 6; aspect-ratio: 4/3; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .palette-swatches { grid-template-columns: 1fr 1fr; }
  .case-card, .case-card:nth-child(n) { grid-column: span 12; aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
  .btn { width: 100%; }
  .color-head .btn { width: auto; }
  .hero-arrows { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
}

/* ---------- 관리자 (admin.html) ---------- */
.admin-body { background: var(--cream); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--teal); color: #a9cfca; padding: 26px 20px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.admin-brand { font-family: var(--display); color: #fff; font-weight: 800; font-size: 20px; }
.admin-brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .16em; color: #8FD6C8; margin-top: 5px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 13px; border: 0; border-radius: 10px; background: transparent; color: #a9cfca; font-size: 14px; font-weight: 600; text-align: left; transition: all .18s var(--ease); }
.admin-nav button b { font-family: var(--mono); font-size: 11px; color: #6ba39d; }
.admin-nav button.is-active { background: rgba(255,255,255,.12); color: #fff; }
.admin-nav button.is-active b { color: #8FD6C8; }
.admin-nav button:not(.is-active):hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-back { font-size: 13px; color: #8FD6C8; }
.admin-main { padding: 26px clamp(20px,3vw,40px) 60px; }
.admin-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.admin-top h1 { font-size: clamp(1.5rem,3vw,2rem); }
.admin-top p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
.admin-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.admin-stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.admin-stat strong { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 800; margin: 8px 0 2px; color: var(--teal); }
.admin-view { display: none; }
.admin-view.is-active { display: block; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.admin-card-head h2 { font-size: 15px; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.admin-table th, .admin-table td { text-align: left; padding: 13px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.admin-table th { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.admin-table tr:hover { background: var(--paper); }
.abadge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.abadge.on { background: var(--teal-soft); color: var(--teal); }
.abadge.off { background: var(--line); color: var(--muted); }
.row-btn { border: 1px solid var(--line2); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 8px; transition: all .16s var(--ease); }
.row-btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.row-btn.del { color: var(--orange); }
.row-btn.del:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.admin-panel { width: min(560px,94vw); margin: auto; border-radius: var(--radius-lg); background: #fff; padding: clamp(26px,3vw,36px); }
.admin-panel h2 { font-size: 1.4rem; margin-bottom: 20px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; font-family: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line2); border-radius: 10px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel-actions { display: flex; gap: 10px; margin-top: 8px; }
.admin-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%,18px); background: var(--ink); color: #fff; font-size: 13.5px; padding: 12px 20px; border-radius: 28px; opacity: 0; pointer-events: none; transition: opacity .24s var(--ease), transform .24s var(--ease); z-index: 400; }
.admin-toast.is-visible { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; flex: 1 1 100%; }
  .admin-nav button { width: auto; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
