/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --text: #141414;
  --text-muted: #4d4d4d;
  --text-faint: #949494;
  --border: #e6e6e6;
  --border-strong: #c1c1c1;
  --accent: #0027ef;
  --accent-soft: #e5e9fd;
  --design: #1f9d55;
  --design-soft: #e3f6ea;
  --personal: #7c3aed;
  --personal-soft: #efe6fd;

  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 960px;
  --gutter: 26px;
  --radius-pill: 10px;
  --radius-card: 20px;
  --radius-sm: 8px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-frame {
  max-width: var(--container);
  margin: 0 auto;
  border-left: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  background: var(--bg);
}

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.nav__links a { transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.nav__links .nav__sep {
  color: var(--text-faint);
}

.nav__cta {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav__cta:hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 32px 20px;
  border-top: 1px solid var(--border);
}
.nav__mobile-panel a {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.nav__mobile-panel a:last-child { border-bottom: none; }

/* ==========================================================================
   Buttons & pills
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.97); }

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

.btn--outline {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--text); }

.email-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
}
.email-inline__text {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--text-faint);
}
.email-inline svg { opacity: 0.6; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(229, 233, 253, 0.5);
}
.tag--design {
  color: var(--design);
  background: var(--design-soft);
}
.tag--personal {
  color: var(--personal);
  background: var(--personal-soft);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: 40px;
  padding-bottom: var(--space-6);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-4);
}

.hero__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.hero__headline {
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.hero__subheadline {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
}

.hero__greeting {
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: var(--space-3);
}

.copy-btn {
  position: relative;
}
.copy-btn__feedback {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 11px;
  color: var(--bg);
  background: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  opacity: 0;
  transform: translateY(4px) scale(0.9);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  pointer-events: none;
}
.copy-btn__feedback::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 10px;
  border: 5px solid transparent;
  border-top-color: var(--text);
}
.copy-btn.copied .copy-btn__feedback {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.copy-btn__icon--check {
  display: none;
  color: var(--accent);
}
.copy-btn.copied .copy-btn__icon--copy { display: none; }
.copy-btn.copied .copy-btn__icon--check { display: inline-flex; animation: copy-check-pop 0.3s ease; }

@keyframes copy-check-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.hero__blurb {
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-muted);
  padding-top: 10px;
}

/* ==========================================================================
   Section shell
   ========================================================================== */
.section {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
  border-top: 1px solid var(--border);
}

.section__label {
  display: block;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section__heading {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

/* ==========================================================================
   Toolkit / stack strip
   ========================================================================== */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Work grid / filter
   ========================================================================== */
.work-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  margin-bottom: var(--space-4);
  padding: 14px var(--gutter);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.work-filter__btn {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: none;
  color: var(--text-faint);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.work-filter__btn:hover { color: var(--text-muted); }
.work-filter__btn.is-active {
  background: #d4f26e;
  color: var(--text);
  font-weight: 600;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.work-list--compact { margin-top: var(--space-2); gap: var(--space-5); }

.work-tile {
  display: block;
  transition: opacity 0.2s ease;
}
.work-tile:hover { opacity: 0.85; }

.work-tile__image {
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--border);
  overflow: hidden;
}
.work-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.work-tile__desc--nowrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-tile__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-3);
}
.work-tile__tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}
.work-tile__tag--design {
  background: var(--design-soft);
  color: var(--design);
}
.work-tile__tag--personal {
  background: var(--personal-soft);
  color: var(--personal);
}
.work-tile__sep { color: var(--border); }
.work-tile__year {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 13px;
  color: var(--text-muted);
}
.work-tile__headline {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-top: 14px;
}
.work-tile__desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 820px;
  margin-top: 8px;
}

.work-tile[data-category].is-hidden { display: none; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.work-card:hover { border-color: var(--text-faint); transform: translateY(-2px); }
.work-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.work-card__body { padding: var(--space-2) var(--space-2) var(--space-3); }
.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.work-card__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.work-card__desc {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 809.98px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Case study
   ========================================================================== */
.case-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-3);
}
.case-hero__headline {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.case-hero__subhead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 820px;
  margin-top: var(--space-2);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  margin-top: var(--space-4);
}
.case-meta__label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 6px;
  display: block;
}
.case-meta__value {
  font-size: 14px;
  color: var(--text);
}

