/* ==========================================================================
   HYOYOIL — 브랜드 디자인 스튜디오
   Tokens · Base · Layout · Components · Sections · Case study · Motion
   ========================================================================== */

:root {
  --paper: #f2efe9;
  --paper-2: #e9e5dc;
  --ink: #131211;
  --ink-2: #57534c;
  --ink-3: #8d887f;
  --seal: #d9432b;           /* 인주색 — 단 하나의 강조색 */

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --line: rgba(19, 18, 17, .14);
  --line-strong: rgba(19, 18, 17, .9);

  --f-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --f-serif: "Gowun Batang", "Noto Serif KR", "AppleMyungjo", serif;
  --f-latin: "Fraunces", "Gowun Batang", serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 2.6vw, 44px);
  --col-gap: clamp(12px, 1.6vw, 24px);
  --header-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.76, 0, .24, 1);
}

html[data-theme="ink"] {
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-2: #b9b4aa;
  --fg-3: #7d786f;
  --line: rgba(242, 239, 233, .16);
  --line-strong: rgba(242, 239, 233, .9);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .9s var(--ease-out), color .9s var(--ease-out);
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--seal); color: var(--paper); }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
main { position: relative; z-index: 1; }

/* ---------- Type ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 400;
}
.muted { color: var(--fg-2); }
.faint { color: var(--fg-3); }
.serif { font-family: var(--f-serif); font-weight: 400; letter-spacing: -0.035em; }
.latin { font-family: var(--f-latin); font-variation-settings: "SOFT" 100, "WONK" 0; }

.display {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 136px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin: 0;
}
.h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.8vw, 84px);
  line-height: 1.12;
  letter-spacing: -0.05em;
  margin: 0;
}
.h3 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.04em;
  margin: 0;
}
.lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.7; letter-spacing: -0.02em; }
.num {
  font-family: var(--f-latin);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
}

/* 단어 단위 리빌 (한글은 글자 단위로 쪼개지 않는다) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > .wi { display: inline-block; will-change: transform; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  align-items: center;
  padding-inline: var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
  transition: transform .7s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header .brand { grid-column: 1 / span 3; display: inline-flex; align-items: center; width: fit-content; }
.site-header .brand img { height: 19px; width: auto; filter: invert(1); }
.site-header .clock { grid-column: 5 / span 3; display: flex; gap: 14px; }
.site-header .clock .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; align-self: center; animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.site-nav { grid-column: 8 / span 3; display: flex; gap: clamp(14px, 1.8vw, 28px); font-size: 14.5px; }
.site-nav a { position: relative; padding-block: 6px; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-header .cta-pill { grid-column: 11 / span 2; justify-self: end; }

.cta-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 18px 0 20px;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: 14px; white-space: nowrap; overflow: hidden; position: relative; isolation: isolate;
}
.cta-pill::before { content: ""; position: absolute; inset: 0; background: currentColor; transform: translateY(101%); transition: transform .5s var(--ease-out); z-index: -1; border-radius: inherit; }
.cta-pill:hover::before { transform: translateY(0); }
.cta-pill:hover { color: #000; }
.cta-pill svg { transition: transform .5s var(--ease-out); }
.cta-pill:hover svg { transform: translateX(3px); }

.menu-btn { display: none; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; display: none; }
@media (pointer: fine) { html.has-cursor .cursor { display: block; } }
.cursor .c-dot {
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
}
.cursor-wrap { position: fixed; left: 0; top: 0; z-index: 199; pointer-events: none; mix-blend-mode: difference; }
.cursor-label {
  position: fixed; left: 0; top: 0; z-index: 201; pointer-events: none;
  width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--seal); color: #fff;
  font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  transform: scale(0); opacity: 0;
}

/* ---------- Intro / curtain ---------- */
.intro {
  position: fixed; inset: 0; z-index: 250;
  background: var(--paper); color: var(--ink);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
}
.intro .intro-mark { width: min(56vw, 520px); overflow: hidden; }
.intro .intro-mark img { width: 100%; height: auto; transform: translateY(105%); }
.intro .intro-meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; }
.intro .intro-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
html.no-intro .intro { display: none; }

.curtain {
  position: fixed; inset: 0; z-index: 260; pointer-events: none;
  background: var(--ink);
  transform: translateY(100%);
}
.curtain .mono { position: absolute; left: var(--gutter); bottom: 28px; color: var(--paper); opacity: .6; }
html.is-arriving .curtain { transform: translateY(0); }

