/* ────────────────────────────────────────────────────────────
   Font
──────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,900;1,400&display=swap');

/* ────────────────────────────────────────────────────────────
   Variables — dark (default) + light via prefers-color-scheme
──────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Core palette */
  --bg:        #ffffff;
  --text:      #0e0e0e;
  --text-soft: #6b6560;

  /* Component backgrounds */
  --thumb-bg: #e8e6e2;
  --img-bg:   #eeebe6;
  --tag-color: #666;
  --accent:   #6e6710;

  /* Border tokens (opacity on text colour) */
  --border-15: rgba(14, 14, 14, 0.12);
  --border-12: rgba(14, 14, 14, 0.09);
  --border-10: rgba(14, 14, 14, 0.07);
  --border-08: rgba(14, 14, 14, 0.06);
  --border-20: rgba(14, 14, 14, 0.14);
  --border-30: rgba(14, 14, 14, 0.18);

  /* Surface tokens */
  --surface-04: rgba(14, 14, 14, 0.03);
  --surface-10: rgba(14, 14, 14, 0.06);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg:        #0e0e0e;
    --text:      #f0ece4;
    --text-soft: #a09a90;

    --thumb-bg: #2a2a2a;
    --img-bg:   #1a1a1a;
    --tag-color: #888;
    --accent:   #d4cb52;

    --border-15: rgba(240, 236, 228, 0.15);
    --border-12: rgba(240, 236, 228, 0.12);
    --border-10: rgba(240, 236, 228, 0.10);
    --border-08: rgba(240, 236, 228, 0.08);
    --border-20: rgba(240, 236, 228, 0.20);
    --border-30: rgba(240, 236, 228, 0.30);

    --surface-04: rgba(240, 236, 228, 0.04);
    --surface-10: rgba(240, 236, 228, 0.10);
  }
  .disc-link { opacity: 0.75; }
  .disc-link:hover, .disc-link.active { opacity: 1; }
  .top-nav .sep { opacity: 0.5; }
}

/* ?theme= URL param overrides — must come after media query */
html[data-theme="light"] {
  color-scheme: light;
  --bg:        #ffffff;
  --text:      #0e0e0e;
  --text-soft: #6b6560;
  --thumb-bg: #e8e6e2;
  --img-bg:   #eeebe6;
  --tag-color: #666;
  --accent:   #6e6710;
  --border-15: rgba(14, 14, 14, 0.12);
  --border-12: rgba(14, 14, 14, 0.09);
  --border-10: rgba(14, 14, 14, 0.07);
  --border-08: rgba(14, 14, 14, 0.06);
  --border-20: rgba(14, 14, 14, 0.14);
  --border-30: rgba(14, 14, 14, 0.18);
  --surface-04: rgba(14, 14, 14, 0.03);
  --surface-10: rgba(14, 14, 14, 0.06);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0e0e0e;
  --text:      #f0ece4;
  --text-soft: #a09a90;
  --thumb-bg: #2a2a2a;
  --img-bg:   #1a1a1a;
  --tag-color: #888;
  --accent:   #d4cb52;
  --border-15: rgba(240, 236, 228, 0.15);
  --border-12: rgba(240, 236, 228, 0.12);
  --border-10: rgba(240, 236, 228, 0.10);
  --border-08: rgba(240, 236, 228, 0.08);
  --border-20: rgba(240, 236, 228, 0.20);
  --border-30: rgba(240, 236, 228, 0.30);
  --surface-04: rgba(240, 236, 228, 0.04);
  --surface-10: rgba(240, 236, 228, 0.10);
}

/* ────────────────────────────────────────────────────────────
   Reset
──────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ────────────────────────────────────────────────────────────
   Mark / Highlight
──────────────────────────────────────────────────────────── */
mark {
  background: rgba(253, 224, 71, 0.28);
  color: inherit;
  padding: 0 3px;
  border-radius: 2px;
}

.cs-content strong,
.cs-list li strong {
  font-weight: 700;
  color: var(--text);
}

.cs-highlight {
  background: rgba(253, 224, 71, 0.28);
  padding: 0 3px;
  border-radius: 2px;
}

