﻿/* ==========================================================================
   Meta Live · AI × 3D Creative Studio
   tokens → primitives → signature system → sections → motion → a11y
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Sage Green · the signature. --sage is the logo's exact green, so the
     mark and the interface read as one colour. */
  --sage:       #869d7d;
  --sage-glow:  #a8bf9d;
  --sage-deep:  #4e6047;
  --sage-dark:  #38452f;

  /* canvas, tinted toward the footage grade. never pure black or white */
  --black:      #0d0f0d;
  --black-soft: #141713;
  --ink:        #1a1d19;
  --paper:      #f2f3ef;
  --paper-deep: #e7e9e1;

  /* text roles, contrast-checked against their own canvas */
  --on-dark:        #f2f3ef;
  --on-dark-soft:   #a9b0a5;   /* 7.4:1 on --black */
  --on-paper:       #1a1d19;
  --on-paper-soft:  #5b6158;   /* 6.2:1 on --paper */
  --on-sage:        #f2f3ef;
  --on-sage-soft:   #d3dcc9;   /* 6.0:1 on --sage-deep */

  /* hairlines, and the stronger value interactive borders need */
  --line-dark:   rgba(26, 29, 25, .16);
  --line-light:  rgba(242, 243, 239, .15);
  --edge-dark:   rgba(26, 29, 25, .42);
  --edge-light:  rgba(242, 243, 239, .38);

  /* layout scale */
  --gutter:  clamp(20px, 4vw, 56px);
  --w-wide:  1280px;
  --w-std:   1160px;
  --sec-pad: clamp(84px, 10vw, 136px);
  --nav-h:   72px;

  /* the type trio */
  --f-display: "Archivo", system-ui, sans-serif;
  --f-body:    "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* two easing curves, used everywhere */
  --ease:  cubic-bezier(.22, .61, .36, 1);
  --ease2: cubic-bezier(.65, .02, .2, 1);
}

/* Registered so they can be animated and used in calc().
   Unregistered custom properties jump instead of ramping. */
@property --k { syntax: "<number>"; initial-value: 0; inherits: true; }
@property --p { syntax: "<number>"; initial-value: 0; inherits: true; }

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;   /* fallback first */
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--black);
  color: var(--on-dark);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  /* Korean wraps at spaces, not mid-word. without this, 제작합니다 splits. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 2px;
}

[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: fixed;
  left: 50%; top: -120px;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--sage);
  color: var(--black);
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 16px;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: top .3s var(--ease);
}
.skip:focus { top: 10px; }

/* --------------------------------------------------------------------------
   3. THE ENVIRONMENT LAYER
   One fixed place behind everything, so scrolling moves through a space
   instead of past stacked sections.
   -------------------------------------------------------------------------- */
.env {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.env__drift {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(ellipse 46% 38% at 22% 26%, rgba(168,185,154,.13), transparent 62%),
    radial-gradient(ellipse 40% 44% at 80% 68%, rgba(78,96,71,.16),  transparent 64%);
  animation: envDrift 96s var(--ease) -18s infinite alternate;
}
@keyframes envDrift {
  0%   { transform: translate3d(-2.5%, -1.5%, 0) scale(1.02); }
  100% { transform: translate3d( 2.5%,  2%,   0) scale(1.1); }
}
.env__grain {
  position: absolute;
  inset: 0;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* the page rides above the environment */
.skip, .nav, main, .footer, .lightbox { position: relative; z-index: 1; }
.nav      { z-index: 100; }
.lightbox { z-index: 200; }

/* --------------------------------------------------------------------------
   4. PRIMITIVES
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--w-std);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: var(--w-wide); }

.section { padding-block: var(--sec-pad); position: relative; }

.section--dark  { background: var(--black);      color: var(--on-dark); }
.section--paper { background: var(--paper);      color: var(--on-paper); }
.section--deep  { background: var(--paper-deep); color: var(--on-paper); }
.section--sage  { background: var(--sage-deep);  color: var(--on-sage); }
/* dark sections let the environment layer through */
.section--dark  { background: transparent; }
.section--dark::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(13, 15, 13, .82);
  z-index: -1;
}

/* section eyebrow: "03 / SELECTED WORKS" */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .32;
  transform: scaleX(var(--draw, 1));
  transform-origin: left;
}
.section--paper .eyebrow,
.section--deep  .eyebrow { color: var(--sage-deep); }
.section--sage  .eyebrow { color: var(--sage-glow); }