.case-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.case-tool-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-tool-badge:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
.case-tool-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.case-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--border);
}
.case-image--screenshot {
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.case-image--screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.case-browser-stage {
  padding: 0;
}
.case-browser-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.case-browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.case-browser-frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.case-browser-frame__dot--red { background: #ff5f57; }
.case-browser-frame__dot--yellow { background: #febc2e; }
.case-browser-frame__dot--green { background: #28c840; }
.case-browser-frame__url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.case-browser-frame img {
  width: 100%;
  display: block;
}

.case-image-caption {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  margin-top: var(--space-2);
}

.case-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  background: var(--surface);
}
.case-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.case-video-speeds {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: var(--space-2);
}
.case-video-speeds__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-right: 4px;
}
.case-speed-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.case-speed-btn:hover { border-color: var(--text-faint); color: var(--text); }
.case-speed-btn.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* Custom video player: controls on the video, chapters in the seek bar (YouTube style) */
.vplayer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  background: #0b0d18;
  color: #fff;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.vplayer:focus-visible { box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.55); }
.vplayer.is-playing:not(.is-active) { cursor: none; }
.vplayer__video { width: 100%; height: 100%; display: block; object-fit: contain; }
.vplayer svg { width: 100%; height: 100%; fill: currentColor; }
.vplayer svg text { font: 700 6.5px/1 system-ui, sans-serif; fill: currentColor; }

/* Big play button while paused */
.vplayer__big {
  position: absolute; left: 50%; top: 76%;
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; border: 0; padding: 20px 18px 20px 22px;
  background: rgba(10, 12, 24, 0.62); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: pointer; transition: transform 0.2s ease, opacity 0.25s ease, background 0.2s ease;
}
.vplayer__big:hover { background: rgba(10, 12, 24, 0.8); transform: scale(1.06); }
.vplayer.is-playing .vplayer__big { opacity: 0; pointer-events: none; transform: scale(0.85); }
.vplayer.has-started .vplayer__big { display: none; }

/* Skip feedback on the picture */
.vplayer__ripple {
  position: absolute; top: 50%; width: 92px; height: 92px; margin-top: -46px;
  border-radius: 50%; background: rgba(10, 12, 24, 0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  opacity: 0; pointer-events: none;
}
.vplayer__ripple svg { width: 30px; height: 30px; }
.vplayer__ripple span { font-size: 11px; font-weight: 600; }
.vplayer__ripple--back { left: 12%; }
.vplayer__ripple--fwd { right: 12%; }
.vplayer__ripple.is-on { animation: vplayer-ripple 0.7s ease-out; }
@keyframes vplayer-ripple {
  0% { opacity: 0; transform: scale(0.8); }
  25% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* Bottom bar */
.vplayer__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 14px 6px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35) 55%, transparent);
  opacity: 0; transition: opacity 0.25s ease; cursor: default;
}
.vplayer.is-active .vplayer__bar,
.vplayer:not(.is-playing) .vplayer__bar { opacity: 1; }
.vplayer.is-playing:not(.is-active) .vplayer__bar { pointer-events: none; }

/* Seek bar split into chapters */
.vplayer__progress { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.vplayer__progress:focus-visible .vplayer__segments { box-shadow: 0 0 0 2px rgba(165, 180, 252, 0.8); border-radius: 2px; }
.vplayer__segments { display: flex; gap: 3px; width: 100%; height: 4px; }
.vplayer__seg { position: relative; height: 100%; flex-basis: 0; min-width: 2px; background: rgba(255, 255, 255, 0.28); transition: transform 0.12s ease; transform-origin: center; }
.vplayer__seg-load, .vplayer__seg-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.vplayer__seg-load { background: rgba(255, 255, 255, 0.4); }
.vplayer__seg-fill { background: #8b7bff; }
.vplayer__progress:hover .vplayer__seg,
.vplayer.is-scrubbing .vplayer__seg { transform: scaleY(1.4); }
.vplayer__seg.is-hover { transform: scaleY(2.2) !important; }
.vplayer__thumb {
  position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  border-radius: 50%; background: #8b7bff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  transform: scale(0); transition: transform 0.12s ease; pointer-events: none;
}
.vplayer__progress:hover .vplayer__thumb,
.vplayer.is-scrubbing .vplayer__thumb,
.vplayer__progress:focus-visible .vplayer__thumb { transform: scale(1); }
.vplayer__tip {
  position: absolute; bottom: 22px; transform: translateX(-50%);
  padding: 6px 10px; border-radius: 8px; background: rgba(10, 12, 24, 0.9);
  white-space: nowrap; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity 0.12s ease;
}
.vplayer__tip strong { display: block; font-size: 13px; font-weight: 600; }
.vplayer__tip span { display: block; font-family: var(--font-mono); font-size: 11px; color: rgba(255, 255, 255, 0.75); margin-top: 2px; }
.vplayer.is-tip .vplayer__tip { opacity: 1; }

/* Control row */
.vplayer__controls { display: flex; align-items: center; gap: 2px; height: 40px; }
.vplayer__btn {
  flex: none; width: 36px; height: 36px; padding: 7px; border: 0; border-radius: 8px;
  background: transparent; color: #fff; cursor: pointer; opacity: 0.92;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.vplayer__btn:hover, .vplayer__btn:focus-visible { background: rgba(255, 255, 255, 0.14); opacity: 1; outline: none; }
.vplayer__skip { padding: 6px; }
.vplayer__time { flex: none; margin: 0 8px 0 6px; font-family: var(--font-mono); font-size: 12.5px; color: rgba(255, 255, 255, 0.92); }
.vplayer__chapter {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  padding: 5px 6px 5px 4px; border: 0; border-radius: 8px;
  background: transparent; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer;
}
.vplayer__chapter:hover, .vplayer__chapter:focus-visible { background: rgba(255, 255, 255, 0.14); outline: none; }
.vplayer__chapter-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vplayer__chapter svg { width: 15px; height: 15px; flex: none; fill: none; }
.vplayer__dot { color: rgba(255, 255, 255, 0.6); }
.vplayer__spacer { flex: 1; }
.vplayer__speed { width: auto; min-width: 44px; padding: 0 8px; font-family: var(--font-mono); font-size: 12.5px; }

/* Chapter list and speed menu, on the video */
.vplayer__panel, .vplayer__speedmenu {
  position: absolute; right: 12px; bottom: 64px; z-index: 3;
  background: rgba(14, 16, 30, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  cursor: default;
}
.vplayer__panel { width: min(300px, calc(100% - 24px)); max-height: calc(100% - 84px); display: flex; flex-direction: column; }
.vplayer__panel[hidden], .vplayer__speedmenu[hidden] { display: none; }
.vplayer__panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 10px 8px 14px; font-size: 13px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.vplayer__panel-close { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.vplayer__panel-close:hover { background: rgba(255, 255, 255, 0.12); }
.vplayer__panel-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.vplayer__panel-list button, .vplayer__speedmenu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 8px; background: transparent;
  color: rgba(255, 255, 255, 0.88); font-size: 13px; text-align: left; cursor: pointer;
}
.vplayer__panel-list button span { flex: none; width: 34px; font-family: var(--font-mono); font-size: 11.5px; color: rgba(255, 255, 255, 0.55); }
.vplayer__panel-list button:hover, .vplayer__speedmenu button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.vplayer__panel-list li.is-current button { background: rgba(139, 123, 255, 0.28); color: #fff; }
.vplayer__speedmenu { padding: 6px; min-width: 120px; right: 52px; }
.vplayer__speedmenu button.is-current { color: #fff; font-weight: 600; }
.vplayer__speedmenu button.is-current::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8b7bff; margin-right: -2px; }

.vplayer.is-full { border-radius: 0; border: 0; }

@media (max-width: 599.98px) {
  .vplayer { border-radius: 12px; }
  .vplayer__bar { padding: 24px 6px 2px; }
  .vplayer__controls { height: 36px; gap: 0; }
  .vplayer__btn { width: 32px; height: 32px; padding: 6px; }
  .vplayer__time { font-size: 11px; margin: 0 4px; }
  .vplayer__chapter { font-size: 12px; padding: 4px; }
  .vplayer__dot, .vplayer__chapter svg { display: none; }
  .vplayer__speed { min-width: 36px; padding: 0 4px; font-size: 11px; }
  .vplayer__big { width: 56px; height: 56px; margin: -28px 0 0 -28px; padding: 14px 12px 14px 16px; }
  .vplayer__panel, .vplayer__speedmenu { bottom: 44px; }
  .vplayer__panel { max-height: calc(100% - 54px); }
  .vplayer__ripple { width: 64px; height: 64px; margin-top: -32px; }
  .vplayer__ripple svg { width: 22px; height: 22px; }
}

.case-pdf-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: var(--space-3);
}
.case-pdf-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 809.98px) {
  .case-pdf-frame { aspect-ratio: 3 / 4; }
}

.design-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.design-wall__item {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.design-wall__item iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.design-wall__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--personal-soft), var(--surface));
}

@media (max-width: 809.98px) {
  .design-wall { grid-template-columns: repeat(2, 1fr); }
}

.case-access {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-3);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-3);
}
.access-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 16px 16px 16px var(--space-3);
}
.access-bar__label {
  padding-right: 32px;
  border-right: 1px solid var(--border);
}
.access-bar__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.access-bar__field .case-creds__key { min-width: 0; align-self: flex-start; font-size: 10px; }
.access-bar__btn { margin-left: auto; padding: 8px 14px; font-size: 13px; }
@media (max-width: 599.98px) {
  .access-bar { padding: var(--space-3); gap: 12px 24px; }
  .access-bar__label { flex-basis: 100%; padding-right: 0; border-right: none; }
  .access-bar__btn { margin-left: 0; flex-basis: 100%; text-align: center; }
}
.case-access__divider {
  width: 1px;
  background: var(--border);
}
.case-access__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: 10px;
}
.case-access__label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 12px;
  color: var(--text-faint);
}
.case-access__col .btn { padding: 6px 12px; font-size: 13px; }
.case-access__col .case-pending { margin: 8px 0 0; }

