:root {
  --ink: #171717;
  --paper: #f5f3ed;
  --white: #ffffff;
  --line: rgba(23, 23, 23, 0.18);
  --muted: #676761;
  --accent: #d4f527;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.home-scroll {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 104px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
  letter-spacing: -0.025em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.shell { width: min(100% - 44px, 1440px); margin: 0 auto; }
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { position: relative; z-index: 50; display: inline-flex; align-items: center; }
.brand img { display: block; width: 136px; height: auto; mix-blend-mode: multiply; }
.nav-actions { position: relative; z-index: 50; display: flex; align-items: center; gap: 18px; }
.contact-cta {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.025em;
  transition: background .2s ease, color .2s ease;
}
.contact-cta:hover { background: var(--ink); color: #fff; }
.menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: clamp(110px, 14vh, 160px) clamp(24px, 7vw, 112px) clamp(34px, 7vh, 70px);
  background: var(--paper);
  color: var(--ink);
  flex-direction: column;
  justify-content: center;
}
.menu.is-open { display: flex; }
.menu a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .08em 0 .14em;
  border-bottom: 1px solid var(--line);
  font-size: clamp(3.2rem, 7.4vw, 8rem);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.07em;
}
.menu a:first-child { border-top: 1px solid var(--line); }
.menu a::after { content: "↗"; font-size: .28em; font-weight: 500; letter-spacing: 0; transition: transform .25s ease; }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: translate(8px, -8px); }
.menu-toggle {
  position: relative;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  padding: 0;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 19px;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-toggle span:nth-child(1) { top: 23px; }
.menu-toggle span:nth-child(2) { top: 31px; }
.menu-toggle span:nth-child(3) { top: 39px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 31px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { top: 31px; transform: rotate(-45deg); }
body.menu-open { overflow: hidden; }

.hero { min-height: calc(100vh - 82px); display: grid; align-content: space-between; padding: 56px 0 34px; }
.eyebrow { margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-copy { margin: 10vh 0; }
.display {
  margin: 0;
  max-width: 1250px;
  font-size: clamp(3.25rem, 8.7vw, 9.2rem);
  font-weight: 650;
  line-height: .93;
  letter-spacing: -.075em;
}
.display span { color: var(--accent); }
.hero-foot { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px; }
.lead { max-width: 620px; margin: 0; font-size: clamp(1.08rem, 1.7vw, 1.55rem); line-height: 1.55; }
.scroll-note { justify-self: end; font-size: .75rem; letter-spacing: .14em; }

.liquid-hero { min-height: calc(100svh - 104px); padding: 0; display: block; }
.liquid-stage {
  position: relative;
  width: 100%;
  height: calc(100svh - 104px);
  margin: 0;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: none;
  transform-origin: 50% 60%;
}
#liquid-glass { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.liquid-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.replay-button {
  position: absolute;
  right: clamp(20px, 4vw, 62px);
  bottom: clamp(20px, 4vw, 48px);
  z-index: 2;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(10,10,10,.24);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
}

.showreel-hero { min-height: calc(100svh - 104px); background: #0a0a0a; }
.showreel-stage {
  position: relative;
  width: 100%;
  height: calc(100svh - 104px);
  min-height: 620px;
  overflow: hidden;
  background: #0a0a0a;
}
.showreel-canvas {
  --fit: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1080px;
  height: 830px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    #0a0a0a;
  background-size: 60px 60px;
  transform: translate(-50%, -50%) scale(var(--fit));
  transform-origin: 50% 50%;
}
.showreel-world { position: absolute; inset: 0; transform-origin: 50% 50%; }
.showreel-label {
  position: absolute;
  top: 42px;
  z-index: 20;
  color: rgba(255,255,255,.55);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
}
.showreel-label.label-left { left: 48px; }
.showreel-label.label-right { right: 48px; }

.folder {
  position: absolute;
  left: 390px;
  top: 500px;
  width: 300px;
  height: 210px;
  z-index: 12;
  transform-style: preserve-3d;
  perspective: 900px;
}
.folder-back, .folder-front { position: absolute; left: 0; right: 0; bottom: 0; }
.folder-back {
  height: 180px;
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 20px 20px 26px 26px;
  background: #202020;
  box-shadow: 0 24px 50px rgba(0,0,0,.48);
}
.folder-back::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -30px;
  width: 112px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.82);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #202020;
}
.folder-back span {
  position: absolute;
  left: 24px;
  top: 28px;
  color: rgba(255,255,255,.58);
  font-size: 13px;
  letter-spacing: .14em;
}
.folder-front {
  height: 148px;
  border: 2px solid #fff;
  border-radius: 18px 18px 26px 26px;
  background: #f2f0ea;
  transform-origin: 50% 100%;
  box-shadow: 0 18px 35px rgba(0,0,0,.34);
}
.folder-front::after {
  content: "05 FILES";
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: #0a0a0a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

.show-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 260px;
  height: 176px;
  z-index: 6;
  opacity: 0;
  transform-origin: 50% 100%;
}
.show-card-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 12px;
  background: #f2f0ea;
  color: #0a0a0a;
  box-shadow: 0 20px 45px rgba(0,0,0,.44);
}
.card-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid rgba(10,10,10,.25); font-size: 10px; letter-spacing: .12em; }
.show-card strong { display: block; margin-top: 14px; font-size: 24px; line-height: .88; letter-spacing: -.055em; }
.ui-lines { position: absolute; right: 18px; bottom: 20px; width: 92px; }
.ui-lines i { display: block; height: 5px; margin-top: 7px; background: #1a1a1a; }
.ui-lines i:nth-child(2) { width: 72%; }
.ui-lines i:nth-child(3) { width: 46%; }
.ui-grid { position: absolute; right: 18px; bottom: 18px; display: grid; grid-template-columns: repeat(2, 32px); gap: 6px; }
.ui-grid i { width: 32px; height: 25px; border: 1px solid #111; }
.ui-chart { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: end; gap: 5px; height: 58px; }
.ui-chart i { width: 9px; background: #111; }
.ui-chart i:nth-child(1) { height: 28%; }.ui-chart i:nth-child(2) { height: 55%; }.ui-chart i:nth-child(3) { height: 42%; }.ui-chart i:nth-child(4) { height: 78%; }.ui-chart i:nth-child(5) { height: 100%; }
.ui-product { position: absolute; right: 19px; bottom: 17px; width: 66px; height: 72px; border: 2px solid #111; border-radius: 50% 50% 14px 14px; }
.ui-profile { position: absolute; right: 18px; bottom: 21px; display: flex; align-items: center; gap: 8px; }
.ui-profile i { width: 42px; height: 42px; border: 2px solid #111; border-radius: 50%; }
.ui-profile span { width: 42px; height: 2px; background: #111; box-shadow: 0 8px 0 #111, 0 16px 0 #111; }

.selection {
  position: absolute;
  left: 188px;
  top: 285px;
  width: 704px;
  height: 222px;
  z-index: 18;
  transform-origin: 50% 50%;
}
.selection-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 12px 35px rgba(0,0,0,.52);
}
.selection-title span { font-size: 150px; font-weight: 700; line-height: 1; letter-spacing: -.08em; }
.selection-title em { margin-left: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 146px; font-weight: 600; line-height: 1; letter-spacing: -.075em; }
.selection-frame { position: absolute; inset: 0; border: 2px solid #fff; }
.handle { position: absolute; width: 11px; height: 11px; border: 2px solid #0a0a0a; background: #fff; transform: translate(-50%, -50%); }
.handle.tl { left: 0; top: 0; }.handle.tc { left: 50%; top: 0; }.handle.tr { left: 100%; top: 0; }
.handle.ml { left: 0; top: 50%; }.handle.mr { left: 100%; top: 50%; }
.handle.bl { left: 0; top: 100%; }.handle.bc { left: 50%; top: 100%; }.handle.br { left: 100%; top: 100%; }
.design-cursor { position: absolute; left: 0; top: 0; z-index: 22; width: 48px; height: 60px; overflow: visible; }
.design-cursor path { fill: #fff; stroke: #0a0a0a; stroke-width: 3px; stroke-linejoin: round; }
.showreel-caption {
  position: absolute;
  left: 50%;
  top: 565px;
  z-index: 20;
  min-width: 420px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-family: Pretendard, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
  transform: translateX(-50%);
}
.showreel-caption::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 5px; background: #fff; vertical-align: -.12em; animation: cursor-blink .6s steps(1) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }

.section { padding: clamp(88px, 11vw, 165px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 3fr; gap: 30px; margin-bottom: clamp(55px, 8vw, 110px); }
.section-title { margin: 0; font-size: clamp(2.25rem, 5vw, 5.6rem); font-weight: 600; line-height: 1; letter-spacing: -.06em; }
.section-copy { margin: 0; max-width: 780px; font-size: clamp(1.25rem, 2.2vw, 2.15rem); line-height: 1.45; }
.section-copy.small { font-size: clamp(1.05rem, 1.45vw, 1.35rem); color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.step { min-height: 330px; padding: 25px 26px 34px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.step + .step { padding-left: 26px; }
.step:last-child { border-right: 0; }
.step-no { font-size: .76rem; letter-spacing: .1em; }
.step h3 { margin: 0 0 15px; font-size: clamp(2rem, 4vw, 4.2rem); font-weight: 600; letter-spacing: -.06em; }
.step p { max-width: 350px; margin: 0; color: var(--muted); line-height: 1.7; }

.home .showreel-hero,
.home main > .section,
.home main > .statement {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.home .service-screen,
.home .explore-screen,
.home .statement .section {
  min-height: calc(100svh - 104px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.statement { background: #222222; color: var(--accent); }
.statement .section { border: 0; }
.statement-text { margin: 0; max-width: 1220px; font-size: clamp(2.5rem, 6.6vw, 7.2rem); line-height: 1.05; letter-spacing: -.065em; font-weight: 600; }

.link-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.25rem, 2vw, 2rem); }
.link-row:first-child { border-top: 1px solid var(--line); }
.link-row span:last-child { transition: transform .2s ease; }
.link-row:hover span:last-child { transform: translateX(8px); }

.page-hero { min-height: 64vh; display: grid; align-content: end; padding: 90px 0 60px; }
.page-kicker { margin: 0 0 28px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; }
.page-title { margin: 0; max-width: 1050px; font-size: clamp(3.6rem, 9vw, 9.4rem); line-height: .9; letter-spacing: -.075em; font-weight: 650; }
.page-intro { margin: 45px 0 0 auto; max-width: 650px; font-size: clamp(1.15rem, 1.8vw, 1.65rem); line-height: 1.55; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { min-height: 310px; padding: clamp(28px, 4vw, 58px); background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; }
.card-label { font-size: .76rem; letter-spacing: .12em; }
.card h2 { margin: 55px 0 16px; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.055em; font-weight: 600; }
.card p { margin: 0; max-width: 430px; color: var(--muted); line-height: 1.7; }

.process { counter-reset: process; }
.process-row { display: grid; grid-template-columns: 100px 1fr 1fr; gap: 30px; padding: 38px 0; border-top: 1px solid var(--line); }
.process-row::before { counter-increment: process; content: "0" counter(process); font-size: .78rem; letter-spacing: .12em; }
.process-row h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3.2rem); letter-spacing: -.05em; }
.process-row p { margin: 0; color: var(--muted); line-height: 1.7; }

.contact-panel { display: grid; grid-template-columns: 1.7fr 1fr; gap: 50px; padding: 65px 0 120px; }
.contact-panel h2 { margin: 0; font-size: clamp(3rem, 7vw, 7.5rem); line-height: .94; letter-spacing: -.07em; }
.contact-detail { border-top: 1px solid var(--ink); padding-top: 18px; }
.contact-detail p { color: var(--muted); line-height: 1.7; }
.preview-note { display: inline-block; margin-top: 28px; padding: 10px 14px; border: 1px solid var(--line); font-size: .78rem; }

.footer { border-top: 1px solid var(--line); padding: 34px 0 45px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 30px; }
.footer strong { font-size: 1.35rem; }
.footer-logo { display: block; width: 150px; height: auto; margin-bottom: 12px; mix-blend-mode: multiply; }
.footer p { margin: 8px 0 0; color: var(--muted); font-size: .83rem; line-height: 1.6; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  html.home-scroll {
    scroll-snap-type: y proximity;
    scroll-padding-top: 82px;
  }
  .shell { width: min(100% - 28px, 1440px); }
  .nav { min-height: 82px; gap: 12px; }
  .brand img { width: 105px; }
  .nav-actions { gap: 9px; }
  .contact-cta { min-height: 48px; padding: 0 17px; font-size: .82rem; }
  .menu-toggle { width: 48px; height: 48px; }
  .menu-toggle span { left: 14px; width: 20px; }
  .menu-toggle span:nth-child(1) { top: 17px; }
  .menu-toggle span:nth-child(2) { top: 23px; }
  .menu-toggle span:nth-child(3) { top: 29px; }
  body.menu-open .menu-toggle span:nth-child(1), body.menu-open .menu-toggle span:nth-child(3) { top: 23px; }
  .menu { padding: 105px 20px 28px; }
  .menu a { font-size: clamp(2.65rem, 14vw, 5.5rem); padding: .16em 0 .22em; }
  .hero { min-height: calc(100svh - 70px); }
  .hero-copy { margin: 12vh 0; }
  .hero-foot, .section-head, .contact-panel, .footer-grid { grid-template-columns: 1fr; }
  .scroll-note { justify-self: start; }
  .liquid-hero, .liquid-stage { min-height: calc(100svh - 82px); height: calc(100svh - 82px); }
  .showreel-hero { min-height: calc(100svh - 82px); }
  .showreel-stage { height: calc(100svh - 82px); min-height: 560px; }
  .home .service-screen,
  .home .explore-screen,
  .home .statement .section { min-height: calc(100svh - 82px); }
  .replay-button { right: 16px; bottom: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { min-height: 245px; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-2 { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 56px 1fr; }
  .process-row p { grid-column: 2; }
  .page-hero { min-height: 58vh; }
}

@media (max-width: 440px) {
  .brand img { width: 92px; }
  .contact-cta { min-height: 44px; padding: 0 13px; font-size: .72rem; }
  .menu-toggle { width: 44px; height: 44px; }
  .menu-toggle span { left: 13px; width: 18px; }
  .menu-toggle span:nth-child(1) { top: 15px; }
  .menu-toggle span:nth-child(2) { top: 21px; }
  .menu-toggle span:nth-child(3) { top: 27px; }
  body.menu-open .menu-toggle span:nth-child(1), body.menu-open .menu-toggle span:nth-child(3) { top: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
