:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --paper: #fffdf8;
  --ink: #21201c;
  --muted: #68645c;
  --line: #d9d0c3;
  --blue: #2574a9;
  --green: #0f735f;
  --red: #dc5b4a;
  --yellow: #f3bd3f;
  --on-ink: #fffdf8;
  --header-bg: rgba(255, 253, 248, 0.86);
  --frame-bg: #fffdf8;
  --preview-bg: #e8f4f1;
  --preview-grid: rgba(37, 116, 169, 0.16);
  --preview-grid-soft: rgba(37, 116, 169, 0.14);
  --amp-preview-bg: #f4e5d6;
  --amp-preview-grid: rgba(220, 91, 74, 0.16);
  --amp-preview-grid-soft: rgba(220, 91, 74, 0.14);
  --kanban-preview-bg: #edf1e6;
  --kanban-preview-grid: rgba(30, 140, 116, 0.14);
  --kanban-preview-grid-soft: rgba(30, 140, 116, 0.12);
  --illustration-dark: #22201d;
  --illustration-light: #fffdf8;
  --amp-grille-bg: #a75a35;
  --control-fill: #d6d0c2;
  --shadow: 0 18px 50px rgba(44, 36, 24, 0.14);
  --focus: #0b6fb3;
  --space-1: 8px;
  --space-2: 10px;
  --space-3: 12px;
  --space-4: 18px;
  --space-5: 22px;
  --space-6: 26px;
  --space-7: 72px;
  --gap-sm: 12px;
  --gap-md: 18px;
  --gap-lg: 22px;
  --container-gutter: clamp(18px, 4vw, 56px);
  --content-inline: 36px;
  --mobile-gutter: 24px;
  --section-block: clamp(32px, 6vw, 72px);
  --section-block-lg: clamp(44px, 9vw, 112px);
  --section-end: 72px;
  --control-height: 44px;
  --illustration-grid-strong: rgba(255, 253, 248, 0.28);
  --illustration-grid-soft: rgba(255, 253, 248, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #151412;
    --paper: #211f1b;
    --ink: #f4efe6;
    --muted: #c8bfb2;
    --line: #3e3931;
    --blue: #74b9e8;
    --green: #71d3ba;
    --red: #f08a79;
    --yellow: #f3c95b;
    --on-ink: #151412;
    --header-bg: rgba(21, 20, 18, 0.88);
    --frame-bg: #171615;
    --preview-bg: #172927;
    --preview-grid: rgba(116, 185, 232, 0.18);
    --preview-grid-soft: rgba(116, 185, 232, 0.12);
    --amp-preview-bg: #2a201a;
    --amp-preview-grid: rgba(240, 138, 121, 0.16);
    --amp-preview-grid-soft: rgba(240, 138, 121, 0.1);
    --kanban-preview-bg: #1d281f;
    --kanban-preview-grid: rgba(113, 211, 186, 0.16);
    --kanban-preview-grid-soft: rgba(113, 211, 186, 0.1);
    --illustration-dark: #11100e;
    --illustration-light: #f4efe6;
    --amp-grille-bg: #b76b42;
    --control-fill: #e2d8c8;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
    --focus: #9cd2ff;
    --illustration-grid-strong: rgba(244, 239, 230, 0.28);
    --illustration-grid-soft: rgba(244, 239, 230, 0.18);
  }

  .toddler-scene {
    background:
      linear-gradient(90deg, rgba(28, 27, 24, 0.14) 1px, transparent 1px),
      linear-gradient(rgba(28, 27, 24, 0.12) 1px, transparent 1px),
      #b9dbe7;
    background-size: 28px 28px;
  }

  .toddler-scene .scene-camera {
    border-color: #1c1b18;
    background:
      radial-gradient(circle at 52% 40%, rgba(255, 255, 255, 0.82), transparent 26%),
      linear-gradient(140deg, #d8eef3, #b7d9e7);
    box-shadow: 10px 10px 0 #d78292;
  }

  .toddler-scene .scene-mask,
  .toddler-scene .mask-ear {
    border-color: #1c1b18;
  }

  .toddler-scene .mask-eye {
    background: #1c1b18;
  }

  .toddler-scene .mask-mouth {
    border-bottom-color: #1c1b18;
  }

  .toddler-scene .track-dot {
    border-color: #1c1b18;
  }

  .amp-scene,
  .kanban-scene {
    background:
      linear-gradient(90deg, rgba(28, 27, 24, 0.14) 1px, transparent 1px),
      linear-gradient(rgba(28, 27, 24, 0.12) 1px, transparent 1px),
      #b9dbe7;
    background-size: 28px 28px;
  }

  .amp-scene .amp-scene-handle,
  .amp-scene .amp-panel,
  .amp-scene .scene-grille,
  .amp-scene .scene-pedals span,
  .kanban-scene .scene-list,
  .kanban-scene .scene-list span {
    border-color: #1c1b18;
  }

  .amp-scene .amp-scene-handle,
  .amp-scene .amp-panel {
    background: #f2eadc;
  }

  .amp-scene .scene-grille {
    background:
      linear-gradient(90deg, rgba(28, 27, 24, 0.17) 1px, transparent 1px),
      linear-gradient(rgba(28, 27, 24, 0.14) 1px, transparent 1px),
      #c98258;
    background-size: 12px 12px;
  }

  .amp-scene .scene-knob {
    border-color: #1c1b18;
    background: #fffaf0;
  }

  .amp-scene .scene-led {
    border-color: #1c1b18;
  }

  .amp-scene .wave {
    border-top-color: #1c1b18;
  }

  .kanban-scene .scene-list {
    background: #fffaf0;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg);
  padding: var(--space-5) var(--container-gutter);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

main {
  width: min(1180px, calc(100% - var(--content-inline)));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: clamp(28px, 5vw, var(--space-7));
  align-items: end;
  padding: var(--section-block-lg) 0 clamp(34px, 7vw, 78px);
}

.eyebrow,
.project-kicker {
  margin: 0 0 var(--space-2);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2.6rem, 6vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.projects-section {
  padding: 0 0 var(--section-end);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap-lg);
  padding: 0 0 var(--space-4);
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.95rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-lg);
  padding-top: var(--space-6);
}

.personal-project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-group {
  margin-top: clamp(44px, 8vw, 88px);
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.project-card-live {
  animation: project-card-in 620ms ease both;
  animation-delay: var(--card-delay, 0ms);
}

.project-preview {
  min-height: 230px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, var(--preview-grid) 1px, transparent 1px),
    linear-gradient(var(--preview-grid-soft) 1px, transparent 1px),
    var(--preview-bg);
  background-size: 28px 28px;
}

.amp-preview {
  background:
    linear-gradient(90deg, var(--amp-preview-grid) 1px, transparent 1px),
    linear-gradient(var(--amp-preview-grid-soft) 1px, transparent 1px),
    var(--amp-preview-bg);
  background-size: 24px 24px;
}

.kanban-preview {
  background:
    linear-gradient(90deg, var(--kanban-preview-grid) 1px, transparent 1px),
    linear-gradient(var(--kanban-preview-grid-soft) 1px, transparent 1px),
    var(--kanban-preview-bg);
  background-size: 26px 26px;
}

.phantom-preview {
  height: 230px;
  min-height: 0;
  background: #dcebf4;
}

.live-preview.phantom-preview {
  height: 300px;
  padding: 0;
}

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

.newsletter-scene {
  background:
    linear-gradient(90deg, rgba(28, 27, 24, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(28, 27, 24, 0.1) 1px, transparent 1px),
    #d9e8ef;
  background-size: 24px 24px;
}

.ocr-scene {
  background:
    linear-gradient(90deg, rgba(28, 27, 24, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(28, 27, 24, 0.08) 1px, transparent 1px),
    #e4eee9;
  background-size: 24px 24px;
}

.scene-ocr {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 10px;
  width: min(88%, 420px);
  height: 210px;
  padding: 12px 12px 34px;
  border: 4px solid #1c1b18;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 9px 9px 0 #76cbb7;
}

.ocr-upload-panel,
.ocr-result-panel {
  position: relative;
  overflow: hidden;
  border: 3px solid #1c1b18;
  border-radius: 5px;
  background: #ffffff;
}

.ocr-upload-panel {
  display: grid;
  place-content: center;
  gap: 9px;
  justify-items: center;
  border-style: dashed;
  background: #d9e8ef;
}

.ocr-image-mark {
  width: 54px;
  height: 45px;
  border: 3px solid #1c1b18;
  border-radius: 4px;
  background: linear-gradient(145deg, transparent 48%, #76cbb7 49% 66%, transparent 67%);
}

.ocr-file-line,
.ocr-result-panel i {
  display: block;
  height: 7px;
  border-radius: 2px;
  background: #1c1b18;
}

.ocr-file-line { width: 74%; opacity: 0.55; }
.ocr-file-line.short { width: 50%; }

.ocr-result-panel {
  display: grid;
  align-content: center;
  gap: 13px;
  padding: 18px;
}

.ocr-result-panel i:nth-of-type(2) { width: 76%; }
.ocr-result-panel i:nth-of-type(3) { width: 90%; }
.ocr-result-panel i:nth-of-type(4) { width: 62%; }
.ocr-result-panel i:nth-of-type(5) { width: 82%; }

.ocr-scan-line {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: #f1c44d;
  box-shadow: 0 0 12px rgba(241, 196, 77, 0.8);
  animation: ocr-scan 3.6s ease-in-out infinite;
}

.ocr-status {
  position: absolute;
  right: 12px;
  bottom: 9px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: ocr-status-pulse 1.8s ease-in-out infinite;
}

.scene-newsletter {
  display: grid;
  grid-template-columns: 0.7fr 1.45fr 0.8fr;
  gap: 8px;
  width: min(88%, 420px);
  height: 210px;
  padding: 10px;
  border: 4px solid #1c1b18;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 9px 9px 0 #7eabd5;
}

.newsletter-palette,
.newsletter-code {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 9px;
  border: 3px solid #1c1b18;
  border-radius: 5px;
  background: #f2eadc;
}

.newsletter-palette span {
  position: relative;
  height: 18px;
  border: 2px solid #1c1b18;
  border-radius: 3px;
  background: #f1c44d;
}

.newsletter-palette span:nth-child(2) {
  z-index: 2;
  animation: newsletter-drag 3.8s ease-in-out infinite;
}

.newsletter-canvas {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 12px;
  border: 3px solid #1c1b18;
  border-radius: 5px;
  background: #ffffff;
}

.newsletter-canvas i,
.newsletter-canvas b,
.newsletter-canvas em {
  display: block;
  border-radius: 3px;
}

.newsletter-canvas i {
  height: 34px;
  border: 2px solid #1c1b18;
  background: #76cbb7;
}

.newsletter-canvas b { height: 9px; background: #1c1b18; }
.newsletter-canvas b + b { width: 72%; }

.newsletter-canvas em {
  height: 28px;
  border: 2px solid #1c1b18;
  background: #f6d487;
}

.newsletter-code span {
  height: 7px;
  border-radius: 2px;
  background: #7eabd5;
}

.newsletter-code span:nth-child(2),
.newsletter-code span:nth-child(4) { width: 72%; }
.newsletter-code span:nth-child(3) { width: 86%; background: #76cbb7; }

.newsletter-code span:nth-child(3),
.newsletter-code span:nth-child(4) {
  animation: newsletter-code-pulse 3.8s ease-in-out infinite;
}

.newsletter-code span:nth-child(4) {
  animation-delay: 180ms;
}

.project-card-body {
  padding: var(--space-5);
}

.project-card-live .project-card-body {
  animation: project-copy-in 520ms ease both;
  animation-delay: calc(var(--card-delay, 0ms) + 360ms);
}

.live-preview {
  min-height: 300px;
  padding: var(--space-3);
  overflow: hidden;
  position: relative;
}

.scene-camera,
.scene-amp,
.scene-board {
  position: relative;
  width: min(88%, 360px);
  height: 230px;
  margin: auto;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.project-card p {
  color: var(--muted);
  line-height: 1.55;
}

.button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: var(--control-height);
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
}

.secondary-button {
  background: transparent;
  color: var(--ink);
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: var(--section-block) 0;
}

.project-hero > * {
  min-width: 0;
}

.project-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: var(--space-6);
}

.demo-frame-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--frame-bg);
  box-shadow: var(--shadow);
}

.demo-frame {
  display: block;
  width: 100%;
  height: min(680px, 78vh);
  border: 0;
}

.app-embed-wrap {
  width: min(760px, 58vw);
  max-width: 100%;
  justify-self: end;
}

.app-demo-frame {
  height: min(760px, 82vh);
}

.kanban-embed-wrap {
  width: min(820px, 60vw);
  max-width: 100%;
}

.kanban-demo-frame {
  height: min(720px, 80vh);
}

.newsletter-embed-wrap {
  width: min(920px, 66vw);
  max-width: 100%;
}

.newsletter-demo-frame {
  height: min(760px, 82vh);
}

.details-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  padding-bottom: var(--section-end);
}

.detail-item {
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.detail-item h2 {
  font-size: 1rem;
}

.detail-item p {
  color: var(--muted);
  line-height: 1.6;
}

@keyframes project-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes project-copy-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.scene-camera {
  display: grid;
  place-items: center;
  border: 4px solid var(--illustration-light);
  border-radius: 8px;
  background:
    radial-gradient(circle at 52% 40%, rgba(255, 255, 255, 0.7), transparent 26%),
    linear-gradient(140deg, var(--preview-bg), var(--amp-preview-bg));
  box-shadow: 10px 10px 0 var(--red);
}

.scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22%;
  height: 3px;
  background: var(--green);
  opacity: 0.75;
  animation: scan-face 2.8s ease-in-out infinite;
}

.scene-mask {
  position: relative;
  width: 122px;
  height: 122px;
  border: 5px solid var(--ink);
  border-radius: 48% 48% 42% 42%;
  background: var(--yellow);
  box-shadow: 8px 8px 0 var(--red);
  animation: mask-follow 3.4s ease-in-out infinite;
}

.mask-ear {
  position: absolute;
  top: -25px;
  width: 42px;
  height: 42px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.mask-ear.left { left: 4px; }
.mask-ear.right { right: 4px; }

.mask-eye {
  position: absolute;
  top: 48px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
}

.mask-eye.left { left: 36px; }
.mask-eye.right { right: 36px; }

.mask-mouth {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 38px;
  height: 18px;
  border-bottom: 6px solid var(--ink);
  border-radius: 0 0 38px 38px;
  transform: translateX(-50%);
}

.track-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--illustration-light);
  border-radius: 50%;
  background: var(--blue);
}

.dot-a { left: 38%; top: 38%; }
.dot-b { left: 50%; top: 47%; }
.dot-c { right: 38%; top: 38%; }

.scene-amp {
  display: grid;
  align-content: end;
}

.amp-scene-handle {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 78px;
  height: 28px;
  border: 5px solid var(--ink);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--illustration-dark);
  transform: translateX(-50%);
}

