/* Layout: single 1120px column; alternating media/text project rows; detail pages = image hero + meta strip + KEY/DECISION blocks + slide strip */
:root {
  --bg: #f7f5f4;
  --surface: #ffffff;
  --ink: #18171a;
  --ink-2: #4b4a50;
  --muted: #76757b;
  --line: #e7e3e1;
  --accent: #c8102e;
  --accent-ink: #a50d26;
  --accent-soft: #fbe9ec;
  --ice: #2f6fa3;
  --ice-soft: #e6f0f8;
  --live: #1f7a4d;
  --live-soft: #ecf7f1;
  --on-media: #ffffff;
  --media-shade: rgba(10, 10, 14, .74);
  --radius: 14px;
  --wrap: 1120px;
  --f-display: "Gothic A1", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121214; --surface: #1b1b1f; --ink: #f1f0ee; --ink-2: #c4c3c7; --muted: #908f95;
    --line: #2d2c31; --accent: #ff5a6e; --accent-ink: #ff7a8a; --accent-soft: #3a1a21;
    --ice: #7fb6e6; --ice-soft: #172633; --live: #6fd3a0; --live-soft: #15281f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121214; --surface: #1b1b1f; --ink: #f1f0ee; --ink-2: #c4c3c7; --muted: #908f95;
  --line: #2d2c31; --accent: #ff5a6e; --accent-ink: #ff7a8a; --accent-soft: #3a1a21;
  --ice: #7fb6e6; --ice-soft: #172633; --live: #6fd3a0; --live-soft: #15281f; color-scheme: dark;
}

*, ::before, ::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.75;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 8px 12px; }