.cs-principles strong {
  background: none;
  padding: 0;
  border-radius: 0;
}

/* ────────────────────────────────────────────────────────────
   HOMEPAGE
──────────────────────────────────────────────────────────── */

/* Hero layout */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  overflow: hidden;
}

/* ────────────────────────────────────────────────────────────
   Top nav  — fixed, all pages
──────────────────────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 20px 64px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: opacity 0.35s ease;
}

.top-nav.nav-hidden {
  opacity: 0;
  pointer-events: none;
}

.top-nav .sep {
  margin: 0 12px;
  opacity: 0.25;
  color: var(--text);
}

.disc-link {
  color: var(--text);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s, color 0.15s;
}

.disc-link:hover,
.disc-link.active {
  opacity: 1;
}

.nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 12px 16px 16px 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  transform: translateY(-4px);
  box-shadow: none;
  z-index: 300;
}

.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 9px 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  opacity: 1;
}

.nav-dropdown a.current {
  opacity: 1;
}

@media (prefers-color-scheme: light) {
  .disc-link { opacity: 0.55; color: #0e0e0e; }
  .disc-link:hover, .disc-link.active { opacity: 1; color: #0e0e0e; }
  .top-nav .sep { color: #0e0e0e; opacity: 0.3; }
}

html[data-theme="light"] .disc-link { opacity: 0.55; color: #0e0e0e; }
html[data-theme="light"] .disc-link:hover,
html[data-theme="light"] .disc-link.active { opacity: 1; color: #0e0e0e; }
html[data-theme="light"] .top-nav .sep { color: #0e0e0e; opacity: 0.3; }

html[data-theme="dark"] .disc-link { opacity: 0.75; color: var(--text); }
html[data-theme="dark"] .disc-link:hover,
html[data-theme="dark"] .disc-link.active { opacity: 1; }
html[data-theme="dark"] .top-nav .sep { opacity: 0.5; }

/* Case study pages: dark nav text only while bright hero is behind the fixed nav */
@media (prefers-color-scheme: dark) {
  body.cs-bright-hero:has(.cs-page) .disc-link { color: #0e0e0e; opacity: 0.55; }
  body.cs-bright-hero:has(.cs-page) .disc-link:hover,
  body.cs-bright-hero:has(.cs-page) .disc-link.active { opacity: 1; }
  body.cs-bright-hero:has(.cs-page) .top-nav .sep { color: #0e0e0e; opacity: 0.3; }
  body.cs-bright-hero:has(.cs-page) .nav-dropdown a { color: #0e0e0e; }
}

html[data-theme="dark"] body.cs-bright-hero:has(.cs-page) .disc-link { color: #0e0e0e; opacity: 0.55; }
html[data-theme="dark"] body.cs-bright-hero:has(.cs-page) .disc-link:hover,
html[data-theme="dark"] body.cs-bright-hero:has(.cs-page) .disc-link.active { opacity: 1; }
html[data-theme="dark"] body.cs-bright-hero:has(.cs-page) .top-nav .sep { color: #0e0e0e; opacity: 0.3; }
html[data-theme="dark"] body.cs-bright-hero:has(.cs-page) .nav-dropdown a { color: #0e0e0e; }

/* Overflow name */
.hero-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 0.88;
  padding-left: 64px;
  text-decoration: none;
  color: inherit;
}

.overflow-line {
  font-size: clamp(100px, 19vw, 240px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: normal;
}

.line-1 { transform: translateX(0); }
/* "Robles Choi" never wraps regardless of screen size */
.line-2 { transform: translateX(0.06em); opacity: 0.75; white-space: nowrap; }

/* "Choi" break — hidden by default so "Robles Choi" stays on one line;
   enabled only on mobile (see the max-width: 640px block). */
.name-break { display: none; }

/* Desktop only: keep each name line unbroken ("Robles Choi" never wraps) and
   reserve a right gutter matching the 64px left padding. The font-size is fitted
   to the resulting width by the fitHeroName() script. */
@media (min-width: 901px) {
  .overflow-line { white-space: nowrap; }
  .hero-display { padding-right: 64px; }
}

/* Bottom footer */
.hero-footer {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 28px 120px 36px 32px;
  border-top: 1px solid var(--border-15);
}

/* Rotating badge */
.badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.discover-badge {
  position: relative;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.badge-ring {
  position: absolute;
  inset: 0;
  animation: spin 14s linear infinite;
  transform-origin: center center;
}

.badge-arrow {
  font-size: 22px;
  color: var(--text);
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
}

.discover-badge:hover .badge-arrow {
  transform: translate(3px, -3px);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-tagline p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  max-width: 260px;
}

.hero-desc p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 260px;
}

/* ────────────────────────────────────────────────────────────
   ABOUT PAGE
──────────────────────────────────────────────────────────── */
.about-page {
  min-height: 100vh;
  padding: 90px 64px 80px 64px;
}

/* Large editorial headline — mirrors home page overflow name */
.about-hero {
  padding-bottom: 48px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--border-12);
  overflow: hidden;
}

.about-headline {
  font-size: clamp(80px, 13vw, 180px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.88;
  white-space: nowrap;
  color: var(--text);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 64px;
  max-width: 1100px;
}

/* Lead paragraph — mirrors hero tagline weight */
.about-lead {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.72;
  color: var(--text);
  margin-bottom: 28px;
}

.about-text p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.82;
  color: var(--text);
  margin-bottom: 22px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding-top: 6px;
}

.profile-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-resume {
  display: block;
  padding: 11px 0;
  border: 1.5px solid var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  width: 168px;
  transition: background 0.15s, color 0.15s;
}

.btn-resume:hover {
  background: var(--text);
  color: var(--bg);
}

/* ────────────────────────────────────────────────────────────
   CONTACT PAGE  — mirrors the About page layout/type scale
──────────────────────────────────────────────────────────── */
.contact-page {
  min-height: 100vh;
  padding: 90px 64px 80px 64px;
}

.contact-hero {
  padding-bottom: 48px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--border-12);
  overflow: hidden;
}

.contact-headline {
  font-size: clamp(80px, 13vw, 180px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.88;
  white-space: nowrap;
  color: var(--text);
}

.contact-container { max-width: 640px; }

.contact-lead {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.72;
  color: var(--text);
  margin: 0 0 36px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

/* Message, button and status always span the full row. */
.contact-field--full,
.contact-submit,
.contact-status { grid-column: 1 / -1; }

.contact-field { display: flex; flex-direction: column; gap: 6px; }

.contact-field label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.contact-field input,
.contact-field textarea {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 14px;
  border: 1px solid var(--text-soft);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--accent); }

.contact-field textarea { min-height: 140px; resize: vertical; }

/* Honeypot — hidden from humans, visible to bots */
.contact-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.contact-submit {
  display: block;
  width: 168px;
  padding: 11px 0;
  border: 1.5px solid var(--text);
  border-radius: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--text);
  background: transparent;
  text-align: center;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s, color 0.15s;
}

.contact-submit:hover:not(:disabled) { background: var(--text); color: var(--bg); }
.contact-submit:disabled { opacity: 0.5; cursor: default; }

.contact-status { font-size: 14px; line-height: 1.6; min-height: 1.3em; margin: 4px 0 0; }
.contact-status.ok { color: var(--accent); }
.contact-status.err { color: #c0392b; }

/* ────────────────────────────────────────────────────────────
   WORK PAGE
──────────────────────────────────────────────────────────── */
.work-page {
  min-height: 100vh;
  padding: 110px 64px 80px 64px;
}

.work-page h1 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 56px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  border-top: none;
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: 32px;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s;
  opacity: 1;
  background: #1e1e1e;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.project-item:first-child { border-top: none; }
.project-item:hover { opacity: 0.82; }

.project-item:hover .project-thumb img {
  transform: scale(1.04);
}

.project-thumb {
  width: 100%;
  aspect-ratio: unset;
  height: clamp(360px, 42vw, 510px);
  background: var(--thumb-bg);
  overflow: hidden;
  border-radius: 0;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.project-meta {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tag-color);
  margin-bottom: 12px;
}

.project-title {
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.project-desc {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-soft);
}

.project-item:nth-child(even) .project-thumb { order: 2; }
.project-item:nth-child(even) .project-meta  { order: 1; }

/* ────────────────────────────────────────────────────────────
   CASE STUDY PAGES
──────────────────────────────────────────────────────────── */
.cs-page {
  padding: 90px 64px 60px;
}

/* White background on case study pages (light mode only) */
@media (prefers-color-scheme: light) {
  body:has(.cs-page) { background: #ffffff; }
}
html[data-theme="light"] body:has(.cs-page) { background: #ffffff; }

.cs-hero-img {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-top: 0;
  margin-bottom: 0;
  z-index: 1;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.03);
  clip-path: inset(0 0 -80px 0);
}

.cs-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-back { margin-bottom: 32px; }
.cs-back a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.cs-back a:hover { color: var(--text); }

.cs-hero {
  max-width: 800px;
  margin: 0 auto 0;
  padding-top: 72px;
  padding-bottom: 32px;
  position: relative;
}

.cs-hero::before {
  content: '';
  position: absolute;
  top: -90px;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  height: calc(100% + 90px);
  background: inherit;
  z-index: -1;
}

.cs-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: #0e0e0e;
  text-align: center;
}

.cs-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  color: #0e0e0e;
  max-width: 872px;
  text-align: center;
  margin: 0 auto;
}

/* Meta grid — overview + role (2 col), clients full-width below */
.cs-meta-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  column-gap: 80px;
  row-gap: 12px;
  max-width: 800px;
  margin: 0 auto 72px;
  padding-top: 216px;
  padding-bottom: 64px;
  margin-bottom: 72px;
}

.cs-meta-clients {
  grid-column: 1 / -1;
  padding-top: 36px;
  margin-top: 0;
  position: relative;
}

.cs-meta-clients::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: calc((100% - 80px) * 1.2 / 3.2);
  height: 1px;
  background: var(--border-10);
}

.cs-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  margin-bottom: 14px;
  display: block;
}

.cs-meta-grid > .cs-meta-block:first-child {
}

.cs-meta-block .cs-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
}

