/* naejin.com — design system from draft D: white ground, gray-scale type, Switzer + Pretendard. */
:root {
  --bg: #ffffff;
  --ink: #3a3d44;        /* titles */
  --ink-2: #6b6f78;      /* body */
  --mute: #9a9ea8;       /* labels, years, captions */
  --line: #e6e8ec;
  --rule: #c9ccd3;
  --panel: #f3f4f6;
  --card-lock: #1b1f2c;
  /* type scale — 7 steps only */
  --t-label: 12px; --t-meta: 14px; --t-body: 15.5px; --t-lead: 17px; --t-sub: 22px;
  --t-title: clamp(26px, 3vw, 38px); --t-display: clamp(34px, 4.4vw, 54px);
  --lh-display: 1.2; --lh-title: 1.3; --lh-text: 1.7; --lh-meta: 1.5;
  --ls-display: -0.03em; --ls-sub: -0.02em;
  --side: clamp(20px, 3.2vw, 44px);
  --gap: clamp(14px, 1.6vw, 22px);
  --max: 1560px;
  --text: 760px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink-2);
  font-family: "Switzer", "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  font-size: var(--t-body); line-height: var(--lh-text); letter-spacing: 0;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); }
.wrap { width: 100%; max-width: calc(var(--max) + var(--side) * 2); margin: 0 auto; padding: 0 var(--side); }
.k { font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* header / footer */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.mark { display: block; width: 30px; height: 30px; }
.mark svg { width: 30px; height: 30px; display: block; }
.mark circle { fill: #4a4d55; }
.site-nav { display: flex; gap: 26px; font-size: var(--t-meta); font-weight: 500; color: var(--mute); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { content: ""; display: block; height: 1px; background: var(--ink); margin-top: 2px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: clamp(72px, 9vw, 140px); padding-bottom: 36px; font-size: var(--t-meta); color: var(--mute); }
.site-footer a { color: var(--ink); }

/* phone frame (shared) */
.phone { border-radius: 6.6% / 3%; overflow: hidden; background: #0b0b0d; padding: 1.1%; box-shadow: 0 40px 70px -30px rgba(10, 10, 20, .45); }
.phone img, .phone video { display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; border-radius: 5.8% / 2.6%; background: #0b0b0d; }   /* bezel colour: no white hairline where the screen edge rounds off on phones */
.browser { border-radius: 0; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 50px -28px rgba(10, 12, 20, .45); }
.browser .bar { height: 26px; background: #e9eaee; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: #c6c8ce; }
.browser img { width: 100%; height: auto; }

/* ============ home ============ */
.strip { display: flex; justify-content: space-between; padding: clamp(28px, 4vw, 56px) 0 14px; border-bottom: 1px solid var(--rule); }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) var(--gap); padding-top: var(--gap); }
.tile { display: block; }
.w7 { grid-column: span 7; } .w5 { grid-column: span 5; }
.frame { position: relative; overflow: hidden; border-radius: 0; background: var(--panel); height: clamp(360px, 40vw, 600px); display: flex; align-items: flex-end; justify-content: center; }
.stack { position: absolute; left: 50%; bottom: -8%; transform: translateX(-50%); display: flex; gap: 4%; height: 96%; align-items: flex-end; }
.stack .phone { height: 100%; aspect-ratio: 1206 / 2622; padding: 1.1%; transform: translateY(var(--y, 0)); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.stack .phone img, .stack .phone video { width: 100%; height: 100%; object-fit: cover; background: #0b0b0d; }
.tile:hover .stack .phone { --y: -4%; }
.frame .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .cover { transform: scale(1.03); }
.window { position: absolute; left: 10%; right: 10%; top: 9%; bottom: -2%; border-radius: 0; overflow: hidden; background: #fff; box-shadow: 0 40px 70px -30px rgba(10, 10, 20, .5); }
.window .bar { height: 26px; background: #e4e7ee; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.window .bar i { width: 8px; height: 8px; border-radius: 50%; background: #c9c9c9; }
.window .view { position: absolute; inset: 26px 0 0; overflow: hidden; }
.window .view img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; animation: crawl 22s ease-in-out infinite alternate; }
/* pans the long page inside the window; object-position needs no measured heights, so it never leaves a blank area on phones */
@keyframes crawl { from { object-position: 50% 0%; } to { object-position: 50% 100%; } }
.frame.locked { background: var(--panel); align-items: center; justify-content: flex-start; }
.frame.locked .lock-body { position: relative; padding: 0 clamp(24px, 4vw, 48px); max-width: 560px; }
.frame.locked strong { display: block; font-size: var(--t-sub); line-height: 1.3; font-weight: 500; color: #fff; }
.frame.locked p { margin: 16px 0 0; font-size: var(--t-lead); line-height: var(--lh-meta); color: rgba(255, 255, 255, .85); }
.frame.locked p.sub { margin-top: 8px; font-size: var(--t-meta); color: rgba(255, 255, 255, .55); }
.frame.locked span { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--t-meta); color: rgba(255, 255, 255, .5); }
.frame.locked svg { width: 15px; height: 15px; }
.frame.locked .lock-body > svg { display: block; width: 22px; height: 22px; margin-bottom: 18px; color: rgba(255, 255, 255, .55); }
.frame.locked::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 85% 20%, rgba(255, 255, 255, .07), transparent 70%); }
.cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin-top: 14px; }
.cap .k { margin: 0 0 6px; }
.cap h3 { margin: 0; font-size: var(--t-sub); font-weight: 500; letter-spacing: var(--ls-sub); }
.cap p { margin: 3px 0 0; font-size: var(--t-body); color: var(--ink-2); }
.cap .yr { font-size: var(--t-meta); color: var(--mute); padding-top: 24px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.archive { margin-top: clamp(72px, 8vw, 120px); }
.archive > .k { display: block; margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.archive .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: var(--t-body); }
.archive .row .name { grid-column: 1 / 4; color: var(--ink); font-weight: 500; }
.archive .row .desc { grid-column: 4 / 9; color: var(--ink-2); }
.archive .row .tag { grid-column: 9 / 11; color: var(--mute); font-size: var(--t-meta); }
.archive .row .yr { grid-column: 11 / 13; text-align: right; white-space: nowrap; color: var(--mute); font-size: var(--t-meta); font-variant-numeric: tabular-nums; }
a.archive-link:hover .name { text-decoration: underline; text-underline-offset: 4px; }

/* ============ case pages ============ */
.case-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 120px); align-items: center; padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.kicker { margin: 0 0 18px; }
.case-hero h1 { margin: 0; font-size: var(--t-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: 500; }
.case-hero .lead { margin: 26px 0 0; font-size: var(--t-lead); line-height: var(--lh-text); color: var(--ink-2); max-width: 38em; }
.facts { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 16px; margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: var(--t-meta); max-width: 42em; }
.facts dt { color: var(--mute); }
.facts dd { margin: 0; color: var(--ink-2); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.links a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-meta); font-weight: 500; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink); }
.links a:hover { border-color: var(--ink); }
.case-hero .phone { width: clamp(240px, 22vw, 290px); }
.hero-note { margin: 14px 0 0; font-size: var(--t-meta); color: var(--mute); text-align: center; }
.hero-shot .browser { width: clamp(300px, 28vw, 420px); max-height: 720px; }
.hero-shot .browser img { object-fit: cover; object-position: top; max-height: 694px; }
.hero-shot .phones { gap: 14px; }
.hero-shot .phones figure { flex: 0 0 170px; }
.hero-shot .phones .phone { width: 100%; }

.section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.section .label { margin: 0 0 14px; }
.section h2 { margin: 0; max-width: 18em; font-size: var(--t-title); line-height: var(--lh-title); letter-spacing: var(--ls-display); font-weight: 500; }
.section .lead { margin: 20px 0 0; max-width: var(--text); font-size: var(--t-lead); line-height: var(--lh-text); color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.blocks { display: grid; gap: 20px; margin-top: 30px; max-width: var(--text); }
.blocks h4, .notes h4 { margin: 0 0 6px; font-size: var(--t-body); font-weight: 600; letter-spacing: -0.01em; }
.blocks p, .notes p { margin: 0; color: var(--ink-2); font-size: var(--t-body); line-height: var(--lh-text); }
.blocks.after { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.panel { margin-top: clamp(28px, 4vw, 44px); padding: clamp(28px, 4.5vw, 64px) clamp(20px, 3vw, 48px); border-radius: 0; background: var(--panel); }
.split .panel { margin-top: 0; }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.6vw, 40px); }
.phones figure { margin: 0; flex: 0 1 280px; min-width: 0; }
.phones figcaption, .browsers figcaption, .shots figcaption, .boards figcaption, .wide figcaption { margin-top: 16px; font-size: var(--t-meta); line-height: var(--lh-meta); color: var(--ink-2); text-align: center; }
.phones figcaption b, .shots figcaption b { display: block; margin-bottom: 2px; font-size: var(--t-label); font-weight: 600; color: var(--mute); letter-spacing: 0.04em; }
.browsers, .shots { display: grid; gap: clamp(16px, 2.6vw, 40px); align-items: start; }
.browsers.n1, .shots.n1 { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.browsers.n2, .shots.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shots.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.browsers figure, .shots figure { margin: 0; min-width: 0; width: 100%; }
.browsers.n1 figure { max-width: 820px; }
.shots.n1 figure { max-width: 960px; }
.shot { border-radius: 0; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 16px 40px -24px rgba(10, 12, 20, .35); }
.shot img { width: 100%; height: auto; }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 4vw, 44px); }
.notes.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; }
.notes.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.notes > div { padding-top: 16px; border-top: 1px solid var(--rule); }
.footnote { margin: 22px 0 0; font-size: var(--t-meta); color: var(--mute); }
.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.boards figure { margin: 0; }
.boards img { width: 100%; border-radius: 0; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 16px 40px -24px rgba(10, 12, 20, .35); }
.boards figcaption { grid-column: 1 / -1; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.cards .card { padding: 22px 20px; border-radius: 0; background: var(--panel); }
.cards h4 { margin: 0 0 14px; font-size: var(--t-body); font-weight: 600; }
.cards .k { margin: 12px 0 2px; }
.cards .first { margin: 0; font-size: var(--t-meta); color: var(--ink-2); line-height: var(--lh-meta); }
.cards .chose { margin: 0; font-size: var(--t-body); font-weight: 600; color: var(--ink); line-height: 1.5; letter-spacing: -0.01em; }
.cards .why { margin: 0; font-size: var(--t-meta); color: var(--ink-2); line-height: var(--lh-meta); }
.steps-wrap, .columns-wrap, .stats-wrap, .flow-wrap { margin-top: clamp(28px, 4vw, 44px); }
.steps-wrap > .k, .columns-wrap > .k, .stats-wrap > .k, .flow-wrap > .k, .sources > .k { display: block; margin: 0 0 14px; }
.steps { display: grid; gap: 28px; }
.steps.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps > div { padding-top: 16px; border-top: 1px solid var(--rule); }
.steps > div .k { display: block; margin: 0 0 8px; }
.steps h4 { margin: 0 0 8px; font-size: var(--t-sub); font-weight: 500; letter-spacing: var(--ls-sub); }
.steps p { margin: 0; font-size: var(--t-meta); line-height: var(--lh-meta); color: var(--ink-2); }
.columns { display: grid; gap: 14px; }
.columns.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.columns.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.columns.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.columns > div { padding: 20px; border-radius: 0; background: var(--panel); }
.columns > div.hi { background: var(--ink); color: #fff; }
.columns > div.hi h4 { color: #fff; }
body.case.dark .columns > div.hi { background: #f2f1ee; color: #3a3d44; }      /* inverted card on dark pages: light card, dark text */
body.case.dark .columns > div.hi h4 { color: #1f2430; }
body.case.dark .columns > div.hi .k, body.case.dark .columns > div.hi small { color: #7c8290; }
.columns h4 { margin: 0 0 4px; font-size: var(--t-lead); font-weight: 600; }
.columns .sub { margin: 0 0 10px; font-size: var(--t-meta); opacity: .72; }
.columns p { margin: 0; font-size: var(--t-meta); line-height: var(--lh-meta); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: var(--t-body); font-weight: 500; color: var(--ink); }
.flow .arrow { color: var(--mute); font-weight: 400; }
.flowpanel { padding: 24px 28px; margin-top: 28px; }
.sources { margin-top: 34px; max-width: 1000px; }
.sources .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--t-body); line-height: var(--lh-text); }
.sources .row .src { color: var(--mute); font-size: var(--t-meta); white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stats strong { display: block; font-size: var(--t-display); font-weight: 500; letter-spacing: var(--ls-display); line-height: 1; color: var(--ink); }
.stats p { margin: 10px 0 0; font-size: var(--t-meta); color: var(--ink-2); }
.stats small { display: block; margin-top: 4px; font-size: var(--t-meta); color: var(--mute); }
.callout { margin-top: 30px; padding: 22px 28px; border-left: 2px solid var(--ink); background: var(--panel); border-radius: 0; max-width: 960px; }
.callout .k { display: block; margin: 0 0 6px; }
.callout p:not(.k) { margin: 0; font-size: var(--t-lead); font-weight: 500; line-height: 1.5; letter-spacing: -0.015em; color: var(--ink); }
.callout p.note { margin-top: 10px; font-size: var(--t-meta); font-weight: 400; color: var(--ink-2); }
.ttable-wrap { margin-top: clamp(28px, 4vw, 44px); }
.ttable-wrap > .k { display: block; margin: 0 0 14px; }
.ttable .tr { display: grid; gap: clamp(16px, 2.4vw, 32px); padding: 18px 0; border-top: 1px solid var(--line); font-size: var(--t-body); line-height: var(--lh-text); color: var(--ink-2); }

.ttable.n2 .tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.ttable.n3 .tr { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); }
.ttable .tr.th { padding: 0 0 12px; border-top: 0; font-size: var(--t-meta); font-weight: 600; color: var(--mute); }
.ttable .ink { color: var(--ink); }
.ttable .b { font-weight: 600; letter-spacing: -0.01em; }
.gate-panel { align-self: center; }
.gate { padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3.4vw, 48px); background: var(--dark); color: #fff; }
.gate .k { display: block; margin: 0 0 12px; }
.gate h3 { margin: 0; font-size: var(--t-sub); line-height: 1.35; font-weight: 700; letter-spacing: var(--ls-sub); color: #fff; }
.gate .body { margin: 14px 0 0; font-size: var(--t-meta); line-height: var(--lh-meta); color: rgba(255, 255, 255, .72); }
.gate ul { margin: 22px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 12px; }
.gate li { font-size: var(--t-body); line-height: var(--lh-text); font-weight: 500; color: #fff; }
.gate .lead { margin: 0 0 14px; font-size: var(--t-body); line-height: var(--lh-text); color: #fff; }
.gate .rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 6px; }
.gate .stat { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.gate .stat:first-child { border-top: 0; padding-top: 4px; }
.gate .stat strong { font-size: var(--t-sub); font-weight: 700; letter-spacing: var(--ls-sub); line-height: 1.2; color: var(--accent); }
.gate .stat:first-child strong { color: #fff; }
.gate .stat p { margin: 0; font-size: var(--t-meta); line-height: var(--lh-meta); color: rgba(255, 255, 255, .8); }

.wide { margin: 0; }
.wide img { width: 100%; height: auto; border-radius: 0; }
.wide.small { text-align: center; }
.wide.small img { width: min(100%, 208px); }
.wide .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 10px; }
.wide .cols span { font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.next-case { display: block; padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.next-case small { display: block; margin-bottom: 12px; }
.next-case strong { display: block; max-width: 18em; font-size: var(--t-title); line-height: var(--lh-title); letter-spacing: var(--ls-display); font-weight: 500; color: var(--ink); }
.next-case:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }

/* ============ case theme (from the deck) ============ */
body.case.dark { --bg: var(--dark); --ink: #f2f1ee; --ink-2: #c9c8c4; --mute: #8b8a86; --line: #232634; --rule: #3a3d4c; }
body.case.dark .mark circle { fill: #f2f1ee; }
body.case.dark .mark path { stroke: #0c0e14; }
body.case.dark .shot, body.case.dark .browser { box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .8); }
.hero-band { background: var(--dark); color: rgba(255, 255, 255, .82); }
.hero-band .case-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero-band h1 { color: #fff; }
.hero-band .lead { color: rgba(255, 255, 255, .78); }
.hero-band .facts { border-top-color: rgba(255, 255, 255, .18); }
.hero-band .facts dt { color: rgba(255, 255, 255, .5); }
.hero-band .facts dd { color: rgba(255, 255, 255, .82); }
.hero-band .links a { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-band .links a:hover { border-color: #fff; }
.hero-band .hero-note { color: rgba(255, 255, 255, .5); }
body.case.hero-light .hero-band { color: var(--ink-2); }
body.case.hero-light .hero-band h1, body.case.hero-light .hero-band .facts dd, body.case.hero-light .hero-band .links a { color: var(--ink); }
body.case.hero-light .hero-band .lead { color: var(--ink-2); }
body.case.hero-light .hero-band .facts { border-top-color: rgba(20, 30, 60, .14); }
body.case.hero-light .hero-band .facts dt, body.case.hero-light .hero-band .hero-note { color: var(--mute); }
body.case.hero-light .hero-band .links a { border-color: rgba(20, 30, 60, .28); }
body.case.hero-light .hero-band .links a:hover { border-color: var(--ink); }
.case-hero .kicker { display: flex; align-items: center; gap: 10px; }
.case-hero .kicker .mark { width: 28px; height: 28px; border-radius: 7px; }
.hero-band .kicker, .case .section .label, .case .next-case small { color: var(--accent); text-transform: none; letter-spacing: 0; font-size: var(--t-meta); font-weight: 600; }
.case h1, .case .section h2, .case .next-case strong { font-weight: 700; }
.case .blocks h4 { color: var(--accent); }
.case .notes > div { border-top: 0; border-left: 3px solid var(--accent-soft); padding: 2px 0 2px 16px; }
.case .steps > div { border-top-color: var(--accent-soft); }
.case .callout { border-left-color: var(--accent); }
.case .cards .chose, .case .stats strong { color: var(--ink); }
.case .cards .k, .case .steps .k, .case .columns-wrap > .k, .case .stats-wrap > .k, .case .flow-wrap > .k, .case .sources > .k, .case .steps-wrap > .k, .case .callout .k, .case .ttable-wrap > .k, .case .gate .k { color: var(--accent); text-transform: none; letter-spacing: 0; font-weight: 600; }
.case .ttable .tr.th .hi { color: var(--accent); }
.case .section { border-top-color: var(--line); }
.case .section:first-child { border-top: 0; }

/* ============ archive pages ============ */
.arch-head { padding: clamp(32px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); max-width: 860px; }
.arch-head h1 { margin: 0; font-size: var(--t-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: 500; }
.arch-intro { margin-top: 22px; }
.arch-intro p { margin: 0 0 12px; font-size: var(--t-lead); line-height: var(--lh-text); color: var(--ink-2); }
.arch-stack { display: grid; gap: 0; padding-bottom: clamp(24px, 4vw, 48px); }
.arch-img { margin: 0; }
.arch-img img { width: 100%; height: auto; border-radius: 0; background: var(--panel); }

/* ============ about ============ */
.about-head { padding: clamp(40px, 7vw, 96px) 0 clamp(24px, 4vw, 40px); }
.about-head h1 { margin: 0; font-size: var(--t-display); letter-spacing: var(--ls-display); line-height: var(--lh-display); font-weight: 500; }
.about-head h1 span { color: var(--mute); font-weight: 400; }
.about-head .role { margin: 12px 0 0; font-size: var(--t-lead); color: var(--ink-2); }
.about-head .contact { margin: 18px 0 0; font-size: var(--t-meta); color: var(--mute); }
.about-head .contact a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.cv { padding-bottom: clamp(56px, 8vw, 96px); }
.cv h2 { margin: 0; padding: clamp(28px, 4vw, 44px) 0 20px; font-size: var(--t-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.job { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 40px; padding: 0 0 clamp(44px, 5vw, 64px); align-items: baseline; }
.job .when { font-size: var(--t-meta); color: var(--mute); font-variant-numeric: tabular-nums; }
.job h3 { margin: 0; font-size: var(--t-sub); letter-spacing: var(--ls-sub); font-weight: 500; }   /* hierarchy by size: company 22 › summary 17 › role 600 › project 500 › bullets 400 */
.job .title { margin: 2px 0 0; color: var(--ink-2); font-size: var(--t-body); }
.job .summary { margin: 16px 0 0; color: var(--ink); font-size: var(--t-lead); font-weight: 400; }
.job h4 { margin: 26px 0 8px; font-size: var(--t-body); font-weight: 600; color: var(--ink); line-height: var(--lh-meta); }
.job h4.role { margin-top: 34px; }
.job h4.proj { font-weight: 500; }
.job h4 strong { font-weight: inherit; }                         /* the <strong> in the content would otherwise make every project name 700 */
.job h4 .dash { font-weight: 400; color: var(--mute); }
.job .period { margin: 26px 0 0; font-size: var(--t-meta); font-weight: 500; color: var(--mute); font-variant-numeric: tabular-nums; }
.job .period + h4, .job h4.role + h4 { margin-top: 10px; }
.job ul { margin: 8px 0 0; padding: 0 0 0 16px; list-style: none; color: var(--ink-2); font-size: var(--t-body); }
.job li { margin: 6px 0; position: relative; }                /* bullets sit inside the text column with a hanging indent at every width (about page, /resume/, PDF) */
.job li::before { content: "•"; position: absolute; left: -16px; color: var(--mute); }

/* ============ lock / 404 ============ */
.lock-page { min-height: calc(100svh - 84px); display: grid; place-items: center; padding-top: 24px; padding-bottom: 96px; }   /* keeps .wrap's side gutter */
.lock-box { width: 100%; max-width: 440px; }
.lock-box h1 { margin: 0; font-size: var(--t-title); line-height: var(--lh-title); letter-spacing: var(--ls-display); font-weight: 500; }
.lock-box p { color: var(--ink-2); margin: 16px 0 0; }
.lock-box .lock-sum { color: var(--ink); font-weight: 500; }
.lock-box .kicker { display: block; margin: 0 0 14px; }
.lock-box form { display: flex; gap: 10px; margin-top: 28px; }
.lock-box input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; font: inherit; font-size: var(--t-body); border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); outline: none; }
.lock-box input:focus { border-color: var(--ink); }
.lock-box button { height: 50px; padding: 0 22px; font: inherit; font-weight: 500; color: #fff; background: var(--ink); border: 0; border-radius: 6px; cursor: pointer; }
.lock-box .error { color: #b4382a; font-size: var(--t-meta); margin-top: 12px; }

@media (min-width: 900px) { br.m { display: none; } }
@media (max-width: 899px) {
  br.d { display: none; }
  .w7, .w5 { grid-column: 1 / -1; }
  .tiles { row-gap: 0; }
  .tile { padding: 32px 0; border-bottom: 1px solid var(--line); }  /* stacked work items end with a hairline, like the Archive rows and the about-page jobs */
  .tile:first-child { padding-top: 0; }
  .tile:last-child { border-bottom: 0; }
  .frame { height: auto; aspect-ratio: 4 / 3; }
  .frame:has(.stack) { aspect-ratio: 1 / 1; }              /* phones get room on a phone */
  .lock-page { min-height: 0; place-items: start; padding-top: 40px; }
  .cap { display: block; position: relative; }             /* year sits on the kicker row, so the description gets the full width */
  .cap .yr { position: absolute; right: 0; top: 0; padding-top: 0; line-height: 1.5; }
  .stack { bottom: -5%; height: 94%; }
  .archive .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .archive .row .name { grid-column: 1; }
  .archive .row .yr { grid-column: 2; grid-row: 1; }
  .archive .row .desc, .archive .row .tag { grid-column: 1 / -1; }
  .case-hero { grid-template-columns: minmax(0, 1fr); }
  .case-hero .phone { justify-self: center; width: min(72vw, 290px); }
  .hero-shot .browser { width: 100%; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .notes, .notes.two, .notes.four, .cards, .steps.n3, .steps.n4, .columns.n2, .columns.n3, .columns.n4, .stats, .shots.n2, .shots.n3, .shots.n4, .browsers.n2, .boards { grid-template-columns: minmax(0, 1fr); }
  .phones { overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .phones figure { flex: 0 0 64%; scroll-snap-align: center; }
  .sources .row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sources .row .src { white-space: normal; }
  .ttable .tr.th { display: none; }
  .ttable.n2 .tr, .ttable.n3 .tr { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ttable .tr > span[data-k]:not(:first-child)::before { content: attr(data-k); display: block; margin-bottom: 2px; font-size: var(--t-label); font-weight: 600; color: var(--mute); }
  .job { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  .job + .job { border-top: 1px solid var(--line); padding-top: 28px; }   /* the date column that separates jobs on desktop stacks on phones, so a hairline takes its place */
}
@media (prefers-reduced-motion: reduce) {
  .stack .phone { transition: none; }
  .window .view img, .art .shot.seq img { animation: none; }
  .art .shot.seq img:last-child { opacity: 1; }                 /* hold on the organized result */
}

/* ============ resume (/resume/ → PDF) — 사이트 글꼴 그대로, 선 없이 여백으로, 왼쪽 열에 회사·직함·기간 ============ */
@page { size: A4; margin: 18mm 18mm 20mm; }
body.resume { background: #fff; color: var(--ink); display: block; }
body.resume .sheet { max-width: 880px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 16px 96px; }
.rhead { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0 40px; align-items: start; margin-bottom: 64px; }
.rhead h1 { margin: 0; font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
/* header follows the 2026.07 resume: every line one size and one colour on one line pitch, one empty line before the contact,
   and the top of the name lines up with the top of the first line */
.rhead .role, .rhead .tags, .rhead .contact { margin: 0; font-size: var(--t-meta); color: var(--ink); line-height: 1.6; }
.rhead .contact { margin-top: 1.6em; }
body.resume .cv { padding: 0; }
body.resume .cv h2 { margin: 48px 0 24px; padding: 0; border: 0; font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--ink); break-after: avoid; }
.rjob { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0 40px; padding: 0 0 48px; break-inside: avoid; align-items: baseline; }
.rjob .who h2 { margin: 0; }
.rjob h3 { margin: 0; font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; break-after: avoid; }
.rjob .title { margin: 4px 0 0; font-size: var(--t-meta); color: var(--mute); line-height: 1.5; }
.rjob .when { margin: 14px 0 0; font-size: var(--t-meta); color: var(--mute); font-variant-numeric: tabular-nums; }
.rjob .summary { margin: 0; font-size: var(--t-body); font-weight: 500; color: var(--ink); line-height: var(--lh-text); break-after: avoid; }
.rjob h4 { margin: 22px 0 6px; font-size: var(--t-body); font-weight: 600; color: var(--ink); line-height: var(--lh-meta); break-after: avoid; }
.rjob h4.role { margin-top: 30px; }
.rjob h4.proj { font-weight: 500; }
.rjob h4 .dash { font-weight: 400; color: var(--mute); }
.rjob .period { margin: 22px 0 0; font-size: var(--t-meta); font-weight: 500; color: var(--mute); font-variant-numeric: tabular-nums; break-after: avoid; }
.rjob .period + h4, .rjob h4.role + h4 { margin-top: 8px; }
.rjob ul { margin: 8px 0 0; padding: 0 0 0 16px; list-style: none; font-size: var(--t-body); color: var(--ink-2); line-height: var(--lh-text); }
.rjob li { margin: 5px 0; break-inside: avoid; position: relative; }
.rjob li::before { content: "•"; position: absolute; left: -16px; color: var(--mute); }
@media print {
  body.resume { font-size: 8pt; }
  body.resume .sheet { max-width: none; padding: 0; }
  .rhead { grid-template-columns: 40mm minmax(0, 1fr); gap: 0 8mm; margin-bottom: 40px; }
  .rhead h1 { font-size: 30pt; }
  .rhead .role, .rhead .tags, .rhead .contact { font-size: 7.5pt; }
  body.resume .cv h2 { margin: 30px 0 16px; font-size: 9.5pt; }
  .rjob { grid-template-columns: 40mm minmax(0, 1fr); gap: 0 8mm; padding: 0 0 30px; }
  .rjob h3 { font-size: 9pt; }
  .rjob .title, .rjob .when { font-size: 7pt; }
  .rjob .when { margin-top: 10px; }
  .rjob .summary { font-size: 8pt; line-height: 1.6; }
  .rjob h4 { font-size: 8pt; margin: 12px 0 2px; }
  .rjob h4.role { margin-top: 16px; }
  .rjob .period { font-size: 7pt; margin-top: 12px; }
  .rjob .period + h4, .rjob h4.role + h4 { margin-top: 4px; }
  .rjob ul { font-size: 7.5pt; line-height: 1.6; margin-top: 4px; }
  .rjob ul { padding-left: 10px; }
  .rjob li::before { left: -10px; }
  .rjob li { margin: 2px 0; }
  /* a long job continues on the next page between its groups, so a whole job pushed down doesn't leave half a page empty */
  .rjob { break-inside: auto; }
  .rjob.keep, .rjob ul { break-inside: avoid; }
}

/* ============ cover compositions (case hero + home tiles), 2026-10-22 — same pieces as the deck covers ============ */
.art { position: relative; }
.art .shot { overflow: hidden; background: #0b0b0d; }
.art .shot img, .art .shot video { display: block; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; }
/* four real screens one after another (save → organizing → organized → result), 12s loop; the first stays underneath */
.art .shot.seq { position: relative; }
.art .shot.seq img + img { position: absolute; inset: 0; opacity: 0; }
.art .shot.seq img:nth-child(2) { animation: seq-2 12s infinite; }
.art .shot.seq img:nth-child(3) { animation: seq-3 12s infinite; }
.art .shot.seq img:nth-child(4) { animation: seq-4 12s infinite; }
@keyframes seq-2 { 0%, 21.7% { opacity: 0; } 25%, 41.7% { opacity: 1; } 41.8%, 100% { opacity: 0; } }
@keyframes seq-3 { 0%, 38.3% { opacity: 0; } 41.7%, 63.3% { opacity: 1; } 63.4%, 100% { opacity: 0; } }
@keyframes seq-4 { 0%, 60% { opacity: 0; } 63.3%, 96.7% { opacity: 1; } 100% { opacity: 0; } }
/* wall: five staggered columns tilted like the LULU cover; --pw is one phone's width */
.wall-art { position: absolute; inset: 0; overflow: hidden; }
.wall-art .wall { position: absolute; left: var(--wx, 8%); top: var(--wy, -26%); display: grid; grid-template-columns: repeat(5, var(--pw)); gap: calc(var(--pw) * .147); transform: rotateX(52deg) rotateZ(-34deg); transform-origin: 50% 50%; }
.wall-art .col { display: flex; flex-direction: column; gap: calc(var(--pw) * .147); margin-top: calc(var(--mt) * var(--pw) / 300); }
.wall-art .shot { width: var(--pw); border-radius: calc(var(--pw) * .113); box-shadow: calc(var(--pw) * -.1) calc(var(--pw) * .17) calc(var(--pw) * .23) rgba(0, 0, 0, .45); }
.wall-art .fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--panel) 0%, var(--panel) 12%, rgba(0, 0, 0, 0) 40%); pointer-events: none; }
.wall-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 78% 30%, rgba(52, 74, 130, .55), rgba(11, 20, 38, 0) 70%); }
/* trio: three phones, the middle one in front */
.trio-art { position: absolute; inset: 0; }
.trio-art .trio { position: absolute; inset: 0; }
.trio-art .ph { position: absolute; width: var(--pw); padding: calc(var(--pw) * .033); border-radius: calc(var(--pw) * .173); background: linear-gradient(150deg, #34363d, #0e0f12 55%, #26282e); box-shadow: inset 0 0 0 1.5px #44474f, 0 50px 100px rgba(20, 40, 100, .3); }
.trio-art .ph .shot { border-radius: calc(var(--pw) * .14); }
.trio-art .p0 { left: 2%; top: 22%; }
.trio-art .p1 { left: 32%; top: 6%; z-index: 2; width: calc(var(--pw) * 1.1); box-shadow: inset 0 0 0 1.5px #44474f, 0 60px 120px rgba(20, 40, 100, .4); }
.trio-art .p2 { left: 66%; top: 22%; }
/* steps: three white-matted screens stepping up to the right, numbered */
.steps-art { position: absolute; inset: 0; }
.steps-art .steps-row { position: absolute; inset: 0; }
.steps-art .step { position: absolute; width: var(--pw); display: flex; flex-direction: column; gap: 14px; }
.steps-art .step span { display: flex; align-items: center; gap: 10px; font-size: var(--t-meta); color: #c9ccd3; }
.steps-art .step b { width: 24px; height: 24px; border-radius: 50%; background: #2a2c33; color: #fff; font-size: 12px; font-weight: 500; display: grid; place-items: center; }
.steps-art .s2 b { background: var(--accent); }
.steps-art .shot { padding: 6px; background: #fff; border-radius: 18px; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.steps-art .shot img { aspect-ratio: auto; border-radius: 0; }
.steps-art .s0 { left: 0; top: 26%; } .steps-art .s1 { left: 34%; top: 14%; } .steps-art .s2 { left: 68%; top: 2%; }
/* visual: one key image */
.visual-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; }
.visual-art img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
/* the hero band as the cover: text on the left, the composition spanning the whole band behind/beside it */
.hero-band.art { position: relative; container-type: inline-size; overflow: hidden; }
.hero-band.art .case-hero { grid-template-columns: minmax(0, 50%) minmax(0, 1fr); gap: 0; align-items: center; min-height: min(56cqw, 760px); padding: 48px 0; }
.hero-band.art .case-hero > div:first-child { position: relative; z-index: 2; }
.hero-band.art h1 { font-size: clamp(30px, 3.2vw, 46px); }
.hero-band.art .lead { max-width: 30em; }
@media (min-width: 900px) {
  .hero-band.art .case-hero > div:last-child { position: static; }
  .hero-band.art .art { position: absolute; inset: 0; }
  .hero-band.wall .art { --pw: 15.6cqw; --wx: 40cqw; --wy: -24%; --panel: var(--dark); }
  .hero-band.wall .fade { background: linear-gradient(90deg, var(--dark) 0%, var(--dark) 34%, rgba(0, 0, 0, 0) 58%); }
  .hero-band.trio .art { --pw: 16cqw; }
  .hero-band.trio .trio { inset: 8% 2cqw 8% 50cqw; }
  .hero-band.steps .art { --pw: 15cqw; }
  .hero-band.steps .steps-row { inset: 6% 2cqw 4% 52cqw; }
  .hero-band.visual .visual-art img { position: absolute; left: 46cqw; width: 56cqw; top: 50%; transform: translateY(-50%); max-height: none; }
  .hero-band.art.visual { background: #1a202c; }                 /* the Fanto key visual's own ground, so its edges disappear */
}
/* home tiles */
.frame.art-frame { container-type: inline-size; }
.frame.wall .art { --pw: 24cqw; --wx: 4%; --wy: -36%; }
.frame.trio .art { --pw: 28cqw; }
@media (max-width: 899px) {
  .hero-band.art .case-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 40px 0 0; }
  .hero-band.art .case-hero > div:last-child { position: relative; container-type: inline-size; min-height: 0; aspect-ratio: 4 / 3; margin: 32px -16px 0; }
  .hero-band.trio .case-hero > div:last-child { aspect-ratio: 1 / 1; }
  .hero-band.steps .case-hero > div:last-child { aspect-ratio: 4 / 5; }
  .hero-band.visual .case-hero > div:last-child { aspect-ratio: 1880 / 830; }
  .hero-band.wall .art { --panel: var(--dark); }
  .hero-band.art h1 { font-size: var(--t-display); }
  .hero-band.wall .art { --pw: 30cqw; --wx: 6%; --wy: -40%; }
  .hero-band.trio .art { --pw: 30cqw; }
  .hero-band.steps .art { --pw: 26cqw; }
  .frame.wall .art { --pw: 36cqw; --wx: 2%; --wy: -46%; }
  .frame.trio .art { --pw: 38cqw; }
}
