@font-face {
  font-family: 'Cafe24Surround';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2105_2@1.0/Cafe24Ssurround.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NanumSquareRound';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/NanumSquareRound.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-dark: #2997ff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --muted-dark: #cccccc;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --dark-1: #272729;
  --dark-2: #2a2a2c;
  --dark-3: #252527;
  --black: #000000;
  --hairline: #e0e0e0;
  --soft-line: rgba(0, 0, 0, .08);
  --product-shadow: 3px 5px 30px rgba(0, 0, 0, .22);
  --font-display: 'Cafe24Surround', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-text: 'NanumSquareRound', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --content: 1440px;
  --text-content: 980px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: weight style;
}
body.no-scroll { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { color: inherit; }
::selection { color: #fff; background: var(--primary); }

.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;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 16px;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Navigation */
.global-nav {
  position: sticky;
  inset: 0 0 auto;
  z-index: 1000;
  height: 60px;
  color: #fff;
  background: var(--black);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 1180px);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
}
.global-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-size: 13px;
  letter-spacing: 0;
}
.brand-glyph {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.brand-text { opacity: .92; white-space: nowrap; }
.global-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  height: 100%;
  font-size: 13px;
  letter-spacing: 0;
}
.global-links a,
.global-brand { transition: opacity .2s ease; }
.global-links a { opacity: .72; }
.global-links a:hover,
.global-links a:focus-visible,
.global-brand:hover,
.global-brand:focus-visible { opacity: 1; }
.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}
.nav-contact { min-height: 32px; }
.menu-trigger {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}
.menu-trigger span:not(.sr-only) {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: #fff;
  transition: transform .2s ease;
}
.menu-trigger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-trigger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
.mobile-nav {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  padding: 20px 24px 32px;
  color: #fff;
  background: rgba(0,0,0,.96);
  border-top: 1px solid rgba(255,255,255,.18);
}
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.sub-nav {
  position: sticky;
  top: 44px;
  z-index: 900;
  height: 52px;
  margin-top: 44px;
  background: rgba(245, 245, 247, .82);
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: saturate(180%) blur(20px);
}
.sub-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1024px);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
}
.sub-nav-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: .011em;
}
.sub-nav-actions { display: flex; align-items: center; gap: 22px; }
.sub-nav-link { font-size: 12px; color: #424245; }

/* Shared */
.tile {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 80px var(--gutter);
}
.tile-white { color: var(--ink); background: var(--canvas); }
.tile-parchment { color: var(--ink); background: var(--parchment); }
.tile-dark { color: #fff; background: var(--dark-1); }
.tile-dark-2 { color: #fff; background: var(--dark-2); }
.tile-dark-3 { color: #fff; background: var(--dark-3); }
.tile-black { color: #fff; background: var(--black); }
.section-label,
.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -.016em;
}
.section-header {
  width: min(100%, var(--text-content));
  margin: 0 auto;
  text-align: center;
}
.section-header h2,
.statement h2,
.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.section-header > p:last-child {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.4;
}
.tile-dark .section-label,
.tile-dark-2 .section-label,
.tile-dark-3 .section-label,
.tile-black .section-label { color: var(--muted-dark); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.022em;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
}
.button:active { transform: scale(.95); }
.button:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 3px; }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-focus); }
.button-secondary { color: var(--primary); background: transparent; border-color: var(--primary); }
.button-secondary:hover { color: #fff; background: var(--primary); }
.button-small { min-height: 28px; padding: 7px 14px; font-size: 12px; }
.button-on-dark-secondary { color: var(--primary-dark); border-color: var(--primary-dark); }
.button-on-dark-secondary:hover { color: #fff; background: var(--primary-dark); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(460px, 1.12fr);
  align-items: center;
  gap: clamp(36px, 6vw, 100px);
  min-height: calc(100vh - 60px);
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(72px, 8vw, 120px);
}
.hero-content { width: min(100%, 650px); justify-self: end; }
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.2vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.hero h1 span { display: block; }
.hero-description {
  max-width: 630px;
  margin: 28px 0 0;
  color: #424245;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -.015em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-profile {
  display: grid;
  grid-template-columns: minmax(170px, .72fr) minmax(0, 1.28fr);
  width: min(100%, 720px);
  min-height: 460px;
  margin: 0;
  overflow: hidden;
  justify-self: start;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--hairline);
  border-radius: 28px;
}
.profile-photo-frame {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #e9e9ec;
}
.profile-photo-frame::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(to top, rgba(0,0,0,.18), transparent);
  pointer-events: none;
  content: "";
}
.profile-photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}
.profile-card-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 3.3vw, 44px);
}
.profile-card-label {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.hero-profile h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: normal;
  line-height: 1.08;
}
.profile-card-role {
  margin: 9px 0 0;
  color: #515154;
  font-size: 15px;
  line-height: 1.45;
}
.profile-card-summary {
  margin: 24px 0 0;
  color: #424245;
  font-size: 16px;
  line-height: 1.7;
}
.profile-details {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--hairline);
}
.profile-details div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
}
.profile-details dt {
  color: var(--muted);
  font-size: 12px;
}
.profile-details dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.profile-details a {
  color: var(--primary);
}
.profile-details a:hover,
.profile-details a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 24px;
}
.profile-tags span {
  padding: 7px 10px;
  color: #424245;
  background: var(--parchment);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}