.cs-label--major {
  font-size: clamp(28px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 10px;
}

.cs-label.cs-label--sub {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 7px;
}

.cs-meta-block p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
}

.cs-role-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin-bottom: 12px !important;
}

.cs-role-list {
  list-style: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.82;
  color: var(--text);
  margin-bottom: 16px;
}

.cs-role-list li { padding-left: 16px; position: relative; }
.cs-role-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.5;
}

.cs-date {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border-10);
  padding-top: 24px;
  margin-top: 28px;
  margin-bottom: 0;
}

.cs-client-stat {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--text) !important;
  margin: 6px 0 14px !important;
  letter-spacing: normal;
}

.cs-client-logos-wrap {
  margin-top: 52px;
  clip-path: inset(-12px 0);
}

.cs-client-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 48px;
  margin-top: 0;
  width: max-content;
}

.cs-client-logos--ready {
  animation: logo-marquee 14s linear infinite;
  animation-play-state: paused;
}

.cs-client-logos-wrap:hover .cs-client-logos--ready {
  animation-play-state: running;
}

@keyframes logo-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cs-client-logos img {
  height: 44px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  opacity: 0.45;
  filter: grayscale(1);
  display: block;
  flex-shrink: 0;
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.cs-client-logos img:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.08);
}

/* Divider */
.cs-divider {
  border: none;
  border-top: 1px solid var(--border-12);
  margin: 64px auto;
  max-width: 800px;
}