/* headlines */
.h-display {
  font-family: var(--f-display);
  font-size: clamp(44px, 8.4vw, 104px);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.h-section {
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.042em;
  margin-top: 24px;
}
.h-sub {
  font-size: clamp(16.5px, 1.7vw, 19px);
  font-weight: 500;
  line-height: 1.78;
  color: var(--on-dark-soft);
  margin-top: 22px;
  max-width: 58ch;
  letter-spacing: -.015em;
}
.section--paper .h-sub,
.section--deep  .h-sub { color: var(--on-paper-soft); }
.section--sage  .h-sub { color: var(--on-sage-soft); }

.section-head { margin-bottom: clamp(48px, 6vw, 76px); }

.mono {
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--on-dark-soft);
  white-space: nowrap;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.chip:hover { border-color: var(--sage); color: var(--sage); }
.section--paper .chip,
.section--deep  .chip { border-color: var(--line-dark); color: var(--on-paper-soft); }
.section--paper .chip:hover,
.section--deep  .chip:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.section--sage  .chip { border-color: rgba(242,243,239,.3); color: var(--on-sage); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  /* 버튼 문구가 전부 한글입니다. mono 는 한글 글리프가 없어 어차피 대체
     서체로 떨어지고, 넓은 자간이 한글을 얇고 흐리게 보이게 만듭니다. */
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sage); color: var(--black); }
.btn--primary:hover { background: var(--sage-glow); }
.btn--ghost { border-color: var(--edge-light); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--sage); color: var(--sage); }
.section--paper .btn--ghost,
.section--deep  .btn--ghost { border-color: var(--edge-dark); color: var(--on-paper); }
.section--paper .btn--ghost:hover,
.section--deep  .btn--ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.btn__arrow { font-size: 16px; line-height: 1; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .filter, .nav__link, .footer__links a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* --------------------------------------------------------------------------
   5. THE SIGNATURE: the previz frame
   Corner brackets, a drawing spine, and focus marks. The camera-framing
   language of a 3D previz viewport, carried across the whole page.
   -------------------------------------------------------------------------- */
.frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--sage);
}
.frame span {
  position: absolute;
  width: 26px; height: 26px;
  opacity: .5;
}
.frame span::before, .frame span::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.frame span::before { width: 100%; height: 1px; }
.frame span::after  { width: 1px;  height: 100%; }
.frame .tl { top: 0; left: 0; }
.frame .tr { top: 0; right: 0; }
.frame .bl { bottom: 0; left: 0; }
.frame .br { bottom: 0; right: 0; }
.frame .tr::before, .frame .tr::after { right: 0; }
.frame .bl::before { bottom: 0; }
.frame .br::before { bottom: 0; right: 0; }
.frame .br::after  { right: 0; }

/* the drawing spine: a hairline that fills as each section arrives */
.spine {
  position: absolute;
  left: calc(var(--gutter) * .42);
  top: 0; bottom: 0;
  width: 1px;
  background: currentColor;
  opacity: .13;
  overflow: hidden;
}
.spine::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background: var(--sage);
  transform: scaleY(var(--fill, 0));
  transform-origin: top;
  transition: transform 1.1s var(--ease);
}
@media (max-width: 1080px) { .spine { display: none; } }

/* focus mark: a small crosshair tick beside section numbers */
.tick {
  display: inline-block;
  width: 7px; height: 7px;
  position: relative;
  flex: none;
}
.tick::before, .tick::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform .5s var(--ease);
}
.tick::before { left: 0; right: 0; top: 50%; height: 1px; transform: scaleX(var(--t, 1)); }
.tick::after  { top: 0; bottom: 0; left: 50%; width: 1px;  transform: scaleY(var(--t, 1)); }

/* --------------------------------------------------------------------------
   6. MOTION SYSTEM
   Entrance choreography. Start and end states are prefixed with the
   container class so a later rule can never silently cancel them.
   -------------------------------------------------------------------------- */
.rv > * { transition: opacity .85s var(--ease), transform .85s var(--ease); }

/* (a) rise: the default arrival */
.rv--rise > *     { opacity: 0; transform: translateY(30px); }
.rv--rise.in > *  { opacity: 1; transform: none; }

/* (b) drift-down: echoes a fall */
.rv--drift > *    { opacity: 0; transform: translateY(-26px); }
.rv--drift.in > * { opacity: 1; transform: none; }

/* (c) snap-align: slides into place in reading order */
.rv--snap > *     { opacity: 0; transform: translateX(-34px); }
.rv--snap.in > *  { opacity: 1; transform: none; }

/* (d) approach-from-depth: grows in as if nearing the camera */
.rv--depth > *    { opacity: 0; transform: scale(.9); }
.rv--depth.in > * { opacity: 1; transform: none; }

/* (e) weave: alternating arrival from above and below */
.rv--weave > *              { opacity: 0; transform: translateY(28px); }
.rv--weave > *:nth-child(odd){ transform: translateY(-28px); }
.rv--weave.in > *           { opacity: 1; transform: none; }

/* stagger, then retire the delays so hovers never lag afterwards.
   the retirement selector repeats :nth-child so it beats the delay rules. */
