:root {
  --color-bg: #FFFFFF;
  --color-surface: #F3F3F1;
  --color-ink: #0A0A0A;
  --color-ink-muted: #52524E;
  --color-ink-subtle: #6B6B67;

  --font-sans: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, -apple-system, sans-serif;

  --frame-max: 1440px;
  --frame-pad: 64px;
  --grid-gap: 24px;
  --radius-media: 8px;
  --header-height: 76px;

  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

/* Large sections remain scrollable within their own snap area. */
.hero-section,
.about-section,
.spectrum-section,
.work-entry,
.experience-section,
.site-footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-section {
  scroll-margin-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ul {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: var(--frame-pad);
  top: -120px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background-color: var(--color-ink);
  color: var(--color-bg);
  font-size: 1rem;
  font-weight: 600;
}

.skip-link:focus-visible {
  top: 12px;
}

.frame {
  width: 100%;
  max-width: var(--frame-max);
  margin-inline: auto;
  padding-inline: var(--frame-pad);
}

/* Shared 1:1 Square Logos (Sogang University & HateSlop · Zero Background Box) */
.logo-square {
  display: block;
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-square--lg {
  width: 68px;
  height: 68px;
}

/* Header · Pure White Editorial Bar (Zero Gray Boxes) */
.site-header {
  position: relative;
  z-index: 40;
  min-height: var(--header-height);
  padding-top: 12px;
  display: flex;
  align-items: center;
  background-color: var(--color-bg);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 18px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink-muted);
  transition: color 140ms ease-out;
}

.nav-link--ext {
  color: var(--color-ink);
  font-weight: 600;
}

.nav-link:hover,
.site-brand:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

/* S1. Full-Viewport Minimal Landing Screen (100svh total with Header) */
.hero-section {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: stretch;
  background-color: var(--color-bg);
}

.hero-frame {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding-block: 36px 40px;
  gap: 32px;
}

.hero-spacer {
  height: 12px;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 720px;
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--color-ink);
}

.hero-identity {
  margin-top: 2px;
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.hero-note {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-ink-muted);
}

.hero-marks {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 32px;
}

.hero-mark-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-mark-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink-muted);
}

.hero-mark-sep {
  display: none;
}

.hero-bottom {
  display: flex;
  justify-content: center;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 16px;
  color: var(--color-ink-muted);
  transition: color 180ms ease-out;
}

.scroll-cue:hover {
  color: var(--color-ink);
}

.scroll-cue-label {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.scroll-cue-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes scrollWheelPulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.95;
  }
  50% {
    transform: translateY(4px);
    opacity: 0.35;
  }
}

@keyframes scrollChevronFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.scroll-wheel {
  animation: scrollWheelPulse 2s var(--ease-editorial) infinite;
}

.scroll-chevron {
  animation: scrollChevronFloat 2s var(--ease-editorial) infinite;
}

/* S2. About & Personal Photo Slots · Pure White Surface + Single-Layer Photo Slots */
.about-section {
  padding-block: 120px;
  background-color: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 48px;
  align-items: center;
}

.about-copy-col {
  grid-column: 1 / 7;
  display: grid;
  gap: 20px;
}

.about-copy-col .section-title {
  grid-column: auto;
}

.about-lead {
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: -0.018em;
  color: var(--color-ink);
}

.about-body {
  max-width: 36em;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-ink-muted);
}

.org-list {
  margin-top: 12px;
  display: grid;
  gap: 18px;
}

.org-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.org-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.org-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
}

.org-sub {
  font-size: 0.9375rem;
  color: var(--color-ink-muted);
}

.about-photos-col {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

/* Single flat surface · zero outer white box wrapping inner gray box */
.photo-slot {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--color-surface);
  border-radius: var(--radius-media);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  gap: 6px;
}

.photo-slot--secondary {
  margin-top: 36px;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot:has(img) {
  padding: 0;
}

.photo-slot-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
}

.photo-slot-spec {
  font-size: 0.9375rem;
  color: var(--color-ink-muted);
}

/* S3. Center-Anchored Unified 16:10 Scroll-Scrubbed Gallery ("Work Spectrum") */
.spectrum-section {
  position: relative;
  background-color: var(--color-bg);
}

html.js-spectrum .spectrum-section {
  height: 390vh;
  scroll-snap-align: none;
}

