/* ==========================================================================
   Kim byungnyun portfolio — home
   Design source: Figma "포폴 추출 / 웹사이트" (PC 1280, MO 375)
   ========================================================================== */

@font-face {
  font-family: "Tilt Warp";
  src: url("/fonts/TiltWarp.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #151414;
  --ink: #f6f8fb;
  --muted: #999999;
  --muted-2: #8b8b8b;
  --blue: #4589e2;
  --blue-gray: #7d9bd1;
  --link-blue: #3866e1;
  --panel-sub: #d4e7ff;
  --panel-body: #c7ced8;
  --light: #f8f8f8;
  --line: rgba(255, 255, 255, 0.28);

  --f-ko: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --f-en: "Geist", var(--f-ko);
  --f-display: "Tilt Warp", "Geist", var(--f-ko);

  --maxw: 1280px;
  --gutter: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--page) url("/images/grain.png") repeat;
  color: var(--ink);
  font-family: var(--f-ko);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: #111; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.mo-only { display: none; }

main, .site-footer { max-width: var(--maxw); margin-inline: auto; }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 45px; padding: 0 17px; border-radius: 999px;
  font: 400 18px/1 var(--f-en); letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.82); color: #fff; background: rgba(0, 0, 0, 0.18); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--light { background: #fff; color: var(--link-blue); border: 1px solid #fff; cursor: pointer; }
.btn--light:hover { background: #eaf1ff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: 50px;
  pointer-events: none;
  transition: padding-top .35s ease;
}
.site-header.is-scrolled { padding-top: 16px; }
.site-header__inner { position: relative; max-width: var(--maxw); height: 54px; margin-inline: auto; }