.case-disclaimer {
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 10px;
}

.btn--spark {
  position: relative;
  overflow: hidden;
}
.btn--spark::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: btn-spark 5s ease-in-out infinite;
}
@keyframes btn-spark {
  0% { left: -60%; }
  30% { left: 130%; }
  100% { left: 130%; }
}

.case-creds {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-creds__row {
  display: flex;
  gap: 8px;
  font-size: 13px;
}
.case-creds__key {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 11px;
  color: var(--text-faint);
  min-width: 60px;
  align-self: center;
}
.case-creds__value {
  font-family: var(--font-mono);
  color: var(--text);
}

@media (max-width: 809.98px) {
  .case-access { grid-template-columns: 1fr; }
  .case-access__divider { width: 100%; height: 1px; }
}

.case-section {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
}
.case-section__heading {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.case-section p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 820px;
  margin-top: 10px;
}
.case-section p:first-of-type { margin-top: 0; }

.case-steps {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: var(--space-2);
}
.case-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: var(--space-2);
  row-gap: 6px;
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.case-step:last-child { border-bottom: none; }
.case-step__num {
  grid-column: 1;
  grid-row: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-step__title {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.case-step__desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
}

.case-callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-top: var(--space-3);
}
.case-callout p {
  margin-top: 0;
  color: var(--text);
  max-width: none;
}

.case-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.case-point {
  padding-left: var(--space-2);
  border-left: 3px solid var(--accent);
}
.case-point__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.case-point__desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0;
}