.spectrum-snap-anchors {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html.js-spectrum .spectrum-snap-anchors {
  display: block;
}

.spectrum-snap-marker {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.spectrum-sticky {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 4.6vh, 48px);
  padding-block: 28px;
}

html.js-spectrum .spectrum-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vh, 36px);
  padding-block: 20px;
}

.spectrum-top {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
}

.spectrum-prompt {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  text-align: center;
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.spectrum-lead {
  color: var(--color-ink-subtle);
  font-weight: 500;
  transition: opacity 200ms var(--ease-editorial);
}

.spectrum-keyword {
  color: var(--color-ink);
  font-weight: 700;
  transition: opacity 200ms var(--ease-editorial), transform 220ms var(--ease-editorial);
}

.spectrum-prompt.is-switching .spectrum-lead,
.spectrum-prompt.is-switching .spectrum-keyword {
  opacity: 0.32;
}

/* No-JS / Reduced-motion wrapped grid fallback */
.spectrum-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
}

.spectrum-rail {
  width: 100%;
  max-width: var(--frame-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding-inline: var(--frame-pad);
  padding-block: 12px;
}

.spectrum-card {
  width: 100%;
  cursor: pointer;
  border-radius: var(--radius-media);
}

/* Scroll-Scrubbed Center-Anchored Stage */
html.js-spectrum .spectrum-stage {
  flex: 0 0 auto;
  width: 100%;
  height: min(42svh, 412px);
  position: relative;
  display: flex;
  align-items: center;
}

html.js-spectrum .spectrum-rail {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: visible;
  padding: 0;
  display: block;
}

html.js-spectrum .spectrum-card {
  position: absolute;
  left: 0;
  top: 50%;
  width: min(48vw, 660px, 67svh);
  transform-origin: left center;
  will-change: transform;
}

.spectrum-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 54svh;
  overflow: hidden;
  border-radius: var(--radius-media);
  background-color: var(--color-bg);
}

.spectrum-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Center-Aligned Gallery Captions & Waveform Ruler */
.spectrum-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.spectrum-active-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}

.spectrum-meta-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

.spectrum-meta-sub {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
}

.spectrum-meta-tag {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-ink-subtle);
}

.spectrum-meta-sep {
  font-size: 0.9375rem;
  color: var(--color-ink-subtle);
}

.spectrum-jump {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink);
}

.spectrum-jump:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* Waveform Tick Ruler */
.spectrum-ruler {
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
}