/* ---------- GL ---------- */
.gl-media { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100vw; height: 100vh; height: 100lvh; }
.gl-target { position: relative; overflow: hidden; background: var(--paper-2); }
.gl-target > img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform 1.2s var(--ease-out); }
html.gl-media-on .gl-target.is-gl > img { opacity: 0; }
html.gl-media-on .gl-target.is-gl { background: transparent; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--header-h) + clamp(20px, 4vh, 48px));
  padding-bottom: clamp(20px, 3.4vh, 36px);
}
.hero-top { align-items: start; }
.hero-top .mono:nth-child(1) { grid-column: 1 / span 4; }
.hero-top .mono:nth-child(2) { grid-column: 5 / span 4; }
.hero-top .mono:nth-child(3) { grid-column: 9 / span 4; text-align: right; }

.hero-mark { position: relative; margin-block: clamp(28px, 5vh, 56px); }
.hero-mark .mark-stage { position: relative; width: 100%; aspect-ratio: 1479 / 269; }
.hero-mark .mark-stage canvas { position: absolute; inset: -18% -2%; width: 104%; height: 136%; }
.hero-mark .mark-stage > img { width: 100%; height: auto; position: absolute; inset: 0; }
html.gl-hero-on .hero-mark .mark-stage > img { opacity: 0; }

.hero-bottom { align-items: end; row-gap: 28px; }
.hero-bottom .display { grid-column: 1 / span 8; }
.hero-bottom .hero-desc { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 22px; padding-bottom: .6em; }
.hero-desc p { margin: 0; color: var(--fg-2); font-size: 15.5px; max-width: 30em; }
.hero-desc .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--fg-2); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 28px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--fg); animation: cue 1.8s var(--ease-inout) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding-block: clamp(96px, 14vw, 220px); }
.sec-head { align-items: end; margin-bottom: clamp(40px, 6vw, 96px); row-gap: 20px; }
.sec-head .sec-index { grid-column: 1 / span 3; display: flex; gap: 12px; align-items: baseline; }
.sec-head .sec-index .num { font-size: 22px; }
.sec-head .h2 { grid-column: 4 / span 6; }
.sec-head .sec-aside { grid-column: 10 / span 3; color: var(--fg-2); font-size: 14.5px; }
.rule { height: 1px; background: var(--line); transform-origin: left; }

/* ---------- Reel ---------- */
.reel { position: relative; height: 220vh; }
.reel-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.reel-frame {
  position: relative; width: 100%; height: 100%;
  clip-path: inset(22% 30% 22% 30% round 14px);
  background: #1b1a18;
  will-change: clip-path;
}
.reel-frame video, .reel-frame .reel-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-ph { display: none; }
.reel-ph-tag { display: none; }
.reel-frame.is-missing .reel-ph-tag { display: inline; }
.reel-frame.is-missing video { display: none; }
.reel-frame.is-missing .reel-ph { display: block; }
.reel-ph {
  background:
    radial-gradient(60% 80% at 20% 30%, rgba(217, 67, 43, .55), transparent 60%),
    radial-gradient(50% 70% at 80% 70%, rgba(242, 239, 233, .22), transparent 60%),
    radial-gradient(70% 60% at 60% 10%, rgba(87, 83, 76, .7), transparent 70%),
    #1b1a18;
  background-size: 160% 160%;
  animation: reel-drift 14s ease-in-out infinite alternate;
}
@keyframes reel-drift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
.reel-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(19, 18, 17, .38), rgba(19, 18, 17, .12) 35%, rgba(19, 18, 17, .12) 65%, rgba(19, 18, 17, .42)); }
.reel-ui {
  position: absolute; inset: 0; z-index: 2; color: var(--paper);
  display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--header-h) + 8px) var(--gutter) clamp(18px, 3vw, 40px);
  pointer-events: none;
}
.reel-ui .row { display: flex; justify-content: space-between; gap: 16px; }
.reel-ui .reel-title { align-self: center; justify-self: center; text-align: center; }
.reel-ui .reel-title .h2 { color: var(--paper); text-shadow: 0 2px 30px rgba(19, 18, 17, .35); }
.reel-sound {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(242, 239, 233, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--paper);
}
.ph-badge { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px dashed currentColor; opacity: .8; }