.amp-panel,
.scene-grille {
  border: 5px solid var(--ink);
  background: var(--illustration-dark);
}

.amp-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 22px;
  border-radius: 8px 8px 0 0;
}

.scene-knob,
.scene-led {
  width: 18px;
  height: 18px;
  border: 3px solid var(--illustration-light);
  border-radius: 50%;
  background: var(--control-fill);
  animation: knob-turn 3.2s ease-in-out infinite;
}

.k2 { animation-delay: 400ms; }
.k3 { animation-delay: 800ms; }

.scene-led {
  margin-left: auto;
  background: var(--red);
  box-shadow: 0 0 18px var(--red);
  animation: led-pulse 1.6s ease-in-out infinite;
}

.scene-grille {
  position: relative;
  height: 112px;
  overflow: hidden;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(90deg, var(--illustration-grid-strong) 1px, transparent 1px),
    linear-gradient(var(--illustration-grid-soft) 1px, transparent 1px),
    var(--amp-grille-bg);
  background-size: 12px 12px;
}

.wave {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 28px;
  border-top: 5px solid var(--illustration-light);
  border-radius: 50%;
  opacity: 0.8;
  animation: audio-wave 1.8s ease-in-out infinite;
}

.wave-one { top: 34px; }
.wave-two { top: 58px; animation-delay: 260ms; }