.case-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.case-decision {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-3);
}
.case-decision__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.case-decision__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  min-height: 39px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}
.case-decision__desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: none;
  margin-top: 0;
}
.case-decision__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-decision__list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.case-decision__list li:first-child {
  min-height: 98px;
}
.case-decision__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 900px) {
  .case-decision-grid { grid-template-columns: 1fr; }
}

.case-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.case-tile {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-2) var(--space-2) var(--space-3);
}
.case-tile__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.case-tile__label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 6px;
}
.case-tile__desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: none;
  margin-top: 0;
}

.case-side-nav {
  position: fixed;
  top: 140px;
  left: calc(50% - (var(--container) / 2) - 210px);
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
}
.case-side-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-faint);
  padding: 6px 0;
  transition: color 0.2s ease;
}
.case-side-nav__link:hover { color: var(--text-muted); }
.case-side-nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--text-faint);
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.case-side-nav__link.is-active {
  color: var(--accent);
  font-weight: 600;
}
.case-side-nav__link.is-active .case-side-nav__dot {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 1400px) {
  .case-side-nav { display: none; }
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.case-stat__value {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.case-stat__label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.case-pending {
  font-size: 14px;
  color: var(--text-faint);
  font-style: italic;
}

.case-page .container,
.case-page .nav {
  padding-left: 48px;
  padding-right: 48px;
}

@media (max-width: 809.98px) {
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .case-page .container,
  .case-page .nav { padding-left: 26px; padding-right: 26px; }
}

/* ==========================================================================
   Timeline (experience)
   ========================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:first-child { padding-top: 0; }
.timeline-item:last-child { border-bottom: none; padding-bottom: 0; }

.timeline-item__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.timeline-item__role {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.timeline-item__sep {
  color: var(--border);
  font-weight: 400;
}
.timeline-item__company {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text-muted);
}
.timeline-item__dates {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text-muted);
  margin-top: 6px;
}

.timeline-item__bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-2);
}
.timeline-item__bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.timeline-item__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-item__bullets strong { color: var(--text); font-weight: 600; }

.timeline--compact .timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px var(--space-2);
  padding: 14px 0;
}
.timeline--compact .timeline-item__left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.timeline--compact .timeline-item__role {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.timeline--compact .timeline-item__sep {
  color: var(--text-faint);
}
.timeline--compact .timeline-item__company {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--text-muted);
}
.timeline--compact .timeline-item__dates {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 0;
  white-space: nowrap;
}

/* Positions of responsibility - simple divided list */
.por-list {
  display: flex;
  flex-direction: column;
}
.por-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.por-item:first-child { padding-top: 0; }
.por-item:last-child { border-bottom: none; padding-bottom: 0; }
.por-item__role { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.por-item__org { font-size: 13px; color: var(--text-faint); margin-bottom: 8px; }
.por-item__desc { font-size: 14px; color: var(--text-muted); }

/* ==========================================================================
   About page
   ========================================================================== */
.about-intro {
  max-width: 640px;
}
.about-intro__hi {
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.about-intro p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 12px;
}

.focus-list {
  display: flex;
  flex-direction: column;
}
.focus-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.focus-item:first-child { padding-top: 0; }
.focus-item:last-child { border-bottom: none; padding-bottom: 0; }
.focus-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.approach {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  max-width: 720px;
  color: var(--text-muted);
}
.approach strong { color: var(--text); font-weight: 600; }

.skills-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px 24px;
}
.skills-grid dt {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-faint);
}
.skills-grid dd {
  font-size: 15px;
  color: var(--text-muted);
}

.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.edu-item:first-child { padding-top: 0; }
.edu-item:last-child { border-bottom: none; }
.edu-item__school { font-weight: 600; font-size: 16px; }
.edu-item__course { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.edu-item__result { font-size: 14px; color: var(--text-muted); text-align: right; white-space: nowrap; }
.edu-item__dates { font-size: 14px; color: var(--text-muted); }

.edu-item--compact {
  padding: 14px 0;
  align-items: baseline;
}
.edu-item--compact .edu-item__left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.edu-item--compact .edu-item__school {
  font-size: 15px;
  font-weight: 600;
}
.edu-item--compact .edu-item__course {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 0;
}
.edu-item--compact .edu-item__sep {
  color: var(--text-faint);
}
.edu-item--compact .edu-item__result {
  font-size: 13px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.edu-item--compact .edu-item__dates {
  font-size: 13px;
}

.headshot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.headshot--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 34px;
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.site-footer__prompt {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer__links a,
.site-footer__links button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-faint);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
/* ==========================================================================
   Case study: before / after comparison
   ========================================================================== */
.case-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.case-compare__col {
  border-radius: var(--radius-card);
  padding: var(--space-3);
}
.case-compare__col--before {
  background: var(--surface);
  border: 1px solid var(--border);
}
.case-compare__col--after {
  background: var(--design-soft);
  border: 1px solid transparent;
}
.case-compare__label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.case-compare__col--before .case-compare__label { color: var(--text-muted); }
.case-compare__col--after .case-compare__label { color: var(--design); }
.case-compare__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.case-compare__icon--before { background: var(--border); color: var(--text-muted); }
.case-compare__icon--after { background: var(--design); color: var(--bg); }
.case-compare__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-compare__col li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.case-compare__col li:not(:last-child) {
  min-height: 42px;
}
.case-compare__col--before li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  color: var(--text-faint);
}
.case-compare__col--after li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  color: var(--design);
  font-weight: 700;
}

@media (max-width: 809.98px) {
  .case-compare { grid-template-columns: 1fr; }
}

.case-highlight {
  background: var(--design-soft);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  margin-top: var(--space-3);
}
.case-highlight__label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 13px;
  font-weight: 600;
  color: var(--design);
  margin-bottom: 14px;
  display: block;
}
.case-highlight__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-highlight__list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.case-highlight__list li strong,
.case-section p strong,
.case-decision__list strong,
.case-compare__col li strong,
.case-point__desc strong,
.case-flow__desc strong,
.case-step__desc strong {
  color: var(--text);
  font-weight: 600;
}
.case-highlight__list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  color: var(--design);
  font-weight: 700;
}