/* ---------- Statement ---------- */
.statement .grid { row-gap: 40px; }
.statement .st-label { grid-column: 1 / span 3; }
.statement .st-text {
  grid-column: 4 / span 9; margin: 0;
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(30px, 4.1vw, 72px); line-height: 1.32; letter-spacing: -0.05em;
}
.statement .st-text .sw { color: var(--fg); opacity: .14; transition: none; }
.statement .st-sub { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin-top: clamp(24px, 4vw, 60px); }
.statement .st-sub div { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.statement .st-sub b { display: block; font-family: var(--f-serif); font-weight: 400; font-size: clamp(20px, 1.7vw, 28px); letter-spacing: -0.04em; margin: 10px 0 8px; }
.statement .st-sub p { margin: 0; color: var(--fg-2); font-size: 14.5px; }

/* ---------- Work ---------- */
.works { row-gap: clamp(72px, 10vw, 160px); }
.work-card { display: block; position: relative; }
.work-card .gl-target { border-radius: 4px; }
.work-card .media-4x3 { aspect-ratio: 4 / 3; }
.work-card .media-16x9 { aspect-ratio: 16 / 9; }
.work-card .media-3x2 { aspect-ratio: 3 / 2; }
.work-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: baseline; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 18px; }
.work-meta .num { font-size: clamp(28px, 2.4vw, 40px); line-height: 1; grid-row: span 2; align-self: start; }
.work-meta .w-title { font-family: var(--f-serif); font-size: clamp(22px, 2vw, 34px); letter-spacing: -0.045em; line-height: 1.2; }
.work-meta .w-year { color: var(--fg-2); }
.work-meta .w-desc { grid-column: 2 / span 2; color: var(--fg-2); font-size: 14.5px; }
.work-meta .w-tags { grid-column: 2 / span 2; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.work-card .w-title .arrow { display: inline-block; transform: translate(-6px, 0); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s; color: var(--seal); }
.work-card:hover .w-title .arrow { transform: translate(0, 0); opacity: 1; }
html:not(.gl-media-on) .work-card:hover .gl-target > img { transform: scale(1.035); }

.wc-1 { grid-column: 1 / span 8; }
.wc-1-aside { grid-column: 10 / span 3; align-self: end; display: flex; flex-direction: column; gap: 18px; padding-bottom: 120px; }
.wc-1-aside .h3 { max-width: 12em; }
.wc-2 { grid-column: 5 / span 8; }
.wc-3 { grid-column: 1 / span 6; }
.wc-cta {
  grid-column: 8 / span 5; align-self: end;
  aspect-ratio: 5 / 4; border-radius: 4px;
  border: 1px solid var(--line-strong);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(20px, 2.4vw, 36px); position: relative; overflow: hidden; isolation: isolate;
  transition: color .6s var(--ease-out), border-color .6s;
}
.wc-cta::before { content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease-out); }
.wc-cta:hover { color: var(--paper); }
.wc-cta:hover::before { transform: scaleY(1); }
.wc-cta .h2 { font-size: clamp(30px, 3.4vw, 60px); }
.wc-cta .wc-arrow { width: clamp(44px, 4vw, 64px); height: auto; color: var(--seal); transition: transform .7s var(--ease-out); }
.wc-cta:hover .wc-arrow { transform: rotate(-45deg); }