.scene-pedals {
  display: flex;
  gap: 10px;
  margin: 12px auto 0;
}

.scene-pedals span {
  width: 42px;
  height: 34px;
  border: 4px solid var(--ink);
  border-radius: 6px;
  background: var(--green);
}

.scene-pedals span:nth-child(2) { background: var(--yellow); }
.scene-pedals span:nth-child(3) { background: var(--red); }

.scene-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.scene-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--illustration-light);
  box-shadow: 8px 8px 0 var(--blue);
}

.list-two { margin-top: 18px; box-shadow: 8px 8px 0 var(--green); }
.list-three { margin-top: 8px; box-shadow: 8px 8px 0 var(--red); }

.scene-list span {
  height: 30px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow);
}

.list-two span { background: var(--red); }
.list-three span { background: var(--green); }

.moving-card {
  animation: card-hop 2.7s ease-in-out infinite;
}

@keyframes scan-face {
  0%, 100% { transform: translateY(-32px); }
  50% { transform: translateY(86px); }
}

@keyframes mask-follow {
  0%, 100% { transform: translate(-8px, 0) rotate(-4deg); }
  50% { transform: translate(10px, 6px) rotate(5deg); }
}

@keyframes knob-turn {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(28deg); }
}

@keyframes led-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes audio-wave {
  0%, 100% { transform: scaleX(0.78); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 0.9; }
}