.rv > *:nth-child(1) { transition-delay: 0ms; }
.rv > *:nth-child(2) { transition-delay: 80ms; }
.rv > *:nth-child(3) { transition-delay: 160ms; }
.rv > *:nth-child(4) { transition-delay: 240ms; }
.rv > *:nth-child(5) { transition-delay: 320ms; }
.rv > *:nth-child(6) { transition-delay: 400ms; }
.rv > *:nth-child(7) { transition-delay: 480ms; }
.rv > *:nth-child(8) { transition-delay: 560ms; }
.rv.done > *:nth-child(1), .rv.done > *:nth-child(2), .rv.done > *:nth-child(3),
.rv.done > *:nth-child(4), .rv.done > *:nth-child(5), .rv.done > *:nth-child(6),
.rv.done > *:nth-child(7), .rv.done > *:nth-child(8) { transition-delay: 0s; }

/* split text, assembled off --k (0 to 1 assembly progress) */
.split { display: inline; --k: 0; transition: --k 1.15s var(--ease) .1s; }
.in .split { --k: 1; }
.w { display: inline-block; white-space: pre; }
.c { display: inline-block; }

/* word rise, used on headlines */
.sp--rise .w {
  --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.8, 1);
  opacity: var(--kc);
  transform: translateY(calc((1 - var(--kc)) * 26px));
}
/* character scatter, used on the display headline */
.sp--scatter .c {
  --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.6, 1);
  opacity: var(--kc);
  transform: translate(calc((1 - var(--kc)) * var(--jx, 0px)),
                       calc((1 - var(--kc)) * var(--jy, 0px)))
             rotate(calc((1 - var(--kc)) * var(--jr, 0deg)));
}

/* drifting motes, hero and sage sections only */
.motes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.motes i {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0;
}
.live .motes i { animation: mote 22s linear infinite; }
@keyframes mote {
  0%   { opacity: 0; transform: translateY(30px); }
  14%  { opacity: .5; }
  86%  { opacity: .35; }
  100% { opacity: 0; transform: translateY(-190px); }
}

/* pause everything on a hidden tab. targets pseudo-elements too, because
   animation-play-state does not inherit. */
body.paused *,
body.paused *::before,
body.paused *::after { animation-play-state: paused !important; }

/* --------------------------------------------------------------------------
   7. NAV
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  /* 화면 전체 음영을 걷어냈기 때문에, 맨 위에서도 바 자체가 배경을 가지고
     있어야 흰 로고와 메뉴가 밝은 영상 위에서 읽힙니다. */
  background: rgba(13, 15, 13, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--on-dark);
  transition: background .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(13, 15, 13, .9);
  border-bottom-color: var(--line-light);
}
/* the bar stays dark over every section. the logo is white, so an inverting
   bar would erase it; a blurred dark bar reads cleanly over paper too. */

.nav__inner {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand__mark {
  width: 13px; height: 13px;
  flex: none;
  position: relative;
  color: var(--sage);
}
.brand__mark::before, .brand__mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.brand__mark::before { inset: 0; border: 1px solid currentColor; }
.brand__mark::after  { inset: 4px; background: currentColor; }

/* the real logo takes over the moment its file loads. until then the
   text wordmark stands in, so the header is never empty or broken. */
.brand__logo { display: none; height: 44px; width: auto; }
.brand--footer .brand__logo { height: 56px; }
.brand__text { display: inline-flex; align-items: center; gap: 9px; }
.brand.has-logo .brand__logo { display: block; }
.brand.has-logo .brand__text { display: none; }
@media (max-width: 480px) {
  .brand__logo { height: 32px; }
  .brand--footer .brand__logo { height: 44px; }
}

.nav__links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
/* 내비게이션은 작은 라벨이 아니라 실제 이동 수단이라, 얇은 mono 대신
   디스플레이 서체를 굵게 씁니다. 투명도로 흐리지 않고 색으로 눌러줍니다. */
.nav__link {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-dark);
  transition: color .25s var(--ease);
}
.nav__link:hover { color: var(--sage); }