.ruler-tick {
  appearance: none;
  border: 0;
  background: transparent;
  flex: 1 1 0;
  min-width: 0;
  max-width: 14px;
  padding: 4px 0;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ruler-tick-bar {
  display: block;
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background-color: var(--color-ink);
  opacity: 0.35;
  transition: background-color 140ms ease-out;
}

.ruler-tick.is-near .ruler-tick-bar {
  opacity: 1;
}

/* S4. Selected Work · Asymmetric Editorial Showcase + Build Specs + HateSlop 3-5기 */
.work-section {
  padding-top: 112px;
  padding-bottom: 104px;
  background-color: var(--color-bg);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 10px;
  align-items: baseline;
  margin-bottom: 64px;
}

.section-title {
  grid-column: 1 / 5;
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-sub {
  grid-column: 5 / 13;
  justify-self: end;
  color: var(--color-ink-muted);
  font-size: 1rem;
}

.work-editorial {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 136px;
  align-items: start;
}

.work-entry--full {
  grid-column: 1 / 13;
}

/* Zig-zag rhythm: left (1-8) → right (5-12) → left. Overlapping columns force each onto its own row. */
.work-entry--left {
  grid-column: 1 / 9;
}

.work-entry--right {
  grid-column: 5 / 13;
  margin-top: 0;
}

/* Gentle scroll entrance when JS is active */
html.js-ready .reveal-part {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms var(--ease-editorial), transform 560ms var(--ease-editorial);
}

html.js-ready .reveal-part.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Kim Gamdo Multi-Game Mosaic (Left Portal Hub + Right 2x2 Games Grid) */
.kimgamdo-mosaic {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mosaic-portal {
  display: flex;
  flex-direction: column;
}

.mosaic-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.mosaic-item {
  display: flex;
  flex-direction: column;
}

.mosaic-caption {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  line-height: 1.45;
  word-break: keep-all;
}

.work-thumb {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-media);
  background-color: var(--color-surface);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 380ms var(--ease-editorial);
}

/* 4 uniform cards in 2x2 grid (4:5 ratio) */
.mosaic-item .work-thumb {
  aspect-ratio: 4 / 5;
  background-color: var(--color-surface);
}

.mosaic-item:nth-child(1) .work-thumb img,
.mosaic-item:nth-child(2) .work-thumb img {
  object-fit: cover;
  object-position: top center;
}

.mosaic-item:nth-child(3) .work-thumb img,
.mosaic-item:nth-child(4) .work-thumb img {
  object-fit: cover;
  object-position: center;
}

@media (hover: hover) and (pointer: fine) {
  .work-figure:hover .work-thumb img,
  .mosaic-portal:hover .work-thumb img,
  .mosaic-item:hover .work-thumb img {
    transform: scale(1.018);
  }
}

.work-caption {
  padding-top: 24px;
}

.work-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.work-title-heading {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.work-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  background-color: var(--color-surface);
  border-radius: var(--radius-pill);
  line-height: 1.3;
}

.work-name {
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.work-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.ext-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.ext-link:hover {
  color: var(--color-ink-muted);
}

.work-desc {
  margin-top: 10px;
  max-width: 38em;
  color: var(--color-ink);
  font-size: 1rem;
  line-height: 1.74;
}

.work-role {
  margin-top: 4px;
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
}

/* "어떻게 만들었나" Engineering & Product Build Spec (Pure Whitespace & Typography) */
.build-spec {
  margin-top: 22px;
  max-width: 44em;
  display: grid;
  gap: 12px;
}

.build-spec-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 4px 20px;
  align-items: baseline;
}

.build-spec-term {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-ink);
}

.build-spec-desc {
  max-width: 36em;
  font-size: 1rem;
  color: var(--color-ink-muted);
  line-height: 1.68;
}

/* Full-width editorial styling for full-stage showcases (Kim Gamdo & HateSlop) */
.work-entry--full .work-caption {
  width: 100%;
  padding-top: 36px;
}

.work-entry--full .work-title-row {
  width: 100%;
}

.work-entry--full .work-desc {
  max-width: 100%;
  margin-top: 14px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-ink);
  word-break: keep-all;
}

.work-entry--full .build-spec {
  max-width: 100%;
  width: 100%;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 1024px) {
  .work-entry--full .build-spec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
    row-gap: 20px;
    margin-top: 32px;
    padding-top: 24px;
  }

  .work-entry--full .build-spec-row {
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: baseline;
  }

  .work-entry--full .build-spec-desc {
    max-width: 100%;
    color: var(--color-ink-muted);
    line-height: 1.7;
  }
}

/* Instagram Viral Showcase Block (Open permanently) */
.work-insights-block {
  margin-top: 40px;
  width: 100%;
}

.work-insights-header {
  margin-bottom: 16px;
}

.work-insights-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.015em;
  margin: 0;
}

/* HateSlop Detailed 3기 -> 4기 -> 5기 Progression Feature */
.hateslop-feature {
  padding-top: 16px;
}

.hateslop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
}

.hateslop-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hateslop-title-wrap {
  display: flex;
  flex-direction: column;
}

.hateslop-lead {
  margin-top: 18px;
  max-width: 100%;
  line-height: 1.7;
}

.cohort-progression {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 32px;
}

.cohort-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cohort-meta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink-subtle);
  font-variant-numeric: tabular-nums;
}

.cohort-title {
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.018em;
  color: var(--color-ink);
}

.cohort-list {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--color-ink-muted);
}

.cohort-list strong {
  color: var(--color-ink);
  font-weight: 600;
}

.hateslop-photo-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Expandable Work Context Drawer (Pure Editorial Typographic Trigger, Zero Boxes) */
.work-disclosure {
  margin-top: 20px;
}

.work-toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  background-color: transparent;
  color: var(--color-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  user-select: none;
}

.work-toggle::-webkit-details-marker {
  display: none;
}