/* header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand b { font-family: var(--f-display); font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.brand span { font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }

/* buttons & chips */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s, background .15s; cursor: pointer; font-family: var(--f-body); line-height: 1.3;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-media); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-family: var(--f-mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: .05em; border: 1px solid var(--line);
  color: var(--ink-2); background: var(--surface); line-height: 1.7;
}
.chip.boss { background: var(--accent); border-color: var(--accent); color: var(--on-media); }
.chip.stage { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.ue { background: var(--ice-soft); border-color: var(--ice); color: var(--ice); }
.chip.live { color: var(--live); border-color: var(--live); background: var(--live-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.eyebrow {
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  color: var(--accent); text-transform: uppercase; margin: 0 0 12px;
}

/* hero */
.hero { position: relative; display: flex; align-items: flex-end; color: var(--on-media); overflow: hidden; background: #1a1418; min-height: 620px; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 45%, var(--media-shade) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: 120px 56px; width: 100%; }
.hero .eyebrow { color: #ffd0d6; }
.hero h1 { font-size: clamp(32px, 5.6vw, 60px); line-height: 1.2; letter-spacing: -.03em; font-weight: 800; margin: 0 0 18px; max-width: 900px; }
.hero p.lead { font-size: clamp(16px, 2vw, 18.5px); max-width: 660px; margin: 0 0 28px; color: rgba(255,255,255,.88); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .credit { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 14px; z-index: 1; font-size: 11.5px; color: rgba(255,255,255,.55); font-family: var(--f-mono); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 28px; max-width: 900px; }
.stat { background: rgba(20, 16, 20, .55); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); border-radius: 12px; padding: 12px 16px; min-width: 0; }
.stat b { display: block; font-family: var(--f-display); font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.stat span { font-size: 13px; color: rgba(255,255,255,.75); }

/* sections */
section.block { padding-block: 88px; }
section.block + section.block { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.025em; line-height: 1.2; margin: 0; font-weight: 800; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 480px; }
.letter { font-family: var(--f-mono); color: var(--accent); font-weight: 600; margin-right: 10px; }

.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.strength { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; min-width: 0; }
.strength .num { font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .12em; }
.strength h3 { margin: 8px 0 10px; font-size: 19px; letter-spacing: -.01em; }
.strength ol { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.strength ol li { margin: 4px 0; }
.strength p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* project rows */
.project { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; padding-block: 44px; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project:nth-of-type(2n) .media { order: 2; }
.project .media { border-radius: var(--radius); overflow: hidden; background: var(--line); aspect-ratio: 16 / 10; position: relative; display: block; max-width: 100%; }
.project .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover .media img { transform: scale(1.03); }
.project .media .tag { position: absolute; left: 14px; bottom: 12px; font-family: var(--f-mono); font-size: 11.5px; color: var(--on-media); background: rgba(0,0,0,.55); padding: 2px 9px; border-radius: 6px; }
.project .body { min-width: 0; }
.project h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.025em; line-height: 1.25; margin: 10px 0 6px; }
.project h3 a { text-decoration: none; }
.project .sub { color: var(--muted); font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.project p.desc { margin: 0 0 12px; color: var(--ink-2); }
ul.points { margin: 0 0 22px; padding: 0; list-style: none; }
ul.points li { position: relative; padding-left: 18px; margin: 6px 0; color: var(--ink-2); font-size: 15px; }
ul.points li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 2px; background: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 10px; }

/* cards */
.grid-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card .thumb { aspect-ratio: 16 / 8; overflow: hidden; background: var(--line); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .in { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .meta { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 600; }
.card .meta a { color: var(--accent); text-decoration: none; }

/* video list */
.vlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.vgroup h3 { font-size: 15px; color: var(--muted); letter-spacing: .04em; margin: 0 0 6px; font-family: var(--f-body); }
.vgroup { margin-bottom: 28px; min-width: 0; }
.vlist a.row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.vlist a.row:hover { color: var(--accent); }
.vlist a.row small { font-family: var(--f-mono); color: var(--muted); font-weight: 500; white-space: nowrap; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.about > div { min-width: 0; }
.about h3 { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.about .intro p { font-size: 17.5px; margin: 0 0 14px; }
.timeline { list-style: none; margin: 0 0 32px; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 20px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline b { display: block; font-size: 16px; }
.timeline span { color: var(--ink-2); font-size: 14px; }
.timeline .when { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.playlog { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.playlog li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.playlog li b { font-weight: 700; }
.playlog li span { color: var(--ink-2); min-width: 0; }

/* footer */
.site-footer { background: var(--ink); color: var(--bg); padding-block: 72px 40px; }
.site-footer h2 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 8px; letter-spacing: -.02em; }
.site-footer p { color: color-mix(in srgb, var(--bg) 70%, transparent); margin: 0 0 24px; }
.contact { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 19px; font-weight: 700; }
.contact span { user-select: all; }
.contact button { font: inherit; font-size: 12.5px; font-weight: 600; margin-left: 8px; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; opacity: .75; }
.site-footer small { display: block; margin-top: 56px; color: color-mix(in srgb, var(--bg) 45%, transparent); }

/* ===== detail pages ===== */
.case-hero { position: relative; color: var(--on-media); background: #141016; }
.case-hero img { width: 100%; height: min(64vh, 600px); object-fit: cover; opacity: .92; }
.case-hero .cap { position: absolute; inset: auto 0 0 0; padding-block: 120px 44px; background: linear-gradient(transparent, var(--media-shade)); }
.case-hero .back { display: inline-block; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.82); text-decoration: none; margin-bottom: 16px; }
.case-hero .eyebrow { color: #ffd0d6; }
.case-hero h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.15; letter-spacing: -.03em; margin: 6px 0 10px; font-weight: 800; }
.case-hero p { margin: 0; max-width: 700px; color: rgba(255,255,255,.88); font-size: clamp(15px, 1.9vw, 18px); }
.metastrip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--surface); }
.metastrip > div { padding: 18px 20px; border-left: 1px solid var(--line); min-width: 0; }
.metastrip > div:first-child { border-left: 0; }
.metastrip dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--muted); margin: 0 0 2px; }
.metastrip dd { margin: 0; font-weight: 700; font-size: 15px; }
.case-links { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 24px 0; }

.case { padding-block: 24px 40px; }
.case section { padding-block: 52px; border-top: 1px solid var(--line); }
.case section:first-child { border-top: 0; }
.case .label { font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--accent); margin: 0 0 8px; }
.case h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.025em; line-height: 1.3; margin: 0 0 14px; }
.case .text { max-width: 720px; }
.case .text p { margin: 0 0 14px; color: var(--ink-2); font-size: 16.5px; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.key { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.key .label { margin-bottom: 4px; }
.key h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.01em; }
.key p { margin: 0; color: var(--ink-2); font-size: 15px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; margin-top: 26px; }
.two > * { min-width: 0; }
figure { margin: 0; }
figure img, figure video { border-radius: 12px; border: 1px solid var(--line); width: 100%; }
figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.figs.two-col { grid-template-columns: repeat(2, 1fr); }
.figs > * { min-width: 0; }
.figs img { aspect-ratio: 16 / 10; object-fit: cover; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.steps > div { padding: 18px 18px 20px; border-left: 1px solid var(--line); min-width: 0; }
.steps > div:first-child { border-left: 0; }
.steps b { display: block; font-size: 15.5px; margin: 2px 0 6px; }
.steps span.n { font-family: var(--f-mono); font-size: 12px; color: var(--accent); font-weight: 600; }
.steps p { margin: 0; color: var(--ink-2); font-size: 14px; }

.spec { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 15px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); }
.spec th { width: 150px; font-weight: 700; white-space: nowrap; }
.spec td { color: var(--ink-2); }
.tablewrap { overflow-x: auto; }

.dl { margin: 18px 0 0; display: grid; gap: 12px; }
.dl div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.dl dt { font-weight: 700; }
.dl dd { margin: 0; color: var(--ink-2); min-width: 0; }

.slides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.slides button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); cursor: zoom-in; display: block; width: 100%; }
.slides img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.slides button span { display: block; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); padding: 4px 8px; text-align: left; }

.pager { display: flex; justify-content: space-between; gap: 16px; padding-block: 36px 72px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager a { text-decoration: none; font-weight: 700; }
.pager a small { display: block; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .1em; font-weight: 600; }

.note { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 16px; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 8, 10, .92); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lb img { max-height: 86vh; width: auto; max-width: 100%; border-radius: 8px; }
.lb .bar { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); display: flex; gap: 8px; }
.lb button { font: inherit; font-weight: 700; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.lb .nav-l, .lb .nav-r { position: absolute; top: 50%; transform: translateY(-50%); }
.lb .nav-l { left: max(12px, env(safe-area-inset-left, 0px)); }
.lb .nav-r { right: max(12px, env(safe-area-inset-right, 0px)); }

@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; gap: 22px; }
  .project:nth-of-type(2n) .media { order: 0; }
  .strengths, .keys { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .grid-cards, .vlist { grid-template-columns: 1fr; }
  .metastrip { grid-template-columns: repeat(2, 1fr); }
  .metastrip > div:nth-child(3) { border-left: 0; }
  .metastrip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .two, .figs.two-col { grid-template-columns: 1fr; }
  .figs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps > div:nth-child(3) { border-left: 0; }
  .steps > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .slides { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .nav a.hide-sm, .brand span { display: none; }
  .nav { gap: 14px; }
  .stats { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero .wrap { padding-block: 96px 44px; }
  section.block { padding-block: 64px; }
  .figs { grid-template-columns: 1fr; }
  .slides { grid-template-columns: repeat(2, 1fr); }
  .dl div, .playlog li { grid-template-columns: 1fr; gap: 2px; }
  .spec th { width: auto; white-space: normal; }
  .case-hero img { height: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