/* ==========================================================================
   Case study: horizontal process flow
   ========================================================================== */
.case-flow {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.case-flow__step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.case-flow__step:last-child { border-bottom: none; }
.case-flow__num {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.case-flow__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.case-flow__body {
  flex: 1;
  min-width: 0;
  padding-right: 30px;
}
.case-flow__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.case-flow__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Case study: phone screenshot gallery + lightbox
   ========================================================================== */
.phone-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.phone-frame {
  cursor: zoom-in;
  border: 8px solid var(--text);
  border-radius: 28px;
  overflow: hidden;
  background: var(--text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.phone-frame:hover { transform: translateY(-3px); }
.phone-frame img {
  width: 100%;
  display: block;
  border-radius: 20px;
}
.phone-gallery__caption {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: var(--space-3);
  max-width: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(420px, 100%);
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

@media (max-width: 809.98px) {
  .phone-gallery { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   Static LinkedIn-style post cards
   ========================================================================== */
.li-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.li-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  background: #fff;
}
.li-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.li-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.li-card__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.li-card__meta { flex: 1; min-width: 0; }
.li-card__name { font-size: 14px; font-weight: 600; }
.li-card__role { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.li-card__logo { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.85; }
.li-card__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  margin-top: var(--space-2);
}
.li-card__more {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: var(--accent);
  cursor: pointer;
  display: inline;
}
.li-card__more:hover { text-decoration: underline; }
.li-card__image {
  margin-top: var(--space-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  flex: 1;
}
.li-card__image img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}
.li-card__stats {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}
.li-card__stats strong { color: var(--text); font-weight: 600; }
.li-card__btn {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.li-card__btn:hover { text-decoration: underline; }
.li-card--placeholder {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
}
@media (max-width: 809.98px) {
  .li-wall { grid-template-columns: 1fr; }
}

.li-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
}
.li-modal.is-open { display: flex; }
.li-modal__panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius-sm);
  max-width: 460px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.li-modal__topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
}
.li-modal__meta { flex: 1; min-width: 0; }
.li-modal__close {
  background: none;
  border: none;
  padding: 4px;
  font-size: 20px;
  line-height: 1;
  color: var(--text-faint);
  cursor: pointer;
}
.li-modal__close:hover { color: var(--text); }
.li-modal__scroll {
  overflow-y: auto;
  padding: var(--space-3);
}
.li-modal__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.li-modal__name { font-size: 15px; font-weight: 600; }
.li-modal__role { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.li-modal__text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
}
.li-modal__image {
  margin-top: var(--space-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.li-modal__image img { width: 100%; display: block; }
.li-modal__footer {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--border);
  background: #fff;
}
.li-modal__stats {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.li-modal__stats strong { color: var(--text); font-weight: 600; }
.li-modal__footer .li-card__btn { margin-top: 8px; display: inline-block; }

/* ==========================================================================
   Beyond Work: interest list + infinite-scroll photo marquee
   ========================================================================== */
.beyond-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 4px var(--space-3);
}
.beyond-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-2);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.25s ease;
}
.beyond-item:last-child { border-bottom: none; }
.beyond-item:hover { padding-left: 8px; }
.beyond-item__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  padding-top: 3px;
}
.beyond-item__body {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.beyond-item__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: 0 0 190px;
}
.beyond-item__icon {
  font-size: 17px;
  line-height: 1;
}
.beyond-item__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 480px;
  margin-top: 0;
  flex: 1;
  min-width: 240px;
}
.beyond-item:nth-child(5n+1) .beyond-item__title { color: var(--accent); }
.beyond-item:nth-child(5n+2) .beyond-item__title { color: var(--design); }
.beyond-item:nth-child(5n+3) .beyond-item__title { color: var(--personal); }
.beyond-item:nth-child(5n+4) .beyond-item__title { color: var(--accent); }
.beyond-item:nth-child(5n+5) .beyond-item__title { color: var(--design); }
@media (max-width: 809.98px) {
  .beyond-item { grid-template-columns: 1fr; gap: 4px; }
  .beyond-item__body { flex-direction: column; gap: 4px; }
  .beyond-item__title { flex-basis: auto; }
  .beyond-item:hover { padding-left: 0; }
}

.beyond-marquee {
  margin-top: var(--space-4);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.beyond-marquee__track {
  display: flex;
  gap: var(--space-2);
  width: max-content;
  animation: beyond-marquee-scroll 32s linear infinite;
}
.beyond-marquee:hover .beyond-marquee__track {
  animation-play-state: paused;
}
.beyond-marquee__item {
  flex-shrink: 0;
  width: 220px;
  height: 280px;
  border-radius: var(--radius-sm);
  background: linear-gradient(155deg, #ececec, #dcdcdc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: -0.01em;
}
@keyframes beyond-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Responsive breakpoints (matching inspo: 810px, 1440px)
   ========================================================================== */
@media (max-width: 809.98px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile-panel.is-open { display: flex; }

  .hero__top { grid-template-columns: 1fr; gap: var(--space-3); }

  .skills-grid { grid-template-columns: 1fr; }
  .skills-grid dd { margin-bottom: 8px; }
  .edu-item { flex-direction: column; }
  .edu-item__result { text-align: left; }
}

/* ==========================================================================
   Teardown pages (hevy-teardown.html)
   ========================================================================== */
.td-meta {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 13px;
  color: var(--text-faint);
}

.td-tldr { margin-top: var(--space-4); scroll-margin-top: 90px; }
.td-tldr p { margin-top: 10px; color: var(--text); max-width: 820px; }
.td-tldr p:first-of-type { margin-top: 0; }
.td-tldr__label {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.td-tldr .td-list li { color: var(--text); }

/* Collapsible contents, shown whenever the fixed side nav is hidden */
.td-toc {
  margin-top: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.td-toc summary {
  cursor: pointer;
  list-style: none;
  padding: 12px var(--space-2);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.td-toc summary::-webkit-details-marker { display: none; }
.td-toc summary::after {
  content: '+';
  font-size: 16px;
  color: var(--text-faint);
}
.td-toc[open] summary::after { content: '\2212'; }
.td-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 4px var(--space-2) 12px;
  border-top: 1px solid var(--border);
}
.td-toc li { counter-increment: toc; }
.td-toc a {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.td-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  padding-top: 2px;
}
.td-toc a:hover { color: var(--accent); }
@media (min-width: 1400.02px) {
  .td-toc { display: none; }
}

.td-page .case-section { scroll-margin-top: 70px; }

.td-h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: var(--space-4);
  margin-bottom: 4px;
}

.td-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-width: 820px;
}
.td-list li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  color: var(--text-muted);
}
.td-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Screenshot rows */
.td-shots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.td-shot {
  flex: 0 1 240px;
  max-width: 260px;
  min-width: 0;
}
.td-shots--1 .td-shot { flex-basis: 260px; }
.td-shot .phone-frame { border-width: 6px; border-radius: 26px; }
.td-shot .phone-frame img { width: 100%; height: auto; border-radius: 20px; }
.td-shot .phone-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.td-shot__caption {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-faint);
  text-align: center;
  margin-top: 12px;
  text-wrap: pretty;
}

@media (max-width: 809.98px) {
  .td-shots {
    justify-content: flex-start;
    gap: var(--space-2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: -26px;
    margin-right: -26px;
    padding: 4px 26px 12px;
    scroll-padding: 0 26px;
    scrollbar-width: none;
  }
  .td-shots::-webkit-scrollbar { display: none; }
  .td-shot { flex: 0 0 62%; max-width: 240px; scroll-snap-align: start; }
  .td-shots--1 { justify-content: center; overflow: visible; }
  .td-shots--1 .td-shot { scroll-snap-align: none; }
}

/* Lightbox caption (extends the shared .lightbox) */
.lightbox { flex-direction: column; gap: 14px; }
.lightbox img { max-height: 82vh; }
.lightbox__caption {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 420px;
}
.lightbox__caption:empty { display: none; }

/* Onboarding flow diagram */
.td-flow {
  --flow-line: var(--border-strong);
  margin: var(--space-4) 0;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.td-flow__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.td-flow__node {
  position: relative;
  max-width: 260px;
  width: 100%;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.td-flow__stack > :not(:first-child) { margin-top: 22px; }
.td-flow__stack > .td-flow__stretch,
.td-flow__stack > .td-flow__stretch + .td-flow__node { margin-top: 0; }

/* connector line + arrowhead above every node except the first in a stack */
.td-flow__node:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -23px;
  height: 17px;
  width: 1.5px;
  transform: translateX(-50%);
  background: var(--flow-line);
}
.td-flow__node:not(:first-child)::after,
.td-flow__merge + .td-flow__stack > .td-flow__node:first-child::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -7px;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--flow-line);
}
.td-flow__stretch + .td-flow__node::before { display: none; }

.td-flow__node--fork {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 500;
}
.td-flow__kicker {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-bottom: 2px;
}
.td-flow__node--ask {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}
.td-flow__node--edge {
  width: auto;
  background: var(--surface);
  border: none;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.td-flow__node--end { font-weight: 600; border-color: var(--text); }

.td-flow__split,
.td-flow__merge {
  position: relative;
  height: 40px;
}
.td-flow__split::before,
.td-flow__merge::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
  background: var(--flow-line);
}
.td-flow__split::before { top: 0; height: 20px; }
.td-flow__merge::after { top: 20px; height: 14px; }
.td-flow__split::after,
.td-flow__merge::before {
  content: '';
  position: absolute;
  left: 25%;
  right: 25%;
  height: 20px;
  border: 1.5px solid var(--flow-line);
}
.td-flow__split::after { top: 20px; border-bottom: none; border-radius: 10px 10px 0 0; }
.td-flow__merge::before { top: 0; border-top: none; border-radius: 0 0 10px 10px; }

.td-flow__branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.td-flow__branch { padding: 0 8px; }
.td-flow__branch-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  text-align: center;
}
.td-flow__stretch {
  flex: 1;
  min-height: 22px;
  width: 1.5px;
  background: var(--flow-line);
}