.work-toggle:hover .work-toggle-text {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

.work-toggle-mark {
  position: relative;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.work-toggle-mark::before,
.work-toggle-mark::after {
  content: '';
  position: absolute;
  background-color: var(--color-ink);
  transition: transform 260ms var(--ease-editorial);
}

.work-toggle-mark::before {
  top: 4.5px;
  left: 0;
  width: 11px;
  height: 2px;
}

.work-toggle-mark::after {
  top: 0;
  left: 4.5px;
  width: 2px;
  height: 11px;
}

.work-disclosure[open]:not([data-closing]) .work-toggle-mark::after {
  transform: scaleY(0);
}

.work-panel {
  overflow: hidden;
  margin-top: 12px;
  background-color: var(--color-bg);
}

.work-panel-inner {
  padding-top: 12px;
  display: grid;
  gap: 24px;
}

/* Compact stage with optional supporting material. */
.stage-details {
  margin-top: 16px;
}

.stage-details > summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 700;
  list-style: none;
}

.stage-details > summary::-webkit-details-marker { display: none; }
.stage-details > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.stage-details[open] > summary span { transform: rotate(45deg); }
.stage-details > summary span { transition: transform 200ms var(--ease-editorial); }
.stage-details-content { padding-top: 12px; }

.work-entry {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-footer { min-height: 100svh; }

.detail-gallery--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.detail-shot img {
  width: 100%;
  border-radius: var(--radius-media);
}

.detail-shot figcaption {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--color-ink-muted);
  line-height: 1.5;
}

/* S5. Experience & Education · Flat Full-Bleed Tone Band (Zero Inner Boxes) */
.experience-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 96px;
  background-color: var(--color-surface);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 40px;
  align-items: start;
}

.experience-head-col {
  grid-column: 1 / 5;
  display: grid;
  gap: 16px;
}

.experience-head-col .section-title {
  grid-column: auto;
}

.experience-intro {
  max-width: 24em;
  color: var(--color-ink-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.experience-list-col {
  grid-column: 6 / 13;
  display: grid;
  gap: 28px;
}

.exp-row {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 12px 28px;
  align-items: start;
}

.exp-period {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.exp-body {
  display: flex;
  flex-direction: column;
}

.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.exp-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-ink);
}

.exp-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.exp-detail {
  margin-top: 6px;
  max-width: 44em;
  font-size: 1rem;
  color: var(--color-ink-muted);
  line-height: 1.66;
}

/* S6. Footer & Monumental Wordmark */
.site-footer {
  padding-top: 64px;
  padding-bottom: 32px;
  background-color: var(--color-bg);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 40px;
  align-items: start;
}

.footer-contact-block {
  grid-column: 1 / 8;
}

.footer-invite {
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-ink-subtle);
  letter-spacing: -0.02em;
}

.about-contact-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.footer-email {
  display: inline-block;
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.footer-email:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

.footer-phone {
  display: inline-block;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-ink-muted);
  letter-spacing: -0.015em;
  transition: color 200ms ease;
}

.footer-phone:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-columns {
  grid-column: 8 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-col-label {
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink-subtle);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink);
}

.footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.footer-monument {
  margin-top: 52px;
  overflow: hidden;
}