/* Generic section — label above, content below */
.cs-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 56px;
}

.cs-section:has(.cs-label--major) {
  margin-top: 80px;
  margin-bottom: 56px;
}

.cs-section:has(.cs-label--sub) {
  margin-bottom: 56px;
}

.cs-section .cs-label { padding-top: 0; }

.cs-content p {
  font-size: 16px;
  line-height: 1.82;
  color: var(--text);
  margin-bottom: 18px;
}

.cs-content p:last-child { margin-bottom: 0; }

.cs-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 18px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cs-content table th,
.cs-content table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-10);
  white-space: normal;
  word-break: break-word;
}

.cs-content table th {
  font-weight: 600;
  color: var(--text);
  border-bottom-color: var(--border-15);
}

.cs-content table tr:last-child td { border-bottom: none; }

.cs-intro {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.82;
  color: var(--text);
  margin-bottom: 18px;
}

.cs-sub-heading,
.cs-content .cs-sub-heading {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
  margin-top: 18px;
}

.cs-sub-heading:first-child { margin-top: 0; }

/* Highlighted band */
.cs-band {
  background: var(--surface-04);
  padding: 10px 0 80px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 80px 0 80px;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.cs-band .cs-section {
  margin-top: 55px;
  margin-bottom: 0;
  padding: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Value prop cards */
.cs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-10);
  border: 1px solid var(--border-10);
  margin-top: 8px;
}