.nav__cta { padding: 11px 22px; font-size: 16px; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__burger span {
  display: block;
  width: 20px; height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 카카오 버튼이 늘어난 만큼 메뉴를 일찍 접습니다. 900px 로 두면
   901px 부근에서 내비가 가로로 넘칩니다. */
@media (max-width: 980px) {
  /* 카카오 버튼의 모바일 스타일은 기본 규칙보다 뒤에 있어야 이깁니다.
     아래 카카오 섹션에 함께 두었습니다. */
  .nav__burger { display: flex; margin-left: 8px; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(13, 15, 13, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: var(--on-dark);
    padding: 12px var(--gutter) 28px;
    border-bottom: 1px solid var(--line-light);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--line-light); justify-content: flex-start; }
  .nav__links .nav__cta { margin-top: 22px; background: var(--sage); color: var(--black); }
  .nav__links .btn:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: clamp(56px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 42%, #000 18%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 42%, #000 18%, transparent 76%);
  opacity: .55;
  pointer-events: none;
  transition: opacity .9s var(--ease);
}
/* the grid steps back once real footage is behind it */
.hero.has-video::after { opacity: .22; }

/* --- the hero's background footage ------------------------------------- */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--black);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateZ(0);   /* its own compositor layer */
}
/* 크로스페이드를 하지 않습니다. 포스터는 영상의 0초 프레임이라 그대로
   바꿔치기해도 티가 나지 않고, 서서히 겹치면 재생 중인 영상과 정지
   이미지가 이중으로 보여 잔상이 생깁니다. */
.hero__media.is-playing .hero__video { opacity: 1; }

/* 스크림(영상 위에 덮는 음영)은 전부 제거했습니다.
   글자 가독성은 아래 text-shadow 만으로 처리합니다. 그림자는 글자
   테두리에만 걸리므로 영상 자체는 전혀 어두워지지 않습니다. */
/* the signature green reads dark against bright footage, so it steps up a
   tint while the video is behind it. the brand relationship is kept. */
.hero.has-video .hero__title em { color: #d7e5cc; }
/* SCROLL 자리 음영을 없앴기 때문에, 밝은 영상 위에서는 이 표시가 읽히지
   않습니다. 안 보이는 글자를 남겨두는 대신 영상이 있을 때는 감춥니다.
   (영상이 없을 때는 그대로 보입니다) */
.hero.has-media .hero__scroll { display: none; }

/* Small text over footage does not get the big radial, it gets a chip:
   a blurred backing pill. The trailing rule would stretch it, so it goes. */
.hero__label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #ffffff;
}
.hero.has-media .hero__label {
  align-self: flex-start;
  width: fit-content;
  padding: 8px 15px;
  border-radius: 10px;
  /* 칩은 아주 작아서 진하게 해도 영상이 어두워 보이지 않습니다.
     밝은 창문 앞에서도 라벨이 읽히려면 이 정도는 필요합니다. */
  background: rgba(8, 10, 8, .88);
  border: 1px solid rgba(168, 191, 157, .3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 1px 3px rgba(5, 6, 5, .9);
}
.hero.has-media .hero__label::after { display: none; }

/* three-layer shadow: tight edge, mid glow, wide falloff */
.hero.has-media .hero__title,
.hero.has-media .hero__sub,
.hero.has-media .hero__label,
.hero.has-media .hero__scroll,
.hero.has-media .hero__keywords {
  /* 스크림이 없으므로 그림자가 유일한 보호막입니다.
     글자에 딱 붙는 테두리(0 0 …) 를 먼저 깔고 바깥으로 퍼뜨립니다.
     그림자는 글자 주변 픽셀만 어둡게 하므로 영상 밝기는 그대로입니다. */
  text-shadow:
    0 0 2px  rgba(5,6,5,.92),
    0 0 6px  rgba(5,6,5,.72),
    0 1px 2px rgba(5,6,5,.98),
    0 2px 8px rgba(5,6,5,.9),
    0 5px 20px rgba(5,6,5,.85),
    0 12px 48px rgba(5,6,5,.8);
}
.hero.has-media .btn { text-shadow: none; }   /* a shadowed button label reads as grime */

.hero__inner, .hero__frame, .hero__scroll { z-index: 2; }

/* the hero's framing brackets: the signature at full size */
.hero__frame {
  position: absolute;
  inset: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  pointer-events: none;
  color: var(--sage);
}
.hero__frame span { width: 34px; height: 34px; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero.in .hero__frame span { opacity: .42; }
.hero.in .hero__frame .tl { transition-delay: .15s; }
.hero.in .hero__frame .tr { transition-delay: .3s; }
.hero.in .hero__frame .br { transition-delay: .45s; }
.hero.in .hero__frame .bl { transition-delay: .6s; }
@media (max-width: 700px) { .hero__frame { display: none; } }

.hero__inner { position: relative; z-index: 1; width: 100%; }

.hero__label { max-width: 440px; }

.hero__title { margin-top: 28px; }
.hero__title em { font-style: normal; color: var(--sage); }

/* 첫 화면 글자는 등장 연출 없이 처음부터 완성된 상태로 보입니다.
   위에 아무것도 없어서 굳이 나타낼 이유가 없고, 반투명하게 서서히
   올라오는 구간이 영상 위에서 잔상으로 읽히기 때문입니다. */

.hero__sub {
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 600;
  line-height: 1.75;
  color: #ffffff;
  margin-top: 32px;
  max-width: 46ch;
  letter-spacing: -.015em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero__keywords {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  gap: 11px 22px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #ffffff;
}
.hero__keywords span { display: inline-flex; align-items: center; gap: 18px; }
.hero__keywords span:not(:last-child)::after {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--sage);
  opacity: .7;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 8vw, 100px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark-soft);
  z-index: 1;
}
.hero__scroll i {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(var(--sage), transparent);
}
.live .hero__scroll i { animation: scrollPulse 2.6s var(--ease) infinite; }
@keyframes scrollPulse {
  0%, 100% { opacity: .22; transform: scaleY(.5); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);  transform-origin: top; }
}
@media (max-width: 900px), (max-height: 560px) { .hero__scroll { display: none; } }

/* --------------------------------------------------------------------------
   9. SHOWREEL (lite embed: no youtube iframe until it is asked for)
   -------------------------------------------------------------------------- */
.showreel { padding-bottom: clamp(64px, 8vw, 104px); position: relative; }
.showreel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 18px;
  color: var(--on-dark-soft);
}