.monument-sub {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.monument-wordmark {
  margin-top: 4px;
  font-size: clamp(3.3rem, 14.8vw, 13.4rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--color-ink);
  white-space: nowrap;
}

/* Desktop Stage Snapping & Calm Viewport Presentation (>= 1024px) */
@media (min-width: 1024px) {
  .about-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: 48px;
  }

  .about-grid {
    width: 100%;
  }

  .work-section {
    padding-block: 0;
  }

  .work-editorial {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .work-entry {
    padding-block: clamp(48px, 8vh, 88px);
    width: 100%;
  }

  .work-entry--left .work-figure .work-thumb,
  .work-entry--right .work-figure .work-thumb { max-height: 58svh; }
  .work-entry--left .work-figure .work-thumb img,
  .work-entry--right .work-figure .work-thumb img { max-height: 58svh; object-fit: contain; }

  .work-entry .section-head {
    margin-bottom: 24px;
  }

  .kimgamdo-mosaic {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
  }

  .mosaic-portal {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .mosaic-portal .work-thumb {
    width: 100%;
    aspect-ratio: 1165 / 1357;
    border-radius: var(--radius-media);
    overflow: hidden;
    background-color: var(--color-surface);
  }

  .mosaic-portal .work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .mosaic-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px;
    height: 100%;
  }

  .mosaic-item {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }

  .mosaic-item .work-thumb {
    flex: 1;
    min-height: 0;
    width: 100%;
    border-radius: var(--radius-media);
    overflow: hidden;
    background-color: var(--color-surface);
  }

  .mosaic-item .work-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .mosaic-item:nth-child(1) .work-thumb img,
  .mosaic-item:nth-child(2) .work-thumb img {
    object-position: top center;
  }

  .mosaic-item:nth-child(3) .work-thumb img,
  .mosaic-item:nth-child(4) .work-thumb img {
    object-position: center;
  }

  .mosaic-caption {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--color-ink-muted);
    line-height: 1.4;
    white-space: normal;
    flex-shrink: 0;
  }

  /* RoutePick, mada, Hollowslop split stage: balanced 2-column without cramming */
  .work-entry--left .work-figure,
  .work-entry--right .work-figure {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
  }

  .work-entry--left .work-figure .work-caption {
    padding-top: 0;
  }

  .work-entry--right .work-figure .work-thumb {
    order: 2;
  }

  .work-entry--right .work-figure .work-caption {
    order: 1;
    padding-top: 0;
  }

  .experience-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: clamp(48px, 8vh, 80px);
  }

  .experience-grid {
    width: 100%;
  }

  .site-footer {
    padding-block: clamp(64px, 10vh, 110px);
    display: flex;
    align-items: center;
  }

  .footer-frame {
    width: 100%;
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  :root {
    --frame-pad: 36px;
  }

  .about-copy-col,
  .about-photos-col {
    grid-column: 1 / 13;
  }

  .work-entry { padding-block: 40px; }
  .work-entry .work-figure .work-thumb { max-height: 34svh; }
  .work-entry .work-figure .work-thumb img { max-height: 34svh; object-fit: contain; }

  html.js-spectrum .spectrum-card {
    width: min(64vw, 540px, 67svh);
  }

  .kimgamdo-mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-entry--left {
    grid-column: 1 / 11;
  }

  .work-entry--right {
    grid-column: 3 / 13;
    margin-top: 0;
  }

  .cohort-progression {
    grid-template-columns: 1fr;
  }

  .experience-head-col,
  .experience-list-col,
  .footer-contact-block,
  .footer-columns {
    grid-column: 1 / 13;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  :root {
    --frame-pad: 20px;
    --header-height: 64px;
  }

  .site-nav {
    gap: 2px 10px;
  }

  .nav-link--ext {
    display: none;
  }

  .hero-frame {
    padding-block: 24px 28px;
  }

  .hero-marks {
    flex-direction: column;
    gap: 10px;
  }

  .experience-section {
    padding-block: 40px;
  }

  .about-section { padding-block: 76px; }
  .experience-section { min-height: 100svh; display: flex; align-items: center; }
  .hateslop-photo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
  .hateslop-photo-strip .detail-shot img { aspect-ratio: 3 / 2; object-fit: cover; }
  .hateslop-photo-strip .detail-shot figcaption { font-size: 0.75rem; line-height: 1.35; }
  .experience-grid { row-gap: 20px; }
  .experience-list-col { gap: 16px; }
  .exp-row { gap: 2px; }
  .exp-detail { margin-top: 2px; font-size: 0.9rem; line-height: 1.5; }

  .about-photos-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .photo-slot--secondary {
    margin-top: 20px;
  }

  html.js-spectrum .spectrum-section {
    height: 360vh;
  }

  .spectrum-sticky {
    padding-block: 20px 24px;
  }

  html.js-spectrum .spectrum-card {
    width: min(80vw, 324px, 67svh);
  }

  .spectrum-media {
    max-height: 46svh;
  }

  .spectrum-meta-sub {
    flex-direction: column;
    gap: 2px;
  }

  .spectrum-meta-sep {
    display: none;
  }

  .work-section {
    padding-block: 0;
  }

  .section-head,
  .work-editorial,
  .mosaic-stack,
  .hateslop-photo-strip,
  .detail-gallery--two,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .section-title,
  .section-sub,
  .work-entry--full,
  .work-entry--left,
  .work-entry--right {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .section-sub {
    justify-self: start;
  }

  .work-editorial {
    row-gap: 0;
  }

  .build-spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hateslop-brand-row {
    align-items: flex-start;
  }

  .exp-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-monument {
    margin-top: 64px;
  }

  .hateslop-photo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .footer-monument { margin-top: 36px; }
}

/* Kim Gamdo: one stage for the five images, another for the full story. */
#work-kimgamdo {
  display: block;
  min-height: 0;
  padding: 0;
  scroll-snap-align: none;
}

.kim-stage {
  min-height: 100svh;
  padding-block: clamp(28px, 5vh, 56px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.kim-gallery-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kim-gallery-stage .kimgamdo-mosaic {
  width: min(100%, 1050px, 110svh);
  height: min(74svh, 700px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(8px, 1.5vw, 24px);
  align-items: stretch;
}

.kim-gallery-stage .mosaic-portal,
.kim-gallery-stage .mosaic-item { min-width: 0; height: 100%; }
.kim-gallery-stage .mosaic-portal .work-thumb { aspect-ratio: auto; flex: 1; min-height: 0; }
.kim-gallery-stage .mosaic-portal .work-thumb img { height: 100%; object-fit: cover; object-position: center; }
.kim-gallery-stage .mosaic-grid-2x2 { grid-template-rows: repeat(2, minmax(0, 1fr)); height: 100%; min-height: 0; gap: clamp(6px, 1vw, 14px); }
.kim-gallery-stage .mosaic-item { min-height: 0; }
.kim-gallery-stage .mosaic-item .work-thumb { flex: 1; min-height: 0; aspect-ratio: auto; }
.kim-gallery-stage .mosaic-item .work-thumb img { height: 100%; object-fit: cover; }
.kim-gallery-stage .mosaic-item:nth-child(-n+2) .work-thumb img { object-position: center bottom; }
.kim-gallery-stage .mosaic-item:nth-child(4) .work-thumb img { object-position: center 20%; }
.kim-gallery-stage .mosaic-caption { font-size: clamp(0.7rem, 0.9vw, 0.875rem); line-height: 1.35; }
.kim-gallery-stage .mosaic-item .mosaic-caption { min-height: 2.7em; }

.kim-detail-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kim-detail-stage .work-caption { padding-top: 0; }
.kim-detail-stage .work-desc { font-size: 1rem; line-height: 1.6; }
.kim-detail-stage .build-spec { margin-top: 18px; padding-top: 0; row-gap: 12px; }
.kim-detail-stage .build-spec-desc { font-size: 0.9375rem; line-height: 1.5; }
.kim-detail-stage .work-insights-block { margin-top: 20px; }
.kim-detail-stage .work-insights-header { margin-bottom: 8px; }
.kim-detail-stage .detail-shot img { width: 100%; height: auto; }
.kim-detail-stage .detail-shot figcaption { font-size: 0.875rem; }

.exp-cohorts { display: grid; gap: 2px; }

/* Touch-sized layouts use normal scrolling in both directions. */
@media (max-width: 767px), (max-width: 1023px) and (pointer: coarse) {
  html { scroll-snap-type: none; }
  .hero-section,
  .about-section,
  .spectrum-section,
  .work-entry,
  .kim-stage,
  .experience-section,
  .site-footer { scroll-snap-align: none; scroll-snap-stop: normal; }
  .spectrum-snap-marker { scroll-snap-align: none; scroll-snap-stop: normal; }

  .spectrum-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
  }
  .spectrum-lead, .spectrum-keyword { max-width: 100%; overflow-wrap: anywhere; transition: none; }
  html.js-spectrum .spectrum-stage { height: min(32svh, 300px); }

  .kim-gallery-stage .kimgamdo-mosaic {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .kim-gallery-stage .mosaic-portal,
  .kim-gallery-stage .mosaic-item { height: auto; }
  .kim-gallery-stage .mosaic-portal .work-thumb {
    aspect-ratio: 1165 / 1357;
    flex: none;
  }
  .kim-gallery-stage .mosaic-grid-2x2 {
    height: auto;
    grid-template-rows: auto;
    align-items: start;
  }
  .kim-gallery-stage .mosaic-item .work-thumb {
    aspect-ratio: 1206 / 2304;
    flex: none;
  }
  .kim-gallery-stage .mosaic-item .mosaic-caption { min-height: 4.05em; }
}

@media (max-width: 767px) {
  .kim-gallery-stage .mosaic-caption { font-size: 0.7rem; overflow-wrap: anywhere; }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }

  html.js-ready .reveal-part {
    opacity: 1 !important;
    transform: none !important;
  }
}