.cs-card {
  background: var(--bg);
  padding: 28px 24px;
}

.cs-card-num {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  opacity: 0.5;
  margin-bottom: 14px;
}

.cs-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.cs-card p {
  font-size: 14px;
  line-height: 1.82;
  color: var(--text);
}

/* Impact stat */
.cs-impact {
  display: flex;
  align-items: baseline;
  gap: 40px;
  flex-wrap: wrap;
}

.cs-impact-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 32px;
}

.cs-impact-num {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  white-space: nowrap;
  margin: 0;
}

.cs-impact-text {
  font-size: 16px;
  line-height: 1.82;
  color: var(--text);
  margin: 0;
}

/* Bullet insights */
.cs-list {
  list-style: none;
  padding: 0;
  margin-top: 0;
}

.cs-list li {
  font-size: 16px;
  line-height: 1.82;
  color: var(--text);
  padding: 0 0 0 20px;
  position: relative;
}

.cs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.7;
}

.cs-list li:first-child { padding-top: 0; }
.cs-list li:first-child::before { top: 8px; }

/* Numbered principles */
.cs-principles {
  list-style: none;
  padding: 0;
  counter-reset: principle;
}

.cs-principles li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
  padding: 8px 0 8px 60px;
  border-bottom: 1px solid var(--border-08);
  position: relative;
  counter-increment: principle;
}

.cs-principles li::before {
  content: counter(principle, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  opacity: 0.4;
  top: 50%;
  transform: translateY(-50%);
}

.cs-principles li:last-child { border-bottom: none; }
.cs-principles li strong { color: var(--text); font-weight: 600; }

/* Validation stats */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.cs-stat-num {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}

.cs-stat-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-soft);
}

.cs-sus-img {
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  .cs-sus-img { mix-blend-mode: normal; }
}

html[data-theme="dark"] .cs-sus-img {
  mix-blend-mode: normal;
}

/* SUS bars */
.cs-sus {
  margin-top: 28px;
}

.cs-sus-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.cs-sus-lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  width: 30px;
  flex-shrink: 0;
}

.cs-sus-track {
  flex: 1;
  height: 3px;
  background: var(--border-10);
  border-radius: 2px;
  overflow: hidden;
}

.cs-sus-fill {
  height: 100%;
  background: var(--border-30);
  border-radius: 2px;
}

.cs-sus-fill--hi { background: var(--accent); }

.cs-sus-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}

.cs-sus-delta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 6px;
}

/* Quote */
.cs-quote {
  border-left: 2px solid var(--border-20);
  padding: 4px 0 4px 24px;
  margin: 24px 0;
}

.cs-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
}

.cs-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cs-quote p {
  font-size: 16px;
  font-style: italic;
  line-height: 1.82;
  color: var(--text);
  margin-bottom: 0 !important;
}

/* Image placeholder */
.cs-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--img-bg);
  border: 1px solid var(--border-08);
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-20);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Inline link */
.cs-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-30);
  transition: text-decoration-color 0.15s;
}

.cs-link:hover { text-decoration-color: var(--text); }

.cs-text-link {
  color: #3b6ef6;
  text-decoration: none;
  font-weight: inherit;
}