/* About */
.statement { min-height: 790px; display: grid; align-content: center; }
.statement-inner {
  width: min(100%, var(--text-content));
  margin: 0 auto;
  text-align: center;
}
.statement-inner > p:last-child {
  max-width: 760px;
  margin: 30px auto 0;
  color: var(--muted-dark);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
}
.about-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 1200px);
  margin: 70px auto 0;
}
.about-item {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.about-item h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
}
.about-item p { margin: 0; color: var(--muted-dark); }

/* Capabilities */
.capabilities { padding-top: 110px; padding-bottom: 120px; }
.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: min(100%, var(--content));
  margin: 64px auto 0;
}
.skill-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto 1fr;
  column-gap: 22px;
  min-height: 430px;
  padding: 28px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 18px;
}
.skill-number {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.skill-icon {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0;
  background: var(--parchment);
  border-radius: 18px;
}
.skill-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.skill-card h3 {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 34px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: normal;
  line-height: 1.18;
}
.skill-description {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 12px 0 26px;
  color: var(--muted);
  font-size: 15px;
}
.skill-items {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex;
  align-content: flex-end;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.skill-items span {
  padding: 8px 12px;
  color: #333;
  background: var(--pearl);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

/* Project archive */
.projects-gallery-section {
  padding-top: 120px;
  padding-bottom: 140px;
}
.project-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 24px 36px;
  align-items: end;
  width: min(100%, var(--content));
  margin: 64px auto 0;
  padding: 24px;
  background: rgba(255,255,255,.76);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  backdrop-filter: saturate(150%) blur(16px);
}
.project-filter-group { min-width: 0; }
.project-filter-label {
  display: block;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 13px;
}
.project-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-filter-list button {
  min-height: 40px;
  padding: 9px 16px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.project-filter-list button:hover { border-color: var(--primary); }
.project-filter-list button:active { transform: scale(.95); }
.project-filter-list button.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.project-result {
  min-width: 112px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}
.project-archive {
  width: min(100%, var(--content));
  margin: 72px auto 0;
}
.project-year-group + .project-year-group { margin-top: 96px; }
.project-year-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
.project-year-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: normal;
  line-height: 1;
  letter-spacing: -.03em;
}
.project-year-heading span { color: var(--muted); font-size: 14px; }
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.project-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 18px;
}
.project-card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--pearl);
  border: 0;
  cursor: pointer;
}
.project-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .35s ease;
}
.project-card-media:hover img { transform: scale(1.025); }
.project-card-media:active img { transform: scale(.99); }
.project-card-group {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  font-size: 12px;
  backdrop-filter: blur(12px);
}
.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 24px 24px;
}
.project-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.project-card h4 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: normal;
  line-height: 1.15;
}
.project-card-subtitle {
  margin: 10px 0 0;
  color: #424245;
  font-size: 17px;
}
.project-card-summary {
  display: -webkit-box;
  margin: 18px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}
.project-card-tags span {
  padding: 7px 10px;
  color: #424245;
  background: var(--pearl);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}