.td-flow__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.td-flow__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 809.98px) {
  .td-flow { padding: var(--space-2) 8px; }
  .td-flow__node { font-size: 12px; padding: 8px 6px; }
  .td-flow__branch { padding: 0 4px; }
  .td-flow__branch-label { font-size: 10px; padding: 5px 8px; }
  .td-flow__legend { font-size: 11px; }
}

/* "What I'd build" idea cards */
.td-ideas {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.td-idea {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-3);
}
.td-idea__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-2);
}
.td-idea__head .case-step__num { flex-shrink: 0; }
.td-idea__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.td-idea__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 4px var(--space-2);
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.td-idea__label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 3px;
}
.case-section .td-idea__text {
  margin: 0;
  font-size: 15px;
  max-width: none;
}
@media (max-width: 809.98px) {
  .td-idea { padding: var(--space-2); }
  .td-idea__row { grid-template-columns: 1fr; }
}

/* Sources */
.td-sources {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.td-sources li {
  font-size: 13px;
  color: var(--text-faint);
}
.td-sources a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}
.td-sources a:hover { color: var(--accent); }
.td-sources-section .case-section__heading { font-size: 17px; }

.td-proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px var(--space-2);
  margin-top: var(--space-3);
  padding: 14px var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.td-proof__text {
  font-size: 14px;
  color: var(--text-muted);
}
.td-proof__text strong { color: var(--text); font-weight: 600; }
.td-proof + .td-tldr { margin-top: var(--space-3); }

