/* Discover Creator — 흰 매트 + 주황 한 색 (swift 레퍼런스의 결) */
@font-face{font-family:"Pretendard Variable";src:url(../fonts/PretendardVariable.woff2) format("woff2-variations");font-weight:45 920;font-display:swap}
:root{
  --bg:#f4efeb; --bg2:#ece5df; --card:#ffffff; --ink:#15171b; --ink2:#3d4148; --muted:#7a7570; --line:#e3dbd4;
  --orange:#ff6a1a; --orange-d:#d9500a; --green:#2e9d6a;
  --r-lg:28px; --r-md:18px; --shadow:0 18px 50px rgba(60,40,25,.10),0 2px 8px rgba(60,40,25,.05);
  --font:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Hiragino Sans","Noto Sans JP","Noto Sans KR",system-ui,sans-serif;
  --pad:clamp(16px,4vw,56px);
}
:lang(ja){--font:"Pretendard Variable",Pretendard,"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",-apple-system,system-ui,sans-serif}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased;overflow-x:hidden;line-height:1.5}
a{color:inherit;text-decoration:none}
button,select{font:inherit;color:inherit}
svg{display:block}
.num{font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.skip{position:absolute;left:-999px;top:8px;z-index:100;background:#fff;padding:8px 14px;border-radius:10px}
.skip:focus{left:12px}
:focus-visible{outline:3px solid var(--orange);outline-offset:3px;border-radius:10px}
.mw{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.1em;margin-bottom:-.1em}
.mw>span{display:inline-block;will-change:transform}
.kicker{font-size:12px;font-weight:600;letter-spacing:.32em;color:var(--muted);text-transform:uppercase}
.kicker.light{color:rgba(255,255,255,.55)}

/* ---------- nav ---------- */
.nav{position:fixed;z-index:40;left:50%;top:18px;transform:translateX(-50%);width:min(1240px,calc(100% - 32px));height:68px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 12px 0 28px;border-radius:999px;background:rgba(255,255,255,.82);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);box-shadow:0 10px 40px rgba(60,40,25,.10)}
.brand{display:inline-flex;align-items:flex-end;font-weight:800;font-size:22px;letter-spacing:-.04em;line-height:1;white-space:nowrap}
.brand .dot{width:7px;height:7px;border-radius:50%;background:var(--orange);margin-left:2px;margin-bottom:2px}
.brand.small{font-size:16px}.brand.small .dot{width:5px;height:5px}
.links{display:flex;gap:34px;font-size:15px;font-weight:500}
.links a{position:relative;padding:6px 0;color:var(--ink2)}
.links a:hover{color:var(--ink)}
.nav-right{display:flex;align-items:center;gap:10px}
.lang{position:relative;display:flex;background:#f2ede8;border-radius:999px;padding:4px}
.lang button{position:relative;z-index:1;border:0;background:none;font-size:13px;font-weight:700;width:40px;height:34px;border-radius:999px;cursor:pointer;color:var(--muted)}
.lang button[aria-pressed=true]{color:var(--ink)}
.lang-ind{position:absolute;top:4px;height:34px;border-radius:999px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.btn-dark{display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 22px;border-radius:999px;background:var(--ink);color:#fff;font-weight:600;font-size:15px;white-space:nowrap}
.btn-dark svg{width:18px;height:18px;fill:none;stroke:var(--orange);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.btn-dark:hover{background:#000}

/* ---------- hero ---------- */
.hero{position:relative;min-height:max(760px,100svh);overflow:hidden;display:flex;align-items:center;padding:120px var(--pad) 64px}
.hero-light{position:absolute;inset:0;pointer-events:none;background:
  radial-gradient(1200px 700px at 78% 30%,#fff7f1 0%,rgba(255,247,241,0) 60%),
  linear-gradient(115deg,rgba(255,255,255,0) 0 38%,rgba(255,255,255,.55) 38% 41%,rgba(255,255,255,0) 41% 52%,rgba(255,255,255,.4) 52% 54%,rgba(255,255,255,0) 54%),
  linear-gradient(180deg,#f7f2ee 0%,#efe7e1 100%)}
.hero-stage{position:absolute;right:-4vw;top:0;bottom:0;width:min(72vw,1180px)}
.hero-stage canvas{width:100%;height:100%;display:block;touch-action:pan-y}
.scene-tip{position:absolute;left:0;top:0;pointer-events:none;transform:translate(-50%,-100%);padding:9px 14px;border-radius:12px;background:var(--ink);color:#fff;font-size:14px;font-weight:600;white-space:nowrap;opacity:0;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.scene-tip small{display:block;font-weight:500;font-size:12px;color:rgba(255,255,255,.65)}
.scene-hint{position:absolute;right:calc(4vw + 32px);bottom:32px;font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px}
.scene-hint::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--orange)}
.scene-fallback{position:absolute;inset:12% 6% 12% 22%;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-content:center}
.scene-fallback img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:16px;box-shadow:var(--shadow)}
.hero-copy{position:relative;z-index:2;max-width:560px;pointer-events:none}
.hero-copy>*{pointer-events:auto}
.hero-title{font-size:clamp(46px,6.4vw,92px);font-weight:800;line-height:1.02;letter-spacing:-.045em;margin:22px 0 26px}
:lang(en) .hero-title{font-size:clamp(38px,4.9vw,74px)}
:lang(ja) .hero-title{font-size:clamp(30px,4.3vw,64px);letter-spacing:-.03em;line-height:1.1}
.hero-title .ln{display:block;white-space:nowrap}
.hero-title .accent{color:var(--orange)}
.hero-sub{font-size:clamp(16px,1.35vw,19px);color:var(--ink2);max-width:470px;line-height:1.6}
.finder{margin-top:34px;display:flex;align-items:center;gap:6px;background:#fff;border-radius:999px;padding:8px 8px 8px 22px;box-shadow:var(--shadow);max-width:520px}
.seg{flex:1;position:relative;display:flex;flex-direction:column;justify-content:center;min-width:0;padding-left:0;cursor:pointer}
.seg:first-child{padding-left:34px}
.seg-ic{position:absolute;left:0;top:50%;transform:translateY(-50%);width:22px;height:22px;fill:none;stroke:var(--orange);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.seg-label{font-size:11.5px;color:var(--muted);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seg select{appearance:none;-webkit-appearance:none;border:0;background:transparent;font-size:15px;font-weight:700;padding:2px 18px 2px 0;cursor:pointer;width:100%;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%237a7570' stroke-width='1.6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 2px center;background-size:12px}
.seg-div{width:1px;height:34px;background:var(--line);margin:0 12px}
.go{flex:none;width:52px;height:52px;border-radius:50%;border:0;background:var(--orange);display:flex;align-items:center;justify-content:center;cursor:pointer}
.go svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.go:hover{background:var(--orange-d)}
.stats{display:flex;gap:0;margin-top:44px}
.stats>div{padding:0 34px;border-left:1px solid #d8cfc7}
.stats>div:first-child{padding-left:0;border-left:0}
.stats dt{font-size:30px;font-weight:800;line-height:1}
.stats dd{font-size:13px;color:var(--muted);margin-top:8px}

/* ---------- section heads ---------- */
section{position:relative}
.sec-head{max-width:760px}
.sec-head h2{font-size:clamp(32px,4.2vw,58px);font-weight:800;letter-spacing:-.04em;line-height:1.1;margin-top:14px}
:lang(ja) .sec-head h2{letter-spacing:-.02em}
.sec-sub{font-size:17px;color:var(--ink2);margin-top:16px;max-width:600px}

/* ---------- services ---------- */
.services{padding:120px var(--pad) 120px;max-width:1360px;margin:0 auto}
.tabs{position:relative;display:inline-flex;gap:4px;margin-top:40px;background:#fff;border-radius:999px;padding:6px;box-shadow:0 6px 20px rgba(60,40,25,.06);max-width:100%;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{position:relative;z-index:1;border:0;background:none;height:42px;padding:0 20px;border-radius:999px;font-size:15px;font-weight:600;color:var(--muted);cursor:pointer;white-space:nowrap}
.tab[aria-selected=true]{color:#fff}
.tab .n{font-size:12px;opacity:.7;margin-left:6px}
.tab-ind{position:absolute;top:6px;height:42px;border-radius:999px;background:var(--ink)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:36px}
.card{position:relative;display:flex;flex-direction:column;background:var(--card);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow);cursor:pointer;opacity:0;outline:none}
.card:hover .card-img img{transform:scale(1.04)}
.card-img{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--c-paper,#eee)}
.card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.chip{position:absolute;left:16px;top:16px;display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.92);color:var(--ink);font-size:12.5px;font-weight:700;backdrop-filter:blur(8px)}
.chip i{width:7px;height:7px;border-radius:50%;background:var(--green)}
.chip.dev i{background:var(--orange)}
.chip.research i{background:transparent;box-shadow:inset 0 0 0 2px var(--ink2)} /* 연구중: 색이 아니라 모양(빈 원)으로도 갈린다 */
.card-body{padding:22px 24px 24px;display:flex;flex-direction:column;gap:10px;flex:1}
.card-cat{font-size:12px;font-weight:700;letter-spacing:.14em;color:var(--c-base);text-transform:uppercase}
.card-name{font-size:24px;font-weight:800;letter-spacing:-.03em}
.card-tag{font-size:15px;color:var(--ink2);line-height:1.5}
.card-plat{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto;padding-top:10px}
.card-plat span{font-size:12px;font-weight:600;color:var(--muted);background:#f4efeb;border-radius:8px;padding:4px 9px}
.card-actions{display:flex;gap:8px;margin-top:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 16px;border-radius:999px;font-size:14px;font-weight:700;border:0;cursor:pointer;white-space:nowrap}
.btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.btn.primary{background:var(--ink);color:#fff}
.btn.primary:hover{background:#000}
.btn.ghost{background:#f4efeb;color:var(--ink)}
.btn.ghost:hover{background:#ebe3dc}
.empty{margin-top:30px;color:var(--muted)}

/* ---------- studio (sticky, scroll-driven) ---------- */
.studio{height:340vh;background:linear-gradient(180deg,var(--bg) 0%,#efe8e2 100%)}
.studio-pin{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;justify-content:center;padding:100px var(--pad) 48px;max-width:1360px;margin:0 auto}
.morph-wrap{height:132px;display:flex;align-items:center;justify-content:center;margin:36px 0 24px}
.morph{height:96px;border-radius:48px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;font-size:clamp(26px,3.4vw,44px);font-weight:800;letter-spacing:-.03em;box-shadow:0 22px 50px rgba(20,20,25,.25)}
.steps{list-style:none;display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.steps li{background:rgba(255,255,255,.7);border-radius:var(--r-md);padding:18px 18px 20px;transition:none;min-height:150px}
.steps .k{width:34px;height:34px;border-radius:11px;background:#ece5df;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px}
.steps h3{font-size:18px;font-weight:800;margin-top:14px;letter-spacing:-.02em}
.steps p{font-size:13.5px;color:var(--ink2);margin-top:6px;line-height:1.5}
.studio-bar{height:4px;border-radius:2px;background:#e3dbd4;margin-top:28px;overflow:hidden}
.studio-bar i{display:block;height:100%;width:0;background:var(--orange)}

/* ---------- principles ---------- */
.principles{height:260vh;background:var(--ink);color:#fff}
.pr-pin{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;justify-content:center;padding:100px var(--pad) 60px;max-width:1360px;margin:0 auto}
.principles .kicker{color:rgba(255,255,255,.5)}
.pr-words{position:relative;display:flex;flex-wrap:wrap;gap:clamp(18px,4vw,64px);margin-top:64px;padding-top:30px}
.pr-word{font-size:clamp(40px,7vw,104px);font-weight:800;letter-spacing:-.05em;line-height:1;color:rgba(255,255,255,.18)}
:lang(ja) .pr-word{letter-spacing:-.02em;font-size:clamp(34px,5.6vw,84px)}
.pr-dot{position:absolute;left:0;top:0;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:var(--orange)}
.pr-desc{margin-top:46px;font-size:clamp(18px,1.8vw,24px);color:rgba(255,255,255,.78);min-height:3em;max-width:720px}

/* ---------- contact ---------- */
.contact{padding:120px var(--pad) 80px;max-width:1360px;margin:0 auto}
.contact-card{position:relative;background:var(--ink);color:#fff;border-radius:40px;padding:clamp(36px,6vw,84px);overflow:hidden}
.contact-card::after{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;background:var(--orange);opacity:.95}
.contact-card>*{position:relative;z-index:1}
.contact-card h2{font-size:clamp(34px,4.6vw,64px);font-weight:800;letter-spacing:-.04em;line-height:1.08;margin-top:14px;max-width:820px}
.contact-sub{font-size:18px;color:rgba(255,255,255,.72);margin-top:18px;max-width:560px}
.contact-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:36px}
.contact-actions a{display:inline-flex;align-items:center;gap:10px;height:54px;padding:0 24px;border-radius:999px;background:#fff;color:var(--ink);font-weight:700;font-size:16px}
.contact-actions a:first-child{background:var(--orange);color:#fff}
.contact-actions a svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.mail{display:inline-block;margin-top:28px;font-size:15px;color:rgba(255,255,255,.6);border-bottom:1px solid rgba(255,255,255,.25)}
.mail:hover{color:#fff}

.foot{display:flex;flex-wrap:wrap;gap:12px 28px;align-items:center;padding:28px var(--pad) 44px;max-width:1360px;margin:0 auto;font-size:13px;color:var(--muted)}
.foot-note{margin-left:auto}

/* ---------- detail layer: flood → contract → sheet ---------- */
.layer{position:fixed;inset:0;z-index:60}
.layer[hidden]{display:none}
.dim{position:absolute;inset:0;background:rgba(20,18,16,.5);opacity:0}
.flood{position:absolute;inset:0;background:var(--ink)}
.sheet{position:absolute;left:50%;top:50%;width:min(1040px,calc(100% - 32px));max-height:calc(100svh - 48px);transform:translate(-50%,-50%);border-radius:32px;background:#fff;overflow:auto;overscroll-behavior:contain;opacity:0;box-shadow:0 40px 100px rgba(0,0,0,.3)}
.sh-hero{position:relative;display:grid;grid-template-columns:1.1fr 1fr;min-height:320px;background:var(--c-paper);color:var(--c-ink)}
.sh-img{position:relative;overflow:hidden}
.sh-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sh-copy{padding:44px 40px 36px;display:flex;flex-direction:column;gap:12px}
.sh-copy .card-cat{color:var(--c-accent)}
.sh-copy h3{font-size:clamp(30px,3.6vw,46px);font-weight:800;letter-spacing:-.04em;line-height:1.05}
.sh-copy .tagline{font-size:18px;font-weight:600;opacity:.85}
.sh-close{position:absolute;right:16px;top:16px;z-index:2;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.92);cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.sh-close svg{width:18px;height:18px;fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round}
.sh-body{padding:36px 40px 40px;display:grid;grid-template-columns:1.25fr 1fr;gap:36px}
.sh-body>:only-child{grid-column:1/-1;max-width:760px} /* 잰 숫자가 없는 서비스: 오른쪽을 비워 두지 않는다 */
.sh-body p.summary{font-size:17px;line-height:1.7;color:var(--ink2)}
.sh-meta{display:grid;grid-template-columns:auto 1fr;gap:10px 18px;margin-top:22px;font-size:14px}
.sh-meta dt{color:var(--muted);font-weight:600}
.sh-meta dd{font-weight:600}
.facts{display:grid;gap:10px}
.facts h4{font-size:13px;letter-spacing:.14em;color:var(--muted);text-transform:uppercase}
.fact{display:flex;align-items:baseline;gap:10px;background:#f6f2ee;border-radius:16px;padding:14px 18px}
.fact b{font-size:30px;font-weight:800;letter-spacing:-.03em;min-width:2.2em}
.fact span{font-size:14px;color:var(--ink2)}
.src{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.5}
.sh-gallery{display:flex;gap:12px;padding:0 40px;overflow-x:auto}
.sh-gallery img{height:200px;border-radius:16px;box-shadow:0 6px 18px rgba(0,0,0,.08);flex:none}
.sh-actions{display:flex;flex-wrap:wrap;gap:10px;padding:28px 40px 40px;align-items:center}
.sh-actions .note{font-size:13px;color:var(--muted);flex-basis:100%}
.noscript{padding:40px;text-align:center}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .links{display:none}
  .grid{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(3,1fr)}
  .steps li{min-height:0}
}
@media (max-width:860px){
  .hero{flex-direction:column;align-items:stretch;padding-top:110px;min-height:0}
  .hero-stage{position:relative;right:auto;width:calc(100% + 2*var(--pad));margin:0 calc(-1*var(--pad));height:min(92vw,520px);order:2}
  .hero-copy{order:1;max-width:none}
  .scene-hint{right:24px;bottom:12px}
  .stats{margin-top:32px}
  .stats>div{padding:0 18px}
  .sh-hero,.sh-body{grid-template-columns:1fr}
  .sh-img{min-height:220px}
  .foot-note{margin-left:0}
}
@media (max-width:640px){
  .nav{height:58px;padding:0 6px 0 18px;top:10px}
  .brand{font-size:18px}
  .btn-dark{height:42px;padding:0 14px}
  .btn-dark span{display:none}
  .lang button{width:34px;height:30px;font-size:12px}
  .lang-ind{height:30px}
  .grid{grid-template-columns:1fr}
  .finder{display:grid;grid-template-columns:1fr 1fr 46px;gap:10px;border-radius:26px;padding:12px 10px 12px 18px}
  .seg-div{display:none}
  .seg:first-child{padding-left:0}.seg-ic{display:none}
  .go{width:46px;height:46px}
  .stats dt{font-size:24px}
  .steps{grid-template-columns:1fr 1fr}
  .steps p{display:none}
  .studio{height:300vh}
  .morph{height:72px;border-radius:36px}
  .sh-copy,.sh-body,.sh-actions{padding-left:22px;padding-right:22px}
  .sh-gallery{padding:0 22px}
  .sh-gallery img{height:150px}
  .contact-card::after{width:240px;height:240px;right:-90px;top:-90px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .card-img img{transition:none}
}