.project-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding-top: 26px;
}
.project-card-open { border: 0; }
.project-card-link {
  color: var(--primary);
  font-size: 14px;
}
.project-empty {
  padding: 80px 24px;
  text-align: center;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 18px;
}
.project-empty strong { font-size: 21px; }
.project-empty p { margin: 10px 0 0; color: var(--muted); }

/* Experience */
.experience { padding-top: 120px; padding-bottom: 120px; }
.experience-list { width: min(100%, var(--text-content)); margin: 64px auto 0; }
.experience-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--hairline);
}
.experience-item:last-child { border-bottom: 1px solid var(--hairline); }
.experience-item > span { color: var(--muted); font-size: 14px; }
.experience-item h3 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.2; }
.experience-item p { margin: 10px 0 0; color: var(--muted); }
.experience-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--primary);
  background: var(--parchment);
  border-radius: 50%;
  font-size: 18px;
}

/* Contact & footer */
.contact {
  display: grid;
  place-items: center;
  min-height: 760px;
  padding-top: 120px;
  padding-bottom: 120px;
  text-align: center;
}
.contact-inner { width: min(100%, var(--text-content)); }
.contact-inner > p:not(.section-label) {
  max-width: 720px;
  margin: 28px auto 0;
  color: var(--muted-dark);
  font-size: 21px;
}
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.contact-links a:not(:first-child) { color: var(--primary-dark); border-color: var(--primary-dark); }
.site-footer { color: #424245; background: var(--parchment); }
.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: min(100%, 1024px);
  margin: 0 auto;
  padding: 64px 22px;
}
.footer-inner strong { color: var(--ink); font-size: 14px; }
.footer-inner p { margin: 8px 0 0; font-size: 12px; }
.footer-meta { display: flex; gap: 28px; font-size: 12px; }
.footer-meta a { color: var(--primary); }