.lite {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black-soft);
  border: 1px solid var(--line-light);
  overflow: hidden;
  cursor: pointer;
}
.lite__poster {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.lite:hover .lite__poster { transform: scale(1.03); }
.lite__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(13,15,13,.12), rgba(13,15,13,.58));
  transition: background .35s var(--ease);
}
.lite:hover .lite__play { background: linear-gradient(180deg, rgba(13,15,13,.06), rgba(13,15,13,.42)); }
.lite__btn {
  width: clamp(56px, 6vw, 80px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(168, 185, 154, .93);
  color: var(--black);
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.lite:hover .lite__btn { transform: scale(1.09); background: var(--sage-glow); }
.lite__btn svg { width: 38%; height: 38%; margin-left: 8%; }
.lite__meta {
  position: absolute;
  left: 22px; bottom: 20px;
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(0,0,0,.7);
}
.lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lite.is-playing { cursor: default; }
.lite.is-playing .lite__play,
.lite.is-playing .lite__poster,
.lite.is-playing .lite__meta,
.lite.is-playing .frame { display: none; }

/* --------------------------------------------------------------------------
   10. SERVICES accordion
   -------------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--line-dark); }
.acc__item { border-bottom: 1px solid var(--line-dark); }

.acc__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 27px 0;
  text-align: left;
  transition: color .3s var(--ease);
}
.acc__trigger:hover { color: var(--sage-deep); }

.acc__num {
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--on-paper-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .3s var(--ease);
}
.acc__trigger:hover .acc__num,
.acc__item.is-open .acc__num { color: var(--sage-deep); }
.acc__item.is-open .tick { --t: 0; }
.acc__item.is-open .tick::before { transform: scaleX(1); }

.acc__title {
  font-size: clamp(19px, 2.5vw, 27px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.3;
}
.acc__title small {
  display: block;
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-paper-soft);
  margin-top: 8px;
}

.acc__icon {
  width: 36px; height: 36px;
  border: 1px solid var(--edge-dark);
  border-radius: 50%;
  position: relative;
  flex: none;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity .35s var(--ease);
}
.acc__icon::before { width: 12px; height: 1.5px; }
.acc__icon::after  { width: 1.5px; height: 12px; }
.acc__item.is-open .acc__icon { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--paper); transform: rotate(180deg); }
.acc__item.is-open .acc__icon::after { opacity: 0; }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }

.acc__body {
  padding: 0 0 34px 78px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.acc__body p { color: var(--on-paper-soft); font-size: 16.5px; line-height: 1.85; max-width: 46ch; }
.acc__list { display: grid; gap: 11px; }
.acc__list li {
  font-size: 16px;
  color: var(--on-paper-soft);
  padding-left: 17px;
  position: relative;
}
.acc__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 7px; height: 1px;
  background: var(--sage-deep);
}
.acc__body .chips { grid-column: 1 / -1; margin-top: 6px; }

@media (max-width: 760px) {
  .acc__trigger { grid-template-columns: 38px 1fr auto; gap: 12px; }
  .acc__num .tick { display: none; }
  .acc__body { padding-left: 50px; grid-template-columns: 1fr; gap: 24px; }
}

/* --------------------------------------------------------------------------
   11. WORKS
   -------------------------------------------------------------------------- */
.works__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 36px;
}

.filters { display: flex; flex-wrap: wrap; gap: 6px; }

.filter {
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 11px 17px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--on-paper-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.filter:hover { color: var(--sage-deep); border-color: var(--edge-dark); }
.filter[aria-pressed="true"] { background: var(--sage-deep); color: var(--paper); border-color: var(--sage-deep); }
.filter__count { font-size: 16px; opacity: .7; font-variant-numeric: tabular-nums; }

.sort { display: flex; align-items: center; gap: 10px; color: var(--on-paper-soft); }
.sort select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--edge-dark);
  border-radius: 999px;
  padding: 11px 34px 11px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--on-paper);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235b6158' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 24px);
}
@media (max-width: 980px) { .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .works__grid { grid-template-columns: 1fr; } }

.work {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.work.in { opacity: 1; transform: none; }
.work.is-hidden { display: none; }
.work--featured { grid-column: span 2; }
@media (max-width: 560px) { .work--featured { grid-column: auto; } }

.work__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line-dark);
}
.work__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.work:hover .work__thumb { transform: scale(1.05); }

/* the previz brackets appear on hover: the signature, small dose */
.work__media .frame span { opacity: 0; transform: scale(1.25); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.work:hover .work__media .frame span,
.work:focus-visible .work__media .frame span { opacity: .78; transform: none; }
.work__media .frame { inset: 12px; }

.work__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,15,13,0) 46%, rgba(13,15,13,.74));
  opacity: 0;
  transition: opacity .4s var(--ease);
  display: grid;
  place-items: center;
}
.work:hover .work__scrim,
.work:focus-visible .work__scrim { opacity: 1; }