/* Screenshot floated right, text wraps around it (Wikipedia style) */
.td-wrap { display: flow-root; }
.td-shot--float {
  float: right;
  width: 200px;
  margin: 4px 0 var(--space-2) var(--space-4);
}
.td-wrap p { max-width: none; }
.case-section .td-wrap p:first-of-type { margin-top: 0; }
@media (max-width: 809.98px) {
  .td-shot--float { width: 42%; margin-left: var(--space-2); }
  .td-shot--float .phone-frame { border-width: 4px; border-radius: 18px; }
  .td-shot--float .phone-frame img { border-radius: 14px; }
  .td-shot--float .td-shot__caption { font-size: 10px; margin-top: 8px; }
}
.td-shot__caption strong { color: var(--text); font-weight: 600; }

/* Floated shot: crop to the top of the screen so it matches the text height */
.td-shot--float { width: 260px; }
.td-shot--float .phone-frame img {
  aspect-ratio: 720 / 540;
  object-fit: cover;
  object-position: top;
}
@media (max-width: 809.98px) {
  .td-shot--float { float: none; width: 100%; max-width: 300px; margin: 0 auto var(--space-3); }
  .td-shot--float .phone-frame { border-width: 6px; border-radius: 22px; }
  .td-shot--float .phone-frame img { border-radius: 16px; }
  .td-shot--float .td-shot__caption { font-size: 12px; margin-top: 10px; }
}