/* Project dialog */
.project-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--canvas);
  border: 0;
}
.project-dialog::backdrop { background: rgba(0,0,0,.55); }
.dialog-shell { min-height: 100%; background: var(--canvas); }
.dialog-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  background: rgba(245,245,247,.82);
  border-bottom: 1px solid var(--soft-line);
  backdrop-filter: saturate(180%) blur(20px);
}
.dialog-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 1024px);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
}
.dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: rgba(210,210,215,.64);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .16s ease;
}
.dialog-close:active { transform: scale(.92); }
.dialog-close svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dialog-nav-title { font-size: 14px; font-weight: 600; }
.dialog-progress {
  justify-self: end;
  width: 90px;
  height: 3px;
  overflow: hidden;
  background: rgba(0,0,0,.1);
  border-radius: 999px;
}
.dialog-progress span { display: block; width: 0; height: 100%; background: var(--primary); }
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr);
  align-items: center;
  gap: clamp(48px, 7vw, 120px);
  min-height: 780px;
  padding: 100px var(--gutter);
  background: var(--parchment);
}
.detail-copy { width: min(100%, 650px); justify-self: end; }
.detail-kicker { margin: 0 0 16px; color: var(--muted); font-size: 14px; font-weight: 600; }
.detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 90px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.detail-subtitle { margin: 16px 0 0; font-size: 28px; line-height: 1.14; }
.detail-overview { margin: 28px 0 0; color: #424245; font-size: 19px; }
.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.detail-meta div { padding-top: 16px; border-top: 1px solid var(--hairline); }
.detail-meta span { display: block; color: var(--muted); font-size: 12px; }
.detail-meta strong { display: block; margin-top: 7px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.detail-image { width: min(100%, 900px); justify-self: start; }
.detail-image img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; box-shadow: var(--product-shadow); }
.detail-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 80px var(--gutter);
  background: var(--canvas);
}
.detail-highlight { padding: 0 34px; text-align: center; border-right: 1px solid var(--hairline); }
.detail-highlight:last-child { border-right: 0; }
.detail-highlight span { display: block; color: var(--muted); font-size: 14px; }
.detail-highlight strong { display: block; margin-top: 10px; font-size: clamp(24px, 3vw, 40px); font-weight: 600; line-height: 1.1; }
.detail-body { background: var(--canvas); }
.detail-section {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(40px, 8vw, 120px);
  width: min(100%, var(--text-content));
  margin: 0 auto;
  padding: 72px 0;
  border-top: 1px solid var(--hairline);
}
.detail-section h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.18;
}
.detail-section p { margin: 0; color: #424245; font-size: 18px; }
.detail-section ul { margin: 0; padding-left: 1.2em; color: #424245; }
.detail-section li + li { margin-top: 12px; }
.detail-video,
.detail-gallery,
.detail-links,
.detail-tags { width: min(100%, var(--text-content)); margin-left: auto; margin-right: auto; }
.detail-video { padding: 20px 0 80px; }
.detail-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black);
  border-radius: 18px;
}
.detail-video-frame iframe { width: 100%; height: 100%; border: 0; background: var(--black); }
.detail-video-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  color: #fff;
  background: var(--black);
  border: 0;
  cursor: pointer;
}
.detail-video-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  transform: scale(1.01);
  transition: opacity .25s ease, transform .35s ease;
}
.detail-video-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .3);
}
.detail-video-play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding-left: 5px;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  border-radius: 50%;
  font-family: system-ui, sans-serif;
  font-size: 26px;
  transition: transform .2s ease;
}
.detail-video-label {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 40px);
  font-family: var(--font-body);
  font-size: 18px;
  text-align: center;
}
.detail-video-poster:hover img { opacity: .82; transform: scale(1.035); }
.detail-video-poster:hover .detail-video-play { transform: scale(1.08); }
.detail-video-poster:active .detail-video-play { transform: scale(.94); }
.detail-video-poster:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.detail-video-help {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 14px 0 0;
  color: #6e6e73;
  font-size: 15px;
}
.detail-video-help a { color: var(--primary); }
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 20px 0 80px;
}
.detail-gallery figure { display: grid; place-items: center; min-height: 320px; margin: 0; background: var(--parchment); border-radius: 18px; }
.detail-gallery img { width: min(52%, 210px); height: 210px; object-fit: contain; filter: drop-shadow(3px 5px 20px rgba(0,0,0,.18)); }
.detail-links { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 0 36px; }
.detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 22px;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
}
.detail-link:active { transform: scale(.95); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 36px; }
.detail-tags span { padding: 9px 14px; background: var(--parchment); border-radius: 999px; font-size: 14px; }
.detail-next {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 44px), var(--text-content));
  margin: 0 auto 96px;
  padding: 34px 38px;
  color: #fff;
  text-align: left;
  background: var(--dark-1);
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  transition: transform .22s ease, background-color .22s ease;
}
.detail-next::after {
  content: "→";
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--font-body);
  font-size: 34px;
  line-height: 1;
  transition: transform .22s ease;
}
.detail-next span {
  display: block;
  color: var(--muted-dark);
  font-size: 13px;
  letter-spacing: .04em;
}
.detail-next strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.12;
}
.detail-next:hover { background: var(--dark-2); transform: translateY(-3px); }
.detail-next:hover::after { transform: translateX(5px); }
.detail-next:active { transform: scale(.985); }
.detail-next:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }

/* Motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1068px) {
  .hero,
  .project-tile,
  .detail-hero { grid-template-columns: 1fr; }
  .hero-content,
  .project-copy,
  .detail-copy { justify-self: center; text-align: center; }
  .hero-profile,
  .project-media,
  .detail-image { justify-self: center; }
  .hero { min-height: auto; }
  .hero-actions,
  .project-actions { justify-content: center; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-tile { min-height: auto; padding-top: 100px; padding-bottom: 110px; }
  .project-copy { order: 0; }
  .project-media { order: 1; }
  .detail-hero { min-height: auto; }
  .detail-meta { text-align: left; }
}

@media (max-width: 833px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .global-links { display: none; }
  .nav-contact { display: none; }
  .menu-trigger { display: block; }
  .about-columns { grid-template-columns: 1fr; max-width: 680px; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-section { grid-template-columns: 1fr; gap: 24px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .detail-highlights { padding-left: 20px; padding-right: 20px; }
  .detail-highlight { padding: 0 14px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .sub-nav-link { display: none; }
  .tile { padding: 64px 20px; }
  .hero { padding-top: 72px; padding-bottom: 64px; gap: 44px; }
  .hero h1 { font-size: 42px; }
  .hero-description { font-size: 20px; }
  .section-header h2,
  .statement h2,
  .contact h2 { font-size: 40px; }
  .section-header > p:last-child,
  .statement-inner > p:last-child,
  .contact-inner > p:not(.section-label) { font-size: 18px; }
  .statement { min-height: auto; }
  .about-columns { margin-top: 48px; }
  .skill-grid { grid-template-columns: 1fr; margin-top: 44px; }
  .skill-card { min-height: 390px; }
  .project-tile { grid-template-columns: 1fr; gap: 44px; min-height: auto; padding: 72px 20px 80px; }
  .project-copy h3 { font-size: 42px; }
  .project-subtitle { font-size: 22px; }
  .project-summary { font-size: 16px; }
  .experience-item { grid-template-columns: 44px 1fr; gap: 16px; }
  .experience-mark { display: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-meta { width: 100%; justify-content: space-between; }
  .dialog-nav-inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .dialog-nav-title { text-align: center; }
  .dialog-progress { width: 50px; }
  .detail-hero { grid-template-columns: 1fr; padding: 72px 20px; }
  .detail-copy { text-align: center; }
  .detail-title { font-size: 48px; }
  .detail-subtitle { font-size: 22px; }
  .detail-overview { font-size: 16px; }
  .detail-meta { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .detail-highlights { grid-template-columns: 1fr; gap: 28px; padding: 60px 20px; }
  .detail-highlight { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .detail-highlight:last-child { padding-bottom: 0; border-bottom: 0; }
  .detail-section { padding-top: 56px; padding-bottom: 56px; }
  .detail-section h3 { font-size: 28px; }
  .detail-gallery { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; }
  .detail-video,
  .detail-links,
  .detail-tags { padding-left: 20px; padding-right: 20px; }
  .detail-next {
    grid-template-columns: 1fr auto;
    width: calc(100% - 40px);
    margin-bottom: 56px;
    padding: 28px 24px;
  }
  .detail-next strong { font-size: 30px; }
  .detail-next::after { font-size: 28px; }
}

@media (max-width: 419px) {
  .brand-text { display: none; }
  .hero h1,
  .section-header h2,
  .statement h2,
  .contact h2,
  .project-copy h3 { font-size: 34px; }
  .hero-actions,
  .project-actions,
  .contact-links { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .project-jump { align-items: stretch; flex-direction: column; }
  .project-jump a { text-align: center; }
  .detail-title { font-size: 40px; }
}


@media (max-width: 1068px) {
  .project-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-result { grid-column: 1 / -1; margin: 0; text-align: left; }
}

@media (max-width: 640px) {
  .projects-gallery-section { padding-top: 72px; padding-bottom: 88px; }
  .project-controls { grid-template-columns: 1fr; gap: 22px; margin-top: 44px; padding: 20px; }
  .project-result { grid-column: auto; }
  .project-archive { margin-top: 52px; }
  .project-year-group + .project-year-group { margin-top: 68px; }
  .project-gallery-grid { grid-template-columns: 1fr; }
  .project-card h4 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Readability pass: decorative headings, calm body copy */
:root {
  --font-text: 'NanumSquareRound', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  --reading-width: 720px;
}

body {
  font-family: var(--font-text);
  line-height: 1.68;
  letter-spacing: -0.012em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.global-brand,
.global-links,
.button,
.section-label,
.eyebrow,
.project-filter-list button,
.project-card-tags,
.skill-items,
.experience-meta,
.experience-period,
.detail-kicker,
.detail-meta,
.detail-tags,
.footer-inner {
  font-family: var(--font-text);
}

.section-header > p:last-child {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.75;
}

.hero-description {
  max-width: 580px;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.65;
}

/* About: summary first, scannable responsibilities second */
.statement {
  min-height: auto;
  padding-top: clamp(100px, 10vw, 150px);
  padding-bottom: clamp(100px, 10vw, 150px);
}

.statement-inner {
  width: min(100%, 1120px);
}

.statement-inner > .section-label,
.statement-inner > h2 {
  text-align: center;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  gap: 48px;
  align-items: end;
  max-width: 960px;
  margin: 42px auto 0;
  padding: 30px 0;
  text-align: left;
  border-top: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
}

#aboutLead {
  max-width: 600px;
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 400;
  line-height: 1.72;
}

.about-intro-simple {
  display: block;
  max-width: 720px;
  padding: 30px 0;
  text-align: center;
}
.about-intro-simple #aboutLead {
  max-width: 720px;
  margin: 0 auto;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.about-facts div {
  min-width: 0;
}