/* ---------- Services ---------- */
.svc-list { border-top: 1px solid var(--line-strong); }
.svc { border-bottom: 1px solid var(--line); position: relative; }
.svc-row {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  align-items: center; padding-block: clamp(22px, 2.8vw, 40px);
  position: relative; isolation: isolate;
}
.svc-row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--fg); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out); }
.svc-row .num { grid-column: 1 / span 1; font-size: 22px; }
.svc-row .svc-name { grid-column: 2 / span 5; font-family: var(--f-serif); font-size: clamp(30px, 4.2vw, 72px); letter-spacing: -0.05em; line-height: 1.1; transition: transform .6s var(--ease-out); }
.svc-row .svc-en { grid-column: 7 / span 3; }
.svc-row .svc-plus { grid-column: 12 / span 1; justify-self: end; width: 28px; height: 28px; position: relative; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease-out); }
.svc-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc.is-open .svc-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
@media (hover: hover) {
  .svc-row:hover { color: var(--bg); }
  .svc-row:hover::before { transform: scaleY(1); }
  .svc-row:hover .svc-name { transform: translateX(14px); }
}
.svc-body { height: 0; overflow: hidden; }
.svc-body-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding: 8px 0 clamp(28px, 3.6vw, 52px); }
.svc-body-in p { grid-column: 2 / span 5; margin: 0; color: var(--fg-2); }
.svc-body-in ul { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.svc-body-in li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.svc-note { margin-top: 28px; }

/* 커서를 따라다니는 서비스 미리보기 */
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: clamp(220px, 20vw, 320px); aspect-ratio: 4 / 5; margin: 0;
  border-radius: 6px; overflow: hidden; opacity: 0; transform: scale(.6);
  background: #2a2825;
}
.svc-preview .pv { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.svc-preview .pv.is-on { opacity: 1; }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }
.pv-ph { position: absolute; inset: 0; display: grid; place-items: end start; padding: 16px; color: var(--paper); }
.pv-ph[data-tone="1"] { background: radial-gradient(90% 70% at 30% 20%, #e9e5dc, #b8b1a3 60%, #6e685d); color: var(--ink); }
.pv-ph[data-tone="2"] { background: radial-gradient(90% 70% at 70% 30%, #d9432b, #8b2a1b 60%, #2b1c17); }
.pv-ph[data-tone="3"] { background: linear-gradient(160deg, #f2efe9 0 40%, #d6d0c4 40% 62%, #a39b8b 62%); color: var(--ink); }
.pv-ph[data-tone="4"] { background: radial-gradient(70% 70% at 50% 45%, #2a2825, #131211 70%); }
.pv.has-img .pv-ph { display: none; }

/* ---------- Process (월–금) ---------- */
.process-stack { position: relative; }
.day-card {
  position: sticky; top: calc(var(--header-h) + 12px);
  min-height: clamp(380px, 62vh, 620px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  padding: clamp(22px, 3vw, 44px);
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  transform-origin: 50% 0;
  box-shadow: 0 -24px 60px -40px rgba(19, 18, 17, .35);
  isolation: isolate;
}
.day-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #131211; opacity: var(--dim, 0); pointer-events: none; z-index: 2; }
.day-card:nth-child(2) { background: #ebe7df; }
.day-card:nth-child(3) { background: #e3ded4; }
.day-card:nth-child(4) { background: #dbd5ca; }
.day-card:nth-child(5) { background: var(--ink); color: var(--paper); border-color: transparent; }
.day-card:nth-child(5) .muted { color: #b9b4aa; }
.day-glyph { grid-column: 1 / span 5; font-family: var(--f-serif); font-size: clamp(120px, 19vw, 320px); line-height: .82; letter-spacing: -0.06em; align-self: end; }
.day-glyph sup { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; vertical-align: top; margin-left: 10px; position: relative; top: 1.2em; }
.day-body { grid-column: 7 / span 6; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.day-body .h3 { font-size: clamp(28px, 3vw, 52px); }
.day-body p { margin: 14px 0 0; max-width: 32em; }
.day-body ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid currentColor; }
.day-body li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.day-card:nth-child(5) .day-body li { border-color: rgba(242, 239, 233, .16); }
.process-note { margin-top: 24px; }

/* ---------- Studio ---------- */
.studio .grid { row-gap: 40px; }
.studio-media { grid-column: 1 / span 5; }
.studio-media .gl-target { aspect-ratio: 4 / 5; border-radius: 4px; }
.studio-text { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: clamp(28px, 3vw, 48px); }
.studio-text .lead { margin: 0; }
.facts { margin: 0; border-top: 1px solid var(--line-strong); }
.facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--fg-2); font-size: 14px; }
.facts dd { margin: 0; }
.clients { display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--f-serif); font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.045em; line-height: 1.4; }
.clients span:not(:last-child)::after { content: "·"; margin: 0 .45em; color: var(--fg-3); }

/* placeholder media (생성 이미지 자리) */
.ph-media {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px; color: var(--ink-2);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(19, 18, 17, .035) 14px 15px),
    radial-gradient(90% 70% at 30% 20%, #efebe3, #d9d3c7);
}
.ph-media .h3 { color: var(--ink); font-size: clamp(20px, 1.6vw, 26px); }
.gl-target.has-image .ph-media { display: none; }

/* ---------- Contact (ink) ---------- */
.contact { padding-top: clamp(120px, 16vw, 240px); }
.contact .grid { row-gap: 48px; }
.contact-head { grid-column: 1 / span 12; }
.contact-head .display { font-size: clamp(48px, 9vw, 168px); }
.contact-mail { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 18px; }
.mail-link {
  font-family: var(--f-latin); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 300;
  font-size: clamp(26px, 3.4vw, 58px); letter-spacing: -0.03em; line-height: 1.1;
  width: fit-content; position: relative; text-align: left;
}
.mail-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--seal); transform: scaleX(.18); transform-origin: left; transition: transform .7s var(--ease-out); }
.mail-link:hover::after { transform: scaleX(1); }
.copied { color: var(--seal); opacity: 0; transition: opacity .3s; }
.copied.is-on { opacity: 1; }
.contact-form { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 6px; }
.field { position: relative; border-bottom: 1px solid var(--line); padding: 22px 0 10px; }
.field label { position: absolute; left: 0; top: 26px; color: var(--fg-2); font-size: 15px; transition: transform .4s var(--ease-out), font-size .4s, color .4s; transform-origin: left; pointer-events: none; }
.field input { width: 100%; background: transparent; border: 0; outline: 0; padding: 6px 0 4px; font-size: 18px; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-22px); font-size: 12px; color: var(--fg-3); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--seal); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.submit {
  margin-top: 28px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 30px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 500;
  position: relative; overflow: hidden; isolation: isolate;
}
.submit::before { content: ""; position: absolute; inset: 0; background: var(--seal); transform: translateY(101%); transition: transform .55s var(--ease-out); z-index: -1; }
.submit:hover { color: #fff; }
.submit:hover::before { transform: translateY(0); }
.form-note { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; padding-top: clamp(80px, 10vw, 160px); padding-bottom: 28px; }
.foot-cols { row-gap: 36px; padding-bottom: clamp(40px, 6vw, 80px); }
.foot-cols > div { display: flex; flex-direction: column; gap: 8px; }
.foot-cols .fc-1 { grid-column: 1 / span 4; }
.foot-cols .fc-2 { grid-column: 5 / span 2; }
.foot-cols .fc-3 { grid-column: 7 / span 3; }
.foot-cols .fc-4 { grid-column: 10 / span 3; }
.foot-cols .mono { color: var(--fg-3); margin-bottom: 8px; }
.foot-cols a { width: fit-content; position: relative; }
.foot-cols a:hover { color: var(--seal); }
.foot-tagline { font-family: var(--f-serif); font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.04em; line-height: 1.35; margin: 0; }
.foot-mark { position: relative; }
.foot-mark .mark-stage { position: relative; width: 100%; aspect-ratio: 1479 / 269; }
.foot-mark .mark-stage canvas { position: absolute; inset: -14% -2%; width: 104%; height: 128%; }
.foot-mark .mark-stage > img { width: 100%; height: auto; position: absolute; inset: 0; filter: invert(1); }
html.gl-foot-on .foot-mark .mark-stage > img { opacity: 0; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); color: var(--fg-3); }
.to-top { display: inline-flex; gap: 8px; align-items: center; }
.to-top:hover { color: var(--seal); }

/* ==========================================================================
   Case study
   ========================================================================== */
.case-hero { padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px)); }
.case-hero .grid { row-gap: 28px; align-items: end; }
.case-crumb { grid-column: 1 / span 12; display: flex; gap: 18px; flex-wrap: wrap; }
.case-crumb a:hover { color: var(--seal); }
.case-title { grid-column: 1 / span 9; }
.case-title .display { font-size: clamp(52px, 9.6vw, 176px); }
.case-sub { grid-column: 1 / span 7; margin: 0; }
.case-meta { margin: clamp(40px, 5vw, 72px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); border-top: 1px solid var(--line-strong); }
.case-meta > div { padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.case-meta dt { color: var(--fg-3); }
.case-meta dd { margin: 0; font-size: 15px; }
.case-cover { margin-top: clamp(40px, 5vw, 72px); }
.case-cover .gl-target { aspect-ratio: 16 / 9; border-radius: 4px; }

.case-block { padding-block: clamp(80px, 11vw, 180px); }
.case-block .grid { row-gap: 32px; }
.cb-label { grid-column: 1 / span 3; }
.cb-body { grid-column: 4 / span 9; }
.cb-body .h2 { font-size: clamp(30px, 3.8vw, 64px); }

.decisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin-top: clamp(40px, 5vw, 72px); }
.decision { border-top: 1px solid var(--line-strong); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.decision .num { font-size: 32px; line-height: 1; }
.decision h3 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(21px, 1.7vw, 27px); letter-spacing: -0.045em; line-height: 1.3; }
.decision p { margin: 0; color: var(--fg-2); font-size: 15px; }
.decision .k { font-size: 13px; color: var(--fg-3); }

/* 스크롤에 맞춰 화면이 흐르는 디바이스 */
.scroller { position: relative; height: 420vh; }
.scroller-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.scroller-stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.browser { grid-column: 1 / span 9; border-radius: 10px; background: #fff; box-shadow: 0 40px 80px -40px rgba(19, 18, 17, .45), 0 0 0 1px var(--line); overflow: hidden; }
.browser-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #ece9e2; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3cec4; }
.browser-bar span { margin-left: 12px; flex: 1; height: 20px; border-radius: 6px; background: #f7f5f1; font-family: var(--f-mono); font-size: 10.5px; color: #8d887f; display: flex; align-items: center; padding: 0 10px; }
.browser-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.phone { grid-column: 10 / span 3; justify-self: center; width: min(100%, 300px); border-radius: 38px; padding: 10px; background: #131211; box-shadow: 0 40px 80px -30px rgba(19, 18, 17, .55); }
.phone-view { position: relative; aspect-ratio: 9 / 19.5; overflow: hidden; border-radius: 29px; background: #fff; }
.phone-view::before { content: ""; position: absolute; left: 50%; top: 8px; width: 34%; height: 20px; border-radius: 99px; background: #131211; transform: translateX(-50%); z-index: 2; }
.strip { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.strip img { width: 100%; height: auto; display: block; }
.scroller-caption { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 40px); display: flex; justify-content: space-between; gap: 12px; }
.scroller-progress { width: min(240px, 30vw); height: 1px; background: var(--line); position: relative; align-self: center; }
.scroller-progress i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(20px, 3vw, 48px); }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; }
.gallery .g-a { grid-column: 1 / span 7; }
.gallery .g-b { grid-column: 8 / span 5; align-self: end; }
.gallery .g-c { grid-column: 1 / span 12; }
.gallery .g-d { grid-column: 1 / span 6; }
.gallery .g-e { grid-column: 7 / span 6; }
.gallery .gl-target { border-radius: 4px; }
.ar-3x2 { aspect-ratio: 3 / 2; }
.ar-1x1 { aspect-ratio: 1 / 1; }
.ar-16x9 { aspect-ratio: 16 / 9; }
.ar-4x5 { aspect-ratio: 4 / 5; }
.ar-3x4 { aspect-ratio: 3 / 4; }

.tall-frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.tall-frame .strip { transition: none; }

.palette { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-radius: 6px; overflow: hidden; margin-top: clamp(32px, 4vw, 56px); }
.swatch { aspect-ratio: 3 / 4; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; font-size: 13px; transition: flex .6s var(--ease-out); }
.swatch b { font-weight: 500; }
.swatch .mono { opacity: .8; }
.type-specimen { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); margin-top: var(--col-gap); }
.specimen { border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 2.4vw, 36px); display: flex; flex-direction: column; gap: 18px; min-height: 280px; justify-content: space-between; }
.specimen .big { font-size: clamp(72px, 9vw, 150px); line-height: .9; letter-spacing: -0.04em; }

.next-case { display: block; padding-block: clamp(80px, 10vw, 160px); border-top: 1px solid var(--line-strong); }
.next-case .grid { align-items: end; row-gap: 24px; }
.next-case .nc-label { grid-column: 1 / span 3; }
.next-case .nc-title { grid-column: 1 / span 8; }
.next-case .nc-title .display { font-size: clamp(44px, 8vw, 150px); transition: transform .8s var(--ease-out); }
.next-case:hover .nc-title .display { transform: translateX(clamp(8px, 1.4vw, 24px)); }
.next-case .nc-media { grid-column: 9 / span 4; }
.next-case .nc-media .gl-target { aspect-ratio: 3 / 2; border-radius: 4px; }
.note-ph { color: var(--fg-3); font-size: 13px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .site-header .clock { display: none; }
  .site-nav { grid-column: 5 / span 5; }
  .hero-bottom .display { grid-column: 1 / span 12; }
  .hero-bottom .hero-desc { grid-column: 1 / span 8; }
  .wc-1 { grid-column: 1 / span 12; }
  .wc-1-aside { grid-column: 1 / span 12; padding-bottom: 0; }
  .wc-2 { grid-column: 3 / span 10; }
  .wc-3 { grid-column: 1 / span 7; }
  .wc-cta { grid-column: 8 / span 5; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  body { font-size: 15.5px; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header .brand { grid-column: auto; }
  .site-header .brand img { height: 16px; }
  .site-nav, .site-header .cta-pill { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid currentColor; border-radius: 999px; font-size: 13.5px; }
  .site-header.menu-open { mix-blend-mode: normal; color: var(--paper); }
  .site-header.menu-open .brand img { filter: invert(1); }
  .grid > * { grid-column: 1 / -1 !important; }
  .hero { justify-content: flex-start; gap: 0; }
  .hero-mark { margin-block: auto; padding-block: 48px; }
  .hero-top .mono:nth-child(2) { display: none; }
  .hero-top .mono:nth-child(3) { text-align: left; }
  .hero-mark .mark-stage canvas { inset: -30% -4%; width: 108%; height: 160%; }
  .sec-head .sec-aside { max-width: 30em; }
  .statement .st-sub { grid-template-columns: 1fr; }
  .reel { height: 170vh; }
  .reel-frame { clip-path: inset(30% 8% 30% 8% round 10px); }
  .wc-2 .work-meta, .wc-1 .work-meta { margin-top: 14px; }
  .svc-row { grid-template-columns: 40px 1fr 28px; }
  .svc-row .num { grid-column: 1 !important; font-size: 18px; }
  .svc-row .svc-name { grid-column: 2 !important; }
  .svc-row .svc-en { display: none; }
  .svc-row .svc-plus { grid-column: 3 !important; }
  .svc-body-in { grid-template-columns: 1fr; row-gap: 18px; }
  .svc-body-in p, .svc-body-in ul { grid-column: 1 !important; }
  .day-card { grid-template-columns: 1fr; row-gap: 20px; min-height: 0; top: calc(var(--header-h) + 8px); }
  .day-glyph, .day-body { grid-column: 1 / -1; }
  .day-glyph { font-size: 96px; display: flex; align-items: flex-start; justify-content: space-between; }
  .day-glyph sup { top: .4em; }
  .next-case .nc-media { order: -1; }
  .facts > div { grid-template-columns: 96px 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols .fc-2, .foot-cols .fc-3 { grid-column: span 1 !important; }
  .case-meta { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .decisions { grid-template-columns: 1fr; row-gap: 36px; }
  .scroller { height: auto; }
  .scroller-sticky { position: relative; height: auto; padding-block: 24px; }
  .scroller-stage { grid-template-columns: 1fr; row-gap: 28px; }
  .browser { grid-column: 1; }
  .phone { grid-column: 1; width: 62%; }
  .scroller-caption { position: static; margin-top: 20px; }
  .browser-view { aspect-ratio: 4 / 5; }
  .browser-view .strip, .phone-view .strip { animation: none; }
  .palette { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .swatch { aspect-ratio: 1 / 2.4; padding: 10px; font-size: 11px; }
  .swatch b { writing-mode: vertical-rl; }
  .type-specimen { grid-template-columns: 1fr; }
}

/* 모바일 메뉴 */
.m-menu {
  position: fixed; inset: 0; z-index: 95; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-inout); visibility: hidden;
}
.m-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.m-menu a { font-family: var(--f-serif); font-size: 48px; letter-spacing: -0.05em; line-height: 1.2; }
.m-menu .mono { margin-top: 24px; opacity: .6; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reel { height: auto; }
  .reel-sticky { position: relative; height: 70vh; }
  .reel-frame { clip-path: none; }
  .scroller { height: auto; }
  .scroller-sticky { position: relative; height: auto; padding-block: 24px; }
  .statement .st-text .sw { opacity: 1; }
}
