@font-face { font-family: "PretendardSub"; src: url("../fonts/Pretendard-Regular.subset.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PretendardSub"; src: url("../fonts/Pretendard-SemiBold.subset.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PretendardSub"; src: url("../fonts/Pretendard-Bold.subset.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #121417; --sub: #5d636e; --line: #e2e4e9; --bg: #ffffff; --bg2: #f5f5f7; --dark: #0b0b0d;
  --accent: #2f6df6; --wide: 1296px; --narrow: 980px; --pad: 72px; --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "PretendardSub", system-ui, sans-serif; color: var(--ink); background: var(--bg);
  line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(var(--wide), calc(100% - 2 * var(--pad))); margin: 0 auto; }
.wrap-n { width: min(var(--narrow), calc(100% - 2 * 32px)); margin: 0 auto; }
.sec { position: relative; padding: 140px 0; }
.sec-id { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--accent);
  border: 1px solid currentColor; border-radius: 99px; padding: 2px 10px; margin: 0 0 18px; white-space: nowrap; }
.ph { color: var(--sub); }
h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -.02em; }
.h-xl { font-size: clamp(44px, 6.4vw, 96px); font-weight: 700; }
.h-l { font-size: clamp(36px, 4.8vw, 72px); font-weight: 700; }
.h-m { font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; }
.h-s { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; }
.lede { font-size: clamp(18px, 1.6vw, 24px); color: var(--sub); max-width: 40em; }
.meta { font-size: 14px; color: var(--sub); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 99px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--ink); white-space: nowrap; }
.btn.fill { background: var(--ink); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.logo-ph { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px;
  border: 1.5px dashed currentColor; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }

.gnav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; display: flex; align-items: center;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px); transition: transform .35s ease; }
.gnav.hide { transform: translateY(-100%); }
.gnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gnav nav { display: flex; gap: 28px; font-size: 15px; }
.gnav nav a { text-decoration: none; white-space: nowrap; }

.loop { width: 100%; height: 100%; object-fit: cover; }
.pause { position: absolute; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(30,32,38,.62); color: #fff; font: 600 14px/1 "PretendardSub", sans-serif; }
.pause[aria-pressed="true"]::after { content: "▶"; }
.pause[aria-pressed="false"]::after { content: "Ⅱ"; }

.hscroll { display: grid; grid-auto-flow: column; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; }

.scrub { position: relative; height: var(--len, 240vh); }
.scrub-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scrub canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrub .step { position: absolute; max-width: 380px; opacity: 0; transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease; }
.scrub .step.on { opacity: 1; transform: none; }
.scrub-static { display: none; }
html:not(.rm) .scrub .step:not(.on) { pointer-events: none; }

.rm .gnav { transition: none; }
.rm .scrub { height: auto; }
.rm .scrub-stick { position: static; height: auto; overflow: visible; padding: 120px 0; }
.rm .scrub canvas { display: none; }
.rm .scrub-static { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(var(--wide), calc(100% - 2 * var(--pad))); margin: 0 auto 40px; }
.rm .scrub-static img { width: 100%; border-radius: 14px; }
.rm .scrub .step { position: static !important; opacity: 1; transform: none !important; max-width: none !important; text-align: left !important; margin: 0 auto 28px; width: min(var(--narrow), calc(100% - 64px)); }
.rm *, .rm *::before, .rm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .sec { padding: 88px 0; }
  .gnav nav { display: none; }
}

[data-gian]::after { content: "기획 가안"; display: inline-block; margin-left: .45em; padding: 0 .4em; vertical-align: .2em;
  font-size: 11px; font-weight: 600; line-height: 1.6; letter-spacing: 0; white-space: nowrap;
  color: currentColor; opacity: .62; border: 1px dashed currentColor; border-radius: 4px; }

.menu-btn { display: none; position: relative; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; width: 18px; height: 2px;
  border-radius: 2px; background: currentColor; transition: transform .25s ease, background-color .2s ease; }
.menu-btn span { left: 11px; top: 19px; }
.menu-btn span::before { left: 0; top: -6px; }
.menu-btn span::after { left: 0; top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .gnav .wrap { gap: 8px; }
  .gnav .logo-ph { margin-right: auto; }
  .gnav .btn-row { order: 2; }
  .gnav .menu-btn { order: 3; }
  .gnav .btn-row .btn { padding: 8px 14px; font-size: 14px; }
  .gnav.open { transform: none; }
  .gnav.open nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    padding: 4px 20px 12px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 28px rgba(18,20,23,.08); }
  .gnav.open nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .gnav.open nav a:last-child { border-bottom: 0; }
}