.about-facts dt {
  color: #a1a1a6;
  font-size: 12px;
  line-height: 1.3;
}

.about-facts dd {
  margin: 7px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.about-columns {
  gap: 32px;
  width: min(100%, 1120px);
  margin-top: 56px;
  text-align: left;
}

.about-item {
  padding-top: 26px;
}

.about-item-label {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.about-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: normal;
  line-height: 1.25;
}

.about-item-summary {
  margin: 16px 0 0;
  color: #d2d2d7;
  font-size: 16px;
  line-height: 1.75;
}

.about-item ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.about-item li {
  position: relative;
  padding-left: 17px;
  color: #f5f5f7;
  font-size: 14px;
  line-height: 1.55;
}

.about-item li::before {
  position: absolute;
  top: .7em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--primary-dark);
  border-radius: 50%;
  content: "";
}

/* Supporting copy throughout the site */
.skill-description {
  max-width: 260px;
  line-height: 1.65;
}

.project-card-subtitle {
  line-height: 1.55;
}

.project-card-summary {
  line-height: 1.68;
}

.contact-inner > p:not(.section-label) {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.75;
}

/* Experience: explicit role and tenure rather than one dense sentence */
.experience-list {
  width: min(100%, 1080px);
  margin-top: 72px;
}

.experience-item {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  padding: 38px 0;
}

.experience-number {
  padding-top: 4px;
  font-size: 13px !important;
  font-weight: 600;
}

.experience-content {
  min-width: 0;
}

.experience-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.experience-type {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}

.experience-item h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: normal;
  line-height: 1.3;
}

.experience-period {
  flex: 0 0 auto;
  min-width: 220px;
  padding-left: 24px;
  text-align: right;
  border-left: 1px solid var(--hairline);
}

.experience-period span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.experience-period strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.experience-meta span {
  padding: 7px 11px;
  color: #424245;
  background: var(--parchment);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.experience-meta span:last-child {
  color: var(--primary);
  background: #f4f8ff;
  border-color: #d8e8fb;
}

.experience-description {
  max-width: var(--reading-width);
  margin: 18px 0 0 !important;
  color: #515154 !important;
  font-size: 16px;
  line-height: 1.72;
}

/* Project details: shorter lines and clearer list rhythm */
.detail-overview {
  max-width: 620px;
  line-height: 1.72;
}

.detail-section > div {
  max-width: var(--reading-width);
}

.detail-section p,
.detail-section ul {
  font-size: 17px;
  line-height: 1.75;
}

.detail-section ul {
  padding-left: 1.35em;
}

.detail-section li + li {
  margin-top: 14px;
}

@media (max-width: 833px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }

  .about-facts {
    max-width: 600px;
  }

  .experience-heading {
    flex-direction: column;
    gap: 20px;
  }

  .experience-period {
    min-width: 0;
    padding: 14px 0 0;
    text-align: left;
    border-top: 1px solid var(--hairline);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .statement {
    padding-top: 88px;
    padding-bottom: 96px;
  }

  .about-intro {
    margin-top: 32px;
    padding: 24px 0;
  }

  .about-facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-columns {
    gap: 34px;
    margin-top: 44px;
  }

  .experience-list {
    margin-top: 48px;
  }

  .experience-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 30px 0;
  }

  .experience-item h3 {
    font-size: 22px;
  }
}


/* Profile hero responsive refinement */
@media (max-width: 1068px) {
  .hero-profile {
    width: min(100%, 760px);
    justify-self: center;
  }
}

@media (max-width: 735px) {
  .hero-profile {
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 0;
    border-radius: 22px;
  }
  .profile-photo-frame img {
    min-height: 390px;
  }
  .profile-card-content {
    padding: 28px 24px;
  }
}