@keyframes card-hop {
  0%, 100% { transform: translate(0, 0); }
  45% { transform: translate(78px, 42px); }
  55% { transform: translate(78px, 42px); }
}

@keyframes newsletter-drag {
  0%, 28%, 100% { transform: translate(0, 0) scale(1); }
  48%, 62% { transform: translate(92px, 58px) scale(0.92); }
}

@keyframes newsletter-code-pulse {
  0%, 58%, 100% { opacity: 0.45; }
  72%, 88% { opacity: 1; }
}

@keyframes ocr-scan {
  0%, 12%, 100% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  72% { transform: translateY(155px); opacity: 1; }
  82% { transform: translateY(155px); opacity: 0; }
}

@keyframes ocr-status-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.mini-face {
  position: relative;
  width: 138px;
  height: 138px;
  border-radius: 48% 48% 42% 42%;
  background: var(--yellow);
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red);
}

.ear {
  position: absolute;
  top: -28px;
  width: 48px;
  height: 48px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.ear-left {
  left: 2px;
}

.ear-right {
  right: 2px;
}

.eye {
  position: absolute;
  top: 52px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
}

.eye-left {
  left: 42px;
}

.eye-right {
  right: 42px;
}

.mouth {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 42px;
  height: 22px;
  border-bottom: 7px solid var(--ink);
  border-radius: 0 0 42px 42px;
  transform: translateX(-50%);
}

.mini-amp {
  position: relative;
  width: 190px;
  height: 132px;
  border: 6px solid var(--ink);
  border-radius: 8px;
  background: var(--illustration-dark);
  box-shadow: 10px 10px 0 var(--green);
}

.amp-handle {
  position: absolute;
  left: 58px;
  top: -22px;
  width: 74px;
  height: 28px;
  border: 6px solid var(--ink);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: var(--illustration-dark);
}

.amp-grille {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 68px;
  border: 4px solid var(--illustration-light);
  border-radius: 5px;
  background:
    linear-gradient(90deg, var(--illustration-grid-strong) 1px, transparent 1px),
    linear-gradient(var(--illustration-grid-soft) 1px, transparent 1px),
    var(--amp-grille-bg);
  background-size: 10px 10px;
}

.amp-knob,
.amp-light {
  position: absolute;
  top: 22px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--illustration-light);
  border-radius: 50%;
  background: var(--control-fill);
}