.work__play {
  width: 52px; aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(168,185,154,.95);
  color: var(--black);
  display: grid;
  place-items: center;
  transform: scale(.84);
  transition: transform .4s var(--ease);
}
.work:hover .work__play { transform: scale(1); }
.work__play svg { width: 36%; height: 36%; margin-left: 8%; }

.work__badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(13,15,13,.8);
  color: var(--sage);
  padding: 4px 9px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.work__info { padding-top: 15px; }
.work__cat {
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  gap: 9px;
}
.work__cat time { color: var(--on-paper-soft); font-variant-numeric: tabular-nums; }
.work__cat::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }

.work__title {
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1.4;
  margin-top: 10px;
  max-width: 30ch;
}
.work__client { font-size: 16px; color: var(--on-paper-soft); margin-top: 6px; }
.work__tags { margin-top: 12px; }

.works__empty { padding: 76px 0; text-align: center; color: var(--on-paper-soft); }
.works__empty strong { display: block; font-size: 17px; color: var(--on-paper); margin-bottom: 8px; letter-spacing: -.03em; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(8, 10, 8, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox__frame {
  position: relative;
  width: min(100%, 1180px);
  aspect-ratio: 16 / 9;
  background: #000;
  transform: scale(.97);
  transition: transform .4s var(--ease);
}
.lightbox.is-open .lightbox__frame { transform: none; }
.lightbox__frame.is-vertical { width: auto; height: min(84svh, 900px); aspect-ratio: 9 / 16; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; }

.lightbox__close {
  position: absolute;
  top: -48px; right: 0;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--edge-light);
  border-radius: 50%;
  color: var(--on-dark);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__close:hover { background: var(--sage); color: var(--black); border-color: var(--sage); }

.lightbox__caption {
  position: absolute;
  left: 0; bottom: -44px;
  color: var(--on-dark-soft);
  display: flex;
  gap: 12px;
  align-items: baseline;
  max-width: 100%;
}
.lightbox__caption b { color: var(--on-dark); font-weight: 600; letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   12. APPROACH
   -------------------------------------------------------------------------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}
.pipeline__step {
  padding: 26px 20px 30px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  position: relative;
  transition: background .4s var(--ease);
}
.pipeline__step:hover { background: rgba(168,185,154,.07); }
/* a hairline that draws itself across each step as the row arrives */
.pipeline__step::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.pipeline.in .pipeline__step::after { transform: scaleX(1); }
.pipeline.in .pipeline__step:nth-child(1)::after { transition-delay: .05s; }
.pipeline.in .pipeline__step:nth-child(2)::after { transition-delay: .15s; }
.pipeline.in .pipeline__step:nth-child(3)::after { transition-delay: .25s; }
.pipeline.in .pipeline__step:nth-child(4)::after { transition-delay: .35s; }
.pipeline.in .pipeline__step:nth-child(5)::after { transition-delay: .45s; }
.pipeline.in .pipeline__step:nth-child(6)::after { transition-delay: .55s; }
.pipeline.in .pipeline__step:nth-child(7)::after { transition-delay: .65s; }
.pipeline.in .pipeline__step:nth-child(8)::after { transition-delay: .75s; }

.pipeline__step i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--sage);
}
.pipeline__step b {
  display: block;
  margin-top: 13px;
  font-family: var(--f-display);
  font-size: clamp(16px, 1.4vw, 15px);
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.pipeline__step span { display: block; margin-top: 8px; font-size: 16px; color: var(--on-dark-soft); }
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.edge {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
  margin-top: clamp(56px, 7vw, 88px);
}
@media (max-width: 900px) { .edge { grid-template-columns: 1fr; } }

.edge__item { padding-top: 24px; border-top: 1px solid var(--sage); position: relative; }
.edge__item h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -.035em;
  margin-top: 15px;
  line-height: 1.35;
}
.edge__item p { color: var(--on-dark-soft); font-size: 16px; line-height: 1.8; margin-top: 13px; max-width: 40ch; }
.edge__item .mono { color: var(--sage); }

/* --------------------------------------------------------------------------
   13. THE INTERACTIVE MOMENT
   Press and hold to lock a drifting frame. The visitor performs the
   brand's one idea instead of reading it.
   -------------------------------------------------------------------------- */
.lock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .lock { grid-template-columns: 1fr; } }

.lock__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--black-soft);
  border: 1px solid var(--line-light);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.lock__stage:active { cursor: grabbing; }

/* 디졸브가 아니라 와이프입니다. 최종 결과 이미지를 왼쪽부터 잘라서 보여주고,
   누를수록 잘리는 폭이 줄어들며 경계선이 오른쪽으로 지나갑니다.
   두 장이 겹쳐 흐려지지 않으므로 차이가 또렷하게 보입니다. */
.lock__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}
.lock__img--a { }                                     /* 3D 프리비즈: 항상 아래에 */
/* 최종 결과가 오른쪽에서 왼쪽으로 밀고 들어옵니다. 왼쪽이 프리비즈,
   오른쪽이 최종이라 읽는 순서(전 → 후)와 라벨 위치가 맞습니다. */