@media (max-width: 520px) {
  .hero-profile {
    grid-template-columns: 1fr;
  }
  .profile-photo-frame {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .profile-photo-frame img {
    min-height: 0;
    aspect-ratio: 16 / 10;
    object-position: center 28%;
  }
  .profile-card-content {
    padding: 26px 22px 24px;
  }
  .profile-card-summary {
    margin-top: 18px;
  }
  .profile-details {
    margin-top: 22px;
  }
  .profile-tags {
    margin-top: 0;
  }
}

/* Profile card: full-width image instead of a narrow split panel */
.hero-profile {
  display: flex;
  width: min(100%, 650px);
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.profile-photo-frame {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 8.2;
  flex: 0 0 auto;
}

.profile-photo-frame::after {
  height: 22%;
  background: linear-gradient(to top, rgba(0, 0, 0, .12), transparent);
}

.profile-photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.profile-card-content {
  padding: clamp(28px, 3vw, 40px);
}

.profile-card-summary {
  max-width: 570px;
  margin-top: 18px;
}

.profile-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  margin-top: 22px;
}

.profile-details div {
  grid-template-columns: 78px minmax(0, 1fr);
}

.profile-tags {
  margin-top: 0;
  padding-top: 20px;
}

@media (max-width: 735px) {
  .hero-profile {
    display: flex;
    width: min(100%, 650px);
  }

  .profile-photo-frame {
    aspect-ratio: 16 / 9;
  }

  .profile-photo-frame img {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .profile-photo-frame {
    aspect-ratio: 4 / 3;
  }

  .profile-details {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
}

/* Solbangul enterprise case study */
.detail-hero-case {
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .78fr);
  gap: clamp(48px, 7vw, 108px);
}

.detail-impact-panel {
  width: min(100%, 600px);
  min-height: 520px;
  justify-self: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 64px);
  color: #fff;
  background: var(--dark-1);
}

.detail-impact-eyebrow {
  margin: 0;
  color: var(--primary-on-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.detail-impact-primary {
  margin-top: auto;
  padding-top: 72px;
}

.detail-impact-primary span,
.detail-impact-secondary span {
  display: block;
  color: var(--muted-dark);
  font-size: 14px;
}

.detail-impact-primary strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: normal;
  line-height: .95;
}

.detail-impact-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.18);
}

.detail-impact-secondary strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: normal;
  line-height: 1.1;
}

.detail-impact-caption {
  max-width: 390px;
  margin: 42px 0 0;
  color: #d2d2d7;
  font-size: 16px;
  line-height: 1.72;
}

.detail-highlights {
  grid-template-columns: repeat(var(--highlight-count, 3), minmax(0, 1fr));
}

.detail-case-intro,
.detail-contribution-section,
.detail-case-sections,
.detail-video-section {
  width: min(100%, var(--text-content));
  margin-inline: auto;
}

.detail-case-intro {
  padding: 112px 0 104px;
  text-align: center;
}