.nav-pill {
  pointer-events: auto;
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 419px; height: 54px; border-radius: 27px;
  display: flex; align-items: center; justify-content: center; gap: 49px;
  background: rgba(98, 117, 160, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font: 400 19px/1 var(--f-en); letter-spacing: -0.01em;
}
.nav-pill a { color: #fff; padding: 8px 0; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-pill a:hover, .nav-pill a.is-active { text-decoration: underline; }

.header-actions {
  pointer-events: auto;
  position: absolute; right: 30px; top: 5px;
  display: flex; gap: 7px;
  transition: opacity .25s;
}

/* ==========================================================================
   Hero (PC: 1260 × 647 frame, everything scales with container width)
   ========================================================================== */
.hero { padding-inline: var(--gutter); }
.hero__frame {
  position: relative;
  aspect-ratio: 1260 / 647;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  background: #030913;
  container-type: inline-size;
}
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero__tags li {
  position: absolute; top: 29.2%;
  font: 400 max(11px, 1.111cqw)/1.3 var(--f-en); color: var(--muted); letter-spacing: -0.01em;
}
.hero__tags li::before { content: "/ "; }
.hero__tags li:nth-child(1) { left: 4.37%; }
.hero__tags li:nth-child(2) { left: 24.68%; }
.hero__tags li:nth-child(3) { right: 25.4%; }
.hero__tags li:nth-child(4) { right: 4.68%; }

.hero__title {
  position: absolute; left: 0; right: 0; top: 28.6%;
  text-align: center;
  font: 600 max(13px, 1.43cqw)/1.45 var(--f-en); color: var(--blue); letter-spacing: -0.01em;
}
.hero__title span { display: block; }
.hero__title .hero__name { display: none; }

.hero__lead {
  position: absolute; top: 36.1%;
  font: 400 max(12px, 1.27cqw)/1.56 var(--f-ko); color: var(--muted-2); letter-spacing: -0.02em;
}
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__lead--left { left: 4.37%; }
.hero__lead--right { right: 4.37%; text-align: right; color: var(--blue-gray); }

.hero__line {
  position: absolute; left: 24.37%; right: 24.44%; top: 40.03%;
  height: 1px; background: rgba(255, 255, 255, 0.32);
}
.hero__line::before, .hero__line::after {
  content: ""; position: absolute; top: -2px; width: 5px; height: 5px; background: #fff;
}
.hero__line::before { left: -2px; }
.hero__line::after { right: -2px; }

.hero__actions { display: none; }

/* ==========================================================================
   Work cards
   ========================================================================== */
.work { padding: var(--gutter) var(--gutter) 0; scroll-margin-top: 90px; }
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.work__item--more { display: none; }
.work.is-expanded .work__item--more { display: block; }

.card {
  position: relative; display: block;
  aspect-ratio: 625 / 700;
  border-radius: 10px; overflow: hidden;
  background: #1d1d1f;
  isolation: isolate;
}
.card picture, .card img { width: 100%; height: 100%; }
.card img { object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover img, .card:focus-visible img { transform: scale(1.035); }
.card__caption {
  position: absolute; left: 10px; right: 10px; bottom: 9px;
  min-height: 81px; padding: 14px 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  color: var(--ink);
}
.card__caption strong { font: 600 18px/1.4 var(--f-ko); letter-spacing: -0.02em; }
.card__caption span { font: 500 18px/1.4 var(--f-en); letter-spacing: -0.01em; }

.view-all {
  display: block; width: 100%; height: 95px; margin-top: 10px;
  border: 0; border-radius: 10px; cursor: pointer;
  background: var(--light) url("/images/grain.png") repeat;
  color: #111; font: 400 34px/1 var(--f-display); letter-spacing: -0.01em;
  transition: background-color .2s;
}
.view-all:hover { background-color: #ececec; }
.work.is-expanded .view-all { display: none; }

/* ==========================================================================
   Capabilities + Experience (shared deep-blue panel)
   ========================================================================== */
.deep {
  margin-top: 10px;
  padding: 57px 20px 50px;
  background: #050b1b url("/images/section-bg.webp") center top / 100% auto no-repeat;
}
.display { font-family: var(--f-display); font-weight: 400; line-height: 1; letter-spacing: -0.015em; color: #fff; }
.caps { scroll-margin-top: 90px; }
.caps__title { font-size: 97px; }

.caps__list {
  margin-top: 46px;
  display: grid;
  grid-template-columns: minmax(0, 603fr) minmax(0, 605fr);
  column-gap: 32px; row-gap: 12px;
}
.cap { display: contents; }
.cap__tab {
  grid-column: 1;
  height: 100px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px 0 40px;
  border: 1px solid transparent; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.34);
  font: 500 26px/1 var(--f-en); letter-spacing: -0.01em; text-align: left;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.cap__tab:hover { color: rgba(255, 255, 255, 0.7); }
.cap.is-open .cap__tab {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}
.cap__arrow { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }

.cap__panel {
  grid-column: 2; grid-row: 1 / span 4;
  padding: 40px 40px 36px;
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.cap__panel h3 {
  font: 600 26px/1.3 var(--f-ko); letter-spacing: -0.02em;
  padding-bottom: 30px; margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.cap__sub { font: 600 18px/1.4 var(--f-ko); color: var(--panel-sub); margin-bottom: 10px; letter-spacing: -0.02em; }
.cap__body { font: 400 15px/1.65 var(--f-ko); color: var(--panel-body); margin-bottom: 32px; letter-spacing: -0.02em; }
.cap__skills-title { font: 600 16px/1.4 var(--f-en); color: var(--panel-sub); margin-bottom: 6px; }
.cap__skills { display: grid; grid-template-columns: 207px 1fr; row-gap: 0; }
.cap__skills li { font: 400 15px/1.6 var(--f-en); color: var(--panel-body); letter-spacing: -0.01em; }

/* scroll-linked capabilities (js/main.js adds .is-pinned on PC when the window is tall enough) */
.caps__pin { position: relative; }
.caps.is-pinned .caps__pin { position: sticky; top: var(--pin-top, 120px); }
.deep.is-pinned { background-size: 100% 100%; }
.caps.is-pinned .cap.is-open .cap__tab { position: relative; overflow: hidden; }
.caps.is-pinned .cap.is-open .cap__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform-origin: left center; transform: scaleX(var(--step-p, 0));
}
@keyframes capIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.cap.is-open .cap__panel { animation: capIn .45s cubic-bezier(.2, .7, .2, 1); }
@media (max-width: 1023px) {
  /* MO: the title scrolls away, the accordion itself stays on screen while the items step through */
  .caps.is-pinned .caps__pin { position: static; display: contents; }
  .caps.is-pinned .caps__list { position: sticky; top: var(--pin-top, 68px); }
}

.exp { padding-top: 113px; scroll-margin-top: 90px; }
.exp__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.exp__title { font-size: 97px; }
.exp__years { font-family: var(--f-display); text-align: right; line-height: .82; color: #fff; }
.exp__plus { display: block; font-size: 120px; letter-spacing: -0.02em; }
.exp__unit { display: block; font-size: 60px; letter-spacing: -0.02em; }

.exp__table { width: 100%; margin-top: 52px; border-collapse: collapse; font-size: 18px; }
.exp__table th {
  height: 56px; padding: 0; vertical-align: middle;
  font: 400 18px/1.4 var(--f-ko); color: rgba(255, 255, 255, 0.86); text-align: left; letter-spacing: -0.01em;
}
.exp__table td {
  height: 56px; padding: 0;
  border-top: 1px dashed var(--line);
  font: 400 18px/1.4 var(--f-ko); color: #fff; letter-spacing: -0.01em;
}
.exp__table tr:last-child td { border-bottom: 1px dashed var(--line); }
.exp__table .c-period { width: 318px; font-family: var(--f-en); letter-spacing: -0.01em; }
.exp__table .c-company { width: 189px; }
.exp__table .c-desc { text-align: right; }
.exp__table .is-current td { font-weight: 600; }

.mo-actions { display: none; }

/* ---------- Resume download menu ---------- */
.dl { position: relative; display: inline-flex; }
.dl__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 200px; padding: 6px;
  background: #fff; color: #111; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column;
}
.dl__menu[hidden] { display: none; }
.dl__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border-radius: 9px;
  font: 600 16px/1.2 var(--f-ko); letter-spacing: -0.02em; color: #111;
}
.dl__menu a span { font: 500 13px/1 var(--f-en); color: #8a8d94; letter-spacing: 0; }
.dl__menu a:hover, .dl__menu a:focus-visible { background: #eef3ff; color: var(--link-blue); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; height: 361px; padding: 0 20px; overflow: hidden; }
.site-footer__thanks {
  position: absolute; left: 14px; bottom: -14px;
  font: 400 198px/1 var(--f-display); letter-spacing: -0.03em; color: #f4f4f6;
  white-space: nowrap; user-select: none;
}
.site-footer__links {
  position: absolute; right: 20px; top: 100px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  font: 400 19px/1.45 var(--f-en); color: #fff;
}
.site-footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__links .u { text-decoration: underline; text-underline-offset: 4px; }
.tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-bottom: 6px;
  border: 1px solid #fff; border-radius: 999px;
  font: 600 10px/1 var(--f-en); letter-spacing: .04em;
}
.site-footer__sign {
  position: absolute; right: 20px; bottom: 18px; text-align: right;
  font: 400 14px/1.6 var(--f-en); color: #e6e6e8;
}

/* ==========================================================================
   Tablet / Mobile (< 1024px) — MO design 375
   ========================================================================== */
@media (max-width: 1023px) {
  .pc-only { display: none !important; }
  .mo-only { display: revert; }

  .site-header { padding-top: 40px; }
  .site-header.is-scrolled { padding-top: 12px; }
  .site-header__inner { height: 45px; }
  .header-actions { display: none; }
  .nav-pill { width: 282px; height: 45px; gap: 25px; font-size: 14px; }

  .hero { padding-inline: 0; background: #020611; }
  .hero__frame {
    aspect-ratio: 375 / 998; max-width: 480px; margin-inline: auto;
    border-radius: 0; background: #020611;
  }
  @media (min-width: 481px) {
    .hero__bg img {
      -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
      mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
    }
  }
  .hero__tags {
    position: absolute; left: 0; right: 0; top: 86.4%;
    display: flex; justify-content: center; gap: 2.1cqw;
  }
  .hero__tags li {
    position: static;
    display: inline-flex; align-items: center; gap: 1.1cqw;
    font-size: 2.95cqw; color: #a3a3a3;
  }
  .hero__tags li::before { content: ""; width: 3px; height: 3px; background: #9a9a9a; }

  .hero__title { top: 75.85%; font-size: 6.53cqw; line-height: 1.28; }
  .hero__title .hero__name { display: block; }

  .hero__lead { left: 0; right: 0; text-align: center; font-size: 3.73cqw; line-height: 1.45; color: rgba(255, 255, 255, 0.72); }
  .hero__lead--left { top: 36.4%; }
  .hero__lead--right { top: 42.2%; right: 0; text-align: center; color: rgba(255, 255, 255, 0.72); }

  .hero__line {
    left: 50%; right: auto; top: 28.06%; width: 1px; height: 28.16%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0 26%, transparent 26% 69%, rgba(255, 255, 255, 0.3) 69% 100%);
  }
  .hero__line::before { left: -2px; top: -2px; }
  .hero__line::after { left: -2px; right: auto; top: auto; bottom: -2px; }

  .hero__actions {
    position: absolute; left: 0; right: 0; top: 90.9%;
    display: flex; justify-content: center; gap: 1.9cqw;
  }
  .hero__actions .btn { height: 10.13cqw; padding: 0 3.73cqw; font-size: 3.73cqw; gap: 1.3cqw; }
  .hero__actions .icon { width: 4.27cqw; height: 4.27cqw; }

  .work { padding: 3px 10px 0; }
  .work__grid { grid-template-columns: 1fr 1fr; }
  .card__caption strong { font-size: 16px; }
  .card__caption span { font-size: 14px; }
  .card__caption { min-height: 69px; padding: 12px 16px; bottom: 10px; }
  .view-all { height: 50px; border-radius: 8px; font-size: 22px; }

  .deep {
    margin: 10px 10px 0; padding: 56px 10px 80px; border-radius: 12px;
    background-size: cover; background-position: 18% top;
  }
  .caps__title, .exp__title { font-size: 38px; }
  .caps__list { display: block; margin-top: 24px; }
  .cap { display: block; margin-bottom: 8px; }
  .cap__tab { height: 61px; padding: 0 16px 0 24px; font-size: 17px; }
  .cap__arrow { width: 22px; height: 22px; stroke-width: 1.6; }
  .cap__panel { margin-top: 8px; padding: 22px 24px 24px; }
  .cap__panel h3 { font-size: 17px; padding-bottom: 14px; margin-bottom: 18px; }
  .cap__sub { font-size: 14px; margin-bottom: 8px; }
  .cap__body { font-size: 12.5px; line-height: 1.45; margin-bottom: 22px; }
  .cap__skills-title { font-size: 14px; margin-bottom: 4px; }
  .cap__skills { grid-template-columns: 152px 1fr; column-gap: 0; }
  .cap__skills li { font-size: 12.5px; line-height: 1.45; white-space: nowrap; }

  .exp { padding-top: 64px; }
  .exp__head { display: block; }
  .exp__years { text-align: left; line-height: 1; }
  .exp__plus, .exp__unit { display: inline; font-size: 38px; }
  .exp__unit { margin-left: .22em; }
  .exp__table { margin-top: 36px; }
  .exp__table thead tr { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); }
  .exp__table th { height: auto; padding-bottom: 14px; font-size: 14px; }
  .exp__table th.c-company, .exp__table th.c-role { display: none; }
  .exp__table tbody tr {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px;
    padding: 16px 0; border-bottom: 1px dashed var(--line);
  }
  .exp__table td { height: auto; border: 0 !important; font-size: 14.5px; line-height: 1.4; }
  .exp__table .c-period, .exp__table .c-company { width: auto; grid-column: 1; white-space: nowrap; }
  .exp__table .c-company::before { content: "@ "; }
  .exp__table .c-role { display: none; }
  .exp__table .c-desc { grid-column: 2; grid-row: 1 / span 2; text-align: right; }

  .mo-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    max-width: var(--maxw); margin: 10px auto 0; padding: 0 10px;
  }
  .btn-block {
    height: 52px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font: 400 22px/1 var(--f-display);
  }
  .btn-block .icon { width: 22px; height: 22px; stroke-width: 2.4; }
  .mo-actions .dl { display: flex; }
  .mo-actions .dl .btn-block { width: 100%; border: 0; cursor: pointer; }
  .mo-actions .dl__menu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
  .hero__actions .dl__menu { top: auto; bottom: calc(100% + 8px); right: auto; left: 50%; transform: translateX(-50%); min-width: 190px; }
  .hero__actions .dl__menu a { font-size: 15px; }
  .btn-block--light { background: #fff; color: #111; }
  .btn-block--dark { background: var(--page); color: #fff; border: 1px solid #fff; }

  .site-footer {
    height: auto; padding: 44px 20px 48px;
    display: grid; grid-template-columns: 1fr auto; row-gap: 20px;
  }
  .site-footer__thanks { position: static; grid-column: 1 / -1; font-size: clamp(52px, 15.6vw, 120px); line-height: 1; }
  .site-footer__links {
    position: static; align-items: flex-start; font-size: 16px; line-height: 1.4;
  }
  .site-footer__sign { position: static; align-self: start; font-size: 16px; line-height: 1.45; color: #fff; }
}

/* Appendix: one wide card under the projects */
.work__item--wide { grid-column: 1 / -1; }
.work__item--wide .card { aspect-ratio: 1260 / 460; }
.card__tag {
  position: absolute; left: 20px; top: 18px; z-index: 1;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 400 16px/1 var(--f-display); letter-spacing: .02em; color: #fff;
}
@media (max-width: 639px) {
  .work__grid { grid-template-columns: 1fr; }
  .card, .work__item--wide .card { aspect-ratio: 355 / 460; }
  .card__tag { left: 14px; top: 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Case study pages (/work/*) — Figma "포폴 추출 / 웹사이트" Desktop-5…24 / Mobile-1…10
   ========================================================================== */
.case-top {
  padding: 0 10px 10px;
  background:
    url("/images/case-hero-pc.webp") center top / 100% auto no-repeat,
    linear-gradient(to right, #02030b 0%, #00060d 6%, #02070e 16%, #010715 26%, #020f21 36%, #071633 50%, #051532 62%, #030e21 73%, #02091a 84%, #020715 93%, #000d22 99%, #021127 100%);
}
.case-hero { padding: 180px 20px 188px; text-align: center; }
.case-hero__title {
  font: 700 60px/81px var(--f-ko); letter-spacing: -0.02em; color: #f6f8fb;
}
.case-hero__title.is-latin { font-family: var(--f-en); font-size: 78px; line-height: 90px; letter-spacing: -0.03em; }
.case-hero__meta {
  margin-top: 22px;
  font: 400 27px/1.4 var(--f-en); letter-spacing: -0.01em; color: rgba(226, 233, 244, 0.86);
}

.case-intro {
  display: grid; grid-template-columns: 240px minmax(0, 920px);
  padding: 125px 50px 110px;
  background: #000; border-radius: 10px;
}
.case-intro__label { font: 600 18px/30px var(--f-en); letter-spacing: -0.01em; color: #fff; }
.case-intro__body p { display: inline; font: 400 20px/30px var(--f-ko); letter-spacing: -0.01em; color: #fff; }
.case-intro__body p.pc-break { display: block; margin-top: 30px; }
.case-intro__actions { display: flex; align-items: flex-start; gap: 22px 30px; flex-wrap: wrap; margin-top: 32px; }
.case-intro__actions .btn-out { order: -1; }

.btn-out {
  display: inline-flex; align-items: center; gap: 8px;
  height: 64px; padding: 0 22px; border: 1.5px solid #fff; border-radius: 10px;
  font: 600 18px/1 var(--f-ko); letter-spacing: -0.02em; color: #fff; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.btn-out .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.btn-out:hover, .btn-out:focus-visible { background: #fff; color: #111; }

.case-links { display: flex; flex-wrap: wrap; gap: 6px 24px; max-width: 520px; padding-top: 2px; }
.case-links li:first-child { flex-basis: 100%; }
.case-links a { font: 700 17px/1.55 var(--f-en); color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.case-links a:hover { color: var(--panel-sub); }
.text-link { text-decoration: underline; text-underline-offset: 4px; }
.case-sec__text .hl { text-decoration: underline; text-underline-offset: 4px; }

/* Pre / Home / Next pill — floats at the bottom of the screen (hidden while the footer is in view) */
.pager {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between;
  width: 290px; height: 54px; padding: 0 22px 0 20px; border-radius: 27px;
  background: rgba(24, 28, 37, 0.8); border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font: 400 18px/1 var(--f-en); letter-spacing: -0.01em; color: #fff;
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.pager.is-hidden { opacity: 0; visibility: hidden; transform: translate(-50%, 18px); }
.pager a { display: inline-flex; align-items: center; gap: 3px; height: 100%; padding: 0 4px; }
.pager a span { text-underline-offset: 5px; }
.pager a:hover span { text-decoration: underline; }
.pager .icon { width: 17px; height: 17px; stroke-width: 2.2; }
.pager__home-icon { width: 26px; height: 26px; fill: #fff; transition: transform .2s; }
.pager__home:hover .pager__home-icon { transform: translateY(-2px); }
.pager--home { width: 110px; justify-content: center; padding: 0; }

/* slides */
.case-body { display: flex; flex-direction: column; gap: 10px; padding: 0 10px; }
.case-sec { display: flex; flex-direction: column; gap: 10px; }
.case-sec__text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.slide { margin: 0; border-radius: 6px; overflow: hidden; background: #1d1d1f; }
.slide img { width: 100%; height: auto; }

/* Oxymoron live piece */
.case-live__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden;
  background: #1a1a1a radial-gradient(60% 80% at 50% 50%, #26303f 0, #1a1a1a 70%);
}
.case-live__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.case-live__play {
  position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #fff; font: 600 22px/1.3 var(--f-ko); letter-spacing: -0.02em;
}
.case-live__play svg { width: 84px; height: 84px; padding: 22px 20px 22px 26px; border-radius: 50%; background: #fff; fill: #111; transition: transform .25s; }
.case-live__play:hover svg { transform: scale(1.06); }
.case-live__play small { font: 400 14px/1.4 var(--f-ko); color: rgba(255, 255, 255, 0.6); }

.case-end { padding: 96px 0 100px; text-align: center; font-size: 58px; }

/* More Projects */
.more {
  display: grid; grid-template-columns: 199px minmax(0, 1fr);
  padding: 120px 0 122px 40px;
  background: #242424 url("/images/grain.png") repeat;
}
.more__title { margin-top: 4px; font-size: 24px; letter-spacing: -0.01em; }
.more__nav { display: flex; gap: 8px; margin-top: 28px; }
.more__btn, .hs-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.32); color: #fff; cursor: pointer;
  transition: background-color .2s, opacity .2s;
}
.more__btn:hover, .hs-btn:hover { background: rgba(255, 255, 255, 0.12); }
.more__btn:disabled, .hs-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.more__list, .hs-list {
  display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: 40px;
  scroll-padding-left: 0;
}
.more__list::-webkit-scrollbar, .hs-list::-webkit-scrollbar { display: none; }
.more__item { flex: 0 0 318px; scroll-snap-align: start; }
.more__card { display: block; }
.more__thumb { display: block; aspect-ratio: 318 / 380; border-radius: 4px; overflow: hidden; background: #111; }
.more__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.more__card:hover img, .more__card:focus-visible img { transform: scale(1.04); }
.more__card strong { display: block; margin-top: 22px; font: 600 18px/1.4 var(--f-ko); letter-spacing: -0.02em; color: #fff; }
.more__sub { display: block; margin-top: 2px; font: 500 18px/1.4 var(--f-en); letter-spacing: -0.01em; color: var(--muted); }

@media (max-width: 1023px) {
  .case-top { padding: 0; background: none; }
  .case-hero {
    display: flex; flex-direction: column; justify-content: center;
    min-height: 200px; padding: 22px 20px 12px; border-radius: 0 0 12px 12px;
    background: #050b1a url("/images/case-hero-pc.webp") center top / cover no-repeat;
  }
  .case-hero__title, .case-hero__title.is-latin { font: 700 21px/1.45 var(--f-ko); letter-spacing: -0.02em; }
  .case-hero__meta { margin-top: 8px; font-size: 15px; }

  .case-intro { display: flex; flex-direction: column; padding: 0 20px; background: none; border-radius: 0; }
  .case-intro__label { margin-top: 31px; font: 700 21px/1.4 var(--f-ko); letter-spacing: -0.02em; }
  .case-intro__body { margin-top: 12px; max-width: 720px; }
  .case-intro__body p { display: block; font-size: 14px; line-height: 22px; letter-spacing: -0.01em; }
  .case-intro__body p + p { margin-top: 22px; }
  .case-intro__actions { flex-direction: column; gap: 22px; margin-top: 28px; }
  .case-intro__actions .btn-out { order: 0; }
  .case-intro__actions:not(:has(.case-links)) { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .btn-out {
    height: 54px; padding: 0 16px; border: 0; border-radius: 14px;
    background: #fff; color: #111; font-size: 16px;
    text-decoration: underline; text-underline-offset: 4px;
  }
  .btn-out .icon { display: none; }
  .btn-out:hover { background: #eaf1ff; }
  .case-links { flex-direction: column; gap: 10px; }
  .case-links a { font-size: 16.5px; }

  .pager { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 222px; height: 52px; padding: 0 16px 0 14px; font-size: 17px; }
  .pager__home-icon { width: 24px; height: 24px; }
  .pager--home { width: 110px; padding: 0; }

  .case-body { gap: 0; padding: 0; margin-top: 37px; }
  .case-sec { gap: 0; }
  .case-sec__text {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
    max-width: 760px; padding: 31px 20px 33px;
  }
  .case-sec__text h2 { font: 700 21px/1.4 var(--f-ko); letter-spacing: -0.02em; color: #fff; }
  .case-sec__text p { margin-top: 12px; font: 400 14px/22px var(--f-ko); letter-spacing: -0.01em; color: #fff; }
  .case-sec__text p + p { margin-top: 22px; }
  .slide { border-radius: 0; }
  .case-live { padding: 0 20px 24px; }
  .case-live__frame { border-radius: 8px; }
  .case-live__play { font-size: 17px; gap: 10px; }
  .case-live__play svg { width: 60px; height: 60px; padding: 16px 14px 16px 18px; }
  .case-live__play small { font-size: 12px; }

  .case-end { padding: 70px 0 42px; font-size: 40px; }

  .more { display: block; padding: 18px 0 24px 20px; background: #000; }
  .more__title { margin: 0; font-size: 19px; }
  .more__nav { display: none; }
  .more__list { gap: 13px; margin-top: 12px; padding-right: 20px; }
  .more__item { flex-basis: 280px; }
  .more__thumb { aspect-ratio: 280 / 335; }
  .more__card strong { margin-top: 10px; font-size: 16px; line-height: 1.38; }
  .more__sub { font-size: 15px; }
}
@media (max-width: 639px) {
  .case-hero { background-image: url("/images/case-hero-mo.webp"); background-position: center; }
}

/* ==========================================================================
   About page (/about) — Figma Desktop-2 / Mobile-2
   ========================================================================== */
.about-hero {
  display: flex; align-items: center; justify-content: center; height: 456px;
  background: #030c1e url("/images/case-hero-pc.webp") center top / 100% auto no-repeat;
}
.about-hero h1 { font-size: 116px; letter-spacing: -0.02em; }

.about-intro {
  display: grid; grid-template-columns: 242px minmax(0, 960px);
  padding: 116px 40px 0 50px;
}
.about-intro h2 { font: 600 18px/30px var(--f-ko); letter-spacing: -0.02em; color: #fff; }
.about-intro p { font: 400 20px/30px var(--f-ko); letter-spacing: -0.01em; color: #fff; }
.about-intro p + p { margin-top: 30px; }
.about-intro p.join { margin-top: 0; }

.wid { padding-top: 100px; }
.wid__head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 40px 0 42px; }
.wid__title { font-size: 110px; letter-spacing: -0.02em; }
.wid__nav { display: flex; gap: 8px; padding-bottom: 10px; }
.wid .hs-list { gap: 40px; margin-top: 64px; padding: 0 40px; scroll-padding-left: 40px; }
.wid__item { flex: 0 0 360px; scroll-snap-align: start; }
.wid__item img { width: 100%; height: auto; aspect-ratio: 360 / 272; object-fit: cover; border-radius: 4px; }
.wid__item h3 { margin-top: 28px; font: 600 21px/1.3 var(--f-en); letter-spacing: -0.02em; color: #fff; }
.wid__item p { margin-top: 12px; font: 400 15px/1.7 var(--f-ko); letter-spacing: -0.02em; color: #d9dbe0; }

.profile { display: grid; grid-template-columns: 651px minmax(0, 1fr); padding: 168px 40px 0 100px; }
.profile__photo img { width: 430px; height: auto; }
.contact { padding-top: 78px; }
.contact h2, .cv h2 { font: 600 25px/1.3 var(--f-en); letter-spacing: -0.02em; color: #fff; }
.contact ul { margin-top: 18px; font: 500 20px/1.55 var(--f-en); letter-spacing: -0.01em; color: #fff; }
.contact li + li.gap { margin-top: 26px; }
.contact a { text-underline-offset: 4px; }
.contact a.u, .contact a:hover { text-decoration: underline; }
.contact .dl { margin-top: 34px; }
.btn-solid {
  display: inline-flex; align-items: center; gap: 8px;
  height: 64px; padding: 0 24px; border: 0; border-radius: 12px; cursor: pointer;
  background: #fff; color: #111; font: 600 19px/1 var(--f-ko); letter-spacing: -0.02em;
  transition: background-color .2s;
}
.btn-solid:hover { background: #eaf1ff; }
.btn-solid .icon { width: 20px; height: 20px; }
.contact .dl__menu { left: 0; right: auto; }

.cv { display: grid; grid-template-columns: 636px minmax(0, 1fr); row-gap: 76px; padding: 118px 40px 0 123px; }
.cv__list { margin-top: 22px; }
.cv__list li + li { margin-top: 24px; }
.cv__date { display: block; font: 500 15px/1.5 var(--f-en); letter-spacing: -0.01em; color: #c9ccd2; }
.cv__what { display: block; margin-top: 4px; font: 500 20px/1.45 var(--f-ko); letter-spacing: -0.02em; color: #fff; }
.cv__what a { text-decoration: underline; text-underline-offset: 4px; }
.cv--awards { grid-column: 1 / -1; }
.cv--awards .cv__list { display: grid; grid-template-columns: 636px minmax(0, 1fr); gap: 24px 0; }
.cv--awards .cv__list li + li { margin-top: 0; }
/* PC column order follows the design: left = iF, 안중근, 국제 디자인 2019 / right = 사이버, 대구, 2017 */
.cv--awards li:nth-child(1) { grid-area: 1 / 1; } .cv--awards li:nth-child(2) { grid-area: 1 / 2; }
.cv--awards li:nth-child(3) { grid-area: 2 / 1; } .cv--awards li:nth-child(4) { grid-area: 3 / 1; }
.cv--awards li:nth-child(5) { grid-area: 2 / 2; } .cv--awards li:nth-child(6) { grid-area: 3 / 2; }

.about-exp { padding: 170px 50px 40px; }
.about-exp .exp { padding-top: 0; }

@media (max-width: 639px) {
  .about-hero { background-image: url("/images/case-hero-mo.webp") !important; background-position: center !important; }
}
@media (max-width: 1023px) {
  .about-hero {
    height: 200px; margin: 0; border-radius: 0 0 12px 12px;
    background: #050b1a url("/images/case-hero-pc.webp") center top / cover no-repeat;
  }
  .about-hero h1 { font-size: 39px; }
  .about-intro { display: block; padding: 50px 20px 0; }
  .about-intro h2 { font: 700 26px/1.3 var(--f-ko); }
  .about-intro p { max-width: 640px; margin-top: 22px; font-size: 15px; line-height: 25px; }
  .about-intro p + p, .about-intro p.join { margin-top: 25px; }
  .about .pager--home { width: 110px; height: 52px; }

  .wid { padding-top: 52px; }
  .wid__head { padding: 0 20px; }
  .wid__title { font-size: 38px; }
  .wid__nav { display: none; }
  .wid .hs-list { gap: 16px; margin-top: 22px; padding: 0 20px; scroll-padding-left: 20px; }
  .wid__item { flex-basis: 280px; }
  .wid__item img { aspect-ratio: 280 / 211; }
  .wid__item h3 { margin-top: 18px; font-size: 16px; }
  .wid__item p { margin-top: 6px; font-size: 12.5px; line-height: 1.6; }

  .profile { display: block; padding: 70px 20px 0; }
  .profile__photo img { width: min(260px, 70%); margin-inline: auto; }
  .contact { padding-top: 36px; }
  .contact h2, .cv h2 { font: 400 22px/1.2 var(--f-display); letter-spacing: -0.01em; }
  .contact ul { margin-top: 20px; font-size: 17px; line-height: 1.55; }
  .contact li + li.gap { margin-top: 18px; }
  .contact .dl { margin-top: 26px; }
  .btn-solid { height: 54px; padding: 0 20px; font-size: 16px; }

  .cv { display: block; padding: 56px 20px 0; }
  .cv > section + section { margin-top: 36px; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .cv__list { margin-top: 20px; }
  .cv__list li + li { margin-top: 20px; }
  .cv__date { font-size: 13px; }
  .cv__what { font-size: 17px; }
  .cv--awards .cv__list { display: block; }
  .cv--awards .cv__list li + li { margin-top: 20px; }
  .cv--awards li { grid-area: auto !important; }

  .about-exp { padding: 64px 0 20px; }
  .about-exp .exp { padding: 0 20px; }
}

/* tablet (640–1023): MO layout with a little more breathing room */
@media (min-width: 640px) and (max-width: 1023px) {
  .case-hero { min-height: 260px; }
  .case-hero__title, .case-hero__title.is-latin { font-size: 30px; }
  .case-hero__meta { font-size: 18px; }
  .case-intro__label { font-size: 24px; }
  .case-intro__body p, .case-sec__text p { font-size: 16px; line-height: 27px; }
  .case-intro__body p + p, .case-sec__text p + p { margin-top: 24px; }
  .case-sec__text { padding: 40px 32px 40px; }
  .case-intro { padding: 0 32px; }
  .case-sec__text h2 { font-size: 24px; }
  .about-hero { height: 260px; }
  .about-hero h1 { font-size: 60px; }
  .about-intro, .cv, .profile { padding-left: 32px; padding-right: 32px; }
  .about-intro p { font-size: 16px; line-height: 27px; }
}

/* ==========================================================================
   Responsive fixes — small phones, tablets and narrow laptops
   ========================================================================== */
@media (max-width: 1023px) {
  .site-footer__sign { white-space: nowrap; }
  .site-footer__links a { overflow-wrap: anywhere; }
}
/* small phones (≤ 374px, e.g. iPhone SE 1st gen, Galaxy Fold) */
@media (max-width: 374px) {
  .cap__tab { padding: 0 14px 0 18px; font-size: 16px; }
  .cap__panel { padding: 20px 18px 22px; }
  .cap__skills { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
  .cap__skills li { white-space: normal; }
  .exp__table td { font-size: 13.5px; }
  .exp__table .c-company { white-space: normal; }
  .case-hero__title, .case-hero__title.is-latin { font-size: 19px; }
  .pager { width: 206px; }
}
@media (max-width: 359px) {
  .site-footer { grid-template-columns: 1fr; }
  .site-footer__sign { text-align: left; }
}
/* tablets (640–1023): the mobile layout, scaled up a little */
@media (min-width: 640px) and (max-width: 1023px) {
  .nav-pill { width: 340px; height: 50px; gap: 34px; font-size: 16px; }
  .work { padding-inline: 20px; }
  .card__caption strong { font-size: 18px; }
  .card__caption span { font-size: 16px; }
  .deep { margin-inline: 20px; padding: 72px 28px 96px; }
  .caps__title, .exp__title { font-size: 56px; }
  .exp__plus, .exp__unit { font-size: 56px; }
  .cap__tab { height: 72px; font-size: 20px; padding: 0 24px 0 32px; }
  .cap__panel { padding: 30px 32px 32px; }
  .cap__panel h3 { font-size: 22px; }
  .cap__sub { font-size: 17px; }
  .cap__body { font-size: 15px; line-height: 1.6; }
  .cap__skills-title { font-size: 16px; }
  .cap__skills { grid-template-columns: 240px 1fr; }
  .cap__skills li { font-size: 15px; line-height: 1.6; }
  .exp__table th { font-size: 15px; }
  .exp__table td { font-size: 16px; }
  .mo-actions { padding-inline: 20px; }
  .wid__item { flex-basis: 320px; }
  .wid__item h3 { font-size: 18px; }
  .wid__item p { font-size: 14px; }
  .more__item { flex-basis: 300px; }
}
/* narrow laptops (1024–1279): keep the PC layout but let the fixed columns breathe */
@media (min-width: 1024px) and (max-width: 1279px) {
  .profile { grid-template-columns: minmax(0, 651fr) minmax(0, 529fr); padding-left: 7.8vw; }
  .profile__photo img { width: min(430px, 100%); }
  .cv { grid-template-columns: minmax(0, 636fr) minmax(0, 521fr); padding-left: 9.6vw; }
  .cv--awards .cv__list { grid-template-columns: minmax(0, 636fr) minmax(0, 521fr); }
  .contact ul { overflow-wrap: anywhere; }
  .case-intro { grid-template-columns: 200px minmax(0, 920px); }
  .about-intro { grid-template-columns: 200px minmax(0, 960px); }
}

/* clickable area laid over a button that is drawn inside a slide image */
.slide { position: relative; }
.slide__hotspot { position: absolute; border-radius: 8px; transition: background-color .2s, box-shadow .2s; }
.slide__hotspot:hover, .slide__hotspot:focus-visible { background: rgba(255, 255, 255, 0.16); box-shadow: 0 0 0 2px #fff; }
.case-sec__text .btn-out--inline { margin-top: 4px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1023px) {
  .case-sec__text .btn-out--inline { display: inline-flex; }
}