.cs-text-link:hover { color: #1a4fd6; }

.cs-list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cs-list a:hover { opacity: 0.65; }

/* Back nav */
.cs-back-nav {
  padding-top: 20px;
  padding-bottom: 20px;
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border-12);
}

.cs-next-card {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 28px 0 0;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  min-width: 280px;
  transition: opacity 0.2s;
}

.cs-next-card:hover { opacity: 0.72; }

.cs-next-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.cs-next-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .cs-page { padding: 80px 32px 40px; }
  .cs-meta-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cs-meta-clients { grid-column: 1 / -1; }
  .cs-section { gap: 10px; }
  .cs-cards { grid-template-columns: 1fr; }
  .cs-stats { grid-template-columns: repeat(2, 1fr); }
  .cs-band { padding: 32px 0; }
  .cs-band .cs-section { padding: 0 32px; }
}

@media (max-width: 640px) {
  .cs-page { padding: 72px 24px 40px; }
  .cs-meta-grid { grid-template-columns: 1fr; padding-top: 196px; }
  .cs-meta-clients { margin-top: -28px; padding-top: 66px; }
  .cs-meta-clients::before { width: 100%; }
  .cs-band { padding: 24px 0 82px !important; }
  .cs-band .cs-section { padding: 0 24px; }
  .cs-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ────────────────────────────────────────────────────────────
   Responsive
──────────────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .overflow-line { font-size: clamp(72px, 16vw, 160px); }

  .top-nav { padding: 16px 32px; }

  .hero-footer {
    flex-wrap: wrap;
    gap: 20px 28px;
    padding: 24px 32px 32px;
  }

  .hero-desc { flex: 1 1 100%; }

  .about-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-headline { font-size: clamp(60px, 12vw, 120px); }
  .contact-headline { font-size: clamp(60px, 12vw, 120px); }

  .about-sidebar {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-item:nth-child(even) .project-thumb { order: 0; }
  .project-item:nth-child(even) .project-meta  { order: 0; }
}

/* Mobile */
@media (max-width: 640px) {
  .top-nav {
    padding: 12px 20px;
    font-size: 11px;
    gap: 0;
  }

  .top-nav .sep { margin: 0 8px; }

  .hero { padding-bottom: 70px; }

  .hero-display { padding-left: 24px; }

  .overflow-line { font-size: clamp(59px, calc(26vw - 5px), 127px); }

  /* Mobile: let "Choi" drop to its own line */
  .name-break { display: block; }

  .hero-footer {
    flex-direction: column;
    gap: 20px;
    padding: 20px 20px 28px;
  }

  .badge-wrap {
    margin-left: 0;
  }

  /* HOME: footer text blocks span the full screen width on mobile */
  .hero-tagline p,
  .hero-desc p { max-width: none; }

  .about-page,
  .work-page,
  .contact-page { padding: 72px 24px 80px 24px; }

  .about-headline { font-size: clamp(52px, 14vw, 90px); }
  .contact-headline { font-size: clamp(52px, 14vw, 90px); }
  .contact-form { grid-template-columns: 1fr; }

  /* Dividers sit closer to the headline on mobile */
  .about-hero,
  .contact-hero { padding-bottom: 20px; }

  /* Resume stacks below the photo, left-aligned; sidebar moves above the text */
  .about-sidebar {
    flex-direction: column;
    align-items: flex-start;
    order: -1;
  }

  .project-item { padding: 36px 0; gap: 20px; }
}

/* ────────────────────────────────────────────────────────────
   Light mode — project card colours
──────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: light) {
  .project-item {
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
  }
}

html[data-theme="light"] .project-item {
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .project-item {
  background: #1e1e1e;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ────────────────────────────────────────────────────────────
   Case study image gallery
──────────────────────────────────────────────────────────── */
.cs-screens {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cs-screens img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.cs-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 190px;
  gap: 10px;
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
}

.cs-section img:not(.cs-gallery img) {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (prefers-color-scheme: dark) {
  .cs-gallery {
    background: #ffffff;
    padding: 10px;
    border-radius: 16px;
  }
}

html[data-theme="dark"] .cs-gallery {
  background: #ffffff;
  padding: 10px;
  border-radius: 16px;
}

@media (prefers-color-scheme: dark) {
  .cs-section img:not(.cs-gallery img) {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
  }
}
html[data-theme="dark"] .cs-section img:not(.cs-gallery img) {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
}

@media (prefers-color-scheme: light) {
  .cs-section img:not(.cs-gallery img) {
    background: none;
    padding: 0;
  }
}
html[data-theme="light"] .cs-section img:not(.cs-gallery img) {
  background: none;
  padding: 0;
}

.cs-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

/* 2 images: equal columns, single row */
.cs-gallery:has(img:nth-child(2)):not(:has(img:nth-child(3))) {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 260px;
}

/* 3 images: equal columns, single row */
.cs-gallery:has(img:nth-child(3)):not(:has(img:nth-child(4))) {
  grid-template-columns: repeat(3, 1fr);
}

/* 4 images: 2×2 grid */
.cs-gallery:has(img:nth-child(4)):not(:has(img:nth-child(5))) {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
  row-gap: 4px;
}

/* 5 images: large first spanning 2 rows, 2×2 on right */
.cs-gallery:has(img:nth-child(5)):not(:has(img:nth-child(6))) {
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 100px;
  row-gap: 4px;
}
.cs-gallery:has(img:nth-child(5)):not(:has(img:nth-child(6))) img:first-child {
  grid-row: span 2;
}

/* Single-image gallery: center the gallery block */
.cs-gallery:not(:has(img:nth-child(2))) {
  margin-left: auto;
  margin-right: auto;
}

/* Reset first-child span for 2, 3 and 4 image galleries */
.cs-gallery:has(img:nth-child(2)):not(:has(img:nth-child(3))) img:first-child,
.cs-gallery:has(img:nth-child(3)):not(:has(img:nth-child(4))) img:first-child,
.cs-gallery:has(img:nth-child(4)):not(:has(img:nth-child(5))) img:first-child {
  grid-row: span 1;
  object-fit: contain;
  background: none;
}

.cs-gallery img:not(:first-child) {
  object-position: left center;
}

.cs-gallery img {
  cursor: zoom-in;
}

/* Scroll-to-top button */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s;
  z-index: 300;
  pointer-events: none;
}
.scroll-top-btn.is-visible {
  opacity: 0.25;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 24px;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 80vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: lb-in 0.2s ease;
  cursor: default;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-arrow--prev { left: 20px; }
.lightbox-arrow--next { right: 20px; }

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
  .cs-screens { grid-template-columns: 1fr; }

  .cs-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
  }

  .cs-gallery::-webkit-scrollbar { display: none; }

  .cs-gallery:not(:has(img:nth-child(2))) {
    display: block;
  }
  .cs-gallery:not(:has(img:nth-child(2))) img {
    flex: unset;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
    scroll-snap-align: unset;
  }

  .cs-gallery img,
  .cs-gallery img:first-child {
    flex: 0 0 75vw;
    height: 220px;
    width: 75vw;
    object-fit: contain;
    scroll-snap-align: start;
    grid-column: unset;
    grid-row: unset;
  }
}

@media (max-width: 640px) {
  #exec-carousel {
    margin-left: 12px;
    margin-right: 12px;
  }
  .nav-dropdown {
    display: none !important;
  }
  .cs-client-logos-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    clip-path: none;
    margin-top: 24px;
    width: 100vw;
    margin-left: -24px;
    margin-right: -24px;
    padding: 0 24px;
  }
  .cs-client-logos-wrap::-webkit-scrollbar { display: none; }
  .cs-client-logos--ready {
    animation: none !important;
    transform: none !important;
  }
  .cs-client-logos img {
    width: 80px;
    height: 40px;
    max-width: 80px;
    object-fit: contain;
  }
  #exec-track > div {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
  }
  #exec-track > div video {
    width: 80% !important;
  }
  #exec-track > div > div {
    width: 75% !important;
    text-align: center !important;
    margin: 0 auto;
  }

  .cs-content > video {
    width: 80% !important;
  }

  .cs-section img:not(.cs-gallery img) {
    width: 100% !important;
  }
}