.detail-case-eyebrow,
.detail-content-heading > p,
.detail-codebase-heading > p {
  margin: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.detail-case-intro h2 {
  max-width: 920px;
  margin: 22px auto 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: normal;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.detail-case-intro > p:last-child {
  max-width: 760px;
  margin: 30px auto 0;
  color: #515154;
  font-size: 19px;
  line-height: 1.85;
}

.detail-content-heading {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.detail-content-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: normal;
  line-height: 1.15;
}

.detail-content-heading div > p {
  max-width: 680px;
  margin: 16px 0 0;
  color: #6e6e73;
  font-size: 17px;
  line-height: 1.7;
}

.detail-contribution-section {
  padding: 96px 0 112px;
  border-top: 1px solid var(--hairline);
}

.detail-contribution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
}

.detail-contribution-card {
  min-height: 310px;
  padding: 32px;
  background: var(--parchment);
  border: 1px solid var(--hairline);
  border-radius: 18px;
}

.detail-contribution-card > span {
  display: block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.detail-contribution-card h3 {
  margin: 58px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: normal;
  line-height: 1.25;
}

.detail-contribution-card p {
  margin: 18px 0 0;
  color: #515154;
  font-size: 16px;
  line-height: 1.72;
}

.detail-case-sections {
  border-top: 1px solid var(--hairline);
}

.detail-case-section {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(44px, 8vw, 120px);
  padding: 82px 0;
  border-bottom: 1px solid var(--hairline);
}

.detail-case-section-title span {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.detail-case-section-title h3 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: normal;
  line-height: 1.2;
}

.detail-case-section-copy {
  max-width: 720px;
}

.detail-case-section-copy > p {
  margin: 0;
  color: #424245;
  font-size: 18px;
  line-height: 1.78;
}

.detail-case-section-copy ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.detail-case-section-copy li {
  position: relative;
  padding-left: 24px;
  color: #515154;
  font-size: 17px;
  line-height: 1.72;
}

.detail-case-section-copy li::before {
  position: absolute;
  top: .72em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  content: "";
}

.detail-codebase {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 70px;
  padding: 112px max(var(--gutter), calc((100% - var(--text-content)) / 2));
  color: #fff;
  background: var(--dark-1);
}

.detail-codebase-heading h2 {
  max-width: 650px;
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: normal;
  line-height: 1.14;
}

.detail-codebase-heading > span {
  display: block;
  max-width: 680px;
  margin-top: 28px;
  color: #d2d2d7;
  font-size: 17px;
  line-height: 1.78;
}

.detail-codebase-metrics {
  display: grid;
  align-self: start;
  border-top: 1px solid rgba(255,255,255,.18);
}

.detail-codebase-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding: 25px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.detail-codebase-metrics strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: normal;
}

.detail-codebase-metrics span {
  color: #a1a1a6;
  font-size: 14px;
  text-align: right;
}

.detail-codebase-domains {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.detail-codebase-domains span {
  padding: 10px 15px;
  color: #f5f5f7;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-size: 14px;
}

.detail-codebase-note {
  grid-column: 1 / -1;
  margin: -40px 0 0;
  color: #86868b;
  font-size: 12px;
  line-height: 1.6;
}

.detail-video-section {
  padding: 112px 0 100px;
}

.detail-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 54px;
}

.detail-video-grid.is-single {
  grid-template-columns: minmax(0, 760px);
}

.detail-video-card {
  min-width: 0;
}

.detail-video-frame {
  border-radius: 0;
}

.detail-video-copy {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 2px 0;
}

.detail-video-copy > span {
  color: #86868b;
  font-size: 13px;
}

.detail-video-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: normal;
  line-height: 1.3;
}

.detail-video-copy p {
  margin: 10px 0 0;
  color: #6e6e73;
  font-size: 15px;
  line-height: 1.62;
}

.detail-video-copy a {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  font-size: 14px;
}

.detail-video-help {
  margin-top: 24px;
  color: #86868b;
  font-size: 13px;
  line-height: 1.6;
}

.detail-body-case .detail-links,
.detail-body-case .detail-tags {
  width: min(100%, var(--text-content));
}

.detail-body-case .detail-tags {
  padding-top: 12px;
  padding-bottom: 54px;
}

@media (max-width: 1068px) {
  .detail-hero-case {
    grid-template-columns: 1fr;
  }

  .detail-impact-panel {
    justify-self: center;
    min-height: 440px;
  }

  .detail-contribution-grid,
  .detail-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-video-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
  }

  .detail-codebase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 833px) {
  .detail-case-intro,
  .detail-contribution-section,
  .detail-case-sections,
  .detail-video-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .detail-content-heading,
  .detail-case-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-case-intro {
    padding-top: 78px;
    padding-bottom: 72px;
    text-align: left;
  }

  .detail-case-intro h2,
  .detail-case-intro > p:last-child {
    margin-left: 0;
    margin-right: 0;
  }

  .detail-contribution-section {
    padding-top: 70px;
    padding-bottom: 78px;
  }

  .detail-contribution-grid,
  .detail-video-grid {
    grid-template-columns: 1fr;
  }

  .detail-video-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
  }

  .detail-contribution-card {
    min-height: 0;
  }

  .detail-contribution-card h3 {
    margin-top: 34px;
  }

  .detail-case-section {
    padding: 62px 20px;
  }

  .detail-codebase {
    gap: 52px;
    padding: 82px 20px;
  }

  .detail-codebase-note {
    margin-top: -18px;
  }

  .detail-video-section {
    padding-top: 78px;
    padding-bottom: 72px;
  }
}

@media (max-width: 640px) {
  .detail-impact-panel {
    min-height: 390px;
    padding: 30px;
  }

  .detail-impact-primary {
    padding-top: 48px;
  }

  .detail-impact-secondary {
    grid-template-columns: 1fr;
  }

  .detail-highlights {
    grid-template-columns: 1fr;
  }

  .detail-codebase-metrics div {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-codebase-metrics span {
    text-align: left;
  }
}