.knob-a {
  left: 26px;
}

.knob-b {
  left: 56px;
}

.knob-c {
  left: 86px;
}

.amp-light {
  right: 28px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(220, 91, 74, 0.8);
}

.mini-kanban {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: var(--gap-sm);
  align-items: start;
}

.kanban-column {
  display: grid;
  gap: var(--space-1);
  min-height: 130px;
  padding: var(--space-2);
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--illustration-light);
  box-shadow: 8px 8px 0 var(--blue);
}

.kanban-column i {
  display: block;
  height: 24px;
  border: 3px solid var(--ink);
  border-radius: 5px;
  background: var(--yellow);
}

.col-two {
  margin-top: 18px;
  box-shadow: 8px 8px 0 var(--green);
}

.col-two i {
  background: var(--red);
}

.col-three {
  margin-top: 8px;
  box-shadow: 8px 8px 0 var(--red);
}

.col-three i {
  background: var(--green);
}

@media (max-width: 820px) {
  .intro,
  .project-hero,
  .details-band {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .demo-frame {
    height: min(620px, 80vh);
  }

  .app-embed-wrap,
  .kanban-embed-wrap,
  .newsletter-embed-wrap,
  .ocr-embed-wrap {
    width: 100%;
    justify-self: stretch;
  }

  .app-demo-frame,
  .kanban-demo-frame,
  .newsletter-demo-frame,
  .ocr-demo-frame {
    height: min(680px, 82vh);
  }

  .live-preview {
    min-height: 280px;
  }

  .live-preview.phantom-preview {
    height: 280px;
  }

  .scene-camera,
  .scene-amp,
  .scene-board {
    height: 210px;
  }
}

@media (max-width: 680px) {
  .personal-project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
    line-height: 1.02;
  }

  .project-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.4rem);
  }

  main {
    width: min(100% - var(--mobile-gutter), 1180px);
  }

  .site-header {
    padding: var(--space-4) var(--space-3);
  }

  .demo-frame {
    height: min(620px, 80vh);
  }

  .live-preview {
    min-height: 200px;
  }

  .live-preview.phantom-preview {
    height: 200px;
  }

  .scene-camera,
  .scene-amp,
  .scene-board {
    width: min(100%, 330px);
    height: 180px;
  }

  .scene-newsletter {
    transform: scale(0.86);
  }

  .scene-ocr {
    transform: scale(0.86);
  }

  .project-card-body {
    padding: var(--space-4);
  }

  .scene-board {
    gap: 10px;
  }

  .scene-list {
    padding: 9px;
  }

  @keyframes card-hop {
    0%, 100% { transform: translate(0, 0); }
    45% { transform: translate(54px, 38px); }
    55% { transform: translate(54px, 38px); }
  }
}