.lock__img--b {
  clip-path: inset(0 0 0 calc((1 - var(--p)) * 100%));
}

/* 경계선과 손잡이 */
.lock__wipe {
  position: absolute;
  top: 0; bottom: 0;
  left: calc((1 - var(--p)) * 100%);
  width: 2px;
  margin-left: -1px;
  background: var(--sage-glow);
  box-shadow: 0 0 14px rgba(10,12,10,.6);
  pointer-events: none;
}
/* 손잡이는 경계선과 별개로 두고 위치를 가둡니다. 경계선 안에 넣으면
   양 끝에서 원의 절반이 잘려 보입니다. */
.lock__grip {
  position: absolute;
  top: 50%;
  left: clamp(0px, calc((1 - var(--p)) * 100% - 17px), calc(100% - 34px));
  width: 34px; height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: var(--sage-glow);
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
  pointer-events: none;
}
/* 손잡이 안의 좌우 화살표 */
.lock__grip::before, .lock__grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0; height: 0;
  border-block: 4px solid transparent;
  margin-top: -4px;
}
.lock__grip::before { left: 8px;  border-right: 5px solid var(--black); }
.lock__grip::after  { right: 8px; border-left:  5px solid var(--black); }

/* 어느 쪽이 무엇인지 항상 보이게 */
.lock__tag {
  position: absolute;
  top: 14px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(8, 10, 8, .82);
  border: 1px solid rgba(168, 191, 157, .26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--on-dark);
  transition: opacity .3s var(--ease);
}
/* 와이프 중에는 두 라벨이 동시에 또렷해야 비교가 됩니다.
   양 끝에서만 사라지도록 곱해서 빨리 올리고 늦게 내립니다. */
.lock__tag--a { left: 14px;  opacity: clamp(0, (1 - var(--p)) * 5, 1); }
.lock__tag--b { right: 14px; opacity: clamp(0, var(--p) * 5, 1); }

/* 이미지가 아직 없을 때 빈 상자로 보이지 않도록 깔아두는 배경 */
.lock__stage {
  background-image:
    linear-gradient(rgba(168,185,154,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,185,154,.16) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* the previz reticle draws itself as control arrives */
.lock__reticle { position: absolute; inset: 14px; color: var(--sage); opacity: var(--p, 0); }
.lock__reticle span { width: 22px; height: 22px; opacity: .85; }

.lock__meter {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  height: 2px;
  background: rgba(242,243,239,.16);
}
.lock__meter i {
  display: block;
  height: 100%;
  background: var(--sage);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}


.lock__hint {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  color: var(--on-dark-soft);
  white-space: nowrap;
  opacity: calc(1 - var(--p, 0));
  background: rgba(8,8,10,.55);
  border: 1px solid rgba(168,185,154,.26);
  border-radius: 10px;
  padding: 7px 13px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lock__copy h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -.042em;
  line-height: 1.18;
  margin-top: 22px;
}
.lock__copy > p { color: var(--on-dark-soft); font-size: 17px; line-height: 1.8; margin-top: 18px; max-width: 44ch; }

.lock__reveal { margin-top: 28px; display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.lock__reveal li {
  background: var(--black-soft);
  padding: 16px 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  opacity: .25;
  transform: translateX(-8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.lock__reveal li.on { opacity: 1; transform: none; }
.lock__reveal em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--sage);
  flex: none;
}
.lock__reveal span { font-size: 16px; color: var(--on-dark); }

/* --------------------------------------------------------------------------
   14. STUDIO
   -------------------------------------------------------------------------- */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; align-items: start; } }

.studio__roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(242,243,239,.24);
  border: 1px solid rgba(242,243,239,.24);
}
.studio__roles li {
  background: var(--sage-deep);
  padding: 22px 20px;
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .35s var(--ease);
}
.studio__roles li:hover { background: var(--sage-dark); }
.studio__roles li em {
  display: block;
  font-style: normal;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--on-sage-soft);
  margin-top: 7px;
}

/* --------------------------------------------------------------------------
   15. PROCESS
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
@media (max-width: 860px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

.process__step {
  background: var(--paper);
  padding: 32px 28px 38px;
  transition: background .4s var(--ease);
  position: relative;
}
.process__step:hover { background: #fff; }
.process__step i {
  font-style: normal;
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--paper-deep);
  line-height: 1;
  transition: color .4s var(--ease);
}
.process__step:hover i { color: var(--sage); }
.process__step b {
  display: block;
  margin-top: 17px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.032em;
}
.process__step p { margin-top: 11px; font-size: 16px; line-height: 1.8; color: var(--on-paper-soft); max-width: 30ch; }

/* --------------------------------------------------------------------------
   16. CONTACT
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact__meta { display: grid; gap: 26px; }
.contact__row { padding-top: 17px; border-top: 1px solid var(--line-light); position: relative; }
/* .mono 는 기본이 대문자 변환이라 "e-Mail" 이 "E-MAIL" 로 바뀝니다.
   여기서는 적어둔 대소문자를 그대로 씁니다. */