/* Image on the left, short paragraph beside it */
.td-side {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-3);
}
.case-section .td-side p { margin-top: 0; }
.td-shot--crop .phone-frame img {
  aspect-ratio: 720 / 740;
  object-fit: cover;
  object-position: top;
}
@media (max-width: 809.98px) {
  .td-side { grid-template-columns: 1fr; gap: var(--space-3); }
  .td-side .td-shot { width: 100%; max-width: 280px; margin: 0 auto; }
}


/* Labelled blocks inside a long section */
.td-block {
  padding-top: var(--space-3);
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.td-shots + .td-block { border-top: none; margin-top: 0; padding-top: 0; }
.td-block__label {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.case-section .td-block p { margin-top: 0; }
.td-block .td-list { margin-top: 0; }
.td-insight { margin-top: var(--space-3); }
.case-section .td-note {
  font-size: 13px;
  font-style: italic;
  color: var(--text-faint);
  margin-top: var(--space-3);
}

/* Collapsible block (Sources) */
.td-collapse {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.td-collapse summary {
  cursor: pointer;
  list-style: none;
  padding: 12px var(--space-2);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.td-collapse summary::-webkit-details-marker { display: none; }
.td-collapse summary::after { content: '+'; font-size: 16px; color: var(--text-faint); }
.td-collapse[open] summary::after { content: '\2212'; }
.td-collapse .td-sources {
  padding: 12px var(--space-2) 14px;
  border-top: 1px solid var(--border);
}
/* Group headings inside What I'd build */
.td-group-label {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--space-4);
  margin-bottom: -8px;
}

/* Clickable diagram cells */
.td-flow__node--shots { cursor: zoom-in; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.td-flow__node--shots:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.td-flow__node--shots:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.td-flow__pic {
  display: inline-flex;
  vertical-align: -1px;
  margin-left: 6px;
  opacity: 0.55;
}
.td-flow__node--ask .td-flow__pic,
.td-flow__node--fork .td-flow__pic { opacity: 0.8; }
.td-flow__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 8px;
}
.case-section .td-flow__hint { max-width: none; font-size: 12px; color: var(--text-faint); margin-top: 8px; }
.td-flow__hint .td-flow__pic { margin-left: 0; margin-right: 4px; }

/* Lightbox gallery controls */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: none;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox.has-many .lightbox__nav { display: block; }
.lightbox__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  display: none;
}
.lightbox.has-many .lightbox__count { display: block; }
@media (max-width: 809.98px) {
  .lightbox__nav { top: auto; bottom: 20px; transform: none; }
}
