:root {
  --ink: #16161d;
  --cream: #f4f1ea;
  --white: #ffffff;
  --muted: #5e5c63;
  --line: rgba(22, 22, 29, 0.14);
  --pink: #ec529f;
  --orange: #f8ab1e;
  --sky: #a6d9e2;
  --blush: #fad2db;
  --gutter: clamp(16px, 4.4vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Outfit', 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  --text: 'Inter', 'Pretendard Variable', Pretendard, system-ui, sans-serif;
}
.lang-ko { --display: 'Pretendard Variable', Pretendard, 'Outfit', system-ui, sans-serif; --text: 'Pretendard Variable', Pretendard, system-ui, sans-serif; }
.lang-ja { --display: 'Noto Sans JP', 'Outfit', system-ui, sans-serif; --text: 'Noto Sans JP', 'Inter', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.lang-ja { word-break: normal; line-break: strict; }
a { color: inherit; text-decoration: none; }
canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
section { position: relative; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 30px;
  padding: 26px var(--gutter);
  transition: background .4s var(--ease), transform .5s var(--ease), padding .4s var(--ease);
}
.site-header.scrolled { background: rgba(244, 241, 234, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding-block: 16px; }
.site-header.hide { transform: translateY(-100%); }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; letter-spacing: 0.2em; font-family: 'Outfit', sans-serif; }
.wm-top { font-weight: 600; font-size: 18px; }
.wm-rule { height: 1px; background: currentColor; margin: 5px 0 4px; }
.wm-bottom { font-weight: 300; font-size: 11px; letter-spacing: 0.66em; text-align: center; padding-left: .3em; }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 15px; }
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.lang { display: flex; gap: 12px; font-size: 13px; }
.lang a { color: var(--muted); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.lang a[aria-current] { color: var(--ink); border-color: var(--ink); }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.menu-btn span:first-child { top: 19px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 40; background: var(--cream); padding: 120px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; font-family: var(--display); font-size: clamp(36px, 10vw, 56px); font-weight: 300; letter-spacing: -0.02em; }
.mobile-menu .lang { font-size: 16px; }

/* ---------- Type ---------- */
.display, .hero-title, .section-title, .film-title { font-family: var(--display); font-weight: 300; letter-spacing: -0.02em; }
.lang-ko .display, .lang-ko .hero-title, .lang-ko .section-title, .lang-ko .film-title { font-weight: 300; letter-spacing: -0.04em; }
.lang-ja .display, .lang-ja .hero-title, .lang-ja .section-title, .lang-ja .film-title { font-weight: 300; letter-spacing: -0.03em; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line > span { display: inline-block; }
/* Storio-style staggered heading: every second line is indented */
.stagger .line:nth-child(2) { padding-left: 0.9em; }
.hero-title.stagger .line:nth-child(2) { padding-left: 2.2em; }
.section-title { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.1; text-align: center; }
.section-title.left { text-align: left; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-lines .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js .reveal-lines.in .line > span { transform: none; }
.js .reveal-lines.in .line:nth-child(2) > span { transition-delay: .1s; }
.js .reveal-lines.in .line:nth-child(3) > span { transition-delay: .2s; }

/* ---------- Button ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 9px 9px 9px 24px; border-radius: 99px; background: var(--ink); color: var(--white); font-size: 15px; font-weight: 500; transition: transform .4s var(--ease); }
.arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; transition: transform .5s var(--ease), background .3s; }
.arrow svg { width: 20px; height: 20px; }
.btn:hover .arrow { transform: translateX(4px); background: rgba(255,255,255,.12); }
.center { text-align: center; }

/* ---------- Gradient blobs ---------- */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero .blobs { -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent); mask-image: linear-gradient(180deg, #000 65%, transparent); }
.blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .85; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, -8%) scale(1.12); }
  100% { transform: translate(-6%, 6%) scale(.92); }
}
.blobs-hero i:nth-child(1) { width: 34vw; height: 34vw; left: 18%; top: 12%; background: #ff9aa8; }
.blobs-hero i:nth-child(2) { width: 22vw; height: 22vw; left: 44%; top: 30%; background: var(--orange); animation-duration: 14s; animation-delay: -4s; }
.blobs-hero i:nth-child(3) { width: 40vw; height: 40vw; right: -6%; top: 6%; background: #ffb38a; animation-duration: 22s; animation-delay: -8s; opacity: .7; }
.blobs-hero i:nth-child(4) { width: 26vw; height: 26vw; left: 52%; top: 55%; background: var(--pink); opacity: .45; animation-duration: 16s; animation-delay: -2s; }
.blobs-left i:nth-child(1) { width: 26vw; height: 26vw; left: -10vw; top: 15%; background: #f572e6; }
.blobs-left i:nth-child(2) { width: 20vw; height: 20vw; left: -4vw; top: 42%; background: #ffe066; animation-delay: -6s; }
.blobs-left i:nth-child(3) { width: 12vw; height: 12vw; left: 6vw; top: 35%; background: #b6f0b0; animation-delay: -3s; opacity: .6; }
.blobs-left i:nth-child(4) { display: none; }
.blobs-right i:nth-child(1) { width: 36vw; height: 36vw; right: -12vw; top: -10%; background: #e95cff; }
.blobs-right i:nth-child(2) { width: 26vw; height: 26vw; right: -4vw; top: 30%; background: #6a5cff; animation-delay: -5s; }
.blobs-right i:nth-child(3) { width: 14vw; height: 14vw; right: 22vw; top: 60%; background: #8af2a0; opacity: .6; animation-delay: -9s; }
.blobs-right i:nth-child(4) { display: none; }
.blobs-cyan i:nth-child(1) { width: 30vw; height: 30vw; left: -12vw; top: -8%; background: #19f2e0; }
.blobs-cyan i:nth-child(2) { width: 24vw; height: 24vw; left: -2vw; top: 25%; background: #ffe066; animation-delay: -7s; }
.blobs-cyan i:nth-child(3), .blobs-cyan i:nth-child(4) { display: none; }
.blobs-green i:nth-child(1) { width: 60%; height: 160%; left: 30%; top: -30%; background: #b8ff8a; filter: blur(60px); }
.blobs-green i:nth-child(2) { width: 40%; height: 120%; right: -10%; top: -10%; background: #e4ffd6; animation-delay: -6s; }
.blobs-green i:nth-child(3), .blobs-green i:nth-child(4) { display: none; }
@media (prefers-reduced-motion: reduce) {
  .blobs i, .marquee-track { animation: none !important; }
  .js .reveal, .js .reveal-lines .line > span { transform: none !important; opacity: 1 !important; transition: none !important; }
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding: clamp(130px, 14vw, 180px) var(--gutter) clamp(60px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; }
.hero-title { position: relative; z-index: 1; font-size: clamp(56px, 10.4vw, 176px); line-height: 1.02; }
.lang-ko .hero-title, .lang-ja .hero-title { font-size: clamp(50px, 9vw, 150px); line-height: 1.12; }
.hero-intro { position: relative; z-index: 1; align-self: flex-end; max-width: 620px; margin-top: clamp(-120px, -6vw, -20px); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; }

/* ---------- Brands ---------- */
.brands { padding: clamp(60px, 8vw, 110px) var(--gutter) clamp(90px, 11vw, 150px); text-align: center; }
.brand-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: clamp(32px, 7vw, 110px); margin: 48px 0 40px; }
.brand-logo { display: inline-flex; align-items: center; gap: 12px; transition: transform .4s var(--ease); }
.brand-logo:hover { transform: translateY(-4px); }
.logo50 { display: inline-flex; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: clamp(44px, 5vw, 72px); letter-spacing: -0.01em; line-height: 1; }
.logo50 b { font-weight: 800; -webkit-text-stroke: clamp(3px, .45vw, 6px) var(--ink); paint-order: stroke fill; }
.logo50 b:nth-child(1), .logo50 b:nth-child(5) { color: var(--pink); }
.logo50 b:nth-child(2), .logo50 b:nth-child(6) { color: var(--orange); }
.logo50 b:nth-child(3) { color: var(--sky); }
.logo50 b:nth-child(4) { color: var(--blush); }
.flippy-mark { font-family: 'Outfit', sans-serif; font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -0.02em; }
.flippy-blob { display: inline-flex; }
.flippy-blob i { width: .62em; height: .62em; border-radius: 46% 54% 50% 50%; border: 2px solid var(--ink); margin-left: -.18em; background: var(--sky); animation: bob 3s ease-in-out infinite; }
.flippy-blob i:nth-child(2) { background: var(--pink); animation-delay: -.6s; }
.flippy-blob i:nth-child(3) { background: var(--orange); animation-delay: -1.2s; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-6deg); } }
.brands-copy { max-width: 640px; margin: 0 auto 36px; color: #2c2b31; font-size: 17px; }

/* ---------- Film (full-bleed) ---------- */
.film { height: min(100svh, 980px); min-height: 560px; overflow: hidden; background: #0d0d12; color: var(--white); }
.film-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.film-stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 60% at 25% 30%, rgba(236, 82, 159, .35), transparent 65%), radial-gradient(45% 55% at 80% 75%, rgba(248, 171, 30, .28), transparent 65%), radial-gradient(40% 40% at 85% 15%, rgba(166, 217, 226, .2), transparent 65%); }
.film-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,18,0) 45%, rgba(13,13,18,.85)); }
.flipbook { position: relative; width: min(44vw, 560px); aspect-ratio: 3 / 2; perspective: 1600px; transform: translateY(-18%) rotateX(14deg) rotateZ(-4deg); transform-style: preserve-3d; }
.flipbook canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 6px 14px 14px 6px; }
.fb-page { transform-origin: 0 50%; backface-visibility: hidden; }
.fb-stack { position: absolute; inset: 6px -6px -8px 6px; border-radius: 6px 14px 14px 6px; background: repeating-linear-gradient(180deg, #f5f2ec 0 2px, #d9d4cc 2px 3px); box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); }
.fb-spine { position: absolute; left: -10px; top: -2px; bottom: -6px; width: 22px; border-radius: 6px; background: linear-gradient(90deg, #1b1b1b, #3a3a3a 60%, #1b1b1b); }
.film-overlay { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 6vw, 80px); z-index: 2; }
.kicker { color: var(--orange); font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.film-title { font-size: clamp(38px, 5.4vw, 84px); line-height: 1.08; font-weight: 400; }
.lang-ko .film-title, .lang-ja .film-title { font-weight: 400; }
.fb-counter { position: absolute; right: var(--gutter); bottom: clamp(40px, 6vw, 80px); z-index: 2; color: rgba(255,255,255,.65); font-size: 13px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.fb-num { color: var(--white); }

/* ---------- Text blocks ---------- */
.block { padding: clamp(90px, 11vw, 170px) var(--gutter); overflow: hidden; }
.block-dark { background: var(--ink); color: var(--white); }
.block-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); max-width: 1240px; margin: 0 auto; }
.block .display { font-size: clamp(40px, 4.5vw, 76px); line-height: 1.06; padding-left: clamp(0px, 4vw, 70px); }
.block-dark .display { padding-left: clamp(0px, 8vw, 140px); }
.block-body { padding-top: clamp(0px, 9vw, 150px); max-width: 520px; }
.block-dark .block-body { padding-top: clamp(0px, 4vw, 60px); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li > span { font-size: 13px; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.steps h3, .biz h3, .team h3 { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; }
.steps p, .biz p, .team p { color: #3b3a41; font-size: 15px; }

.patent { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); }
.patent strong { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; }
.patent span { display: block; color: rgba(255,255,255,.85); }
.patent small { display: block; margin-top: 10px; color: rgba(255,255,255,.55); font-size: 13px; }

.biz { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; margin: 48px 0 0; }
.stats dt { font-family: 'Outfit', sans-serif; font-weight: 200; font-size: clamp(56px, 6vw, 96px); line-height: 1; letter-spacing: -0.04em; }
.stats dd { margin: 10px 0 0; color: rgba(255,255,255,.7); font-size: 14px; }
.note { margin-top: 32px; font-size: 12px; color: rgba(255,255,255,.45); }

.team { list-style: none; margin: 0; padding: 0; }
.team li { padding: 22px 0; border-top: 1px solid var(--line); }
.team li:last-child { border-bottom: 1px solid var(--line); }
.role { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* ---------- Partners ---------- */
.partners { padding: clamp(70px, 8vw, 120px) 0; overflow: hidden; }
.marquee { margin-top: 40px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 48px; animation: marquee 46s linear infinite; font-family: 'Outfit', sans-serif; font-weight: 300; font-size: clamp(26px, 3vw, 44px); white-space: nowrap; }
.marquee-track i { font-style: normal; font-size: .6em; color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Record ---------- */
.record { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(90px, 10vw, 140px); max-width: 1368px; margin: 0 auto; }
.timeline, .press { list-style: none; margin: 32px 0 0; padding: 0; }
.timeline li, .press li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline time { font-variant-numeric: tabular-nums; color: var(--muted); }
.press li { grid-template-columns: 1fr; gap: 4px; }
.press-meta { font-size: 13px; color: var(--muted); }
.press-title { font-family: var(--display); font-size: 21px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.35; }

/* ---------- CTA ---------- */
.cta-wrap { padding: 0 var(--gutter) clamp(70px, 8vw, 110px); }
.cta-card { position: relative; overflow: hidden; max-width: 1310px; margin: 0 auto; background: var(--white); border-radius: 10px; padding: clamp(48px, 6vw, 84px) var(--gutter); text-align: center; }
.cta-card > *:not(.blobs) { position: relative; z-index: 1; }
.cta-card > p { max-width: 560px; margin: 18px auto 32px; }
.contact-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 40px; margin-bottom: 36px; font-weight: 500; }
.contact-list a { display: flex; flex-direction: column; gap: 2px; }
.contact-list span { font-size: 12px; color: var(--muted); font-weight: 400; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); padding: 56px var(--gutter) 48px; font-size: 13px; }
.footer-top, .footer-bottom { max-width: 1310px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-top { align-items: center; margin-bottom: 32px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a, .legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; max-width: 820px; justify-content: flex-end; color: var(--muted); }
.legal div { display: flex; gap: 6px; }
.legal dt { color: var(--ink); }
.legal dd { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav, .site-header > .lang { display: none; }
  .menu-btn { display: block; }
  .block-inner, .record { grid-template-columns: 1fr; }
  .block .display, .block-dark .display { padding-left: 0; }
  .block-body, .block-dark .block-body { padding-top: 0; }
  .hero-intro { margin-top: 48px; align-self: flex-start; }
  .flipbook { width: 78vw; }
  .legal { justify-content: flex-start; }
  .blobs-hero i { filter: blur(50px); }
  .blobs-hero i:nth-child(1) { width: 70vw; height: 70vw; left: 0; top: 18%; }
  .blobs-hero i:nth-child(3) { width: 70vw; height: 70vw; }
  .blobs-left i:nth-child(1), .blobs-cyan i:nth-child(1) { width: 60vw; height: 60vw; }
  .blobs-right i:nth-child(1) { width: 70vw; height: 70vw; }
}
@media (max-width: 560px) {
  .biz, .stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .biz { grid-template-columns: 1fr; }
  .hero-title.stagger .line:nth-child(2) { padding-left: 1em; }
  .timeline li { grid-template-columns: 80px 1fr; }
  .film { min-height: 520px; height: 82svh; }
  .fb-counter { display: none; }
}