.contact__row .mono { color: var(--on-dark-soft); text-transform: none; font-size: 16px; }
.contact__row a, .contact__row p {
  display: block;
  margin-top: 9px;
  font-size: clamp(16px, 1.8vw, 19px);
  letter-spacing: -.028em;
  transition: color .25s var(--ease);
}
.contact__row a:hover { color: var(--sage); }

.form { display: grid; gap: 18px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .form__grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; }
/* 라벨이 전부 한글입니다. mono 는 한글 글리프가 없어 대체 서체로 떨어지고,
   0.14em 자간이 남아 작고 흐리게 보였습니다. */
.field > label {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--on-dark);
}
.field .req { color: var(--sage); }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(242,243,239,.04);
  border: 1px solid var(--edge-light);
  border-radius: 3px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--on-dark);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: rgba(242,243,239,.34); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: rgba(168,185,154,.07);
}
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #d08066; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a9b0a5' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 10px;
}
.field select option { background: var(--ink); color: var(--on-dark); }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__submit { min-width: 172px; }
.form__submit[disabled] { opacity: .55; cursor: progress; transform: none; }

.form__note { font-size: 16px; color: var(--on-dark-soft); line-height: 1.65; }
.form__note a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }

.form__status {
  display: none;
  padding: 14px 16px;
  border-radius: 3px;
  font-size: 16px;
  line-height: 1.65;
  border: 1px solid;
}
.form__status.is-visible { display: block; }
.form__status.is-ok  { border-color: rgba(168,185,154,.55); background: rgba(168,185,154,.11); color: var(--sage-glow); }
.form__status.is-err { border-color: rgba(208,128,102,.55); background: rgba(208,128,102,.11); color: #e8ac95; }
.form__status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* --------------------------------------------------------------------------
   16b. KAKAOTALK
   Styled in the site's own palette rather than Kakao yellow, so it does not
   fight the sage. The bubble icon carries the recognition.
   -------------------------------------------------------------------------- */
.kakao-icon { width: 17px; height: 17px; flex: none; }
/* .contact__row a 규칙이 display:block 을 걸어 버튼이 칸 전체로 늘어납니다.
   버튼은 글자 폭만큼만 차지해야 합니다. */
.contact__row .kakao-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  font-size: 16px;
  letter-spacing: -.005em;
}
/* .contact__row p 규칙(16~19px)을 이겨야 해서 선택자를 한 단계 더 씁니다 */
.contact__row .contact__hint {
  margin-top: 10px;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--on-dark-soft);
  line-height: 1.6;
}

/* 상단 바에 항상 보이는 카카오 버튼. 카카오 공식 색을 씁니다. */
.nav__kakao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #fee500;
  color: #191600;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.005em;
  white-space: nowrap;
  flex: none;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav__kakao:hover { background: #ffe94d; transform: translateY(-2px); }
.nav__kakao:focus-visible { outline-color: #fee500; }
.nav__kakao .kakao-icon { width: 20px; height: 20px; }

/* 두 버튼의 가로 길이와 높이를 맞춥니다. .btn 은 투명 테두리가 1px 있어
   카카오 쪽에도 같은 테두리를 줘야 높이가 어긋나지 않습니다. */
.nav__cta, .nav__kakao {
  min-width: 170px;
  justify-content: center;
  border: 1px solid transparent;
}

/* 모바일: 원형 아이콘 버튼. 기본 규칙 뒤에 와야 padding 0 이 적용됩니다. */
@media (max-width: 980px) {
  .nav__kakao {
    margin-left: auto;
    min-width: 0;
    padding: 0;
    width: 46px;
    height: 46px;
  }
  .nav__kakao span { display: none; }
  .nav__kakao .kakao-icon { width: 26px; height: 26px; }
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line-light); padding-block: 46px; background: rgba(13,15,13,.82); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { color: var(--on-dark-soft); transition: color .25s var(--ease); }
.footer__links a:hover { color: var(--sage); }
.footer__copy { color: var(--on-dark-soft); }

/* --------------------------------------------------------------------------
   18. REDUCED MOTION
   Honored completely: elements, pseudo-elements, delays, and final states.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  /* every choreographed element sits in its finished state */
  .rv > *, .work { opacity: 1 !important; transform: none !important; }
  .hero__frame span { opacity: .42 !important; }
  .pipeline__step::after { transform: scaleX(1) !important; }
  .spine::after { transform: scaleY(1) !important; }
  .lock__reveal li { opacity: 1 !important; transform: none !important; }
  .split .w, .split .c { opacity: 1 !important; transform: none !important; }
  .hero__sub, .hero__actions, .hero__keywords { opacity: 1 !important; transform: none !important; }
  .env__drift, .motes { display: none; }

  /* the hold moment is already complete, no holding required */
  .lock__stage { --p: 1; cursor: default; }
  .lock__hint { display: none; }
}
